JBoss Rich Faces SVN: r15542 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-11 10:40:30 -0400 (Fri, 11 Sep 2009)
New Revision: 15542
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml
Log:
RF-7804: Rich Output component group description review --> rich:panelBar
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml 2009-09-11 14:37:11 UTC (rev 15541)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml 2009-09-11 14:40:30 UTC (rev 15542)
@@ -41,7 +41,7 @@
</para>
<para>
In contrast to <emphasis role="bold"><property><rich:panel></property></emphasis> the component has <emphasis><property>"width"</property></emphasis>
- and <emphasis><property>"height"</property></emphasis> attributes that control it size (by default thaey both has 100%).
+ and <emphasis><property>"height"</property></emphasis> attributes that control it size (by default they both have 100%).
</para>
14 years, 7 months
JBoss Rich Faces SVN: r15541 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-11 10:37:11 -0400 (Fri, 11 Sep 2009)
New Revision: 15541
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml
Log:
RF-7804: Rich Output component group description review --> rich:panelBar
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml 2009-09-11 14:36:34 UTC (rev 15540)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml 2009-09-11 14:37:11 UTC (rev 15541)
@@ -24,7 +24,7 @@
<para>May have header</para>
</listitem>
<listitem>
- <para>Has customizable look and feel </para>
+ <para>Has customizable look and feel</para>
</listitem>
</itemizedlist>
</section>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml 2009-09-11 14:36:34 UTC (rev 15540)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelBar.xml 2009-09-11 14:37:11 UTC (rev 15541)
@@ -1,58 +1,52 @@
<section role="NotInToc" id="rich_panelBar">
- <title>
- <
- rich:panelBar
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>
- <property>panelBar</property> is used for grouping any content which is loaded on the client
- side and appears as groups divided on child panels after the header is clicked.</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:panelBar></property>
- </emphasis> with content inside</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelBar_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>Skinnable slide panel and child items</para>
- </listitem>
- <listitem>
- <para>Groups any content inside each panel</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Details of Usage</title>
- <para>As it was mentioned <link linkend="panelBar">above</link>,
- <property>panelBar</property> is used for grouping any content on the client, thus its
- customization deals only with specification of sizes and styles for rendering.</para>
- <para>
- <emphasis>
- <property>"width"</property>
- </emphasis> and <emphasis>
- <property>"height"</property>
- </emphasis> (both are 100% on default) attributes stand apart.</para>
- <para>Style attributes are described further.</para>
- <para>
- <property>panelBar</property> could contain any number of child
- <property>panelBarItem</property> components inside, which content is uploaded onto the
- client and headers are controls to open the corresponding child element.</para>
- <!--para>
+ <title> < rich:panelBar > <emphasis role="since">
+ <superscript> available since <emphasis role="version">3.0.0</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>
+ The component is used for grouping any content which is loaded on the client side and appears as groups divided on child panels after the header is clicked.</para>
+ <figure>
+ <title>
+ <emphasis role="bold">
+ <property><rich:panelBar></property>
+ </emphasis> with content inside</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelBar_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>May have any content inside</para>
+ </listitem>
+ <listitem>
+ <para>Has customizable look and feel</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>
+ The component groups page contents into notional blocks.
+ Borders separate this content visually from the rest of page.
+ The <emphasis role="bold"><property><rich:panelBar></property></emphasis> could contain any number of items (<emphasis role="bold"><property><rich:panelBarItem></property></emphasis> inside),
+ with their own headers that control opening and closing features.
+ </para>
+ <para>
+ In contrast to <emphasis role="bold"><property><rich:panel></property></emphasis> the component has <emphasis><property>"width"</property></emphasis>
+ and <emphasis><property>"height"</property></emphasis> attributes that control it size (by default thaey both has 100%).
+ </para>
+
+
+
+ <!--para>
The <emphasis>
<property>"label"</property>
</emphasis> attribute is a generic attribute.
@@ -66,99 +60,179 @@
for <code>"ShortConverter.SHORT"</code>.
</para-->
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/panelBar.html">Table of
- <rich:panelBar>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.PanelBar</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlPanelBar</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.PanelBar</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.PanelBarRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.PanelBarTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table id="tab_pB">
- <title>Class name that define a component appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Class description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-panelbar</entry>
- <entry>Defines styles for a wrapper <div> element of a
- component</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Style component classes</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>A class attribute</entry>
- <entry>A component element defined by an attribute</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>styleClass</entry>
- <entry>Applicable to a whole component (together with headers)</entry>
- </row>
- <row>
- <entry>headerClass</entry>
- <entry>Applicable to a header element</entry>
- </row>
- <row>
- <entry>contentClass</entry>
- <entry>Applicable to a content </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
- <link linkend="customstyles">Definition of Custom Style Classes</link>
- section.
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelBar.jsf?c=panelBar">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
- <property><rich:panelBar></property>
- </emphasis> usage and sources for the given example. </para>
- </section>
-</section>
\ No newline at end of file
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/panelBar.html">Table of <rich:panelBar> attributes</ulink>. </para>
+ <table>
+ <title>Component Identification Parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.PanelBar</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlPanelBar</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.PanelBar</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.PanelBarRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.PanelBarTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table id="tab_pB">
+ <title>Style classes (selectors) and mapped skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ <entry>Skin parameter</entry>
+ <entry>CSS property</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-panelbar</entry>
+ <entry>Defines styles for wrapper <div> element of a component</entry>
+ <entry>headerBackgroundColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry morerows="2">.rich-panelbar-content</entry>
+ <entry morerows="2">Defines styles for panelBar content</entry>
+ <entry>preferableDataFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>preferableDataSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry morerows="4">.rich-panelbar-header</entry>
+ <entry morerows="4">Defines styles for panelBar header</entry>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>headerFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>headerWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+
+ <row>
+ <entry morerows="4">.rich-panelbar-header-act</entry>
+ <entry morerows="4">Defines styles for panelBar active header</entry>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>headerFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>headerWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>.rich-panelbar-interior</entry>
+ <entry>Defines styles for panelBar content</entry>
+ <entry>generalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Internal style classes (selectors)</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name (selector)</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-panel-b</entry>
+ <entry>Defines styles for panelBar content</entry>
+ </row>
+ <row>
+ <entry>.rich-panelbar-content</entry>
+ <entry>Defines styles for panelBar content</entry>
+ </row>
+ <row>
+ <entry>.rich-panel-header</entry>
+ <entry>Defines styles for active header element</entry>
+ </row>
+ <row>
+ <entry>.rich-panel-header-act</entry>
+ <entry>Defines styles for header element</entry>
+ </row>
+ <row>
+ <entry>.rich-panelbar-interior</entry>
+ <entry>Defines styles for panelBar content</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>
+ You can find all necessary information about style classes redefinition in <link linkend="customstyles">Definition of Custom Style Classes</link> section.
+ </para>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ Visit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelBar.jsf?c=panelBar">PanelBar page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
+ </para>
+ <para>
+ If you have any questions or ideas regarding the <emphasis role="bold"><property><rich:panel></property></emphasis> tell about them at the <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064191">RichFaces Users Forum</ulink>.
+ </para>
+ </section>
+</section>
14 years, 7 months
JBoss Rich Faces SVN: r15540 - branches/community/3.3.X/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-11 10:36:34 -0400 (Fri, 11 Sep 2009)
New Revision: 15540
Modified:
branches/community/3.3.X/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/css/panelbar.xcss
Log:
RF-7804: Rich Output component group description review --> rich:panelBar
Modified: branches/community/3.3.X/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/css/panelbar.xcss
===================================================================
--- branches/community/3.3.X/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/css/panelbar.xcss 2009-09-11 12:25:14 UTC (rev 15539)
+++ branches/community/3.3.X/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/css/panelbar.xcss 2009-09-11 14:36:34 UTC (rev 15540)
@@ -48,13 +48,13 @@
<f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
</u:style>
<u:style name="background-position" value="top left"/>
- <u:style name="background-repeat" value="repeat-x"/>
- <u:style name="vertical-align" value="middle"/>
- <u:style name="color" skin="headerTextColor" />
- <u:style name="background-color" skin="headerBackgroundColor" />
- <u:style name="font-size" skin="headerSizeFont" />
- <u:style name="font-weight" skin="headerWeightFont" />
- <u:style name="font-family" skin="headerFamilyFont" />
+ <u:style name="background-repeat" value="repeat-x"/>
+ <u:style name="vertical-align" value="middle"/>
+ <u:style name="color" skin="headerTextColor" />
+ <u:style name="background-color" skin="headerBackgroundColor" />
+ <u:style name="font-size" skin="headerSizeFont" />
+ <u:style name="font-weight" skin="headerWeightFont" />
+ <u:style name="font-family" skin="headerFamilyFont" />
</u:selector>
<u:selector name=".rich-panelbar-header-act">
@@ -62,19 +62,19 @@
<f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
</u:style>
<u:style name="background-position" value="top left"/>
- <u:style name="background-repeat" value="repeat-x"/>
- <u:style name="vertical-align" value="middle"/>
- <u:style name="color" skin="headerTextColor" />
- <u:style name="background-color" skin="headerBackgroundColor" />
- <u:style name="font-size" skin="headerSizeFont" />
- <u:style name="font-weight" skin="headerWeightFont" />
- <u:style name="font-family" skin="headerFamilyFont" />
+ <u:style name="background-repeat" value="repeat-x"/>
+ <u:style name="vertical-align" value="middle"/>
+ <u:style name="color" skin="headerTextColor" />
+ <u:style name="background-color" skin="headerBackgroundColor" />
+ <u:style name="font-size" skin="headerSizeFont" />
+ <u:style name="font-weight" skin="headerWeightFont" />
+ <u:style name="font-family" skin="headerFamilyFont" />
</u:selector>
<u:selector name=".rich-panelbar-content">
- <u:style name="color" skin="generalTextColor" />
- <u:style name="font-size" skin="preferableDataSizeFont" />
+ <u:style name="color" skin="generalTextColor" />
+ <u:style name="font-size" skin="preferableDataSizeFont" />
<u:style name="font-family" skin="preferableDataFamilyFont" />
</u:selector>
14 years, 7 months
JBoss Rich Faces SVN: r15539 - in branches/community/3.3.X/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-11 08:25:14 -0400 (Fri, 11 Sep 2009)
New Revision: 15539
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/layoutTest.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ColorPickerTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
Log:
RFPL-143
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/layoutTest.xhtml
===================================================================
(Binary files differ)
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ColorPickerTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ColorPickerTest.java 2009-09-11 10:15:05 UTC (rev 15538)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ColorPickerTest.java 2009-09-11 12:25:14 UTC (rev 15539)
@@ -40,7 +40,7 @@
// private String message;
private void init(Template template) {
- renderPage(null, template, "#{comboBean.init}");
+ renderPage(null, template, "#{colorPickerBean.init}");
String mainForm = getParentId() + "autoTestForm";
colorPicker = mainForm + ":componentId";
@@ -159,7 +159,7 @@
Assert.assertTrue(isVisible(hexInputId), "Hex Input must be presented");
Assert.assertEquals("#" + selenium.getValue(hexInputId), expectedValue);
- final String xPathButtonOk = "xpath=id('" + colorPickerList + "')//button[@name='submit']";
+ final String xPathButtonOk = "xpath=id('" + colorPickerList + "')//button[@class='rich-color-picker-submit']";
Assert.assertTrue(isVisible(xPathButtonOk), "Button Cancel must be presented");
selenium.click(xPathButtonOk);
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-09-11 10:15:05 UTC (rev 15538)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-09-11 12:25:14 UTC (rev 15539)
@@ -65,12 +65,12 @@
writeStatus("Check move controls customized labels");
- AssertTextEquals(copyElemId, "MOVE");
+ AssertTextEquals(pickListId + "dis" + COPY_BTN, "MOVE");
AssertTextEquals(copyAllElemId, "MOVE ALL");
- AssertTextEquals(removeElemId, "TAKE AWAY");
+ AssertTextEquals(pickListId + "dis" + REMOVE_BTN, "TAKE AWAY");
AssertTextEquals(removeAllElemId, "TAKE ALL AWAY");
- String destListId = parentId + PICK_LIST + "tlTbody";
+ String destListId = parentId + PICK_LIST + "tltbody";
String srcListId = parentId + PICK_LIST + "tbody";
writeStatus("Check initial disposition");
@@ -341,9 +341,9 @@
String pickListId = getParentId() + "_form:" + PICK_LIST;
- String copyElemId = pickListId + COPY_BTN;
+ String copyElemId = pickListId + "dis" + COPY_BTN;
String copyAllElemId = pickListId + COPY_ALL_BTN;
- String removeElemId = pickListId + REMOVE_BTN;
+ String removeElemId = pickListId + "dis" + REMOVE_BTN;
String removeAllElemId = pickListId + REMOVE_ALL_BTN;
writeStatus("This test page forces German locale. Check all labels are in German");
@@ -383,7 +383,7 @@
writeStatus("Check styleClass/style attributes");
String pickListId = getAutoTester(this).getClientId(AutoTester.COMPONENT_ID);
- assertStyleAttributeContains(pickListId, "font-size: 13px", "Style attribute was not output to client");
+ assertStyleAttributeContains(pickListId, "font-weight: bold;", "Style attribute was not output to client");
assertClassAttributeContains(pickListId, "noclass", "Class attribute was not output to client");
writeStatus("Check listClass attributes");
14 years, 7 months
JBoss Rich Faces SVN: r15538 - branches/community/3.3.X/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-11 06:15:05 -0400 (Fri, 11 Sep 2009)
New Revision: 15538
Modified:
branches/community/3.3.X/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-7850
Modified: branches/community/3.3.X/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/community/3.3.X/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-09-10 17:42:13 UTC (rev 15537)
+++ branches/community/3.3.X/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-09-11 10:15:05 UTC (rev 15538)
@@ -191,9 +191,9 @@
*
* @return hours and minutes from "defaultTime" attribute
*/
- public String getPreparedDefaultTime(UICalendar component) {
+ public Map<String, Object> getPreparedDefaultTime(UICalendar component) {
Date date = component.getFormattedDefaultTime();
- StringBuilder result = new StringBuilder();
+ Map<String, Object> result = new HashMap<String, Object>();
if (date != null) {
Calendar calendar = component.getCalendar();
calendar.setTime(date);
@@ -201,14 +201,11 @@
int minutes = calendar.get(Calendar.MINUTE);
if (hours != 12 || minutes != 0) {
- result.append("{").append(HOURS_VALUE).append(":");
- result.append(hours);
- result.append(",");
- result.append(MINUTES_VALUE).append(":");
- result.append(minutes).append("}");
+ result.put(HOURS_VALUE, hours);
+ result.put(MINUTES_VALUE, minutes);
}
}
- return result.toString();
+ return result;
}
/**
14 years, 7 months
JBoss Rich Faces SVN: r15537 - branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-10 13:42:13 -0400 (Thu, 10 Sep 2009)
New Revision: 15537
Added:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp
Log:
Tree: selection and expanding impossible if ajaxSingle=true and some input validation failed.
https://jira.jboss.org/jira/browse/RF-5609
Added: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp (rev 0)
+++ branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp 2009-09-10 17:42:13 UTC (rev 15537)
@@ -0,0 +1,68 @@
+<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/tree" prefix="tree"%>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/drag-drop" prefix="dnd"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<f:view>
+ <h:form id="f" >
+ <a4j:outputPanel id="op" ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <!-- ajaxSingle="true" -->
+
+ <tree:tree
+ id="tree"
+ switchType="client"
+ ajaxSingle="true"
+
+ value="#{treeDndBean.treeNodeLeft}"
+ rowKeyVar="key"
+ var="item"
+
+ binding="#{treeDndBean.leftTree}"
+ dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}"
+
+ dragIndicator="treeIndicator"
+ acceptedTypes="treeNode"
+ dragType="treeNode" >
+ </tree:tree>
+ </h:form>
+
+ <h:form id="f2">
+ <a4j:status startText="...start..." stopText="stopped" />
+
+ <tree:tree id="tree" value="#{bean.data}" var="item">
+ <tree:treeNode
+ id="node"
+ ajaxSubmitSelection="true"
+ ajaxSingle="false"
+ nodeSelectListener="#{bean.onSelect}"
+
+ process="text"
+ reRender="text2"
+ >
+ <h:outputText id="item" value="#{item}" />
+ </tree:treeNode>
+ </tree:tree>
+
+ <h:inputText id="text" value="#{bean.value}" />
+ <h:inputText id="text2" value="#{bean.value}"/>
+ <a4j:region selfRendered="true">
+ <h:inputText id="text3" value="#{bean.value}"/>
+ </a4j:region>
+ </h:form>
+
+</f:view>
+</body>
+</html>
Modified: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp 2009-09-10 17:41:31 UTC (rev 15536)
+++ branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp 2009-09-10 17:42:13 UTC (rev 15537)
@@ -5,21 +5,22 @@
prefix="rich"%>
<html>
<head>
- <title></title>
+<title></title>
</head>
<body>
<f:view>
<h:form id="f">
<a4j:status startText="...start..." stopText="stopped" />
-
+
<rich:tree id="tree" value="#{bean.data}" var="item">
- <rich:treeNode id="node" ajaxSubmitSelection="true" ajaxSingle="true"
+ <rich:treeNode id="node"
nodeSelectListener="#{bean.onSelect}">
<h:outputText id="item" value="#{item}" />
</rich:treeNode>
</rich:tree>
- <h:inputText id="text" value="" required="true" />
+ <h:inputText id="text" value="123" required="true" />
</h:form>
</f:view>
</body>
-</html>
\ No newline at end of file
+</html>
+
Modified: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp 2009-09-10 17:41:31 UTC (rev 15536)
+++ branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp 2009-09-10 17:42:13 UTC (rev 15537)
@@ -12,19 +12,40 @@
<a4j:status startText="...start..." stopText="stopped" />
<h:form id="id" >
- <h:inputText id="input" value="#{rf4351.value}" />
+ <h:inputText id="input" value="#{rf4351.value}" required="true" />
<a4j:commandLink value="process" process="input" ajaxSingle="true" /><br /><br />
<h:outputText id="output" value="#{rf4351.date}" />
<a4j:commandLink value="reRender" reRender="output" ajaxSingle="true" /><br /><br />
- <rich:tree id="tree" value="#{rf4351.data}" var="node" switchType="ajax"
+ <rich:tree
+ id="tree"
+ value="#{rf4351.data}" var="node"
+ switchType="ajax"
rowKeyConverter="org.richfaces.TreeRowKeyConverter">
- <rich:treeNode ajaxSingle="true" process="input" >
+ <rich:treeNode ajaxSingle="true" process="input">
<h:outputText value="#{node}" />
<a4j:commandLink ajaxSingle="true" value="link" process="input" reRender="output" action="#{rf4351.dateAction}"/>
</rich:treeNode>
</rich:tree>
+
+ <p>__________________________________________________</p>
+
+ <rich:tree
+ value="#{rf4351.data}" var="item"
+ switchType="ajax"
+ ajaxSingle="true" process="text"
+ rowKeyConverter="org.richfaces.TreeRowKeyConverter"
+ >
+
+ <rich:treeNode >
+ <h:outputText value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+
+ <h:panelGrid columns="1" >
+ <h:inputText value="#{rf4351.value}" required="true" id="text"/>
+ </h:panelGrid>
</h:form>
</f:view>
</body>
14 years, 7 months
JBoss Rich Faces SVN: r15536 - in branches/community/3.3.X/ui/tree/src/main: java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-10 13:41:31 -0400 (Thu, 10 Sep 2009)
New Revision: 15536
Modified:
branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
branches/community/3.3.X/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
branches/community/3.3.X/ui/tree/src/main/templates/htmlTreeNode.jspx
Log:
Tree: selection and expanding impossible if ajaxSingle=true and some input validation failed.
https://jira.jboss.org/jira/browse/RF-5609
Modified: branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
===================================================================
--- branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2009-09-10 16:56:41 UTC (rev 15535)
+++ branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2009-09-10 17:41:31 UTC (rev 15536)
@@ -80,7 +80,6 @@
private boolean timeoutSet = false;
private Object process = null;
- private boolean processSet = false;
public static final String COMPONENT_TYPE = "org.richfaces.TreeNode";
@@ -286,7 +285,7 @@
}
ValueBinding vb = getValueBinding("acceptedTypes");
if (null != vb){
- return (Object)vb.getValue(getFacesContext());
+ return vb.getValue(getFacesContext());
} else {
UITree tree = getUITree();
if (tree != null) {
@@ -373,7 +372,6 @@
state[16] = this.similarityGroupingId;
state[17] = new Boolean(this.bypassUpdates);
state[18] = this.process;
- state[19] = Boolean.valueOf(this.processSet);
return state;
}
@@ -399,7 +397,6 @@
this.similarityGroupingId = (String) _state[16];
this.bypassUpdates = ((Boolean)_state[17]).booleanValue();
this.process = _state[18];
- this.processSet = ((Boolean)_state[19]).booleanValue();
}
public void setDragIndicator(String dragIndicator) {
@@ -586,7 +583,6 @@
public void setProcess(Object process) {
this.process = process;
- this.processSet = true;
}
/**
Modified: branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2009-09-10 16:56:41 UTC (rev 15535)
+++ branches/community/3.3.X/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2009-09-10 17:41:31 UTC (rev 15536)
@@ -558,18 +558,25 @@
protected String getAjaxScript(FacesContext context, UITree tree) {
String id = tree.getBaseClientId(context);
- JSFunction function = AjaxRendererUtils
- .buildAjaxFunction(tree, context);
- Map eventOptions = AjaxRendererUtils.buildEventOptions(context, tree, true);
- Map parameters = (Map) eventOptions.get("parameters");
- parameters.remove(id);
- parameters.put(id + UITree.SELECTED_NODE_PARAMETER_NAME,
- new JSReference("event.selectedNode"));
+
+ StringBuilder builder = new StringBuilder();
+ Map<String, Object> eventOptions = AjaxRendererUtils.buildEventOptions(context, tree, true);
+ Map<String, Object> parameters = (Map<String, Object>) eventOptions.get("parameters");
+ parameters.remove(id);
+ parameters.put(id + UITree.SELECTED_NODE_PARAMETER_NAME, new JSReference("event.selectedNode"));
+ eventOptions.put("parameters", new JSReference("params"));
+
+ builder.append("var params = ").append(ScriptUtils.toScript(parameters)).append(";\n");
+ builder.append("if (!params.").append(AjaxRendererUtils.AJAX_SINGLE_PARAMETER_NAME)
+ .append(" && event.ajaxSingle) {\n");
+ builder.append("params.").append(AjaxRendererUtils.AJAX_SINGLE_PARAMETER_NAME).append(" = event.ajaxSingle;\n");
+ builder.append("}\n");
+
+ JSFunction function = AjaxRendererUtils.buildAjaxFunction(tree, context);
function.addParameter(eventOptions);
- StringBuffer buffer = new StringBuffer();
- function.appendScript(buffer);
- buffer.append("; return false;");
- return buffer.toString();
+ builder.append(function);
+ builder.append("; return false;");
+ return builder.toString();
}
public String writeScriptElement(FacesContext context, UITree tree, String code) throws IOException {
Modified: branches/community/3.3.X/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
===================================================================
--- branches/community/3.3.X/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2009-09-10 16:56:41 UTC (rev 15535)
+++ branches/community/3.3.X/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2009-09-10 17:41:31 UTC (rev 15536)
@@ -136,6 +136,10 @@
var attr = Richfaces.getNSAttribute("ajaxselectedlistener", $(event.selectedNode + Tree.ID_DEVIDER + Tree.ID_ICON));
if (attr) {
+ var ajaxSingle = Richfaces.getNSAttribute("ajaxsingle", $(treeItem.id + ":text"));;
+ if (ajaxSingle && ajaxSingle == "true") {
+ event.ajaxSingle = this.id
+ }
this.onAjaxSelect(event);
}
} else if (event[Richfaces.TreeExpandEvent]){
Modified: branches/community/3.3.X/ui/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- branches/community/3.3.X/ui/tree/src/main/templates/htmlTreeNode.jspx 2009-09-10 16:56:41 UTC (rev 15535)
+++ branches/community/3.3.X/ui/tree/src/main/templates/htmlTreeNode.jspx 2009-09-10 17:41:31 UTC (rev 15536)
@@ -229,7 +229,7 @@
</td>
<td class="rich-tree-node-text #{component.attributes['nodeClass']}"
rich:selectedclass="#{selectedClass}" rich:highlightedclass="#{highlightedClass}"
- id="#{clientId}:text">
+ id="#{clientId}:text" rich:ajaxsingle="#{component.attributes['ajaxSingle']}">
<vcp:body />
</td>
</tr>
14 years, 7 months
JBoss Rich Faces SVN: r15535 - in branches/community/3.3.X/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-10 12:56:41 -0400 (Thu, 10 Sep 2009)
New Revision: 15535
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
Log:
RFPL-143
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-10 16:30:58 UTC (rev 15534)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-10 16:56:41 UTC (rev 15535)
@@ -11,7 +11,7 @@
<h:outputText id="_auto_status" value="#{autoTestBean.status}"></h:outputText>
</a4j:outputPanel>
<h:outputText id="_auto_time" value="#{autoTestBean.text}"></h:outputText>
- <h:outputText id="_auto_value" style="display: none;" value="#{autoTestBean.value}"></h:outputText>
+ <h:outputText id="_auto_value" value="#{autoTestBean.value}"></h:outputText>
<h:commandButton id="_auto_simple_submit" value="Simple submit" immediate="#{autoTestBean.immediate}" style="display: none;" />
<a4j:commandButton id="_auto_ajax_submit" value="Ajax submit" reRender="componentId" immediate="#{autoTestBean.immediate}" style="display: none;" />
</html>
\ No newline at end of file
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-09-10 16:30:58 UTC (rev 15534)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-09-10 16:56:41 UTC (rev 15535)
@@ -809,7 +809,8 @@
}
- @Test
+ //https://jira.jboss.org/jira/browse/RF-6475
+ @Test(groups=FAILURES_GROUP)
public void testDataModelAttribute(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-09-10 16:30:58 UTC (rev 15534)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-09-10 16:56:41 UTC (rev 15535)
@@ -59,21 +59,19 @@
String dataTableId;
static final String [] activePageClasses = new String[] {
- "dr-dscr-act","rich-datascr-act"
+ "rich-datascr-act"
};
static final String [] inactivePageClasses = new String[] {
- "dr-dscr-inact","rich-datascr-inact"
+ "rich-datascr-inact"
};
static final String [] activeForwardClasses = new String[] {
- "dr-dscr-button","rich-datascr-button"
+ "rich-datascr-button"
};
static final String [] inactiveForwardClasses = new String [] {
- "dr-dscr-button-dsbld",
"rich-datascr-button-dsbld",
- "dr-dscr-button",
"rich-datascr-button"
};
@@ -547,13 +545,11 @@
private void testRendering() {
assertClassNames(dataScrollerId,new String []
- {"dr-dscr",
- "rich-datascr"},
+ {"rich-datascr"},
"DataScroller rendering failed: ", true);
assertClassNames(dataScrollerTableId,new String []
- {"dr-dscr-t",
- "rich-dtascroller-table"},
+ {"rich-dtascroller-table"},
"DataScroller rendering failed: ", true);
testPageCount(16, dataScrollerTableId);
14 years, 7 months
JBoss Rich Faces SVN: r15534 - branches/community/3.3.X/ui/panel/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-10 12:30:58 -0400 (Thu, 10 Sep 2009)
New Revision: 15534
Modified:
branches/community/3.3.X/ui/panel/src/main/resources/org/richfaces/renderkit/html/css/panel.xcss
Log:
RF-7804: Rich Output component group description review --> rich:panel
Modified: branches/community/3.3.X/ui/panel/src/main/resources/org/richfaces/renderkit/html/css/panel.xcss
===================================================================
--- branches/community/3.3.X/ui/panel/src/main/resources/org/richfaces/renderkit/html/css/panel.xcss 2009-09-10 16:30:18 UTC (rev 15533)
+++ branches/community/3.3.X/ui/panel/src/main/resources/org/richfaces/renderkit/html/css/panel.xcss 2009-09-10 16:30:58 UTC (rev 15534)
@@ -2,45 +2,49 @@
<f:template xmlns:f='http:/jsf.exadel.com/template'
xmlns:u='http:/jsf.exadel.com/template/util'
xmlns="http://www.w3.org/1999/xhtml" >
- <f:verbatim>
-<![CDATA[
-.rich-panel{
- border-width: 1px;
- border-style: solid;
- padding : 1px;
-}
+
+ <u:selector name=".rich-panel">
+ <u:style name="background-color" skin="generalBackgroundColor" />
+ <u:style name="border-color" skin="panelBorderColor" />
+ </u:selector>
+
+ <u:selector name=".rich-panel-header">
+ <u:style name="background-color" skin="headerBackgroundColor" />
+ <u:style name="border-color" skin="headerBackgroundColor" />
+ <u:style name="font-size" skin="headerSizeFont" />
+ <u:style name="color" skin="headerTextColor" />
+ <u:style name="font-weight" skin="headerWeightFont" />
+ <u:style name="font-family" skin="headerFamilyFont" />
+ <u:style name="background-image" >
+ <f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
+ </u:style>
+ </u:selector>
+
+ <u:selector name=".rich-panel-body">
+ <u:style name="font-size" skin="generalSizeFont" />
+ <u:style name="color" skin="generalTextColor" />
+ <u:style name="font-family" skin="generalFamilyFont" />
+ </u:selector>
+
+ <f:verbatim>
+ <![CDATA[
+ .rich-panel{
+ border-width: 1px;
+ border-style: solid;
+ padding : 1px;
+ }
-.rich-panel-header{
- padding : 2px;
- border-width: 1px;
- border-style: solid;
- background-position : top left;
- background-repeat : repeat-x;
-}
+ .rich-panel-header{
+ padding : 2px;
+ border-width: 1px;
+ border-style: solid;
+ background-position : top left;
+ background-repeat : repeat-x;
+ }
-.rich-panel-body{
- padding : 10px;
-}
+ .rich-panel-body{
+ padding : 10px;
+ }
]]>
-</f:verbatim>
-<u:selector name=".rich-panel">
- <u:style name="background-color" skin="generalBackgroundColor" />
- <u:style name="border-color" skin="panelBorderColor" />
-</u:selector>
-<u:selector name=".rich-panel-header">
- <u:style name="background-color" skin="headerBackgroundColor" />
- <u:style name="border-color" skin="headerBackgroundColor" />
- <u:style name="font-size" skin="headerSizeFont" />
- <u:style name="color" skin="headerTextColor" />
- <u:style name="font-weight" skin="headerWeightFont" />
- <u:style name="font-family" skin="headerFamilyFont" />
- <u:style name="background-image" >
- <f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
- </u:style>
-</u:selector>
-<u:selector name=".rich-panel-body">
- <u:style name="font-size" skin="generalSizeFont" />
- <u:style name="color" skin="generalTextColor" />
- <u:style name="font-family" skin="generalFamilyFont" />
-</u:selector>
+ </f:verbatim>
</f:template>
14 years, 7 months
JBoss Rich Faces SVN: r15533 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-10 12:30:18 -0400 (Thu, 10 Sep 2009)
New Revision: 15533
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_modalPanel.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml
Log:
RF-7804: Rich Output component group description review --> rich:panel
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_modalPanel.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_modalPanel.xml 2009-09-10 15:46:40 UTC (rev 15532)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_modalPanel.xml 2009-09-10 16:30:18 UTC (rev 15533)
@@ -302,7 +302,7 @@
<tgroup cols="4">
<thead>
<row>
- <entry>Class name (selector)</entry>
+ <entry>Class name</entry>
<entry>Description</entry>
<entry>Skin Parameter</entry>
<entry>CSS property</entry>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml 2009-09-10 15:46:40 UTC (rev 15532)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panel.xml 2009-09-10 16:30:18 UTC (rev 15533)
@@ -1,270 +1,244 @@
<section role="NotInToc" id="rich_panel">
- <title>
- <
- rich:panel
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.0.0</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>A skinnable <property>panel</property> that is rendered as a bordered rectangle with or
- without a header.</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:panel></property>
- </emphasis> component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panel_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>Highly customizable look and feel </para>
- </listitem>
- <listitem>
- <para>Support for any content inside</para>
- </listitem>
- <listitem>
- <para>Header adding feature</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Details of Usage</title>
- <para>The <emphasis>
- <property>"header"</property>
- </emphasis> attribute defines text to be represented. If you can use the
- <emphasis>
- <property>"header"</property>
- </emphasis> facet, you can even not use the <emphasis>
- <property>"header"</property>
- </emphasis> attribute.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:panel>
- <f:facet name="header">
- <h:graphicImage value="/images/img1.png"/>
- </f:facet>
- ...
- <!--Any Content inside-->
- ...
-</rich:panel>
-...
-]]></programlisting>
-
- <para>
- <emphasis role="bold">
- <property><rich:panel></property>
- </emphasis> components are used to group page content pieces on similarly formatted
- rectangular <property>panels</property>. </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:panel>
- ...
-</rich:panel>
-...
-]]></programlisting>
- <para>It's generating on a page in the following way:</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:panel></property>
- </emphasis> without header</title>
+ <title>< rich:panel > <emphasis role="since"><superscript> available since <emphasis role="version">3.0.0</emphasis></superscript></emphasis></title>
+ <section>
+ <title>Description</title>
+ <para>The component implements a bordered rectangular panel with or without header.</para>
+ <figure>
+ <title>
+ The <rich:panel></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panel_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>May have any content inside</para>
+ </listitem>
+ <listitem>
+ <para>May have header</para>
+ </listitem>
+ <listitem>
+ <para>Has customizable look and feel </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title>Details of Usage</title>
+ <para>
+ The component groups page contents into notional blocks.
+ Borders separate this content visually from the rest of page.
+ To define the <emphasis role="bold"><property><rich:panel></property></emphasis> on a page the following code will be enough:
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:panel />]]></programlisting>
+
+ <para>The result:</para>
+ <figure>
+ <title>Empty <rich:panel></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panel2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ The <emphasis role="bold"><property><rich:panel></property></emphasis> supports <code>header</code> facet that defines header and text label on it.
+ Besides that there is <emphasis><property>"header"</property></emphasis> attribute that does the same job.
+ The following two entries
+ </para>
+ <programlisting role="XML"><![CDATA[<-- A -->
+<rich:panel header="I'm panel header" />
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panel2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The example shows that similar rectangular areas are formed with a particular style.</para>
- <para>When creating a <property>panel</property> with a header element, one more <emphasis role="bold">
- <property><div></property>
- </emphasis> element is added with content defined for a header.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+<-- B -->
<rich:panel>
- <f:facet name="header">
- <h:outputText value="Olympus EVOLT E-500 "/>
- </f:facet>
- ...
-</rich:panel>
-...
-]]></programlisting>
- <para>It's displayed on a page in the following way:</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:panel></property> with header</emphasis>
- </title>
-
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panel3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>As it has been mentioned <link linkend="panel">above</link>, the component is mostly used for a page style definition,
- hence the main attributes are style ones.</para>
- <itemizedlist>
- <listitem>
+ <f:facet name="header">
+ <h:outputText value="I'm panel header"/>
+ </f:facet>
+</rich:panel>]]></programlisting>
+
+ <para>
+ have the same output:
+ </para>
+ <figure>
+ <title>The <rich:panel> with header</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panel3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Reference Data</title>
<para>
- <emphasis>
- <property> "styleClass" </property>
- </emphasis>
+ <ulink url="&tlddoc;rich/panel.html">Table of <rich:panel> attributes</ulink>.
</para>
- </listitem>
- <listitem>
+
+ <table>
+ <title>Component Identification Parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.panel</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlPanel</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.panel</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.PanelRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.PanelTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>header</entry>
+ <entry>Defines panel header and text label on it</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table id="tab_cn11">
+ <title>Style classes (selectors) and mapped skin parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ <entry>Skin parameter</entry>
+ <entry>CSS property</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows="1">.rich-panel</entry>
+ <entry morerows="1">Defines styles for a wrapper <div> element of a component</entry>
+ <entry>generalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="2">.rich-panel-body</entry>
+ <entry morerows="2">Defines styles for a body element</entry>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry morerows="5">.rich-panel-header</entry>
+ <entry morerows="5">Defines styles for a header element</entry>
+ <entry>headerFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>headerWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Internal style classes (selectors)</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name (selector)</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-panel</entry>
+ <entry>Defines styles for a wrapper <div> element of a component</entry>
+ </row>
+ <row>
+ <entry>.rich-panel-body</entry>
+ <entry>Defines styles for a body element</entry>
+ </row>
+ <row>
+ <entry>.rich-panel-header</entry>
+ <entry>Defines styles for a header element</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
<para>
- <emphasis>
- <property> "headerClass" </property>
- </emphasis>
+ You can find all necessary information about style classes redefinition in <link linkend="customstyles">Definition of Custom Style Classes</link> section.
</para>
- </listitem>
- <listitem>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
<para>
- <emphasis>
- <property> "bodyClass" </property>
- </emphasis>
+ Visit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panel.jsf?c=panel">Panel page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
</para>
- </listitem>
- </itemizedlist>
- <para>Moreover, to add e.g. some JavaScript effects, events defined on it are used.</para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis>
- <property>"onmouseover"</property>
- </emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>"onclick"</property>
- </emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>"onmouseout"</property>
- </emphasis>
- </para>
- </listitem>
- <listitem>
- <para> etc. </para>
- </listitem>
- </itemizedlist>
-
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/panel.html">Table of
- <rich:panel>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.panel</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlPanel</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.panel</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.PanelRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.PanelTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Facets</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Facet name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>header</entry>
- <entry>Defines the header content</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table id="tab_cn11">
- <title>Classes names that define a component appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Class description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-panel</entry>
- <entry>Defines styles for a wrapper <div> element of a component</entry>
- </row>
- <row>
- <entry>rich-panel-header</entry>
- <entry>Defines styles for a header element</entry>
- </row>
- <row>
- <entry>rich-panel-body</entry>
- <entry>Defines styles for a body element</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
- <link linkend="customstyles">Definition of Custom Style Classes</link>
- section.
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panel.jsf?c=panel">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
- <property><rich:panel></property>
- </emphasis> usage and sources for the given example. </para>
- </section>
-</section>
\ No newline at end of file
+ <para>
+ If you have any questions or ideas regarding the <emphasis role="bold"><property><rich:panel></property></emphasis> tell about them at the <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064191">RichFaces Users Forum</ulink>.
+ </para>
+ </section>
+</section>
14 years, 7 months