Author: SergeySmirnov
Date: 2007-07-26 17:33:54 -0400 (Thu, 26 Jul 2007)
New Revision: 1875
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/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-26
19:40:32 UTC (rev 1874)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-07-26
21:33:54 UTC (rev 1875)
@@ -33,18 +33,18 @@
menuGroup= richMenu, Menu Group,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.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/dropDownMenu.jsf
menuItem= richMenu, Menu Item,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.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/dropDownMenu.jsf
menuSeparator= richMenu, Menu Separator,
/images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.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/dropDownMenu.jsf
-ajaxattributes= ajaxSupport, Ajax Attributes,
/images/ico_ajaxAttributes.gif, /images/cn_ajaxAttributes.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/ajaxAttributes.jsf
-actionparam= ajaxSupport, Action Parameter,
/images/ico_actionparam.gif, /images/cn_actionParameter.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/actionparam.jsf
-commandButton= ajaxSupport, Command Button,
/images/ico_commandButton.gif, /images/cn_commandButton.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/commandButton.jsf
-commandLink= ajaxSupport, Command Link, /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
-form= ajaxSupport, Ajax Form, /images/ico_form.gif,
/images/cn_ajaxForm.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/form.jsf
-support= ajaxSupport, Ajax Support, /images/ico_support.gif,
/images/cn_ajaxSupport.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/support.jsf
+ajaxattributes= ajaxSupport, Ajax Attributes,
/images/ico_common.gif, /images/cn_ajaxAttributes.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/ajaxAttributes.jsf
+actionparam= ajaxSupport, Action Parameter, /images/ico_common.gif,
/images/cn_actionParameter.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/actionparam.jsf
+commandButton= ajaxSupport, Command Button, /images/ico_common.gif,
/images/cn_commandButton.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/commandButton.jsf
+commandLink= ajaxSupport, Command Link, /images/ico_common.gif,
/images/cn_commandLink.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/commandLink.jsf
+form= ajaxSupport, Ajax Form, /images/ico_common.gif,
/images/cn_ajaxForm.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/form.jsf
+support= ajaxSupport, Ajax Support, /images/ico_common.gif,
/images/cn_ajaxSupport.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/support.jsf
jsFunction= ajaxSupport, JavaScript Function, /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
poll= ajaxSupport, Poll, /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
push= ajaxSupport, Push, /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
status= ajaxSupport, Status, /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
ajaxListener= ajaxSupport, Ajax Listener, /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
-region= ajaxSupport, Ajax Region, /images/ico_region.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
+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
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
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml 2007-07-26
19:40:32 UTC (rev 1874)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml 2007-07-26
21:33:54 UTC (rev 1875)
@@ -38,8 +38,13 @@
<rich:separator width="1" style="padding-top:10px" />
</div>
+ <p>
+ For additional information about attributes of this compponent read
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/ajaxAttributes.jsf?c=ajaxattributes">
+ <h:outputText value="'Ajax Attribute' section" />
+ </h:outputLink>.
+ </p>
-
</ui:define>
<ui:define name="sources">
Here is a fragment of page sources for the given example:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-07-26
19:40:32 UTC (rev 1874)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-07-26
21:33:54 UTC (rev 1875)
@@ -8,7 +8,7 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
- <style>
+ <style type="text/css">
input[type="button"], input[type="submit"] {
background-color:#{a4jSkin.trimColor};
}
@@ -46,7 +46,7 @@
</pre>
</p>
<p>
- When ajaxSubmit"true", all included in the form non-ajax control becomes
ajaxable. This
+ When ajaxSubmit="true", all included in the form non-ajax control becomes
ajaxable. This
approach is similar to the one AjaxAnywhere framework uses. If form works in ajax
mode,
the standard ajax attribute such as reRender, eventQueue, requestDelay can be used.
The
following example demonstate the difference between partial and full-page refreshing.
@@ -91,7 +91,12 @@
Also, due to the security reason, uploadFile form element cannot be convertable to
the be ajaxable.
</p>
-
+ <p>
+ For additional information about attributes of this compponent read
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/ajaxAttributes.jsf?c=ajaxattributes">
+ <h:outputText value="'Ajax Attribute' section" />
+ </h:outputLink>.
+ </p>
</ui:define>
<ui:define name="sources">
Here is a fragment of page sources for the given example:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-07-26
19:40:32 UTC (rev 1874)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-07-26
21:33:54 UTC (rev 1875)
@@ -14,12 +14,16 @@
are based on the same principles a4j:support has.
</p>
<p> a4j:support should be attached a direct child of the JSF component that has
to be ajaxified.
- The key attributes are 'event' and 'reRender'. 'event'
attribute defines the javascript
- event the ajax support will be attached at. 'reRender' attribute points to
the JSF
- component(s) that should be re-rendered on the server side and updated on the
- client when ajax response come back.
+ The key attributes are 'event' and 'reRender'.
</p>
<p>
+ <b>event</b> attribute defines the javascript event the ajax support will
be attached at.
+ </p>
+ <p>
+ 'reRender' attribute points to the JSF component(s) that should be
re-rendered on the server side
+ and updated on the client when ajax response come back.
+ </p>
+ <p>
The following example shows how the outputText component value is changed while user
is
typing in the input field:
</p>
@@ -45,18 +49,19 @@
on the client side is not supported.
</p>
+
<p>
- reRender attribute allows to use JSF EL expression as value. So, you can create
- a list dynamically deciding what should be re-rendered as a result of ajax request.
- </p>
-
- <p>
In case of attaching a4j:support to non-Ajax JSF command component, such as
h:commandButton
or h:commandLink, it is important to set disableDefault equals true. Otherwise,
non-ajax
request will be send just after ajax request and the page will be unexpectedly
refreshed.
</p>
-
+ <p>
+ For additional information about attributes of this compponent read
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/ajaxAttributes.jsf?c=ajaxattributes">
+ <h:outputText value="'Ajax Attribute' section" />
+ </h:outputLink>.
+ </p>
</ui:define>