JBoss Rich Faces SVN: r13823 - in trunk/samples/richfaces-demo/src/main/webapp/templates/page: includes and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-04-24 08:34:50 -0400 (Fri, 24 Apr 2009)
New Revision: 13823
Added:
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridcenter.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridleft.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridtop.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/sidebar.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/snippet1.txt
trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/themes.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/templates/page/template.xhtml
Log:
layout templates
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridcenter.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridcenter.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridcenter.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,24 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <p>
+ <b>Layout/LayoutPanel components</b> based on  <h:outputLink value="http://developer.yahoo.com/yui/grids/">Yahoo Nesting Grids</h:outputLink>.
+
+ </p>
+ <p>
+ Layout is a wrapper component which should consist of layouts panels.
+ Every layout panel could be positioned inside the layout with corresponding
+ position attribute(<i>with top, bottom, left, right and center values</i>).
+ </p>
+ <p>
+ Currently for a horizontally aligned panels the "width" attribute
+ means a part of outer panel what that component takes.
+ This is a same semantic as HTML elements have - see 
+ <h:outputLink value="http://www.w3.org/TR/html401/types.html#type-multi-length" target="blank">HTML MultiLength</h:outputLink>
+ In future we plan to expand the layouts with possibility of fixed and percents based width definitions.
+ </p>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridleft.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridleft.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridleft.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,20 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <p>
+ <b>Page component</b> is responsible for complete page structure encoding.
+ In difference with old <i>a4j:page</i> component it additionally provides
+ facets for page parts definitions, and optionally provides styling based
+ on <b>RichFaces</b> skinability.
+ </p>
+ <p>
+ Next facets available in built-in implementation - <b>top, bottom, and sidebar</b>.
+ And child content encoded as body part of the page.
+ </p>
+ <p>
+ Also main important feature - <b>Themes support</b> implemented on top of this component.
+ </p>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridtop.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridtop.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/gridtop.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,16 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <p style="font-style: italic">
+ Layout of this demo page built on top of  <h:outputLink target="blank" value="http://developer.yahoo.com/yui/layout/">Yahoo layouts</h:outputLink>.
+ The page layout including settings side bar, header and footer are
+ produced by <b>rich:page</b> component and nesting
+ grid in body created with <b>Layout/LayoutPanel</b> components pair.
+ </p>
+ <p style="font-style: italic">
+ Complete info about the layouts design could be found at  <h:outputLink target="blank" value="http://www.jboss.org/community/docs/DOC-13336">RichFaces Layouts design wiki page</h:outputLink>.
+ </p>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/sidebar.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/sidebar.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/sidebar.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,39 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <h:form>
+ <h:panelGrid columns="2">
+ <f:facet name="header">
+ <h:outputText value="Page Attributes"/>
+ </f:facet>
+ <h:outputLabel for="theme" value="Page Theme" />
+ <h:selectOneMenu id="theme" style="width:75px"
+ value="#{layoutBean.theme}">
+ <f:selectItem itemValue="" itemLabel="Default" />
+ <f:selectItem itemValue="simple" itemLabel="Simple" />
+ <f:selectItem itemValue="violetRays" itemLabel="Violet Rays" />
+ <f:selectItem itemValue="theme1" itemLabel="Theme One" />
+ <f:selectItem itemValue="theme2" itemLabel="Theme Two" />
+ </h:selectOneMenu>
+ <h:outputLabel for="width" value="Page Width" />
+ <h:inputText id="width" value="#{layoutBean.width}" style="width:75px"/>
+ <h:outputLabel for="sidebarwidth" value="Sidebar Width" />
+ <h:inputText id="sidebarwidth" value="#{layoutBean.sidebarWidth}" style="width:75px"/>
+ <h:outputLabel for="position" value="Side bar position" />
+ <h:selectOneMenu value="#{layoutBean.position}" id="position" style="width:75px">
+ <f:selectItem itemValue="left" />
+ <f:selectItem itemValue="right" />
+ </h:selectOneMenu>
+ <h:outputLabel for="skin" value="Current skin" />
+ <h:selectOneMenu value="#{skinBean.skin}" id="skin" style="width:75px">
+ <f:selectItem itemValue="blueSky" itemLabel="blueSky" />
+ <f:selectItem itemValue="ruby" itemLabel="ruby" />
+ <f:selectItem itemValue="emeraldTown" itemLabel="emeraldTown" />
+ </h:selectOneMenu>
+ <h:commandButton value="Change"></h:commandButton>
+ </h:panelGrid>
+ </h:form>
+</ui:composition>
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/snippet1.txt
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/snippet1.txt (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/snippet1.txt 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,7 @@
+mvn archetype:create
+-DarchetypeGroupId=org.richfaces.cdk
+-DarchetypeArtifactId=maven-archetype-theme
+-DarchetypeVersion=RF-VERSION
+-DartifactId=ARTIFACT-ID
+-DgroupId=GROUP-ID
+-Dversion=VERSION
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/themes.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/themes.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/includes/themes.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -0,0 +1,62 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+ <p>
+ <b>Themes feature </b>allows to change the page template on the fly. <b>Themes</b> created
+ by just using <b>renderer</b> redefinition. So nothing special performed from this
+ point. But additionally provided <b>CDK archetype</b> allows to create themes
+ based on <b>jspx templates</b> easily
+ and pack as separate library together with resources. Then page
+ could be switched between the themes by just <b>theme attribute</b> usage.
+ </p>
+ <p>
+ <b>Default page renderer</b> provides just the simple page parts such as
+ header, footer and sidebar. No additional styling applied to default theme.
+ </p>
+ <p>
+ <b>simple</b> theme which is just extension of the default renderer
+ just adds the RichFaces skinning for the page elements.
+ So the end-developer able to use skinning
+ parameters or rich-* classes as usually to redefine general look and feel
+ for header/footer/sidebar.
+ </p>
+ <p>
+ There are laso three more themes built using new archetype provided
+ (should be added as separate jar explicitly).
+ <b>VioletRays</b> based on<a href="http://www.freecsstemplates.org/css-templates/">
+ freecsstemplates template</a>. It not uses a skin parameters(just stylesheets provided within a template)
+ And two more which uses RichFaces skin for its elements.
+ </p>
+ <p>
+ Just next steps should be performed to create own themes:
+ </p>
+ <fieldset>
+ <legend><b>Themes project creation</b></legend>
+ mvn archetype:create<br/>
+ -DarchetypeGroupId=org.richfaces.cdk<br/>
+ -DarchetypeArtifactId=maven-archetype-theme<br/>
+ -DarchetypeVersion=RF-VERSION <br/>
+ -DartifactId=ARTIFACT-ID <br/>
+ -DgroupId=GROUP-ID<br/>
+ -Dversion=VERSION
+ </fieldset>
+ <p>
+ creates ARTIFACT-ID directory and generate needed pom.xml inside. Then
+ </p>
+ <fieldset>
+ <legend><b>Theme creation</b></legend>
+ mvn cdk:add-theme -Dname=THEME-NAME
+ </fieldset>
+ <p>
+ creates skeleton of new skin inside the created folder.
+ </p>
+ <p>
+ So, the developer just need to edit the <b>jspx template</b> and add the <b>needed resources</b>.
+ Also pay attrention to <b>META-INF/themes</b> folder. Every <i><b>THEME-NAME.theme.property</b></i> file inside
+ defines renderer and stylesheet used by this theme. And one of the <b>THEME-NAME</b> should
+ be used as value for <b>page theme attribute</b> to turn this theme on.
+ </p>
+</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/page/template.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/page/template.xhtml 2009-04-24 12:34:04 UTC (rev 13822)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/page/template.xhtml 2009-04-24 12:34:50 UTC (rev 13823)
@@ -7,74 +7,48 @@
contentType="text/html" theme="#{layoutBean.theme}"
width="#{layoutBean.width}" sidebarWidth="#{layoutBean.sidebarWidth}"
sidebarPosition="#{layoutBean.position}">
- <style>
-.rich-page-header {
- padding: 0;
- margin: 0;
- background: none;
-}
-</style>
<f:facet name="sidebar">
- <h:form>
- <h2>Page Attributes</h2>
- <h:panelGrid columns="2">
- <h:outputLabel for="theme" value="Page Theme" />
- <h:selectOneMenu id="theme" style="width:100px"
- value="#{layoutBean.theme}">
- <f:selectItem itemValue="" itemLabel="Default" />
- <f:selectItem itemValue="simple" itemLabel="Simple" />
- <f:selectItem itemValue="violetRays" itemLabel="Violet Rays" />
- <f:selectItem itemValue="theme1" itemLabel="Theme One" />
- <f:selectItem itemValue="theme2" itemLabel="Theme Two" />
- </h:selectOneMenu>
- <h:outputLabel for="width" value="Page Width" />
- <h:inputText id="width" value="#{layoutBean.width}" />
- <h:outputLabel for="sidebarwidth" value="Sidebar Width" />
- <h:inputText id="sidebarwidth" value="#{layoutBean.sidebarWidth}" />
- <h:outputLabel for="position" value="Side bar position" />
- <h:selectOneMenu value="#{layoutBean.position}" id="position">
- <f:selectItem itemValue="left" />
- <f:selectItem itemValue="right" />
- </h:selectOneMenu>
- <h:outputLabel for="skin" value="Current skin" />
- <h:selectOneMenu value="#{skinBean.skin}" id="skin">
- <f:selectItem itemValue="blueSky" itemLabel="blueSky" />
- <f:selectItem itemValue="ruby" itemLabel="ruby" />
- <f:selectItem itemValue="emeraldTown" itemLabel="emeraldTown" />
- </h:selectOneMenu>
- <h:commandButton value="Change"></h:commandButton>
- </h:panelGrid>
- </h:form>
+ <ui:include src="/richfaces/layouts/page/includes/sidebar.xhtml" />
</f:facet>
<f:facet name="header">
- <rich:toolBar height="50px">
- <f:verbatim>
- <h2>RichFaces Layouts</h2>
- </f:verbatim>
- <rich:toolBarGroup location="right">
- <h:outputLink value="#">Developer Guide</h:outputLink>
- <h:outputLink value="#">Download RichFaces</h:outputLink>
- <h:outputLink value="#">Support</h:outputLink>
- </rich:toolBarGroup>
- </rich:toolBar>
-
+ <h:panelGroup>
+ <table width="100%"><tbody><tr>
+ <td><h2>RichFaces Layouts</h2></td>
+ <td align="right">
+ <h:outputLink value="http://labs.jboss.com/portal/jbossrichfaces/downloads">Download</h:outputLink> 
+ <h:outputLink value="http://jboss.com/index.html?module=bb&op=viewforum&f=261">Support</h:outputLink> 
+ <h:outputLink value="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...">Developer Guide</h:outputLink>
+ </td>
+ </tr></tbody></table>
+ </h:panelGroup>
</f:facet>
<f:facet name="footer">
<h:outputText
value="Copyright (c) 2009 RichFaces. All rights reserved. RichFaces version #{environment.version}" />
</f:facet>
+ <rich:tabPanel switchType="client">
+ <rich:tab label="overview">
<rich:layout>
<rich:layoutPanel position="top" width="100%">
- Common page information will be there.
+ <ui:include src="/richfaces/layouts/page/includes/gridtop.xhtml" />
</rich:layoutPanel>
- <rich:layoutPanel position="left" width="33">
- <f:verbatim>Common layouts info will be there </f:verbatim>
+ <rich:layoutPanel position="left" width="50">
+ <ui:include src="/richfaces/layouts/page/includes/gridleft.xhtml" />
</rich:layoutPanel>
- <rich:layoutPanel position="center" width="33">
- <f:verbatim>More Layouts info will be there</f:verbatim>
+ <rich:layoutPanel position="center" width="50">
+ <ui:include src="/richfaces/layouts/page/includes/gridcenter.xhtml" />
</rich:layoutPanel>
- <rich:layoutPanel position="right" width="33">
- <f:verbatim>Link to specification and so on will be there</f:verbatim>
+ <rich:layoutPanel position="bottom">
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/layouts/page/template.xhtml"/>
+ <ui:param name="openlabel" value="View this page template source code"/>
+ </ui:include>
+ <br/>
</rich:layoutPanel>
</rich:layout>
+ </rich:tab>
+ <rich:tab label="Themes support">
+ <ui:include src="/richfaces/layouts/page/includes/themes.xhtml" />
+ </rich:tab>
+ </rich:tabPanel>
</rich:page>
15 years, 8 months
JBoss Rich Faces SVN: r13822 - trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-24 08:34:04 -0400 (Fri, 24 Apr 2009)
New Revision: 13822
Modified:
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
Log:
https://jira.jboss.org/jira/browse/RF-6135
added a richfacesguide prototype
Modified: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt 2009-04-24 12:32:33 UTC (rev 13821)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt 2009-04-24 12:34:04 UTC (rev 13822)
@@ -1,8 +1,7 @@
-How to use the richfacesguide archetype.
+How to Use the richfacesguide Archetype
1. Build the archetype with "mvn clean install"
2. Cd to RichFaces_trunk\docs\. Run
mvn archetype:generate -DarchetypeGroupId=org.richfaces.docs -DarchetypeArtifactId=richfacesguide-archetype -DarchetypeVersion=3.3.1-SNAPSHOT -DartifactId=RichFacesGuide -DgroupId=org.richfaces.docs
-(artifactId � project folder name)
-When the build is finished you will see the RichFacesGuide.
-3. Copy the RichFacesGuide to RichFaces_trunk\docs\
-4. Run "mvn clean install" to build the guide
+(artifactId � project folder name).
+When the build is finished you will see the RichFacesGuide(your project name folder).
+3. Cd to RichFacesGuide (your project name folder) and "mvn clean install" to build the guide.
15 years, 8 months
JBoss Rich Faces SVN: r13821 - in trunk/samples/richfaces-demo: src/main/java/org/richfaces/demo and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-04-24 08:32:33 -0400 (Fri, 24 Apr 2009)
New Revision: 13821
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/DataItem.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateDataModel.java
trunk/samples/richfaces-demo/src/main/resources/JIRA.csv
trunk/samples/richfaces-demo/src/main/resources/dataItem.hbm.xml
trunk/samples/richfaces-demo/src/main/resources/hibernate.cfg.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/modifiableModel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/modifiableModel.xhtml
Modified:
trunk/samples/richfaces-demo/pom.xml
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
Log:
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2009-04-24 12:29:02 UTC (rev 13820)
+++ trunk/samples/richfaces-demo/pom.xml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -371,6 +371,22 @@
<groupId>javax.faces</groupId>
</exclusion>
</exclusions>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate</artifactId>
+ <version>3.2.6.ga</version>
+ </dependency>
</dependencies>
</project>
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/DataItem.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/DataItem.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/DataItem.java 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,136 @@
+package org.richfaces.demo.modifiableModel;
+
+public class DataItem {
+
+ private Long id;
+
+ private String issueType;
+
+ private String key;
+
+ private String summary;
+
+ private String assignee;
+
+ private String fixVersion;
+
+ private String reporter;
+
+ private String priority;
+
+ private String status;
+
+ private String resolution;
+
+ private String created;
+
+ private String updated;
+
+ private String dueDate;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getIssueType() {
+ return issueType;
+ }
+
+ public void setIssueType(String issueType) {
+ this.issueType = issueType;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getSummary() {
+ return summary;
+ }
+
+ public void setSummary(String summary) {
+ this.summary = summary;
+ }
+
+ public String getAssignee() {
+ return assignee;
+ }
+
+ public void setAssignee(String assignee) {
+ this.assignee = assignee;
+ }
+
+ public String getFixVersion() {
+ return fixVersion;
+ }
+
+ public void setFixVersion(String fixVersion) {
+ this.fixVersion = fixVersion;
+ }
+
+ public String getReporter() {
+ return reporter;
+ }
+
+ public void setReporter(String reporter) {
+ this.reporter = reporter;
+ }
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getResolution() {
+ return resolution;
+ }
+
+ public void setResolution(String resolution) {
+ this.resolution = resolution;
+ }
+
+ public String getCreated() {
+ return created;
+ }
+
+ public void setCreated(String created) {
+ this.created = created;
+ }
+
+ public String getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(String updated) {
+ this.updated = updated;
+ }
+
+ public String getDueDate() {
+ return dueDate;
+ }
+
+ public void setDueDate(String dueDate) {
+ this.dueDate = dueDate;
+ }
+
+
+}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateBean.java 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,117 @@
+/**
+ *
+ */
+package org.richfaces.demo.modifiableModel;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.faces.FacesException;
+
+import org.hibernate.SessionFactory;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.classic.Session;
+import org.richfaces.model.SortOrder;
+
+/**
+ * @author mikalaj
+ *
+ */
+public class HibernateBean {
+
+ private SessionFactory factory;
+
+ private static final String[] CSV_FIELDS = {
+ "issueType", "key", "summary",
+ "assignee", "fixVersion", "reporter", "priority", "status",
+ "resolution", "created", "updated"
+ };
+
+ private static final Method[] CSV_FIELDS_SETTERS;
+
+ public String[] getCsvFields() {
+ return CSV_FIELDS;
+ }
+
+ static {
+ CSV_FIELDS_SETTERS = new Method[CSV_FIELDS.length];
+
+ for (int i = 0; i < CSV_FIELDS.length; i++) {
+ char[] cs = CSV_FIELDS[i].toCharArray();
+ cs[0] = Character.toUpperCase(cs[0]);
+
+ try {
+ CSV_FIELDS_SETTERS[i] = DataItem.class.getMethod("set" + new String(cs), String.class);
+ } catch (SecurityException e) {
+ throw new FacesException(e.getMessage(), e);
+ } catch (NoSuchMethodException e) {
+ throw new FacesException(e.getMessage(), e);
+ }
+ }
+ }
+
+ public HibernateBean() {
+ Configuration configuration = new Configuration();
+ configuration.addResource("dataItem.hbm.xml");
+ configuration.configure();
+
+ factory = configuration.buildSessionFactory();
+ Session session = factory.openSession();
+
+ BufferedReader reader = null;
+ try {
+ reader = new BufferedReader(
+ new InputStreamReader(getClass().getResourceAsStream("/JIRA.csv")));
+
+ String line;
+
+ while ((line = reader.readLine()) != null) {
+ String[] split = line.split(";");
+
+ DataItem dataItem = new DataItem();
+ for (int i = 0; i < split.length && i < CSV_FIELDS_SETTERS.length; i++) {
+ try {
+ CSV_FIELDS_SETTERS[i].invoke(dataItem, split[i]);
+ } catch (IllegalArgumentException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+ session.persist(dataItem);
+ }
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ try {
+ if (reader != null) {
+ reader.close();
+ }
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+
+ session.flush();
+ session.close();
+ }
+
+ public SessionFactory getSessionFactory() {
+ return factory;
+ }
+
+}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateDataModel.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateDataModel.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/modifiableModel/HibernateDataModel.java 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,242 @@
+package org.richfaces.demo.modifiableModel;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.annotation.PreDestroy;
+import javax.el.ELException;
+import javax.el.Expression;
+import javax.el.ValueExpression;
+import javax.faces.FacesException;
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.model.DataVisitor;
+import org.ajax4jsf.model.ExtendedDataModel;
+import org.ajax4jsf.model.Range;
+import org.ajax4jsf.model.SequenceRange;
+import org.hibernate.Criteria;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.criterion.MatchMode;
+import org.hibernate.criterion.Order;
+import org.hibernate.criterion.Restrictions;
+import org.richfaces.model.ExtendedFilterField;
+import org.richfaces.model.FilterField;
+import org.richfaces.model.Modifiable;
+import org.richfaces.model.Ordering;
+import org.richfaces.model.SortField2;
+import org.richfaces.model.SortOrder;
+
+public class HibernateDataModel extends ExtendedDataModel implements Modifiable {
+
+ private SessionFactory sessionFactory;
+
+ public void setSessionFactory(SessionFactory sessionFactory) {
+ this.sessionFactory = sessionFactory;
+ }
+
+ private Session session;
+
+ protected Session getSession() {
+ if (session == null) {
+ session = sessionFactory.openSession();
+ }
+
+ return session;
+ }
+
+ @PreDestroy
+ public void destroy() {
+ if (session != null) {
+ session.close();
+ }
+ }
+
+ private Long rowKey;
+
+ private SortOrder sortOrder = new SortOrder();
+
+ private DataItem dataItem;
+
+ private SequenceRange cachedRange;
+
+ private List<DataItem> cachedItems;
+
+ private List<FilterField> filterFields;
+
+ private List<SortField2> sortFields;
+
+ private Map<String, SortOrder> sortOrders = new HashMap<String, SortOrder>();
+
+ private Map<String, Object> columnFilterValues = new HashMap<String, Object>();
+
+
+ public Map<String, Object> getColumnFilterValues() {
+ return columnFilterValues;
+ }
+
+ public void setColumnFilterValues(Map<String, Object> columnFilterValues) {
+ this.columnFilterValues = columnFilterValues;
+ }
+
+ public Map<String, SortOrder> getSortOrders() {
+ return sortOrders;
+ }
+
+ public void setSortOrders(Map<String, SortOrder> sortOrders) {
+ this.sortOrders = sortOrders;
+ }
+
+ private static boolean areEqualRanges(SequenceRange range1, SequenceRange range2) {
+ if (range1 == null || range2 == null) {
+ return range1 == null && range2 == null;
+ } else {
+ return range1.getFirstRow() == range2.getFirstRow() && range1.getRows() == range2.getRows();
+ }
+ }
+
+ private Criteria createCriteria() {
+ return getSession().createCriteria(DataItem.class);
+ }
+
+ private void appendFilters(FacesContext context, Criteria criteria) {
+ if (filterFields != null) {
+ for (FilterField filterField : filterFields) {
+ String propertyName = getPropertyName(context, filterField.getExpression());
+
+ String filterValue = ((ExtendedFilterField) filterField).getFilterValue();
+ if (filterValue != null && filterValue.length() != 0) {
+ criteria.add(Restrictions.like(propertyName,
+ filterValue,
+ MatchMode.ANYWHERE).ignoreCase());
+ }
+ }
+ }
+ }
+
+ private void appendSorts(FacesContext context, Criteria criteria) {
+ if (sortFields != null) {
+ for (SortField2 sortField : sortFields) {
+ Ordering ordering = sortField.getOrdering();
+
+ if (Ordering.ASCENDING.equals(ordering) || Ordering.DESCENDING.equals(ordering)) {
+ String propertyName = getPropertyName(context, sortField.getExpression());
+
+ Order order = Ordering.ASCENDING.equals(ordering) ?
+ Order.asc(propertyName) : Order.desc(propertyName);
+
+ criteria.addOrder(order.ignoreCase());
+ }
+ }
+ }
+ }
+
+ private String getPropertyName(FacesContext facesContext, Expression expression) {
+ try {
+ return (String) ((ValueExpression) expression).getValue(facesContext.getELContext());
+ } catch (ELException e) {
+ throw new FacesException(e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Object getRowKey() {
+ return rowKey;
+ }
+
+ @Override
+ public void setRowKey(Object key) {
+ this.rowKey = (Long) key;
+ this.dataItem = null;
+
+ if (this.rowKey != null) {
+ this.dataItem = (DataItem) session.load(DataItem.class, this.rowKey);
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public void walk(FacesContext facesContext, DataVisitor visitor, Range range,
+ Object argument) throws IOException {
+
+ SequenceRange sequenceRange = (SequenceRange) range;
+
+ if (this.cachedItems == null || !areEqualRanges(this.cachedRange, sequenceRange)) {
+ Criteria criteria = createCriteria();
+ appendFilters(facesContext, criteria);
+ appendSorts(facesContext, criteria);
+
+ if (sequenceRange != null) {
+ int first = sequenceRange.getFirstRow();
+ int rows = sequenceRange.getRows();
+
+ criteria.setFirstResult(first);
+ if (rows > 0) {
+ criteria.setMaxResults(rows);
+ }
+ }
+
+ this.cachedRange = sequenceRange;
+ this.cachedItems = criteria.list();
+ }
+
+ //System.out.println(getRowCount());
+
+ for (DataItem item: cachedItems) {
+ visitor.process(facesContext, item.getId(), argument);
+ }
+ }
+
+ @Override
+ public int getRowCount() {
+ Criteria criteria = createCriteria();
+ appendFilters(FacesContext.getCurrentInstance(), criteria);
+ return (Integer) criteria.list().size();
+ }
+
+ @Override
+ public Object getRowData() {
+ return this.dataItem;
+ }
+
+ @Override
+ public int getRowIndex() {
+ return -1;
+ }
+
+ @Override
+ public Object getWrappedData() {
+ return null;
+ }
+
+ @Override
+ public boolean isRowAvailable() {
+ return (this.dataItem != null);
+ }
+
+ @Override
+ public void setRowIndex(int rowIndex) {
+ }
+
+ @Override
+ public void setWrappedData(Object data) {
+ }
+
+ public void modify(List<FilterField> filterFields, List<SortField2> sortFields) {
+ this.filterFields = filterFields;
+ this.sortFields = sortFields;
+
+ this.cachedItems = null;
+ this.cachedRange = null;
+ }
+
+ public SortOrder getSortOrder() {
+ return sortOrder;
+ }
+
+ public void setSortOrder(SortOrder sortOrder) {
+ this.sortOrder = sortOrder;
+ }
+}
Added: trunk/samples/richfaces-demo/src/main/resources/JIRA.csv
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/JIRA.csv (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/JIRA.csv 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,25 @@
+Bug;RF-6338;PanelMenu does not work in 3.3.1.SNAPSHOT;Alex Kolonitsky;03.03.2001;Alexander Dubovsky;Critical;Open;UNRESOLVED;23/Feb/09 06:17 AM;24/Feb/09 11:59 AM;;;;;1
+Bug;RF-3686;listShuttle and s:entityConverter;Alex Kolonitsky;03.03.2001;Marcell Barbacena;Major;Open;UNRESOLVED;11/Jun/08 05:51 PM;17/Feb/09 10:06 AM;;;;;0
+Bug;RF-6278;ScriptUtils: toScript() fails with java.sql.* types;Alex Kolonitsky;03.03.2001;Nick Belaevski;Major;Open;UNRESOLVED;20/Feb/09 06:47 PM;24/Feb/09 12:07 PM;;;;;0
+Bug;RF-5671;Panel Menu. selectedChild problems;Alex Kolonitsky;03.03.2001;Ilya Shaikovsky;Major;Open;UNRESOLVED;13/Jan/09 05:26 AM;24/Feb/09 08:43 PM;;;;;0
+Bug;RF-6155;Column: rendered attribute handled wrong;Alexander Smirnov;03.03.2001;Nick Belaevski;Major;Open;UNRESOLVED;13/Feb/09 10:36 AM;13/Feb/09 10:36 AM;;;;;1
+Bug;RF-6040;Columns: component does not work without value attribute defined;Andrei Markavtsov;03.03.2001;Andrei Markavtsov;Critical;Open;UNRESOLVED;06/Feb/09 04:57 AM;06/Feb/09 09:28 AM;;;;;0
+Bug;RF-6031;columns: allow to use few columns and to use columns together with static column components within the one table .;Andrei Markavtsov;03.03.2001;Ilya Shaikovsky;Major;Open;UNRESOLVED;04/Feb/09 09:05 AM;05/Feb/09 08:40 AM;;;;;0
+Bug;RF-5960;FileUpload sends id parameter to server on each upload.;Andrei Markavtsov;03.03.2001;Andrei Markavtsov;Major;Open;UNRESOLVED;29/Jan/09 05:57 AM;11/Feb/09 10:58 AM;;;;;1
+Bug;RF-6266;FileUpload: AJAX polling problems;Andrei Markavtsov;03.03.2001;Nick Belaevski;Major;Open;UNRESOLVED;19/Feb/09 12:16 PM;24/Feb/09 11:56 AM;;;;;0
+Bug;RF-6143;inplaceSelect: is not expanded in FF;Anton Belevich;03.03.2001;Tsikhon Kuprevich;Critical;Open;UNRESOLVED;11/Feb/09 09:29 AM;12/Feb/09 06:58 AM;;;;;0
+Bug;RF-5735;InplaceInput: input is possible after pressing green (OK) control icon under FF2-3, Safari;Anton Belevich;03.03.2001;Alexander Dubovsky;Major;Open;UNRESOLVED;14/Jan/09 08:05 AM;15/Jan/09 05:20 AM;;;;;0
+Bug;RF-5717;editor: special characters escapement problem;Anton Belevich;03.03.2001;Ilya Shaikovsky;Major;Reopened;UNRESOLVED;13/Jan/09 10:15 AM;15/Jan/09 11:34 AM;;;;;1
+Bug;RF-5790;Editor: converter error if use nesting formatting.;Anton Belevich;03.03.2001;Alexander Dubovsky;Major;Open;UNRESOLVED;19/Jan/09 08:34 AM;20/Jan/09 10:42 AM;;;;;1
+Bug;RF-5825;Editor: convertion failed in case past formatted text in editor.;Anton Belevich;03.03.2001;Alexander Dubovsky;Major;Open;UNRESOLVED;19/Jan/09 09:20 AM;20/Jan/09 11:36 AM;;;;;0
+Bug;RF-5209;Calendar: currentDateChangeListener does not trigger;Anton Belevich;03.03.2001;Andrei Markavtsov;Major;Reopened;UNRESOLVED;03/Dec/08 10:02 AM;10/Feb/09 06:04 AM;;;14400;14400;0
+Bug;RF-5265;Calendar does not switch the current month/year properlly if 'preLoadDateRangeStart' & 'preLoadDateRangeEnd' attributes defined in ajax mode;Anton Belevich;03.03.2001;Andrei Markavtsov;Major;Open;UNRESOLVED;05/Dec/08 12:01 PM;10/Feb/09 06:05 AM;;;;;0
+Bug;RF-6141;ComboBox: Style, styleClass and events attributes wasn't encoded on highest-level html-element of this component..;Anton Belevich;03.03.2001;Konstantin Mishin;Major;Open;UNRESOLVED;11/Feb/09 08:45 AM;11/Feb/09 06:55 PM;;;;;0
+Bug;RF-6142;inplaceSelect: symbols are encoded in output;Anton Belevich;03.03.2001;Tsikhon Kuprevich;Major;Open;UNRESOLVED;11/Feb/09 09:22 AM;11/Feb/09 06:55 PM;;;;;0
+Bug;RF-6000;liveDemo: dropDownMenu bottom example. The 'class' attribute is incorrect for the tag h:panelGrid;Ilya Shaikovsky;03.03.2001;Tsikhon Kuprevich;Major;Open;UNRESOLVED;02/Feb/09 04:52 AM;05/Feb/09 03:05 PM;;;;;0
+Bug;RF-5999;liveDemo: dropDownMenu: remove 'border' attribute from the spacer tag in the top code example;Ilya Shaikovsky;03.03.2001;Tsikhon Kuprevich;Major;Open;UNRESOLVED;02/Feb/09 04:43 AM;05/Feb/09 03:05 PM;;;;;0
+Bug;RF-6018;panelMenu: Attribute iconCollapsedTopPosition invalid for tag panelMenu (demo);Ilya Shaikovsky;03.03.2001;Inna Shchibrya;Major;Open;UNRESOLVED;03/Feb/09 10:16 AM;05/Feb/09 03:05 PM;;;;;0
+Bug;RF-5780;DataScroller: incorrect page name in richfaces-demo;Ilya Shaikovsky;03.03.2001;Alexander Dubovsky;Minor;Open;UNRESOLVED;19/Jan/09 08:04 AM;05/Feb/09 06:22 PM;;;;;0
+Bug;RF-6263;Demo: There is rich:dataList insted of rich:dataOrderedList on dataOrderedList page.;Ilya Shaikovsky;03.03.2001;Konstantin Mishin;Minor;Open;UNRESOLVED;19/Feb/09 09:17 AM;24/Feb/09 11:53 AM;;;;;0
+Bug;RF-5764;demosite: preview state mark on extended table to be removed.;Ilya Shaikovsky;03.03.2001;Ilya Shaikovsky;Trivial;Open;UNRESOLVED;16/Jan/09 04:22 AM;16/Jan/09 04:22 AM;;;;;0
+Bug;RF-5638;DragListener/dropListener do not have 'type' attribute;Nick Belaevski;03.03.2001;Alexandr Levkovsky;Major;Open;UNRESOLVED;10/Jan/09 10:37 AM;09/Feb/09 06:27 PM;;;;;0
Added: trunk/samples/richfaces-demo/src/main/resources/dataItem.hbm.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/dataItem.hbm.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/dataItem.hbm.xml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping>
+ <class name="org.richfaces.demo.modifiableModel.DataItem">
+ <id name="id">
+ <generator class="native" />
+ </id>
+
+ <property name="issueType" />
+ <property name="key" />
+ <property name="summary" />
+ <property name="assignee" />
+ <property name="fixVersion" />
+ <property name="reporter" />
+ <property name="priority" />
+ <property name="status" />
+ <property name="resolution" />
+ <property name="created" />
+ <property name="updated" />
+ <property name="dueDate" />
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/resources/hibernate.cfg.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/hibernate.cfg.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/resources/hibernate.cfg.xml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+"-//Hibernate/Hibernate Configuration DTD//EN"
+"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:abc</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+ <property name="hibernate.connection.pool_size">10</property>
+ <property name="show_sql">true</property>
+ <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.hbm2ddl.auto">create</property>
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2009-04-24 12:29:02 UTC (rev 13820)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2009-04-24 12:32:33 UTC (rev 13821)
@@ -7,7 +7,7 @@
inputNumberSlider= richInputs, Input Number Slider, /images/ico_DataFilterSlider.gif, /images/cn_slider.gif, inputNumberSlider.html, jbossrichfaces/freezone/docs/tlddoc/rich/inputNumberSlider.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInputNumberSlider.html, /richfaces/inputNumberSlider.jsf
inputNumberSpinner= richInputs, Input Number Spinner, /images/ico_spinner.gif, /images/cn_spinner.gif, inputNumberSpinner.html, jbossrichfaces/freezone/docs/tlddoc/rich/inputNumberSpinner.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInputNumberSpinner.html, /richfaces/inputNumberSpinner.jsf
dataFilterSlider= richDataIterators, Data Filter Slider, /images/ico_DataFilterSlider.gif, /images/cn_DataFilterSlider.gif, dataFilterSlider.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataFilterSlider.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataFltrSlider.html, /richfaces/dataFilterSlider.jsf
-dataTable=richDataIterators, Data Table, /images/ico_DataTable.gif, /images/cn_DataTable.gif, dataTable.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataTable.html, /richfaces/dataTable.jsf
+dataTable=richDataIterators, Data Table, /images/ico_DataTable.gif, /images/cn_DataTable.gif, dataTable.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataTable.html, /richfaces/dataTable.jsf, new
column= richDataIterators, Column, /images/ico_Column.gif, /images/cn_Column.gif, column.html, jbossrichfaces/freezone/docs/tlddoc/rich/column.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumn.html, /richfaces/dataTable.jsf
columnGroup= richDataIterators, Column Group, /images/ico_ColumnGroup.gif, /images/cn_ColumnGroup.gif, columnGroup.html, jbossrichfaces/freezone/docs/tlddoc/rich/columnGroup.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumnGroup.html, /richfaces/dataTable.jsf
dataDefinitionList= richDataIterators, Data Definition List, /images/ico_DataDefinitionList.gif, /images/cn_DataDefinitionList.gif, dataDefinitionList.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataDefinitionList.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataDefinitionList.html, /richfaces/dataLists.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-04-24 12:29:02 UTC (rev 13820)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -3,6 +3,10 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<converter>
+ <converter-id>longConverter</converter-id>
+ <converter-class>javax.faces.convert.LongConverter</converter-class>
+ </converter>
+ <converter>
<converter-id>listShuttleconverter</converter-id>
<converter-class>org.richfaces.demo.listShuttle.Converter</converter-class>
</converter>
@@ -10,6 +14,20 @@
<converter-id>orderingListConverter</converter-id>
<converter-class>org.richfaces.demo.orderingList.SongConverter</converter-class>
</converter>
+ <managed-bean>
+ <managed-bean-name>hibernateBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.modifiableModel.HibernateBean</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>hibernateDataModel</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.modifiableModel.HibernateDataModel</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>sessionFactory</property-name>
+ <value>#{hibernateBean.sessionFactory}</value>
+ </managed-property>
+ </managed-bean>
<managed-bean>
<managed-bean-name>loginbean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.stateApi.Bean</managed-bean-class>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/modifiableModel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/modifiableModel.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/modifiableModel.xhtml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,27 @@
+<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:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <h:form>
+ <a4j:queue requestDelay="100" />
+ <rich:messages />
+ <rich:dataTable value="#{hibernateDataModel}" var="row" rows="10"
+ rowKeyConverter="#{longConverter}" reRender="datascroller">
+ <rich:columns value="#{hibernateBean.csvFields}" var="field"
+ sortBy="#{field}" filterBy="#{field}" filterEvent="onkeyup"
+ index="index" id="column#{index}"
+ sortOrder="#{hibernateDataModel.sortOrders[field]}"
+ filterValue="#{hibernateDataModel.columnFilterValues[field]}">
+ <f:facet name="header">
+ <h:outputText value="#{field}" />
+ </f:facet>
+ <h:outputText value="#{row[field]}" />
+ </rich:columns>
+ <f:facet name="footer">
+ <rich:datascroller id="datascroller" />
+ </f:facet>
+ </rich:dataTable>
+ </h:form>
+</ui:composition>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/modifiableModel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/modifiableModel.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/modifiableModel.xhtml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ Descriptions
+ </p>
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/dataTable/examples/modifiableModel.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/dataTable/examples/modifiableModel.xhtml"/>
+ <ui:param name="openlabel" value="View Source" />
+ </ui:include>
+
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/extendeddatamodel/AuctionDataModel.java"/>
+ <ui:param name="openlabel" value="View AuctionDataModel.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </ui:define>
+ </ui:composition>
+</html>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2009-04-24 12:29:02 UTC (rev 13820)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2009-04-24 12:32:33 UTC (rev 13821)
@@ -18,6 +18,9 @@
<rich:tab label="Edit Table with ModalPanel" name="editDataTable">
<ui:include src="/richfaces/dataTable/editDataTable.xhtml"/>
</rich:tab>
+ <rich:tab label="Modifiable Data Model" name="modifiableDataModel">
+ <ui:include src="/richfaces/dataTable/modifiableModel.xhtml"/>
+ </rich:tab>
<rich:tab name="info" label="Tag Information">
<rich:insert
src="/WEB-INF/#{componentNavigator.currentComponent.tagInfoLocation}"
15 years, 8 months
JBoss Rich Faces SVN: r13820 - trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-24 08:29:02 -0400 (Fri, 24 Apr 2009)
New Revision: 13820
Modified:
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
Log:
https://jira.jboss.org/jira/browse/RF-6135
added a richfacesguide prototype
Modified: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt 2009-04-24 12:28:35 UTC (rev 13819)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt 2009-04-24 12:29:02 UTC (rev 13820)
@@ -1,8 +1,8 @@
How to use the richfacesguide archetype.
-1. Build the archetype with �mvn clean install�
-2. Make a empty folder and run
+1. Build the archetype with "mvn clean install"
+2. Cd to RichFaces_trunk\docs\. Run
mvn archetype:generate -DarchetypeGroupId=org.richfaces.docs -DarchetypeArtifactId=richfacesguide-archetype -DarchetypeVersion=3.3.1-SNAPSHOT -DartifactId=RichFacesGuide -DgroupId=org.richfaces.docs
-artifactId � project folder name
+(artifactId � project folder name)
When the build is finished you will see the RichFacesGuide.
3. Copy the RichFacesGuide to RichFaces_trunk\docs\
-4. Run �mvn clean install� to build the guide
+4. Run "mvn clean install" to build the guide
15 years, 8 months
JBoss Rich Faces SVN: r13819 - trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-24 08:28:35 -0400 (Fri, 24 Apr 2009)
New Revision: 13819
Modified:
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-6135
added a richfacesguide prototype
Modified: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml 2009-04-24 11:58:42 UTC (rev 13818)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml 2009-04-24 12:28:35 UTC (rev 13819)
@@ -12,7 +12,7 @@
<title>Richfaces Guide Template</title>
<author>
<firstname>Author</firstname>
- <surname>BurnsWishNapalm</surname>
+ <surname>BurnsWithNapalm</surname>
<email>BurnsWishNapalm(a)exadel.com</email>
</author>
<copyright>
15 years, 8 months
JBoss Rich Faces SVN: r13818 - in trunk/docs/common-resources/en/src/main: archetypes and 15 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-24 07:58:42 -0400 (Fri, 24 Apr 2009)
New Revision: 13818
Added:
trunk/docs/common-resources/en/src/main/archetypes/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/pom.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/pom.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page1.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page2.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/modules/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/modules/intro.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/examples/
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/examples/example.xml
trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-6135
added a richfacesguide prototype
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/pom.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/pom.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/pom.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>richfacesguide-archetype</artifactId>
+ <packaging>maven-archetype</packaging>
+ <name>richfacesguide-archetype</name>
+ <version>3.3.1-SNAPSHOT</version>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ <extension>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.2-504.jdbc3</version>
+ </extension>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+ <distributionManagement>
+ <repository>
+ <uniqueVersion>false</uniqueVersion>
+ <id>repository.jboss.org</id>
+ <url>${releaseRepository}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ <downloadUrl>http://labs.jboss.com/portal/jbossrichfaces/downloads</downloadUrl>
+ </distributionManagement>
+</project>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/readme.txt 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,8 @@
+How to use the richfacesguide archetype.
+1. Build the archetype with �mvn clean install�
+2. Make a empty folder and run
+mvn archetype:generate -DarchetypeGroupId=org.richfaces.docs -DarchetypeArtifactId=richfacesguide-archetype -DarchetypeVersion=3.3.1-SNAPSHOT -DartifactId=RichFacesGuide -DgroupId=org.richfaces.docs
+artifactId � project folder name
+When the build is finished you will see the RichFacesGuide.
+3. Copy the RichFacesGuide to RichFaces_trunk\docs\
+4. Run �mvn clean install� to build the guide
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype-metadata.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype-metadata.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="richfacesguide">
+ <modules>
+ <module id="en" dir="en" name="en">
+ <fileSets>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/docbook</directory>
+ <includes>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*.*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ </module>
+ </modules>
+</archetype-descriptor>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/META-INF/maven/archetype.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype>
+ <id>richfacesguide</id>
+ <resources>
+ <resource>en\pom.xml</resource>
+ <resource>en\src\main\docbook\includes\page1.xml</resource>
+ <resource>en\src\main\docbook\includes\page2.xml</resource>
+ <resource>en\src\main\docbook\master.xml</resource>
+ <resource>en\src\main\docbook\modules\intro.xml</resource>
+ <resource>en\src\main\resources\examples\example.xml</resource>
+ </resources>
+</archetype>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/pom.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/pom.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/pom.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>richfacesguide</artifactId>
+ <version>3.3.1-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <groupId>org.richfaces.docs.richfacesguide</groupId>
+ <artifactId>${translation}</artifactId>
+ <version>3.3.1-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Richfaces Guide Template</name>
+
+ <properties>
+ <translation>en</translation>
+ </properties>
+ <build>
+ <finalName>
+ ${project.parent.artifactId}_${translation}-${version}
+ </finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <version>1.0-beta-2</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <!--
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-style-plugin</artifactId>
+ <version>1.0.0</version>
+ <extensions>true</extensions>
+ </plugin>
+ -->
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page1.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page1.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page1.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="ccreate" xreflabel="ccreate">
+ <?dbhtml filename="ccreate.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>Key Word</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Page one</title>
+ <para> Page one text </para>
+
+</section>
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page2.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page2.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/includes/page2.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="pcreate" xreflabel="pcreate">
+ <?dbhtml filename="pcreate.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>Page two keywords</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Page two</title>
+ <para>
+ Page two title
+ </para>
+
+</section>
+
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/master.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.docbook.org/xml/4.3CR3/docbookx.dtd"
+[
+<!ENTITY intro SYSTEM "modules/intro.xml">
+<!ENTITY page1 SYSTEM "includes/page1.xml">
+<!ENTITY page2 SYSTEM "includes/page2.xml">
+]>
+
+<book>
+ <bookinfo>
+ <title>Richfaces Guide Template</title>
+ <author>
+ <firstname>Author</firstname>
+ <surname>BurnsWishNapalm</surname>
+ <email>BurnsWishNapalm(a)exadel.com</email>
+ </author>
+ <copyright>
+ <year>2008, 2009</year>
+ <holder>Red Hat</holder>
+ </copyright>
+
+<abstract>
+ <title/>
+ <para>
+ <ulink url="http://www.jboss.org/your_online_pdf_version.pdf">PDF version</ulink>
+ </para>
+</abstract>
+
+
+ </bookinfo>
+ <toc/>
+
+ &intro;
+
+ <chapter id="compdev" xreflabel="compdev">
+ <?dbhtml filename="compdev.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>KeyWords</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Title</title>
+
+ <para> </para>
+ <?forseChanks?>
+ &page1;
+ &page2;
+
+ </chapter>
+
+</book>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/modules/intro.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/modules/intro.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/docbook/modules/intro.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="introduction" xreflabel="introduction">
+ <?dbhtml filename="intro.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Introduction keywords</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Introduction</title>
+ <para>
+ Introduction text
+ </para>
+
+</chapter>
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/examples/example.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/examples/example.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/en/src/main/resources/examples/example.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1 @@
+code example
\ No newline at end of file
Added: trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/pom.xml (rev 0)
+++ trunk/docs/common-resources/en/src/main/archetypes/richfaces_archetype/src/main/resources/archetype-resources/pom.xml 2009-04-24 11:58:42 UTC (rev 13818)
@@ -0,0 +1,237 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>docs</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.3.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>richfacesguide</artifactId>
+ <packaging>pom</packaging>
+ <version>3.3.1-SNAPSHOT</version>
+ <name>richfacesguide</name>
+ <description>Richfaces Guide Template</description>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>repository.jboss.com</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.com/maven2/</url>
+ <layout>default</layout>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>
+ org.richfaces.docs.common-resources
+ </groupId>
+ <artifactId>
+ ${project.translation}
+ </artifactId>
+ <version>
+ ${project.version}
+ </version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>
+ ${project.build.directory}
+ </outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ <overWriteReleases>
+ false
+ </overWriteReleases>
+ <overWriteSnapshots>
+ true
+ </overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ <executions>
+ <execution>
+ <id>jdocbook:generate</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.docs.common-resources</groupId>
+ <artifactId>${translation}</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>fop</artifactId>
+ <version>0.95</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.saxon</artifactId>
+ <version>9.1.0.1_1</version>
+</dependency>
+ </dependencies>
+ <configuration>
+ <sourceDirectory>
+ ${basedir}/src/main/docbook
+ </sourceDirectory>
+ <imageResource>
+ <directory>
+ ${basedir}/src/main/resources
+ </directory>
+ </imageResource>
+ <cssResource>
+ <directory>
+ ${project.build.directory}/common-resources
+ </directory>
+ </cssResource>
+ <sourceDocumentName>
+ master.xml
+ </sourceDocumentName>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>
+ classpath:/common-resources/xslt/pdf-common.xsl
+ </stylesheetResource>
+ <finalName>
+ Richfaces_Guide_Template.pdf
+ </finalName>
+ <imagePathSettingRequired>
+ true
+ </imagePathSettingRequired>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>
+ ${xsl_html}
+ </stylesheetResource>
+ <finalName>
+ index.html
+ </finalName>
+ <imageCopyingRequired>
+ true
+ </imageCopyingRequired>
+ <imagePathSettingRequired>
+ false
+ </imagePathSettingRequired>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>
+ ${xsl_html_single}
+ </stylesheetResource>
+ <imageCopyingRequired>
+ true
+ </imageCopyingRequired>
+ <imagePathSettingRequired>
+ false
+ </imagePathSettingRequired>
+ <finalName>
+ index.html
+ </finalName>
+
+ </format>
+ </formats>
+ <xincludeSupported>true</xincludeSupported>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <useRelativeImageUris>
+ true
+ </useRelativeImageUris>
+ <xmlTransformerType>
+ saxon
+ </xmlTransformerType>
+ <!--
+ <transformerParameters>
+ <property>
+ <name>custom.titlepage.img</name>
+ <value>
+ ${basedir}/src/main/resources/shared/images/hibernate_logo_a.png
+ </value>
+ </property>
+ </transformerParameters>
+ -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <!-- report plugin is currently hosed
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugin</groupId>
+ <artifactId>jboss-docbook-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+ -->
+ <properties>
+ <masterTranslation>en</masterTranslation>
+ </properties>
+
+ <modules>
+ <module>en</module>
+ </modules>
+
+</project>
15 years, 8 months
JBoss Rich Faces SVN: r13817 - trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-24 05:02:15 -0400 (Fri, 24 Apr 2009)
New Revision: 13817
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/layout/mainMenu.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6233
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/layout/mainMenu.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/layout/mainMenu.xhtml 2009-04-24 09:02:00 UTC (rev 13816)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/layout/mainMenu.xhtml 2009-04-24 09:02:15 UTC (rev 13817)
@@ -7,40 +7,51 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
+
+ mode="client"
+ iconExpandedGroup="disc"
+ iconCollapsedGroup="disc"
+ iconExpandedTopGroup="chevronUp"
+ iconGroupTopPosition="right"
+ iconCollapsedTopGroup="chevronDown"
+ iconCollapsedTopPosition="right"
+ id="mainMenu">
+ <rich:panelMenuGroup label="Rich Components" id="group1" value="#{menuState.menu['group1']}" >
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="calendar.xhtml" >rich:calendar</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="colorPicker.xhtml" >rich:colorPicker</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="fileUpload.xhtml" >rich:fileUpload</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="modalPanel.xhtml" >rich:modalPanel</h:outputLink>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="layout.xhtml" >rich:layout</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="page.xhtml" >rich:page</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="progressBar.xhtml" >rich:progressBar</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
+ <h:outputLink value="tree.xhtml" >rich:tree</h:outputLink>
+ </rich:panelMenuItem>
-mode="client"
- iconExpandedGroup="disc"
- iconCollapsedGroup="disc"
- iconExpandedTopGroup="chevronUp"
- iconGroupTopPosition="right"
- iconCollapsedTopGroup="chevronDown"
- iconCollapsedTopPosition="right"
- id="mainMenu"
- >
-<rich:panelMenuGroup label="Rich Components" id="group1" value="#{menuState.menu['group1']}" >
-
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="colorPicker.xhtml" >rich:colorPicker</h:outputLink>
-</rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="fileUpload.xhtml" >rich:fileUpload</h:outputLink>
-</rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="page.xhtml" >rich:page</h:outputLink>
-</rich:panelMenuItem>
-
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="layout.xhtml" >rich:layout</h:outputLink>
-</rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="progressBar.xhtml" >rich:progressBar</h:outputLink>
-</rich:panelMenuItem>
-<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
-<h:outputLink value="tree.xhtml" >rich:tree</h:outputLink>
-</rich:panelMenuItem>
-
-</rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+
<rich:panelMenuGroup label="A4J Components" id="group2" value="#{menuState.menu['group2']}">
<rich:panelMenuItem actionListener="#{menuBean.select}" mode="server">
15 years, 8 months
JBoss Rich Faces SVN: r13816 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-24 05:02:00 -0400 (Fri, 24 Apr 2009)
New Revision: 13816
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/calendar.xhtml
trunk/test-applications/richfaces-docs/web/src/main/webapp/modalPanel.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6233
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/calendar.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/calendar.xhtml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/calendar.xhtml 2009-04-24 09:02:00 UTC (rev 13816)
@@ -0,0 +1,24 @@
+<!DOCTYPE composition 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:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:calendar</f:facet>
+
+ <h:form>
+ <rich:calendar oninputselect="alert('hi!')"/>
+ </h:form>
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/modalPanel.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/modalPanel.xhtml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/modalPanel.xhtml 2009-04-24 09:02:00 UTC (rev 13816)
@@ -0,0 +1,70 @@
+<!DOCTYPE composition 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:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j"
+ template="layout/template.xhtml">
+
+ <script>
+ function getRightTop(ref) {
+ var position = new Object();
+ position.top = 0; //ref.offsetTop;
+ position.left =0; // ref.offsetLeft+ref.clientWidth+6;
+ return position;
+ }
+ </script>
+
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:modalPanel</f:facet>
+
+ <rich:modalPanel id="panel" width="350" height="100" >
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Modal Panel"></h:outputText>
+ </h:panelGroup>
+ </f:facet>
+
+ <f:facet name="controls">
+ <h:panelGroup>
+ <h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelink"/>
+ <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
+ </h:panelGroup>
+ </f:facet>
+
+ <h:outputText value="This panel is called using Component Control Component"></h:outputText>
+ <br/>
+ <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
+
+ <a onclick="Richfaces.showModalPanel('pnl');" href="#">Show ModalPanel</a>
+
+ <a4j:form>
+ <rich:modalPanel id="pnl">
+ <f:facet name="header">
+ <h:outputText value="This is a panel header" />
+ </f:facet>
+
+ <p>The <rich:modalPanel> accepts different types of information:
+ from simple text to iterative components such as <rich:dataTable>, etc.
+ </p>
+
+ <a onclick="Richfaces.hideModalPanel('pnl');" href="#">Hide</a>
+ <a onclick="Richfaces.hideTopModalPanel();" href="#">Hide Top Modal Panel</a>
+ </rich:modalPanel>
+ </a4j:form>
+ </rich:modalPanel>
+
+ <h:outputLink value="#" id="link">
+ Show Modal Panel
+ <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
+ </h:outputLink>
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
15 years, 8 months
JBoss Rich Faces SVN: r13815 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-24 05:01:02 -0400 (Fri, 24 Apr 2009)
New Revision: 13815
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/colorPicker.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6845
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/colorPicker.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/colorPicker.xhtml 2009-04-24 00:12:43 UTC (rev 13814)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/colorPicker.xhtml 2009-04-24 09:01:02 UTC (rev 13815)
@@ -16,20 +16,12 @@
<rich:panel>
- <f:facet name="header">rich:colorPicker</f:facet>
-
-
- <h:form>
- <rich:colorPicker value="#F0F8FF" />
-
-
- </h:form>
-<h:outputText value="#{colorPicker.value}" />
-
-
-
-
-
+ <f:facet name="header">rich:colorPicker</f:facet>
+
+ <h:form>
+ <rich:colorPicker value="#F0F8FF" onbeforeshow="alert('I\'am colorPicker')"/>
+ </h:form>
+ <h:outputText value="#{colorPicker.value}" />
</rich:panel>
</ui:define>
15 years, 8 months