JBoss Rich Faces SVN: r15777 - branches/sandbox.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-10-29 10:16:46 -0400 (Thu, 29 Oct 2009)
New Revision: 15777
Added:
branches/sandbox/rf-jsf2;0support/
Log:
Create branch for richfacesto add some suppotrt to jsf2.0
Copied: branches/sandbox/rf-jsf2;0support (from rev 15776, branches/community/3.3.X)
15 years, 1 month
JBoss Rich Faces SVN: r15776 - branches/sandbox.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-10-29 10:13:57 -0400 (Thu, 29 Oct 2009)
New Revision: 15776
Added:
branches/sandbox/rf-jsf2.0support/
Log:
Create branch for richfacesto add some suppotrt to jsf2.0
15 years, 1 month
JBoss Rich Faces SVN: r15775 - root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-10-29 09:19:26 -0400 (Thu, 29 Oct 2009)
New Revision: 15775
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java
Log:
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java 2009-10-29 11:22:08 UTC (rev 15774)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java 2009-10-29 13:19:26 UTC (rev 15775)
@@ -8,7 +8,7 @@
public interface ElementEncodeListener {
- public void encodeFirstCell(CellEncodeEvent event)throws IOException;
+// public void encodeFirstCell(CellEncodeEvent event)throws IOException;
public void encodeHeaderCell(CellEncodeEvent event) throws IOException;
15 years, 1 month
JBoss Rich Faces SVN: r15774 - in branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test: java/org/jboss/richfaces/integrationTest/comboBox and 13 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2009-10-29 07:22:08 -0400 (Thu, 29 Oct 2009)
New Revision: 15774
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/AdvancedEditorTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/SimpleEditorTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceInput/InplaceInputTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceSelect/InplaceSelectTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inputNumberSlider/InputNumberSliderTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/suggestionBox/SuggestionBoxTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/colorPicker/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/editor/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/messages.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceSelect/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inputNumberSlider/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/spinner/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/suggestionBox/locators.properties
Log:
* test cases for color picker, combo box, editor, inplace input, inplace select, input number slider, and suggestion box refactored to use jQuery locators
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -156,7 +156,7 @@
selenium.mouseDownAt(LOC_COLOR_AREA, "50,50");
selenium.click(LOC_APPLY_BUTTON);
waitFor(500);
-
+
String url = selenium.getAttribute(LOC_IMAGE + "@src");
Color imageColor = getPixelColor(url, 18, 97);
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -41,17 +41,14 @@
// locators
private final String LOC_FIRST_COMBO_INPUT = getLoc("FIRST_COMBO_INPUT");
private final String LOC_FIRST_COMBO_BUTTON = getLoc("FIRST_COMBO_BUTTON");
- private final String LOC_FIRST_COMBO_CONCRETE_SUGGESTION = getLoc("FIRST_COMBO_CONCRETE_SUGGESTION");
private final String LOC_FIRST_COMBO_SUGGESTIONS = getLoc("FIRST_COMBO_SUGGESTIONS");
private final String LOC_SECOND_COMBO_INPUT = getLoc("SECOND_COMBO_INPUT");
private final String LOC_SECOND_COMBO_BUTTON = getLoc("SECOND_COMBO_BUTTON");
- private final String LOC_SECOND_COMBO_CONCRETE_SUGGESTION = getLoc("SECOND_COMBO_CONCRETE_SUGGESTION");
private final String LOC_SECOND_COMBO_SUGGESTIONS = getLoc("SECOND_COMBO_SUGGESTIONS");
private final String LOC_THIRD_COMBO_INPUT = getLoc("THIRD_COMBO_INPUT");
private final String LOC_THIRD_COMBO_BUTTON = getLoc("THIRD_COMBO_BUTTON");
- private final String LOC_THIRD_COMBO_CONCRETE_SUGGESTION = getLoc("THIRD_COMBO_CONCRETE_SUGGESTION");
private final String LOC_THIRD_COMBO_SUGGESTIONS = getLoc("THIRD_COMBO_SUGGESTIONS");
// messages
@@ -106,20 +103,20 @@
scrollIntoView(LOC_FIRST_COMBO_BUTTON, true);
selenium.click(LOC_FIRST_COMBO_BUTTON);
- waitForElement(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION, 1));
- int count = selenium.getXpathCount(LOC_FIRST_COMBO_SUGGESTIONS).intValue();
+ waitForElement(format(LOC_FIRST_COMBO_SUGGESTIONS, 0));
+ int count = getJQueryCount(format(LOC_FIRST_COMBO_SUGGESTIONS,-1));
assertEquals(count, MSG_SUGGESTIONS_FIRST_COMBO_COUNT_1, "Number of suggestions after after clicking on button.");
selenium.click(LOC_FIRST_COMBO_INPUT);
selenium.typeKeys(LOC_FIRST_COMBO_INPUT, "su");
selenium.typeKeys(LOC_FIRST_COMBO_INPUT, " ");
- count = selenium.getXpathCount(LOC_FIRST_COMBO_SUGGESTIONS).intValue();
+ count = getJQueryCount(format(LOC_FIRST_COMBO_SUGGESTIONS, -1));
assertEquals(count, MSG_SUGGESTIONS_FIRST_COMBO_COUNT_2, "Number of suggestions after typing 'su'.");
String[] suggestions = new String[5];
for (int i = 0; i < 5; i++) {
- suggestions[i] = selenium.getText(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION, i + 1));
+ suggestions[i] = selenium.getText(format(LOC_FIRST_COMBO_SUGGESTIONS, i));
}
String[] expected = new String[] { "suggestion 1", "suggestion 2", "suggestion 3", "suggestion 4", "suggestion 5", };
@@ -127,7 +124,7 @@
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing 'sa'.");
try {
- selenium.clickAt(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION, 3), "");
+ selenium.clickAt(format(LOC_FIRST_COMBO_SUGGESTIONS, 2), "");
} catch (Exception ex) {
// why the exception is thrown?
}
@@ -147,20 +144,20 @@
scrollIntoView(LOC_SECOND_COMBO_BUTTON, true);
selenium.click(LOC_SECOND_COMBO_BUTTON);
- waitForElement(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, 1));
- int count = selenium.getXpathCount(LOC_SECOND_COMBO_SUGGESTIONS).intValue();
+ waitForElement(format(LOC_SECOND_COMBO_SUGGESTIONS, 0));
+ int count = getJQueryCount(format(LOC_SECOND_COMBO_SUGGESTIONS, -1));
assertEquals(count, MSG_SUGGESTIONS_SECOND_COMBO_COUNT_1, "Number of suggestions after after clicking on button.");
selenium.click(LOC_SECOND_COMBO_INPUT);
selenium.typeKeys(LOC_SECOND_COMBO_INPUT, "sa");
selenium.typeKeys(LOC_SECOND_COMBO_INPUT, " ");
- count = selenium.getXpathCount(LOC_SECOND_COMBO_SUGGESTIONS).intValue();
+ count = getJQueryCount(format(LOC_SECOND_COMBO_SUGGESTIONS, -1));
assertEquals(count, MSG_SUGGESTIONS_SECOND_COMBO_COUNT_2, "Number of suggestions after typing 'sa'.");
String[] suggestions = new String[4];
for (int i = 0; i < 4; i++) {
- suggestions[i] = selenium.getText(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, i + 1));
+ suggestions[i] = selenium.getText(format(LOC_SECOND_COMBO_SUGGESTIONS, i));
}
String[] expected = new String[] { "Sacramento", "Santa Fe", "Salem", "Salt Lake City" };
@@ -168,7 +165,7 @@
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing 'sa'.");
try {
- selenium.clickAt(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, 3), "");
+ selenium.clickAt(format(LOC_SECOND_COMBO_SUGGESTIONS, 2), "");
} catch (Exception ex) {
// why the exception is thrown?
}
@@ -188,20 +185,20 @@
public void testSuggestionsThirdComboBox() {
selenium.click(LOC_THIRD_COMBO_BUTTON);
- waitForElement(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION, 1));
- int count = selenium.getXpathCount(LOC_THIRD_COMBO_SUGGESTIONS).intValue();
+ waitForElement(format(LOC_THIRD_COMBO_SUGGESTIONS, 0));
+ int count = getJQueryCount(format(LOC_THIRD_COMBO_SUGGESTIONS, -1));
assertEquals(count, MSG_SUGGESTIONS_THIRD_COMBO_COUNT_1, "Number of suggestions after after clicking on button.");
selenium.click(LOC_THIRD_COMBO_INPUT);
selenium.typeKeys(LOC_THIRD_COMBO_INPUT, "sa");
selenium.typeKeys(LOC_THIRD_COMBO_INPUT, " ");
- count = selenium.getXpathCount(LOC_THIRD_COMBO_SUGGESTIONS).intValue();
+ count = getJQueryCount(format(LOC_THIRD_COMBO_SUGGESTIONS, -1));
assertEquals(count, MSG_SUGGESTIONS_THIRD_COMBO_COUNT_2, "Number of suggestions after typing 'sa'.");
String[] suggestions = new String[4];
for (int i = 0; i < 4; i++) {
- suggestions[i] = selenium.getText(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION, i + 1));
+ suggestions[i] = selenium.getText(format(LOC_THIRD_COMBO_SUGGESTIONS, i));
}
String[] expected = new String[] { "Sacramento", "Santa Fe", "Salem", "Salt Lake City" };
@@ -209,7 +206,7 @@
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing 'sa'.");
try {
- selenium.clickAt(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION, 4), "");
+ selenium.clickAt(format(LOC_THIRD_COMBO_SUGGESTIONS, 3), "");
} catch (Exception ex) {
// why the exception is thrown?
}
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/AdvancedEditorTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/AdvancedEditorTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/AdvancedEditorTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -169,10 +169,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_B).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_B);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_BOLD);
selenium.selectFrame("relative=top");
@@ -204,10 +204,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_I).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_I);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_ITALIC);
selenium.selectFrame("relative=top");
@@ -239,10 +239,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_U).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_U);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_UNDERLINED);
selenium.selectFrame("relative=top");
@@ -274,10 +274,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_STRIKE).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_STRIKE);
assertEquals(count, 2, MSG_STRINGS_SHOULD_HAVE_A_LINE_THROUGH);
selenium.selectFrame("relative=top");
@@ -339,13 +339,13 @@
String text = selenium.getText(LOC_TEXT_AREA);
assertEquals(text, "aaaa\nbbbbccccddddeeee", MSG_CONTENT_OF_THE_EDITOR);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_SHOULD_CONTAIN_A_PARAGRAPH);
boolean isPresent = selenium.isElementPresent(LOC_TEXT_AREA_UL);
assertTrue(isPresent, MSG_EDITOR_SHOULD_CONTAIN_UL);
- count = selenium.getXpathCount(LOC_TEXT_AREA_UL_LI).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_UL_LI);
assertEquals(count, 3, MSG_LIST_SHOULD_CONTAIN_THREE_ITEMS);
selenium.selectFrame("relative=top");
@@ -380,13 +380,13 @@
String text = selenium.getText(LOC_TEXT_AREA);
assertEquals(text, "aaaa\nbbbbccccddddeeee", MSG_CONTENT_OF_THE_EDITOR);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_SHOULD_CONTAIN_A_PARAGRAPH);
boolean isPresent = selenium.isElementPresent(LOC_TEXT_AREA_OL);
assertTrue(isPresent, MSG_EDITOR_SHOULD_CONTAIN_OL);
- count = selenium.getXpathCount(LOC_TEXT_AREA_OL_LI).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_OL_LI);
assertEquals(count, 3, MSG_LIST_SHOULD_CONTAIN_THREE_ITEMS);
selenium.selectFrame("relative=top");
@@ -444,27 +444,27 @@
}
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 2));
+ selenium.click(format(LOC_ADV_STYLE_N, 1));
assertTrue(belongsClass("bold-larger", LOC_TEXT_AREA_P), MSG_PARAGRAPHS_CLASS_ATTRIBUTE);
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 3));
+ selenium.click(format(LOC_ADV_STYLE_N, 2));
assertTrue(belongsClass("bold-smaller", LOC_TEXT_AREA_P), MSG_PARAGRAPHS_CLASS_ATTRIBUTE);
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 4));
+ selenium.click(format(LOC_ADV_STYLE_N, 3));
assertTrue(belongsClass("red-bold", LOC_TEXT_AREA_P), MSG_PARAGRAPHS_CLASS_ATTRIBUTE);
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 5));
+ selenium.click(format(LOC_ADV_STYLE_N, 4));
assertTrue(belongsClass("red-bold-larger", LOC_TEXT_AREA_P), MSG_PARAGRAPHS_CLASS_ATTRIBUTE);
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 6));
+ selenium.click(format(LOC_ADV_STYLE_N, 5));
assertTrue(belongsClass("red-bold-smaller", LOC_TEXT_AREA_P), MSG_PARAGRAPHS_CLASS_ATTRIBUTE);
selenium.click(LOC_ADV_STYLE_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_STYLE_N, 1));
+ selenium.click(format(LOC_ADV_STYLE_N, 0));
try {
selenium.getAttribute(LOC_TEXT_AREA_P + "@class");
fail(MSG_PARAGRAPH_SHOULD_HAVE_NO_STYLE);
@@ -483,7 +483,7 @@
// initial state
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "p"));
String text = selenium.getText(LOC_TEXT_AREA_P);
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "p"));
@@ -491,9 +491,9 @@
// address
selenium.click(LOC_ADV_FORMAT_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_FORMAT_N, 3));
+ selenium.click(format(LOC_ADV_FORMAT_N, 2));
selenium.selectFrame(LOC_IFRAME);
- count = selenium.getXpathCount(LOC_TEXT_AREA_ADDRESS).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_ADDRESS);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "address"));
text = selenium.getText(LOC_TEXT_AREA_ADDRESS);
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "address"));
@@ -501,9 +501,9 @@
// paragraph
selenium.click(LOC_ADV_FORMAT_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_FORMAT_N, 2));
+ selenium.click(format(LOC_ADV_FORMAT_N, 1));
selenium.selectFrame(LOC_IFRAME);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "p"));
text = selenium.getText(LOC_TEXT_AREA_P);
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "p"));
@@ -511,9 +511,9 @@
// preformatted
selenium.click(LOC_ADV_FORMAT_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_FORMAT_N, 4));
+ selenium.click(format(LOC_ADV_FORMAT_N, 3));
selenium.selectFrame(LOC_IFRAME);
- count = selenium.getXpathCount(LOC_TEXT_AREA_PRE).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_PRE);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "pre"));
text = selenium.getText(LOC_TEXT_AREA_PRE);
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "pre"));
@@ -521,9 +521,9 @@
// change back to the initial state by clicking on "Format"
selenium.click(LOC_ADV_FORMAT_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_FORMAT_N, 1));
+ selenium.click(format(LOC_ADV_FORMAT_N, 0));
selenium.selectFrame(LOC_IFRAME);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "p"));
text = selenium.getText(LOC_TEXT_AREA_P);
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "p"));
@@ -532,9 +532,9 @@
// heading 1-6
for (int i = 1; i < 7; i++) {
selenium.click(LOC_ADV_FORMAT_SELECT_BUTTON);
- selenium.click(format(LOC_ADV_FORMAT_N, 4 + i));
+ selenium.click(format(LOC_ADV_FORMAT_N, 3 + i));
selenium.selectFrame(LOC_IFRAME);
- count = selenium.getXpathCount(format(LOC_TEXT_AREA_HN, i)).intValue();
+ count = getJQueryCount(format(LOC_TEXT_AREA_HN, i));
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "h" + i));
text = selenium.getText(format(LOC_TEXT_AREA_HN, i));
assertEquals(text, "aaa bbb ccc ddd eee fff ggg", format(MSG_CONTENT_OF_TAG_S, "h" + i));
@@ -584,7 +584,7 @@
Wait.failWith(MSG_NUMBER_OF_RULERS).interval(3000).until(new Condition() {
public boolean isTrue() {
- return selenium.getXpathCount(LOC_TEXT_AREA_P_HR).intValue() == 3;
+ return getJQueryCount(LOC_TEXT_AREA_P_HR) == 3;
}
});
@@ -605,7 +605,7 @@
selenium.typeKeys(LOC_TEXT_AREA, "bbb");
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P2_B).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P2_B);
assertEquals(count, 1, format(MSG_TAG_S_SHOULD_BE_IN_EDITOR, "b"));
String text = selenium.getText(LOC_TEXT_AREA_P2_B);
assertEquals(text, "bbb", format(MSG_CONTENT_OF_TAG_S, "b"));
@@ -618,7 +618,7 @@
selenium.selectFrame("relative=top");
selenium.click(LOC_ADV_REMOVE_FORMATTING_BUTTON);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_B).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_B);
assertEquals(count, 0, format(MSG_TAG_S_SHOULD_NOT_BE_IN_EDITOR, "b"));
text = selenium.getText(LOC_TEXT_AREA_P2);
assertEquals(text, "bbb", format(MSG_CONTENT_OF_TAG_S, "b"));
@@ -755,6 +755,8 @@
} catch (Exception e) {
// OK -- there is no class attribute
}
+
+ selenium.selectFrame("relative=top");
}
/**
@@ -813,23 +815,23 @@
selenium.click(LOC_ADV_CUSTOM_CHAR_BUTTON);
waitForElement(LOC_ADV_DIALOG_IFRAME);
selenium.selectFrame(LOC_ADV_DIALOG_IFRAME);
- waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 1, 5));
+ waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 0, 4));
// euro sign
- selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 1, 5));
+ selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 0, 4));
selenium.click(LOC_ADV_CUSTOM_CHAR_BUTTON);
waitForElement(LOC_ADV_DIALOG_IFRAME);
selenium.selectFrame(LOC_ADV_DIALOG_IFRAME);
- waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 9, 5));
+ waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 8, 4));
// Omega
- selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 9, 5));
+ selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 8, 4));
selenium.click(LOC_ADV_CUSTOM_CHAR_BUTTON);
waitForElement(LOC_ADV_DIALOG_IFRAME);
selenium.selectFrame(LOC_ADV_DIALOG_IFRAME);
- waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 10, 18));
+ waitForElement(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 9, 17));
// heart suite
- selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 10, 18));
+ selenium.click(format(LOC_ADV_CUSTOM_CHAR_DLG_M_N, 9, 17));
String text = selenium.getText(LOC_TEXT_AREA_P);
assertEquals(text, "€Ω♥", MSG_CONTENT_OF_THE_EDITOR);
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/SimpleEditorTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/SimpleEditorTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/editor/SimpleEditorTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -99,10 +99,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_B).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_B);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_BOLD);
selenium.selectFrame("relative=top");
@@ -134,10 +134,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_I).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_I);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_ITALIC);
selenium.selectFrame("relative=top");
@@ -169,10 +169,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_U).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_U);
assertEquals(count, 2, MSG_STRINGS_SHOULD_BE_UNDERLINED);
selenium.selectFrame("relative=top");
@@ -204,10 +204,10 @@
// select the iframe for Selenium to be able to get iframe's content
selenium.selectFrame(LOC_IFRAME);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_IN_THE_EDITOR);
- count = selenium.getXpathCount(LOC_TEXT_AREA_P2_STRIKE).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_P2_STRIKE);
assertEquals(count, 2, MSG_STRINGS_SHOULD_HAVE_A_LINE_THROUGH);
selenium.selectFrame("relative=top");
@@ -264,13 +264,13 @@
String text = selenium.getText(LOC_TEXT_AREA);
assertEquals(text, "aaaa\nbbbbccccddddeeee", MSG_CONTENT_OF_THE_EDITOR);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_SHOULD_CONTAIN_A_PARAGRAPH);
boolean isPresent = selenium.isElementPresent(LOC_TEXT_AREA_UL);
assertTrue(isPresent, MSG_EDITOR_SHOULD_CONTAIN_UL);
- count = selenium.getXpathCount(LOC_TEXT_AREA_UL_LI).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_UL_LI);
assertEquals(count, 3, MSG_LIST_SHOULD_CONTAIN_THREE_ITEMS);
selenium.selectFrame("relative=top");
@@ -305,13 +305,13 @@
String text = selenium.getText(LOC_TEXT_AREA);
assertEquals(text, "aaaa\nbbbbccccddddeeee", MSG_CONTENT_OF_THE_EDITOR);
- int count = selenium.getXpathCount(LOC_TEXT_AREA_P).intValue();
+ int count = getJQueryCount(LOC_TEXT_AREA_P);
assertEquals(count, 2, MSG_TWO_LINES_SHOULD_CONTAIN_A_PARAGRAPH);
boolean isPresent = selenium.isElementPresent(LOC_TEXT_AREA_OL);
assertTrue(isPresent, MSG_EDITOR_SHOULD_CONTAIN_OL);
- count = selenium.getXpathCount(LOC_TEXT_AREA_OL_LI).intValue();
+ count = getJQueryCount(LOC_TEXT_AREA_OL_LI);
assertEquals(count, 3, MSG_LIST_SHOULD_CONTAIN_THREE_ITEMS);
selenium.selectFrame("relative=top");
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceInput/InplaceInputTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceInput/InplaceInputTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceInput/InplaceInputTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -40,7 +40,6 @@
public class InplaceInputTestCase extends AbstractSeleniumRichfacesTestCase {
// messages
- private final String MSG_COMPONENT_DESCRIPTION = getMsg("COMPONENT_DESCRIPTION");
private final String MSG_INITIAL_VALUE_NAME = getMsg("INITIAL_VALUE_NAME");
private final String MSG_INITIAL_VALUE_EMAIL = getMsg("INITIAL_VALUE_EMAIL");
private final String MSG_NAME_JOHN_SMITH = getMsg("NAME_JOHN_SMITH");
@@ -187,7 +186,7 @@
selenium.type(LOC_SECOND_EMAIL_INPUT, "john(a)smith.name");
// TODO check that the button is visible
selenium.fireEvent(LOC_SECOND_EMAIL_OK, Event.MOUSEDOWN);
-
+
assertTrue(belongsClass("rich-inplace-changed", LOC_SECOND_EMAIL), MSG_RICH_INPLACE_CHANGED);
assertFalse(belongsClass("rich-inplace-edit", LOC_SECOND_EMAIL), MSG_NOT_RICH_INPLACE_EDIT);
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceSelect/InplaceSelectTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceSelect/InplaceSelectTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inplaceSelect/InplaceSelectTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -101,10 +101,10 @@
// expand the component and select "Option 4"
selenium.click(LOC_FIRST);
- int count = selenium.getXpathCount(LOC_FIRST_LIST_SPAN).intValue();
+ int count = getJQueryCount(LOC_FIRST_LIST_SPAN);
assertEquals(count, 5, MSG_COUNT_OF_ITEMS);
- selenium.mouseMove(format(LOC_FIRST_LIST_SPAN_N, 4));
+ selenium.mouseMove(format(LOC_FIRST_LIST_SPAN_N, 3));
// TODO explore whether this isn't too low-level
selenium.getEval(format("selenium.browserbot.findElement(\"{0}\").component.save()", LOC_FIRST_SELECT_VIEW));
@@ -141,14 +141,14 @@
selenium.click(LOC_SECOND_INPUT_1);
selenium.click(LOC_SECOND_INPUT_2);
- int count = selenium.getXpathCount(LOC_SECOND_LIST_SPAN).intValue();
+ int count = getJQueryCount(LOC_SECOND_LIST_SPAN);
assertEquals(count, 50, MSG_COUNT_OF_ITEMS);
text = selenium.getText(LOC_SECOND);
assertTrue(text.equals("Double Click to edit"), MSG_DOUBLE_CLICK_TO_EDIT);
// expand the inplace select and click "Arkansas"
- selenium.mouseMove(format(LOC_SECOND_LIST_SPAN_N, 4));
+ selenium.mouseMove(format(LOC_SECOND_LIST_SPAN_N, 3));
selenium.mouseDown(LOC_SECOND_OK_BUTTON);
text = selenium.getText(LOC_SECOND);
@@ -178,7 +178,7 @@
selenium.click(LOC_THIRD_INPUT_1);
selenium.click(LOC_THIRD_INPUT_2);
- int count = selenium.getXpathCount(LOC_THIRD_LIST_SPAN).intValue();
+ int count = getJQueryCount(LOC_THIRD_LIST_SPAN);
assertEquals(count, 50, MSG_COUNT_OF_ITEMS);
text = selenium.getText(LOC_THIRD);
@@ -188,7 +188,7 @@
text = selenium.getText(LOC_THIRD_CAPITAL);
// select "Arkansas"
- selenium.mouseMove(format(LOC_THIRD_LIST_SPAN_N, 4));
+ selenium.mouseMove(format(LOC_THIRD_LIST_SPAN_N, 3));
selenium.mouseDown(LOC_THIRD_SAVE_BUTTON);
// wait for remembered value change
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inputNumberSlider/InputNumberSliderTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inputNumberSlider/InputNumberSliderTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/inputNumberSlider/InputNumberSliderTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -53,20 +53,20 @@
// locators
private final String LOC_EXAMPLE_HEADER = getLoc("EXAMPLE_HEADER");
- private final String LOC_FIRST = format(getLoc("SLIDER_N"), 1);
- private final String LOC_FIRST_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 1);
- private final String LOC_FIRST_TIP = format(getLoc("SLIDER_N_TIP"), 1);
- private final String LOC_FIRST_INPUT = format(getLoc("SLIDER_N_INPUT"), 1);
+ private final String LOC_FIRST = format(getLoc("SLIDER_N"), 0);
+ private final String LOC_FIRST_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 0);
+ private final String LOC_FIRST_TIP = format(getLoc("SLIDER_N_TIP"), 0);
+ private final String LOC_FIRST_INPUT = format(getLoc("SLIDER_N_INPUT"), 0);
- private final String LOC_SECOND = format(getLoc("SLIDER_N"), 2);
- private final String LOC_SECOND_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 2);
- private final String LOC_SECOND_TIP = format(getLoc("SLIDER_N_TIP"), 2);
- private final String LOC_SECOND_INPUT = format(getLoc("SLIDER_N_INPUT"), 2);
+ private final String LOC_SECOND = format(getLoc("SLIDER_N"), 1);
+ private final String LOC_SECOND_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 1);
+ private final String LOC_SECOND_TIP = format(getLoc("SLIDER_N_TIP"), 1);
+ private final String LOC_SECOND_INPUT = format(getLoc("SLIDER_N_INPUT"), 1);
- private final String LOC_THIRD = format(getLoc("SLIDER_N"), 3);
- private final String LOC_THIRD_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 3);
- private final String LOC_THIRD_TIP = format(getLoc("SLIDER_N_TIP"), 3);
- private final String LOC_THIRD_INPUT = format(getLoc("SLIDER_N_INPUT"), 3);
+ private final String LOC_THIRD = format(getLoc("SLIDER_N"), 2);
+ private final String LOC_THIRD_HANDLE = format(getLoc("SLIDER_N_HANDLE"), 2);
+ private final String LOC_THIRD_TIP = format(getLoc("SLIDER_N_TIP"), 2);
+ private final String LOC_THIRD_INPUT = format(getLoc("SLIDER_N_INPUT"), 2);
/**
* Tests clicking on the first slider. First, it checks the offset of the handler and
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/suggestionBox/SuggestionBoxTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/suggestionBox/SuggestionBoxTestCase.java 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/suggestionBox/SuggestionBoxTestCase.java 2009-10-29 11:22:08 UTC (rev 15774)
@@ -86,39 +86,39 @@
// select Atlanta
selenium.typeKeys(LOC_FIRST_INPUT, "at");
- waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
- selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
// select Madison
selenium.typeKeys(LOC_FIRST_INPUT, ",ma");
- waitForTextEquals(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1), "MadisonWisconsin");
- selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ waitForTextEquals(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0), "MadisonWisconsin");
+ selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
- String text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 1));
- assertEquals(text, "Georgia", format(MSG_TABLE_PREFORMATTED, 1, 1));
+ String text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 0));
+ assertEquals(text, "Georgia", format(MSG_TABLE_PREFORMATTED, 1, 0));
+ text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 1));
+ assertEquals(text, "Atlanta", format(MSG_TABLE_PREFORMATTED, 1, 1));
+
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 2));
- assertEquals(text, "Atlanta", format(MSG_TABLE_PREFORMATTED, 1, 2));
+ assertEquals(text, "Augusta", format(MSG_TABLE_PREFORMATTED, 1, 2));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 3));
- assertEquals(text, "Augusta", format(MSG_TABLE_PREFORMATTED, 1, 3));
+ assertEquals(text, "Columbus", format(MSG_TABLE_PREFORMATTED, 1, 3));
- text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 4));
- assertEquals(text, "Columbus", format(MSG_TABLE_PREFORMATTED, 1, 4));
+ text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 0));
+ assertEquals(text, "Wisconsin", format(MSG_TABLE_PREFORMATTED, 2, 0));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 1));
- assertEquals(text, "Wisconsin", format(MSG_TABLE_PREFORMATTED, 2, 1));
+ assertEquals(text, "Milwaukee", format(MSG_TABLE_PREFORMATTED, 2, 1));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 2));
- assertEquals(text, "Milwaukee", format(MSG_TABLE_PREFORMATTED, 2, 2));
+ assertEquals(text, "Madison", format(MSG_TABLE_PREFORMATTED, 2, 2));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 3));
- assertEquals(text, "Madison", format(MSG_TABLE_PREFORMATTED, 2, 3));
-
- text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 4));
- assertEquals(text, "Green Bay", format(MSG_TABLE_PREFORMATTED, 2, 4));
+ assertEquals(text, "Green Bay", format(MSG_TABLE_PREFORMATTED, 2, 3));
}
/**
@@ -131,40 +131,40 @@
// select Atlanta
selenium.typeKeys(LOC_FIRST_INPUT, "[at");
- waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
- selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
selenium.typeKeys(LOC_FIRST_INPUT, "]");
// select Madison
selenium.typeKeys(LOC_FIRST_INPUT, "[ma");
- waitForTextEquals(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1), "MadisonWisconsin");
- selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ waitForTextEquals(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0), "MadisonWisconsin");
+ selenium.click(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
selenium.typeKeys(LOC_FIRST_INPUT, "]");
- String text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 1));
- assertEquals(text, "Georgia", format(MSG_TABLE_PREFORMATTED, 1, 1));
+ String text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 0));
+ assertEquals(text, "Georgia", format(MSG_TABLE_PREFORMATTED, 1, 0));
+ text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 1));
+ assertEquals(text, "Atlanta", format(MSG_TABLE_PREFORMATTED, 1, 1));
+
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 2));
- assertEquals(text, "Atlanta", format(MSG_TABLE_PREFORMATTED, 1, 2));
+ assertEquals(text, "Augusta", format(MSG_TABLE_PREFORMATTED, 1, 2));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 3));
- assertEquals(text, "Augusta", format(MSG_TABLE_PREFORMATTED, 1, 3));
+ assertEquals(text, "Columbus", format(MSG_TABLE_PREFORMATTED, 1, 3));
- text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 1, 4));
- assertEquals(text, "Columbus", format(MSG_TABLE_PREFORMATTED, 1, 4));
+ text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 0));
+ assertEquals(text, "Wisconsin", format(MSG_TABLE_PREFORMATTED, 2, 0));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 1));
- assertEquals(text, "Wisconsin", format(MSG_TABLE_PREFORMATTED, 2, 1));
+ assertEquals(text, "Milwaukee", format(MSG_TABLE_PREFORMATTED, 2, 1));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 2));
- assertEquals(text, "Milwaukee", format(MSG_TABLE_PREFORMATTED, 2, 2));
+ assertEquals(text, "Madison", format(MSG_TABLE_PREFORMATTED, 2, 2));
text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 3));
- assertEquals(text, "Madison", format(MSG_TABLE_PREFORMATTED, 2, 3));
-
- text = selenium.getText(format(LOC_FIRST_TOWN_TABLE_PREFORMATTED, 2, 4));
- assertEquals(text, "Green Bay", format(MSG_TABLE_PREFORMATTED, 2, 4));
+ assertEquals(text, "Green Bay", format(MSG_TABLE_PREFORMATTED, 2, 3));
}
/**
@@ -178,8 +178,8 @@
// select aaa
selenium.typeKeys(LOC_FIRST_INPUT, "aaa");
- waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
- String text = selenium.getText(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 1));
+ waitForElement(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
+ String text = selenium.getText(format(LOC_FIRST_SUGGESTION_BOX_PREFORMATTED, 0));
assertEquals(text, "No capitals found", MSG_PREFORMATTEDO_CAPITALS_FOUND);
}
@@ -481,7 +481,8 @@
selenium.click(LOC_SECOND_BUTTON);
waitForElement(LOC_SECOND_SUGGESTION_LINES);
- int count = selenium.getXpathCount(LOC_SECOND_SUGGESTION_LINES).intValue();
+// int count = selenium.getXpathCount(LOC_SECOND_SUGGESTION_LINES).intValue();
+ int count = getJQueryCount(LOC_SECOND_SUGGESTION_LINES);
assertEquals(count, 50, MSG_COUNT_OF_ALL_SUGGESTIONS);
}
@@ -494,8 +495,8 @@
scrollIntoView(LOC_SECOND_INPUT, true);
selenium.typeKeys(LOC_SECOND_INPUT, "a");
- waitForElement(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2));
- selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2)); // Augusta
+ waitForElement(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 1));
+ selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 1)); // Augusta
String state = selenium.getText(LOC_SECOND_STATE);
assertEquals(state, "Maine", MSG_AUGUSTA_MAINE);
@@ -512,12 +513,12 @@
scrollIntoView(LOC_SECOND_INPUT, true);
selenium.typeKeys(LOC_SECOND_INPUT, "a");
- waitForElement(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2));
- selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2)); // Augusta
+ waitForElement(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 1));
+ selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 1)); // Augusta
selenium.typeKeys(LOC_SECOND_INPUT, ",m");
- waitForTextEquals(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 3), "Madison");
- selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 3)); // Madison
+ waitForTextEquals(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2), "Madison");
+ selenium.click(format(LOC_SECOND_SUGGESTION_BOX_PREFORMATTED, 2)); // Madison
Wait.failWith(MSG_AUGUSTA_MADISON_MAINE_WISCONSIN).until(new Condition() {
public boolean isTrue() {
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/colorPicker/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/colorPicker/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/colorPicker/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,23 +1,23 @@
-COMPONENT_HEADER=//fieldset[1]/legend
+COMPONENT_HEADER=jquery=fieldset:eq(0) > legend
-IMAGE=//fieldset[1]/div/form/table/tbody/tr[1]/td/img
-COLOR_INPUT=//fieldset[1]/div/form/table/tbody/tr[2]/td[1]/span/input
-COLOR_BUTTON=//fieldset[1]/div/form/table/tbody/tr[2]/td[1]/span/img
+IMAGE=jquery=fieldset:eq(0) img[id$=painter]
+COLOR_INPUT=jquery=fieldset:eq(0) span.rich-color-picker-span > input
+COLOR_BUTTON=jquery=fieldset:eq(0) span.rich-color-picker-span > img
-COLOR_AREA=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[1]
-CURSOR=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[1]/div/div
-RED_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[6]/input
-GREEN_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[7]/input
-BLUE_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[8]/input
-HUE_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[9]/input
-SATURATION_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[10]/input
-BRIGHTNESS_VALUE=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[11]/input
-CURRENT_COLOR_BOX=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[3]
-ORIGINAL_COLOR_BOX=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[4]
-RAINBOW=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[2]/img
+COLOR_AREA=jquery=fieldset:eq(0) div[id$=colorPicker-popup] div.rich-color-picker-color
+CURSOR=jquery=fieldset:eq(0) div[id$=colorPicker-popup] div.rich-color-picker-color > div > div
+RED_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-rgb-r]
+GREEN_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-rgb-g]
+BLUE_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-rgb-b]
+HUE_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-hsb-h]
+SATURATION_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-hsb-s]
+BRIGHTNESS_VALUE=jquery=fieldset:eq(0) input[id$=colorPicker-hsb-b]
+CURRENT_COLOR_BOX=jquery=fieldset:eq(0) div.rich-color-picker-new-color
+ORIGINAL_COLOR_BOX=jquery=fieldset:eq(0) div.rich-color-picker-current-color
+RAINBOW=jquery=fieldset:eq(0) div.rich-color-picker-rainbow > img
-HEX_COLOR=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/div[5]/input
-APPLY_BUTTON=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/button[1]
-CANCEL_BUTTON=//fieldset[1]/div/form/table/tbody/tr[2]/td/div[1]/div/button[2]
+HEX_COLOR=jquery=fieldset:eq(0) input[id$=colorPicker-hex]
+APPLY_BUTTON=jquery=fieldset:eq(0) button[name=apply]
+CANCEL_BUTTON=jquery=fieldset:eq(0) button[name=cancel]
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,14 +1,11 @@
-FIRST_COMBO_INPUT=//fieldset[1]/div/div[1]/div/div[2]/input[1]
-FIRST_COMBO_BUTTON=//fieldset[1]/div/div[1]/div/div[2]/input[3]
-FIRST_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
-FIRST_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
+FIRST_COMBO_INPUT=jquery=fieldset:eq(0) input[id$=comboboxField]
+FIRST_COMBO_BUTTON=jquery=fieldset:eq(0) input[id$=comboboxButton]
+FIRST_COMBO_SUGGESTIONS=jquery=div.rich-combobox-list-scroll > span{0,choice,-1#|0#:eq({0})}
-SECOND_COMBO_INPUT=//fieldset[2]/div/div[1]/div/div[2]/input[1]
-SECOND_COMBO_BUTTON=//fieldset[2]/div/div[1]/div/div[2]/input[3]
-SECOND_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
-SECOND_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
+SECOND_COMBO_INPUT=jquery=fieldset:eq(1) input[id$=comboboxField]
+SECOND_COMBO_BUTTON=jquery=fieldset:eq(1) input[id$=comboboxButton]
+SECOND_COMBO_SUGGESTIONS=jquery=div.rich-combobox-list-scroll > span{0,choice,-1#|0#:eq({0})}
-THIRD_COMBO_INPUT=//fieldset[3]/div/div[1]/div/div[2]/input[1]
-THIRD_COMBO_BUTTON=//fieldset[3]/div/div[1]/div/div[2]/input[3]
-THIRD_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
-THIRD_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
\ No newline at end of file
+THIRD_COMBO_INPUT=jquery=fieldset:eq(2) input[id$=comboboxField]
+THIRD_COMBO_BUTTON=jquery=fieldset:eq(2) input[id$=comboboxButton]
+THIRD_COMBO_SUGGESTIONS=jquery=div.rich-combobox-list-scroll > span{0,choice,-1#|0#:eq({0})}
\ No newline at end of file
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/editor/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/editor/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/editor/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,87 +1,87 @@
-ADVANCED_BUTTON=//div[@id='form:controls_body']/table/tbody/tr[1]/td[2]/table/tbody/tr[2]/td/input
-EXAMPLE_HEADER=//fieldset[1]/legend
+ADVANCED_BUTTON=jquery=fieldset:eq(0) div[id$=controls] tr:eq(0) tr:eq(1) input
+EXAMPLE_HEADER=jquery=fieldset:eq(0) legend
-TEXT_AREA=id=tinymce
-IFRAME=id=form:editorTextArea_ifr
-ADV_DIALOG_IFRAME=//iframe[matches(@id, 'mce_\\d{1,2}_ifr')]
-TEXT_AREA_P=//body[@id='tinymce']/p
-TEXT_AREA_P_A=//body[@id='tinymce']/p/a
-TEXT_AREA_P_IMG=//body[@id='tinymce']/p/img
-TEXT_AREA_P_SPAN=//body[@id='tinymce']/p/span
-TEXT_AREA_P_HR=//body[@id='tinymce']/p/hr
-TEXT_AREA_P_SUB=//body[@id='tinymce']/p/sub
-TEXT_AREA_P_SUP=//body[@id='tinymce']/p/sup
-TEXT_AREA_P2=//body[@id='tinymce']/p[2]
-TEXT_AREA_P2_B=//body[@id='tinymce']/p[2]/b
-TEXT_AREA_P2_I=//body[@id='tinymce']/p[2]/i
-TEXT_AREA_P2_U=//body[@id='tinymce']/p[2]/u
-TEXT_AREA_P2_STRIKE=//body[@id='tinymce']/p[2]/strike
-TEXT_AREA_OL=//body[@id='tinymce']/ol
-TEXT_AREA_OL_LI=//body[@id='tinymce']/ol/li
-TEXT_AREA_UL=//body[@id='tinymce']/ul
-TEXT_AREA_UL_LI=//body[@id='tinymce']/ul/li
-TEXT_AREA_ADDRESS=//body[@id='tinymce']/address
-TEXT_AREA_PRE=//body[@id='tinymce']/pre
-TEXT_AREA_HN=//body[@id='tinymce']/h{0}
+TEXT_AREA=jquery=#tinymce
+IFRAME=jquery\=iframe\#form\\\:editorTextArea_ifr
+ADV_DIALOG_IFRAME=jquery=iframe[id*=mce_]
+TEXT_AREA_P=jquery=body#tinymce > p
+TEXT_AREA_P_A=jquery=body#tinymce > p > a
+TEXT_AREA_P_IMG=jquery=body#tinymce > p > img
+TEXT_AREA_P_SPAN=jquery=body#tinymce > p > span
+TEXT_AREA_P_HR=jquery=body#tinymce > p > hr
+TEXT_AREA_P_SUB=jquery=body#tinymce > p > sub
+TEXT_AREA_P_SUP=jquery=body#tinymce > p > sup
+TEXT_AREA_P2=jquery=body#tinymce > p:eq(1)
+TEXT_AREA_P2_B=jquery=body#tinymce > p:eq(1) > b
+TEXT_AREA_P2_I=jquery=body#tinymce > p:eq(1) > i
+TEXT_AREA_P2_U=jquery=body#tinymce > p:eq(1) > u
+TEXT_AREA_P2_STRIKE=jquery=body#tinymce > p:eq(1) > strike
+TEXT_AREA_OL=jquery=body#tinymce > ol
+TEXT_AREA_OL_LI=jquery=body#tinymce > ol > li
+TEXT_AREA_UL=jquery=body#tinymce > ul
+TEXT_AREA_UL_LI=jquery=body#tinymce > ul > li
+TEXT_AREA_ADDRESS=jquery=body#tinymce > address
+TEXT_AREA_PRE=jquery=body#tinymce > pre
+TEXT_AREA_HN=jquery=body#tinymce > h{0}
# simple editor' buttons
-BOLD_BUTTON=id=form:editorTextArea_bold
-ITALIC_BUTTON=id=form:editorTextArea_italic
-UNDERLINE_BUTTON=id=form:editorTextArea_underline
-STRIKETHROUGH_BUTTON=id=form:editorTextArea_strikethrough
-UNDO_BUTTON=id=form:editorTextArea_undo
-REDO_BUTTON=id=form:editorTextArea_redo
-UNORDERED_LIST_BUTTON=id=form:editorTextArea_insertunorderedlist
-ORDERED_LIST_BUTTON=id=form:editorTextArea_insertorderedlist
+BOLD_BUTTON=jquery=a#form\\:editorTextArea_bold
+ITALIC_BUTTON=jquery=a#form\\:editorTextArea_italic
+UNDERLINE_BUTTON=jquery=a#form\\:editorTextArea_underline
+STRIKETHROUGH_BUTTON=jquery=a#form\\:editorTextArea_strikethrough
+UNDO_BUTTON=jquery=a#form\\:editorTextArea_undo
+REDO_BUTTON=jquery=a#form\\:editorTextArea_redo
+UNORDERED_LIST_BUTTON=jquery=a#form\\:editorTextArea_insertunorderedlist
+ORDERED_LIST_BUTTON=jquery=a#form\\:editorTextArea_insertorderedlist
# advanced editor's buttons
-ADV_UNORDERED_LIST_BUTTON=id=form:editorTextArea_bullist
-ADV_ORDERED_LIST_BUTTON=id=form:editorTextArea_numlist
-ADV_ALIGN_LEFT_BUTTON=id=form:editorTextArea_justifyleft
-ADV_ALIGN_RIGHT_BUTTON=id=form:editorTextArea_justifyright
-ADV_ALIGN_CENTER_BUTTON=id=form:editorTextArea_justifycenter
-ADV_ALIGN_FULL_BUTTON=id=form:editorTextArea_justifyfull
-ADV_STYLE_SELECT_BUTTON=id=form:editorTextArea_styleselect_open
-ADV_FORMAT_SELECT_BUTTON=id=form:editorTextArea_formatselect_open
-ADV_STYLE_N=//table[@id='menu_form:editorTextArea_form:editorTextArea_styleselect_menu_tbl']/tbody/tr[{0}]
-ADV_FORMAT_N=//table[@id='menu_form:editorTextArea_form:editorTextArea_formatselect_menu_tbl']/tbody/tr[{0}]
-ADV_INDENT_BUTTON=id=form:editorTextArea_indent
-ADV_OUTDENT_BUTTON=id=form:editorTextArea_outdent
-ADV_HORIZONTAL_RULER_BUTTON=id=form:editorTextArea_hr
-ADV_REMOVE_FORMATTING_BUTTON=id=form:editorTextArea_removeformat
-ADV_SUBSCRIPT_BUTTON=id=form:editorTextArea_sub
-ADV_SUPERSCRIPT_BUTTON=id=form:editorTextArea_sup
-ADV_LINK_BUTTON=id=form:editorTextArea_link
-ADV_UNLINK_BUTTON=id=form:editorTextArea_unlink
-ADV_TOGGLE_INVISIBLE_BUTTON=id=form:editorTextArea_visualaid
-ADV_ANCHOR_BUTTON=id=form:editorTextArea_anchor
-ADV_IMAGE_BUTTON=id=form:editorTextArea_image
-ADV_CUSTOM_CHAR_BUTTON=id=form:editorTextArea_charmap
+ADV_UNORDERED_LIST_BUTTON=jquery=a#form\\:editorTextArea_bullist
+ADV_ORDERED_LIST_BUTTON=jquery=a#form\\:editorTextArea_numlist
+ADV_ALIGN_LEFT_BUTTON=jquery=a#form\\:editorTextArea_justifyleft
+ADV_ALIGN_RIGHT_BUTTON=jquery=a#form\\:editorTextArea_justifyright
+ADV_ALIGN_CENTER_BUTTON=jquery=a#form\\:editorTextArea_justifycenter
+ADV_ALIGN_FULL_BUTTON=jquery=a#form\\:editorTextArea_justifyfull
+ADV_STYLE_SELECT_BUTTON=jquery=a#form\\:editorTextArea_styleselect_open
+ADV_FORMAT_SELECT_BUTTON=jquery=a#form\\:editorTextArea_formatselect_open
+ADV_STYLE_N=jquery=table#menu_form\\:editorTextArea_form\\:editorTextArea_styleselect_menu_tbl tr:eq({0})
+ADV_FORMAT_N=jquery=table#menu_form\\:editorTextArea_form\\:editorTextArea_formatselect_menu_tbl tr:eq({0})
+ADV_INDENT_BUTTON=jquery=a#form\\:editorTextArea_indent
+ADV_OUTDENT_BUTTON=jquery=a#form\\:editorTextArea_outdent
+ADV_HORIZONTAL_RULER_BUTTON=jquery=a#form\\:editorTextArea_hr
+ADV_REMOVE_FORMATTING_BUTTON=jquery=a#form\\:editorTextArea_removeformat
+ADV_SUBSCRIPT_BUTTON=jquery=a#form\\:editorTextArea_sub
+ADV_SUPERSCRIPT_BUTTON=jquery=a#form\\:editorTextArea_sup
+ADV_LINK_BUTTON=jquery=a#form\\:editorTextArea_link
+ADV_UNLINK_BUTTON=jquery=a#form\\:editorTextArea_unlink
+ADV_TOGGLE_INVISIBLE_BUTTON=jquery=a#form\\:editorTextArea_visualaid
+ADV_ANCHOR_BUTTON=jquery=a#form\\:editorTextArea_anchor
+ADV_IMAGE_BUTTON=jquery=a#form\\:editorTextArea_image
+ADV_CUSTOM_CHAR_BUTTON=jquery=a#form\\:editorTextArea_charmap
# insert/edit link dialog
-ADV_LINK_DLG_URL=id=href
-ADV_LINK_DLG_TARGET_N=id=target_list
-ADV_LINK_DLG_TITLE=id=linktitle
-ADV_LINK_DLG_CLASS_N=id=class_list
-ADV_LINK_DLG_UPDATE=id=insert
+ADV_LINK_DLG_URL=jquery=input#href
+ADV_LINK_DLG_TARGET_N=jquery=select#target_list
+ADV_LINK_DLG_TITLE=jquery=input#linktitle
+ADV_LINK_DLG_CLASS_N=jquery=select#class_list
+ADV_LINK_DLG_UPDATE=jquery=input#insert
# insert/edit anchor dialog
-ADV_ANCHOR_DLG_NAME=id=anchorName
-ADV_ANCHOR_DLG_INSERT_BUTTON=id=insert
+ADV_ANCHOR_DLG_NAME=jquery=input#anchorName
+ADV_ANCHOR_DLG_INSERT_BUTTON=jquery=input#insert
# insert/edit image dialog
-ADV_IMAGE_DLG_URL=id=src
-ADV_IMAGE_DLG_DESCRIPTION=id=alt
-ADV_IMAGE_DLG_ALIGNMENT=id=align
-ADV_IMAGE_DLG_WIDTH=id=width
-ADV_IMAGE_DLG_HEIGHT=id=height
-ADV_IMAGE_DLG_BORDER=id=border
-ADV_IMAGE_DLG_VSPACE=id=vspace
-ADV_IMAGE_DLG_HSPACE=id=hspace
-ADV_IMAGE_DLG_INSERT_BUTTON=id=insert
+ADV_IMAGE_DLG_URL=jquery=input#src
+ADV_IMAGE_DLG_DESCRIPTION=jquery=input#alt
+ADV_IMAGE_DLG_ALIGNMENT=jquery=select#align
+ADV_IMAGE_DLG_WIDTH=jquery=input#width
+ADV_IMAGE_DLG_HEIGHT=jquery=input#height
+ADV_IMAGE_DLG_BORDER=jquery=input#border
+ADV_IMAGE_DLG_VSPACE=jquery=input#vspace
+ADV_IMAGE_DLG_HSPACE=jquery=input#hspace
+ADV_IMAGE_DLG_INSERT_BUTTON=jquery=input#insert
# insert custom character dialog
-ADV_CUSTOM_CHAR_DLG_M_N=//td[@id='charmapView']/table/tbody/tr[{0}]/td[{1}]/a
+ADV_CUSTOM_CHAR_DLG_M_N=jquery=td#charmapView tr:eq({0}) > td:eq({1}) > a
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,16 +1,16 @@
-FIRST_NAME=//fieldset[1]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span
-FIRST_NAME_INPUT=//fieldset[1]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span/input
-FIRST_EMAIL=//fieldset[1]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span
-FIRST_EMAIL_INPUT=//fieldset[1]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span/input
-SECOND_NAME=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span
-SECOND_NAME_INPUT=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span/input
-SECOND_NAME_OK=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span/div/div[2]/input[1]
-SECOND_NAME_CANCEL=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[1]/td[2]/span/div/div[2]/input[2]
-SECOND_EMAIL=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span
-SECOND_EMAIL_INPUT=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span/input
-SECOND_EMAIL_OK=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span/div/div[2]/input[1]
-SECOND_EMAIL_CANCEL=//fieldset[2]/div/div[1]/div[2]/table/tbody/tr[2]/td[2]/span/div/div[2]/input[2]
-THIRD=//fieldset[3]/div/span
-THIRD_INPUT=//fieldset[3]/div/span/input
-THIRD_SAVE=//fieldset[3]/div/span/div/button[1]
-THIRD_CANCEL=//fieldset[3]/div/span/div/button[2]
\ No newline at end of file
+FIRST_NAME=jquery=fieldset:eq(0) span.rich-inplace-input:eq(0)
+FIRST_NAME_INPUT=jquery=fieldset:eq(0) span.rich-inplace-input:eq(0) > input
+FIRST_EMAIL=jquery=fieldset:eq(0) span.rich-inplace-input:eq(1)
+FIRST_EMAIL_INPUT=jquery=fieldset:eq(0) span.rich-inplace-input:eq(1) > input
+SECOND_NAME=jquery=fieldset:eq(1) span.rich-inplace-input:eq(0)
+SECOND_NAME_INPUT=jquery=fieldset:eq(1) span.rich-inplace-input:eq(0) > input
+SECOND_NAME_OK=jquery=fieldset:eq(1) span.rich-inplace-input:eq(0) input[id$=ok]
+SECOND_NAME_CANCEL=jquery=fieldset:eq(1) span.rich-inplace-input:eq(0) input[id$=cancel]
+SECOND_EMAIL=jquery=fieldset:eq(1) span.rich-inplace-input:eq(1)
+SECOND_EMAIL_INPUT=jquery=fieldset:eq(1) span.rich-inplace-input:eq(1) > input
+SECOND_EMAIL_OK=jquery=fieldset:eq(1) span.rich-inplace-input:eq(1) input[id$=ok]
+SECOND_EMAIL_CANCEL=jquery=fieldset:eq(1) span.rich-inplace-input:eq(1) input[id$=cancel]
+THIRD=jquery=fieldset:eq(2) span#inplaceInput
+THIRD_INPUT=jquery=fieldset:eq(2) input#inplaceInputtempValue
+THIRD_SAVE=jquery=fieldset:eq(2) div#inplaceInputbar > button:eq(0)
+THIRD_CANCEL=jquery=fieldset:eq(2) div#inplaceInputbar > button:eq(1)
\ No newline at end of file
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/messages.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/messages.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceInput/messages.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,4 +1,3 @@
-COMPONENT_DESCRIPTION=InplaceInput is a simple input component which displays the current value
INITIAL_VALUE_NAME=Default value in the inplace input should be "click to enter your name".
INITIAL_VALUE_EMAIL=Default value in the inplace input should be "click to enter your email".
NAME_JOHN_SMITH=The input should contain "John Smith".
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceSelect/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceSelect/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inplaceSelect/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,21 +1,21 @@
-FIRST=//fieldset[1]/div/span
-FIRST_SELECT_VIEW=//fieldset[1]//*[contains(@class,'rich-inplace-select-view')]
-FIRST_INPUT_1=//fieldset[1]/div/span/input[1]
-FIRST_INPUT_2=//fieldset[1]/div/span/input[2]
-FIRST_LIST_SPAN_N=//*[@class\='rich-inplace-select-list-scroll']/span[starts-with(text(),'Option')][{0}]
-FIRST_LIST_SPAN=//*[@class\='rich-inplace-select-list-scroll']/span[starts-with(text(),'Option')]
+FIRST=jquery=fieldset:eq(0) > div > span
+FIRST_SELECT_VIEW=jquery=fieldset:eq(0) span.rich-inplace-select
+FIRST_INPUT_1=jquery=fieldset:eq(0) input[id$=tempValue]
+FIRST_INPUT_2=jquery=fieldset:eq(0) input[id$=inselArrow]
+FIRST_LIST_SPAN_N=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span:eq({0})
+FIRST_LIST_SPAN=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span
-SECOND=//fieldset[2]/div/div[1]/div
-SECOND_INPUT_1=//fieldset[2]/div/div[1]/div/input[1]
-SECOND_INPUT_2=//fieldset[2]/div/div[1]/div/input[2]
-SECOND_LIST_SPAN_N=//*[not(contains(@class,'rich-inplace-select-view'))]/*/*/*/*[@class\='rich-inplace-select-list-scroll']/span[text()\='Alabama']/../span[{0}]
-SECOND_LIST_SPAN=//*[not(contains(@class,'rich-inplace-select-view'))]/*/*/*/*[@class\='rich-inplace-select-list-scroll']/span[text()\='Alabama']/../span
-SECOND_OK_BUTTON=//fieldset[2]/div/div[1]/div/div/div[2]/input[1]
+SECOND=jquery=fieldset:eq(1) div.rich-inplace-select
+SECOND_INPUT_1=jquery=fieldset:eq(1) input[id$=tempValue]
+SECOND_INPUT_2=jquery=fieldset:eq(1) input[id$=inselArrow]
+SECOND_LIST_SPAN_N=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span:eq({0})
+SECOND_LIST_SPAN=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span
+SECOND_OK_BUTTON=jquery=fieldset:eq(1) input[id$=ok]
-THIRD=//fieldset[3]/div/form/table/tbody/tr/td[2]/span
-THIRD_INPUT_1=//fieldset[3]/div/form/table/tbody/tr/td[2]/span/input[1]
-THIRD_INPUT_2=//fieldset[3]/div/form/table/tbody/tr/td[2]/span/input[2]
-THIRD_LIST_SPAN_N=//*[not(contains(@class,'rich-inplace-select-view'))]/*/*/*/*[@class\='rich-inplace-select-list-scroll']/span[text()\='Alabama']/../span[{0}]
-THIRD_LIST_SPAN=//*[not(contains(@class,'rich-inplace-select-view'))]/*/*/*/*[@class\='rich-inplace-select-list-scroll']/span[text()\='Alabama']/../span
-THIRD_CAPITAL=//fieldset[3]/div/form/table/tbody/tr/td[3]/span
-THIRD_SAVE_BUTTON=//fieldset[3]/div/form/table/tbody/tr/td[2]/span/div/button[1]
\ No newline at end of file
+THIRD=jquery=fieldset:eq(2) span.rich-inplace-select
+THIRD_INPUT_1=jquery=fieldset:eq(2) input[id$=inplaceSelecttempValue]
+THIRD_INPUT_2=jquery=fieldset:eq(2) input[id$=inplaceSelectinselArrow]
+THIRD_LIST_SPAN_N=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span:eq({0})
+THIRD_LIST_SPAN=jquery=body > div[id$=listParent] div.rich-inplace-select-list-scroll > span
+THIRD_CAPITAL=jquery=fieldset:eq(2) span[id$=output]
+THIRD_SAVE_BUTTON=jquery=fieldset:eq(2) button:eq(0)
\ No newline at end of file
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inputNumberSlider/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inputNumberSlider/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/inputNumberSlider/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,5 +1,5 @@
-EXAMPLE_HEADER=//fieldset/legend
-SLIDER_N=//fieldset[1]/div/table[{0}]/tbody/tr[2]/td/table/tbody/tr/td
-SLIDER_N_HANDLE=//fieldset[1]/div/table[{0}]/tbody/tr[2]/td/table/tbody/tr/td/div[1]/div[2]
-SLIDER_N_TIP=//fieldset[1]/div/table[{0}]/tbody/tr[2]/td/table/tbody/tr/td/div[1]/div[1]
-SLIDER_N_INPUT=//fieldset[1]/div/table[{0}]/tbody/tr[1]/td[3]/input
+EXAMPLE_HEADER=jquery=fieldset:eq(0) > legend
+SLIDER_N=jquery=fieldset:eq(0) > div > table:eq({0}) td[id$=Track]
+SLIDER_N_HANDLE=jquery=fieldset:eq(0) > div > table:eq({0}) div[id$=Handle]
+SLIDER_N_TIP=jquery=fieldset:eq(0) > div > table:eq({0}) div[id$=Tip]
+SLIDER_N_INPUT=jquery=fieldset:eq(0) > div > table:eq({0}) input[id$=Input]
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/spinner/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/spinner/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/spinner/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,7 +1,7 @@
-EXAMPLE_HEADER=//fieldset/legend
-UPPER_SPINNER_INPUT=//fieldset/div/form/table[1]/tbody/tr/td[1]/input
-UPPER_SPINNER_UP=//fieldset/div/form/table[1]/tbody/tr/td[2]/table/tbody/tr[1]/td/input
-UPPER_SPINNER_DOWN=//fieldset/div/form/table[1]/tbody/tr/td[2]/table/tbody/tr[2]/td/input
-LOWER_SPINNER_INPUT=//fieldset/div/form/table[2]/tbody/tr/td[1]/input
-LOWER_SPINNER_UP=//fieldset/div/form/table[2]/tbody/tr/td[2]/table/tbody/tr[1]/td/input
-LOWER_SPINNER_DOWN=//fieldset/div/form/table[2]/tbody/tr/td[2]/table/tbody/tr[2]/td/input
\ No newline at end of file
+EXAMPLE_HEADER=jquery=fieldset:eq(0) > legend
+UPPER_SPINNER_INPUT=jquery=fieldset:eq(0) form > table:eq(0) input.rich-spinner-input
+UPPER_SPINNER_UP=jquery=fieldset:eq(0) form > table:eq(0) input.rich-spinner-button:eq(0)
+UPPER_SPINNER_DOWN=jquery=fieldset:eq(0) form > table:eq(0) input.rich-spinner-button:eq(1)
+LOWER_SPINNER_INPUT=jquery=fieldset:eq(0) form > table:eq(1) input.rich-spinner-input
+LOWER_SPINNER_UP=jquery=fieldset:eq(0) form > table:eq(1) input.rich-spinner-button:eq(0)
+LOWER_SPINNER_DOWN=jquery=fieldset:eq(0) form > table:eq(1) input.rich-spinner-button:eq(1)
\ No newline at end of file
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/suggestionBox/locators.properties
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/suggestionBox/locators.properties 2009-10-29 11:00:26 UTC (rev 15773)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/suggestionBox/locators.properties 2009-10-29 11:22:08 UTC (rev 15774)
@@ -1,24 +1,24 @@
-FIRST_SUGGESTION_BOX_PREFORMATTED=//table[@id='suggestionbox_form:suggestionBoxId:suggest']/tbody/tr[{0}]
+FIRST_SUGGESTION_BOX_PREFORMATTED=jquery=table[id$=suggest].rich-sb-int-decor-table tr:eq({0})
-FIRST_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/input[1]
-FIRST_BORDER_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[1]/td[2]/table/tbody/tr[1]/td[3]/input
-FIRST_WIDTH_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[2]/td[2]/table/tbody/tr[1]/td[3]/input
-FIRST_HEIGHT_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[3]/td[2]/table/tbody/tr[1]/td[3]/input
-FIRST_SHADOW_DEPTH_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[4]/td[2]/table/tbody/tr[1]/td[3]/input
-FIRST_SHADOW_OPACITY_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[5]/td[2]/table/tbody/tr[1]/td[3]/input
-FIRST_CELLPADDING_INPUT=//fieldset[1]/div/form/table/tbody/tr/td[1]/table/tbody/tr[6]/td[2]/table/tbody/tr[1]/td[3]/input
+FIRST_INPUT=jquery=fieldset:eq(0) input[id$=text]
+FIRST_BORDER_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(0) > td:eq(1) input
+FIRST_WIDTH_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(1) > td:eq(1) input
+FIRST_HEIGHT_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(2) > td:eq(1) input
+FIRST_SHADOW_DEPTH_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(3) > td:eq(1) input
+FIRST_SHADOW_OPACITY_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(4) > td:eq(1) input
+FIRST_CELLPADDING_INPUT=jquery=fieldset:eq(0) td.sb_test_column1 > table > tbody > tr:eq(5) > td:eq(1) input
-FIRST_TOWN_TABLE_PREFORMATTED=//fieldset[1]/div/form/table/tbody/tr/td[2]/div/table/tbody/tr[{0}]/td[{1}]
+FIRST_TOWN_TABLE_PREFORMATTED=jquery=fieldset:eq(0) td.sb_test_column2 div#myDiv tr:eq({0}) > td:eq({1})
-FIRST_BORDER_STYLE=//div[@id='suggestionbox_form:suggestionBoxId']/div[1]/div@style
-FIRST_WIDTH_STYLE=//div[@id='suggestionbox_form:suggestionBoxId']@style
-FIRST_HEIGHT_STYLE=//div[@id='suggestionbox_form:suggestionBoxId']@style
-FIRST_SHADOW_DEPTH_STYLE=//div[@id='suggestionbox_form:suggestionBoxId']/div[2]@style
-FIRST_SHADOW_OPACITY_STYLE=//div[@id='suggestionbox_form:suggestionBoxId']/div[2]@style
-FIRST_CELLPADDING=//div[@id='suggestionbox_form:suggestionBoxId']/div[1]/div/table/tbody/tr/td/div/table@cellpadding
+FIRST_BORDER_STYLE=jquery=div[id$=suggestionBoxId] div.rich-sb-ext-decor-2@style
+FIRST_WIDTH_STYLE=jquery=div[id$=suggestionBoxId]@style
+FIRST_HEIGHT_STYLE=jquery=div[id$=suggestionBoxId]@style
+FIRST_SHADOW_DEPTH_STYLE=jquery=div[id$=suggestionBoxId] > div:eq(1)@style
+FIRST_SHADOW_OPACITY_STYLE=jquery=div[id$=suggestionBoxId] > div:eq(1)@style
+FIRST_CELLPADDING=jquery=div[id$=suggestionBoxId] table[id$=suggest]@cellpadding
-SECOND_INPUT=//fieldset[2]/div/form/table/tbody/tr[1]/td[2]/table/tbody/tr/td[1]/input
-SECOND_BUTTON=//fieldset[2]/div/form/table/tbody/tr[1]/td[2]/table/tbody/tr/td[2]/img
-SECOND_SUGGESTION_LINES=//div[@id='form:suggestion']/div[1]/div/table/tbody/tr/td/div/table/tbody/tr
-SECOND_SUGGESTION_BOX_PREFORMATTED=//div[@id='form:suggestion']/div[1]/div/table/tbody/tr/td/div/table/tbody/tr[{0}]
-SECOND_STATE=//fieldset[2]/div/form/table/tbody/tr[2]/td[2]/span
+SECOND_INPUT=jquery=fieldset:eq(1) input[id$=statesinput]
+SECOND_BUTTON=jquery=fieldset:eq(1) img[src*=arrow.png]
+SECOND_SUGGESTION_LINES=jquery=div[id$=suggestion] table[id$=suggest] tr
+SECOND_SUGGESTION_BOX_PREFORMATTED=jquery=div[id$=suggestion] table[id$=suggest] tr:eq({0})
+SECOND_STATE=jquery=fieldset:eq(1) span[id$=objects]
15 years, 1 month
JBoss Rich Faces SVN: r15773 - root/examples-sandbox/trunk/components/tables/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-10-29 07:00:26 -0400 (Thu, 29 Oct 2009)
New Revision: 15773
Modified:
root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
Log:
Modified: root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
===================================================================
--- root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2009-10-29 10:59:41 UTC (rev 15772)
+++ root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2009-10-29 11:00:26 UTC (rev 15773)
@@ -19,8 +19,8 @@
<f:facet name="header">
<rich:colGroup id="headerFacet1" >
<rich:column><h:outputText id="headerFacet12" value="header column 1"> </h:outputText></rich:column>
- <rich:column><h:outputText id="headerFacet13" value="header column 1"></h:outputText></rich:column>
- <rich:column><h:outputText id="headerFacet14" value="header column 1"></h:outputText></rich:column>
+ <rich:column><h:outputText id="headerFacet13" value="header column 2"></h:outputText></rich:column>
+ <rich:column><h:outputText id="headerFacet14" value="header column 3"></h:outputText></rich:column>
</rich:colGroup>
</f:facet>
<rich:column id="column_name">
@@ -41,7 +41,7 @@
<h:outputText value="#{record.EMail}" />
</rich:column>
- <rich:subTable var="company" value="#{record.company}">
+ <rich:subTable var="company" value="#{record.company}" rows="20">
<rich:column id="column_company_name">
<h:outputText value="#{company.name}" />
</rich:column>
@@ -54,10 +54,13 @@
<h:outputText value="#{company.phone}" />
</rich:column>
</rich:subTable>
+
<f:facet name="footer">
<h:outputText id="footerFacet1" value="Footer Facet" />
</f:facet>
+
</rich:simpleDataTable>
+
</h:form>
</h:body>
</html>
15 years, 1 month
JBoss Rich Faces SVN: r15772 - in root/ui-sandbox/trunk/components/tables/ui/src/main: java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-10-29 06:59:41 -0400 (Thu, 29 Oct 2009)
New Revision: 15772
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncodeEvent.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeEvent.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncodeEvent.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncoder.java
Removed:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncoder.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleCellEncoder.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleColgroupRenderer.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SubTableRenderer.java
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/colgroup.template.xml
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/ColumnsIterator.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/DataIterator.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumnGroup.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIDataTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISimpleDataTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleDataTableRendererBase.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/TableHolder.java
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/faces-config.xml
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/tables.taglib.xml
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml
Log:
remove subtable, columnGroup renderers, add RowEncoder class which fires Row/Cell encode events when row, cell encode occurs
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/ColumnsIterator.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/ColumnsIterator.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/ColumnsIterator.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -22,7 +22,6 @@
import java.util.Iterator;
-import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
/**
@@ -30,7 +29,7 @@
* @author asmirnov
*
*/
-class ColumnsIterator extends IteratorBase<javax.faces.component.UIColumn> {
+class ColumnsIterator extends IteratorBase<UIComponent> {
protected Iterator<UIComponent> childrenIterator;
@@ -40,11 +39,11 @@
this.childrenIterator = dataTable.getChildren().iterator();
}
- protected javax.faces.component.UIColumn nextItem(){
+ protected UIComponent nextItem(){
while (childrenIterator != null && childrenIterator.hasNext()) {
UIComponent child = childrenIterator.next();
- if(child instanceof javax.faces.component.UIColumn){
- return (UIColumn)child;
+ if(child instanceof javax.faces.component.UIColumn || child instanceof Column){
+ return child;
}
}
return null;
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/DataIterator.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/DataIterator.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/DataIterator.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -37,6 +37,7 @@
}
protected UIComponent nextItem() {
+
UIComponent nextColumn = null;
while (nextColumn == null && childrenIterator.hasNext()) {
UIComponent child = childrenIterator.next();
@@ -47,6 +48,7 @@
}
}
+ // ???
while (nextColumn == null && facetsIterator.hasNext()) {
UIComponent component = facetsIterator.next();
if(checkAjaxComponent(component)){
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumnGroup.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumnGroup.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumnGroup.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -23,7 +23,7 @@
import java.util.Iterator;
-import javax.faces.component.UIColumn;
+import javax.faces.component.UIComponent;
import javax.faces.component.UIPanel;
/**
@@ -36,7 +36,7 @@
public static final String COMPONENT_FAMILY = "org.richfaces.Colgroup";
- public Iterator<UIColumn> columns(){
+ public Iterator<UIComponent> columns(){
return new ColumnsIterator(this);
}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIDataTable.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIDataTable.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -2,12 +2,11 @@
import java.util.Iterator;
-import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
-public class UIDataTable extends UISequence{
+public class UIDataTable extends UISequence {
- public Iterator<UIColumn> columns() {
+ public Iterator<UIComponent> columns() {
return new ColumnsIterator(this);
}
@@ -34,5 +33,8 @@
return getFacet("caption");
}
-
+ @Override
+ public boolean getRendersChildren() {
+ return true;
+ }
}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISimpleDataTable.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISimpleDataTable.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISimpleDataTable.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -10,4 +10,5 @@
*/
public abstract class UISimpleDataTable extends UIDataTable {
+
}
\ No newline at end of file
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -24,6 +24,7 @@
import java.util.Iterator;
import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
/**
@@ -54,9 +55,19 @@
// SubTable is not sortable element.
return null;
}
-
+
+ @Override
+ public void resetDataModel(FacesContext context) {
+ super.resetDataModel(context);
+ }
+
public void setSortExpression(String sortExpression) {
// Do nothing - subtable is not sortable element;
}
+
+ @Override
+ public boolean getRendersChildren() {
+ return false;
+ }
}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -24,7 +24,6 @@
import java.io.IOException;
import java.util.Map;
-import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
@@ -34,7 +33,6 @@
import org.ajax4jsf.renderkit.RendererBase;
import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
-import org.richfaces.component.Column;
import org.richfaces.component.UIDataAdaptor;
import org.richfaces.component.UIDataTable;
@@ -42,7 +40,7 @@
* @author shura
*
*/
-public abstract class AbstractRowsRenderer extends RendererBase implements DataVisitor {
+public abstract class AbstractRowsRenderer extends RendererBase implements DataVisitor, ElementEncodeListener {
public static final String[][] TABLE_EVENT_ATTRS = {
{"onclick","onRowClick"},
@@ -63,17 +61,12 @@
public static final String SKIN_CELL_CLASS_KEY = AbstractRowsRenderer.class.getName() + ".skinCellClass";
public static final String SKIN_FIRST_ROW_CLASS_KEY = AbstractRowsRenderer.class.getName() + ".firstRowSkinClass";
+
-
- public abstract void doProcess(FacesContext facesContext, TableHolder holder) throws IOException;
-
- public abstract void encodeOneRow(FacesContext context, TableHolder holder) throws IOException;
-
- public abstract void encodeCell(FacesContext context, UIComponent cell) throws IOException;
-
protected abstract String getCellSkinClass();
-
+ public abstract RowEncoder getRowEncoder(TableHolder holder);
+
protected String getCellStyleClasses(FacesContext context, UIComponent component) {
StringBuffer styleClass = new StringBuffer();
// Construct predefined classes
@@ -98,13 +91,15 @@
}
- public DataVisitResult process(FacesContext facesContext, Object rowKey, Object argument) {
+ public DataVisitResult process(FacesContext context, Object rowKey, Object argument) {
TableHolder holder = (TableHolder) argument;
UIDataAdaptor table = holder.getTable();
- table.setRowKey(facesContext, rowKey);
+ table.setRowKey(context, rowKey);
try {
- doProcess(facesContext, holder);
- }catch (IOException e) {
+ RowEncoder encoder = getRowEncoder(holder);
+ encoder.setHeader(false);
+ encoder.encodeRows(context, table);
+ } catch (IOException e) {
//TODO: seems we need add throws IOException ???
}
holder.nextRow();
@@ -112,11 +107,11 @@
}
public void encodeRows(FacesContext facesContext, UIDataTable table) throws IOException {
- encodeRows(facesContext, table, new TableHolder(table));
+ TableHolder tableHolder = new TableHolder(table);
+ encodeRows(facesContext, table, tableHolder);
}
- protected void encodeRows(FacesContext context, UIDataTable component, TableHolder tableHolder) throws IOException {
- UIDataTable table = component;
+ protected void encodeRows(FacesContext context, UIDataTable table, TableHolder tableHolder) throws IOException {
Object key = table.getRowKey();
table.captureOrigValue(context);
@@ -231,6 +226,7 @@
* @throws IOException
*/
+/*
protected void encodeCellChildren(FacesContext context, UIComponent cell,
String skinFirstRowClass, String skinRowClass, String rowClass,
String skinCellClass, String cellClass) throws IOException {
@@ -262,13 +258,9 @@
requestMap.put(SKIN_CELL_CLASS_KEY, skinCellClass);
}
-
- if((cell instanceof Column) && (cell instanceof UIColumn)) {
- encodeCell(context, cell);
- } else {
- renderChild(context, cell);
- }
+ encodeCell(context, cell);
+
// Restore original values.
requestMap.put(ROW_CLASS_KEY, savedRowClass);
requestMap.put(CELL_CLASS_KEY, savedCellClass);
@@ -277,6 +269,6 @@
requestMap.put(SKIN_CELL_CLASS_KEY, savedSkinCellClass);
}
+*/
-
}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -21,13 +21,22 @@
})
public abstract class AbstractTableRenderer extends AbstractRowsRenderer {
- public abstract void encodeTBody (FacesContext context, UIDataTable table) throws IOException;
+ public void encodeTableBody (FacesContext context, UIDataTable table) throws IOException {
+ encodeBodyBegin(context, table);
+ encodeRows(context, table);
+ encodeBodyEnd(context, table);
+ }
+
+ public abstract void encodeBodyBegin(FacesContext context, UIDataTable table) throws IOException;
+
+ public abstract void encodeBodyEnd(FacesContext context, UIDataTable table) throws IOException;
+
public boolean isColumnFacetPresent(UIDataTable table, String facetName) {
- Iterator<UIColumn> columns = table.columns();
+ Iterator<UIComponent> columns = table.columns();
boolean result = false;
while(columns.hasNext() && !result) {
- UIColumn component = columns.next();
+ UIComponent component = columns.next();
result = (component.isRendered() && null != component.getFacet(facetName));
}
return result;
@@ -41,10 +50,10 @@
* @return true if specified attribute should generate header on the table
*/
public boolean isHeaderFactoryColumnAttributePresent(UIDataTable table,String attributeName) {
- Iterator<UIColumn> columns = table.columns();
+ Iterator<UIComponent> columns = table.columns();
boolean result = false;
while (columns.hasNext() && !result) {
- UIColumn component = columns.next();
+ UIComponent component = columns.next();
result = (component.isRendered() && (null != component.getValueExpression(attributeName)));
}
return result;
@@ -65,7 +74,7 @@
return count;
}
- protected int calculateRowColumns(Iterator<UIColumn> col) {
+ protected int calculateRowColumns(Iterator<UIComponent> col) {
int count = 0;
int currentLength = 0;
while (col.hasNext()) {
@@ -114,7 +123,7 @@
@Override
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
- encodeTBody(context, (UIDataTable) component);
+ encodeTableBody(context, (UIDataTable) component);
}
}
Added: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncodeEvent.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncodeEvent.java (rev 0)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncodeEvent.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -0,0 +1,35 @@
+package org.richfaces.renderkit;
+
+import java.util.Map;
+
+import javax.faces.component.UIColumn;
+import javax.faces.context.FacesContext;
+
+public class CellEncodeEvent implements ElementEncodeEvent <UIColumn> {
+
+ private FacesContext context;
+
+ private UIColumn source;
+
+ private Map<String, String> styleClasses;
+
+
+ public CellEncodeEvent(FacesContext context, UIColumn source) {
+ this.context = context;
+ this.source = source;
+ }
+
+ public FacesContext getContext() {
+ return this.context;
+ }
+
+ public UIColumn getSource() {
+ return this.source;
+ }
+
+ public Map<String, String> getStyleClasses() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncoder.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncoder.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/CellEncoder.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,28 +0,0 @@
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-
-/**
- * @author Anton Belevich
- *
- */
-public interface CellEncoder {
-
- public static String [] CELL_ATTRIBUTES = {
- "abbr" , "align" , "axis" , "bgcolor" , "char" , "charoff" , "colspan" , "dir" ,
- "headers" , "height" , "lang" , "nowrap" , "onclick" , "ondblclick" , "onkeydown" ,
- "onkeypress" , "onkeyup" , "onmousedown" , "onmousemove" , "onmouseout" , "onmouseover" ,
- "onmouseup" , "rowspan" , "scope" , "style" , "title" , "valign" , "width" , "xml:lang" };
-
- public void encodeBegin(FacesContext context, UIComponent component) throws IOException;
-
- public void encodeEnd(FacesContext context, UIComponent component) throws IOException;
-
- public void setStyleClasses(String styleClasses);
-
- public String getStyleClasses();
-
-}
Added: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeEvent.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeEvent.java (rev 0)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeEvent.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -0,0 +1,16 @@
+package org.richfaces.renderkit;
+
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public interface ElementEncodeEvent <T extends UIComponent> {
+
+ public Map <String, String> getStyleClasses();
+
+ public T getSource();
+
+ public FacesContext getContext();
+
+}
Added: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java (rev 0)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ElementEncodeListener.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -0,0 +1,25 @@
+package org.richfaces.renderkit;
+
+import java.io.IOException;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.UISubTable;
+
+public interface ElementEncodeListener {
+
+ public void encodeFirstCell(CellEncodeEvent event)throws IOException;
+
+ public void encodeHeaderCell(CellEncodeEvent event) throws IOException;
+
+ public void encodeCell(CellEncodeEvent event) throws IOException;
+
+ public void encodeFirstRow(RowEncodeEvent event) throws IOException;
+
+ public void encodeRowStart(RowEncodeEvent event) throws IOException;
+
+ public void encodeRowEnd(RowEncodeEvent event) throws IOException;
+
+ public void encodeSubTable(FacesContext context, UISubTable subTable) throws IOException;
+
+}
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,38 +0,0 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
-
-public interface HeaderEncodeStrategy {
-
- public abstract void encodeBegin(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn) throws IOException;
-
- public abstract void encodeEnd(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn) throws IOException;
-
-}
Added: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncodeEvent.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncodeEvent.java (rev 0)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncodeEvent.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -0,0 +1,34 @@
+package org.richfaces.renderkit;
+
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public class RowEncodeEvent implements ElementEncodeEvent<UIComponent> {
+
+ private FacesContext context;
+
+ private UIComponent source;
+
+ private Map<String, String> styleClasses;
+
+ public RowEncodeEvent(FacesContext context, UIComponent source) {
+ this.context = context;
+ this.source = source;
+ }
+
+ public FacesContext getContext() {
+ return this.context;
+ }
+
+ public UIComponent getSource() {
+ return this.source;
+ }
+
+ public Map<String, String> getStyleClasses() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncoder.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncoder.java (rev 0)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/RowEncoder.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -0,0 +1,126 @@
+package org.richfaces.renderkit;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.faces.component.UIColumn;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.renderkit.RendererUtils;
+import org.richfaces.component.Column;
+import org.richfaces.component.Row;
+import org.richfaces.component.UISubTable;
+
+
+public class RowEncoder {
+
+
+ private ElementEncodeListener listener;
+
+ private Map <String, String> styleClasses = new HashMap<String, String>();
+
+ private boolean header = false;
+
+ public void encodeCell(FacesContext context, UIColumn column, int currentColumn) throws IOException {
+ CellEncodeEvent event = new CellEncodeEvent(context, column);
+ listener.encodeCell(event);
+ }
+
+ public void encodeHeaderCell(FacesContext context, UIColumn column, int currentColumn) throws IOException {
+ CellEncodeEvent event = new CellEncodeEvent(context, column);
+ listener.encodeHeaderCell(event);
+ }
+
+ public void encodeRowEnd(FacesContext context, UIComponent component) throws IOException {
+ RowEncodeEvent event = new RowEncodeEvent(context, component);
+ listener.encodeRowEnd(event);
+ }
+
+ public void encodeRowStart(FacesContext context, UIComponent component) throws IOException {
+ RowEncodeEvent event = new RowEncodeEvent(context, component);
+ listener.encodeRowStart(event);
+ }
+
+ public void encodeFirstRow(FacesContext context, UIComponent row) throws IOException {
+ RowEncodeEvent event = new RowEncodeEvent(context, row);
+ listener.encodeFirstRow(event);
+ }
+
+ public ElementEncodeListener getListener() {
+ return listener;
+ }
+
+ public void setListener(ElementEncodeListener listener) {
+ this.listener = listener;
+ }
+
+ public void encodeSubTable(FacesContext context, UISubTable subTable) throws IOException {
+ subTable.resetDataModel(context);
+ listener.encodeSubTable(context, subTable);
+ }
+
+ public void encodeRows(FacesContext context, UIComponent component) throws IOException {
+ boolean firstRow = true;
+ int currentColumn = 0;
+ Iterator<UIComponent> iterator = component.getChildren().iterator();
+ while(iterator.hasNext()) {
+
+ UIComponent child = iterator.next();
+ if(!(child instanceof UISubTable)) {
+
+ if(firstRow) {
+ encodeRowStart(context, child);
+ firstRow = false;
+ }
+
+ if(child instanceof Row) {
+ if(!firstRow) {
+ encodeRowEnd(context, null);
+ }
+ encodeRows(context, child);
+ }
+
+ if(child instanceof UIColumn) {
+
+ UIColumn column = (UIColumn)child;
+ //TODO: check
+ if(column instanceof Column && ((Column)column).isBreakBefore()) {
+ encodeRows(context, column);
+ }
+
+ if(header) {
+ encodeHeaderCell(context, column, currentColumn);
+ } else {
+ encodeCell(context, column, currentColumn);
+ }
+
+ }
+
+ } else {
+ UISubTable subTable = (UISubTable)child;
+ encodeSubTable(context,subTable);
+ }
+ }
+ encodeRowEnd(context, null);
+ }
+
+ public RendererUtils getRenderUtils() {
+ return RendererUtils.getInstance();
+ }
+
+ public void setStyleClass(String key, String value) {
+ styleClasses.put(key, value);
+ }
+
+ public boolean isHeader() {
+ return header;
+ }
+
+ public void setHeader(boolean header) {
+ this.header = header;
+ }
+
+}
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleCellEncoder.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleCellEncoder.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleCellEncoder.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,65 +0,0 @@
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
-
-import org.ajax4jsf.renderkit.RendererUtils;
-import org.ajax4jsf.renderkit.RendererUtils.HTML;
-
-/**
- * @author Anton Belevich
- *
- */
-public class SimpleCellEncoder implements CellEncoder {
-
- RendererUtils utils;
- String styleClasses;
-
-
- public SimpleCellEncoder(RendererUtils utils) {
- this(utils, null);
- }
-
- SimpleCellEncoder(RendererUtils utils, String styleClasses) {
- this.utils = utils;
- this.styleClasses = styleClasses;
- }
-
- public void encodeBegin(FacesContext context, UIComponent component) throws IOException{
-
- ResponseWriter writer = context.getResponseWriter();
- String classes = getStyleClasses();
-
- String element = getElement();
- writer.startElement(element, component);
-
- String clientId = component.getClientId(context);
-
- utils.writeAttribute(writer, "class",classes);
- utils.writeAttribute(writer, "id", clientId );
- utils.encodeAttributesFromArray(context,component,CELL_ATTRIBUTES);
-
- }
-
- public void encodeEnd(FacesContext context, UIComponent component) throws IOException{
- ResponseWriter writer = context.getResponseWriter();
- String element = getElement();
- writer.endElement(element);
- }
-
- protected String getElement() {
- boolean isHeader = styleClasses != null ? styleClasses.contains("header") : false;
- return isHeader ? HTML.th_ELEM : HTML.td_ELEM;
- }
-
- public String getStyleClasses() {
- return styleClasses;
- }
-
- public void setStyleClasses(String styleClasses) {
- this.styleClasses = styleClasses;
- }
-}
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleColgroupRenderer.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleColgroupRenderer.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleColgroupRenderer.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,189 +0,0 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.faces.component.UIColumn;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
-
-import org.ajax4jsf.renderkit.RendererUtils.HTML;
-import org.richfaces.component.Column;
-import org.richfaces.component.UIColumnGroup;
-
-/**
- * @author shura
- *
- */
-public class SimpleColgroupRenderer extends AbstractRowsRenderer {
-
- public static final String[] EVENT_ATTRS ;
-
- static {
- EVENT_ATTRS = new String[AbstractRowsRenderer.TABLE_EVENT_ATTRS.length];
- for (int i = 0; i < AbstractRowsRenderer.TABLE_EVENT_ATTRS.length; i++) {
- EVENT_ATTRS[i]=AbstractRowsRenderer.TABLE_EVENT_ATTRS[i][0];
- }
- }
-
-
- protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent colgroup) throws IOException {
- encodeRowStart(context, colgroup, writer, 0);
- }
-
- public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
- UIColumnGroup colgroup = (UIColumnGroup) component;
-
- String columnClasses = (String) component.getAttributes().get("columnClasses");
- String[] classes = columnClasses != null ? columnClasses.split(",") : null;
-
- Iterator<UIColumn> iter = colgroup.columns();
-
- int currentColumn = 0;
- int currentRow = 0;
- boolean first = true;
-
- ResponseWriter writer = context.getResponseWriter();
- Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
-
- while (iter.hasNext()) {
-
- UIColumn column = iter.next();
- if (column instanceof Column) {
-
- boolean breakBefore = ((Column) column).isBreakBefore();
- if (breakBefore && !first) {
- // close current row
- writer.endElement(HTML.TR_ELEMENT);
- // reset columns counter.
- currentColumn = 0;
- currentRow++;
- // Start new row, expect a case of the detail table, wich
- // will be insert own row.
- encodeRowStart(context, colgroup, writer, currentRow);
- }
-
- String styleClass = classes != null ? classes[currentColumn % classes.length] : null;
- encodeCellChildren(context, column, null, null, null,
- (String) requestMap.get(AbstractRowsRenderer.SKIN_CELL_CLASS_KEY),styleClass);
- } else {
- // UIColumn don't have own renderer
- if (column.isRendered()) {
- writer.startElement(HTML.td_ELEM, column);
- getUtils().encodeId(context, column);
- String styleClass = classes != null ? classes[currentColumn % classes.length] :
- (String) column.getAttributes().get("styleClass");
-
- encodeStyleClass(context.getResponseWriter(), requestMap.get(AbstractRowsRenderer.SKIN_CELL_CLASS_KEY),
- "rich-table-cell", requestMap.get(AbstractRowsRenderer.CELL_CLASS_KEY), styleClass);
- // TODO - encode column attributes.
- renderChildren(context, column);
- writer.endElement(HTML.td_ELEM);
-
- }
-
- }
-
- currentColumn++;
- first = false;
- }
- }
-
- protected void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
- writer.endElement(HTML.TR_ELEMENT);
- }
-
- private void encodeRowStart(FacesContext context, UIComponent colspan, ResponseWriter writer, int currentRow) throws IOException {
- writer.startElement(HTML.TR_ELEMENT, colspan);
-
- String styleClass;
- String rowClasses = (String) colspan.getAttributes().get("rowClasses");
- if (null != rowClasses) {
- String[] classes = rowClasses.split(",");
- styleClass = classes[currentRow % classes.length];
- } else {
- styleClass = (String) colspan.getAttributes().get("styleClass");
- }
-
- Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
- Object skinRowClass = currentRow == 0 ? requestMap.get(AbstractRowsRenderer.SKIN_FIRST_ROW_CLASS_KEY):
- requestMap.get(AbstractRowsRenderer.SKIN_ROW_CLASS_KEY);
-
- encodeStyleClass(context.getResponseWriter(), skinRowClass, "rich-tablerow", requestMap
- .get(AbstractRowsRenderer.ROW_CLASS_KEY), styleClass);
-
- String style = (String) colspan.getAttributes().get("style");
- encodeStyle(context.getResponseWriter(),null, null, null, style);
-
- getUtils().encodePassThruWithExclusionsArray(context, colspan,EVENT_ATTRS, null);
- // Search for enclosed DataAdaptor.
- UIComponent parent = colspan.getParent();
- // ENCODE event attributes. If component don't have own attribute, search in the parent table.
- boolean inRow = null != parent && parent.getChildren().contains(colspan);
- for (int i = 0; i < AbstractRowsRenderer.TABLE_EVENT_ATTRS.length; i++) {
-
- String[] attrs = AbstractRowsRenderer.TABLE_EVENT_ATTRS[i];
- String event = (String) colspan.getAttributes().get(attrs[0]);
-
- if(null == event && inRow){
- event = (String) parent.getAttributes().get(attrs[1]);
- }
-
- if(null != event){
- writer.writeAttribute(attrs[0], event, attrs[0]);
- }
- }
- }
-
- public boolean getRendersChildren() {
- return true;
- }
-
- protected Class<? extends UIComponent> getComponentClass() {
- return UIColumnGroup.class;
- }
-
- public void encodeOneRow(FacesContext context, TableHolder holder) throws IOException {
- }
-
- @Override
- public void doProcess(FacesContext facesContext, TableHolder holder) throws IOException {
- }
-
- @Override
- public void encodeCell(FacesContext context, UIComponent cell) throws IOException {
- CellEncoder cellEncode = new SimpleCellEncoder(getUtils(), getCellStyleClasses(context, cell));
- cellEncode.encodeBegin(context, cell);
- renderChildren(context, cell);
- cellEncode.encodeEnd(context, cell);
- }
-
- @Override
- protected String getCellSkinClass() {
- //TODO: for test use.
- return "rich-table-cell";
- }
-}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleDataTableRendererBase.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleDataTableRendererBase.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SimpleDataTableRendererBase.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -11,9 +11,9 @@
import javax.faces.context.ResponseWriter;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
-import org.richfaces.component.Column;
import org.richfaces.component.Row;
import org.richfaces.component.UIDataTable;
+import org.richfaces.component.UISubTable;
@ResourceDependencies({
@ResourceDependency(name = "simple-datatable.js"),
@@ -21,17 +21,61 @@
})
public abstract class SimpleDataTableRendererBase extends AbstractTableRenderer {
+ public void encodeRowStart(RowEncodeEvent event) throws IOException {
+ ResponseWriter writer = event.getContext().getResponseWriter();
+ writer.startElement(HTML.TR_ELEMENT, event.getSource());
+ }
- @Override
- public void encodeCell(FacesContext context, UIComponent component) throws IOException {
+ public void encodeRowEnd(RowEncodeEvent event) throws IOException {
+ ResponseWriter writer = event.getContext().getResponseWriter();
+ writer.endElement(HTML.TR_ELEMENT);
+ }
- CellEncoder cellEncode = new SimpleCellEncoder(getUtils(), getCellStyleClasses(context, component));
- cellEncode.encodeBegin(context, component);
- renderChildren(context, component);
- cellEncode.encodeEnd(context, component);
+ public void encodeFirstRow(RowEncodeEvent event)throws IOException {
+ ResponseWriter writer = event.getContext().getResponseWriter();
+ writer.startElement(HTML.TR_ELEMENT, event.getSource());
+ }
+ public void encodeCell(CellEncodeEvent event) throws IOException {
+ ResponseWriter writer = event.getContext().getResponseWriter();
+ FacesContext context = event.getContext();
+ UIColumn column = event.getSource();
+
+ writer.startElement(HTML.td_ELEM, column);
+ getUtils().encodeId(context, column);
+ getCellStyleClasses(context, column);
+ renderChildren(context, column);
+
+ writer.endElement(HTML.td_ELEM);
}
+ public void encodeHeaderCell(CellEncodeEvent event) throws IOException {
+ ResponseWriter writer = event.getContext().getResponseWriter();
+ FacesContext context = event.getContext();
+ UIColumn column = event.getSource();
+
+ writer.startElement(HTML.th_ELEM, column);
+ //TODO --- move to the separate method
+ getUtils().encodeId(context, column);
+ getCellStyleClasses(context, column);
+ renderChildren(context, column);
+ //------
+ writer.endElement(HTML.th_ELEM);
+ }
+
+ @Override
+ public RowEncoder getRowEncoder(TableHolder holder) {
+ RowEncoder encoder = new RowEncoder();
+ encoder.setListener(this);
+ return encoder;
+ }
+
+ public void encodeSubTable(FacesContext context, UISubTable subTable) throws IOException {
+ encodeRows(context, subTable);
+ }
+
+ // ---------------------------------------------------------------------------------------
+
public void encodeTableStructure(FacesContext context, UIDataTable table) throws IOException{
Object key = table.getRowKey();
@@ -90,17 +134,18 @@
writer.endElement("caption");
}
-
+/*
@Override
- public void doProcess(FacesContext facesContext, TableHolder holder) throws IOException {
- UIDataTable table = holder.getTable();
- ResponseWriter writer = facesContext.getResponseWriter();
-
- writer.startElement(HTML.TR_ELEMENT, table);
- encodeOneRow(facesContext, holder);
- writer.endElement(HTML.TR_ELEMENT);
+ public void encodeCell(FacesContext context, UIComponent component) throws IOException {
+ CellEncoder cellEncode = new SimpleCellEncoder(getUtils(), getCellStyleClasses(context, component));
+ cellEncode.encodeBegin(context, component);
+ renderChildren(context, component);
+ cellEncode.encodeEnd(context, component);
+
}
+ */
+
public void encodeHeader(FacesContext context, UIDataTable table, int columns) throws IOException {
UIComponent header = table.getHeader();
boolean isEncodeHeaders = isEncodeHeaders(table);
@@ -133,7 +178,7 @@
public void encodeFooter(FacesContext context, UIDataTable table, int columns) throws IOException {
ResponseWriter writer = context.getResponseWriter();
- Iterator<UIColumn> tableColumns = table.columns();
+ Iterator<UIComponent> tableColumns = table.columns();
UIComponent footer = table.getFooter();
boolean columnFacetPresent = isColumnFacetPresent(table,"footer");
@@ -176,16 +221,21 @@
writer.writeAttribute("scope", "colgroup", null);
}
- encodeCellChildren(context, footer, skinFirstRowClass, skinRowClass,
- footerClass, skinCellClass, null);
-
+ if(isColgroup) {
+ RowEncoder encoder = getRowEncoder(null);
+ encoder.setHeader(true);
+ encoder.encodeRows(context, footer);
+ } else {
+ renderChild(context, footer);
+ }
+
if (!isColgroup) {
writer.endElement(element);
writer.endElement("tr");
}
}
- protected void encodeHeaderFacets(FacesContext context, ResponseWriter writer, Iterator<UIColumn> headers,
+ protected void encodeHeaderFacets(FacesContext context, ResponseWriter writer, Iterator<UIComponent> headers,
String skinCellClass, String headerClass, String facetName, String element, int colCount) throws IOException {
int t_colCount = 0;
@@ -195,7 +245,7 @@
// SimpleHeaderEncodeStrategy();
while (headers.hasNext()) {
- UIColumn column = (UIColumn) headers.next();
+ UIComponent column = headers.next();
if (!column.isRendered()) {
continue;
}
@@ -219,39 +269,29 @@
writer.writeAttribute("scope", "col", null);
getUtils().encodeAttribute(context, column, "colspan");
- // boolean sortableColumn = column.getValueExpression("comparator")
- // != null
- // || column.getValueExpression("sortBy") != null;
-
- // HeaderEncodeStrategy strategy = (column instanceof
- // org.richfaces.component.UIColumn
- // && "header".equals(facetName)) ? richEncodeStrategy :
- // simpleEncodeStrategy;
- //
- // strategy.encodeBegin(context, writer, column, facetName,
- // sortableColumn);
-
UIComponent facet = column.getFacet(facetName);
if (facet != null && facet.isRendered()) {
renderChild(context, facet);
}
- // strategy.encodeEnd(context, writer, column, facetName,
- // sortableColumn);
-
writer.endElement(element);
}
}
- public void encodeTBody (FacesContext context, UIDataTable table) throws IOException {
+ @Override
+ public void encodeBodyBegin(FacesContext context, UIDataTable table) throws IOException {
String clientId = table.getClientId(context);
ResponseWriter writer = context.getResponseWriter();
writer.startElement("tbody", table);
writer.writeAttribute("id", clientId + ":tb", null);
- encodeRows(context, table);
- writer.endElement("tbody");
}
+ @Override
+ public void encodeBodyEnd(FacesContext context, UIDataTable table) throws IOException {
+ ResponseWriter writer = context.getResponseWriter();
+ writer.endElement("tbody");
+ }
+
protected String getRowSkinClasses(boolean firstColumn) {
String rowSkinClass = getRowSkinClass();
if (firstColumn) {
@@ -264,105 +304,7 @@
return rowSkinClass;
}
-
- @Override
- public void encodeOneRow(FacesContext context, TableHolder holder) throws IOException {
-
- boolean firstColumn = true;
- boolean firstRow = (holder.getRowCounter() == 0);
- int currentColumn = 0;
- UIComponent column = null;
-
- ResponseWriter writer = context.getResponseWriter();
-
- UIDataTable table = (UIDataTable) holder.getTable();
- Iterator<UIColumn> iter = table.columns();
-
- while (iter.hasNext()) {
- column = iter.next();
- boolean isRow = (column instanceof Row);
-
- // Start new row for first column - expect a case of the detail
- // table, wich will be insert own row.
- if (firstColumn && (!isRow)) {
- String rowSkinClass = getRowSkinClasses(true);
- encodeRowStart(context, rowSkinClass, holder.getRowClass(), table, writer);
- }
-
- if (column instanceof Column) {
- currentColumn = encodeRichColumn(context, writer, holder, column, currentColumn, firstColumn, firstRow, isRow, iter.hasNext());
-
- } else if (column.isRendered()) {
- currentColumn = encodeColumn(context, writer, column, currentColumn, holder);
- }
-
- currentColumn++;
- firstColumn = false;
- }
-
- // Close row if then is open.
- if (!firstColumn && !(column instanceof Row)) {
- writer.endElement(HTML.TR_ELEMENT);
- }
-
- }
- protected int encodeRichColumn(FacesContext context, ResponseWriter writer,
- TableHolder holder, UIComponent column, int currentColumn,
- boolean firstColumn, boolean firstRow, boolean isRow,
- boolean hasNext) throws IOException {
-
- UIDataTable table = holder.getTable();
- boolean breakBefore = ((Column) column).isBreakBefore() || isRow;
-
- if (breakBefore && !firstColumn) {
- // close current row
- writer.endElement(HTML.TR_ELEMENT);
- // reset columns counter.
- currentColumn = 0;
- // Start new row, expect a case of the detail table, wich
- // will be insert own row.
- if (!isRow) {
- holder.nextRow();
- encodeRowStart(context, getRowSkinClass(),
- holder.getRowClass(), table, writer);
- }
- }
-
- String firstRowSkinClass = firstRow ? getFirstRowSkinClass() : null;
-
- encodeCellChildren(context, column, firstRowSkinClass,
- getRowSkinClass(), holder.getRowClass(), getCellSkinClass(),
- holder.getColumnClass(currentColumn));
- // renderChild(context, column);
- if (isRow && hasNext) {
- // Start new row for remained columns.
- holder.nextRow();
- encodeRowStart(context, getRowSkinClass(), holder.getRowClass(),
- table, writer);
- // reset columns counter.
- currentColumn = -1;
- }
-
- return currentColumn;
- }
-
- protected int encodeColumn(FacesContext context, ResponseWriter writer,
- UIComponent column, int currentColumn, TableHolder holder)
- throws IOException {
- // UIColumn don't have own renderer
- UIDataTable table = holder.getTable();
- writer.startElement(HTML.td_ELEM, table);
- getUtils().encodeId(context, column);
- String columnClass = holder.getColumnClass(currentColumn);
- encodeStyleClass(writer, null, getCellSkinClass(), null, columnClass);
-
- // TODO - encode column attributes.
- renderChildren(context, column);
- writer.endElement(HTML.td_ELEM);
-
- return currentColumn;
- }
/**
* @return
*/
@@ -383,43 +325,5 @@
protected String getCellSkinClass() {
return "rich-table-cell";
}
-
- protected void encodeRowStart(FacesContext context, String skinClass, String rowClass, UIDataTable table, ResponseWriter writer) throws IOException {
- writer.startElement(HTML.TR_ELEMENT, table);
- encodeStyleClass(writer, null, skinClass, null, rowClass);
- encodeRowEvents(context, table);
- }
-/*
- protected class SimpleHeaderEncodeStrategy implements HeaderEncodeStrategy {
-
- public void encodeBegin(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn)
- throws IOException {
-
- }
-
- public void encodeEnd(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn)
- throws IOException {
-
- }
- }
-
- // will be changed
- protected class RichHeaderEncodeStrategy implements HeaderEncodeStrategy {
-
- public void encodeBegin(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn)
- throws IOException {
-
- }
-
- public void encodeEnd(FacesContext context, ResponseWriter writer,
- UIComponent column, String facetName, boolean sortableColumn)
- throws IOException {
-
- }
- }
-*/
}
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SubTableRenderer.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SubTableRenderer.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/SubTableRenderer.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,110 +0,0 @@
-/**
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-import java.util.Iterator;
-
-import javax.faces.component.UIColumn;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
-
-import org.ajax4jsf.renderkit.RendererUtils.HTML;
-import org.richfaces.component.UIDataTable;
-import org.richfaces.component.UISubTable;
-
-/**
- * @author shura
- *
- */
-public class SubTableRenderer extends AbstractTableRenderer {
-
- protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
- encodeHeaderRow(writer, context, component,"header");
- }
-
- /**
- * Encode one row with header/footer facets from columns.
- */
- private void encodeHeaderRow(ResponseWriter writer, FacesContext context, UIComponent component,String facetName) throws IOException {
- UIDataTable dataTable = (UIDataTable) component;
- int colCount = getColumnsCount(dataTable);
- String headerClass = (String) component.getAttributes().get(facetName+"Class");
-
- if (isColumnFacetPresent(dataTable, facetName)) {
- writer.startElement(HTML.TR_ELEMENT, dataTable);
- encodeStyleClass(writer, null, "rich-subtable-"+facetName, null, headerClass);
- Iterator<UIColumn> columns = dataTable.columns();
- encodeHeaderFacets(context, writer, columns, "rich-subtable-"+facetName+"cell", headerClass, facetName, "td",colCount);
- writer.endElement(HTML.TR_ELEMENT);
- }
- }
-
- protected void encodeHeaderFacets(FacesContext context, ResponseWriter writer, Iterator<UIColumn> headers,
- String skinCellClass, String headerClass, String facetName, String element, int colCount) throws IOException {
- //stub for test only!!
- }
-
- protected void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
- encodeHeaderRow(writer, context, component,"footer");
- }
-
- protected String getRowSkinClass() {
- return "rich-subtable-row";
- }
-
- protected String getFirstRowSkinClass() {
- return "rich-subtable-firstrow";
- }
-
- protected String getCellSkinClass() {
- return "rich-subtable-cell";
- }
-
- protected Class<? extends UIComponent> getComponentClass() {
- return UISubTable.class;
- }
-
- @Override
- public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
- encodeRows(context, (UIDataTable) component);
- }
-
- @Override
- public void encodeTBody(FacesContext context, UIDataTable table) throws IOException {
- }
-
- @Override
- public void doProcess(FacesContext facesContext, TableHolder holder) throws IOException {
- System.out.println("SubTableRenderer.doProcess()");
- }
-
- @Override
- public void encodeCell(FacesContext context, UIComponent cell) throws IOException {
- System.out.println("SubTableRenderer.encodeCell()");
- }
-
- @Override
- public void encodeOneRow(FacesContext context, TableHolder holder) throws IOException {
- System.out.println("SubTableRenderer.encodeOneRow()");
- }
-}
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/TableHolder.java
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/TableHolder.java 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/TableHolder.java 2009-10-29 10:59:41 UTC (rev 15772)
@@ -23,7 +23,7 @@
import java.util.Map;
-import org.richfaces.component.UIDataTable;
+import org.richfaces.component.UIDataAdaptor;
/**
* Private class for keep reference to table and intermediate iteration values ( current row styles, events etc )
@@ -31,7 +31,7 @@
*
*/
public class TableHolder {
- private UIDataTable table;
+ private UIDataAdaptor component;
private int rowCounter;
private int gridRowCounter;
private String[] rowClasses;
@@ -40,11 +40,11 @@
/**
* @param table
*/
- public TableHolder(UIDataTable table) {
- this.table = table;
+ public TableHolder(UIDataAdaptor component) {
+ this.component = component;
this.rowCounter = 0;
this.gridRowCounter = 0;
- Map<String, Object> attributes = table.getAttributes();
+ Map<String, Object> attributes = component.getAttributes();
String classes = (String) attributes.get("rowClasses");
if(null != classes){
rowClasses=classes.split(",");
@@ -58,8 +58,8 @@
/**
* @return the table
*/
- public UIDataTable getTable() {
- return this.table;
+ public UIDataAdaptor getTable() {
+ return this.component;
}
/**
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/faces-config.xml
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/faces-config.xml 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/faces-config.xml 2009-10-29 10:59:41 UTC (rev 15772)
@@ -37,11 +37,16 @@
<renderer-type>org.richfaces.ExtendedDataTableRenderer</renderer-type>
<renderer-class>org.richfaces.renderkit.html.ExtendedDataTableRenderer</renderer-class>
</renderer>
- <renderer>
+ <!-- renderer>
<component-family>org.richfaces.Colgroup</component-family>
<renderer-type>org.richfaces.ColumnGroupRenderer</renderer-type>
<renderer-class>org.richfaces.renderkit.html.ColgroupRenderer</renderer-class>
</renderer>
+ <renderer>
+ <component-family>org.richfaces.SubTable</component-family>
+ <renderer-type>org.richfaces.renderkit.SubTableRenderer</renderer-type>
+ <renderer-class>org.richfaces.renderkit.SubTableRenderer</renderer-class>
+ </renderer -->
</render-kit>
</faces-config>
\ No newline at end of file
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/tables.taglib.xml
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/tables.taglib.xml 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/tables.taglib.xml 2009-10-29 10:59:41 UTC (rev 15772)
@@ -27,14 +27,14 @@
<tag-name>colGroup</tag-name>
<component>
<component-type>org.richfaces.Colgroup</component-type>
- <renderer-type>org.richfaces.ColumnGroupRenderer</renderer-type>
+ <!-- renderer-type>org.richfaces.ColumnGroupRenderer</renderer-type -->
</component>
</tag>
<tag>
<tag-name>subTable</tag-name>
<component>
<component-type>org.richfaces.SubTable</component-type>
- <renderer-type>org.richfaces.renderkit.SubTableRenderer</renderer-type>
+ <!-- renderer-type>org.richfaces.renderkit.SubTableRenderer</renderer-type-->
</component>
</tag>
</facelet-taglib>
Deleted: root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/colgroup.template.xml
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/colgroup.template.xml 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/colgroup.template.xml 2009-10-29 10:59:41 UTC (rev 15772)
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<cdk:root xmlns="http://richfaces.org/xhtml-el" xmlns:cdk="http://richfaces.org/cdk"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- class="org.richfaces.renderkit.html.ColgroupRenderer"
- superclass="org.richfaces.renderkit.SimpleColgroupRenderer"
- componentclass="org.richfaces.component.UIColumnGroup" >
- <tr id="#{clientId}">
- <cdk:body>
- <cdk:call expression="super.encodeChildren(context,component);"/>
- </cdk:body>
- </tr>
-</cdk:root>
\ No newline at end of file
Modified: root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml
===================================================================
--- root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml 2009-10-29 06:18:21 UTC (rev 15771)
+++ root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml 2009-10-29 10:59:41 UTC (rev 15772)
@@ -8,7 +8,7 @@
<table id="#{clientId}">
<cdk:call expression="encodeTableStructure(context,component);" />
<cdk:body>
- <cdk:call expression="encodeTBody(context,component);" />
+ <cdk:call expression="encodeTableBody(context,component);" />
</cdk:body>
</table>
</cdk:root>
\ No newline at end of file
15 years, 1 month
JBoss Rich Faces SVN: r15771 - in root/docs/trunk: Component_Reference/en-US and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2009-10-29 02:18:21 -0400 (Thu, 29 Oct 2009)
New Revision: 15771
Added:
root/docs/trunk/Component_Development_Kit_Guide/en-US/all-Component_Development_Kit_Guide.xml
root/docs/trunk/Component_Reference/en-US/all-Component_Reference.xml
root/docs/trunk/Developer_Guide/en-US/all-Developer_Guide.xml
Log:
Adding sources for Maven builds
Added: root/docs/trunk/Component_Development_Kit_Guide/en-US/all-Component_Development_Kit_Guide.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/all-Component_Development_Kit_Guide.xml (rev 0)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/all-Component_Development_Kit_Guide.xml 2009-10-29 06:18:21 UTC (rev 15771)
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
+<!ENTITY PRODUCT "RichFaces">
+<!ENTITY VERSION "4.0">
+<!ENTITY VERSION_LONG "4.0.0.ALPHA2">
+<!ENTITY BOOKID "Component_Development_Kit_Guide">
+<!ENTITY HOLDER "Red Hat">
+<!ENTITY YEAR "2009">
+]>
+<book lang="en-US" status="draft">
+ <bookinfo id="book-Component_Development_Kit_Guide-Component_Development_Kit_Guide" lang="en-US">
+ <title>Component Development Kit Guide</title>
+ <subtitle>Developing custom components for use in RichFaces 4.0.0.ALPHA2<remark> (draft)</remark>
+ projects</subtitle>
+ <productname>RichFaces</productname>
+ <productnumber>4.0</productnumber>
+ <edition>0.1</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>This book details how to use the RichFaces Component Development
+Kit to create custom components for use with the RichFaces
+4.0 framework.</para></abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="./images/rf_logo.png" format="PNG" scalefit="1"/>
+ </imageobject>
+ <textobject>
+ <phrase>Logo</phrase>
+ </textobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <copyright>
+ <year>2009</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <!-- FOR PUBLICAN --><legalnotice xml:base="Common_Content/Legal_Notice.xml">
+ <para>
+ Copyright <trademark class="copyright"/> 2009 Red Hat This material may only be distributed subject to the terms and conditions set forth in the GNU Free Documentation License (GFDL), V1.2 or later (the latest version is presently available at <ulink url="http://www.gnu.org/licenses/fdl.txt">http://www.gnu.org/licenses/fdl.txt</ulink>).
+ </para>
+</legalnotice>
+ <authorgroup lang="en-US">
+ <author>
+ <firstname>Sean</firstname>
+ <surname>Rogers</surname>
+ <affiliation>
+ <orgname>Red Hat</orgname>
+ <orgdiv>Engineering Content Services</orgdiv>
+ </affiliation>
+ <email>serogers(a)redhat.com</email>
+ </author>
+</authorgroup>
+ </bookinfo>
+ <!-- <xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> --><chapter id="chap-Component_Development_Kit_Guide-Introduction" lang="en-US">
+ <title>Introduction</title>
+ <para>
+ This is a test paragraph
+ </para>
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Configuration" lang="en-US">
+ <title>Configuration</title>
+ <para>
+ This is a test paragraph
+ </para>
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Creating_a_new_component" lang="en-US">
+ <title>Creating a new component</title>
+ <para>
+ This is a test paragraph
+ </para>
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Creating_a_project">
+ <title>Creating a project</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Building_a_component_skeleton">
+ <title>Building a component skeleton</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Creating_the_UI">
+ <title>Creating the UI</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Registering_resources">
+ <title>Registering resources</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Extending_the_UIInput_Class">
+ <title>Extending the UIInput Class</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Configuring_the_component">
+ <title>Configuring the component</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+ <section id="sect-Component_Development_Kit_Guide-Creating_a_new_component-Tags_and_descriptors">
+ <title>Tags and descriptors</title>
+ <para>
+ Test of a section
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Using_components_in_projects" lang="en-US">
+ <title>Using components in projects</title>
+ <para>
+ This is a test paragraph
+ </para>
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Developer_sample" lang="en-US">
+ <title>Developer sample</title>
+ <para>
+ This is a test paragraph
+ </para>
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Unit_testing" lang="en-US">
+ <title>Unit testing</title>
+ <para>
+ This is a test paragraph
+ </para>
+</chapter>
+ <chapter id="chap-Component_Development_Kit_Guide-Creating_components_in_other_environments" lang="en-US">
+ <title>Creating components in other environments</title>
+ <para>
+ Creating components in other environments
+ </para>
+</chapter>
+ <appendix id="appe-Component_Development_Kit_Guide-Naming_conventions" lang="en-US">
+ <title>Naming conventions</title>
+ <para>
+ This is a test paragraph
+ </para>
+</appendix>
+ <appendix id="appe-Component_Development_Kit_Guide-Template_tags_reference" lang="en-US">
+ <title>Template tags reference</title>
+ <para>
+ This is a test paragraph
+ </para>
+</appendix>
+ <appendix id="appe-Component_Development_Kit_Guide-Revision_History" lang="en-US">
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>1.0</revnumber>
+ <date/>
+ <author>
+ <firstname/>
+ <surname/>
+ <email/>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member/>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
+ <index/>
+</book>
Added: root/docs/trunk/Component_Reference/en-US/all-Component_Reference.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/all-Component_Reference.xml (rev 0)
+++ root/docs/trunk/Component_Reference/en-US/all-Component_Reference.xml 2009-10-29 06:18:21 UTC (rev 15771)
@@ -0,0 +1,1073 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Reference.ent">
+<!ENTITY PRODUCT "RichFaces">
+<!ENTITY VERSION "4.0">
+<!ENTITY VERSION_LONG "4.0.0.ALPHA2">
+<!ENTITY BOOKID "Component_Reference">
+<!ENTITY HOLDER "Red Hat">
+<!ENTITY YEAR "2009">
+]>
+<book lang="en-US" status="draft">
+ <bookinfo id="book-Component_Reference-Component_Reference" lang="en-US">
+ <title>Component Reference</title>
+ <subtitle>A reference guide to the components of the RichFaces 4.0.0.ALPHA2<remark> (draft)</remark>
+ framework</subtitle>
+ <productname>RichFaces</productname>
+ <productnumber>4.0</productnumber>
+ <edition>0.1</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>This book details each component in the RichFaces 4.0
+framework, including examples of their use in applications.</para></abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="./images/rf_logo.png" format="PNG" scalefit="1"/>
+ </imageobject>
+ <textobject>
+ <phrase>Logo</phrase>
+ </textobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <copyright>
+ <year>2009</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <!-- FOR PUBLICAN --><legalnotice xml:base="Common_Content/Legal_Notice.xml">
+ <para>
+ Copyright <trademark class="copyright"/> 2009 Red Hat This material may only be distributed subject to the terms and conditions set forth in the GNU Free Documentation License (GFDL), V1.2 or later (the latest version is presently available at <ulink url="http://www.gnu.org/licenses/fdl.txt">http://www.gnu.org/licenses/fdl.txt</ulink>).
+ </para>
+</legalnotice>
+ <authorgroup lang="en-US">
+ <author>
+ <firstname>Sean</firstname>
+ <surname>Rogers</surname>
+ <affiliation>
+ <orgname>Red Hat</orgname>
+ <orgdiv>Engineering Content Services</orgdiv>
+ </affiliation>
+ <email>serogers(a)redhat.com</email>
+ </author>
+</authorgroup>
+ </bookinfo>
+ <!-- <xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> --><chapter id="chap-Component_Reference-Introduction" lang="en-US">
+ <title>Introduction</title>
+ <para>
+ This book is a guide to the various components available in the RichFaces 4.0 framework. It includes descriptions of the role of the components, details on how best to use them, coded examples of their use, and basic references of their properties and attributes.
+ </para>
+ <para>
+ For full in-depth references for all component classes and properties, refer to the <citetitle>API Reference</citetitle> available from the RichFaces website.
+ </para>
+ <section id="sect-Component_Reference-Introduction-Libraries">
+ <title>Libraries</title>
+ <para>
+ The RichFaces framework as it now stands is made up of two tag libraries: the <classname>a4j</classname> library and the <classname>rich</classname> library. The <classname>a4j</classname> tag library represents Ajax4jsf, which provides page-level Ajax support with core Ajax components. This allows developers to make use of custom Ajax behavior with existing components. The <classname>rich</classname> tag library provides Ajax support at the component level instead, and includes ready-made, self-contained components. These components don't require additional configuration in order to send requests or update.
+ </para>
+ <note>
+ <title>Note</title>
+ <para>
+ All components in the <classname>a4j</classname> library feature built-in Ajax support, so it is unnecessary to add the <classname><a4j:ajax></classname> behavior.
+ </para>
+ </note>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Common_Ajax_attributes" lang="en-US">
+ <title>Common Ajax attributes</title>
+ <para>
+ The Ajax components in the <classname>a4j</classname> library share common attributes to perform similar functionality. Most RichFaces components in the <classname>rich</classname> library that feature built-in Ajax support share these common attributes as well.
+ </para>
+ <para>
+ Most attributes have default values, so they need not be explicitly set for the component to function in its default state. These attributes can be altered to customize the behavior of the component if necessary.
+ </para>
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Rendering">
+ <title>Rendering</title>
+ <section id="sect-Component_Reference-Rendering-render">
+ <title><code>render</code></title>
+ <para>
+ The <code>render</code> attribute provides a reference to one or more areas on the page that need updating after an Ajax interaction. It uses the <code>UIComponent.findComponent()</code> algorithm to find the components in the component tree using their <code>id</code> attributes as a reference. Components can be referenced by their <code>id</code> attribute alone, or by a hierarchy of components' <code>id</code> attributes to make locating components more efficient. <xref linkend="exam-Component_Reference-render-render_example"/> shows both ways of referencing components. Each command button will correctly render the referenced panel grids, but the second button locates the references more efficiently with explicit hierarchy paths.
+ </para>
+ <example id="exam-Component_Reference-render-render_example">
+ <title>render example</title>
+
+<programlisting language="xml">
+<h:form id="form1">
+ <a4j:commandButton value="Basic reference" render="infoBlock, infoBlock2" />
+ <a4j:commandButton value="Specific reference" render=":infoBlock,:sv:infoBlock2" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<f:subview id="sv">
+ <h:panelGrid id="infoBlock2">
+ ...
+ </h:panelGrid>
+</f:subview>
+</programlisting>
+ </example>
+ <para>
+ The value of the <code>render</code> attribute can also be an expression written using JavaServer Faces' Expression Language (<acronym>EL</acronym>); this can either be a <type>Set</type>, <type>Collection</type>, <type>Array</type>, or <type>String</type>.
+ </para>
+ <important>
+ <title>Important</title>
+ <para>
+ A common problem with using <code>render</code> occurs when the referenced component has a <code>rendered</code> attribute. <acronym>JSF</acronym> does not mark the place in the browser's Document Object Model (<acronym>DOM</acronym>) where the rendered component would be placed in case the <code>rendered</code> attribute returns <literal>false</literal>. As such, when RichFaces sends the render code to the client, the page does not update as the place for the update is not known.
+ </para>
+ <para>
+ To work around this issue, wrap the component to be rendered in an <classname><a4j:outputPanel></classname> with <code>layout="none"</code>. The <classname><a4j:outputPanel></classname> will receive the update and render the component as required.
+ </para>
+ </important>
+ </section>
+
+ <section id="sect-Component_Reference-Rendering-ajaxRendered">
+ <title>ajaxRendered</title>
+ <para>
+ A component with <code>ajaxRendered="true"</code> will be re-rendered with <emphasis>every</emphasis> Ajax request, even when not referenced by the requesting component's <code>render</code> attribute. This can be useful for updating a status display or error message without explicitly requesting it.
+ </para>
+ <para>
+ Rendering of components in this way can be repressed by adding <code>limitRender="true"</code> to the requesting component, as described in <xref linkend="sect-Component_Reference-Rendering-limitRender"/>.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rendering-limitRender">
+ <title>limitRender</title>
+ <para>
+ A component with <code>limitRender="true"</code> specified will <emphasis>not</emphasis> cause components with <code>ajaxRendered="true"</code> to re-render, and only those components listed in the <code>render</code> attribute will be updated. This essentially overrides the <code>ajaxRendered</code> attribute in other components.
+ </para>
+ <para>
+ <xref linkend="exam-Component_Reference-limitRender-Rendering_example"/> describes two command buttons, a panel grid rendered by the buttons, and an output panel showing error messages. When the first button is clicked, the output panel is rendered even though it is not explicitly referenced with the <code>render</code> attribute. The second button, however, uses <code>limitRender="true"</code> to override the output panel's rendering and only render the panel grid.
+ </para>
+ <example id="exam-Component_Reference-limitRender-Rendering_example">
+ <title>Rendering example</title>
+
+<programlisting role="XML">
+<h:form id="form1">
+ <a4j:commandButton value="Normal rendering" render="infoBlock" />
+ <a4j:commandButton value="Limited rendering" render="infoBlock" limitRender="true" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+</a4j:outputPanel>
+</programlisting>
+ </example>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Queuing_and_traffic_control">
+ <title>Queuing and traffic control</title>
+ <section id="sect-Component_Reference-Queuing_and_traffic_control-queue">
+ <title>queue</title>
+ <para>
+ The <code>queue</code> attribute defines the name of the queue that will be used to schedule upcoming Ajax requests. Typically RichFaces does not queue Ajax requests, so if events are produced simultaneously they will arrive at the server simultaneously. This can potentially lead to unpredictable results when the responses are returned. The <code>queue</code> attribute ensures that the
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Data_processing">
+ <title>Data processing</title>
+ <section id="sect-Component_Reference-Data_processing-execute">
+ <title>execute</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-process">
+ <title>process</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-immediate">
+ <title>immediate</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-bypassUpdates">
+ <title>bypassUpdates</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Action_and_navigation">
+ <title>Action and navigation</title>
+ <section id="sect-Component_Reference-Action_and_navigation-action">
+ <title>action</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Action_and_navigation-actionListener">
+ <title>actionListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Events_and_Javascript_interactions">
+ <title>Events and Javascript interactions</title>
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onsubmit">
+ <title>onsubmit</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onclick">
+ <title>onclick</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-oncomplete">
+ <title>oncomplete</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onbegin">
+ <title>onbegin</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onsuccess">
+ <title>onsuccess</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onerror">
+ <title>onerror</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-data">
+ <title>data</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Rich_inputs" lang="en-US">
+ <title>Rich inputs</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Rich_inputs-richCalendar">
+ <title>rich:Calendar</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richcolorPicker">
+ <title>rich:colorPicker</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richcomboBox">
+ <title>rich:comboBox</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richeditor">
+ <title>rich:editor</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richfileUpload">
+ <title>rich:fileUpload</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richinplaceInput">
+ <title>rich:inplaceInput</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richinplaceSelect">
+ <title>rich:inplaceSelect</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richinputNumberSlider">
+ <title>rich:inputNumberSlider</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richinputNumberSpinner">
+ <title>rich:inputNumberSpinner</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rich_inputs-richsuggestionBox">
+ <title>rich:suggestionBox</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Panels_and_containers" lang="en-US">
+ <title>Panels and containers</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Panels_and_containers-a4jform">
+ <title>a4j:form</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-a4joutputPanel">
+ <title>a4j:outputPanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-a4jregion">
+ <title>a4j:region</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richmodalPanel">
+ <title>rich:modalPanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanel">
+ <title>rich:panel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanelBar">
+ <title>rich:panelBar</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanelBarItem">
+ <title>rich:panelBarItem</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanelMenu">
+ <title>rich:panelMenu</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanelMenuGroup">
+ <title>rich:panelMenuGroup</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richpanelMenuItem">
+ <title>rich:panelMenuItem</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richsimpleTogglePanel">
+ <title>rich:simpleTogglePanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richtabPanel">
+ <title>rich:tabPanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richtab">
+ <title>rich:tab</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richtogglePanel">
+ <title>rich:togglePanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Panels_and_containers-richtoggleControl">
+ <title>rich:toggleControl</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Tables_and_grids" lang="en-US">
+ <title>Tables and grids</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Tables_and_grids-richcolumn">
+ <title>rich:column</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richcolumnGroup">
+ <title>rich:columnGroup</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richcolumns">
+ <title>rich:columns</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richdataFilterSlider">
+ <title>rich:dataFilterSlider</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richdataGrid">
+ <title>rich:dataGrid</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richdataScroller">
+ <title>rich:dataScroller</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richdataTable">
+ <title>rich:dataTable</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richextendedDataTable">
+ <title>rich:extendedDataTable</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richrepeat">
+ <title>rich:repeat</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richscrollableDataTable">
+ <title>rich:scrollableDataTable</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-richsubTable">
+ <title>rich:subTable</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-Table_filtering">
+ <title>Table filtering</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Tables_and_grids-Table_sorting">
+ <title>Table sorting</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Lists_and_trees" lang="en-US">
+ <title>Lists and trees</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Lists_and_trees-richdataDefinitionList">
+ <title>rich:dataDefinitionList</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richdataList">
+ <title>rich:dataList</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richdataOrderedList">
+ <title>rich:dataOrderedList</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richlistShuttle">
+ <title>rich:listShuttle</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richorderingList">
+ <title>rich:orderingList</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richpickList">
+ <title>rich:pickList</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richchangeExpandListener">
+ <title>rich:changeExpandListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richnodeSelectListener">
+ <title>rich:nodeSelectListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richrecursiveTreeNodesAdapter">
+ <title>rich:recursiveTreeNodesAdapter</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richtree">
+ <title>rich:tree</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richtreeNode">
+ <title>rich:treeNode</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Lists_and_trees-richtreeNodesAdapter">
+ <title>rich:treeNodesAdapter</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Menus_and_toolbars" lang="en-US">
+ <title>Menus and toolbars</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Menus_and_toolbars-richcontextMenu">
+ <title>rich:contextMenu</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richdropDownMenu">
+ <title>rich:dropDownMenu</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richmenuGroup">
+ <title>rich:menuGroup</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richmenuItem">
+ <title>rich:menuItem</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richmenuSeparator">
+ <title>rich:menuSeparator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richtoolBar">
+ <title>rich:toolBar</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Menus_and_toolbars-richtoolBarGroup">
+ <title>rich:toolBarGroup</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Messages" lang="en-US">
+ <title>Messages</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Messages-richmessage">
+ <title>rich:message</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Messages-richmessages">
+ <title>rich:messages</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Messages-richprogressBar">
+ <title>rich:progressBar</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Messages-richtoolTip">
+ <title>rich:toolTip</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Drag_and_drop" lang="en-US">
+ <title>Drag and drop</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Drag_and_drop-richdragIndicator">
+ <title>rich:dragIndicator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Drag_and_drop-richdragSupport">
+ <title>rich:dragSupport</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Drag_and_drop-richdropSupport">
+ <title>rich:dropSupport</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Drag_and_drop-richdragListener">
+ <title>rich:dragListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Drag_and_drop-richdropListener">
+ <title>rich:dropListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Drag_and_drop-richdndParam">
+ <title>rich:dndParam</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Layout_and_appearance" lang="en-US">
+ <title>Layout and appearance</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Layout_and_appearance-a4jloadStyle">
+ <title>a4j:loadStyle</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richeffect">
+ <title>rich:effect</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richjQuery">
+ <title>rich:jQuery</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richseparator">
+ <title>rich:separator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richspacer">
+ <title>rich:spacer</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richpage">
+ <title>rich:page</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richlayout">
+ <title>rich:layout</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Layout_and_appearance-richlayoutPanel">
+ <title>rich:layoutPanel</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Resource_handling" lang="en-US">
+ <title>Resource handling</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Resource_handling-a4jloadBundle">
+ <title>a4j:loadBundle</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Resource_handling-a4jkeepAlive">
+ <title>a4j:keepAlive</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Resource_handling-a4jpoll">
+ <title>a4j:poll</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Resource_handling-a4jpush">
+ <title>a4j:push</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Resource_handling-a4jqueue">
+ <title>a4j:queue</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Resource_handling-a4jstatus">
+ <title>a4j:status</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Validation" lang="en-US">
+ <title>Validation</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Validation-richajaxValidator">
+ <title>rich:ajaxValidator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Validation-richgraphValidator">
+ <title>rich:graphValidator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Validation-richbeanValidator">
+ <title>rich:beanValidator</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Portals" lang="en-US">
+ <title>Portals</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Portals-a4jportlet">
+ <title>a4j:portlet</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Functionality_extension" lang="en-US">
+ <title>Functionality extension</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Functionality_extension-a4jactionParam">
+ <title>a4j:actionParam</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jajax">
+ <title>a4j:ajax</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jajaxListener">
+ <title>a4j:ajaxListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jinclude">
+ <title>a4j:include</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jjsFunction">
+ <title>a4j:jsFunction</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jloadScript">
+ <title>a4j:loadScript</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-a4jlog">
+ <title>a4j:log</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Functionality_extension-richcomponentControl">
+ <title>rich:componentControl</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Component_Reference-Other_components" lang="en-US">
+ <title>Other components</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Component_Reference-Other_components-a4jmediaOutput">
+ <title>a4j:mediaOutput</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Other_components-richhotkey">
+ <title>rich:hotkey</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Other_components-richinsert">
+ <title>rich:insert</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Other_components-richpaint2D">
+ <title>rich:paint2D</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Other_components-richgmap">
+ <title>rich:gmap</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Other_components-richvirtualEarth">
+ <title>rich:virtualEarth</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <appendix id="appe-Component_Reference-Revision_History" lang="en-US">
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>1.0</revnumber>
+ <date/>
+ <author>
+ <firstname/>
+ <surname/>
+ <email/>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member/>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
+ <index/>
+</book>
Added: root/docs/trunk/Developer_Guide/en-US/all-Developer_Guide.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/all-Developer_Guide.xml (rev 0)
+++ root/docs/trunk/Developer_Guide/en-US/all-Developer_Guide.xml 2009-10-29 06:18:21 UTC (rev 15771)
@@ -0,0 +1,323 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Developer_Guide.ent">
+<!ENTITY PRODUCT "RichFaces">
+<!ENTITY VERSION "4.0">
+<!ENTITY VERSION_LONG "4.0.0.ALPHA2">
+<!ENTITY BOOKID "Developer_Guide">
+<!ENTITY HOLDER "Red Hat">
+<!ENTITY YEAR "2009">
+]>
+<book lang="en-US" status="draft">
+ <bookinfo id="book-Developer_Guide-Developer_Guide" lang="en-US">
+ <title>Developer Guide</title>
+ <subtitle>Developing projects using RichFaces 4.0.0.ALPHA2<remark> (draft)</remark>
+ </subtitle>
+ <productname>RichFaces</productname>
+ <productnumber>4.0</productnumber>
+ <edition>0.1</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>This book is a comprehensive reference for getting started and
+working with RichFaces 4.0. It includes details of the
+architecture, the framework's use in different applications,
+and skinning implementations.</para></abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="./images/rf_logo.png" format="PNG" scalefit="1"/>
+ </imageobject>
+ <textobject>
+ <phrase>Logo</phrase>
+ </textobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <copyright>
+ <year>2009</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <!-- FOR PUBLICAN --><legalnotice xml:base="Common_Content/Legal_Notice.xml">
+ <para>
+ Copyright <trademark class="copyright"/> 2009 Red Hat This material may only be distributed subject to the terms and conditions set forth in the GNU Free Documentation License (GFDL), V1.2 or later (the latest version is presently available at <ulink url="http://www.gnu.org/licenses/fdl.txt">http://www.gnu.org/licenses/fdl.txt</ulink>).
+ </para>
+</legalnotice>
+ <authorgroup lang="en-US">
+ <author>
+ <firstname>Sean</firstname>
+ <surname>Rogers</surname>
+ <affiliation>
+ <orgname>Red Hat</orgname>
+ <orgdiv>Engineering Content Services</orgdiv>
+ </affiliation>
+ <email>serogers(a)redhat.com</email>
+ </author>
+</authorgroup>
+ </bookinfo>
+ <!-- <xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> --><chapter id="chap-Developer_Guide-Introduction" lang="en-US">
+ <title>Introduction</title>
+ <para>
+ RichFaces is a rich component library for JavaServer Faces (<acronym>JSF</acronym>) built on the open-source Ajax4jsf framework. It allows easy integration of Ajax capabilities into enterprise application development without needing to use Javascript.
+ </para>
+</chapter>
+ <chapter id="chap-Developer_Guide-Getting_started_with_RichFaces" lang="en-US">
+ <title>Getting started with RichFaces</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Developer_Guide-Getting_started_with_RichFaces-Technical_Requirements">
+ <title>Technical Requirements</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Getting_started_with_RichFaces-Installing_RichFaces">
+ <title>Installing RichFaces</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Getting_started_with_RichFaces-Configuration">
+ <title>Configuration</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Getting_started_with_RichFaces-Creating_a_project">
+ <title>Creating a project</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Developer_Guide-RichFaces_overview" lang="en-US">
+ <title>RichFaces overview</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Developer_Guide-RichFaces_overview-Architecture">
+ <title>Architecture</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-RichFaces_overview-Technologies">
+ <title>Technologies</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-RichFaces_overview-Differences_between_JSF_and_RichFaces_mechanisms">
+ <title>Differences between <acronym>JSF</acronym> and RichFaces mechanisms</title>
+ <para>
+ JavaServer Faces (<acronym>JSF</acronym>) declares render and execute processes on the client side, while RichFaces declares server-side definitions of lists.
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-RichFaces_overview-Restrictions">
+ <title>Restrictions</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-RichFaces_overview-Using_RichFaces_with_Maven">
+ <title>Using RichFaces with Maven</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-RichFaces_overview-Using_RichFaces_in_existing_JSF_projects">
+ <title>Using RichFaces in existing JSF projects</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Developer_Guide-Basic_concepts" lang="en-US">
+ <title>Basic concepts</title>
+ <para>
+ This chapter covers the basic concepts for using RichFaces in conjunction with Ajax and JavaServer Faces.
+ </para>
+ <section id="sect-Developer_Guide-Basic_concepts-Sending_an_Ajax_request">
+ <title>Sending an Ajax request</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Basic_concepts-Receiving_events_and_updates">
+ <title>Receiving events and updates</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Basic_concepts-Ajax_attributes">
+ <title>Ajax attributes</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Basic_concepts-Ajax_containers">
+ <title>Ajax containers</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Basic_concepts-Component_overview">
+ <title>Component overview</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Developer_Guide-Advanced_features" lang="en-US">
+ <title>Advanced features</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Developer_Guide-Advanced_features-Additions_to_JSF2">
+ <title>Additions to JSF2</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Performance_optimization">
+ <title>Performance optimization</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Traffic_control_and_queues">
+ <title>Traffic control and queues</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Validation">
+ <title>Validation</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Filters">
+ <title>Filters</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Scripts_and_styles">
+ <title>Scripts and styles</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Error_handling">
+ <title>Error handling</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-Managing_states">
+ <title>Managing states</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Advanced_features-User_roles">
+ <title>User roles</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <chapter id="chap-Developer_Guide-Skinning_and_theming" lang="en-US">
+ <title>Skinning and theming</title>
+ <para>
+ Incomplete
+ </para>
+ <section id="sect-Developer_Guide-Skinning_and_theming-What_are_skins_and_themes">
+ <title>What are skins and themes?</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Skinning_and_theming-Using_skins">
+ <title>Using skins</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Skinning_and_theming-Customizing_skins">
+ <title>Customizing skins</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Skinning_and_theming-Changing_skins_at_runtime">
+ <title>Changing skins at runtime</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Developer_Guide-Skinning_and_theming-Extended_skinning">
+ <title>Extended skinning</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+</chapter>
+ <appendix id="appe-Developer_Guide-Resources" lang="en-US">
+ <title>Resources</title>
+ <para>
+ Incomplete
+ </para>
+</appendix>
+ <appendix id="appe-Developer_Guide-Revision_History" lang="en-US">
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>1.0</revnumber>
+ <date/>
+ <author>
+ <firstname/>
+ <surname/>
+ <email/>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member/>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
+ <index/>
+</book>
15 years, 1 month
JBoss Rich Faces SVN: r15770 - in root/docs/trunk: Component_Development_Kit_Guide/en-US and 8 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2009-10-29 02:13:48 -0400 (Thu, 29 Oct 2009)
New Revision: 15770
Added:
root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/
root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Conventions.xml
root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Feedback.xml
root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Legal_Notice.xml
root/docs/trunk/Component_Development_Kit_Guide/pom.xml
root/docs/trunk/Component_Reference/en-US/fallback_content/
root/docs/trunk/Component_Reference/en-US/fallback_content/Conventions.xml
root/docs/trunk/Component_Reference/en-US/fallback_content/Feedback.xml
root/docs/trunk/Component_Reference/en-US/fallback_content/Legal_Notice.xml
root/docs/trunk/Component_Reference/pom.xml
root/docs/trunk/Developer_Guide/en-US/fallback_content/
root/docs/trunk/Developer_Guide/en-US/fallback_content/Conventions.xml
root/docs/trunk/Developer_Guide/en-US/fallback_content/Feedback.xml
root/docs/trunk/Developer_Guide/en-US/fallback_content/Legal_Notice.xml
root/docs/trunk/Developer_Guide/pom.xml
Modified:
root/docs/trunk/Component_Development_Kit_Guide/en-US/Book_Info.xml
root/docs/trunk/Component_Development_Kit_Guide/en-US/Preface.xml
root/docs/trunk/Component_Reference/en-US/Book_Info.xml
root/docs/trunk/Component_Reference/en-US/Preface.xml
root/docs/trunk/Developer_Guide/en-US/Book_Info.xml
root/docs/trunk/Developer_Guide/en-US/Preface.xml
root/docs/trunk/Migration_Guide/en-US/Preface.xml
Log:
Maven building available for all docs
Modified: root/docs/trunk/Component_Development_Kit_Guide/en-US/Book_Info.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/Book_Info.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/Book_Info.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -7,7 +7,7 @@
<subtitle>Developing custom components for use in RichFaces &VERSION_LONG;<remark> (draft)</remark>
projects</subtitle>
<productname>RichFaces</productname>
- <productnumber>&VERSION;</productnumber>
+ <productnumber>4.0</productnumber>
<edition>0.1</edition>
<pubsnumber>0</pubsnumber>
<abstract>
@@ -29,7 +29,14 @@
<year>&YEAR;</year>
<holder>&HOLDER;</holder>
</copyright>
- <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+
+ <!--FOR PUBLICAN -->
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Common_Content/Legal_Notice.xml">
+ <!--FOR JDOCBOOK:-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
</bookinfo>
Modified: root/docs/trunk/Component_Development_Kit_Guide/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/Preface.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/Preface.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -4,9 +4,23 @@
<preface id="pref-Component_Development_Kit_Guide-Preface">
<title>Preface</title>
- <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- </xi:fallback>
+ <!--FOR JDOCBOOK-->
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR PUBLICAN-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
</xi:include>
+
+ <!--PUBLICAN'S ORIGINAL XINCLUDES-->
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR JDOCBOOK-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
+ </xi:fallback>
+ </xi:include>
</preface>
-
Added: root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Conventions.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Conventions.xml (rev 0)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Conventions.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,174 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Common_Content.ent">
+%BOOK_ENTITIES;
+]>
+
+<section>
+ <title>Document Conventions</title>
+ <para>
+ This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
+ </para>
+ <para>
+ In PDF and paper editions, this manual uses typefaces drawn from the <ulink url="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</ulink> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
+ </para>
+ <section>
+ <title>Typographic Conventions</title>
+ <para>
+ Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.
+ </para>
+ <para>
+ <literal>Mono-spaced Bold</literal>
+ </para>
+ <para>
+ Used to highlight system input, including shell commands, file names and paths. Also used to highlight key caps and key-combinations. For example:
+ </para>
+ <blockquote>
+ <para>
+ To see the contents of the file <filename>my_next_bestselling_novel</filename> in your current working directory, enter the <command>cat my_next_bestselling_novel</command> command at the shell prompt and press <keycap>Enter</keycap> to execute the command.
+ </para>
+ </blockquote>
+ <para>
+ The above includes a file name, a shell command and a key cap, all presented in Mono-spaced Bold and all distinguishable thanks to context.
+ </para>
+ <para>
+ Key-combinations can be distinguished from key caps by the hyphen connecting each part of a key-combination. For example:
+ </para>
+ <blockquote>
+ <para>
+ Press <keycap>Enter</keycap> to execute the command.
+ </para>
+ <para>
+ Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> to switch to the first virtual terminal. Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F7</keycap></keycombo> to return to your X-Windows session.
+ </para>
+ </blockquote>
+ <para>
+ The first sentence highlights the particular key cap to press. The second highlights two sets of three key caps, each set pressed simultaneously.
+ </para>
+ <para>
+ If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in <literal>Mono-spaced Bold</literal>. For example:
+ </para>
+ <blockquote>
+ <para>
+ File-related classes include <classname>filesystem</classname> for file systems, <classname>file</classname> for files, and <classname>dir</classname> for directories. Each class has its own associated set of permissions.
+ </para>
+ </blockquote>
+ <para>
+ <application>Proportional Bold</application>
+ </para>
+ <para>
+ This denotes words or phrases encountered on a system, including application names; dialogue box text; labelled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example:
+ </para>
+ <blockquote>
+ <para>
+ Choose <guimenu>System > Preferences > Mouse</guimenu> from the main menu bar to launch <application>Mouse Preferences</application>. In the <guilabel>Buttons</guilabel> tab, click the <guilabel>Left-handed mouse</guilabel> check box and click <guibutton>Close</guibutton> to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand).
+ </para>
+ <para>
+ To insert a special character into a <application>gedit</application> file, choose <guimenu>Applications > Accessories > Character Map</guimenu> from the main menu bar. Next, choose <guimenu>Search > Find…</guimenu> from the <application>Character Map</application> menu bar, type the name of the character in the <guilabel>Search</guilabel> field and click <guibutton>Next</guibutton>. The character you sought will be highlighted in the <guilabel>Character Table</guilabel>. Double-click this highlighted character to place it in the <guilabel>Text to copy</guilabel> field and then click the <guibutton>Copy</guibutton> button. Now switch back to your document and choose <guimenu>Edit > Paste</guimenu> from the <application>gedit</application> menu bar.
+ </para>
+ </blockquote>
+ <para>
+ The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in Proportional Bold and all distinguishable by context.
+ </para>
+ <para>
+ Note the <guimenu>></guimenu> shorthand used to indicate traversal through a menu and its sub-menus. This is to avoid the difficult-to-follow 'Select <guimenuitem>Mouse</guimenuitem> from the <guimenu>Preferences</guimenu> sub-menu in the <guimenu>System</guimenu> menu of the main menu bar' approach.
+ </para>
+ <para>
+ <command><replaceable>Mono-spaced Bold Italic</replaceable></command> or <application><replaceable>Proportional Bold Italic</replaceable></application>
+ </para>
+ <para>
+ Whether Mono-spaced Bold or Proportional Bold, the addition of Italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example:
+ </para>
+ <blockquote>
+ <para>
+ To connect to a remote machine using ssh, type <command>ssh <replaceable>username</replaceable>@<replaceable>domain.name</replaceable></command> at a shell prompt. If the remote machine is <filename>example.com</filename> and your username on that machine is john, type <command>ssh john(a)example.com</command>.
+ </para>
+ <para>
+ The <command>mount -o remount <replaceable>file-system</replaceable></command> command remounts the named file system. For example, to remount the <filename>/home</filename> file system, the command is <command>mount -o remount /home</command>.
+ </para>
+ <para>
+ To see the version of a currently installed package, use the <command>rpm -q <replaceable>package</replaceable></command> command. It will return a result as follows: <command><replaceable>package-version-release</replaceable></command>.
+ </para>
+ </blockquote>
+ <para>
+ Note the words in bold italics above — username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system.
+ </para>
+ <para>
+ Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:
+ </para>
+ <blockquote>
+ <para>
+ When the Apache HTTP Server accepts requests, it dispatches child processes or threads to handle them. This group of child processes or threads is known as a <firstterm>server-pool</firstterm>. Under Apache HTTP Server 2.0, the responsibility for creating and maintaining these server-pools has been abstracted to a group of modules called <firstterm>Multi-Processing Modules</firstterm> (<firstterm>MPMs</firstterm>). Unlike other modules, only one module from the MPM group can be loaded by the Apache HTTP Server.
+ </para>
+ </blockquote>
+ </section>
+
+ <section>
+ <title>Pull-quote Conventions</title>
+ <para>
+ Two, commonly multi-line, data types are set off visually from the surrounding text.
+ </para>
+ <para>
+ Output sent to a terminal is set in <computeroutput>Mono-spaced Roman</computeroutput> and presented thus:
+ </para>
+
+<screen>
+books Desktop documentation drafts mss photos stuff svn
+books_tests Desktop1 downloads images notes scripts svgs
+</screen>
+ <para>
+ Source-code listings are also set in <computeroutput>Mono-spaced Roman</computeroutput> but are presented and highlighted as follows:
+ </para>
+
+<programlisting language="java">
+package org.jboss.book.jca.ex1;
+
+import javax.naming.InitialContext;
+
+public class ExClient
+{
+ public static void main(String args[])
+ throws Exception
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object ref = iniCtx.lookup("EchoBean");
+ EchoHome home = (EchoHome) ref;
+ Echo echo = home.create();
+
+ System.out.println("Created Echo");
+
+ System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
+ }
+
+}
+</programlisting>
+ </section>
+
+ <section>
+ <title>Notes and Warnings</title>
+ <para>
+ Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
+ </para>
+ <note>
+ <title>Note</title>
+ <para>
+ A Note is a tip or shortcut or alternative approach to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
+ </para>
+ </note>
+ <important>
+ <title>Important</title>
+ <para>
+ Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring Important boxes won't cause data loss but may cause irritation and frustration.
+ </para>
+ </important>
+ <warning>
+ <title>Warning</title>
+ <para>
+ A Warning should not be ignored. Ignoring warnings will most likely cause data loss.
+ </para>
+ </warning>
+ </section>
+
+</section>
+
+
Added: root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Feedback.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Feedback.xml (rev 0)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Feedback.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,22 @@
+<?xml version='1.0'?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<section>
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in Bugzilla: <ulink url="http://bugzilla.redhat.com/bugzilla/">http://bugzilla.redhat.com/bugzilla/</ulink> against the product <application>&PRODUCT;.</application>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's identifier: <citetitle>&BOOKID;</citetitle>
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
Added: root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Legal_Notice.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Legal_Notice.xml (rev 0)
+++ root/docs/trunk/Component_Development_Kit_Guide/en-US/fallback_content/Legal_Notice.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<legalnotice>
+ <para>
+ Copyright <trademark class="copyright"></trademark> &YEAR; &HOLDER;. This material may only be distributed subject to the terms and conditions set forth in the Open Publication License, V1.0, (the latest version is presently available at <ulink url="http://www.opencontent.org/openpub/">http://www.opencontent.org/openpub/</ulink>).
+ </para>
+ <para>
+ Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
+ </para>
+ <para>
+ <trademark class="registered">Linux</trademark> is the registered trademark of Linus Torvalds in the United States and other countries.
+ </para>
+ <para>
+ All other trademarks are the property of their respective owners.
+ </para>
+ <para>
+ <address>
+ <street>1801 Varsity Drive</street>
+ <city>Raleigh</city>, <state>NC</state> <postcode>27606-2072</postcode> <country>USA</country>
+ <phone>Phone: +1 919 754 3700</phone>
+ <phone>Phone: 888 733 4281</phone>
+ <fax>Fax: +1 919 754 3701</fax>
+ <pob>PO Box 13588</pob> <city>Research Triangle Park</city>, <state>NC</state> <postcode>27709</postcode> <country>USA</country>
+ </address>
+ </para>
+</legalnotice>
+
Added: root/docs/trunk/Component_Development_Kit_Guide/pom.xml
===================================================================
--- root/docs/trunk/Component_Development_Kit_Guide/pom.xml (rev 0)
+++ root/docs/trunk/Component_Development_Kit_Guide/pom.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,321 @@
+
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>RichFaces_Component_Development_Kit_Guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <!--<name>Platform User Guide (${translation})</name>-->
+ <name>${env.DOCNAME}(${translation})</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.3-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <!--minmemory>1024m</minmemory>
+ <maxmemory>1024m</maxmemory -->
+ <sourceDocumentName>all-${env.DOCNAME}.xml</sourceDocumentName>
+ <!--<sourceDocumentName>${env.DOCNAME}</sourceDocumentName>-->
+ <sourceDirectory>en-US</sourceDirectory>
+ <imageResource>
+ <directory>en-US</directory>
+ <includes>
+ <include>images/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <!--format>
+ <formatName>pdf</formatName>
+ <note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format-->
+ <!--<format>
+ <formatName>html</formatName>-->
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <!--<format>
+ <formatName>eclipse</formatName>-->
+ <!--note: "main-eclipse.xsl" changed name to "eclipse.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/main-eclipse.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ <transformerParameters>
+ <property>
+ <name>javax.xml.parsers.DocumentBuilderFactory</name>
+ <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value>
+ </property>
+ <property>
+ <name>javax.xml.parsers.SAXParserFactory</name>
+ <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
+ </property>
+ <!--<javax.xml.parsers.DocumentBuilderFactory>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</javax.xml.parsers.DocumentBuilderFactory>
+ <javax.xml.parsers.SAXParserFactory>org.apache.xerces.jaxp.SAXParserFactoryImpl</javax.xml.parsers.SAXParserFactory>
+ <javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>org.apache.xerces.jaxp.validation.XMLSchemaFactory</javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>-->
+ </transformerParameters>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+ <pluginRepositories>
+ <!--original repository-->
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>snapshots.jboss</id>
+ <name>JBoss Snapshots</name>
+ <url>http://snapshots.jboss.org/maven2</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>people.apache</id>
+ <name>People Apache plugin repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ <profiles>
+
+ <profile>
+ <id>all</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>hudson</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html_single</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>pdf</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+</project>
Modified: root/docs/trunk/Component_Reference/en-US/Book_Info.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Book_Info.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Component_Reference/en-US/Book_Info.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -27,7 +27,14 @@
<year>&YEAR;</year>
<holder>&HOLDER;</holder>
</copyright>
- <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+
+ <!--FOR PUBLICAN -->
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Common_Content/Legal_Notice.xml">
+ <!--FOR JDOCBOOK:-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
</bookinfo>
Modified: root/docs/trunk/Component_Reference/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Preface.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Component_Reference/en-US/Preface.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -4,9 +4,23 @@
<preface id="pref-Component_Reference-Preface">
<title>Preface</title>
- <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- </xi:fallback>
+ <!--FOR JDOCBOOK-->
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR PUBLICAN-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
</xi:include>
+
+ <!--PUBLICAN'S ORIGINAL XINCLUDES-->
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR JDOCBOOK-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
+ </xi:fallback>
+ </xi:include>
</preface>
-
Added: root/docs/trunk/Component_Reference/en-US/fallback_content/Conventions.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/fallback_content/Conventions.xml (rev 0)
+++ root/docs/trunk/Component_Reference/en-US/fallback_content/Conventions.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,174 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Common_Content.ent">
+%BOOK_ENTITIES;
+]>
+
+<section>
+ <title>Document Conventions</title>
+ <para>
+ This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
+ </para>
+ <para>
+ In PDF and paper editions, this manual uses typefaces drawn from the <ulink url="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</ulink> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
+ </para>
+ <section>
+ <title>Typographic Conventions</title>
+ <para>
+ Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.
+ </para>
+ <para>
+ <literal>Mono-spaced Bold</literal>
+ </para>
+ <para>
+ Used to highlight system input, including shell commands, file names and paths. Also used to highlight key caps and key-combinations. For example:
+ </para>
+ <blockquote>
+ <para>
+ To see the contents of the file <filename>my_next_bestselling_novel</filename> in your current working directory, enter the <command>cat my_next_bestselling_novel</command> command at the shell prompt and press <keycap>Enter</keycap> to execute the command.
+ </para>
+ </blockquote>
+ <para>
+ The above includes a file name, a shell command and a key cap, all presented in Mono-spaced Bold and all distinguishable thanks to context.
+ </para>
+ <para>
+ Key-combinations can be distinguished from key caps by the hyphen connecting each part of a key-combination. For example:
+ </para>
+ <blockquote>
+ <para>
+ Press <keycap>Enter</keycap> to execute the command.
+ </para>
+ <para>
+ Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> to switch to the first virtual terminal. Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F7</keycap></keycombo> to return to your X-Windows session.
+ </para>
+ </blockquote>
+ <para>
+ The first sentence highlights the particular key cap to press. The second highlights two sets of three key caps, each set pressed simultaneously.
+ </para>
+ <para>
+ If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in <literal>Mono-spaced Bold</literal>. For example:
+ </para>
+ <blockquote>
+ <para>
+ File-related classes include <classname>filesystem</classname> for file systems, <classname>file</classname> for files, and <classname>dir</classname> for directories. Each class has its own associated set of permissions.
+ </para>
+ </blockquote>
+ <para>
+ <application>Proportional Bold</application>
+ </para>
+ <para>
+ This denotes words or phrases encountered on a system, including application names; dialogue box text; labelled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example:
+ </para>
+ <blockquote>
+ <para>
+ Choose <guimenu>System > Preferences > Mouse</guimenu> from the main menu bar to launch <application>Mouse Preferences</application>. In the <guilabel>Buttons</guilabel> tab, click the <guilabel>Left-handed mouse</guilabel> check box and click <guibutton>Close</guibutton> to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand).
+ </para>
+ <para>
+ To insert a special character into a <application>gedit</application> file, choose <guimenu>Applications > Accessories > Character Map</guimenu> from the main menu bar. Next, choose <guimenu>Search > Find…</guimenu> from the <application>Character Map</application> menu bar, type the name of the character in the <guilabel>Search</guilabel> field and click <guibutton>Next</guibutton>. The character you sought will be highlighted in the <guilabel>Character Table</guilabel>. Double-click this highlighted character to place it in the <guilabel>Text to copy</guilabel> field and then click the <guibutton>Copy</guibutton> button. Now switch back to your document and choose <guimenu>Edit > Paste</guimenu> from the <application>gedit</application> menu bar.
+ </para>
+ </blockquote>
+ <para>
+ The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in Proportional Bold and all distinguishable by context.
+ </para>
+ <para>
+ Note the <guimenu>></guimenu> shorthand used to indicate traversal through a menu and its sub-menus. This is to avoid the difficult-to-follow 'Select <guimenuitem>Mouse</guimenuitem> from the <guimenu>Preferences</guimenu> sub-menu in the <guimenu>System</guimenu> menu of the main menu bar' approach.
+ </para>
+ <para>
+ <command><replaceable>Mono-spaced Bold Italic</replaceable></command> or <application><replaceable>Proportional Bold Italic</replaceable></application>
+ </para>
+ <para>
+ Whether Mono-spaced Bold or Proportional Bold, the addition of Italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example:
+ </para>
+ <blockquote>
+ <para>
+ To connect to a remote machine using ssh, type <command>ssh <replaceable>username</replaceable>@<replaceable>domain.name</replaceable></command> at a shell prompt. If the remote machine is <filename>example.com</filename> and your username on that machine is john, type <command>ssh john(a)example.com</command>.
+ </para>
+ <para>
+ The <command>mount -o remount <replaceable>file-system</replaceable></command> command remounts the named file system. For example, to remount the <filename>/home</filename> file system, the command is <command>mount -o remount /home</command>.
+ </para>
+ <para>
+ To see the version of a currently installed package, use the <command>rpm -q <replaceable>package</replaceable></command> command. It will return a result as follows: <command><replaceable>package-version-release</replaceable></command>.
+ </para>
+ </blockquote>
+ <para>
+ Note the words in bold italics above — username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system.
+ </para>
+ <para>
+ Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:
+ </para>
+ <blockquote>
+ <para>
+ When the Apache HTTP Server accepts requests, it dispatches child processes or threads to handle them. This group of child processes or threads is known as a <firstterm>server-pool</firstterm>. Under Apache HTTP Server 2.0, the responsibility for creating and maintaining these server-pools has been abstracted to a group of modules called <firstterm>Multi-Processing Modules</firstterm> (<firstterm>MPMs</firstterm>). Unlike other modules, only one module from the MPM group can be loaded by the Apache HTTP Server.
+ </para>
+ </blockquote>
+ </section>
+
+ <section>
+ <title>Pull-quote Conventions</title>
+ <para>
+ Two, commonly multi-line, data types are set off visually from the surrounding text.
+ </para>
+ <para>
+ Output sent to a terminal is set in <computeroutput>Mono-spaced Roman</computeroutput> and presented thus:
+ </para>
+
+<screen>
+books Desktop documentation drafts mss photos stuff svn
+books_tests Desktop1 downloads images notes scripts svgs
+</screen>
+ <para>
+ Source-code listings are also set in <computeroutput>Mono-spaced Roman</computeroutput> but are presented and highlighted as follows:
+ </para>
+
+<programlisting language="java">
+package org.jboss.book.jca.ex1;
+
+import javax.naming.InitialContext;
+
+public class ExClient
+{
+ public static void main(String args[])
+ throws Exception
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object ref = iniCtx.lookup("EchoBean");
+ EchoHome home = (EchoHome) ref;
+ Echo echo = home.create();
+
+ System.out.println("Created Echo");
+
+ System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
+ }
+
+}
+</programlisting>
+ </section>
+
+ <section>
+ <title>Notes and Warnings</title>
+ <para>
+ Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
+ </para>
+ <note>
+ <title>Note</title>
+ <para>
+ A Note is a tip or shortcut or alternative approach to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
+ </para>
+ </note>
+ <important>
+ <title>Important</title>
+ <para>
+ Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring Important boxes won't cause data loss but may cause irritation and frustration.
+ </para>
+ </important>
+ <warning>
+ <title>Warning</title>
+ <para>
+ A Warning should not be ignored. Ignoring warnings will most likely cause data loss.
+ </para>
+ </warning>
+ </section>
+
+</section>
+
+
Added: root/docs/trunk/Component_Reference/en-US/fallback_content/Feedback.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/fallback_content/Feedback.xml (rev 0)
+++ root/docs/trunk/Component_Reference/en-US/fallback_content/Feedback.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,22 @@
+<?xml version='1.0'?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<section>
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in Bugzilla: <ulink url="http://bugzilla.redhat.com/bugzilla/">http://bugzilla.redhat.com/bugzilla/</ulink> against the product <application>&PRODUCT;.</application>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's identifier: <citetitle>&BOOKID;</citetitle>
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
Added: root/docs/trunk/Component_Reference/en-US/fallback_content/Legal_Notice.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/fallback_content/Legal_Notice.xml (rev 0)
+++ root/docs/trunk/Component_Reference/en-US/fallback_content/Legal_Notice.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<legalnotice>
+ <para>
+ Copyright <trademark class="copyright"></trademark> &YEAR; &HOLDER;. This material may only be distributed subject to the terms and conditions set forth in the Open Publication License, V1.0, (the latest version is presently available at <ulink url="http://www.opencontent.org/openpub/">http://www.opencontent.org/openpub/</ulink>).
+ </para>
+ <para>
+ Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
+ </para>
+ <para>
+ <trademark class="registered">Linux</trademark> is the registered trademark of Linus Torvalds in the United States and other countries.
+ </para>
+ <para>
+ All other trademarks are the property of their respective owners.
+ </para>
+ <para>
+ <address>
+ <street>1801 Varsity Drive</street>
+ <city>Raleigh</city>, <state>NC</state> <postcode>27606-2072</postcode> <country>USA</country>
+ <phone>Phone: +1 919 754 3700</phone>
+ <phone>Phone: 888 733 4281</phone>
+ <fax>Fax: +1 919 754 3701</fax>
+ <pob>PO Box 13588</pob> <city>Research Triangle Park</city>, <state>NC</state> <postcode>27709</postcode> <country>USA</country>
+ </address>
+ </para>
+</legalnotice>
+
Added: root/docs/trunk/Component_Reference/pom.xml
===================================================================
--- root/docs/trunk/Component_Reference/pom.xml (rev 0)
+++ root/docs/trunk/Component_Reference/pom.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,321 @@
+
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>RichFaces_Component_Reference-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <!--<name>Platform User Guide (${translation})</name>-->
+ <name>${env.DOCNAME}(${translation})</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.3-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <!--minmemory>1024m</minmemory>
+ <maxmemory>1024m</maxmemory -->
+ <sourceDocumentName>all-${env.DOCNAME}.xml</sourceDocumentName>
+ <!--<sourceDocumentName>${env.DOCNAME}</sourceDocumentName>-->
+ <sourceDirectory>en-US</sourceDirectory>
+ <imageResource>
+ <directory>en-US</directory>
+ <includes>
+ <include>images/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <!--format>
+ <formatName>pdf</formatName>
+ <note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format-->
+ <!--<format>
+ <formatName>html</formatName>-->
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <!--<format>
+ <formatName>eclipse</formatName>-->
+ <!--note: "main-eclipse.xsl" changed name to "eclipse.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/main-eclipse.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ <transformerParameters>
+ <property>
+ <name>javax.xml.parsers.DocumentBuilderFactory</name>
+ <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value>
+ </property>
+ <property>
+ <name>javax.xml.parsers.SAXParserFactory</name>
+ <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
+ </property>
+ <!--<javax.xml.parsers.DocumentBuilderFactory>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</javax.xml.parsers.DocumentBuilderFactory>
+ <javax.xml.parsers.SAXParserFactory>org.apache.xerces.jaxp.SAXParserFactoryImpl</javax.xml.parsers.SAXParserFactory>
+ <javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>org.apache.xerces.jaxp.validation.XMLSchemaFactory</javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>-->
+ </transformerParameters>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+ <pluginRepositories>
+ <!--original repository-->
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>snapshots.jboss</id>
+ <name>JBoss Snapshots</name>
+ <url>http://snapshots.jboss.org/maven2</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>people.apache</id>
+ <name>People Apache plugin repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ <profiles>
+
+ <profile>
+ <id>all</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>hudson</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html_single</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>pdf</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+</project>
Modified: root/docs/trunk/Developer_Guide/en-US/Book_Info.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/Book_Info.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Developer_Guide/en-US/Book_Info.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -7,7 +7,7 @@
<subtitle>Developing projects using RichFaces &VERSION_LONG;<remark> (draft)</remark>
</subtitle>
<productname>RichFaces</productname>
- <productnumber>&VERSION;</productnumber>
+ <productnumber>4.0</productnumber>
<edition>0.1</edition>
<pubsnumber>0</pubsnumber>
<abstract>
@@ -30,7 +30,14 @@
<year>&YEAR;</year>
<holder>&HOLDER;</holder>
</copyright>
- <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+
+ <!--FOR PUBLICAN -->
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Common_Content/Legal_Notice.xml">
+ <!--FOR JDOCBOOK:-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
</bookinfo>
Modified: root/docs/trunk/Developer_Guide/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/Preface.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Developer_Guide/en-US/Preface.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -4,9 +4,23 @@
<preface id="pref-Developer_Guide-Preface">
<title>Preface</title>
- <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- </xi:fallback>
+ <!--FOR JDOCBOOK-->
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR PUBLICAN-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
</xi:include>
+
+ <!--PUBLICAN'S ORIGINAL XINCLUDES-->
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR JDOCBOOK-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
+ </xi:fallback>
+ </xi:include>
</preface>
-
Added: root/docs/trunk/Developer_Guide/en-US/fallback_content/Conventions.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/fallback_content/Conventions.xml (rev 0)
+++ root/docs/trunk/Developer_Guide/en-US/fallback_content/Conventions.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,174 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Common_Content.ent">
+%BOOK_ENTITIES;
+]>
+
+<section>
+ <title>Document Conventions</title>
+ <para>
+ This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
+ </para>
+ <para>
+ In PDF and paper editions, this manual uses typefaces drawn from the <ulink url="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</ulink> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
+ </para>
+ <section>
+ <title>Typographic Conventions</title>
+ <para>
+ Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.
+ </para>
+ <para>
+ <literal>Mono-spaced Bold</literal>
+ </para>
+ <para>
+ Used to highlight system input, including shell commands, file names and paths. Also used to highlight key caps and key-combinations. For example:
+ </para>
+ <blockquote>
+ <para>
+ To see the contents of the file <filename>my_next_bestselling_novel</filename> in your current working directory, enter the <command>cat my_next_bestselling_novel</command> command at the shell prompt and press <keycap>Enter</keycap> to execute the command.
+ </para>
+ </blockquote>
+ <para>
+ The above includes a file name, a shell command and a key cap, all presented in Mono-spaced Bold and all distinguishable thanks to context.
+ </para>
+ <para>
+ Key-combinations can be distinguished from key caps by the hyphen connecting each part of a key-combination. For example:
+ </para>
+ <blockquote>
+ <para>
+ Press <keycap>Enter</keycap> to execute the command.
+ </para>
+ <para>
+ Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> to switch to the first virtual terminal. Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F7</keycap></keycombo> to return to your X-Windows session.
+ </para>
+ </blockquote>
+ <para>
+ The first sentence highlights the particular key cap to press. The second highlights two sets of three key caps, each set pressed simultaneously.
+ </para>
+ <para>
+ If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in <literal>Mono-spaced Bold</literal>. For example:
+ </para>
+ <blockquote>
+ <para>
+ File-related classes include <classname>filesystem</classname> for file systems, <classname>file</classname> for files, and <classname>dir</classname> for directories. Each class has its own associated set of permissions.
+ </para>
+ </blockquote>
+ <para>
+ <application>Proportional Bold</application>
+ </para>
+ <para>
+ This denotes words or phrases encountered on a system, including application names; dialogue box text; labelled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example:
+ </para>
+ <blockquote>
+ <para>
+ Choose <guimenu>System > Preferences > Mouse</guimenu> from the main menu bar to launch <application>Mouse Preferences</application>. In the <guilabel>Buttons</guilabel> tab, click the <guilabel>Left-handed mouse</guilabel> check box and click <guibutton>Close</guibutton> to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand).
+ </para>
+ <para>
+ To insert a special character into a <application>gedit</application> file, choose <guimenu>Applications > Accessories > Character Map</guimenu> from the main menu bar. Next, choose <guimenu>Search > Find…</guimenu> from the <application>Character Map</application> menu bar, type the name of the character in the <guilabel>Search</guilabel> field and click <guibutton>Next</guibutton>. The character you sought will be highlighted in the <guilabel>Character Table</guilabel>. Double-click this highlighted character to place it in the <guilabel>Text to copy</guilabel> field and then click the <guibutton>Copy</guibutton> button. Now switch back to your document and choose <guimenu>Edit > Paste</guimenu> from the <application>gedit</application> menu bar.
+ </para>
+ </blockquote>
+ <para>
+ The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in Proportional Bold and all distinguishable by context.
+ </para>
+ <para>
+ Note the <guimenu>></guimenu> shorthand used to indicate traversal through a menu and its sub-menus. This is to avoid the difficult-to-follow 'Select <guimenuitem>Mouse</guimenuitem> from the <guimenu>Preferences</guimenu> sub-menu in the <guimenu>System</guimenu> menu of the main menu bar' approach.
+ </para>
+ <para>
+ <command><replaceable>Mono-spaced Bold Italic</replaceable></command> or <application><replaceable>Proportional Bold Italic</replaceable></application>
+ </para>
+ <para>
+ Whether Mono-spaced Bold or Proportional Bold, the addition of Italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example:
+ </para>
+ <blockquote>
+ <para>
+ To connect to a remote machine using ssh, type <command>ssh <replaceable>username</replaceable>@<replaceable>domain.name</replaceable></command> at a shell prompt. If the remote machine is <filename>example.com</filename> and your username on that machine is john, type <command>ssh john(a)example.com</command>.
+ </para>
+ <para>
+ The <command>mount -o remount <replaceable>file-system</replaceable></command> command remounts the named file system. For example, to remount the <filename>/home</filename> file system, the command is <command>mount -o remount /home</command>.
+ </para>
+ <para>
+ To see the version of a currently installed package, use the <command>rpm -q <replaceable>package</replaceable></command> command. It will return a result as follows: <command><replaceable>package-version-release</replaceable></command>.
+ </para>
+ </blockquote>
+ <para>
+ Note the words in bold italics above — username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system.
+ </para>
+ <para>
+ Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:
+ </para>
+ <blockquote>
+ <para>
+ When the Apache HTTP Server accepts requests, it dispatches child processes or threads to handle them. This group of child processes or threads is known as a <firstterm>server-pool</firstterm>. Under Apache HTTP Server 2.0, the responsibility for creating and maintaining these server-pools has been abstracted to a group of modules called <firstterm>Multi-Processing Modules</firstterm> (<firstterm>MPMs</firstterm>). Unlike other modules, only one module from the MPM group can be loaded by the Apache HTTP Server.
+ </para>
+ </blockquote>
+ </section>
+
+ <section>
+ <title>Pull-quote Conventions</title>
+ <para>
+ Two, commonly multi-line, data types are set off visually from the surrounding text.
+ </para>
+ <para>
+ Output sent to a terminal is set in <computeroutput>Mono-spaced Roman</computeroutput> and presented thus:
+ </para>
+
+<screen>
+books Desktop documentation drafts mss photos stuff svn
+books_tests Desktop1 downloads images notes scripts svgs
+</screen>
+ <para>
+ Source-code listings are also set in <computeroutput>Mono-spaced Roman</computeroutput> but are presented and highlighted as follows:
+ </para>
+
+<programlisting language="java">
+package org.jboss.book.jca.ex1;
+
+import javax.naming.InitialContext;
+
+public class ExClient
+{
+ public static void main(String args[])
+ throws Exception
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object ref = iniCtx.lookup("EchoBean");
+ EchoHome home = (EchoHome) ref;
+ Echo echo = home.create();
+
+ System.out.println("Created Echo");
+
+ System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
+ }
+
+}
+</programlisting>
+ </section>
+
+ <section>
+ <title>Notes and Warnings</title>
+ <para>
+ Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
+ </para>
+ <note>
+ <title>Note</title>
+ <para>
+ A Note is a tip or shortcut or alternative approach to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
+ </para>
+ </note>
+ <important>
+ <title>Important</title>
+ <para>
+ Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring Important boxes won't cause data loss but may cause irritation and frustration.
+ </para>
+ </important>
+ <warning>
+ <title>Warning</title>
+ <para>
+ A Warning should not be ignored. Ignoring warnings will most likely cause data loss.
+ </para>
+ </warning>
+ </section>
+
+</section>
+
+
Added: root/docs/trunk/Developer_Guide/en-US/fallback_content/Feedback.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/fallback_content/Feedback.xml (rev 0)
+++ root/docs/trunk/Developer_Guide/en-US/fallback_content/Feedback.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,22 @@
+<?xml version='1.0'?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<section>
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in Bugzilla: <ulink url="http://bugzilla.redhat.com/bugzilla/">http://bugzilla.redhat.com/bugzilla/</ulink> against the product <application>&PRODUCT;.</application>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's identifier: <citetitle>&BOOKID;</citetitle>
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
Added: root/docs/trunk/Developer_Guide/en-US/fallback_content/Legal_Notice.xml
===================================================================
--- root/docs/trunk/Developer_Guide/en-US/fallback_content/Legal_Notice.xml (rev 0)
+++ root/docs/trunk/Developer_Guide/en-US/fallback_content/Legal_Notice.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<legalnotice>
+ <para>
+ Copyright <trademark class="copyright"></trademark> &YEAR; &HOLDER;. This material may only be distributed subject to the terms and conditions set forth in the Open Publication License, V1.0, (the latest version is presently available at <ulink url="http://www.opencontent.org/openpub/">http://www.opencontent.org/openpub/</ulink>).
+ </para>
+ <para>
+ Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
+ </para>
+ <para>
+ <trademark class="registered">Linux</trademark> is the registered trademark of Linus Torvalds in the United States and other countries.
+ </para>
+ <para>
+ All other trademarks are the property of their respective owners.
+ </para>
+ <para>
+ <address>
+ <street>1801 Varsity Drive</street>
+ <city>Raleigh</city>, <state>NC</state> <postcode>27606-2072</postcode> <country>USA</country>
+ <phone>Phone: +1 919 754 3700</phone>
+ <phone>Phone: 888 733 4281</phone>
+ <fax>Fax: +1 919 754 3701</fax>
+ <pob>PO Box 13588</pob> <city>Research Triangle Park</city>, <state>NC</state> <postcode>27709</postcode> <country>USA</country>
+ </address>
+ </para>
+</legalnotice>
+
Added: root/docs/trunk/Developer_Guide/pom.xml
===================================================================
--- root/docs/trunk/Developer_Guide/pom.xml (rev 0)
+++ root/docs/trunk/Developer_Guide/pom.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -0,0 +1,321 @@
+
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>RichFaces_Developer_Guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <!--<name>Platform User Guide (${translation})</name>-->
+ <name>${env.DOCNAME}(${translation})</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.3-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <!--minmemory>1024m</minmemory>
+ <maxmemory>1024m</maxmemory -->
+ <sourceDocumentName>all-${env.DOCNAME}.xml</sourceDocumentName>
+ <!--<sourceDocumentName>${env.DOCNAME}</sourceDocumentName>-->
+ <sourceDirectory>en-US</sourceDirectory>
+ <imageResource>
+ <directory>en-US</directory>
+ <includes>
+ <include>images/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <!--format>
+ <formatName>pdf</formatName>
+ <note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format-->
+ <!--<format>
+ <formatName>html</formatName>-->
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <!--<format>
+ <formatName>eclipse</formatName>-->
+ <!--note: "main-eclipse.xsl" changed name to "eclipse.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/main-eclipse.xsl</stylesheetResource>-->
+ <!--<stylesheetResource>classpath:/xslt/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>-->
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ <transformerParameters>
+ <property>
+ <name>javax.xml.parsers.DocumentBuilderFactory</name>
+ <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value>
+ </property>
+ <property>
+ <name>javax.xml.parsers.SAXParserFactory</name>
+ <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
+ </property>
+ <!--<javax.xml.parsers.DocumentBuilderFactory>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</javax.xml.parsers.DocumentBuilderFactory>
+ <javax.xml.parsers.SAXParserFactory>org.apache.xerces.jaxp.SAXParserFactoryImpl</javax.xml.parsers.SAXParserFactory>
+ <javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>org.apache.xerces.jaxp.validation.XMLSchemaFactory</javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema>-->
+ </transformerParameters>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+ <pluginRepositories>
+ <!--original repository-->
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>jboss</id>
+ <name>JBoss Plugin Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>snapshots.jboss</id>
+ <name>JBoss Snapshots</name>
+ <url>http://snapshots.jboss.org/maven2</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>people.apache</id>
+ <name>People Apache plugin repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ <profiles>
+
+ <profile>
+ <id>all</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>hudson</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <!--note: "main-html" changed name to "xhtml.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>html_single</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html_single</formatName>
+ <!--note: "nochunk-html.xsl" changed name to "xhtml-single.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>pdf</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <!--note: "main-pdf" changed name to "pdf.xsl" between jbossorg-docbook-xslt
+ version 1.0.0 and version 1.1.0 -->
+ <!--<stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>-->
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${env.DOCNAME}.pdf</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+</project>
Modified: root/docs/trunk/Migration_Guide/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Migration_Guide/en-US/Preface.xml 2009-10-29 05:09:54 UTC (rev 15769)
+++ root/docs/trunk/Migration_Guide/en-US/Preface.xml 2009-10-29 06:13:48 UTC (rev 15770)
@@ -8,20 +8,20 @@
<xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<!--FOR PUBLICAN-->
<xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
- <xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</xi:fallback>
</xi:include>
<!--PUBLICAN'S ORIGINAL XINCLUDES-->
- <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
- <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
- <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
- <!--FOR JDOCBOOK-->
- <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
- <xi:include href="fallback_content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- </xi:fallback>
- </xi:include>
- </xi:fallback>
- </xi:include>
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--FOR JDOCBOOK-->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>
+ </xi:fallback>
+ </xi:include>
</preface>
15 years, 1 month
JBoss Rich Faces SVN: r15769 - in root/docs/trunk/Migration_Guide: en-US and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2009-10-29 01:09:54 -0400 (Thu, 29 Oct 2009)
New Revision: 15769
Added:
root/docs/trunk/Migration_Guide/en-US/all-Migration_Guide.xml
Modified:
root/docs/trunk/Migration_Guide/en-US/Preface.xml
root/docs/trunk/Migration_Guide/pom.xml
Log:
Maven building for Migration_Guide now available
Modified: root/docs/trunk/Migration_Guide/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Migration_Guide/en-US/Preface.xml 2009-10-28 06:30:30 UTC (rev 15768)
+++ root/docs/trunk/Migration_Guide/en-US/Preface.xml 2009-10-29 05:09:54 UTC (rev 15769)
@@ -5,7 +5,7 @@
<preface id="pref-Migration_Guide-Preface">
<title>Preface</title>
<!--FOR JDOCBOOK-->
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Common_Content/Conventions.xml">
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<!--FOR PUBLICAN-->
<xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="fallback_content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Added: root/docs/trunk/Migration_Guide/en-US/all-Migration_Guide.xml
===================================================================
--- root/docs/trunk/Migration_Guide/en-US/all-Migration_Guide.xml (rev 0)
+++ root/docs/trunk/Migration_Guide/en-US/all-Migration_Guide.xml 2009-10-29 05:09:54 UTC (rev 15769)
@@ -0,0 +1,1727 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
+<!ENTITY PRODUCT "RichFaces">
+<!ENTITY VERSION "4.0">
+<!ENTITY VERSION_LONG "4.0.0.ALPHA2">
+<!ENTITY BOOKID "Migration_Guide">
+<!ENTITY HOLDER "Red Hat">
+<!ENTITY YEAR "2009">
+]>
+<book lang="en-US" status="draft">
+ <bookinfo id="book-Migration_Guide-Migration_Guide" lang="en-US">
+ <title>Migration Guide</title>
+ <subtitle>Migrating existing projects to RichFaces 4.0.0.ALPHA2<remark> (draft)</remark>
+ </subtitle>
+ <productname>RichFaces</productname>
+ <productnumber>4.0</productnumber>
+ <edition>0.1</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>This book details how to take an existing RichFaces project and
+upgrade it for use with RichFaces 4.0. It covers changes in
+component usage and behaviors, as well as new framework features
+which may affect existing RichFaces projects.</para></abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="./images/rf_logo.png" format="PNG" scalefit="1"/>
+ </imageobject>
+ <textobject>
+ <phrase>Logo</phrase>
+ </textobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <copyright>
+ <year>2009</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <!-- FOR PUBLICAN --><legalnotice xml:base="Common_Content/Legal_Notice.xml">
+ <para>
+ Copyright <trademark class="copyright"/> 2009 Red Hat This material may only be distributed subject to the terms and conditions set forth in the GNU Free Documentation License (GFDL), V1.2 or later (the latest version is presently available at <ulink url="http://www.gnu.org/licenses/fdl.txt">http://www.gnu.org/licenses/fdl.txt</ulink>).
+ </para>
+</legalnotice>
+ <authorgroup lang="en-US">
+ <author>
+ <firstname>Sean</firstname>
+ <surname>Rogers</surname>
+ <affiliation>
+ <orgname>Red Hat</orgname>
+ <orgdiv>Engineering Content Services</orgdiv>
+ </affiliation>
+ <email>serogers(a)redhat.com</email>
+ </author>
+</authorgroup>
+ </bookinfo>
+ <preface id="pref-Migration_Guide-Preface" lang="en-US">
+ <title>Preface</title>
+ <!-- FOR JDOCBOOK --><section xml:base="Common_Content/Conventions.xml">
+ <title>Document Conventions</title>
+ <para>
+ This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
+ </para>
+ <para>
+ In PDF and paper editions, this manual uses typefaces drawn from the <ulink url="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</ulink> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
+ </para>
+ <section>
+ <title>Typographic Conventions</title>
+ <para>
+ Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.
+ </para>
+ <para>
+ <literal>Mono-spaced Bold</literal>
+ </para>
+ <para>
+ Used to highlight system input, including shell commands, file names and paths. Also used to highlight key caps and key-combinations. For example:
+ </para>
+ <blockquote>
+ <para>
+ To see the contents of the file <filename>my_next_bestselling_novel</filename> in your current working directory, enter the <command>cat my_next_bestselling_novel</command> command at the shell prompt and press <keycap>Enter</keycap> to execute the command.
+ </para>
+ </blockquote>
+ <para>
+ The above includes a file name, a shell command and a key cap, all presented in Mono-spaced Bold and all distinguishable thanks to context.
+ </para>
+ <para>
+ Key-combinations can be distinguished from key caps by the hyphen connecting each part of a key-combination. For example:
+ </para>
+ <blockquote>
+ <para>
+ Press <keycap>Enter</keycap> to execute the command.
+ </para>
+ <para>
+ Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> to switch to the first virtual terminal. Press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F7</keycap></keycombo> to return to your X-Windows session.
+ </para>
+ </blockquote>
+ <para>
+ The first sentence highlights the particular key cap to press. The second highlights two sets of three key caps, each set pressed simultaneously.
+ </para>
+ <para>
+ If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in <literal>Mono-spaced Bold</literal>. For example:
+ </para>
+ <blockquote>
+ <para>
+ File-related classes include <classname>filesystem</classname> for file systems, <classname>file</classname> for files, and <classname>dir</classname> for directories. Each class has its own associated set of permissions.
+ </para>
+ </blockquote>
+ <para>
+ <application>Proportional Bold</application>
+ </para>
+ <para>
+ This denotes words or phrases encountered on a system, including application names; dialogue box text; labelled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example:
+ </para>
+ <blockquote>
+ <para>
+ Choose <guimenu>System > Preferences > Mouse</guimenu> from the main menu bar to launch <application>Mouse Preferences</application>. In the <guilabel>Buttons</guilabel> tab, click the <guilabel>Left-handed mouse</guilabel> check box and click <guibutton>Close</guibutton> to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand).
+ </para>
+ <para>
+ To insert a special character into a <application>gedit</application> file, choose <guimenu>Applications > Accessories > Character Map</guimenu> from the main menu bar. Next, choose <guimenu>Search > Find…</guimenu> from the <application>Character Map</application> menu bar, type the name of the character in the <guilabel>Search</guilabel> field and click <guibutton>Next</guibutton>. The character you sought will be highlighted in the <guilabel>Character Table</guilabel>. Double-click this highlighted character to place it in the <guilabel>Text to copy</guilabel> field and then click the <guibutton>Copy</guibutton> button. Now switch back to your document and choose <guimenu>Edit > Paste</guimenu> from the <application>gedit</application> menu bar.
+ </para>
+ </blockquote>
+ <para>
+ The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in Proportional Bold and all distinguishable by context.
+ </para>
+ <para>
+ Note the <guimenu>></guimenu> shorthand used to indicate traversal through a menu and its sub-menus. This is to avoid the difficult-to-follow 'Select <guimenuitem>Mouse</guimenuitem> from the <guimenu>Preferences</guimenu> sub-menu in the <guimenu>System</guimenu> menu of the main menu bar' approach.
+ </para>
+ <para>
+ <command><replaceable>Mono-spaced Bold Italic</replaceable></command> or <application><replaceable>Proportional Bold Italic</replaceable></application>
+ </para>
+ <para>
+ Whether Mono-spaced Bold or Proportional Bold, the addition of Italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example:
+ </para>
+ <blockquote>
+ <para>
+ To connect to a remote machine using ssh, type <command>ssh <replaceable>username</replaceable>@<replaceable>domain.name</replaceable></command> at a shell prompt. If the remote machine is <filename>example.com</filename> and your username on that machine is john, type <command>ssh john(a)example.com</command>.
+ </para>
+ <para>
+ The <command>mount -o remount <replaceable>file-system</replaceable></command> command remounts the named file system. For example, to remount the <filename>/home</filename> file system, the command is <command>mount -o remount /home</command>.
+ </para>
+ <para>
+ To see the version of a currently installed package, use the <command>rpm -q <replaceable>package</replaceable></command> command. It will return a result as follows: <command><replaceable>package-version-release</replaceable></command>.
+ </para>
+ </blockquote>
+ <para>
+ Note the words in bold italics above — username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system.
+ </para>
+ <para>
+ Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:
+ </para>
+ <blockquote>
+ <para>
+ When the Apache HTTP Server accepts requests, it dispatches child processes or threads to handle them. This group of child processes or threads is known as a <firstterm>server-pool</firstterm>. Under Apache HTTP Server 2.0, the responsibility for creating and maintaining these server-pools has been abstracted to a group of modules called <firstterm>Multi-Processing Modules</firstterm> (<firstterm>MPMs</firstterm>). Unlike other modules, only one module from the MPM group can be loaded by the Apache HTTP Server.
+ </para>
+ </blockquote>
+ </section>
+
+ <section>
+ <title>Pull-quote Conventions</title>
+ <para>
+ Two, commonly multi-line, data types are set off visually from the surrounding text.
+ </para>
+ <para>
+ Output sent to a terminal is set in <computeroutput>Mono-spaced Roman</computeroutput> and presented thus:
+ </para>
+
+<screen>
+books Desktop documentation drafts mss photos stuff svn
+books_tests Desktop1 downloads images notes scripts svgs
+</screen>
+ <para>
+ Source-code listings are also set in <computeroutput>Mono-spaced Roman</computeroutput> but are presented and highlighted as follows:
+ </para>
+
+<programlisting language="java">
+package org.jboss.book.jca.ex1;
+
+import javax.naming.InitialContext;
+
+public class ExClient
+{
+ public static void main(String args[])
+ throws Exception
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object ref = iniCtx.lookup("EchoBean");
+ EchoHome home = (EchoHome) ref;
+ Echo echo = home.create();
+
+ System.out.println("Created Echo");
+
+ System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
+ }
+
+}
+</programlisting>
+ </section>
+
+ <section>
+ <title>Notes and Warnings</title>
+ <para>
+ Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
+ </para>
+ <note>
+ <title>Note</title>
+ <para>
+ A Note is a tip or shortcut or alternative approach to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
+ </para>
+ </note>
+ <important>
+ <title>Important</title>
+ <para>
+ Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring Important boxes won't cause data loss but may cause irritation and frustration.
+ </para>
+ </important>
+ <warning>
+ <title>Warning</title>
+ <para>
+ A Warning should not be ignored. Ignoring warnings will most likely cause data loss.
+ </para>
+ </warning>
+ </section>
+
+</section>
+ <!-- PUBLICAN'S ORIGINAL XINCLUDES --><section xml:base="Common_Content/Feedback.xml">
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ You should over ride this by creating your own local Feedback.xml file.
+ </para>
+</section>
+
+</preface>
+ <chapter id="chap-Migration_Guide-Introduction" lang="en-US">
+ <title>Introduction</title>
+ <para>
+ RichFaces 4.0 introduces many improvements and refinements to the already comprehensive RichFaces framework. Migrating your RichFaces projects to version 4.0 brings several advantages to your applications, including:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ complete integration with JavaServer Faces (<acronym>JSF</acronym>) 2.0, using new features and standardizing components;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ performance improvements throughout the components and core features;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ consistency throughout the framework, forming conventions and standards; and
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ simplification of project creation, build procedures, and application extension.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This book guides you through the process of migrating to RichFaces 4.0, and highlights important changes that have been made to the framework and how they may affect your projects and applications.
+ </para>
+</chapter>
+ <chapter id="chap-Migration_Guide-Upgrading" lang="en-US">
+ <title>Upgrading</title>
+ <para>
+ Upgrading an existing project to use the RichFaces 4.0 framework only requires that the new libraries replace the old ones. For a complete installation guide for new projects, refer to the <citetitle>Developer Guide</citetitle>.
+ </para>
+ <section id="sect-Migration_Guide-Upgrading-Before_upgrading">
+ <title>Before upgrading</title>
+ <para>
+ Ensure you make a back-up copy of any projects and settings before upgrading an existing RichFaces installation.
+ </para>
+ <para>
+ Check that the environment you are working in meets the RichFaces technical requirements listed in the <citetitle>Developer Guide</citetitle>.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Upgrading-Installation">
+ <title>Installation</title>
+ <procedure>
+ <step id="step-Migration_Guide-Installation-Download_RichFaces_packages">
+ <title>Download RichFaces packages</title>
+ <para>
+ If you have not already done so, download the RichFaces binaries from the RichFaces downloads page at <ulink url="http://www.jboss.org/richfaces/download.html">http://www.jboss.org/richfaces/download.html</ulink>.
+ </para>
+ </step>
+ <step id="step-Migration_Guide-Installation-Install_libraries">
+ <title>Install libraries</title>
+ <para>
+ Copy the following libraries from the RichFaces package to your application's <filename class="directory">WEB-INF/lib</filename> libraries directory:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <filename class="libraryfile">richfaces-api</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="libraryfile">richfaces-impl</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="libraryfile">core-ui</filename>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Existing projects should already contain the following libraries; if not, they will need to be included in the libraries directory as well:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <filename class="libraryfile">commons-logging</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="libraryfile">commons-beanutils</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="libraryfile">slf4j-api</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="libraryfile">slf4j-log4j12</filename>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </step>
+ <step id="step-Migration_Guide-Installation-Set_up_Maven">
+ <title>Set up Maven</title>
+ <para>
+ For existing projects, you should already have a Maven installation set up for RichFaces. If not, refer to the <citetitle>Developer Guide</citetitle> for how to set up Maven.
+ </para>
+ </step>
+ <step id="step-Migration_Guide-Installation-Namespace_and_taglib_declaration">
+ <title>Namespace and taglib declaration</title>
+ <para>
+ The namespace and library inclusions are the same as those for previous versions of RichFaces.
+ </para>
+ <para>
+ The RichFaces namespaces need to be declared in the project's XHTML pages.
+ </para>
+
+<programlisting role="XML">
+<ui:composition
+xmlns:a4j="http://richfaces.org/a4j"
+xmlns:rich="http://richfaces.org/rich">
+ ...
+</ui:composition>
+</programlisting>
+ <para>
+ Also add the RichFaces libraries to the JSP pages using <code>taglib</code>.
+ </para>
+
+<programlisting role="XML">
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+</programlisting>
+ <note>
+ <title>Note</title>
+ <para>
+ With RichFaces 4.0, it is no longer necessary to modify the <filename>web.xml</filename> and <filename>faces-config.xml</filename> files of a project to use the framework.
+ </para>
+ </note>
+ </step>
+ </procedure>
+
+ </section>
+
+</chapter>
+ <chapter id="chap-Migration_Guide-Changes_and_new_features" lang="en-US">
+ <title>Changes and new features</title>
+ <para>
+ There have been several changes made to the RichFaces framework for version 4.0 that may affect migrated projects.
+ </para>
+ <section id="sect-Migration_Guide-Changes_and_new_features-JSF_2_integration">
+ <title>JSF 2 integration</title>
+ <para>
+ RichFaces 4.0 has full support for JavaServer Faces (<acronym>JSF</acronym>) 2.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-Standardized_attributes">
+ <title>Standardized attributes</title>
+ <para>
+ Several component and event attribute names have been changed from those used in previous versions of RichFaces. The names have been changed to be more consistent with attribute names used by JavaServer Faces 2, so as to provide standardized usage. Many of the name changes also provide more consistency and cleanliness within the framework itself. Other attributes have been deprecated in favor of consistent functionality.
+ </para>
+ <section id="sect-Migration_Guide-Standardized_attributes-Name_changes">
+ <title>Name changes</title>
+ <para>
+ <xref linkend="tabl-Migration_Guide-Name_changes-Attribute_name_changes"/> lists attribute names that have been changed, and which components and events are affected.
+ </para>
+ <table id="tabl-Migration_Guide-Name_changes-Attribute_name_changes">
+ <title>Attribute name changes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>
+ Attribute details
+ </entry>
+ <entry>
+ Affected a4j components
+ </entry>
+ <entry>
+ Affected rich components
+ </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <para>
+ <code>process</code>
+ </para>
+ <para>
+ Changed to <code>execute</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toggleControl></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:treeNode></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>reRender</code>
+ </para>
+ <para>
+ Changed to <code>render</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:ajaxValidator></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dragSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:extendedDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:scrollableDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:treeNode></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>eventsQueue</code>
+ </para>
+ <para>
+ Changed to <code>queue</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:ajaxValidator></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dragSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:scrollableDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toggleControl></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>limitToList</code>
+ </para>
+ <para>
+ Changed to <code>limitRender</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:ajaxValidator></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dragSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:scrollableDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toggleControl></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:treeNode></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>onbeforedomupdate</code>
+ </para>
+ <para>
+ Changed to <code>onsuccess</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <para>
+ All components
+ </para>
+ </entry>
+ <entry>
+ <para>
+ All components
+ </para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section id="sect-Migration_Guide-Standardized_attributes-Deprecated_attributes">
+ <title>Deprecated attributes</title>
+ <para>
+ <xref linkend="tabl-Migration_Guide-Deprecated_attributes-Deprecated_attributes"/> lists attributes which have been deprecated in RichFaces 4.0, along with preferred ways to replicate their functionality.
+ </para>
+ <table id="tabl-Migration_Guide-Deprecated_attributes-Deprecated_attributes">
+ <title>Deprecated attributes</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>
+ Attribute details
+ </entry>
+ <entry>
+ Affected a4j components
+ </entry>
+ <entry>
+ Affected rich components
+ </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <para>
+ <code>ignoreDupResponses</code>
+ </para>
+ <para>
+ Deprecated. Functionality moved to <code>queue</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:queue></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:ajaxValidator></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dragSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:scrollableDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toggleControl></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:treeNode></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>requestDelay</code>
+ </para>
+ <para>
+ Deprecated. Functionality moved to <code>queue</code> in 4.0.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:queue></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:ajaxValidator></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dragSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:scrollableDataTable></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <code>ajaxSingle</code>
+ </para>
+ <para>
+ Deprecated. Use <code>execute="@this"</code> in 4.0 instead.
+ </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:ajax></classname> (was <classname><a4j:support></classname>)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandButton></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:commandLink></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:form></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:jsFunction></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:poll></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:push></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><rich:calendar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataFilterSlider></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dataScroller></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:dropSupport></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:fileUpload></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:menuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuGroup></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:panelMenuItem></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:progressBar></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:simpleTogglePanel></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:suggestionBox></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tab></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toggleControl></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:toolTip></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:tree></classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><rich:treeNode></classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-Performance">
+ <title>Performance</title>
+ <para>
+ The RichFaces framework has been extensively refined to provide better performance for applications. This includes improvements to bandwidth requirements for generated markup, size and number of required resources for Javascript and Cascading Style Sheets (<acronym>CSS</acronym>), and other general performance improvements.
+ </para>
+ <section id="sect-Migration_Guide-Performance-Bandwidth_for_generated_markup">
+ <title>Bandwidth for generated markup</title>
+ <para>
+ Several considerations have been made to improve the use of bandwidth when generating markup.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <acronym>XHTML</acronym> markup has been simplified and streamlined using best practices, such as avoiding tables for layout.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Default attribute values are not rendered.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Javascript use has been simplified with shorter function names and only one proxy call per form.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Yahoo!'s best practices for high performance have been implemented. Refer to <ulink url="http://developer.yahoo.com/performance/">http://developer.yahoo.com/performance/</ulink> for details on Yahoo!'s guidelines.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Migration_Guide-Performance-Resource_requirements">
+ <title>Resource requirements</title>
+ <para>
+ The three Javascript libraries previously used by the RichFaces framework have been consolidated and standardized into a single library for better performance.
+ </para>
+ <para>
+ Usage of Cascading Style Sheets (<acronym>CSS</acronym>) has been simplified, trimming out duplicate or otherwise unnecessary entries and better utilizing the cascading approach for style values.
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-Feature_changes">
+ <title>Feature changes</title>
+ <para>
+ Features have been altered or added to existing components and behaviors in the RichFaces 4.0 framework. Refer to the <citetitle>Developer Guide</citetitle> for full details on how to make use of any new features.
+ </para>
+ <section id="sect-Migration_Guide-Feature_changes-Server_side_process_and_render_mechanisms">
+ <title>Server-side process and render mechanisms</title>
+ <para>
+ Some of the mechanisms for server-side processing and rendering have been altered.
+ </para>
+ <section id="sect-Migration_Guide-Server_side_process_and_render_mechanisms-Regions">
+ <title>Regions</title>
+ <para>
+ It is now possible to define zones for processing on the server-side without specifying <code>execute</code> definitions for every component. The <code>execute="@region"</code> property can be used to process regions defined on the server side.
+ </para>
+ <important>
+ <title>Important</title>
+ <para>
+ This approach is different to that in <acronym>JSF 2</acronym>, which uses default values of <code>execute="@this"</code> and <code>render="@this"</code> if no other value is defined.
+ </para>
+ </important>
+ </section>
+
+ <section id="sect-Migration_Guide-Server_side_process_and_render_mechanisms-execute">
+ <title>execute</title>
+ <para>
+ The <code>execute</code> property has been extended to include the <literal>@region</literal> keyword, which facilitates the region rendering changes described in <xref linkend="sect-Migration_Guide-Server_side_process_and_render_mechanisms-Regions"/>.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Server_side_process_and_render_mechanisms-render">
+ <title>render</title>
+ <para>
+ The <code>render</code> property can also be defined from the server side, using actions and listeners.
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-onbegin_event_attribute">
+ <title>onbegin event attribute</title>
+ <para>
+ The <code>onbegin</code> attribute has been added to support <acronym>JSF</acronym> events with the type <literal>begin</literal>.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-a4jcommandButton_and_a4jcommandLink">
+ <title><a4j:commandButton> and <a4j:commandLink></title>
+ <para>
+ Both the <classname><a4j:commandButton></classname> and <classname><a4j:commandLink></classname> use the <code>onclick</code> event attribute instead of the <code>onbegin</code> attribute.
+ </para>
+ </section>
+
+ <!--
+ <section>
+ <title><a4j:jsFunction></title>
+ <para>
+
+ </para>
+ </section>
+ -->
+ <section id="sect-Migration_Guide-Feature_changes-a4jlog">
+ <title><a4j:log></title>
+ <para>
+ The <classname><a4j:log></classname> behavior has had several features modified.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ It is now possible to switch levels on the client side.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The log can now be displayed inline with page markup, in a new browser window, or in the browser console.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ An application context parameter can now be defined to log all application pages.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-a4jmessage_and_a4jmessages">
+ <title><a4j:message> and <a4j:messages></title>
+ <para>
+ Both the <classname><a4j:message></classname> and <classname><a4j:messages></classname> components can be automatically updated by any Ajax request, except those requests with <code>limitRender = true</code>. Attributes from previously-passed states are now cleared.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-a4joutputPanel">
+ <title><a4j:outputPanel></title>
+ <para>
+ The <classname><a4j:outputPanel></classname> component has had several features modified.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The default value for the <code>layout</code> attribute is now <literal>block</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The default value for the <code>ajaxRendered</code> attribute is now <literal>false</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If a child component is not to be rendered, a placeholder element will be included to preserve the layout.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-a4jpush_and_a4jpoll">
+ <title><a4j:push> and <a4j:poll></title>
+ <para>
+ Both the <classname><a4j:push></classname> and <classname><a4j:poll></classname> behaviors now raise a client-side event. For <classname><a4j:push></classname>, this is the <code>ondataavailable</code> event, while for <classname><a4j:poll></classname> it is the <code>ontimeevent</code>.
+ </para>
+ </section>
+
+ <!--
+ <section>
+ <title><a4j:region></title>
+ <para>
+
+ </para>
+ </section>
+ -->
+ <section id="sect-Migration_Guide-Feature_changes-a4jstatus">
+ <title><a4j:status></title>
+ <para>
+ In RichFaces 4.0, <classname><a4j:status></classname> has been implemented as a component rather than a behavior, as it should have a representation in the Document Object Model (<acronym>DOM</acronym>) tree.
+ </para>
+ <para>
+ The <classname><a4j:status></classname> component has had several other features modified.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <classname><a4j:status></classname> no longer needs to be associated with a <classname><a4j:region></classname>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <classname><a4j:status></classname> can now report request errors. An additional <code>errorText</code> attribute and <literal>error</literal> facet have been added to show if an error was raised when a request completed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The event attributes now include <code>onstart</code>, <code>onstop</code>, <code>onerror</code>, and <code>onsuccess</code>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Multiple statuses can be presented for the same view or form, or a separate status attached to each component.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-richtogglePanel">
+ <title><rich:togglePanel></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-richtabPanel">
+ <title><rich:tabPanel></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-richtoolBar">
+ <title><rich:toolBar></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Feature_changes-richtoolTip">
+ <title><rich:toolTip></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-New_components_and_behaviors">
+ <title>New components and behaviors</title>
+ <para>
+ Several new components and behaviors have been added to RichFaces 4.0, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Developer Guide</citetitle>.
+ </para>
+ <!-- dataTable, dataLists, trees possibly included here as they may be consolidated -->
+ <section id="sect-Migration_Guide-New_components_and_behaviors-a4jajax">
+ <title><a4j:ajax></title>
+ <para>
+ The <classname><a4j:ajax></classname> behavior replaces the deprecated <classname><a4j:support></classname> behavior.
+ </para>
+ <para>
+ <classname><a4j:ajax></classname> uses <acronym>JSF 2</acronym>, and can be used to add Ajax capabilities to any non-Ajax <acronym>JSF</acronym> or RichFaces component.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-New_components_and_behaviors-richbusyBehavior">
+ <title><rich:busyBehavior></title>
+ <para>
+ <classname><rich:busyBehavior></classname> is used when heavy processing takes place to provide feedback to the user. It can be attached to a component's events to trigger appropriate messages.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-New_components_and_behaviors-richpopupPanel">
+ <title><rich:popupPanel></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-Deprecated_components_and_behaviors">
+ <title>Deprecated components and behaviors</title>
+ <para>
+ Some components and behaviors have been deprecated in RichFaces 4.0. For the most part these items have their functionality replicated by another component or behavior.
+ </para>
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-a4jpage">
+ <title><a4j:page></title>
+ <para>
+ RichFaces 4.0 drops support for the <classname><a4j:page></classname> component. The component was previously used for solving incompatibility in the JavaServer Pages (<acronym>JSP</acronym>) environment with Apache MyFaces in early Ajax4jsf versions.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-a4jsupport">
+ <title><a4j:support></title>
+ <para>
+ The <classname><a4j:support></classname> component had been deprecated and its functionality replaced by the <classname><a4j:ajax></classname> component. Refer to <xref linkend="sect-Migration_Guide-New_components_and_behaviors-a4jajax"/> for details.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richmodalPanel">
+ <title><rich:modalPanel></title>
+ <para>
+ Incomplete.
+ </para>
+ </section>
+
+ </section>
+
+</chapter>
+ <appendix id="appe-Migration_Guide-Revision_History" lang="en-US">
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>0.1</revnumber>
+ <date>Tue Oct 20 2009</date>
+ <author>
+ <firstname>Sean</firstname>
+ <surname>Rogers</surname>
+ <email>serogers(a)redhat.com</email>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Basic first draft</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
+ <index/>
+</book>
Modified: root/docs/trunk/Migration_Guide/pom.xml
===================================================================
--- root/docs/trunk/Migration_Guide/pom.xml 2009-10-28 06:30:30 UTC (rev 15768)
+++ root/docs/trunk/Migration_Guide/pom.xml 2009-10-29 05:09:54 UTC (rev 15769)
@@ -33,7 +33,7 @@
<configuration>
<!--minmemory>1024m</minmemory>
<maxmemory>1024m</maxmemory -->
- <sourceDocumentName>${env.DOCNAME}.xml</sourceDocumentName>
+ <sourceDocumentName>all-${env.DOCNAME}.xml</sourceDocumentName>
<!--<sourceDocumentName>${env.DOCNAME}</sourceDocumentName>-->
<sourceDirectory>en-US</sourceDirectory>
<imageResource>
15 years, 1 month
JBoss Rich Faces SVN: r15768 - root/docs/trunk/Component_Reference/en-US.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2009-10-28 02:30:30 -0400 (Wed, 28 Oct 2009)
New Revision: 15768
Added:
root/docs/trunk/Component_Reference/en-US/Common_Ajax_attributes.xml
Log:
Added Common Ajax components
Added: root/docs/trunk/Component_Reference/en-US/Common_Ajax_attributes.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Common_Ajax_attributes.xml (rev 0)
+++ root/docs/trunk/Component_Reference/en-US/Common_Ajax_attributes.xml 2009-10-28 06:30:30 UTC (rev 15768)
@@ -0,0 +1,209 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+
+<chapter id="chap-Component_Reference-Common_Ajax_attributes">
+ <title>Common Ajax attributes</title>
+ <para>
+ The Ajax components in the <classname>a4j</classname> library share common attributes to perform similar functionality. Most RichFaces components in the <classname>rich</classname> library that feature built-in Ajax support share these common attributes as well.
+ </para>
+ <para>
+ Most attributes have default values, so they need not be explicitly set for the component to function in its default state. These attributes can be altered to customize the behavior of the component if necessary.
+ </para>
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Rendering">
+ <title>Rendering</title>
+ <section id="sect-Component_Reference-Rendering-render">
+ <title><code>render</code></title>
+ <para>
+ The <code>render</code> attribute provides a reference to one or more areas on the page that need updating after an Ajax interaction. It uses the <code>UIComponent.findComponent()</code> algorithm to find the components in the component tree using their <code>id</code> attributes as a reference. Components can be referenced by their <code>id</code> attribute alone, or by a hierarchy of components' <code>id</code> attributes to make locating components more efficient. <xref linkend="exam-Component_Reference-render-render_example" /> shows both ways of referencing components. Each command button will correctly render the referenced panel grids, but the second button locates the references more efficiently with explicit hierarchy paths.
+ </para>
+ <example id="exam-Component_Reference-render-render_example">
+ <title>render example</title>
+
+<programlisting language="xml">
+<h:form id="form1">
+ <a4j:commandButton value="Basic reference" render="infoBlock, infoBlock2" />
+ <a4j:commandButton value="Specific reference" render=":infoBlock,:sv:infoBlock2" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<f:subview id="sv">
+ <h:panelGrid id="infoBlock2">
+ ...
+ </h:panelGrid>
+</f:subview>
+</programlisting>
+ </example>
+ <para>
+ The value of the <code>render</code> attribute can also be an expression written using JavaServer Faces' Expression Language (<acronym>EL</acronym>); this can either be a <type>Set</type>, <type>Collection</type>, <type>Array</type>, or <type>String</type>.
+ </para>
+ <important>
+ <title>Important</title>
+ <para>
+ A common problem with using <code>render</code> occurs when the referenced component has a <code>rendered</code> attribute. <acronym>JSF</acronym> does not mark the place in the browser's Document Object Model (<acronym>DOM</acronym>) where the rendered component would be placed in case the <code>rendered</code> attribute returns <literal>false</literal>. As such, when RichFaces sends the render code to the client, the page does not update as the place for the update is not known.
+ </para>
+ <para>
+ To work around this issue, wrap the component to be rendered in an <classname><a4j:outputPanel></classname> with <code>layout="none"</code>. The <classname><a4j:outputPanel></classname> will receive the update and render the component as required.
+ </para>
+ </important>
+ </section>
+
+ <section id="sect-Component_Reference-Rendering-ajaxRendered">
+ <title>ajaxRendered</title>
+ <para>
+ A component with <code>ajaxRendered="true"</code> will be re-rendered with <emphasis>every</emphasis> Ajax request, even when not referenced by the requesting component's <code>render</code> attribute. This can be useful for updating a status display or error message without explicitly requesting it.
+ </para>
+ <para>
+ Rendering of components in this way can be repressed by adding <code>limitRender="true"</code> to the requesting component, as described in <xref linkend="sect-Component_Reference-Rendering-limitRender" />.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Rendering-limitRender">
+ <title>limitRender</title>
+ <para>
+ A component with <code>limitRender="true"</code> specified will <emphasis>not</emphasis> cause components with <code>ajaxRendered="true"</code> to re-render, and only those components listed in the <code>render</code> attribute will be updated. This essentially overrides the <code>ajaxRendered</code> attribute in other components.
+ </para>
+ <para>
+ <xref linkend="exam-Component_Reference-limitRender-Rendering_example" /> describes two command buttons, a panel grid rendered by the buttons, and an output panel showing error messages. When the first button is clicked, the output panel is rendered even though it is not explicitly referenced with the <code>render</code> attribute. The second button, however, uses <code>limitRender="true"</code> to override the output panel's rendering and only render the panel grid.
+ </para>
+ <example id="exam-Component_Reference-limitRender-Rendering_example">
+ <title>Rendering example</title>
+
+<programlisting role="XML">
+<h:form id="form1">
+ <a4j:commandButton value="Normal rendering" render="infoBlock" />
+ <a4j:commandButton value="Limited rendering" render="infoBlock" limitRender="true" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+</a4j:outputPanel>
+</programlisting>
+ </example>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Queuing_and_traffic_control">
+ <title>Queuing and traffic control</title>
+ <section id="sect-Component_Reference-Queuing_and_traffic_control-queue">
+ <title>queue</title>
+ <para>
+ The <code>queue</code> attribute defines the name of the queue that will be used to schedule upcoming Ajax requests. Typically RichFaces does not queue Ajax requests, so if events are produced simultaneously they will arrive at the server simultaneously. This can potentially lead to unpredictable results when the responses are returned. The <code>queue</code> attribute ensures that the
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Data_processing">
+ <title>Data processing</title>
+ <section id="sect-Component_Reference-Data_processing-execute">
+ <title>execute</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-process">
+ <title>process</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-immediate">
+ <title>immediate</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Data_processing-bypassUpdates">
+ <title>bypassUpdates</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Action_and_navigation">
+ <title>Action and navigation</title>
+ <section id="sect-Component_Reference-Action_and_navigation-action">
+ <title>action</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Action_and_navigation-actionListener">
+ <title>actionListener</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+ <section id="sect-Component_Reference-Common_Ajax_attributes-Events_and_Javascript_interactions">
+ <title>Events and Javascript interactions</title>
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onsubmit">
+ <title>onsubmit</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onclick">
+ <title>onclick</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-oncomplete">
+ <title>oncomplete</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onbegin">
+ <title>onbegin</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onsuccess">
+ <title>onsuccess</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-onerror">
+ <title>onerror</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-Events_and_Javascript_interactions-data">
+ <title>data</title>
+ <para>
+ Incomplete
+ </para>
+ </section>
+
+ </section>
+
+</chapter>
+
15 years, 1 month