This file contains hidden or 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
public static void main (String[] args) { | |
List<String> fruits = new ArrayList<>(); | |
fruits.add("Apple"); | |
fruits.add("Banana"); | |
fruits.add("Peach"); | |
fruits.add("Orange"); | |
fruits.add("Cherries"); | |
fruits.add("Watermelon"); | |
System.out.println("Before Fruits = " + fruits); | |
for (String fruit : fruits) { |
This file contains hidden or 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
$('body').on('click', '#IdWhereYouWatJcropt', function(e) { | |
bindJCrop($this); | |
}); |
This file contains hidden or 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
<ui:repeat value="#{taskMap.value}" var="task"> | |
<f:selectItem itemLabel="#{task.textInLocale}" | |
itemValue="#{task.value}"></f:selectItem> | |
</ui:repeat> |
This file contains hidden or 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
<table id="currentPositionUpdate:roleBasedOnCustomer" class="inputWrap radioTable"> | |
<tr> | |
<td> | |
<input name="currentPositionUpdate:roleBasedOnCustomer" id="currentPositionUpdate:roleBasedOnCustomer:0" value="clerk" type="checkbox" /><label for="currentPositionUpdate:roleBasedOnCustomer:0" class=""> Sachbearbeiter</label></td> | |
</tr> | |
<tr> | |
<td> | |
<input name="currentPositionUpdate:roleBasedOnCustomer" id="currentPositionUpdate:roleBasedOnCustomer:1" value="expert" type="checkbox" /><label for="currentPositionUpdate:roleBasedOnCustomer:1" class=""> Fachkraft</label></td> | |
</tr> | |
<tr> |
This file contains hidden or 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
@function resource_url($url) { | |
@return ("#{$url}"); | |
} |
This file contains hidden or 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
// I have moved the fonts in a dedicated folder at the same level as css and img | |
@font-face { | |
font-family: 'LigatureSymbols'; | |
src: url(resource_url('fonts/LigatureSymbols-2.11.eot')); | |
src: url(resource_url('fonts/LigatureSymbols-2.11.eot?#iefix')) format('embedded-opentype'), | |
url(resource_url('fonts/LigatureSymbols-2.11.woff')) format('woff'), | |
url(resource_url('fonts/LigatureSymbols-2.11.ttf')) format('truetype'), | |
url(resource_url('fonts/LigatureSymbols-2.11.svg#LigatureSymbols')) format('svg'); | |
src: url(resource_url('fonts/LigatureSymbols-2.11.ttf')) format('truetype'); | |
font-weight: normal; |
This file contains hidden or 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
// usage of the mixin | |
select:before { | |
content: ''; | |
background: $lightGrey src (resource_url('img/dropdown.png')) center center no-repeat; | |
background-size: 75%; | |
height: $baseUnit*3; | |
width: $baseUnit*3; | |
z-index: 3; | |
position: absolute; |
This file contains hidden or 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
//----------------------------------------------------------------------------- | |
// resource_url function returns the parameter as url(#{resource['<parameter>']}) | |
// and should be used instead of CSS url() or compass image_url() in JSF applications. | |
// Define JSF Resource Library resource['standard: | |
@function resource_url($url) { | |
@return ("\#{resource['#{$url}']}"); | |
} |
NewerOlder