This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.myapp.config; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.andidev.utils; | |
/* | |
* UtilityClassTemplate | |
* | |
* Copyright AndiDev. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* object labels | |
----------------------------------*/ | |
div.input .values label { | |
margin: 0px; | |
border: 2px solid transparent; /* for consistency use same border as input (but transparent) */ | |
padding: 2px 2px; | |
width: 150px; | |
display: block; | |
float: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* general object styles | |
----------------------------------*/ | |
/* object style */ | |
div.input { | |
/* margin, border, padding | |
is ignored since display table */ | |
display: table-row; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* group style | |
----------------------------------*/ | |
div.group { | |
display: block; | |
float: left; | |
} | |
div.group > h3.group-header { | |
margin: 8px; | |
margin-bottom: -8px; | |
border: 1px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* html style | |
----------------------------------*/ | |
html { | |
background-color: white; | |
/* font style (this will be inherited) */ | |
font-size: small; | |
font-family: arial,sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: Remove fix for selects-tags with multiple="multiple" attribute as ölong as it is not supported | |
// TODO: Support selects-tags with multiple="multiple" attribute | |
// TODO: Support disabling up and down key browsing on disabled options | |
// TODO: Check if selecting an an disabled option with up and down key + enter key submits form with disabled value | |
$(document).ready(function() { | |
if ($.browser.msie && parseFloat($.browser.version) < 8) { | |
// Add disabled color to disabled options | |
$("select").find("option[disabled]").css("color", "graytext"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.extend({ | |
/* jquery object to html-string */ | |
isEmpty: function() { | |
// Return true if jquery object is empty | |
return (object.length > 0 ? true : false); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jquery extentions (help methods) */ | |
jQuery.fn.extend({ /* jquery object to html-string */ | |
outerHtml: function(replacement) { | |
// We just want to replace the entire node and contents with | |
// some new html value | |
if (replacement) { | |
return this.each(function() { | |
$(this).replaceWith(replacement); | |
}); | |
} |