Skip to content

Instantly share code, notes, and snippets.

View hatemalimam's full-sized avatar

Hatem Alimam hatemalimam

View GitHub Profile
<p:autoComplete id="autoCompleteField" widgetVar="autoCompleteWV" completeMethod="#{mainBean.complete}" />
@hatemalimam
hatemalimam / pom.xml
Last active September 6, 2016 01:52
Simple YUI Compressor Maven Mojo Config, nosuffix needed, line-breaks after 1000 columns
<pluginRepositories>
<pluginRepository>
<name>oss.sonatype.org</name>
<id>oss.sonatype.org</id>
<url>http://oss.sonatype.org/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
@hatemalimam
hatemalimam / animatejsf.xhtml
Last active August 29, 2015 14:02
animateJSF example
<aj:animate target="formId" type="tada" />
@hatemalimam
hatemalimam / pom.xml
Last active August 29, 2015 14:02
pom.xml
<dependency>
<groupId>org.animatejsf</groupId>
<artifactId>animatejsf</artifactId>
<version>1.1</version>
</dependency>
@hatemalimam
hatemalimam / forzenColumnsTable.xhtml
Last active August 29, 2015 14:02
forzenColumnsTable
<style>
/* Change forzen width */
.ui-datatable-frozenlayout-left {
width: 20%;
}
</style>
<script>
function slideColumn(comp) {
$('.ui-datatable-frozenlayout-left').css("width", comp.input.val()+"%");
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/templates/default/main.xhtml">
<ui:define name="content">
<h:form>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/templates/default/main.xhtml">
<ui:define name="content">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/templates/default/main.xhtml">
<ui:define name="content">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/templates/default/main.xhtml">
<ui:define name="content">