Author: SergeySmirnov
Date: 2007-07-23 20:52:42 -0400 (Mon, 23 Jul 2007)
New Revision: 1814
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/dynamic-css.xhtml
Log:
added: ajax attributes
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2007-07-24
00:40:36 UTC (rev 1813)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2007-07-24
00:52:42 UTC (rev 1814)
@@ -29,11 +29,13 @@
this.screenHeight = screenHeight;
}
- public void nameItJohn() {
+ public String nameItJohn() {
setName("Jonh");
+ return null;
}
- public void nameItMark() {
+ public String nameItMark() {
setName("Mark");
+ return null;
}
public String getJob() {
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-24
00:40:36 UTC (rev 1813)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-07-24
00:52:42 UTC (rev 1814)
@@ -33,6 +33,7 @@
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_actionparam.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_panel.gif,
/images/cn_panel.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/ajaxAttributes/source/usage.html
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.html
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.html 2007-07-24
00:52:42 UTC (rev 1814)
@@ -0,0 +1 @@
+TODO: source should be added
\ No newline at end of file
Property changes on:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.xhtml 2007-07-24
00:52:42 UTC (rev 1814)
@@ -0,0 +1 @@
+x
\ No newline at end of file
Property changes on:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/source/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.xhtml 2007-07-24
00:52:42 UTC (rev 1814)
@@ -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 -
Ajax Attributes</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/ajaxAttributes/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Property changes on:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
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-24
00:40:36 UTC (rev 1813)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-07-24
00:52:42 UTC (rev 1814)
@@ -9,7 +9,7 @@
<ui:define name="sample">
<style>
- input[type="button"] {
+ input[type="button"], input[type="submit"] {
background-color:#{a4jSkin.trimColor};
}
</style>
@@ -33,15 +33,15 @@
....
<-- This code does not work correctly -->
<h:form>
- ....
- <a4j:commandButton value="Update Non-Ajax Link"
reRender="panel" />
- ....
- <h:panelGrid id="panel">
- ....
- <h:commandLink value="Non-Ajax Submit" action="foo"
/>
- ....
- </h:panelGrid>
- ....
+ ....
+ <a4j:commandButton value="Update Non-Ajax Link"
reRender="panel" />
+ ....
+ <h:panelGrid id="panel">
+ ....
+ <h:commandLink value="Non-Ajax Submit" action="foo"
/>
+ ....
+ </h:panelGrid>
+ ....
</h:form>
</pre>
</p>
@@ -80,6 +80,7 @@
<h:outputText id="name" value="Name:#{userBean.name}"
/>
</h:panelGrid>
</a4j:form>
+
</rich:panel>
</h:panelGrid>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/templates/include/dynamic-css.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/templates/include/dynamic-css.xhtml 2007-07-24
00:40:36 UTC (rev 1813)
+++
trunk/samples/richfaces-demo/src/main/webapp/templates/include/dynamic-css.xhtml 2007-07-24
00:52:42 UTC (rev 1814)
@@ -26,6 +26,13 @@
.inactive_tab {
background-image :
url(${facesContext.externalContext.requestContextPath}/images/tabpanel_custom/tab_active_bg.gif);
}
+h1.hsample {
+ font-size:14px;
+}
+div.esample {
+ border:1px solid #CCCCCC;
+ padding:0px 8px 0px 8px;
+}
</style>
</ui:composition>
</html>