JBoss Rich Faces SVN: r1975 - trunk/samples/suggestionbox-sample.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-08-01 08:25:50 -0400 (Wed, 01 Aug 2007)
New Revision: 1975
Modified:
trunk/samples/suggestionbox-sample/pom.xml
Log:
a4j support added
Modified: trunk/samples/suggestionbox-sample/pom.xml
===================================================================
--- trunk/samples/suggestionbox-sample/pom.xml 2007-08-01 12:25:16 UTC (rev 1974)
+++ trunk/samples/suggestionbox-sample/pom.xml 2007-08-01 12:25:50 UTC (rev 1975)
@@ -15,6 +15,11 @@
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
<artifactId>suggestionbox</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
17 years, 4 months
JBoss Rich Faces SVN: r1974 - in trunk/samples/dataFilterSliderDemo: src/main/webapp/WEB-INF and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-08-01 08:25:16 -0400 (Wed, 01 Aug 2007)
New Revision: 1974
Modified:
trunk/samples/dataFilterSliderDemo/pom.xml
trunk/samples/dataFilterSliderDemo/src/main/webapp/WEB-INF/web.xml
Log:
a4j support added
Modified: trunk/samples/dataFilterSliderDemo/pom.xml
===================================================================
--- trunk/samples/dataFilterSliderDemo/pom.xml 2007-08-01 11:12:47 UTC (rev 1973)
+++ trunk/samples/dataFilterSliderDemo/pom.xml 2007-08-01 12:25:16 UTC (rev 1974)
@@ -12,6 +12,11 @@
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
<artifactId>dataFilterSlider</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
Modified: trunk/samples/dataFilterSliderDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/dataFilterSliderDemo/src/main/webapp/WEB-INF/web.xml 2007-08-01 11:12:47 UTC (rev 1973)
+++ trunk/samples/dataFilterSliderDemo/src/main/webapp/WEB-INF/web.xml 2007-08-01 12:25:16 UTC (rev 1974)
@@ -10,6 +10,10 @@
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>#{skinBean.skin}</param-value>
17 years, 4 months
JBoss Rich Faces SVN: r1973 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-01 07:12:47 -0400 (Wed, 01 Aug 2007)
New Revision: 1973
Added:
trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
Modified:
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
Log:
http://jira.jboss.com/jira/browse/RF-450
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-01 10:48:45 UTC (rev 1972)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-01 11:12:47 UTC (rev 1973)
@@ -421,7 +421,50 @@
<para>To change the style of particular suggestionbox components define your own style classes in the corresponding suggestionbox attributes. </para>
</section>
-
+
+ <section>
+ <para>
+There is possibility to define what be shown if the autocomplete returns empty list.
+Attribute "nothingLabel" or facet with the same name could be used for it.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:suggestiobox nothingLabel="Empty" for="test" suggestionAction="#{bean.autocomplete}" var="cit">
+ <h:column>
+ <h:outputText value="#{cit.text}"/>
+ </h:column>
+ </rich:suggestionbox>
+...
+]]></programlisting>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:suggestiobox for="test" suggestionAction="#{bean.autocomplete}" var="cit">
+ <facet name="nothingLabel">
+ <h:outputText value="Empty"/>
+ </facet>
+ <h:column>
+ <h:outputText value="#{cit.text}"/>
+ </h:column>
+</rich:suggestionbox>
+...
+]]></programlisting>
+ </section>
+
+ <para>It looks on the page in the following way:</para>
+
+ <figure>
+ <title>SuggestionBox with empty list</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/suggestionbox5.gif"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
<section>
<title>Relevant resources links</title>
<para>
Added: trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 4 months
JBoss Rich Faces SVN: r1972 - trunk/samples/tabPanelDemo.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-01 06:48:45 -0400 (Wed, 01 Aug 2007)
New Revision: 1972
Modified:
trunk/samples/tabPanelDemo/pom.xml
Log:
added ui-core
Modified: trunk/samples/tabPanelDemo/pom.xml
===================================================================
--- trunk/samples/tabPanelDemo/pom.xml 2007-08-01 02:52:04 UTC (rev 1971)
+++ trunk/samples/tabPanelDemo/pom.xml 2007-08-01 10:48:45 UTC (rev 1972)
@@ -20,6 +20,11 @@
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
+ <artifactId>core</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
<artifactId>panel</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
17 years, 4 months
JBoss Rich Faces SVN: r1971 - in trunk/sandbox/samples/calendar-sample: src/main/webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-31 22:52:04 -0400 (Tue, 31 Jul 2007)
New Revision: 1971
Modified:
trunk/sandbox/samples/calendar-sample/pom.xml
trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
Log:
- A4J is back in sample
- Month scrolling fixed
- TODO for Kaa added
Modified: trunk/sandbox/samples/calendar-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/calendar-sample/pom.xml 2007-08-01 02:51:57 UTC (rev 1970)
+++ trunk/sandbox/samples/calendar-sample/pom.xml 2007-08-01 02:52:04 UTC (rev 1971)
@@ -15,6 +15,11 @@
<version>3.1.0-SNAPSHOT</version>
</dependency>
<dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
<groupId>org.richfaces</groupId>
<artifactId>skins</artifactId>
<version>3.1.0-SNAPSHOT</version>
Modified: trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-08-01 02:51:57 UTC (rev 1970)
+++ trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-08-01 02:52:04 UTC (rev 1971)
@@ -2,6 +2,7 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/calendar" prefix="calendar" %>
<html>
17 years, 4 months
JBoss Rich Faces SVN: r1970 - in trunk/sandbox/ui/calendar/src/main/java/org/richfaces: renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-31 22:51:57 -0400 (Tue, 31 Jul 2007)
New Revision: 1970
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
- A4J is back in sample
- Month scrolling fixed
- TODO for Kaa added
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-01 01:50:16 UTC (rev 1969)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-01 02:51:57 UTC (rev 1970)
@@ -246,6 +246,21 @@
return TimeZone.getDefault();
}
+ public Date convertCurrentDate(String currentDateString) {
+
+ Calendar calendar = Calendar.getInstance();
+ calendar.clear();
+ calendar.set(Calendar.DATE, 1);
+ int idx = currentDateString.indexOf('/');
+ calendar.set(Calendar.MONTH, Integer.parseInt(currentDateString
+ .substring(0, idx)) - 1);
+ calendar.set(Calendar.YEAR, Integer.parseInt(currentDateString
+ .substring(idx + 1)));
+
+ return calendar.getTime();
+
+ }
+
public void broadcast(FacesEvent event) throws AbortProcessingException {
// TODO Auto-generated method stub
if (event instanceof AjaxEvent) {
@@ -271,8 +286,11 @@
// org.richfaces.renderkit.CalendarRendererBase.convertCurrentDate(String)
// method
// for more
- Date currentDate = getConvertedValue(facesContext,
- currentDateString);
+
+ //TODO nick - kaa - throw exception and review resulting message :)
+ //throw new NullPointerException();
+
+ Date currentDate = convertCurrentDate(currentDateString);
CurrentDateChangeEvent newDateChangeEvent = new CurrentDateChangeEvent(
this, currentDate);
newDateChangeEvent.queue();
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-08-01 01:50:16 UTC (rev 1969)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-08-01 02:51:57 UTC (rev 1970)
@@ -104,21 +104,6 @@
(String) submittedValue);
}
- public Date convertCurrentDate(String currentDateString) {
-
- Calendar calendar = Calendar.getInstance();
- calendar.clear();
- calendar.set(Calendar.DATE, 1);
- int idx = currentDateString.indexOf('/');
- calendar.set(Calendar.MONTH, Integer.parseInt(currentDateString
- .substring(0, idx)));
- calendar.set(Calendar.YEAR, Integer.parseInt(currentDateString
- .substring(idx + 1)));
-
- return calendar.getTime();
-
- }
-
protected void doDecode(FacesContext context, UIComponent component) {
// TODO Auto-generated method stub
super.doDecode(context, component);
17 years, 4 months
JBoss Rich Faces SVN: r1969 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/toolTip and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-07-31 21:50:16 -0400 (Tue, 31 Jul 2007)
New Revision: 1969
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tooltip/ToolTipData.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
Log:
Tooltip sample improved
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tooltip/ToolTipData.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tooltip/ToolTipData.java 2007-08-01 00:05:47 UTC (rev 1968)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tooltip/ToolTipData.java 2007-08-01 01:50:16 UTC (rev 1969)
@@ -9,7 +9,7 @@
private int currentVehicleIndex = -1;
public int getTooltipCounter() {
try {
- Thread.sleep(1000);
+ Thread.sleep(500);
} catch (InterruptedException e) {
}
return tooltipCounter++;
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml 2007-08-01 01:50:16 UTC (rev 1969)
@@ -13,56 +13,88 @@
border-width:3px;
padding:10px;
}
+ .tooltip-text {
+ width:350px;
+ height:75px;
+ cursor:arrow;
+ border-width:2px;
+ text-align:center;
+ }
.tooltipData {
font-weight: bold;
}
</style>
<p>
- ToolTip is a little non-modal popup that may be used to display additional infrmation, that normally hidden.
+ ToolTip is a little non-modal pop-up that may be used to display additional information, that normally hidden.<br/>
Major toolTip features:
- (1) ToolTip content may be tether pre-rendered to the page, or requested from server in separate Ajax request
- (2)
</p>
+ <ul>
+ <li>Tool-tip content may be <b>pre-rendered</b> on page (client mode) or <b>loaded in separate Ajax request</b> (ajax mode)</li>
+ <li>In "ajax" mode <b>default content</b> may be shown while request is executed</li>
+ <li>Parameters can be passed to server during ajax reques</li>
+ <li>Tooltip <b>look is fully customizable</b> using both - Richfaces skins and CSS style classes</li>
+ </ul>
+
<div class="sample-container" >
- <h:outputText id="tt1" value="Here you can see default client-side tooltip" >
- <rich:toolTip direction="top-right">
+ <h:panelGrid columns="2">
+ <rich:panel id="sample1" styleClass="tooltip-text">
+ <rich:toolTip>
<span>
- This tooltip content was <strong>pre-rendered</strong> to the page.<br/>
- The look of this tooltip is 100% defined by skin.
+ This tool-tip content was <strong>pre-rendered</strong> to the page.<br/>
+ The look of this tool-tip is 100% defined by skin.
</span>
</rich:toolTip>
- </h:outputText>
- </div>
- <div class="sample-container" >
- <h:outputText id="tt2" value="This tooltip will follow mouse" >
- <rich:toolTip followMouse="true" direction="top-right" delay="1000" styleClass="tooltip" style="width:250px">
+ <p>
+ Here you can see <b>default client-side</b> tool-tip
+ </p>
+ </rich:panel>
+ <rich:panel id="sample2" styleClass="tooltip-text">
+ <rich:toolTip followMouse="true" direction="top-right" delay="500" styleClass="tooltip" style="width:250px">
<span>
- This tooltip content also <strong>pre-rendered</strong> to the page.
- The look of this tooltip defined by styleClass attribute.
+ This tool-tip content also <strong>pre-rendered</strong> to the page.
+ However, the look of this tool-tip is customized by styleClass attribute.
</span>
</rich:toolTip>
- </h:outputText>
- </div>
- <div class="sample-container">
- <h:form>
- <h:outputText value="This tooltip rendered on server in separate request" id="tt3">
- <rich:toolTip direction="top-right" mode="ajax" verticalOffset="5" zorder="200" styleClass="tooltip">
- <f:facet name="defaultContent">
- <strong>Wait...</strong>
- </f:facet>
- <span>This tooltip content was <strong>rendered</strong> on server </span>
- <h:panelGrid columns="2">
- <h:outputText value="tooltips requested:" />
- <h:outputText value="#{toolTipData.tooltipCounter}" styleClass="tooltipData" />
- <h:outputText value="last request:" />
- <h:outputText value="#{toolTipData.tooltipDate}" styleClass="tooltipData" >
- <f:convertDateTime pattern="mm:ss.SSS"/>
- </h:outputText>
- </h:panelGrid>
- </rich:toolTip>
- </h:outputText>
- </h:form>
+ <p>
+ This tool-tip will <b>follow mouse</b>. Also this tool-tip has a <b>delay 0.5 sec</b>, so be patient!
+ </p>
+ </rich:panel>
+ <h:form>
+ <rich:panel id="sample3" styleClass="tooltip-text">
+ <rich:toolTip direction="top-right" mode="ajax" styleClass="tooltip">
+ <f:facet name="defaultContent">
+ <strong>Wait...</strong>
+ </f:facet>
+ <span >This tool-tip content was <strong>rendered on server</strong> </span>
+ <h:panelGrid columns="2">
+ <h:outputText value="tooltips requested:" />
+ <h:outputText value="#{toolTipData.tooltipCounter}" styleClass="tooltipData" />
+ </h:panelGrid>
+ </rich:toolTip>
+ <p>
+ This tool-tip rendered on server <b>in separate request</b>.
+ </p>
+ </rich:panel>
+ </h:form>
+ <h:form>
+ <rich:panel id="sample4" styleClass="tooltip-text">
+ <rich:toolTip event="onclick" direction="bottom-left" mode="ajax" styleClass="tooltip">
+ <f:facet name="defaultContent">
+ <strong>Wait...</strong>
+ </f:facet>
+ <span >This tool-tip content was <strong>rendered on server</strong> </span>
+ <h:panelGrid columns="2">
+ <h:outputText value="tooltips requested:" />
+ <h:outputText value="#{toolTipData.tooltipCounter}" styleClass="tooltipData" />
+ </h:panelGrid>
+ </rich:toolTip>
+ <p>
+ This tool-tip will be <b>activated on mouse click</b>. It also has a <b>bottom-left</b> position.
+ </p>
+ </rich:panel>
+ </h:form>
+ </h:panelGrid>
</div>
</ui:define>
<ui:define name="sources">
17 years, 4 months
JBoss Rich Faces SVN: r1968 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-31 20:05:47 -0400 (Tue, 31 Jul 2007)
New Revision: 1968
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/usage.xhtml
Log:
demo updates
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 2007-07-31 23:22:14 UTC (rev 1967)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-01 00:05:47 UTC (rev 1968)
@@ -45,10 +45,10 @@
status= ajaxSupport, Status, /images/ico_common.gif, /images/cn_status.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/status.jsf
ajaxListener= ajaxSupport, Ajax Listener, /images/ico_common.gif, /images/cn_ajaxListener.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/ajaxListener.jsf
region= ajaxSupport, Ajax Region, /images/ico_common.gif, /images/cn_ajaxRegion.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/region.jsf
-loadBundle= ajaxResources, Bundle, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
+loadBundle= ajaxResources, Bundle, /images/ico_common.gif, /images/cn_Bundle.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/bundle.jsf
loadScript= ajaxResources, Script, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
loadStyle= ajaxResources, Style, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
-keepAlive= ajaxResources, Keep Alive, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
+keepAlive= ajaxResources, Keep Alive, /images/ico_common.gif, /images/cn_keepAlive.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/keepAlive.jsf
include= ajaxOutput, Include, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
outputPanel= ajaxOutput, Output Panel, /images/ico_common.gif, /images/cn_common.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/panel.jsf
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.html 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1 @@
+TODO: source should be added
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/source/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1 @@
+x
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1,30 @@
+<!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.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>a4j:loadBundle allows to use reference to bundle messages during the Ajax re-rendering.
+ a4j:loadBundle is a substitute for the f:loadBundle in JSF 1.1 which is not a JSF component originally.
+ f:loadBundle is a jsp tag that load the bundle messages into the request scope when page is
+ rendered. As soon as each Ajax request works in own request scope, the bundles loaded with
+ f:loadBundle are unavailable.
+ </p>
+ <p>Instead of f:loadBundle that might be located anywhere on the page, the a4j:loadBundle
+ should be declared inside the f:view (this does not matter in case on using Facelets)
+ </p>
+
+ <p>JSF 1.2 introduces the bundle registered in the faces-config.xml. This fixed the problem
+ with f:loadBundle. Therefore, you can use this JSF 1.2 way to declare your bundles.
+ </p>
+
+ </ui:define>
+ <ui:define name="sources">
+ <h:panelGroup />
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1,17 @@
+<!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:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Load Bundle</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/bundle/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.html 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1 @@
+TODO: source should be added
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1 @@
+x
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1,42 @@
+<!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.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ a4j:keepAlive extends the live cycle for request scope beans. In general, each Ajax
+ request works inside the own request scope. Therefore, the state of the component
+ tree rendered based on the variable from one request scope does not correspond to the
+ state of the same tree processed during the next Ajax request. This causes on of
+ the most popular problem when the form elements (buttons or fields) appear on
+ the page after the previous Ajax response will not processed during after that if
+ 'rendered' attribute reference to the request scope variable.
+ </p>
+ <p>Using the session scope variables solved the problem mentioned above. However,
+ using a session scope might be inappropriate from the architectural point of view.
+ a4j:keepAlive allows to reuse the same value for request scope bean between
+ the several Ajax requests.
+ </p>
+ <p>
+ <b>beanName</b> attribute references to the requesr scope bean name you want
+ to re-use during the Ajax requests.
+ </p>
+ <p><b>ajaxOnly</b> attribute is a flag that declare should the value of the bean
+ still be available during the non-Ajax request. If ajaxOnly="true", the request
+ scope bean will keep the same value during the Ajax requests from given page, but
+ it will be re-created as a regular request scope bean when a non-Ajax request
+ will send from this page.
+ </p>
+ <div class="sample-container" >
+ </div>
+ </ui:define>
+ <ui:define name="sources">
+ Here is a fragment of page sources for the given example:
+ <iframe src="${facesContext.externalContext.requestContextPath}/richfaces/keepAlive/source/usage.html" class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -0,0 +1,17 @@
+<!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:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Keep Bean Alive</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/keepAlive/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/usage.xhtml 2007-07-31 23:22:14 UTC (rev 1967)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/usage.xhtml 2007-08-01 00:05:47 UTC (rev 1968)
@@ -17,6 +17,7 @@
<div class="sample-container" >
<h:outputText value="Ajax Status:"/>
+
<a4j:status id="commonstatus" startText="In progress..." stopText="Complete"/>
<h:form>
@@ -40,22 +41,25 @@
<p>
In case of not stopText nor facet name="stop" are not defined, the stop stage will
not have a visual representation. You can use this option if you want to show only
- "in progress" indicatior. The following example show the graphic image at the top
- right hand corner of this page during the Ajax request.
+ "in progress" indicatior. The following example show the graphic image to
+ the right of the input field during the Ajax request.
</p>
<div class="sample-container" >
<a4j:region id="rb">
- <a4j:status>
- <f:facet name="start">
- <h:graphicImage style="position:absolute;top:120px;right:10px" value="/images/ajax/ajax_process.gif"/>
- </f:facet>
- </a4j:status>
-
-
- <h:form>
- <a4j:commandButton eventsQueue="foo2" value="Ajax Request 2"/>
- </h:form>
+ <h:panelGrid columns="2">
+
+ <h:form>
+ <a4j:commandButton eventsQueue="foo2" value="Ajax Request 2"/>
+ </h:form>
+
+ <a4j:status>
+ <f:facet name="start">
+ <h:graphicImage value="/images/ajax/ajax_process.gif"/>
+ </f:facet>
+ </a4j:status>
+
+ </h:panelGrid>
</a4j:region>
</div>
@@ -70,7 +74,7 @@
This client id of the a4j:status component is assigned based on the following pattern:
<working region Id>:status . <b>for</b> attribute defines the id of the region the
a4j:status will work for. If 'for' attribute is not defined, the working region will be the
- region, the a4j:status located into.
+ region, the a4j:status located into. The root region has a "_viewRoot" name.
</p>
<p><b>forceId</b> attribute allows to replace the ":status" postfix of the client id with the
defined 'id' attribute. If 'forceId' attribute is not defined, the defined 'id' attribute
@@ -96,6 +100,7 @@
<div class="sample-container" >
+ <rich:separator height="1"/>
<a4j:region id="extr">
<h:form>
<h:outputText value="Status:" />
@@ -104,28 +109,33 @@
<h:panelGrid columns="2">
<h:outputText value="Name"/>
<h:inputText id="name" value="#{userBean.name}">
- <a4j:support event="onkeyup" />
+ <a4j:support event="onkeyup" reRender="out" />
</h:inputText>
<h:outputText value="Job"/>
<a4j:region id="intr">
<h:inputText id="job" value="#{userBean.job}">
- <a4j:support event="onkeyup" status="commonstatus"/>
+ <a4j:support event="onkeyup" reRender="out" status="commonstatus"/>
</h:inputText>
</a4j:region>
<h:panelGroup />
- <a4j:region>
- <a4j:commandButton ajaxSingle="true" value="Clean Up Form" reRender="name, job">
- <a4j:actionparam name="n" value="" assignTo="#{userBean.name}" />
- <a4j:actionparam name="j" value="" assignTo="#{userBean.job}" />
- </a4j:commandButton>
- </a4j:region>
+
</h:panelGrid>
+ <a4j:region>
+ <h:outputText id="out" value="Name: #{userBean.name}, Job: #{userBean.job}" />
+ <br />
+ <a4j:commandButton ajaxSingle="true" value="Clean Up Form" reRender="name, job, out" status="commonstatus">
+ <a4j:actionparam name="n" value="" assignTo="#{userBean.name}" />
+ <a4j:actionparam name="j" value="" assignTo="#{userBean.job}" />
+ </a4j:commandButton>
+ </a4j:region>
+
</h:form>
</a4j:region>
+ <rich:separator height="1" style="padding-top:10px"/>
</div>
</ui:define>
17 years, 4 months