JBoss Rich Faces SVN: r12160 - in trunk/test-applications/regressionArea: regressionArea-tests and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2009-01-08 12:53:40 -0500 (Thu, 08 Jan 2009)
New Revision: 12160
Modified:
trunk/test-applications/regressionArea/pom.xml
trunk/test-applications/regressionArea/regressionArea-tests/pom.xml
trunk/test-applications/regressionArea/regressionArea-web/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-5570
Modified: trunk/test-applications/regressionArea/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/pom.xml 2009-01-08 17:25:41 UTC (rev 12159)
+++ trunk/test-applications/regressionArea/pom.xml 2009-01-08 17:53:40 UTC (rev 12160)
@@ -23,7 +23,6 @@
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
-
<repository>
<releases/>
<snapshots>
@@ -58,25 +57,21 @@
</releases>
</repository>
</repositories>
-
<properties>
<contextroot>regressionArea</contextroot>
<earname>regressionArea-ear</earname>
<richversion>3.3.0-SNAPSHOT</richversion>
- <seamversion>2.1.0.SP1</seamversion>
- <jsfversion>1.2_10</jsfversion>
+ <seamversion>2.1.1.GA</seamversion>
+ <jsfversion>1.2_11</jsfversion>
<jbosshome>C:/tmp/jboss-4.2.3.GA</jbosshome>
<jbosscontext>default</jbosscontext>
- </properties>
-
-
-
+ </properties>
<modules>
<module>regressionArea-ejb</module>
<module>regressionArea-web</module>
<module>regressionArea-ear</module>
- <module>regressionArea-tests</module>
- </modules>
+ <module>regressionArea-tests</module>
+ </modules>
<build>
<plugins>
<plugin>
@@ -106,20 +101,15 @@
<target>1.5</target>
</configuration>
</configuration>
- </plugin>
-
-
+ </plugin>
</plugins>
</build>
-<!--pluginRepositories>
- <pluginRepository>
- <id>people.apache.org</id>
- <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
- </pluginRepository>
- <pluginRepository>
- <id>repository-int.exadel.com</id>
- <url>http://repository-int.exadel.com/</url>
- </pluginRepository>
- </pluginRepositories-->
-
+ <profiles>
+ <profile>
+ <id>seam2.0</id>
+ <properties>
+ <seamversion>2.0.2.SP1</seamversion>
+ </properties>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file
Modified: trunk/test-applications/regressionArea/regressionArea-tests/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-tests/pom.xml 2009-01-08 17:25:41 UTC (rev 12159)
+++ trunk/test-applications/regressionArea/regressionArea-tests/pom.xml 2009-01-08 17:53:40 UTC (rev 12160)
@@ -42,7 +42,7 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_11</version>
+ <version>${jsfversion}</version>
<scope>provided</scope>
</dependency>
<dependency>
Modified: trunk/test-applications/regressionArea/regressionArea-web/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-web/pom.xml 2009-01-08 17:25:41 UTC (rev 12159)
+++ trunk/test-applications/regressionArea/regressionArea-web/pom.xml 2009-01-08 17:53:40 UTC (rev 12160)
@@ -40,7 +40,7 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_11</version>
+ <version>${jsfversion}</version>
<scope>provided</scope>
</dependency>
<dependency>
17 years, 3 months
JBoss Rich Faces SVN: r12159 - in trunk/ui/editor/src: test/java/org/richfaces/seamparser and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-01-08 12:25:41 -0500 (Thu, 08 Jan 2009)
New Revision: 12159
Modified:
trunk/ui/editor/src/main/antlr/html-seamtext.g
trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5589
Modified: trunk/ui/editor/src/main/antlr/html-seamtext.g
===================================================================
--- trunk/ui/editor/src/main/antlr/html-seamtext.g 2009-01-08 16:35:47 UTC (rev 12158)
+++ trunk/ui/editor/src/main/antlr/html-seamtext.g 2009-01-08 17:25:41 UTC (rev 12159)
@@ -522,17 +522,19 @@
{
beginCapture();
+ Token token = htmlElementStack.peek();
}
+
(
seamCharacters|plain|htmlSpecialChars
{
- Token token = htmlElementStack.peek();
if(isLink(token)) {
String message = "Unexpected token " + "<" + token.getText() + ">";
throw new SemanticException(message);
}
+
}
)
@@ -542,7 +544,11 @@
if(valueCollector == null) {
valueCollector = new StringBuilder();
}
- valueCollector.append(plain);
+ if(!isList(token)) {
+
+ valueCollector.append(plain);
+ }
+
}
|html
{
@@ -577,10 +583,9 @@
}if(isList(name)) {
append(BLANK_LINE);
} else if (isListItem(name)) {
- append(createSeamTextList(name, htmlElementStack));
+ append(createSeamTextList(name, htmlElementStack));
} else if (isHeader(name)) {
append(createSeamTextHeader(name));
-
}else if(isParagraph(name) && !isHeaderProcessed) {
if(!isHeaderProcessed) {
append(BLANK_LINE);
@@ -596,21 +601,15 @@
}
} else {
-
+
if(valueCollector != null) {
- Token prevToken = htmlElementStack.peek();
- if(isListItem(prevToken) && valueCollector.toString().trim().length() == 0) {
- append(" ");
- } else {
- append(valueCollector.toString().trim());
- }
-
- valueCollector = null;
+ append(valueCollector.toString());
+ valueCollector = null;
}
append("<");
append(name.getText());
}
-
+
htmlElementStack.push(name);
}
@@ -631,7 +630,12 @@
Token name = htmlElementStack.pop();
if((isPlainHtmlRequired(name,htmlElementStack))) {
append(">");
- }
+ } else {
+ Token token = LT(1);
+ if((isListItem(name) || isHeader(name)) && (token.getType() != SPACE)) {
+ append(" ");
+ }
+ }
htmlElementStack.push(name);
}
;
@@ -671,7 +675,7 @@
} else {
- append(value.trim());
+ append(value);
}
if(isList(name)) {
Modified: trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java
===================================================================
--- trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java 2009-01-08 16:35:47 UTC (rev 12158)
+++ trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java 2009-01-08 17:25:41 UTC (rev 12159)
@@ -40,17 +40,17 @@
private final static String SEAM_TEXT_EXPRESSION_1 = "It's easy to make *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_.";
- private final static String SEAM_TEXT_EXPRESSION_2 = "+This is a big heading\n"
+ private final static String SEAM_TEXT_EXPRESSION_2 = "+ This is a big heading\n"
+ "You /must/ have some text following a heading!\n\n"
- + "++This is a smaller heading\n"
+ + "++ This is a smaller heading\n"
+ "This is the first paragraph. We can split it across multiple"
+ "lines, but we must end it with a blank line.\n\n"
+ "This is the second paragraph.";
private final static String SEAM_TEXT_EXPRESSION_3 = "An ordered list:\n\n"
- + "#first item\n" + "#second item\n"
- + "#and even the /third/ item\n\n" + "An unordered list:\n\n"
- + "=an item\n" + "=another item";
+ + "# first item\n" + "# second item\n"
+ + "# and even the /third/ item\n\n" + "An unordered list:\n\n"
+ + "= an item\n" + "= another item";
private final static String SEAM_TEXT_EXPRESSION_4 = "The other guy said: "+ "\"Nyeah nyeah-nee\"";
@@ -63,15 +63,15 @@
+ "doSomething() " +
"}`" + " Any ideas?";
- private final static String SEAM_TEXT_EXPRESSION_7 = "+test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
+ private final static String SEAM_TEXT_EXPRESSION_7 = "+ test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
- private final static String SEAM_TEXT_EXPRESSION_8 = "++test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
+ private final static String SEAM_TEXT_EXPRESSION_8 = "++ test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
- private final static String SEAM_TEXT_EXPRESSION_9 = "+++test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
+ private final static String SEAM_TEXT_EXPRESSION_9 = "+++ test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
- private final static String SEAM_TEXT_EXPRESSION_10 = "++++test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
+ private final static String SEAM_TEXT_EXPRESSION_10 = "++++ test value<h1>test1<h2>test2</h2>test4</h1>\ntest";
- private final static String SEAM_TEXT_EXPRESSION_11 = "+test value<div>test5</div><h1>test1<div>test2</div>test4</h1>\ntest";
+ private final static String SEAM_TEXT_EXPRESSION_11 = "+ test value<div>test5</div><h1>test1<div>test2</div>test4</h1>\ntest";
private final static String SEAM_TEXT_EXPRESSION_12 = "[test link=>http://test.com]";
@@ -79,45 +79,45 @@
private final static String SEAM_TEXT_EXPRESSION_14 = "This is a |<tag attribute=\"value\"/>| example.";
- private final static String SEAM_TEXT_EXPRESSION_15 = "= <div class=\"testClass1 testClass2\"></div> <h1> test value </h1>";
+ private final static String SEAM_TEXT_EXPRESSION_15 = "= <div class=\"testClass1 testClass2\"></div><h1> test value </h1>";
- private final static String SEAM_TEXT_EXPRESSION_16 = "# <div class=\"testClass1 testClass2\"></div> <h1> test value </h1>";
+ private final static String SEAM_TEXT_EXPRESSION_16 = "# <div class=\"testClass1 testClass2\"></div><h1> test value </h1>";
- private final static String SEAM_TEXT_EXPRESSION_17 = "paragraph\n\n+header\ntext after header\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_17 = "paragraph\n\n+ header\ntext after header\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_18 = "paragraph\n\n++header\ntext after header\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_18 = "paragraph\n\n++ header\ntext after header\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_19 = "paragraph\n\n+++header\ntext after header\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_19 = "paragraph\n\n+++ header\ntext after header\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_20 = "paragraph\n\n++++header\ntext after header\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_20 = "paragraph\n\n++++ header\ntext after header\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_21 = "paragraph\n\n=item1\n=item2\n=item3\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_21 = "paragraph\n\n= item1\n= item2\n= item3\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_22 = "paragraph\n\n#item1\n#item2\n#item3\n\nanother paragraph";
+ private final static String SEAM_TEXT_EXPRESSION_22 = "paragraph\n\n# item1\n# item2\n# item3\n\nanother paragraph";
- private final static String SEAM_TEXT_EXPRESSION_23 = "+header text *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_23 = "+ header text *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_\n text after header *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
- private final static String SEAM_TEXT_EXPRESSION_24 = "++header text *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_24 = "++ header text *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_\n text after header *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
- private final static String SEAM_TEXT_EXPRESSION_25 = "+++header text *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_25 = "+++ header text *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_\n text after header *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
- private final static String SEAM_TEXT_EXPRESSION_26 = "++++header text *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_26 = "++++ header text *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_\n text after header *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
- private final static String SEAM_TEXT_EXPRESSION_27 = "=item1 *emphasis*, |monospace|, "
- + "~deleted text~, super^scripts^ or_underlines_\n=item2 *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_27 = "= item1 *emphasis*, |monospace|, "
+ + "~deleted text~, super^scripts^ or_underlines_\n= item2 *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
- private final static String SEAM_TEXT_EXPRESSION_28 = "#item1 *emphasis*, |monospace|, "
- + "~deleted text~, super^scripts^ or_underlines_\n#item2 *emphasis*, |monospace|, "
+ private final static String SEAM_TEXT_EXPRESSION_28 = "# item1 *emphasis*, |monospace|, "
+ + "~deleted text~, super^scripts^ or_underlines_\n# item2 *emphasis*, |monospace|, "
+ "~deleted text~, super^scripts^ or_underlines_";
private final static String SEAM_TEXT_EXPRESSION_29 = "A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9";
17 years, 3 months
JBoss Rich Faces SVN: r12158 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-08 11:35:47 -0500 (Thu, 08 Jan 2009)
New Revision: 12158
Added:
trunk/docs/userguide/en/src/main/resources/images/editor4.png
Log:
https://jira.jboss.org/jira/browse/RF-5042
Added an image
Added: trunk/docs/userguide/en/src/main/resources/images/editor4.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/editor4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 3 months
JBoss Rich Faces SVN: r12157 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-08 11:18:40 -0500 (Thu, 08 Jan 2009)
New Revision: 12157
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
Corrected a mistake
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2009-01-08 15:59:12 UTC (rev 12156)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2009-01-08 16:18:40 UTC (rev 12157)
@@ -703,7 +703,8 @@
<para>In order to redefine styles for all <emphasis role="bold">
<property><rich:progressBar></property>
</emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="pBclasses">above</link>) and define necessary properties in them. </para>
+ same names (possible classes could be found in the tables <link linkend="pBclasses">above</link>) and define necessary properties in them.
+ </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -726,7 +727,7 @@
</figure>
<para>In the example above background color of the remained part of progress area was changed.</para>
- <para>It's aslo possible to change styles of a particular
+ <para>It's also possible to change styles of a particular
<emphasis role="bold"> <property><rich:progressBar></property></emphasis> component. In this case you should create own style classes and use them in corresponding
<emphasis role="bold"><property><rich:progressBar></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
<para>
@@ -737,13 +738,13 @@
background-color: #ebf3fd;
}
...]]></programlisting>
- <para>The <emphasis><property>"remainClass"</property></emphasis> attribute for <emphasis role="bold"
+ <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
><property><rich:progressBar> </property></emphasis> is defined as it's shown in the example below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<rich:progressBar value="#{bean.incValue1}" styleClass="remainClass"/>
+ <programlisting role="XML"><![CDATA[<rich:progressBar value="#{bean.incValue1}" styleClass="myClass"/>
]]></programlisting>
<para>This is the result:</para>
17 years, 3 months
JBoss Rich Faces SVN: r12154 - in trunk/test-applications/facelets/src/main: webapp/InputNumberSlider and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2009-01-08 06:58:03 -0500 (Thu, 08 Jan 2009)
New Revision: 12154
Modified:
trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml
trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2009-01-08 11:57:07 UTC (rev 12153)
+++ trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2009-01-08 11:58:03 UTC (rev 12154)
@@ -8,6 +8,8 @@
public class InputNumberSlider {
+ private boolean showArrows;
+ private String orientation;
private int inputSize;
private int maxlength;
private String requiredMessage;
@@ -15,6 +17,7 @@
private String tabindex;
private String value;
private String width;
+ private String height;
private String minValue;
private String maxValue;
private String step;
@@ -53,12 +56,14 @@
rendered = false;
showToolTip = false;
requiredMessage = "requiredMessage work!";
- inputPosition = "right";
+ orientation = "";
+ inputPosition = "";
tabindex = "2";
value = "30";
inputSize = 5;
maxlength = 3;
- width = "300px";
+ width = "";
+ height = "";
minValue="10";
maxValue="100";
step="5";
@@ -372,4 +377,28 @@
public String getValueChangeListener() {
return valueChangeListener;
}
+
+ public String getOrientation() {
+ return orientation;
+ }
+
+ public void setOrientation(String orientation) {
+ this.orientation = orientation;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isShowArrows() {
+ return showArrows;
+ }
+
+ public void setShowArrows(boolean showArrows) {
+ this.showArrows = showArrows;
+ }
}
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml 2009-01-08 11:57:07 UTC (rev 12153)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSlider.xhtml 2009-01-08 11:58:03 UTC (rev 12154)
@@ -1,27 +1,79 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="inputNumberSliderSubviewID">
- <h:panelGrid columns="1">
- <rich:inputNumberSlider id="SliderId" barStyle="#{style.barStyle}" handleSelectedClass="#{style.handleSelectedClass}" inputStyle="#{style.inputStyle}" tipStyle="#{style.tipStyle}" style="#{style.style}" immediate="#{inputNumberSlider.immediate}"
- inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
- tabindex="#{inputNumberSlider.tabindex}" value="#{inputNumberSlider.value}" valueChangeListener="#{inputNumberSlider.valueChangeListener}"
- required="#{inputNumberSlider.rendered}" requiredMessage="#{inputNumberSlider.requiredMessage}"
- disabled="#{inputNumberSlider.disabled}" enableManualInput="#{inputNumberSlider.enableManualInput}"
- inputSize="#{inputNumberSlider.inputSize}" maxValue="#{inputNumberSlider.maxValue}" minValue="#{inputNumberSlider.minValue}"
- rendered="#{inputNumberSlider.rendered}" showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
- step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
- barClass="#{style.barClass}" tipClass="#{style.barClass}" inputClass="#{style.inputClass}"
- handleClass="#{style.handleStyle}" styleClass="#{style.tipStyle}"
- maxlength="#{inputNumberSlider.maxlength}"
- onblur="#{event.onblur}" onchange="#{event.onchange}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
- onerror="#{event.onerror}" onfocus="#{event.onfocus}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}" onslide="#{event.onslide}"
- binding="#{inputNumberSlider.htmlINS}" >
- </rich:inputNumberSlider>
- <h:panelGroup>
- <a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />
- <h:outputText id="valueCLID" value=" #{inputNumberSlider.valueChangeListener}" />
- </h:panelGroup>
- </h:panelGrid>
- <rich:spacer height="20px"></rich:spacer>
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich" id="inputNumberSliderSubviewID">
+ <style>
+.myClass {
+ border: solid;
+ background: #CCCCCC;
+ color: #00CC00;
+}
+</style>
+
+ <h:panelGrid columns="1">
+ <rich:inputNumberSlider
+
+ id="SliderId"
+ barStyle="#{style.barStyle}"
+ accesskey="i"
+ disabled="false"
+ enableManualInput="false"
+ inputClass="inputClass1"
+ inputPosition="#{inputNumberSlider.inputPosition}"
+ orientation="#{inputNumberSlider.orientation}"
+ showArrows="#{inputNumberSlider.showArrows}"
+ handleSelectedClass="handleSelectedClass1"
+ inputStyle="#{style.inputStyle}"
+ tipStyle="#{style.tipStyle}"
+ style="#{style.style}"
+ immediate="#{inputNumberSlider.immediate}"
+
+ showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}"
+ value="#{inputNumberSlider.value}"
+ valueChangeListener="#{inputNumberSlider.valueChangeListener}"
+ required="#{inputNumberSlider.rendered}"
+ requiredMessage="#{inputNumberSlider.requiredMessage}"
+ inputSize="#{inputNumberSlider.inputSize}"
+ maxValue="#{inputNumberSlider.maxValue}"
+ minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}"
+ showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}"
+ showInput="#{inputNumberSlider.showInput}"
+ width="#{inputNumberSlider.width}"
+ height="#{inputNumberSlider.height}"
+ barClass=""
+ tipClass="#{style.barClass}"
+ handleClass="#{style.handleStyle}"
+ styleClass="#{style.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onslide="#{event.onslide}"
+ binding="#{inputNumberSlider.htmlINS}">
+ </rich:inputNumberSlider>
+ <h:panelGroup>
+ <a4j:commandButton value="valueChangeListener (show)"
+ reRender="valueCLID" />
+ <h:outputText id="valueCLID"
+ value=" #{inputNumberSlider.valueChangeListener}" />
+ </h:panelGroup>
+ </h:panelGrid>
+ <rich:spacer height="20px"></rich:spacer>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2009-01-08 11:57:07 UTC (rev 12153)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2009-01-08 11:58:03 UTC (rev 12154)
@@ -7,22 +7,41 @@
id="inputNumberSliderPropertySubviewID">
<h:commandButton action="#{inputNumberSlider.add}" value="add test" />
<h:panelGrid columns="2" cellspacing="10px" border="1">
- <h:outputText value="value" />
- <h:inputText value="#{inputNumberSlider.value}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
<h:outputText value="inputPosition"></h:outputText>
<h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
<f:selectItem itemLabel="right" itemValue="right" />
<f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
</h:selectOneRadio>
+ <h:outputText value="Orientation:"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.orientation}" required="false">
+ <f:selectItem itemLabel="vertical" itemValue="vertical" />
+ <f:selectItem itemLabel="horizontal" itemValue="horizontal" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Show Arrows:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showArrows}" required="false">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
<h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
+ <h:inputText value="#{inputNumberSlider.width}" title="in px">
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.height}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
</h:inputText>
+
+ <h:outputText value="value" />
+ <h:inputText value="#{inputNumberSlider.value}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
<h:outputText value="Max Value:"></h:outputText>
<h:inputText value="#{inputNumberSlider.maxValue}">
@@ -108,13 +127,5 @@
</h:panelGrid>
<br />
<br />
- <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
- <h:panelGrid columns="2">
- <rich:column>
- <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
- </rich:column>
- <rich:column id="findID">
- <h:outputText value="#{rich:findComponent('SliderId').value}" />
- </rich:column>
- </h:panelGrid>
+
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2009-01-08 11:57:07 UTC (rev 12153)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2009-01-08 11:58:03 UTC (rev 12154)
@@ -23,7 +23,7 @@
}
</script>
<link rel="stylesheet"
- href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
+ href="#{facesContext.externalContext.requestContextPath}/styles/styles_.css"
type="text/css" />
</head>
<body>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2009-01-08 11:57:07 UTC (rev 12153)
+++ trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2009-01-08 11:58:03 UTC (rev 12154)
@@ -25,7 +25,7 @@
</rich:panel>
<rich:spacer></rich:spacer>
<rich:panel>
- <div align="right"><font size="3" color="#000000">RichFace: #{a4j.version}</font></div>
+ <div align="right"><font size="3" color="#000000">RichFaces: #{a4j.version}</font></div>
</rich:panel>
</h:form>
</body>
17 years, 3 months
JBoss Rich Faces SVN: r12153 - in trunk/test-applications/jsp/src/main: webapp/InputNumberSlider and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2009-01-08 06:57:07 -0500 (Thu, 08 Jan 2009)
New Revision: 12153
Modified:
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2009-01-08 11:43:46 UTC (rev 12152)
+++ trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2009-01-08 11:57:07 UTC (rev 12153)
@@ -8,12 +8,15 @@
public class InputNumberSlider {
+ private boolean showArrows;
+ private String orientation;
private int inputSize;
private int maxlength;
private String requiredMessage;
private String inputPosition;
private String tabindex;
private String value;
+ private String height;
private String width;
private String minValue;
private String maxValue;
@@ -23,7 +26,7 @@
private String inputStyle;
private String tipStyle;
private String handleStyle;
- private String valueChangeListener;
+ private String valueChanged;
private boolean immediate;
private boolean required;
private boolean showToolTip;
@@ -40,16 +43,19 @@
}
public InputNumberSlider() {
+ showArrows=true;
+ orientation = "";
immediate = false;
rendered = false;
showToolTip = false;
requiredMessage = "requiredMessage work!";
- inputPosition = "right";
+ inputPosition = "";
tabindex = "2";
value = "30";
inputSize = 5;
maxlength = 3;
- width = "300px";
+ width = "";
+ height = "";
minValue="10";
maxValue="100";
step="5";
@@ -284,9 +290,9 @@
this.value = value;
}
- public void valueChangeListener(ValueChangeEvent event) {
- valueChangeListener = (String)event.getNewValue();
- System.out.println("valueChangeListener: " + valueChangeListener);
+ public void handlerMethod(ValueChangeEvent event) {
+ valueChanged = (String)event.getNewValue();
+ System.out.println("strValueChangeListener: " + valueChanged);
}
public void bTest1(){
@@ -360,10 +366,9 @@
setMaxlength(8);
}
- public String getValueChangeListener() {
- return valueChangeListener;
- }
+
+
public HtmlInputNumberSlider getHtmlInputNumberSlider() {
return htmlInputNumberSlider;
}
@@ -371,4 +376,36 @@
public void setHtmlInputNumberSlider(HtmlInputNumberSlider htmlInputNumberSlider) {
this.htmlInputNumberSlider = htmlInputNumberSlider;
}
+
+ public String getValueChanged() {
+ return valueChanged;
+ }
+
+ public void setValueChanged(String valueChanged) {
+ this.valueChanged = valueChanged;
+ }
+
+ public String getOrientation() {
+ return orientation;
+ }
+
+ public void setOrientation(String orientation) {
+ this.orientation = orientation;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isShowArrows() {
+ return showArrows;
+ }
+
+ public void setShowArrows(boolean showArrows) {
+ this.showArrows = showArrows;
+ }
}
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2009-01-08 11:43:46 UTC (rev 12152)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSlider.jsp 2009-01-08 11:57:07 UTC (rev 12153)
@@ -4,60 +4,80 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="inputNumberSliderSubviewID">
- <h:panelGrid columns="1">
- <rich:inputNumberSlider binding="#{inputNumberSlider.htmlInputNumberSlider}" id="SliderId" barStyle="#{style.barStyle}" handleSelectedClass="#{style.handleSelectedClass}" inputStyle="#{style.inputStyle}" tipStyle="#{style.tipStyle}" style="#{style.style}" immediate="#{inputNumberSlider.immediate}"
- inputPosition="#{inputNumberSlider.inputPosition}" showToolTip="#{inputNumberSlider.showToolTip}"
- tabindex="#{inputNumberSlider.tabindex}" value="#{inputNumberSlider.value}" valueChangeListener="#{inputNumberSlider.valueChangeListener}"
- required="#{inputNumberSlider.rendered}" requiredMessage="#{inputNumberSlider.requiredMessage}"
- disabled="#{inputNumberSlider.disabled}" enableManualInput="#{inputNumberSlider.enableManualInput}"
- inputSize="#{inputNumberSlider.inputSize}" maxValue="#{inputNumberSlider.maxValue}" minValue="#{inputNumberSlider.minValue}"
- rendered="#{inputNumberSlider.rendered}" showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
- step="#{inputNumberSlider.step}" showInput="#{inputNumberSlider.showInput}" width="#{inputNumberSlider.width}"
- barClass="#{style.barClass}" tipClass="#{style.barClass}" inputClass="#{style.inputClass}"
- handleClass="#{style.handleStyle}" styleClass="#{style.tipStyle}"
- maxlength="#{inputNumberSlider.maxlength}"
- onblur="#{event.onblur}"
- onchange="#{event.onchange}"
- onclick="#{event.onclick}"
- ondblclick="#{event.ondblclick}"
- onerror="#{event.onerror}"
- onfocus="#{event.onfocus}"
- onmousedown="#{event.onmousedown}"
- onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}"
- onselect="#{event.onselect}"
- onslide="#{event.onslide}"
- oninputclick="#{event.oninputclick}"
- oninputdblclick="#{event.oninputdblclick}"
- oninputkeydown="#{event.oninputkeydown}"
- oninputkeypress="#{event.oninputkeypress}"
- oninputkeyup="#{event.oninputkeyup}"
- oninputmousedown="#{event.oninputmousedown}"
- oninputmousemove="#{event.oninputmousemove}"
- oninputmouseout="#{event.oninputmouseout}"
- oninputmouseover="#{event.oninputmouseover}"
- oninputmouseup="#{event.oninputmouseup}">
- </rich:inputNumberSlider>
- <h:panelGroup>
- <a4j:commandButton value="valueChangeListener (show)" reRender="valueCLID" />
- <h:outputText id="valueCLID" value=" #{inputNumberSlider.valueChangeListener}" />
- </h:panelGroup>
- </h:panelGrid>
- <rich:spacer height="20px"></rich:spacer>
-
- <h:form>
- <rich:tabPanel switchType="client">
- <rich:tab label="First">
+
+
+<h:inputText required="true" value="Delete me"/>
+ <h:panelGrid columns="1">
+ <rich:inputNumberSlider accesskey="i"
+ binding="#{inputNumberSlider.htmlInputNumberSlider}" id="SliderId"
+ barStyle="#{style.barStyle}"
+ disabled="false"
+ enableManualInput="false"
+ handleSelectedClass="#{style.handleSelectedClass}"
+ inputClass="#{style.inputClass}"
+ inputPosition="#{inputNumberSlider.inputPosition}"
+ showArrows="#{inputNumberSlider.showArrows}"
+ orientation="#{inputNumberSlider.orientation}"
+ inputStyle="#{style.inputStyle}"
+ tipStyle="#{style.tipStyle}"
+ style="#{style.style}"
+ immediate="#{inputNumberSlider.immediate}"
+ showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}"
+ value="#{inputNumberSlider.value}"
+ valueChangeListener="#{inputNumberSlider.handlerMethod}"
+ required="#{inputNumberSlider.rendered}"
+ requiredMessage="#{inputNumberSlider.requiredMessage}"
+ inputSize="#{inputNumberSlider.inputSize}"
+ maxValue="#{inputNumberSlider.maxValue}"
+ minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}"
+ showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}"
+ showInput="#{inputNumberSlider.showInput}"
+ width="#{inputNumberSlider.width}"
+ height="#{inputNumberSlider.height}"
+ barClass="#{style.barClass}"
+ tipClass="#{style.barClass}"
+ handleClass="#{style.handleStyle}" styleClass="#{style.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}" onblur="#{event.onblur}"
+ onchange="#{event.onchange}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}" onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}" onslide="#{event.onslide}"
+ oninputclick="#{event.oninputclick}"
+ oninputdblclick="#{event.oninputdblclick}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputmousedown="#{event.oninputmousedown}"
+ oninputmousemove="#{event.oninputmousemove}"
+ oninputmouseout="#{event.oninputmouseout}"
+ oninputmouseover="#{event.oninputmouseover}"
+ oninputmouseup="#{event.oninputmouseup}">
+ </rich:inputNumberSlider>
+ <h:panelGroup>
+ <a4j:commandButton value="valueChangeListener (show)"
+ reRender="valueCLID" />
+ <h:outputText id="valueCLID"
+ value=" #{inputNumberSlider.valueChanged}" />
+ </h:panelGroup>
+ </h:panelGrid>
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:form>
+ <rich:tabPanel switchType="client">
+ <rich:tab label="First">
Here is tab #1
<rich:inputNumberSlider value="10" />
- </rich:tab>
- <rich:tab label="Second">
+ </rich:tab>
+ <rich:tab label="Second">
Here is tab #2
<rich:inputNumberSlider value="20" />
- </rich:tab>
- </rich:tabPanel>
- <h:commandButton action="submit" value="Submit" />
- </h:form>
+ </rich:tab>
+ </rich:tabPanel>
+ <h:commandButton action="submit" value="Submit" />
+ </h:form>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2009-01-08 11:43:46 UTC (rev 12152)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2009-01-08 11:57:07 UTC (rev 12153)
@@ -11,14 +11,33 @@
<h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
<f:selectItem itemLabel="right" itemValue="right" />
<f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
</h:selectOneRadio>
+ <h:outputText value="Orientation:"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.orientation}" required="false">
+ <f:selectItem itemLabel="vertical" itemValue="vertical" />
+ <f:selectItem itemLabel="horizontal" itemValue="horizontal" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Show Arrows:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showArrows}" required="false">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
<h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
+ <h:inputText value="#{inputNumberSlider.width}" title="in px">
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
</h:inputText>
+ <h:outputText value="Height:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.height}" title="in px">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
<h:outputText value="Max Value:"></h:outputText>
<h:inputText value="#{inputNumberSlider.maxValue}">
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
@@ -103,13 +122,5 @@
</h:panelGrid>
<br />
<br />
- <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
- <h:panelGrid columns="2">
- <rich:column>
- <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
- </rich:column>
- <rich:column id="findID">
- <h:outputText value="#{rich:findComponent('SliderId').value}" />
- </rich:column>
- </h:panelGrid>
+
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2009-01-08 11:43:46 UTC (rev 12152)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2009-01-08 11:57:07 UTC (rev 12153)
@@ -23,12 +23,10 @@
oldObject.parentNode.replaceChild(newObject, oldObject);
}
</script>
- <link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css"/>
+
</head>
<body>
- <a4j:queue name="org.richfaces.global_queue" disabled="false"/>
- <a4j:queue name="namedQueue"/>
- <a4j:queue />
+
<h:form id="formID">
<div id="divOpthID" align="right" style="z-index: 200">
<jsp:include page="/pages/RichMenu/RichMenu.jsp"/>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2009-01-08 11:43:46 UTC (rev 12152)
+++ trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2009-01-08 11:57:07 UTC (rev 12153)
@@ -5,7 +5,9 @@
<html>
<head>
<title></title>
-<link rel="stylesheet" href="<%=request.getContextPath()%>/styles/styles.css" type="text/css" />
+
+
+
</head>
<body>
<f:view>
@@ -26,7 +28,7 @@
</rich:panel>
<rich:spacer></rich:spacer>
<rich:panel>
- <h:outputText style="align:right;" value="RichFace: #{a4j.version}" />
+ <h:outputText style="align:right;" value="RichFaces: #{a4j.version}" />
</rich:panel>
</h:form>
</f:view>
17 years, 3 months
JBoss Rich Faces SVN: r12152 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-08 06:43:46 -0500 (Thu, 08 Jan 2009)
New Revision: 12152
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
Log:
https://jira.jboss.org/jira/browse/RF-398
Corrected a few mistakes
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2009-01-08 11:26:13 UTC (rev 12151)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2009-01-08 11:43:46 UTC (rev 12152)
@@ -52,7 +52,7 @@
<section id="AddingRichFaceslibrariesintotheproject">
<title>Adding RichFaces libraries into the project</title>
- <para>Pass to the folder with unzipped earlier RichFaces binary files
+ <para>Go to the folder with unzipped earlier RichFaces binary files
and open <code>lib</code> folder. This folder contains three
<code>*.jar</code> files with API, UI and
implementation libraries. Copy that "jars" from
@@ -156,7 +156,7 @@
<section id="Managedbean">
<title>Managed bean</title>
- <para>The "RichFaces Greeter" application needs a managed bean. In
+ <para>The "RichFaces Greeter" application needs a managed bean. In
project <code>JavaSource</code> folder create a new managed
bean with name <code>user</code> in <code>demo</code>
package and paste there the following simple code: </para>
@@ -246,8 +246,7 @@
library declaration: </para>
<programlisting role="XML"><![CDATA[<xmlns:a4j="http://richfaces.org/a4j">
<xmlns:rich="http://richfaces.org/rich">]]></programlisting>
- <para>That’s it. Run the application on server. Write the full pass to
- <code>index.jsp</code> page in browser:
+ <para>That’s it. Run the application on server. Point your browser to <code>index.jsp</code> page in browser:
<code>http://localhost:8080/Greeter/index.jsf</code>
</para>
<figure>
17 years, 3 months
JBoss Rich Faces SVN: r12151 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-01-08 06:26:13 -0500 (Thu, 08 Jan 2009)
New Revision: 12151
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
Log:
RF-5539
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-08 11:17:45 UTC (rev 12150)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-08 11:26:13 UTC (rev 12151)
@@ -9,6 +9,7 @@
<ui:composition template="#{templateBean.autoTestTemplate}">
<ui:define name="component">
<a4j:commandButton id="componentId" value="Button"
+ actionListener="#{autoTestBean.actionListener}"
reRender="#{autoTestBean.reRender}"
limitToList="#{autoTestBean.limitToList}"
bypassUpdates="#{autoTestBean.bypassUpdate}"
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-08 11:17:45 UTC (rev 12150)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-08 11:26:13 UTC (rev 12151)
@@ -37,8 +37,17 @@
tester.testRendered();
}
+
+ @Test
+ public void testBypassUpdates(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+
+ tester.testBypassUpdate();
+
+ }
- //@Test
+ @Test
public void testAjaxCommandButtonComponent(Template template) {
renderPage(template);
@@ -134,6 +143,12 @@
}
@Override
+ public void sendAjax() {
+ String commandId = getAutoTester(this).getClientId(AutoTester.COMPONENT_ID);
+ clickAjaxCommandAndWait(commandId);
+ }
+
+ @Override
public String getAutoTestUrl() {
return "pages/ajaxCommandButton/autoTestCommandButton.xhtml";
}
17 years, 3 months