JBoss Ajax4JSF SVN: r284 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-27 07:29:55 -0400 (Wed, 27 Jun 2007)
New Revision: 284
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGlinks.xml
Log:
grammatical error is fixed
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGlinks.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGlinks.xml 2007-06-27 09:40:55 UTC (rev 283)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGlinks.xml 2007-06-27 11:29:55 UTC (rev 284)
@@ -11,7 +11,7 @@
<keyword>Ajax4jsf</keyword>
</keywordset>
</chapterinfo>
- <title>Links Web Resources</title>
+ <title>Links to Web Resources</title>
<para><table>
<title>Ajax4jsf Resources</title>
<tgroup cols="2">
17 years, 6 months
JBoss Ajax4JSF SVN: r283 - trunk/docs/userguide/en/src/main/docbook/included.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-27 05:40:55 -0400 (Wed, 27 Jun 2007)
New Revision: 283
Modified:
trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/loadScript.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/loadStyle.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
trunk/docs/userguide/en/src/main/docbook/included/log.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/log.xml
Log:
Language correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -4,7 +4,7 @@
<property><a4j:keepAlive></property>
</emphasis> component allows to keep a state of each bean between requests.</para>
<para>
- Some additional information about usage of components you can find <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
+ Some additional information about usage of components can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
</ulink>
</para>
</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadScript.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadScript.desc.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadScript.desc.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -5,8 +5,7 @@
<title>Description</title>
<para>
Inserts script links to the head element. Render the value of the component as the value of
- the "src" attribute, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result
- through the encodeResourceURL() method of the ExternalContext.
+ the "src" attribute, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result through the encodeResourceURL() method of the ExternalContext.
</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadStyle.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadStyle.desc.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadStyle.desc.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -4,8 +4,7 @@
<title>Description</title>
<para>
Inserts stylesheet links to the head element. Render the value of the component as the value of
- the "src" attribute, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result
- through the encodeResourceURL() method of the ExternalContext.
+ the "src" attribute, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result through the encodeResourceURL() method of the ExternalContext.
</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadStyle.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -49,7 +49,7 @@
<para>
As it was mentioned <link linkend="loadStyle">before</link> this componment returns its value passing it to the
getResourceUR() method of the ViewHandler for this application, and passing
- the result through the encodeResourceURL() method of the ExternalContext.
+ the result via the encodeResourceURL() method of the ExternalContext.
</para>
<para>
It means that the Context will be inserts automatically to the link. And calls
Modified: trunk/docs/userguide/en/src/main/docbook/included/log.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/log.desc.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/log.desc.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -4,6 +4,6 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><a4j:log ></property>
- </emphasis> component generates JavaScript for opening of the window with client-side debug information on AJAX request.</para>
+ </emphasis> component generates JavaScript for opening of the window with client-side debug information on an AJAX request.</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/log.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-06-26 05:29:19 UTC (rev 282)
+++ trunk/docs/userguide/en/src/main/docbook/included/log.xml 2007-06-27 09:40:55 UTC (rev 283)
@@ -34,7 +34,7 @@
<section>
<title>Creating on a page</title>
<para>To use the component, it's necessary to place the following string on a page:</para><programlisting role="XML"><![CDATA[<a4j:log/>]]></programlisting>
- <para>Then, in order to open a log window, press "CTRL+SHIFT+L" on a page with the component.</para>
+ <para>Then, in order to open a log window, press "CTRL+SHIFT+L" on a page with the component.</para>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
17 years, 6 months
JBoss Ajax4JSF SVN: r281 - in trunk/samples: gwtjsf and 22 other directories.
by ajax4jsf-svn-commits@lists.jboss.org
Author: RobJellinghaus
Date: 2007-06-26 01:10:05 -0400 (Tue, 26 Jun 2007)
New Revision: 281
Added:
trunk/samples/gwtjsf/
trunk/samples/gwtjsf/a4j-gwtKickStart/
trunk/samples/gwtjsf/a4j-gwtKickStart/.gwt-cache/
trunk/samples/gwtjsf/a4j-gwtKickStart/.gwt-cache/bytecode/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml.l4t
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/history.html
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/index.html
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_closed.gif
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_open.gif
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_white.gif
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/module.taglib.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/HelloWidget.gwt.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/GreetingBean.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/bundle/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/bundle/Labels.properties
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/EventData.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/HelloWidgetEntryPoint.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingService.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingServiceAsync.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/ResultGreeting.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/jsf/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/jsf/UIHelloWidget.java
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/public/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/public/index.html
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/server/
trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/server/MockHelloWidget.java
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/faces-config.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/common-annotations.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-collections.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-digester.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-logging.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-api.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-ri.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jep-2.4.0.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-api.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-facelets.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-impl.jar
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/web.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/index.jsp
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/pages/
trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/pages/Base.xhtml
trunk/samples/gwtjsf/a4j-gwtKickStart/build.properties.sample
trunk/samples/gwtjsf/a4j-gwtKickStart/build.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/readme.txt
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/TestCase.gwt.xml
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/client/
trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/client/EntryPointTestCase.java
Log:
This commit lands a modified version of the original a4j-gwtKickStart
example, tweaked to demonstrate the new GWT 1.4-based features of the
GWTJSF library.
Also see this thread:
http://jboss.com/index.html?module=bb&op=viewtopic&t=111314
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+ 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">
+ <component>
+ <component-type>demo.gwt.HelloWidget</component-type>
+ <component-class>demo.gwt.jsf.UIHelloWidget</component-class>
+ </component>
+</faces-config>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml.l4t
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml.l4t (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/faces-config.xml.l4t 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS ENTITY="JSFProcess"/>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/history.html
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/history.html (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/history.html 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,20 @@
+<html>
+<head>
+<script>
+function hst() {
+ var search = location.search;
+ var historyToken = '';
+ if (location.search.length > 0)
+ historyToken = decodeURIComponent(location.search.substring(1));
+
+ document.getElementById('__historyToken').value = historyToken;
+ if (parent.__onHistoryChanged)
+ parent.__onHistoryChanged(historyToken);
+}
+</script></head>
+<body onload='hst()'>
+
+<input type='text' id='__historyToken'>
+
+</body>
+</html>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/index.html
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/index.html (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/index.html 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <meta name="gwt:module" content="demo.gwt.HelloWidget">
+ <meta name="gwt:property" content="viewid=hello">
+ <meta name="gwt:property" content="action=/gwtFacesServlet">
+ <title>gwt-jsf integration</title>
+ </head>
+ <body bgcolor="white">
+ <script language="javascript" src="gwt.js"></script>
+ <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
+ <span id="_id1" class="demo.gwt.HelloWidget">
+ <span id="_id1:_data" style="display:none;">
+ <span title="buttonLabel">Say Hello</span>
+ <span title="greeting">Hello GWT!</span>
+ <span title="requestGreetingService">false</span>
+ </span>
+ <input type="hidden" id="javax.faces.ViewState" name="javax.faces.ViewState" value="_id0:_id0" />
+ </span>
+
+ </body>
+</html>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_closed.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_closed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_open.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_open.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_white.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/gwt/demo.gwt.HelloWidget/tree_white.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/module.taglib.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/module.taglib.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/META-INF/module.taglib.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE facelet-taglib PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
+ "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
+<facelet-taglib xmlns="http://java.sun.com/JSF/Facelet">
+ <namespace>https://ajax4jsf.dev.java.net/gwt/HelloWidget</namespace>
+
+
+ <tag>
+ <tag-name>component</tag-name>
+ <component>
+ <component-type>demo.gwt.HelloWidget</component-type>
+ <renderer-type>org.ajax4jsf.gwt.Widget</renderer-type>
+ <handler-class>org.ajax4jsf.gwt.jsf.GwtComponentHandler</handler-class>
+ </component>
+
+ </tag>
+</facelet-taglib>
\ No newline at end of file
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/HelloWidget.gwt.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/HelloWidget.gwt.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/HelloWidget.gwt.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,10 @@
+<module>
+
+ <!-- Inherit the core Web Toolkit stuff. -->
+ <inherits name='com.google.gwt.user.User'/>
+ <inherits name='org.ajax4jsf.gwt.Jsf'/>
+ <!-- Specify the app entry point class. -->
+ <entry-point class='demo.gwt.client.HelloWidgetEntryPoint'/>
+ <public path="public"/>
+ <source path="client"/>
+</module>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/GreetingBean.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/GreetingBean.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/GreetingBean.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,37 @@
+package demo.gwt.app;
+import demo.gwt.client.ResultGreeting;
+import demo.gwt.client.EventData;
+import demo.gwt.client.RequestGreetingService;
+
+public class GreetingBean implements RequestGreetingService {
+ String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * This method is invoked via the JSF GwtListenerMethodHelper:
+ * <gwt:gwtListener method="#{greetingBean.takeGreeting}" event ="demo.gwt.client.EventData"/>
+ * @param event the event data passed to the sendEvent method from the GWT client side
+ * @return the GwtFacesresult data object that gets passed back from sendEvent
+ */
+ public ResultGreeting takeGreeting(EventData event) {
+ name = event.getName();
+ ResultGreeting result = new ResultGreeting();
+ result.setGreetingText("Hello " + name + " from JSF!");
+ return result;
+ }
+
+ /**
+ * This method is invoked via the JSF GwtListenerHelper:
+ * <gwt:gwtListener binding="#{greetingBean}"/>
+ */
+ public String makeGreeting (String input) {
+ return "Hello " + input + " from JSF RequestGreetingService interface!";
+ }
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/bundle/Labels.properties
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/bundle/Labels.properties (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/app/bundle/Labels.properties 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,2 @@
+#
+buttonLabel=Say Hello!
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/EventData.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/EventData.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/EventData.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,16 @@
+package demo.gwt.client;
+
+import org.ajax4jsf.gwt.client.GwtFacesEvent;
+
+public class EventData extends GwtFacesEvent {
+ String name;
+
+public String getName() {
+ return name;
+}
+
+public void setName(String name) {
+ this.name = name;
+}
+
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/HelloWidgetEntryPoint.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/HelloWidgetEntryPoint.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/HelloWidgetEntryPoint.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,130 @@
+package demo.gwt.client;
+
+import java.util.Map;
+
+import org.ajax4jsf.gwt.client.ComponentEntryPoint;
+import org.ajax4jsf.gwt.client.GwtFacesServiceAsync;
+
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.rpc.ServiceDefTarget;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.TextBox;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.core.client.GWT;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class HelloWidgetEntryPoint extends ComponentEntryPoint {
+Label status;
+TextBox input;
+ protected Widget createWidget(final String id) {
+
+ Map m = getWidgetParams(id);
+ final String buttonLabel = (String) m.get("buttonLabel");
+
+ HorizontalPanel panel = new HorizontalPanel();
+
+
+ input = new TextBox();
+ status = new Label("Loaded.");
+
+ Button btn;
+
+ // This parameter is used only to allow this example to use either the old-style
+ // GwtFacesService or the new-style RequestGreetingService. Typical widgets will
+ // use one RPC style or the other, and won't need a special parameter to designate
+ // which.
+
+ final String useRequestGreetingService = (String)m.get("requestGreetingService");
+ if ("true".equals(useRequestGreetingService)) {
+
+ // Set up a RequestGreetingService, specific to this particular component, which
+ // routes to a specific bean that implements RequestGreetingService.
+ //
+ // The JSF uses this tag to wire the service up:
+ // <gwt:gwtListener binding="#{greetingBean}"/>
+ //
+ final RequestGreetingServiceAsync requestGreetingService = createRequestGreetingService(id);
+
+ final AsyncCallback requestGreetingCallback = new AsyncCallback () {
+ public void onSuccess (Object result) {
+ if (null != result) {
+ status.setText("Loaded 2");
+ Window.alert((String)result);
+ } else {
+ status.setText("Request finished, but the result is empty");
+ }
+ }
+
+ public void onFailure(Throwable caught) {
+ status.setText("Error call :" + caught.getMessage());
+ }
+ };
+
+ btn = new Button(buttonLabel, new ClickListener() {
+ public void onClick(Widget sender) {
+ requestGreetingService.makeGreeting(input.getText(), requestGreetingCallback);
+ status.setText("Loading...");
+ }
+ });
+
+ } else {
+
+ // Set up a GwtFacesService which supports invoking an individual method on an arbitrary bean,
+ // using the GwtFacesResult GwtFacesService.sendEvent(GwtFacesEvent) service.
+ //
+ // The JSF uses this tag to wire the service up:
+ // <gwt:gwtListener method="#{greetingBean.takeGreeting}" event ="demo.gwt.client.EventData"/>
+ //
+ final GwtFacesServiceAsync facesService = createFacesService(id);
+
+ final AsyncCallback facesServiceCallback = new AsyncCallback() {
+ public void onSuccess(Object result) {
+ if (null != result) {
+ status.setText("Loaded");
+ String greeting = ((ResultGreeting)result).getGreetingText();
+ Window.alert(greeting);
+ } else {
+ status.setText("Request finished, but the result is empty");
+ }
+ }
+
+ public void onFailure(Throwable caught) {
+ status.setText("Error call :" + caught.getMessage());
+ }
+ };
+
+ btn = new Button(buttonLabel, new ClickListener() {
+ public void onClick(Widget sender) {
+ EventData eventData = new EventData();
+ eventData.setName(input.getText());
+ facesService.sendEvent(eventData, facesServiceCallback);
+ status.setText("Loading...");
+ }
+ });
+ }
+
+
+ panel.add(input);
+ panel.add(btn);
+ panel.add(status);
+ return panel;
+ }
+
+
+ private static RequestGreetingServiceAsync createRequestGreetingService (String clientId) {
+ RequestGreetingServiceAsync service = (RequestGreetingServiceAsync) GWT
+ .create(RequestGreetingService.class);
+ String endpoint = getEndpoint();
+ if (null != clientId) {
+ endpoint = endpoint + "&clientId=" + clientId;
+ }
+ ((ServiceDefTarget) service).setServiceEntryPoint(endpoint);
+ return service;
+ }
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingService.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingService.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingService.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,13 @@
+package demo.gwt.client;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+
+/**
+ * An interface exposed directly by the ResultGreeting bean.
+ */
+public interface RequestGreetingService extends RemoteService {
+ /**
+ * Get the greeting string, given the input string.
+ */
+ public String makeGreeting (String input);
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingServiceAsync.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingServiceAsync.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/RequestGreetingServiceAsync.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,14 @@
+package demo.gwt.client;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * An interface exposed directly by the ResultGreeting bean.
+ */
+public interface RequestGreetingServiceAsync extends RemoteService {
+ /**
+ * Get the greeting string, given the input string.
+ */
+ public void makeGreeting (String input, AsyncCallback callback);
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/ResultGreeting.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/ResultGreeting.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/client/ResultGreeting.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,15 @@
+package demo.gwt.client;
+
+import org.ajax4jsf.gwt.client.GwtFacesResult;
+
+public class ResultGreeting extends GwtFacesResult {
+ String greetingText;
+
+ public String getGreetingText() {
+ return this.greetingText;
+ }
+
+ public void setGreetingText(String greetingText) {
+ this.greetingText = greetingText;
+ }
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/jsf/UIHelloWidget.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/jsf/UIHelloWidget.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/jsf/UIHelloWidget.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,150 @@
+/**
+ * Licensed under the Common Development and Distribution License,
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.sun.com/cddl/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package demo.gwt.jsf;
+
+import java.util.Map;
+import java.util.HashMap;
+import javax.el.MethodExpression;
+import javax.faces.FacesException;
+import javax.faces.component.UIComponentBase;
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.gwt.client.ComponentEntryPoint;
+import org.ajax4jsf.gwt.client.GwtFacesEvent;
+import org.ajax4jsf.gwt.client.GwtFacesResult;
+import org.ajax4jsf.gwt.jsf.GwtComponent;
+import org.ajax4jsf.gwt.jsf.GwtListener;
+import org.ajax4jsf.gwt.jsf.GwtSource;
+
+/**
+ * @author GENERATED BY ANT BUILD
+ *
+ */
+public class UIHelloWidget extends UIComponentBase implements GwtComponent,GwtSource {
+
+ /**
+ * field for instance of listener for GWT RPC events.
+ */
+ private MethodExpression _gwtActionListener;
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.faces.component.UIComponent#getFamily()
+ */
+ public String getFamily() {
+ return "org.ajax4jsf.gwt.Widget";
+ }
+
+ /**
+ *
+ * @return Google web toolkit Module name for widget associated with component.
+ */
+ public String getModuleName() {
+ return "demo.gwt.HelloWidget";
+ }
+
+ /**
+ * For more then one Widget in one module, You can set concrete widget name associated with component.
+ * this name is optional, You can use it in EntryPoint method createWidget for choice.
+ * @return name of widget in module
+ */
+ public String getWidgetName() {
+ // For more then one widget in library spesify widget name in component.
+ return "HelloWidget";
+ }
+
+
+ /**
+ * Base renderer for widgets put parameters returned by this method into html
+ * code - on client side, you can got acces to it by {@link ComponentEntryPoint#getWidgetParams(String id)} method
+ */
+ public Map getWidgetParameters() {
+ HashMap params = new HashMap();
+ params.put("greeting",getAttributes().get("greeting"));
+ params.put("buttonLabel",getAttributes().get("buttonLabel"));
+ params.put("requestGreetingService",getAttributes().get("requestGreetingService"));
+ return params;
+ }
+
+ /**
+ * @return Returns the gwtActionListener.
+ */
+ public MethodExpression getGwtActionListener() {
+ return _gwtActionListener;
+ }
+
+ /**
+ * @param gwtActionListener The gwtActionListener to set.
+ */
+ public void setGwtActionListener(MethodExpression gwtActionListener) {
+ _gwtActionListener = gwtActionListener;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponentBase#restoreState(javax.faces.context.FacesContext, java.lang.Object)
+ */
+ public void restoreState(FacesContext context, Object state) {
+ Object[] states = (Object[]) state;
+ super.restoreState(context, states[0]);
+ _gwtActionListener = (MethodExpression) restoreAttachedState(context,states[1]);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponentBase#saveState(javax.faces.context.FacesContext)
+ */
+ public Object saveState(FacesContext context) {
+ Object[] states = new Object[2];
+ states[0] = super.saveState(context);
+ states[1] = saveAttachedState(context,_gwtActionListener);
+ return states;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.gwt.jsf.GwtSource#addGwtListener(org.ajax4jsf.gwt.jsf.GwtListener)
+ */
+ public void addGwtListener(GwtListener listener) {
+ addFacesListener(listener);
+ }
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.gwt.jsf.GwtSource#getGwtListeners()
+ */
+ public GwtListener[] getGwtListeners() {
+ return (GwtListener[]) getFacesListeners(GwtListener.class);
+ }
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.gwt.jsf.GwtSource#removeGwtListener(org.ajax4jsf.gwt.jsf.GwtListener)
+ */
+ public void removeGwtListener(GwtListener listener) {
+ removeFacesListener(listener);
+ }
+
+ /*
+// * If You dont need to listeners, change GwtSource implementation to GwtListener and uncoment next methods
+// *
+ public GwtFacesResult processEvent( GwtFacesEvent event ) {
+ GwtFacesResult res = null;
+ // Insert processing code here, like
+ // res = getGwtActionListener().invoke(getFacesContext()..getELContext(),new Object[] { event });
+ return res;
+ }
+
+ public boolean isAcceptEvent(GwtFacesEvent event) {
+ return true;
+ }
+ */
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/public/index.html
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/public/index.html (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/public/index.html 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <meta name="gwt:module" content="demo.gwt.HelloWidget">
+ <meta name="gwt:property" content="viewid=hello">
+ <meta name="gwt:property" content="action=/gwtFacesServlet">
+ <title>gwt-jsf integration</title>
+ </head>
+ <body bgcolor="white">
+ <script language="javascript" src="gwt.js"></script>
+ <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
+ <span id="_id1" class="demo.gwt.HelloWidget">
+ <span id="_id1:_data" style="display:none;">
+ <span title="buttonLabel">Say Hello</span>
+ <span title="greeting">Hello GWT!</span>
+ <span title="requestGreetingService">false</span>
+ </span>
+ <input type="hidden" id="javax.faces.ViewState" name="javax.faces.ViewState" value="_id0:_id0" />
+ </span>
+
+ </body>
+</html>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/server/MockHelloWidget.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/server/MockHelloWidget.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/JavaSource/demo/gwt/server/MockHelloWidget.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,40 @@
+/**
+ * Licensed under the Common Development and Distribution License,
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.sun.com/cddl/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package demo.gwt.server;
+
+import demo.gwt.client.ResultGreeting;
+import demo.gwt.client.EventData;
+import org.ajax4jsf.gwt.client.GwtFacesEvent;
+import org.ajax4jsf.gwt.client.GwtFacesException;
+import org.ajax4jsf.gwt.client.GwtFacesResult;
+import org.ajax4jsf.gwt.client.GwtFacesService;
+
+/**
+ * Stub class for test RPC calls in hosted mode.
+ * If no FacesContext instance found, RPC servlet will create instance of this class
+ * and call sendEvent method.
+ */
+public class MockHelloWidget implements GwtFacesService {
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.gwt.client.GwtFacesService#sendEvent(org.ajax4jsf.gwt.client.GwtFacesEvent)
+ */
+public GwtFacesResult sendEvent(GwtFacesEvent event){
+
+ ResultGreeting result = new ResultGreeting();
+ result.setGreetingText( "Hello " + ((EventData)event).getName() );
+ return result;
+ }
+}
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/faces-config.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/faces-config.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>greetingBean</managed-bean-name>
+ <managed-bean-class>demo.gwt.app.GreetingBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>GWT and JSF</value>
+ </managed-property>
+ </managed-bean>
+
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+
+ <lifecycle>
+ <phase-listener>org.ajax4jsf.gwt.jsf.GwtPhaseListener</phase-listener>
+ </lifecycle>
+</faces-config>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-ri.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/el-ri.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jep-2.4.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jep-2.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-facelets.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/WEB-INF/web.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>HelloWidget</display-name>
+
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <!-- Use Documents Saved as *.xhtml -->
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <!-- Special Debug Output for Development -->
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/index.jsp
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/index.jsp (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/index.jsp 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="/faces/pages/Base.xhtml" />
+ </body>
+</html>
\ No newline at end of file
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/pages/Base.xhtml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/pages/Base.xhtml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/WebContent/pages/Base.xhtml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ -->
+<f:view xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:gwt="https://ajax4jsf.dev.java.net/gwt"
+ xmlns:widget="https://ajax4jsf.dev.java.net/gwt/HelloWidget"
+ contentType="text/html">
+ <f:loadBundle basename="demo.gwt.app.bundle.Labels" var="bundle"/>
+ <gwt:page title="Wrapper HTML for Widget">
+ <f:facet name="head">
+ <h:panelGroup>
+ <!-- -->
+ <!-- Use normal html, such as style -->
+ <!-- -->
+ <style>
+ body,td,a,div,.p{font-family:arial,sans-serif}
+ div,td{color:#000000}
+ a:link,.w,.w a:link{color:#0000cc}
+ a:visited{color:#551a8b}
+ a:active{color:#ff0000}
+ </style>
+ </h:panelGroup>
+ </f:facet>
+
+ <!-- This widget binds to the takeGreeting method on greetingBean, via the GwtFacesService
+ sendEvent method. -->
+ <widget:component id="main" buttonLabel="#{bundle.buttonLabel}"
+ greeting="Hello #{greetingBean.name}!" >
+ <gwt:gwtListener method="#{greetingBean.takeGreeting}" event ="demo.gwt.client.EventData"/>
+ </widget:component>
+ <br/>
+
+ <!-- this widget binds directly to the RequestGreetingService interface on greetingBean. -->
+ <widget:component id="main2" buttonLabel="#{bundle.buttonLabel}2"
+ greeting="Hello #{greetingBean.name} 2!" requestGreetingService="true">
+ <gwt:gwtListener serviceBean="#{greetingBean}"/>
+ </widget:component>
+ </gwt:page>
+</f:view>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/build.properties.sample
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/build.properties.sample (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/build.properties.sample 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,17 @@
+# path to google web toolkit installation directory.
+# this directory must contain gwt-servlet.jar and gwt-user.jar
+gwt.home=/home/shura/work/gwt-1.4.10
+
+# gwtjsf home -- this will work if you have run "mvn install" at the root of an ajax4jsf checkout,
+# or just in the gwtjsf directory.
+gwtjsf.home=../../gwtjsf/target
+gwtjsf.jar=gwtjsf-1.1.2-SNAPSHOT.jar
+gwtjsf.sources.jar=gwtjsf-1.1.2-SNAPSHOT-sources.jar
+
+# Path to JUnit home directory.
+# junit.home=/usr/local/eclipse/plugins/org.junit_3.8.1
+
+# If You plan to test JSF part with shale test environment, uncomment next lines and
+# set properly values.
+#htmlunit.home=/home/shura/work/htmlunit-1.8
+#shale.test.lib=/home/shura/work/jsf/shale-parent/shale-test/target/shale-test-1.0.3-SNAPSHOT.jar
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/build.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/build.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/build.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,330 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project name="org.ajax4jsf.gwt.sample.Components" default="help" basedir=".">
+ <description>
+ org.ajax4jsf.gwt.sample.Components build file. This is used to package up your project as a jar,
+ if you want to distribute it. This isn't needed for normal operation.
+ </description>
+
+ <!-- Load user property definition overrides -->
+ <property environment="env"/>
+ <property file="user.properties"/>
+ <property file="build.properties"/>
+ <property file="${user.home}/build.properties"/>
+
+ <!-- Establish property definition defaults -->
+ <property name="compile.debug" value="true"/>
+ <property name="compile.deprecation" value="false"/>
+ <property name="compile.optimize" value="true"/>
+ <property name="compile.source" value="1.4"/>
+ <property name="compile.target" value="1.4"/>
+ <!-- Project directories -->
+ <property name="build.dir" value="${basedir}/build"/>
+ <property name="build.expanded.dir" value="${build.dir}/widgetexpanded"/>
+ <property name="build.war.dir" value="${build.dir}/war"/>
+ <property name="tests.src.dir" value="${basedir}/tests"/>
+ <property name="tests.classes.dir" value="${build.dir}/tests"/>
+ <property name="module.src.dir" value="${basedir}/JavaSource"/>
+ <property name="build.classes.dir" value="${build.dir}/classes"/>
+
+ <!-- overridable in case of using Maven snapshot or some such -->
+ <property name="gwtjsf.jar" value="gwtjsf.jar"/>
+
+ <property name="project.name" value="a4j-gwtKickStart"/>
+
+ <property name="junit.home" value="${eclipse.home}/plugins/org.junit_3.8.1"/>
+
+ <property name="jsf.lib.home" value="WebContent/WEB-INF/lib"/>
+
+ <property name="htmlunit.home" value=""/>
+
+ <property name="shale.test.lib" value=""/>
+
+ <property name="gwt.module" value="demo.gwt.HelloWidget"/>
+
+ <property name="gwt.test.module" value="demo.gwt.TestCase"/>
+
+ <target name="help">
+ <echo>
+To build WAR file, "ant clean war".
+
+Classpath:
+
+From this project: ${basedir}/JavaSource
+From gwtjsf/target: gwtjsf.jar
+From GWT: gwt-user.jar, gwt-servlet.jar, gwt-dev-windows.jar
+From ./WebContent/WEB-INF/lib: common-annotations.jar, commons-beanutils.jar,
+commons-collections.jar, commons-digester.jar, commons-logging.jar,
+el-api.jar, el-ri.jar, jep-2.4.0.jar, jsf-api.jar, jsf-facelets.jar, jsf-impl.jar
+
+To run in hosted mode with the embedded server, set up a debugger target as follows:
+ Main class: com.google.gwt.dev.GWTShell
+ Program parameters: -out WebContent demo.gwt.HelloWidget/index.html
+ Launch directory: ${basedir}
+
+To run in hosted mode against a separate Tomcat, set up a debugger target as follows:
+ Main class: com.google.gwt.dev.GWTShell
+ Program parameters: -noserver -out WebContent http://localhost:8080/a4j-gwtKickStart
+ Launch directory: ${basedir}
+ </echo>
+ </target>
+
+
+ <!-- This is only for Linux and Mac at the present time. easy to add OS X though -->
+ <target name="init">
+ <mkdir dir="${build.dir}"/>
+ <condition property="gwt.dev.lib" value="${gwt.home}/gwt-dev-windows.jar">
+ <os family="windows"/>
+ </condition>
+ <condition property="gwt.dev.lib" value="${gwt.home}/gwt-dev-linux.jar">
+ <equals arg1="${os.name}" arg2="Linux"/>
+ </condition>
+ </target>
+
+ <!-- set classpath -->
+ <path id="project.libs.path">
+
+ <!-- this doesn't exist??? -->
+ <!-- <pathelement path="${java.class.path}/"/> -->
+
+ <pathelement path="${gwt.home}/gwt-user.jar"/>
+ <pathelement path="${gwtjsf.home}/${gwtjsf.jar}"/>
+ <pathelement path="${gwtjsf.home}/${gwtjsf.sources.jar}"/>
+ <!-- Additional dependencies (such as junit) go here -->
+ <fileset dir="WebContent/WEB-INF/lib" id="weblibs">
+ <include name="*.jar"/>
+ <exclude name="gwt*.jar"/>
+ <exclude name="jsf-api.jar"/>
+ <exclude name="jsf-impl.jar"/>
+ </fileset>
+
+ <fileset dir="${jsf.lib.home}">
+ <include name="jsf-api.jar"/>
+ <include name="jsf-impl.jar"/>
+ </fileset>
+ </path>
+
+ <path id="test.hosted.class.path">
+ <!--path refid="project.libs.path" /-->
+ <pathelement path="${gwt.home}/gwt-user.jar"/>
+ <pathelement path="${junit.home}/junit.jar"/>
+ <pathelement path="WebContent/WEB-INF/lib/gwtjsf.jar"/>
+ </path>
+
+ <path id="test.class.path">
+ <path refid="project.libs.path"/>
+ <fileset dir="${htmlunit.home}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement path="${junit.home}/junit.jar"/>
+ <pathelement path="${shale.test.lib}"/>
+ </path>
+
+
+ <target name="compile-sample" description="Compile src to bin" depends="init">
+ <mkdir dir="${build.classes.dir}"/>
+ <javac srcdir="${module.src.dir}" destdir="${build.classes.dir}" includes="**" debug="${compile.debug}"
+ debuglevel="lines,vars,source" source="${compile.source}" target="${compile.target}"
+ optimize="${compile.optimize}" deprecation="${compile.deprecation}">
+ <classpath refid="project.libs.path"/>
+ </javac>
+ </target>
+
+ <target name="compile-tests" description="Compile src to bin" depends="init">
+ <mkdir dir="${tests.classes.dir}"/>
+ <javac srcdir="${tests.src.dir}" destdir="${tests.classes.dir}" includes="**" debug="${compile.debug}"
+ debuglevel="lines,vars,source" source="${compile.source}" target="${compile.target}"
+ optimize="${compile.optimize}" deprecation="${compile.deprecation}">
+ <classpath refid="project.libs.path"/>
+ </javac>
+ </target>
+
+ <!-- =================================
+ target: compile.js
+ ================================= -->
+ <target name="compile.js" depends="compile-sample" description="--> Compile google widgets">
+ <java fork="true" dir="${basedir}" classname="com.google.gwt.dev.GWTCompiler" failonerror="true">
+ <arg value="-style"/>
+ <arg value="DETAILED"/>
+ <arg value="-out"/>
+ <arg value="${build.expanded.dir}/META-INF/gwt"/>
+ <arg value="${gwt.module}"/>
+ <classpath path="${module.src.dir}"/>
+ <classpath path="${build.classes.dir}"/>
+ <classpath location="${gwt.dev.lib}"></classpath>
+ <classpath refid="project.libs.path"></classpath>
+ </java>
+ </target>
+
+ <!-- =================================
+ target: hosted mode shell
+ ================================= -->
+ <target name="shell" depends="compile-sample" description="--> Compile google widgets hosted mode shell ">
+ <delete dir="${build.dir}/tomcat/work" failonerror="false"/>
+ <java fork="true" dir="${build.dir}" classname="com.google.gwt.dev.GWTShell">
+ <arg value="-style"/>
+ <arg value="detailed"/>
+ <arg value="-out"/>
+ <arg value="WebContent"/>
+ <arg value="${gwt.module}/index.html"/>
+ <classpath path="${module.src.dir}"/>
+ <classpath path="${build.classes.dir}"/>
+ <classpath location="${gwt.dev.lib}"></classpath>
+ <classpath refid="project.libs.path"></classpath>
+ <!-- <env key="LD_LIBRARY_PATH" value="${gwt.home}${path.separator}${env.LD_LIBRARY_PATH}"/> -->
+ <!-- <env key="PATH" value="${gwt.home}${path.separator}${env.PATH}"/> -->
+ <env key="LANG" value="en_US"/>
+ </java>
+ </target>
+
+
+ <!-- =================================
+ target: tests
+ ================================= -->
+ <target name="tests" depends="compile-tests" description="--> Junit test cases">
+ <mkdir dir="${build.dir}/testreports"/>
+ <delete dir="${build.dir}/tomcat/work" failonerror="false"/>
+ <!-- Hosted mode JUnit tests ( client part ) -->
+ <junit fork="true" forkmode="once" dir="${build.dir}" printsummary="true" showoutput="true" filtertrace="false">
+ <classpath path="${tests.src.dir}"/>
+ <classpath path="${tests.classes.dir}"/>
+ <classpath path="${gwt.dev.lib}"></classpath>
+ <classpath refid="test.hosted.class.path"></classpath>
+ <env key="LD_LIBRARY_PATH" value="${gwt.home}${path.separator}${env.LD_LIBRARY_PATH}"/>
+ <env key="PATH" value="${gwt.home}${path.separator}${env.PATH}"/>
+ <env key="LANG" value="en_US"/>
+ <formatter type="plain"/>
+ <batchtest todir="${build.dir}/testreports">
+ <fileset dir="${tests.src.dir}">
+ <include name="**/client/*Test*.java"/>
+ <exclude name="**/AllTests.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <!-- Server part tests -->
+ <junit fork="true" dir="${build.dir}" printsummary="true" showoutput="true" filtertrace="false">
+ <classpath path="${tests.src.dir}"/>
+ <classpath path="${tests.classes.dir}"/>
+ <classpath refid="test.class.path"></classpath>
+ <formatter type="plain"/>
+ <batchtest todir="${build.dir}/testreports">
+ <fileset dir="${tests.src.dir}">
+ <exclude name="**/client/*Test*.java"/>
+ <include name="**/*Test*.java"/>
+ <exclude name="**/AllTests.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+
+ <target name="package" depends="compile.js" description="Package up the HelloWidget as a jar">
+
+ <!-- copy all the META-INF source files to the expanded directory -->
+ <copy todir="${build.expanded.dir}">
+ <fileset dir="${module.src.dir}">
+ <include name="**"/>
+ <exclude name="**/*.java"/>
+ </fileset>
+ </copy>
+
+ <jar destfile="${build.dir}/${gwt.module}.jar">
+ <fileset dir="${build.classes.dir}"/>
+ <fileset dir="${build.expanded.dir}"/>
+ </jar>
+ </target>
+
+
+ <!-- =================================
+ target: war
+ ================================= -->
+ <target name="war" depends="package" description="--> Create sample war">
+ <copy todir="${build.war.dir}">
+ <fileset dir="WebContent"/>
+ </copy>
+
+ <copy todir="${build.war.dir}/WEB-INF/lib">
+ <fileset dir="${gwt.home}">
+ <!-- don't need gwt-user.jar except for compiling, or maybe in hosted mode??? -->
+ <!--
+ <include name="gwt-user.jar"/>
+ -->
+ <include name="gwt-servlet.jar"/>
+ </fileset>
+ <fileset dir="${gwtjsf.home}">
+ <include name="${gwtjsf.jar}"/>
+ </fileset>
+
+ <fileset dir="${jsf.lib.home}">
+ <include name="jsf-api.jar"/>
+ <include name="jsf-impl.jar"/>
+ </fileset>
+
+ </copy>
+ <!-- <war destfile="${build.dir}/${project.name}.war" webxml="WebContent/WEB-INF/web.xml"> -->
+ <war destfile="${build.dir}/${project.name}.war" webxml="WebContent/WEB-INF/web.xml">
+ <fileset dir="${build.war.dir}"/>
+ <lib dir="${build.dir}">
+ <include name="${gwt.module}.jar"/>
+ </lib>
+ </war>
+ </target>
+
+
+ <target name="clean">
+ <!-- Delete the bin directory tree -->
+ <delete dir="${build.dir}" failonerror="false"/>
+ </target>
+
+
+ <!-- If you include catalina-ant.jar on your Ant classpath, you can use the following targets
+ to handle Tomcat installation of this example.
+
+ <property name="tomcat.home" value="${env.CATALINA_HOME}"/>
+ <property name="tomcat.base" value="${env.CATALINA_BASE}"/>
+
+ <target name="deploy" depends="undeploy,war"
+ description="Deploy the example to Tomcat">
+ <echo>Don't forget to set the path of tomcat.home to Tomcat root directory !</echo>
+ <copy file="${build.dir}/${project.name}.war" todir="${tomcat.base}/webapps"/>
+ <echo>After you start Tomcat, the example will be available at: http://localhost:8080/${example.name}</echo>
+ </target>
+
+ <target name="undeploy"
+ description="Undeploy the example from Tomcat">
+ <delete file="${tomcat.base}/webapps/${project.name}.war"/>
+ <delete dir="${tomcat.base}/webapps/${project.name}"/>
+ </target>
+
+ <taskdef name="stop" classname="org.apache.catalina.ant.StopTask">
+ <classpath>
+ <path path="${tomcat.home}/server/lib/catalina-ant.jar"/>
+ </classpath>
+ </taskdef>
+ <taskdef name="start" classname="org.apache.catalina.ant.StartTask">
+ <classpath>
+ <path path="${tomcat.home}/server/lib/catalina-ant.jar"/>
+ </classpath>
+ </taskdef>
+
+ <target name="stop" description="Stop a local Tomcat.">
+ <exec executable="${tomcat.home}/bin/shutdown.bat" dir="." vmlauncher="false" failonerror="false">
+ <env key="CATALINA_BASE" file="${tomcat.base}"/>
+ </exec>
+
+ <sleep seconds="2"/>
+ </target>
+
+ <target name="start" description="Start a local Tomcat.">
+ <exec executable="${tomcat.home}/bin/startup.bat" dir="." vmlauncher="false" spawn="true">
+ <env key="CATALINA_BASE" file="${tomcat.base}"/>
+ <env key="JPDA_TRANSPORT" value="dt_socket"/>
+ <env key="JPDA_ADDRESS" value="5005"/>
+ <arg value="start"/>
+ </exec>
+ </target>
+
+ <target name="bouncedeploy" depends="stop,deploy,start"/>
+
+ ... end commented-out Tomcat targets -->
+
+</project>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/readme.txt
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/readme.txt (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/readme.txt 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,85 @@
+This sample application demonstrates the GWT-JSF integration library with a very simple
+widget implementation.
+
+
+BUILDING THE SAMPLE
+
+This assumes you have already downloaded this sample as part of the Ajax4JSF distribution,
+and have compiled it with Maven, as per the instructions here:
+
+ http://labs.jboss.com/wiki/HowToBuildAjax4jsf
+
+- Download a copy of the GWT 1.4.10 release candidate (or later):
+
+ http://code.google.com/webtoolkit/download.html#rc
+
+- Copy the "build.properties.sample" file to "build.properties".
+
+- Edit the "build.properties" file to point to your GWT distribution.
+ You may also need to tweak the gwtjsf properties to point at the gwtjsf libs you built
+ via Maven, depending on whether the Ajax4JSF tree is still at version 1.1.2-SNAPSHOT.
+
+- Run "ant clean war". This will create a build/a4j-gwtKickStart.war file.
+
+- Drop this war file into a Tomcat webapps directory.
+
+- Go to http://localhost:8080/a4j-gwtKickStart to see the sample in action.
+
+
+THE SAMPLE, EXPLAINED
+
+The GWT widget consists of a text entry box, a label, and a button. Entering text in the
+box and clicking the button executes a GWT RPC call to the server; the server response is
+shown in an alert.
+
+There are two ways to use the widget in a JSF page. See WebContent/pages/Base.xhtml for
+the source quoted here.
+
+The widget can be configured to use a JSF event listener on the server side:
+
+ <widget:component id="main" buttonLabel="#{bundle.buttonLabel}"
+ greeting="Hello #{greetingBean.name}!" >
+ <gwt:gwtListener method="#{greetingBean.takeGreeting}"
+ event ="demo.gwt.client.EventData"/>
+ </widget:component>
+
+This tells the widget to invoke the takeGreeting method of the JSF managed bean named
+greetingBean. With this style of listener, the listener method must take a single argument
+which is subclassed from GwtFacesEvent, and must return an object which is subclassed from
+GwtFacesResult. This was the original style of GWT-JSF integration.
+
+The second way to use the widget is to configure it to directly invoke a custom RPC
+interface on the server:
+
+ <widget:component id="main2" buttonLabel="#{bundle.buttonLabel}2"
+ greeting="Hello #{greetingBean.name} 2!"
+ requestGreetingService="true">
+ <gwt:gwtListener serviceBean="#{greetingBean}"/>
+ </widget:component>
+
+This invokes the greetingBean.requestGreeting method (via the RequestGreetingService custom
+interface), passing a String and receiving a String in return. This style of RPC is more
+familiar to GWT users, but was not possible with GWTJSF prior to the release of GWT 1.4.
+This style is recommended for future development with GWTJSF, but the previous style is still
+supported for backwards compatibility.
+
+
+FOR MORE INFORMATION
+
+For more in-depth explanation of the details of this sample (in its pre-GwT-1.4 incarnation),
+see this article:
+
+http://www.theserverside.com/tt/articles/article.tss?l=GWTandJSF
+
+For more details on the changes made since the original release of the library, see here:
+
+http://unrealities.com/seamgwt/article_0.2.html
+
+Please post any questions to the Ajax4JSF developer's forum:
+
+http://jboss.com/index.html?module=bb&op=viewforum&f=260
+
+Thanks to Sergey Smirnov, Alex Smirnov, and Igor Shabalov, the original developers of the
+(vast majority of the) GWTJSF library.
+
+-- Rob Jellinghaus, 20070625
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/TestCase.gwt.xml
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/TestCase.gwt.xml (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/TestCase.gwt.xml 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module>
+
+ <!-- Inherit the JUnit support -->
+ <inherits name='org.ajax4jsf.gwt.JUnit'/>
+ <source path="client"/>
+</module>
Added: trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/client/EntryPointTestCase.java
===================================================================
--- trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/client/EntryPointTestCase.java (rev 0)
+++ trunk/samples/gwtjsf/a4j-gwtKickStart/tests/demo/gwt/client/EntryPointTestCase.java 2007-06-26 05:10:05 UTC (rev 281)
@@ -0,0 +1,18 @@
+package demo.gwt.client;
+
+// TODO: make this not be excluded anymore... causing horrible trouble trying to run hosted mode in IDEA...
+// it insists that this is part of the client code! why????
+
+import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.Element;
+
+public class EntryPointTestCase extends GWTTestCase {
+
+
+ public String getModuleName() {
+ // TODO Auto-generated method stub
+ return "demo.gwt.TestCase";
+ }
+
+}
17 years, 6 months
JBoss Ajax4JSF SVN: r280 - trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat.
by ajax4jsf-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-06-25 20:27:07 -0400 (Mon, 25 Jun 2007)
New Revision: 280
Modified:
trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java
Log:
RF-40 fixed
Modified: trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java
===================================================================
--- trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java 2007-06-25 13:28:31 UTC (rev 279)
+++ trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java 2007-06-26 00:27:07 UTC (rev 280)
@@ -30,8 +30,10 @@
import javax.faces.model.ArrayDataModel;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
+import javax.faces.model.ResultDataModel;
import javax.faces.model.ResultSetDataModel;
import javax.faces.model.ScalarDataModel;
+import javax.servlet.jsp.jstl.sql.Result;
/**
* @author shura
*
@@ -96,8 +98,8 @@
model = new SequenceDataModel(new ArrayDataModel((Object[]) current));
} else if (current instanceof ResultSet) {
model = new SequenceDataModel(new ResultSetDataModel((ResultSet) current));
-// } else if (current instanceof Result) {
-// model = new ResultDataModel((Result) current);
+ } else if (current instanceof Result) {
+ model = new SequenceDataModel(new ResultDataModel((Result) current));
} else {
model = new SequenceDataModel(new ScalarDataModel(current));
}
17 years, 6 months
JBoss Ajax4JSF SVN: r279 - trunk/docs/userguide/en/src/main/docbook/included.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-25 09:28:31 -0400 (Mon, 25 Jun 2007)
New Revision: 279
Modified:
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/region.xml
trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
Log:
Language mistakes correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-06-25 12:30:04 UTC (rev 278)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-06-25 13:28:31 UTC (rev 279)
@@ -33,7 +33,7 @@
<section>
<title>Creating on a page</title>
- <para>To use this component it's necessary only to set an update interval.</para>
+ <para>To use this component it's necessary only to set an update interval.</para>
<programlisting role="XML"><![CDATA[<a4j:poll interval="1000" reRender="someDataTable" action="#{bean.action1}"/>
]]></programlisting>
<para>The <emphasis role="bold">
@@ -52,7 +52,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The component decodes all necessary JavaScript for time count and on the expiry of some interval for calling of a Ajax4jsf utility method for Ajax request sending (A4J.AJAX.Submit( Some request parameters)).
+ <para>The component decodes all necessary JavaScript for time count and on the expiry of some interval for calling of a Ajax4jsf utility method for Ajax request sending (A4J.AJAX.Submit (Some request parameters)).
</para>
<para>
The timer could be stopped or started in any time. The current state is controlled on the component with the <emphasis role="italic">
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-06-25 12:30:04 UTC (rev 278)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-06-25 13:28:31 UTC (rev 279)
@@ -57,7 +57,7 @@
</emphasis> component.
</listitem>
<listitem>
- The whole form is submitted on Ajax response and not a region the request is performed from.
+ The whole form is submitted on Ajax response and not a region that request is performed from.
</listitem>
</itemizedlist></para>
<para><emphasis role="bold">Example:</emphasis></para>
@@ -83,7 +83,7 @@
<para>Therefore, the external region is decoded for the "link1" and the internal one is decoded for the "link2".</para>
<para>Ajax4jsf allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by selfRendered attribute setting to "true" on <emphasis role="bold">
<property><a4j:region></property>
- </emphasis> and could help considerably speed up a response output. However, this rapid processing could cause missing of transient components that present on view and don't come into a component tree as well as omitting of <emphasis role="bold">
+ </emphasis> and could help considerably speed up a response output. However, this rapid processing could cause missing of transient components that present on view and don't come into a component tree as well as omitting of <emphasis role="bold">
<property><a4j:outputPanel></property>
</emphasis> usage described below.
</para>
@@ -92,7 +92,7 @@
<a4j:commandLink reRender="someID" value="Link" id="link1"/>
<!--..Some content with HTML used ("br" ,"h1" and other tags used)-->
</a4j:region >]]></programlisting>
- <para>In this case, the processing is quicker and going on without referring to a page code, but the HTML code that isn't saved in a component tree could be lost. Thus this optimization should be very carefully performed and a usage of the additional components ajax4jsf (<emphasis role="bold"><property><a4j:outputPanel></property></emphasis>) is required. </para>
+ <para>In this case, the processing is quicker and going on without referring to a page code, but the HTML code that isn't saved in a component tree could be lost. Thus, this optimization should be very carefully performed and a usage of the additional components ajax4jsf (<emphasis role="bold"><property><a4j:outputPanel></property></emphasis>) is required. </para>
<para>The processing could be also accelerated if a region decoded for the processing passes straight away into Encode. But to update some data out of the region or on another region, use the <emphasis role="italic">
<property>"renderRegionOnly"</property>
</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-06-25 12:30:04 UTC (rev 278)
+++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2007-06-25 13:28:31 UTC (rev 279)
@@ -95,7 +95,7 @@
<property>"repeater.myRepeat"</property>
</emphasis></para>
</note>
-<para>One more benefit of this component is absence of strictly defined markup as JSF HTML DataTable and Tomahawk DataTable has, hence the components could be used more flexibly anywhere where it's necessary to output the results of selection from some collection.</para>
+<para>One more benefit of this component is absence of strictly defined markup as JSF HTML DataTable and Tomahawk DataTable has, hence the components could be used more flexibly anywhere where it's necessary to output the results of selection from some collection.</para>
<para>The next example shows collection output as a plain HTML list</para>
<programlisting role="JSP"><![CDATA[<ul>
<a4j:repeat ...>
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-06-25 12:30:04 UTC (rev 278)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-06-25 13:28:31 UTC (rev 279)
@@ -33,7 +33,7 @@
<section>
<title>Creating on a page</title>
- <para>There are two ways to define elements indicating a request status :</para>
+ <para>There are two ways to define elements indicating a request status :</para>
<itemizedlist>
<listitem>
With <emphasis role="italic">
17 years, 6 months
JBoss Ajax4JSF SVN: r278 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-25 08:30:04 -0400 (Mon, 25 Jun 2007)
New Revision: 278
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGevcp.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
Log:
Language mistakes correction
Modified: trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -30,7 +30,7 @@
<entry>org.ajax4jsf.LOGFILE</entry>
<entry>none</entry>
<entry>
- Is an URL to an application or a container log file (if possible). If this parameter is set, content from the given URL will be shown on a <emphasis role="italic"><property>Debug</property></emphasis> error page in the <emphasis role="italic"><property>iframe</property></emphasis> window
+ The is an URL to an application or a container log file (if possible). If this parameter is set, a content from the given URL will be shown on a <emphasis role="italic"><property>Debug</property></emphasis> error page in the <emphasis role="italic"><property>iframe</property></emphasis> window
</entry>
</row>
<row>
@@ -39,7 +39,7 @@
<entry>
Is a comma-separated list of custom <emphasis role="italic"><property>"ViewHandler"</property></emphasis> instances
for inserting in chain. Handlers are inserted in the given order. So must be used if the order of them is important.
- No need to define ajax4jsf handler there - it will be always the first.
+ No need to define ajax4jsf handler there, as it will be always the first.
</entry>
</row>
<row>
@@ -53,7 +53,7 @@
<entry>org.ajax4jsf.ENCRYPT_RESOURCE_DATA</entry>
<entry>false</entry>
<entry>
- For generated resources, such as encrypt generation data, it's encoded in the resource URL. For example, URL for an image generated from the <emphasis role="italic"><property>mediaOutput</property></emphasis> component contains a name of a generation method, since for a hacker attack, it is possible to create a request for any JSF baked beans or other attributes. To prevent such attacks, set this parameter to "true" in critical applications (works with JRE > 1.4)
+ For generated resources, such as encrypt generation data, it's encoded in the resource URL. For example, URL for an image generated from the <emphasis role="italic"><property>mediaOutput</property></emphasis> component contains a name of a generation method, since for a hacker attack, it is possible to create a request for any JSF baked beans or other attributes. To prevent such attacks, set this parameter to true in critical applications (works with JRE > 1.4)
</entry>
</row>
<row>
@@ -107,7 +107,7 @@
<entry>forceparser</entry>
<entry>true</entry>
<entry>
- Forces parsing by a filter <emphasis role="italic"><property>HTML</property></emphasis> syntax checker on any JSF page. If "false", only AJAX responses are parsed to syntax check and conversion to well-formed XML. Setting to "false" improve performance, but can provide visual effects on AJAX updates
+ Forces parsing by a filter <emphasis role="italic"><property>HTML</property></emphasis> syntax checker on any JSF page. If false, only AJAX responses are parsed to syntax check and conversion to well-formed XML. Setting to false improve performance, but can provide visual effects on AJAX updates
</entry>
</row>
</tbody>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGenvsettings.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -79,7 +79,7 @@
important job. </para>
<note>
<title>Note:</title>
- <para>In this case you don't have to define <property>FaceletViewHandler</property> in the
+ <para>In this case you don't have to define <property>FaceletViewHandler</property> in the
WEB-INF/faces-config.xml.</para>
</note>
</section>
@@ -190,6 +190,6 @@
</section>
<section id="Portlet Support">
<title>Portlet Support</title>
- <para><property>Portlets</property> have support since version Ajax4jsf 1.1.1. Provide your feedback on compatible with Ajax4jsf if you have problems.</para>
+ <para><property>Portlets</property> have support since version Ajax4jsf 1.1.1. Provide your feedback on compatible with Ajax4jsf if you face some problems.</para>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGevcp.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGevcp.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGevcp.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -19,8 +19,8 @@
</para>
<formalpara>
<title>Compatibility</title>
- <para>Make sure that you are using <property>Rich Faces version 2.0</property> and
- higher, earlier versions contain built-in Ajax4jsf kernel and can't be used together
- with new Ajax4jsf versions. </para>
+ <para>Make sure you are using <property>Rich Faces version 2.0</property> and
+ higher, earlier versions contain built-in Ajax4jsf kernel and can't be used together
+ with new Ajax4jsf versions.</para>
</formalpara>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGfaq.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -14,7 +14,7 @@
<title>FAQ</title>
<section id="DecidingWhatToChangeOnTheServerSide">
<?dbhtml filename="DecidingWhatToChangeOnTheServerSide.html"?>
- <title>Deciding what to change on the server side</title>
+ <title>What should I change on the server side</title>
<para>
As it was mentioned <ulink url="index.html#DecideWhatToChange">before</ulink>, the list of zones to be reRendered can be specified
as EL expression. But there is a question that must be specified more exactly.
@@ -31,7 +31,7 @@
<section id="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute">
<?dbhtml filename="CheckSendingRequestConditions.CustomJavaScriptBeforeRequest.OnSubmitAttribute.html"?>
- <title>Check sending request conditions. Custom JavaScript before request. OnSubmit attribute</title>
+ <title>How to check sending request conditions? Custom JavaScript before request. OnSubmit attribute</title>
<para>
To check on the client some terms of request sending, The <emphasis role="italic">
<property>"onSubmit</property>
@@ -112,7 +112,7 @@
</section>
<section id="InvokeOnComponentUsingWithJSF1.2">
<?dbhtml filename="InvokeOnComponentUsingWithJSF1.2.html"?>
- <title>InvokeOnComponent using with JSF 1.2</title>
+ <title>Is it possible to use InvokeOnComponent with JSF 1.2?</title>
<para>
Ajax4jsf currently does not use <emphasis role="italic">invokeOnComponent</emphasis> because of the 2 reasons:
</para>
@@ -147,7 +147,7 @@
</section>
<section id="FilterUsageDamagesAnApplicationLayout">
<?dbhtml filename="FilterUsageDamagesAnApplicationLayout.html"?>
- <title>Filter usage damages an application layout</title>
+ <title>Why does filter usage damage an application layout?</title>
<para>Ajax4jsf uses <property>filters</property> for correction of xhtml code received on an AJAX response,
because when a response is recieved from the server, Ajax4jsf makes direct changes in
DOM tree and browser doesn't make any corrections in generated xhtml. There
@@ -233,7 +233,7 @@
<section id="IgnoreDupResponsesAndRequestDelay">
<?dbhtml filename="IgnoreDupResponsesAndRequestDelay.html"?>
- <title>IgnoreDupResponses and requestDelay </title>
+ <title>How to use IgnoreDupResponses and requestDelay </title>
<para>The <emphasis role="italic">
<property>"IgnoreDupResponses"</property>
</emphasis> attribute appeared from 1.0.4 RC1 version and is used on the
@@ -254,7 +254,7 @@
<section id="RefreshImage">
<?dbhtml filename="RefreshImage.html"?>
- <title>Unable to refresh an image using "a4j:support"</title>
+ <title>How to refresh an image using "a4j:support"</title>
<para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105995">Ajax4Jsf Users Forum.
</ulink>
</para>
@@ -264,7 +264,7 @@
<section id="EventQueueUsage">
<?dbhtml filename="EventQueueUsage.html"?>
- <title>EventQueue usage</title>
+ <title>How to use EventQueue</title>
<para>The <emphasis role="italic">
<property>"EventQueue"</property>
</emphasis> attribute defines the query name where the requests are saved
@@ -290,7 +290,7 @@
<section id="SeveralStatusOnPage">
<?dbhtml filename="SeveralStatusOnPage.html"?>
- <title>Can I have several "a4j:status" component on one page?</title>
+ <title>Can I have several "a4j:status" components on one page?</title>
<para>Yes, you can. For more information see example on
<ulink url="http://livedemo.exadel.com/a4j-status/">JBoss Ajax4jsf Online Demos</ulink>.
</para>
@@ -361,15 +361,15 @@
<section id="JSCallPropblemsInInclude">
<?dbhtml filename="JSCallPropblemsInInclude.html"?>
- <title>JavaScript call not work in "a4j:include"</title>
- <para>For information see discussion about this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104317">Ajax4Jsf Users Forum.
+ <title>Why does JavaScript call don't work in "a4j:include"?</title>
+ <para>For more information see discussion on this problem on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104317">Ajax4Jsf Users Forum.
</ulink>
</para>
</section>
<section id="ResourceNotRegisteredException">
<?dbhtml filename="ResourceNotRegisteredException.html"?>
- <title>ResourceNotRegistered Exception</title>
+ <title>What does ResourceNotRegistered Exception mean?</title>
<para>Ajax4jsf registers its resources (scripts, images) after an application is accessed and then accesses it via a generated URL. During an application development when a developer constantly updates it on the server, it could happen that Ajax4jsf re-registers its resources after every server restart and a browser tries to access them via cashed URL.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -14,7 +14,7 @@
<title>Built-in skinnability in Ajax4jsf</title>
<para>Ajax4jsf gives an opportunity to incorporate <property>skinnability</property> into UI
- design. With this framework you can easily use named skin parameters in
+ design. With this framework you can easily use named skin parameters in
properties files to control the appearance of the skins that are applied
consistently to a whole set of components. You can look at examples of
predefined skins at:</para>
@@ -25,7 +25,7 @@
</simplelist>
<para>
You may simply control the look-and-feel of your application by using the <property>skinnability</property> service
- of the Ajax4jsf framework. With the means of this service you can define the same style for rendering
+ of the Ajax4jsf framework. With the means of this service you can define the same style for rendering
standard JSF components and custom JSF components built with the help of Ajax4jsf.
</para>
<para>To find out more on <property>skinnability</property> possibilities, follow these
@@ -53,8 +53,8 @@
</renderer>]]></programlisting>
</listitem>
<listitem>
- Finally, you need to place a properties file with skin parameters
- into the class path root. There are two requirements for the properties
+ Finally, you need to place a properties file with skin parameters
+ into the class path root. There are two requirements for the properties
file:
<itemizedlist>
<listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGstart.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -78,7 +78,7 @@
</listitem>
<listitem>
- <para>Add the following line to each JSP page of your application where you are going to bring in AJAX functionality.</para>
+ <para>Add the following line for each JSP page of your application where you are going to bring in AJAX functionality.</para>
<programlisting role="XML"> <![CDATA[<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>]]></programlisting>
<para>For XHTML pages:</para>
<programlisting role="XML"><xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"></programlisting>
@@ -249,8 +249,6 @@
your browser at
<ulink url="http://localhost:8080/a4jEchoText/echo.jsf">http://localhost:8080/a4jEchoText/echo.jsf</ulink>
</para>
-
-
</section>
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGtechreqs.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -108,7 +108,7 @@
Conqueror 3 and higher
</listitem>
</itemizedlist>
- <para>This list is composed basing on reports received from our users. We assume the list can be incomplete and absence of your environment in the list doesn't mean incompatibility.</para>
+ <para>This list is composed basing on reports received from our users. We assume the list can be incomplete and absence of your environment in the list doesn't mean incompatibility.</para>
<para>We appreciate your feedback on platforms and browsers that aren't in the list
but are compatible with Ajax4jsf. It helps us to keep the list up-to-date.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-22 17:30:59 UTC (rev 277)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-25 12:30:04 UTC (rev 278)
@@ -139,7 +139,7 @@
<property><a4j:support></property>
</emphasis> tags.
</para>
- <para>All these tags hide the usual JavaScript activities that are required for an XMHttpRequest
+ <para>All these tags hide the usual JavaScript activities that are required for an XMHttpRequest
object building and an AJAX request sending. Also, they allow you to decide which components of
your JSF page are to be re-rendered as a result of the AJAX response (you can list the
IDs of these components in the "reRender" attribute).
@@ -189,12 +189,12 @@
<listitem>
<emphasis role="italic">
<property>"EventsQueue"</property>
- </emphasis> is a queue that stores the next request.
+ </emphasis> is a queue that stores the next request.
</listitem>
<listitem>
<emphasis role="italic">
<property>"LimitToList"</property>
- </emphasis> attribute is used for regulate updatable regions. Setting
+ </emphasis> attribute is used to regulate updatable regions. Setting
it to true limits the updatable areas only to ones specified in a
reRender list, in other case all Output Panels of the region are updated.
</listitem>
17 years, 6 months
JBoss Ajax4JSF SVN: r277 - trunk.
by ajax4jsf-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-06-22 13:30:59 -0400 (Fri, 22 Jun 2007)
New Revision: 277
Modified:
trunk/ajax4jsf_classes.xls
Log:
Updated
Modified: trunk/ajax4jsf_classes.xls
===================================================================
(Binary files differ)
17 years, 6 months
JBoss Ajax4JSF SVN: r276 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-22 09:45:20 -0400 (Fri, 22 Jun 2007)
New Revision: 276
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
Log:
spelling and grammar mistakes are corrected
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-22 13:43:38 UTC (rev 275)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-22 13:45:20 UTC (rev 276)
@@ -226,7 +226,7 @@
<property><a4j:region></property>
</emphasis> tag.
</para>
- <para>If you wish to render the content of AJAX response outside of the active region then
+ <para>If you wish to render the content of an AJAX response outside of the active region then
the value of the "renderRegionOnly" attribute should be set to "false". Otherwise, your
AJAX updates are limited to elements of the active region.
</para>
@@ -238,7 +238,7 @@
many cases.
</para>
<para>But you can not use this approach if your page contains, e.g. a <emphasis role="bold"><property><f:verbatim></property></emphasis>
- tag and you wish to update its content on AJAX response.
+ tag and you wish to update its content on an AJAX response.
</para>
<para>The problem with the <emphasis role="bold">
<property><f:verbatim/></property>
@@ -256,7 +256,7 @@
other panel's child tags could be updated on AJAX response. There are two ways to
control this:
<itemizedlist>
- <listitem>
+ <listitem>
By setting the "ajaxRendered" attribute value to "true".
</listitem>
<listitem>
17 years, 6 months
JBoss Ajax4JSF SVN: r275 - trunk/docs/userguide/en/src/main/docbook/modules.
by ajax4jsf-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-06-22 09:43:38 -0400 (Fri, 22 Jun 2007)
New Revision: 275
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
Log:
Modified: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-22 07:53:56 UTC (rev 274)
+++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGusingAJAX.xml 2007-06-22 13:43:38 UTC (rev 275)
@@ -57,9 +57,9 @@
</formalpara>
<para>In the first case the whole JSF tree will be encoded,
in the second one option it depends on the "size" of the AJAX region (you can define AJAX region
- by using the <emphasis role="bold"><property><a4j:region></property></emphasis>). As you can see, in the second case the filter parses
+ by using the <emphasis role="bold"><property><a4j:region></property></emphasis>). As you can see, in the second case the filter parses
the content of an AJAX response before sending it to the client side.</para>
- <para>Have a look at the next picture to understand these two ways:</para>
+ <para>Have a look at the next picture to understand these two ways:</para>
<figure>
<title>Request Processing sequence diagram</title>
</figure>
@@ -71,8 +71,8 @@
<para>In both cases, the information about required static or dynamic resources that your application
requests is registered in the ResourseBuilder class.</para>
<para>When a request for a resource comes (Figure 4), the AJAX filter checks the Resource Cache
- for this resource and if it is there, the resource will be sent to the client. Otherwise,
- the filter will search for the resource among those that are registered by the
+ for this resource and if it is there, the resource is sent to the client. Otherwise,
+ the filter searches for the resource among those that are registered by the
ResourceBuilder. If the resource is registered, the AJAX filter will send a request to the
ResourceBuilder to create (deliver) the resource.</para>
<para>Next Figure shows the ways of resource request processing.</para>
@@ -109,7 +109,7 @@
<section id="LimitationsAndRules">
<?dbhtml filename="LimitationAndRules.html"?>
<title>Limitations and Rules</title>
- <para>In order to create AJAX JSF applications properly, keep the following points in mind:</para>
+ <para>In order to create AJAX4JSF applications properly, keep the following points in mind:</para>
<itemizedlist>
<listitem>
The AJAX framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis role="italic">
@@ -122,7 +122,7 @@
</emphasis> for self-rendered containers, since this component is transient and not saved in the tree.
</listitem>
<listitem>
- AJAX requests are made by XMLHttpRequest functions in XML format, but this XML bypasses most validations and the corrections that might be made in a browser. So, create only strict standards-compliant code for HTML and XHTML, without skipping any required elements or attributes. Any necessary XML corrections are automatically made by the XML filter on the server, but lot's of unexpected effects can be produced by an incorrect HTML code.
+ AJAX requests are made by XMLHttpRequest functions in XML format, but this XML bypasses most validations and the corrections that might be made in a browser. So, create only a strict standards-compliant code for HTML and XHTML, without skipping any required elements or attributes. Any necessary XML corrections are automatically made by the XML filter on the server, but lot's of unexpected effects can be produced by an incorrect HTML code.
</listitem>
</itemizedlist>
</section>
@@ -155,8 +155,8 @@
<para>
<emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> tag are used to send an AJAX
- request periodically using timer.
+ </emphasis> tag is used to send an AJAX
+ request periodically using a timer.
</para>
<para>The <emphasis role="bold">
<property><a4j:support></property>
@@ -176,7 +176,7 @@
<listitem>
<emphasis role="italic">
<property>"RequestDelay"</property>
- </emphasis> attribute is used for a requests frequency regulation.
+ </emphasis> attribute is used for a requests frequency regulation.
</listitem>
</itemizedlist>
<programlisting role="XML"><![CDATA[<h:inputText size="50" value="#{bean.text}">
@@ -194,8 +194,8 @@
<listitem>
<emphasis role="italic">
<property>"LimitToList"</property>
- </emphasis> attribute is used to regulate updatable regions. Setting
- it to true limits the updatable areas only to specified in
+ </emphasis> attribute is used for regulate updatable regions. Setting
+ it to true limits the updatable areas only to ones specified in a
reRender list, in other case all Output Panels of the region are updated.
</listitem>
<listitem> <emphasis role="italic">
17 years, 6 months