Skip to content

Instantly share code, notes, and snippets.

View pauldijou's full-sized avatar

Paul Dijou pauldijou

View GitHub Profile
<!DOCTYPE html>
<ui:composition template="/resources/template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:b="http://richfaces.org/sandbox/bootstrap">
<ui:define name="content">
<b:gridRow fluid="#{sessionBean.fluid}" styleClass="component">
<b:gridColumn span="6">
<ui:insert name="body">Body</ui:insert>
@pauldijou
pauldijou / handler_chains.rb
Created August 1, 2012 08:04
javascript_handler.rb & javascript_handler_spec.rb
require 'awestruct/handler_chain'
require 'awestruct/handlers/file_handler'
require 'awestruct/handlers/markdown_handler'
require 'awestruct/handlers/orgmode_handler'
require 'awestruct/handlers/asciidoc_handler'
require 'awestruct/handlers/restructuredtext_handler'
require 'awestruct/handlers/textile_handler'
require 'awestruct/handlers/erb_handler'
require 'awestruct/handlers/haml_handler'
require 'awestruct/handlers/sass_handler'
# Activate vitual hosts
NameVirtualHost *:80
# IntellijIDEA Project
<VirtualHost *:80>
ServerName project.localhost
DocumentRoot /home/paul/project
<Directory /home/paul/project>
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<richfaces.version>4.3.0-SNAPSHOT</richfaces.version>
<richfaces.bootstrap.version>4.3.0-SNAPSHOT</richfaces.bootstrap.version>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>${richfaces.version}</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
@pauldijou
pauldijou / AbstractInput.java
Created June 21, 2012 17:31
Generating methods on CDK
// Abstract component inside CDK. Will serve as base to generate final UIComponent.
@JsfComponent(...)
public abstract class AbstractInput extends UIInput implements CoreProps, UIComponentUtil {
...
}
@pauldijou
pauldijou / RichFunction.java
Created June 19, 2012 13:36
New jQuery & cie functions
public final class RichFunction {
private static final int DEFAULT_ESCAPING_LENGTH = 4;
/**
* The rich:jQuerySelector('id') function is a shortcut for the equivalent rich:jQuerySelectorExt('id',4)
* since 4 is the default escaping length for usage inside a JSF component.
*/
@Function
public static String jQuerySelector(String id) {
return jQuerySelectorExt(id, DEFAULT_ESCAPING_LENGTH);
@pauldijou
pauldijou / cb.template.xml
Created June 14, 2012 17:04
CommandButtonTemplate
<?xml version="1.0" encoding="UTF-8"?>
<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el"
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core"
xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite">
<cc:interface>
<cdk:class>org.richfaces.bootstrap.renderkit.CommandButtonRenderer</cdk:class>
<cdk:superclass>org.richfaces.bootstrap.renderkit.CommandButtonRendererBase</cdk:superclass>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:b="http://richfaces.org/sandbox/bootstrap">
<b:navbar brand="Group" collapsible="true">
<h:link outcome="/index.xhtml" value="Default1"/>
<b:group type="dropdown" value="Default2">
<h:link outcome="/index.xhtml" value="Default2.1"/>
<h:link outcome="/index.xhtml" value="Default2.2"/>
<b:group type="dropdown" value="Default2.3">
<?xml version="1.0" encoding="UTF-8"?>
<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el"
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core"
xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite">
<cc:interface>
<cdk:class>org.richfaces.bootstrap.renderkit.NavbarRenderer</cdk:class>
<cdk:superclass>org.richfaces.bootstrap.renderkit.NavbarRendererBase</cdk:superclass>
@pauldijou
pauldijou / mvn install for bootstrap-ui
Created April 23, 2012 19:56
mvn install for bootstrap-ui
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.richfaces.sandbox.ui.bootstrap:bootstrap-ui:jar:4.2.1-SNAPSHOT
[WARNING] 'parent.relativePath' of POM org.richfaces.sandbox.ui.bootstrap:bootstrap-parent:4.2.1-SNAPSHOT (/home/paul/workspace/richfaces-sandbox/bootstrap/pom.xml) points at org.richfaces.sandbox:richfaces-sandbox-aggregator instead of org.richfaces.ui:richfaces-ui-parent, please verify your project structure @ org.richfaces.sandbox.ui.bootstrap:bootstrap-parent:4.2.1-SNAPSHOT, /home/paul/workspace/richfaces-sandbox/bootstrap/pom.xml, line 28, column 13
[WARNING] 'build.plugins.plugin.version' for org.zeroturnaround:jrebel-maven-plugin is missing. @ org.richfaces.ui:richfaces-ui-parent:4.2.1-SNAPSHOT, /home/paul/.m2/repository/org/richfaces/ui/richfaces-ui-parent/4.2.1-SNAPSHOT/richfaces-ui-parent-4.2.1-SNAPSHOT.pom, line 183, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threa