This content has been marked as final.
Show 1 reply
-
1. Re: Richfaces 4 not kicking in my samples
ppitonak Apr 11, 2011 12:03 PM (in response to developer333)Hi,
Showcase application uses quite complex templating mechanism. If you want to add a sample to the Showcase, do the following:
1. create a new directory src/main/webapp/richfaces/hello
2. create file src/main/webapp/richfaces/hello/hello.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition 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:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <rich:panel header="Panel with default Look-n-feel"> <h:graphicImage value="/images/icons/common/rf.png" /> </rich:panel> </ui:composition>
3. add following to the file src/main/resources/org/richfaces/demo/data/common/navigation.xml
<group> <name>Ajax Action</name> <demos> <demo> <id>hello</id> <name>hello</name> <samples> <sample> <id>hello</id> <name>Simple sample</name> </sample> </samples> </demo> <demo> <id>ajax</id> ...
4. deploy application and open http://localhost:8080/richfaces-showcase/richfaces/component-sample.jsf?demo=hello&skin=blueSky