JBoss Rich Faces SVN: r11753 - trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: wesleyhales
Date: 2008-12-12 14:09:00 -0500 (Fri, 12 Dec 2008)
New Revision: 11753
Modified:
trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
Log:
https://jira.jboss.org/jira/browse/RF-5378
Modified: trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
===================================================================
--- trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2008-12-12 19:08:04 UTC (rev 11752)
+++ trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2008-12-12 19:09:00 UTC (rev 11753)
@@ -178,7 +178,8 @@
var result = func(event);
if (typeof(result) == 'boolean' && !result) return false;
}
-
+ try{
+
var tabPanel = RichFaces.tabPanel[pane];
if (tabPanel.ontabchange && tabPanel.ontabchange != "") {
@@ -186,8 +187,12 @@
var result = func(event);
if (typeof(result) == 'boolean' && !result) return false;
}
-
- }
+
+ }catch(e){
+ //todo - waiting for portal friendly code rewrite
+ }
+
+ }
return true;
}
16 years, 1 month
JBoss Rich Faces SVN: r11752 - 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: 2008-12-12 14:08:04 -0500 (Fri, 12 Dec 2008)
New Revision: 11752
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarDataModel.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
RF-5235
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarDataModel.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarDataModel.java 2008-12-12 18:56:30 UTC (rev 11751)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarDataModel.java 2008-12-12 19:08:04 UTC (rev 11752)
@@ -43,11 +43,10 @@
Calendar calendar;
public CalendarDataModelItemImpl(Date date) {
- Map<String, String> data = new HashMap<String, String>();
Calendar c = Calendar.getInstance();
c.setTime(date);
day = c.get(Calendar.DAY_OF_MONTH);
- this.data = data;
+ this.data = "data" + day;
this.calendar = c;
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 18:56:30 UTC (rev 11751)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 19:08:04 UTC (rev 11752)
@@ -36,6 +36,7 @@
import java.util.List;
import java.util.Locale;
+import org.ajax4jsf.javascript.JSLiteral;
import org.ajax4jsf.template.Template;
import org.ajax4jsf.util.DateUtils;
import org.richfaces.AutoTester;
@@ -356,8 +357,176 @@
}
}
}
+
+
+ // Check current date str
+ private void checkCurrentDate(String date, String message) {
+ if (message == null) {
+ message = "";
+ }
+ Calendar c = Calendar.getInstance();
+ if (!date.contains(String.valueOf(c.get(Calendar.YEAR)))) {
+ Assert.fail(message + "Current date is invalid. Date string ["+date+"] does not contain current year");
+ }
+ if (!date.contains(String.valueOf(c.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.US)))) {
+ Assert.fail(message + "Current date is invalid. Date string ["+date+"] does not contain current month");
+ }
+ if (!date.contains(String.valueOf(c.get(Calendar.DATE)))) {
+ Assert.fail(message + "Current date is invalid. Date string ["+date+"] does not contain current day");
+ }
+
+ if (!date.contains(String.valueOf(c.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.US)))) {
+ Assert.fail(message + "Current date is invalid. Date string ["+date+"] does not contain current day of week");
+ }
+
+
+ }
+
+ private void checkCurrentDate(Calendar c) {
+ String headerDate = getCalendarDate();
+ String expected = c.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.US);
+ if (!headerDate.contains(expected)) {
+ Assert.fail("Calendar displays invalid date. It should contain ["+expected+"]. But was ["+headerDate+"]");
+ }
+
+ expected = String.valueOf(c.get(Calendar.YEAR));
+ if (!headerDate.contains(expected)) {
+ Assert.fail("Calendar displays invalid date. It should contain ["+expected+"]. But was ["+headerDate+"]");
+ }
+ }
+
@Test
+ public void testJSAPI(Template template) {
+ renderPage(template, RESET_METHOD);
+ initIds(getParentId());
+
+ switchToClientMode();
+
+ Calendar c = Calendar.getInstance();
+
+ // Test getSelectedDate
+ String date = invokeFromComponent(calendarId, "getSelectedDate", null);
+ checkCurrentDate(date, "'getSelectedDate' JS API function does not work");
+ checkCurrentDate(c);
+
+ //Test 'getCurrentYear'
+ String year = invokeFromComponent(calendarId, "getCurrentYear", null);
+ String expected = String.valueOf(c.get(Calendar.YEAR));
+ if (!year.equals(expected)) {
+ Assert.fail("'getCurrentYear' JS API function does not. Expected year: ["+expected+"]. But was ["+year+"]");
+ }
+
+ //Test 'getCurrentMonth'
+ String month = invokeFromComponent(calendarId, "getCurrentMonth", null);
+ expected = String.valueOf(c.get(Calendar.MONTH));
+ if (!month.equals(expected)) {
+ Assert.fail("'getCurrentMonth' JS API function does not. Expected month: ["+expected+"]. But was ["+month+"]");
+ }
+
+
+ //Test 'nextMonth'
+ c.set(Calendar.MONTH, c.get(Calendar.MONTH) + 1);
+ invokeFromComponent(calendarId, "nextMonth", null);
+ month = invokeFromComponent(calendarId, "getCurrentMonth", null);
+ expected = String.valueOf(c.get(Calendar.MONTH));
+ if (!month.equals(expected)) {
+ Assert.fail("'nextMonth' JS API function does not. Expected month after 'nextMonth' method is ["+expected+"]. But was ["+month+"]");
+ }
+ checkCurrentDate(c);
+
+ //Test 'nextYear'
+ c = Calendar.getInstance();
+ c.set(c.get(Calendar.YEAR) + 1, c.get(Calendar.MONTH) + 1, c.get(Calendar.DATE));
+ invokeFromComponent(calendarId, "nextYear", null);
+ year = invokeFromComponent(calendarId, "getCurrentYear", null);
+ expected = String.valueOf(c.get(Calendar.YEAR));
+ if (!year.equals(expected)) {
+ Assert.fail("'nextYear' JS API function does not. Expected year after 'nextYear' method is ["+expected+"]. But was ["+year+"]");
+ }
+ checkCurrentDate(c);
+
+
+ //Test 'selectDate(date)'
+ c = Calendar.getInstance();
+ invokeFromComponent(calendarId, "selectDate", new JSLiteral("new Date()"));
+ date = invokeFromComponent(calendarId, "getSelectedDate", null);
+ checkCurrentDate(date, "'selectDate' JS API function does not work. Date should be swtiched to current date. ");
+ checkCurrentDate(c);
+
+ //Test 'prevMonth()'
+ c = Calendar.getInstance();
+ c.set(Calendar.MONTH, c.get(Calendar.MONTH) - 1);
+ invokeFromComponent(calendarId, "prevMonth", null);
+ month = invokeFromComponent(calendarId, "getCurrentMonth", null);
+ expected = String.valueOf(c.get(Calendar.MONTH));
+ if (!month.equals(expected)) {
+ Assert.fail("'prevMonth' JS API function does not. Expected month after 'prevMonth' method is ["+expected+"]. But was ["+month+"]");
+ }
+ checkCurrentDate(c);
+
+
+ //Test 'prevYear'
+ c = Calendar.getInstance();
+ c.set(c.get(Calendar.YEAR) - 1, c.get(Calendar.MONTH) - 1, c.get(Calendar.DATE));
+ invokeFromComponent(calendarId, "prevYear", null);
+ year = invokeFromComponent(calendarId, "getCurrentYear", null);
+ expected = String.valueOf(c.get(Calendar.YEAR));
+ if (!year.equals(expected)) {
+ Assert.fail("'prevYear' JS API function does not. Expected year after 'prevYear' method is ["+expected+"]. But was ["+year+"]");
+ }
+ checkCurrentDate(c);
+
+ //Test 'today'
+ c = Calendar.getInstance();
+ invokeFromComponent(calendarId, "today", null);
+ date = invokeFromComponent(calendarId, "getSelectedDate", null);
+ checkCurrentDate(date, "'today' JS API function does not work. Date should be swtiched to current date");
+ checkCurrentDate(c);
+
+ //Test 'getData'
+ c = Calendar.getInstance();
+ String data = invokeFromComponent(calendarId, "getData", new JSLiteral("new Date()"));
+ String expectedData = "data" + c.get(Calendar.DATE);
+ if (!data.equals("data" + c.get(Calendar.DATE))) {
+ Assert.fail("'getData' JS API function does not work. Expected data for current date is ["+expectedData+"]. But was ["+data+"]");
+ }
+
+ //Test 'resetSelectedDate'
+ c = Calendar.getInstance();
+ invokeFromComponent(calendarId, "resetSelectedDate", null);
+ date = selenium.getText(dateSelectionXpath);
+ if (!"".equals(date)) {
+ Assert.fail("'resetSelectedDate' JS API function does not work. Selected date should not be displayed on component footer. But was ["+date+"]");
+ }
+ date = invokeFromComponent(calendarId, "getSelectedDate", null);
+ if (!"null".equals(date)) {
+ Assert.fail("'resetSelectedDate' JS API function does not work. Selected date was not reset. Is was ["+date+"]");
+ }
+ checkCurrentDate(c);
+
+
+ //Test doCollapse()
+ setPopup(true);
+ setup();
+ showPopup(); // Show popup
+ invokeFromComponent(calendarId, "doCollapse", null); // Hide popup
+ AssertNotVisible(calendarId, "'doCollapse' does not work. Calendar popup has not been hidden");
+
+ // Test doExpand
+ invokeFromComponent(calendarId, "doExpand", null); // Show popup
+ AssertVisible(calendarId, "'doExpand' does not work. Calendar popup has not been shown");
+
+ // Test doSwitch
+ invokeFromComponent(calendarId, "doSwitch", null); // Hide popup
+ AssertNotVisible(calendarId, "'doSwitch' does not work. Calendar popup has not been hidden");
+ invokeFromComponent(calendarId, "doSwitch", null); // Show popup
+ AssertVisible(calendarId, "'doSwitch' does not work. Calendar popup has not been shown");
+
+
+ }
+
+ @Test
public void testRenderedAttribute(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
16 years, 1 month
JBoss Rich Faces SVN: r11751 - trunk/ui/toolBar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-12 13:56:30 -0500 (Fri, 12 Dec 2008)
New Revision: 11751
Modified:
trunk/ui/toolBar/src/main/config/component/toolBar.xml
Log:
https://jira.jboss.org/jira/browse/RF-3861
Modified: trunk/ui/toolBar/src/main/config/component/toolBar.xml
===================================================================
--- trunk/ui/toolBar/src/main/config/component/toolBar.xml 2008-12-12 17:56:59 UTC (rev 11750)
+++ trunk/ui/toolBar/src/main/config/component/toolBar.xml 2008-12-12 18:56:30 UTC (rev 11751)
@@ -205,7 +205,6 @@
&ui_component_attributes;
&html_style_attributes;
- &html_events;
<property>
<name>onitemkeydown</name>
16 years, 1 month
JBoss Rich Faces SVN: r11750 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-12-12 12:56:59 -0500 (Fri, 12 Dec 2008)
New Revision: 11750
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/layoutTests.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5255
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/layoutTests.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/layoutTests.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 17:38:13 UTC (rev 11749)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 17:56:59 UTC (rev 11750)
@@ -61,6 +61,8 @@
static final String BUTTON_RELATED_TEST_URL = "pages/calendar/buttonRelatedAttributesTest.xhtml";
+ static final String LAYOUT_TESTS_URL = "pages/calendar/layoutTests.xhtml";
+
static final String CONTROLS_FORM_ID = "_controls:";
static final String availableDayCellClass = "rich-calendar-cell-size rich-calendar-cell rich-calendar-btn";
@@ -1097,6 +1099,17 @@
Assert.assertTrue(msg.matches(".*" + label + ".*"), "Error message does not contain defined label: Calendar");
}
+ @Test
+ public void testInputSizeAttribute(Template template) {
+ renderPage(LAYOUT_TESTS_URL, template, null);
+ initIds(getParentId());
+
+ writeStatus("Check 'inputSize' attribute");
+ String inputSizeCalendarInputId = calendarId + "InputSizeInputDate";
+ String size = selenium.getAttribute(inputSizeCalendarInputId + "@size");
+ Assert.assertEquals(size, "15", "Input size attribute is not applied");
+ }
+
private void setPopup(boolean isPopup) {
runScript("$('" + isPopupId + "').checked=" + isPopup);
}
16 years, 1 month
JBoss Rich Faces SVN: r11749 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-12-12 12:38:13 -0500 (Fri, 12 Dec 2008)
New Revision: 11749
Modified:
trunk/docs/userguide/en/src/main/docbook/included/editor.xml
Log:
https://jira.jboss.org/jira/browse/RF-5042
added some info about events handling to the guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/editor.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/editor.xml 2008-12-12 17:37:15 UTC (rev 11748)
+++ trunk/docs/userguide/en/src/main/docbook/included/editor.xml 2008-12-12 17:38:13 UTC (rev 11749)
@@ -125,12 +125,7 @@
</h:selectOneRadio>
...
...]]></programlisting>
- <para>
- Apart from the attributes that define the editor's properties there are some attributes that help handle events(custom event handlers).
- </para>
- <para>
- All custom event handlers are listed in the table of attributes and you can use them the same way as standard HTML event handlers.
- </para>
+
<para>Most configuration options that TinyMCE provides can be applied using <f:param> JSF tag.
@@ -283,6 +278,40 @@
</itemizedlist>
+ <para>
+ The implementation of the <emphasis role="bold"> <property><rich:editor></property></emphasis> component has two methods for handling
+ events.
+ </para>
+ <para>The attributes take some function name as a value with is triggered on the appropriate event. You need to use standard JavaScript function calling syntax. </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Using attributes (<property>"onchange"</property>, <property>"oninit"</property>,<property>"onsave"</property>,<property>"onsetup"</property>) </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+<rich:editor value="#{bean.editorValue}"onchange="myCustomOnChangeHandler()" ... />
+...]]></programlisting>
+
+ </listitem>
+
+ <listitem>
+ <para>Using <f:param> as a child element defining the <property>"name"</property> attribute with one of the TinyMCE's callbacks and the <property>"value"</property> attribute takes the function name you want to be called on the corresponding event as the value. Note, that the syntax in this case is a bit different: parentheses are not required. </para>
+ </listitem>
+
+
+ <programlisting role="XML"><![CDATA[...
+<rich:editor value="#{bean.editorValue}" ...>
+<f:param name="onchange" value="myCustomOnChangeHandler">
+</rich:editor>
+...]]></programlisting>
+
+
+ </itemizedlist>
+
+
<para>The <emphasis role="bold"> <property><rich:editor></property></emphasis>
component has a build-in converter that renders HTML code generated by the editor
to Seam text (you can read more Seam text <ulink url="http://docs.jboss.org/seam/1.1.5.GA/reference/en/html/text.html">here</ulink>.), it also interprets Seam text
16 years, 1 month
JBoss Rich Faces SVN: r11748 - trunk/docs/migrationguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-12-12 12:37:15 -0500 (Fri, 12 Dec 2008)
New Revision: 11748
Modified:
trunk/docs/migrationguide/en/src/main/docbook/master.xml
Log:
reverted because of a problem
Modified: trunk/docs/migrationguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-12-12 17:32:04 UTC (rev 11747)
+++ trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-12-12 17:37:15 UTC (rev 11748)
@@ -33,7 +33,7 @@
<para>
<ulink url="http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/...">PDF version</ulink>
</para>
-</abstract>
+</abstract>
</bookinfo>
@@ -58,7 +58,7 @@
Issues, related to the new components and other problems are not covered here.
However, <ulink url="http://jira.jboss.com/jira/browse/RF">Jira</ulink> contains all issues
and if you can not find your case there, please, feel free to report it.
- </para>
+ </para>
<section id="MostImportant">
<?dbhtml filename="MostImportant.html"?>
<sectioninfo>
16 years, 1 month
JBoss Rich Faces SVN: r11747 - in trunk/docs/faq: en and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-12-12 12:32:04 -0500 (Fri, 12 Dec 2008)
New Revision: 11747
Modified:
trunk/docs/faq/en/pom.xml
trunk/docs/faq/pom.xml
Log:
reverted because of a problem
Modified: trunk/docs/faq/en/pom.xml
===================================================================
--- trunk/docs/faq/en/pom.xml 2008-12-12 17:22:59 UTC (rev 11746)
+++ trunk/docs/faq/en/pom.xml 2008-12-12 17:32:04 UTC (rev 11747)
@@ -37,11 +37,6 @@
<artifactId>maven-jdocbook-plugin</artifactId>
<extensions>true</extensions>
</plugin>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-spellChecker-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- </plugin>
<!--
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
Modified: trunk/docs/faq/pom.xml
===================================================================
--- trunk/docs/faq/pom.xml 2008-12-12 17:22:59 UTC (rev 11746)
+++ trunk/docs/faq/pom.xml 2008-12-12 17:32:04 UTC (rev 11747)
@@ -12,19 +12,7 @@
<name>FAQ</name>
<description>Frequently asked questions</description>
<pluginRepositories>
- <pluginRepository>
- <id>maven.jboss.org</id>
- <name>JBoss Repository for Maven Snapshots</name>
- <url>http://snapshots.jboss.org/maven2/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </pluginRepository>
-<pluginRepository>
+ <pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
@@ -41,26 +29,6 @@
<build>
<pluginManagement>
<plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-spellChecker-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <id>spellChecker:check</id>
- <phase>process-resources</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <dirForScan>en/src/main/docbook</dirForScan>
- <outputDir>
- ${project.build.directory}/spellCheckerLogs
- </outputDir>
- </configuration>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@@ -165,7 +133,7 @@
</sourceDocumentName>
<formats>
- <!--format>
+ <format>
<formatName>pdf</formatName>
<stylesheetResource>
classpath:/xslt/org/jboss/pdf.xsl
@@ -176,7 +144,7 @@
<imagePathSettingRequired>
true
</imagePathSettingRequired>
- </format-->
+ </format>
<!--format>
<formatName>html</formatName>
<stylesheetResource>
16 years, 1 month
JBoss Rich Faces SVN: r11746 - in trunk/docs: faq and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-12-12 12:22:59 -0500 (Fri, 12 Dec 2008)
New Revision: 11746
Removed:
trunk/docs/xslt/
Modified:
trunk/docs/faq/en/pom.xml
trunk/docs/faq/pom.xml
trunk/docs/migrationguide/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - Template Tags Refrence was added
Modified: trunk/docs/faq/en/pom.xml
===================================================================
--- trunk/docs/faq/en/pom.xml 2008-12-12 17:22:41 UTC (rev 11745)
+++ trunk/docs/faq/en/pom.xml 2008-12-12 17:22:59 UTC (rev 11746)
@@ -37,6 +37,11 @@
<artifactId>maven-jdocbook-plugin</artifactId>
<extensions>true</extensions>
</plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-spellChecker-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </plugin>
<!--
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
Modified: trunk/docs/faq/pom.xml
===================================================================
--- trunk/docs/faq/pom.xml 2008-12-12 17:22:41 UTC (rev 11745)
+++ trunk/docs/faq/pom.xml 2008-12-12 17:22:59 UTC (rev 11746)
@@ -12,7 +12,19 @@
<name>FAQ</name>
<description>Frequently asked questions</description>
<pluginRepositories>
- <pluginRepository>
+ <pluginRepository>
+ <id>maven.jboss.org</id>
+ <name>JBoss Repository for Maven Snapshots</name>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
@@ -29,6 +41,26 @@
<build>
<pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-spellChecker-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>spellChecker:check</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <dirForScan>en/src/main/docbook</dirForScan>
+ <outputDir>
+ ${project.build.directory}/spellCheckerLogs
+ </outputDir>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@@ -133,7 +165,7 @@
</sourceDocumentName>
<formats>
- <format>
+ <!--format>
<formatName>pdf</formatName>
<stylesheetResource>
classpath:/xslt/org/jboss/pdf.xsl
@@ -144,7 +176,7 @@
<imagePathSettingRequired>
true
</imagePathSettingRequired>
- </format>
+ </format-->
<!--format>
<formatName>html</formatName>
<stylesheetResource>
Modified: trunk/docs/migrationguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-12-12 17:22:41 UTC (rev 11745)
+++ trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-12-12 17:22:59 UTC (rev 11746)
@@ -33,7 +33,7 @@
<para>
<ulink url="http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/...">PDF version</ulink>
</para>
-</abstract>
+</abstract>
</bookinfo>
@@ -58,7 +58,7 @@
Issues, related to the new components and other problems are not covered here.
However, <ulink url="http://jira.jboss.com/jira/browse/RF">Jira</ulink> contains all issues
and if you can not find your case there, please, feel free to report it.
- </para>
+ </para>
<section id="MostImportant">
<?dbhtml filename="MostImportant.html"?>
<sectioninfo>
16 years, 1 month
JBoss Rich Faces SVN: r11745 - in trunk/docs/cdkguide/en/src/main/docbook: modules and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-12-12 12:22:41 -0500 (Fri, 12 Dec 2008)
New Revision: 11745
Added:
trunk/docs/cdkguide/en/src/main/docbook/tags/
trunk/docs/cdkguide/en/src/main/docbook/tags/cif.xml
trunk/docs/cdkguide/en/src/main/docbook/tags/cset.xml
trunk/docs/cdkguide/en/src/main/docbook/tags/fattribute.xml
trunk/docs/cdkguide/en/src/main/docbook/tags/fclientId.xml
trunk/docs/cdkguide/en/src/main/docbook/tags/finsert.xml
trunk/docs/cdkguide/en/src/main/docbook/tags/forEach.xml
Removed:
trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml
Modified:
trunk/docs/cdkguide/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - Template Tags Refrence was added
Modified: trunk/docs/cdkguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-12-12 17:14:23 UTC (rev 11744)
+++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -11,8 +11,8 @@
<!ENTITY ide SYSTEM "modules/ide.xml">
<!ENTITY ref SYSTEM "modules/ref.xml">
<!ENTITY test SYSTEM "modules/test.xml">
-<!ENTITY temptags SYSTEM "modules/temptags.xml">
+
<!ENTITY pcreate SYSTEM "includes/pcreate.xml">
<!ENTITY ccreate SYSTEM "includes/ccreate.xml">
<!ENTITY ui SYSTEM "includes/ui.xml">
@@ -24,7 +24,14 @@
<!ENTITY taghandler SYSTEM "includes/taghandler.xml">
<!ENTITY rendererbase SYSTEM "includes/rendererbase.xml">
<!--Check the links page -->
-<!ENTITY links SYSTEM "modules/links.xml">
+<!ENTITY links SYSTEM "modules/links.xml">
+
+<!ENTITY forEach SYSTEM "tags/forEach.xml">
+<!ENTITY cif SYSTEM "tags/cif.xml">
+<!ENTITY cset SYSTEM "tags/cset.xml">
+<!ENTITY fattribute SYSTEM "tags/fattribute.xml">
+<!ENTITY finsert SYSTEM "tags/finsert.xml">
+<!ENTITY fclientId SYSTEM "tags/fclientId.xml">
]>
<book>
@@ -175,4 +182,24 @@
<title>Button component development</title>
<para> Work in progress... </para>
- </chapter> &ide; &namingconv; &ref; &temptags; </book>
+ </chapter> &ide; &namingconv; &ref;
+
+ <chapter id="temptags" xreflabel="temptags">
+ <?dbhtml filename="temptags.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>template</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </chapterinfo>
+<title>Template tags overview</title>
+
+&forEach;
+&cif;
+&cset;
+&fattribute;
+&finsert;
+&fclientId;
+</chapter>
+ </book>
Deleted: trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml 2008-12-12 17:14:23 UTC (rev 11744)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/temptags.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="temptags" xreflabel="temptags">
- <?dbhtml filename="temptags.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>template</keyword>
- <keyword>CDK</keyword>
- <keyword>Guide</keyword>
- </keywordset>
- </chapterinfo>
-
-<title>Template tags overview</title>
- <para>
- Work in progress...
- </para>
-
-</chapter>
\ No newline at end of file
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/cif.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/cif.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/cif.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="cif" xreflabel="cif">
+ <?dbhtml filename="cif.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>c:if</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title><c:if /></title>
+ <para>
+ The <emphasis role="bold"><property><c:if /></property></emphasis> tag is a simple conditional tag, which evalutes its body if the supplied condition is true.
+ </para>
+ <table>
+ <title>The <c:if /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>test</entry>
+ <entry>Defines the test condition that determines whether or not the body content should be processed. </entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/cif.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/cset.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/cset.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/cset.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="cset" xreflabel="cset">
+ <?dbhtml filename="cset.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>c:set</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title><c:set /></title>
+ <para>
+ The <emphasis role="bold"><property><c:set /></property></emphasis> tag declares a request scope variable with a value returned by an evaluated expression.
+ </para>
+
+ <table>
+ <title>The <c:set /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>var</entry>
+ <entry>Defines a name of the variable which holds the value</entry>
+ <entry>True</entry>
+ </row>
+ <row>
+ <entry>value</entry>
+ <entry>Defines an expression to be evaluated</entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/cset.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/fattribute.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/fattribute.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/fattribute.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="fattribute" xreflabel="fattribute">
+ <?dbhtml filename="fattribute.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>f:attribute</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title><f:attribute /></title>
+ <para>
+The <emphasis role="bold"><property><f:attribute /></property></emphasis> tag assigns a value to a component attribute.
+ </para>
+ <table>
+ <title>The <f:attribute /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>name</entry>
+ <entry>Defines the name of a component attribute</entry>
+ <entry>True</entry>
+ </row>
+ <row>
+ <entry>value</entry>
+ <entry>Defines a value of the attribute</entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/fattribute.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/fclientId.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/fclientId.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/fclientId.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="fclientId" xreflabel="fclientId">
+ <?dbhtml filename="fclientId.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>f:clientId</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title><f:clientId /></title>
+ <para>
+ The <emphasis role="bold"><property><f:clientId /></property></emphasis> tag declares a variable with a ClientId of the component as the value.
+ </para>
+ <table>
+ <title>The <f:clientId /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>var</entry>
+ <entry>Defines a variable name</entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/fclientId.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/finsert.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/finsert.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/finsert.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="finsert" xreflabel="finsert">
+ <?dbhtml filename="finsert.html"?>
+<sectioninfo>
+ <keywordset>
+ <keyword>f:insert</keyword>
+ </keywordset>
+</sectioninfo>
+ <title><f:insert /></title>
+ <para>
+ The <emphasis role="bold"><property><f:insert /></property></emphasis> tag calls some subTemplate.
+ </para>
+ <table>
+ <title>The <f:insert /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>name</entry>
+ <entry>Defines a template name</entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/finsert.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/cdkguide/en/src/main/docbook/tags/forEach.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/tags/forEach.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/tags/forEach.xml 2008-12-12 17:22:41 UTC (rev 11745)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <section id="forEach" xreflabel="forEach">
+ <?dbhtml filename="forEach.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>c:forEach</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title><c:forEach /></title>
+ <para>
+ The <emphasis role="bold"><property><c:forEach /></property></emphasis> iterates over a collection, iterator or an array of objects. It uses the same syntax as the standard JSTL <emphasis role="bold"><property><c:forEach /></property></emphasis> tag.
+ </para>
+ <table>
+ <title>The <c:forEach /> attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ <entry>Required</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>begin</entry>
+ <entry>Defines the starting index</entry>
+ <entry>False</entry>
+ </row>
+ <row>
+ <entry>end</entry>
+ <entry>Defines the ending index</entry>
+ <entry>False</entry>
+ </row>
+ <row>
+ <entry>items</entry>
+ <entry>Defines the expression used to iterate over. This expression could resolve to an Iterator, Collection, Map, Array, Enumeration or comma separated String.</entry>
+ <entry>False</entry>
+ </row>
+ <row>
+ <entry>step</entry>
+ <entry>Defines the index increment step</entry>
+ <entry>False</entry>
+ </row>
+ <row>
+ <entry>var</entry>
+ <entry>Defines the variable name to export for the item being iterated over</entry>
+ <entry>True</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/tags/forEach.xml
___________________________________________________________________
Name: svn:executable
+ *
16 years, 1 month
JBoss Rich Faces SVN: r11744 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/calendar and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-12-12 12:14:23 -0500 (Fri, 12 Dec 2008)
New Revision: 11744
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/calendarTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5256
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2008-12-12 15:12:45 UTC (rev 11743)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2008-12-12 17:14:23 UTC (rev 11744)
@@ -225,6 +225,7 @@
currentDate = new Date();
locale = Locale.US;
required = false;
+ enableManualInput = false;
}
public String resetAction() {
@@ -502,4 +503,22 @@
isPopup = false;
}
+ private boolean enableManualInput;
+
+ /**
+ * Gets value of enableManualInput field.
+ * @return value of enableManualInput field
+ */
+ public boolean isEnableManualInput() {
+ return enableManualInput;
+ }
+
+ /**
+ * Set a new value for enableManualInput field.
+ * @param enableManualInput a new value for enableManualInput field
+ */
+ public void setEnableManualInput(boolean enableManualInput) {
+ this.enableManualInput = enableManualInput;
+ }
+
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/calendarTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 15:12:45 UTC (rev 11743)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-12 17:14:23 UTC (rev 11744)
@@ -354,14 +354,14 @@
}
}
}
-
+
@Test
public void testRenderedAttribute(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
tester.testRendered();
}
-
+
@Test
public void testInternationalization(Template template) {
renderPage(template, RESET_METHOD);
@@ -378,16 +378,16 @@
testWeekDays();
}
-
+
@Test
- public void testLinitToListAttribute(Template template) {
+ public void testLimitToListAttribute(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
calendarId = tester.getClientId(AutoTester.COMPONENT_ID, template);
calendarHeaderId = calendarId + "Header";
tester.testLimitToList();
}
-
+
@Test
public void testReRenderAttribute(Template template) {
AutoTester tester = getAutoTester(this);
@@ -413,7 +413,7 @@
calendarId = tester.getClientId(AutoTester.COMPONENT_ID, template);
tester.testValidatorAndValidatorMessageAttributes();
}
-
+
@Test
public void testClientMode(Template template) {
renderPage(template, RESET_METHOD);
@@ -1082,6 +1082,21 @@
ajaxSetup();
}
+ @Test
+ public void testLabelAttribute(Template template) {
+ renderPage(template, null);
+ initIds(getParentId());
+
+ String label = "Calendar";
+ writeStatus("Check 'label' attribute");
+
+ writeStatus("Set calendar input to something low-recalling date. Error message shown up has to be peppered with given label (Calendar)");
+ setValueById(inputDateId, "imnotdatetrustme");
+ clickAjaxCommandAndWait(ajaxSubmitId);
+ String msg = selenium.getText(calendarMessageId);
+ Assert.assertTrue(msg.matches(".*" + label + ".*"), "Error message does not contain defined label: Calendar");
+ }
+
private void setPopup(boolean isPopup) {
runScript("$('" + isPopupId + "').checked=" + isPopup);
}
16 years, 1 month