Author: vkorluzhenko
Date: 2007-06-26 10:06:46 -0400 (Tue, 26 Jun 2007)
New Revision: 1323
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
added new questions, fixed spelling errors
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-06-26 14:03:43 UTC
(rev 1322)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-06-26 14:06:46 UTC
(rev 1323)
@@ -161,9 +161,9 @@
<section>
<?dbhtml filename="HowtousesuggestionBox"?>
- <title>How to use <rich:suggestionBox> inside the
- <rich:modalPanel> content? When I use it the popup
suggestion
- list doesn't show since it is behind the
modalPanel.</title>
+ <title>How to use suggestionBox inside the modalPanel content? When
I use it the
+ popup suggestion list doesn't show since it is behind
the
+ modalPanel.</title>
<para>First of all to solve this problem you should use the latest
versions of
Ajax4JSF 1.1.2-SNAPSHOT and Richfaces
3.0.2-SNAPSHOT.</para>
<para> Nightly builds are available <ulink
@@ -219,7 +219,7 @@
<?dbhtml filename="Isitpossibletocreatedynamicmenu"?>
<title>Is it possible to create dynamic menu using
<rich:dropDownMenu>
component?</title>
- <para><emphasis
role="bold"><rich:dropDown></emphasis> menu is a
+ <para><emphasis
role="bold"><rich:dropDownMenu></emphasis> is a
standard JSF component. So, creation the menu dynamically from
the Java
Script code is the same as for any other jsf
component.</para>
</section>
@@ -237,8 +237,7 @@
<section>
<?dbhtml filename="HowtocustomizesimpleTogglePanel"?>
- <title>How to customize <rich:simpleTogglePanel>? I
need to change
- icon for toggler.</title>
+ <title>How to customize simpleTogglePanel? I need to change icon
for toggler.</title>
<para>To customize icon for toggler use
"openMarker" and
"closeMarker" facets.</para>
</section>
@@ -262,7 +261,8 @@
...
]]></programlisting>
<para>Also online demo of using <emphasis role="bold"
- ><rich:dropDownMenu></emphasis> is
available <ulink
+ ><rich:dropDownMenu></emphasis>
component is available
+ <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMen...
here</ulink>.</para>
</section>
@@ -307,4 +307,74 @@
placed anywhere in the layout.</para>
</section>
+ <section>
+ <?dbhtml filename="HowtogetaacommandButton"?>
+ <title>How to get a commandButton working within the
modalPanel?</title>
+ <para>Simple code is placed below:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:modalPanel>
+ <f:facet name="header">
+ <h:outputText value="Test" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:commandLink value="Close"
style="cursor:pointer"
onclick="Richfaces.hideModalPanel('mp')" />
+ </f:facet>
+ <h:form>
+ <t:commandButton value="Test"
action="#{TESTCONTROLLER.test}" />
+ </h:form>
+ </rich:modalPanel>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <?dbhtml filename="Howtoremembercurrentselectedtab"?>
+ <title>How to remember current selected tab?</title>
+ <para>To implement this feature use the "action"
attribute of
+ <emphasis
role="bold"><rich:tab></emphasis> and
+ "selectedTab" of the <emphasis
role="bold"
+ ><rich:tabPanel></emphasis>.
Simple code is placed below:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:tab label="MyName" id="MyName"
action="#{MySessionBean.activateSecuritySettingsTab}" >
+ ...
+ <rich:tabPanel id="tblPnl"
selectedTab="#{MySessionBean.activeTabName}">
+ ...
+ </rich:tabPanel>
+ </rich:tab>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <?dbhtml filename="Howtoretrievethecurrentvalue"?>
+ <title>How to retrieve the current value from the
inputNumberSlider?</title>
+ <para>To catch the value of the inputNumberSlider from the
JavaScript you can use
+ the following approach:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:inputNumberSlider width="500" step="20"
+ onchange="someFunctionCall(this.input.value)"
+ minValue="0"
+ maxValue="500"
+ value="0"
+ showInput="false"
+ showToolTip="false"
+ showBoundaryValues="false"/>
+ ...
+ <script>
+ function someFunctionCall(value) {
+ alert(value);
+ }
+ </script>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <?dbhtml filename="Howtoretrievethecurrentvalue"?>
+ <title>How to apply skins to the standard input
components?</title>
+ <para>The answer could be found <ulink
+
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&...
+ >here</ulink>.</para>
+ </section>
+
</chapter>