JBoss Rich Faces SVN: r2537 - in trunk/test-applications/jsp/src/main: webapp/Calendar and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-28 10:04:11 -0400 (Tue, 28 Aug 2007)
New Revision: 2537
Modified:
trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
Log:
http://jira.jboss.com/jira/browse/RF-673?page=all
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2007-08-28 14:04:02 UTC (rev 2536)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2007-08-28 14:04:11 UTC (rev 2537)
@@ -74,9 +74,17 @@
}
public void setPattern(String pattern) {
+
this.pattern = pattern;
}
+ public void selectPattern(ValueChangeEvent event) {
+ String tPatern = (String) event.getNewValue();
+ if (tPatern != null) {
+ pattern = tPatern;
+ }
+ }
+
public CalendarBean() {
locale = Locale.US;
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-08-28 14:04:02 UTC (rev 2536)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-08-28 14:04:11 UTC (rev 2537)
@@ -29,7 +29,7 @@
</a4j:outputPanel>
<h:form>
<rich:calendar
- id="calendar"
+ id="calendar"
data="#{calendarDataModel}"
locale="#{calendarBean.locale}"
popup="#{calendarBean.popup}"
@@ -74,7 +74,8 @@
<h:outputText value="Custom day labels:" />
<h:selectBooleanCheckbox value="#{calendarBean.useCustomDayLabels}" onclick="submit()"/>
<h:outputText value="Select Date Pattern:"/>
- <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+
+ <h:selectOneMenu value="MMM d, yyyy" onchange="submit()" valueChangeListener="#{calendarBean.selectPattern}">
<f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy"/>
<f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy"/>
<f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y"/>
17 years, 5 months
JBoss Rich Faces SVN: r2536 - in trunk/test-applications/facelets/src/main: webapp/Calendar and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-28 10:04:02 -0400 (Tue, 28 Aug 2007)
New Revision: 2536
Modified:
trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-673?page=all
Modified: trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-08-28 13:40:53 UTC (rev 2535)
+++ trunk/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-08-28 14:04:02 UTC (rev 2536)
@@ -77,6 +77,13 @@
this.pattern = pattern;
}
+ public void selectPattern(ValueChangeEvent event) {
+ String tPatern = (String) event.getNewValue();
+ if (tPatern != null) {
+ pattern = tPatern;
+ }
+ }
+
public CalendarBean() {
locale = Locale.US;
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2007-08-28 13:40:53 UTC (rev 2535)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/Calendar.xhtml 2007-08-28 14:04:02 UTC (rev 2536)
@@ -25,7 +25,7 @@
<body>
<a4j:outputPanel ajaxRendered="true">
- <h:messages />
+ <h:messages showDetail="true" showSummary="true"/>
</a4j:outputPanel>
<h:form>
@@ -77,7 +77,7 @@
<h:selectBooleanCheckbox value="#{calendarBean.useCustomDayLabels}"
onclick="submit()" />
<h:outputText value="Select Date Pattern:" />
- <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <h:selectOneMenu value="MMM d, yyyy" onchange="submit()" valueChangeListener="#{calendarBean.selectPattern}">
<f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
<f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
<f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
17 years, 5 months
JBoss Rich Faces SVN: r2535 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-28 09:40:53 -0400 (Tue, 28 Aug 2007)
New Revision: 2535
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-622
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-28 13:23:14 UTC (rev 2534)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-28 13:40:53 UTC (rev 2535)
@@ -165,8 +165,7 @@
<?dbhtml filename="HowtousesuggestionBox.html"?>
<title>Why when I use suggestionBox inside the modalPanel content the popup
suggestion list doesn't show since it is behind the modalPanel.</title>
- <para>To solve this problem you should use the latest versions of Ajax4JSF
- 1.1.2-SNAPSHOT and Richfaces 3.0.2-SNAPSHOT.</para>
+ <para>To solve this problem you should use the latest versions of RichFaces.</para>
<para> Nightly builds are available <ulink
url="http://maven.exadel.com/org/richfaces/richfaces/3.0.2-SNAPSHOT/"
>here</ulink> for RichFaces and <ulink
@@ -467,7 +466,7 @@
<title>How to reRender only particular row(s) of dataTable?</title>
<para> If you use dataTable then you may use ajaxKeys attribute to bind the rowKeys
to be reRendered there. After you need to point reRender on the whole table
- and only specified rows will be reRedered.
+ and only specified rows will be reRendered.
<!--
Also the example of usage of <emphasis role="bold"
><a4j:repeat></emphasis> component are available <ulink
@@ -625,7 +624,7 @@
<section id="InvokeOnComponentUsingWithJSF1.2">
<?dbhtml filename="InvokeOnComponentUsingWithJSF1.2.html"?>
<title>Is it possible to use InvokeOnComponent with JSF 1.2?</title>
- <para> Ajax4jsf currently does not use <emphasis>invokeOnComponent</emphasis>
+ <para> RichFaces currently does not use <emphasis>invokeOnComponent</emphasis>
because of the 2 reasons: </para>
<itemizedlist>
<listitem> Compatibility with JSF 1.1 and MyFaces applications is kept, due
@@ -635,13 +634,13 @@
clientId, and works fine for communication between widget and backed
component, or updates content of already rendered component. But
there are some troubles to use this method for more complex
- use-cases implemented in Ajax4jsf, as there is a choice for
+ use-cases implemented in RichFaces, as there is a choice for
updatable components in application logic, where it's
necessary to navigate in a components tree by the native id, with
<property>findComponent()</property> methods. </listitem>
</itemizedlist>
<para> Thus, for example, only entire dataTable can be updated in response (but all
- Ajax action components inside table work properly). </para>
+ Ajax core action components inside table work properly). </para>
</section>
<!--<section id="RegionsInDataTables">
<?dbhtml filename="RegionsInDataTables.html"?>
@@ -658,20 +657,20 @@
<section id="FilterUsageDamagesAnApplicationLayout">
<?dbhtml filename="FilterUsageDamagesAnApplicationLayout.html"?>
<title>Why does filter usage damage an application layout?</title>
- <para>Ajax4jsf uses <property>filters</property> for correction of xhtml code
+ <para>RichFaces uses <property>filters</property> for correction of xhtml code
received on an Ajax response, because when a response is recieved from the
- server, Ajax4jsf makes direct changes in DOM tree and browser
+ server, RichFaces makes direct changes in DOM tree and browser
doesn't make any corrections in generated xhtml. There are two ways
for setting <property>filters</property> that could be used in an
- Ajax4jsf-based application.</para>
+ RichFaces-based application.</para>
<para> The first one:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[<context-param filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>]]></programlisting>
<para>This <property>filter</property> is based on Tidy Filter usage and recommended
@@ -686,8 +685,8 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[<filter>
- <display-name>org.ajax4jsf.FastFilter</display-name>
- <filter-name>ajax4jsf</filter-name>
+ <display-name>RichFaces FastFilter</display-name>
+ <filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.FastFilter</filter-class>
</filter>]]></programlisting>
<para>This <property>filter</property> is based on the Neko parser. In this case an
@@ -869,7 +868,7 @@
<title>Why does reRendering fail? Hide/Show components using rendered.</title>
<para> During "show/hide" functionality implementation the main
error happens because of the "reRender" attribute of some
- Ajax Action Component is set on a component that depends on rendered
+ Ajax core Action Component is set on a component that depends on rendered
properties, i.e. a component that is to be hidden/rendered is tried to be
updated. The problem is that if rendered="false" in this
moment, the component isn't in the DOM tree and can't be
@@ -885,7 +884,7 @@
</listitem>
<listitem>
- <para>Set reRender of an Ajax Action component on this wrapper
+ <para>Set reRender of an Ajax core Action component on this wrapper
component instead of the component itself.</para>
</listitem>
</orderedlist>
@@ -940,10 +939,10 @@
<?dbhtml filename="ResourceNotRegisteredException.html"?>
<title>What does ResourceNotRegistered Exception mean?</title>
- <para>Ajax4jsf registers its resources (scripts, images) after an application is
+ <para>RichFaces registers its resources (scripts, images) after an application is
accessed and then accesses it via a generated URL. During an application
development when a developer constantly updates it on the server, it could
- happen that Ajax4jsf re-registers its resources after every server restart
+ happen that RichFaces re-registers its resources after every server restart
and a browser tries to access them via cashed URL.</para>
<para>The problem is solved with browser cash update (e.g. CTRL+F5).</para>
17 years, 5 months
JBoss Rich Faces SVN: r2534 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-28 09:23:14 -0400 (Tue, 28 Aug 2007)
New Revision: 2534
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-744
some tags are corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 13:01:47 UTC (rev 2533)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 13:23:14 UTC (rev 2534)
@@ -96,9 +96,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu event="onmouseover">
- <!--Nested panelMenu components-->
- </rich:panelMenu>
+ <rich:panelMenu event="onmouseover">
+ <!--Nested panelMenu components-->
+ </rich:panelMenu>
...]]></programlisting>
<para>Switching mode could be chosen with the <emphasis>
@@ -150,11 +150,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu event="onclick" submitMode="none">
- < rich:panelMenuItem label="Link to external page">
- <h:outputLink ... >
- <rich:panelMenuItem>
- </rich:panelMenu>
+ <rich:panelMenu event="onclick" submitMode="none">
+ < rich:panelMenuItem label="Link to external page">
+ <h:outputLink ... >
+ <rich:panelMenuItem>
+ </rich:panelMenu>
...]]></programlisting>
<note><title>Note:</title> As the <emphasis role="bold">
@@ -191,11 +191,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu selectedChild="thisChild">
- <rich:panelMenuGroup label="Group1" name="thisChild">
- <!--Nested panelMenu components-->
- </rich:panelMenuGroup>
- </rich:panelMenu>
+ <rich:panelMenu selectedChild="thisChild">
+ <rich:panelMenuGroup label="Group1" name="thisChild">
+ <!--Nested panelMenu components-->
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
...]]></programlisting>
</section>
17 years, 5 months
JBoss Rich Faces SVN: r2533 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-28 09:01:47 -0400 (Tue, 28 Aug 2007)
New Revision: 2533
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-743
incorrect symbols (...) in cdata were corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -117,7 +117,7 @@
</itemizedlist>
<para> For instance, this:</para>
<programlisting role="XML"><![CDATA[...
- <dnd:dropSupport…>
+ <dnd:dropSupport...>
<dnd:dndParam name="testDrop">
<h:graphicImage value="/images/file-manager.png" />
</dnd:dndParam>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -62,7 +62,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
+ <rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
...]]></programlisting>
</section>
@@ -96,7 +96,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
+ <rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
...]]></programlisting>
<figure>
<para>The result of using <emphasis role="bold">
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -109,7 +109,7 @@
</emphasis> instead of <emphasis role="bold">
<property><a4j:commandButton></property>
</emphasis>. You can put it anywhere, just don't forget to use
- <h:form> … </h:form> around it. </para>
+ <h:form> ... </h:form> around it. </para>
</section>
<section>
<title>Relevant resources links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -62,9 +62,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu event="onmouseover">
- <!--Nested panelMenu components-->
- </rich:panelMenu>
+ <rich:panelMenu event="onmouseover">
+ <!--Nested panelMenu components-->
+ </rich:panelMenu>
...]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -62,11 +62,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- <rich:panelMenuGroup label="Group1">
- <!--Nested panelMenu components-->
- </rich:panelMenuGroup>
- </rich:panelMenu>
+ <rich:panelMenu>
+ <rich:panelMenuGroup label="Group1">
+ <!--Nested panelMenu components-->
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
...]]></programlisting>
</section>
@@ -155,11 +155,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- <rich:panelMenuGroup label="Group1" iconExpanded="disc" iconCollapsed="chevron">
- <!--Nested panelMenu components-->
- </rich:panelMenuGroup>
- </rich:panelMenu>
+ <rich:panelMenu>
+ <rich:panelMenuGroup label="Group1" iconExpanded="disc" iconCollapsed="chevron">
+ <!--Nested panelMenu components-->
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
...]]></programlisting>
<para> As the result the pictures are shown below. The first one represents the collapsed state,
the second one - expanded state:</para>
@@ -187,11 +187,11 @@
<para>It's also possible to define a path to the icon. Simple code is placed below.</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- <rich:panelMenuGroup label="Group1" iconExpanded="\images\img1.gif" iconCollapsed=""\images\img2.gif"">
- <!--Nested menu components-->
- </rich:panelMenuGroup>
- </rich:panelMenu>
+ <rich:panelMenu>
+ <rich:panelMenuGroup label="Group1" iconExpanded="\images\img1.gif" iconCollapsed=""\images\img2.gif"">
+ <!--Nested menu components-->
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
...]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -62,11 +62,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- …
- <rich:panelMenuItem value="Item1"/>
- …
- </rich:panelMenu>
+ <rich:panelMenu>
+ ...
+ <rich:panelMenuItem value="Item1"/>
+ ...
+ </rich:panelMenu>
...]]></programlisting>
</section>
@@ -134,15 +134,15 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- …
- <rich:panelMenuItem submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
- <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
- <h:outputText value="RichFaces Home Page"></h:outputText>
- </h:outputLink>
- </rich:panelMenuItem>
- …
- </rich:panelMenu>
+ <rich:panelMenu>
+ ...
+ <rich:panelMenuItem submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
+ <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
+ <h:outputText value="RichFaces Home Page"></h:outputText>
+ </h:outputLink>
+ </rich:panelMenuItem>
+ ...
+ </rich:panelMenu>
...]]></programlisting>
<para>There are two icon-related attributes. The <emphasis>
@@ -169,11 +169,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- …
- <rich:panelMenuItem ="Item 1.1" icon="chevronUp" />
- …
- </rich:panelMenu>
+ <rich:panelMenu>
+ ...
+ <rich:panelMenuItem ="Item 1.1" icon="chevronUp" />
+ ...
+ </rich:panelMenu>
...]]></programlisting>
<para> As the result the picture is shown below:</para>
@@ -190,11 +190,11 @@
<para>It's also possible to define a path to the icon. Simple code is placed below.</para>
<programlisting role="xml"><![CDATA[...
- <rich:panelMenu>
- …
- <rich:panelMenuItem ="Item 1.1" icon="\images\img1.gif" />
- …
- </rich:panelMenu>
+ <rich:panelMenu>
+ ...
+ <rich:panelMenuItem ="Item 1.1" icon="\images\img1.gif" />
+ ...
+ </rich:panelMenu>
...]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -143,9 +143,9 @@
<programlisting role="XML"><![CDATA[...
<rich:tabPanel>
<rich:tab label="Tab1" ontabenter="alert()">
- …
+ ...
</rich:tab>
- …
+ ...
</rich:tabPanel>
...]]></programlisting>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-28 13:01:42 UTC (rev 2532)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-08-28 13:01:47 UTC (rev 2533)
@@ -242,14 +242,14 @@
</para>
<programlisting role="XML"><![CDATA[...
<rich:dropDownMenu>
- …
+ ...
<rich:menuItem submitMode="none"
onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
<h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
<h:outputText value="RichFaces Home Page"></h:outputText>
</h:outputLink>
</rich:menuItem>
- …
+ ...
</rich:dropDownMenu>
...
]]></programlisting>
@@ -286,8 +286,8 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:tree …>
- …
+ <rich:tree ...>
+ ...
<rich:treeNode submitMode="none"
onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
<h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
17 years, 5 months
JBoss Rich Faces SVN: r2532 - in trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html: scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-28 09:01:42 -0400 (Tue, 28 Aug 2007)
New Revision: 2532
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
updating some class names
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-28 12:44:27 UTC (rev 2531)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-28 13:01:42 UTC (rev 2532)
@@ -154,7 +154,7 @@
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".Weekendclass">
+ <u:selector name=".rich-calendar-weekend">
<u:style name="color" value="red"/>
</u:selector>
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 12:44:27 UTC (rev 2531)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 13:01:42 UTC (rev 2532)
@@ -492,9 +492,9 @@
if (weekDayCounter==6) weekDayCounter=0; else weekDayCounter++;
styleClass = "rich-calendar-days";
- if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += " Weekendclass";
+ if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += "rich-calendar-weekends";
- if (i==6) styleClass += " rich-right-cell";
+ if (i==6) styleClass += "rich-right-cell";
htmlTextWeekDayBar+='<td class="'+styleClass+'">'+weekDayHtml+'</td>';
}
htmlTextWeekDayBar+='</tr>\n';
@@ -733,9 +733,9 @@
{
this.selectedDate=new Date(this.currentDate);
this.selectedDate.setDate(obj.data);
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-calendar-select");
this.selectedDateElement = obj;
- Element.addClassName(obj, "Selecteddayclass");
+ Element.addClassName(obj, "rich-calendar-select");
$(this.INPUT_DATE_ID).value=this.getSelectedDateString(this.params.datePattern);
this.renderHeader();
@@ -920,7 +920,7 @@
//var _d=new Date();
if (this.selectedDateElement) {
- Element.classNames(this.selectedDateElement).remove("Selecteddayclass");
+ Element.classNames(this.selectedDateElement).remove("rich-calendar-select");
this.selectedDateElement = null;
}
@@ -980,7 +980,7 @@
if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) {
this.selectedDateElement = element;
- e.add("Selecteddayclass");
+ e.add("rich-calendar-select");
}
this.setCellEvents(element);
@@ -1133,7 +1133,7 @@
}
else
{
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-calendar-select");
if (oldSelectedDate!=null) if (noUpdate) this.render(); else this.onUpdate();
this.today(noUpdate);
}
17 years, 5 months
JBoss Rich Faces SVN: r2531 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-28 08:44:27 -0400 (Tue, 28 Aug 2007)
New Revision: 2531
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-744
some tags are corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -62,7 +62,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:calendar popup="false"/>
+ <rich:calendar popup="false"/>
...]]></programlisting>
</section>
@@ -162,11 +162,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <f:facet name="header">
- <f:verbatim>
+ <f:facet name="header">
+ <f:verbatim>
{previousMonthControl} | {nextMonthControl}
- </f:verbatim>
- </f:facet>
+ </f:verbatim>
+ </f:facet>
...]]></programlisting>
<para>It's possible to define <emphasis>
<property>"footer"</property>
@@ -192,9 +192,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <f:facet name="weekNumber">
- <h:outputText style="font-weight: bold;" value="{weekNumber}" />
- </f:facet>
+ <f:facet name="weekNumber">
+ <h:outputText style="font-weight: bold;" value="{weekNumber}" />
+ </f:facet>
...]]></programlisting>
<para>The example of using JavaScript API is placed below:</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -58,10 +58,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dragSupport dragType="file">
- <rich:dndParam name="testDrag" value="testDragValue"
- type="drag"/>
- </rich:dragSupport>
+ <rich:dragSupport dragType="file">
+ <rich:dndParam name="testDrag" value="testDragValue"
+ type="drag"/>
+ </rich:dragSupport>
...
]]></programlisting>
</section>
@@ -106,12 +106,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="JSP"><![CDATA[...
- <rich:dragSupport ...>
- <rich:dndParam type="drag" name="dragging">
- <h:graphicImage value="/img/product1_small.png"/>
- </rich:dndParam>
- <h:graphicImage value="product1.png"/>
- </rich:dragSupport>
+ <rich:dragSupport ...>
+ <rich:dndParam type="drag" name="dragging">
+ <h:graphicImage value="/img/product1_small.png"/>
+ </rich:dndParam>
+ <h:graphicImage value="product1.png"/>
+ </rich:dragSupport>
...
]]></programlisting>
@@ -132,10 +132,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="JSP"><![CDATA[...
- <rich:dragSupport ...>
- <rich:dndParam type="drag" name="label" value="#{msg.subj}"/>
+ <rich:dragSupport ...>
+ <rich:dndParam type="drag" name="label" value="#{msg.subj}"/>
...
- </rich:dragSupport>
+ </rich:dragSupport>
...
]]></programlisting>
@@ -156,12 +156,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="JSP"><![CDATA[...
- <rich:dropSupport ...>
- <rich:dndParam type="drop" name="comp" >
- <h:graphicImage height="16" width="16" value="/images/comp.png"/>
- </rich:dndParam>
+ <rich:dropSupport ...>
+ <rich:dndParam type="drop" name="comp" >
+ <h:graphicImage height="16" width="16" value="/images/comp.png"/>
+ </rich:dndParam>
...
- </rich:dropSupport >
+ </rich:dropSupport >
...
]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -66,10 +66,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <h:panelGrid id="drag1">
- <rich:dragSupport dragType="item"/>
- <!--Some content to be dragged-->
- </h:panelGrid>
+ <h:panelGrid id="drag1">
+ <rich:dragSupport dragType="item"/>
+ <!--Some content to be dragged-->
+ </h:panelGrid>
...
]]></programlisting>
</section>
@@ -102,12 +102,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <h:column>
- <rich:dragSupport dragIndicator=":form:iii" dragType="text">
- <a4j:actionparam value="#{caps.name}" name="name"/>
- </rich:dragSupport>
- <h:outputText value="#{caps.name}"/>
- </h:column>
+ <h:column>
+ <rich:dragSupport dragIndicator=":form:iii" dragType="text">
+ <a4j:actionparam value="#{caps.name}" name="name"/>
+ </rich:dragSupport>
+ <h:outputText value="#{caps.name}"/>
+ </h:column>
...
]]></programlisting>
@@ -119,14 +119,14 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <h:column>
- <a4j:outputPanel>
- <rich:dragSupport dragIndicator=":form:iii" dragType="text">
- <a4j:actionparam value="#{caps.name}" name="name"/>
- </rich:dragSupport>
- <h:outputText value="#{caps.name}"/>
- </a4j:outputPanel>
- </h:column>
+ <h:column>
+ <a4j:outputPanel>
+ <rich:dragSupport dragIndicator=":form:iii" dragType="text">
+ <a4j:actionparam value="#{caps.name}" name="name"/>
+ </rich:dragSupport>
+ <h:outputText value="#{caps.name}"/>
+ </a4j:outputPanel>
+ </h:column>
...
]]></programlisting>
@@ -142,20 +142,20 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <h:panelGrid id="drag1">
- <rich:dragSupport dragType="singleItems" .../>
- <!--Some content to be dragged-->
- </h:panelGrid>
+ <h:panelGrid id="drag1">
+ <rich:dragSupport dragType="singleItems" .../>
+ <!--Some content to be dragged-->
+ </h:panelGrid>
...
- <h:panelGrid id="drag2">
- <rich:dragSupport dragType="groups" .../>
- <!--Some content to be dragged-->
- </h:panelGrid>
+ <h:panelGrid id="drag2">
+ <rich:dragSupport dragType="groups" .../>
+ <!--Some content to be dragged-->
+ </h:panelGrid>
...
- <h:panelGrid id="drop1">
- <rich:dropSupport acceptedTypes="singleItems" .../>
- <!--Drop zone content-->
- </h:panelGrid>
+ <h:panelGrid id="drop1">
+ <rich:dropSupport acceptedTypes="singleItems" .../>
+ <!--Drop zone content-->
+ </h:panelGrid>
...
]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -62,9 +62,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:dropDownMenu value="Item1">
- <!--Nested menu components-->
- </rich:dropDownMenu>
+ <rich:dropDownMenu value="Item1">
+ <!--Nested menu components-->
+ </rich:dropDownMenu>
...
</programlisting>
</section>
@@ -103,9 +103,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <f:facet name="label">
- <h:graphicImage value="/images/img1.gif"/>
- </f:facet>
+ <f:facet name="label">
+ <h:graphicImage value="/images/img1.gif"/>
+ </f:facet>
...
</programlisting>
@@ -119,9 +119,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:dropDownMenu event="onclick" value="Item1">
- <!--Nested menu components-->
- </rich:dropDownMenu>
+ <rich:dropDownMenu event="onclick" value="Item1">
+ <!--Nested menu components-->
+ </rich:dropDownMenu>
...]]></programlisting>
<para>The <emphasis role="bold">
@@ -240,9 +240,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr">
- <!--Nested menu components-->
- </rich:dropDownMenu>
+ <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr">
+ <!--Nested menu components-->
+ </rich:dropDownMenu>
...
]]></programlisting>
@@ -272,9 +272,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="xml"><![CDATA[...
- <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
- <!--Nested menu components-->
- </rich:dropDownMenu>
+ <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
+ <!--Nested menu components-->
+ </rich:dropDownMenu>
...
</programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -67,9 +67,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:panel>
- <rich:dropSupport acceptedTypes="text"/>
- </rich:panel>
+ <rich:panel>
+ <rich:dropSupport acceptedTypes="text"/>
+ </rich:panel>
...
]]></programlisting>
</section>
@@ -92,21 +92,21 @@
<title>Details of Usage</title>
<para>As shown in the example, the key attribute for <emphasis role="bold">
- <property><rich:dropSupport></property>
+ <property><rich:dropSupport></property>
</emphasis> is <emphasis>
<property>"acceptedTypes"</property>
</emphasis>. This attribute defines the types of draggable items that can be dropped onto the
designated drop zone.</para>
<para>The second most important attribute for <emphasis role="bold">
- <property><rich:dropSupport></property>
+ <property><rich:dropSupport></property>
</emphasis> is <emphasis>
<property>"typeMapping"</property>
</emphasis>. This attribute maps a specific type among the acceptable types for draggable
items to a specific <emphasis role="bold">
- <property><rich:dndParam></property>
+ <property><rich:dndParam></property>
</emphasis> child element under <emphasis role="bold">
- <property><rich:dropSupport></property>
+ <property><rich:dropSupport></property>
</emphasis>.</para>
@@ -114,10 +114,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropSupport acceptedTypes="[iconsDragged, textDragged]" typeMapping="{iconsDragged: DropIcon}">
- <rich:dndParam name="DropIcon">
- <h:graphicImage value="/images/drop-icon.png"/>
- </rich:dndParam>
+ <rich:dropSupport acceptedTypes="[iconsDragged, textDragged]" typeMapping="{iconsDragged: DropIcon}">
+ <rich:dndParam name="DropIcon">
+ <h:graphicImage value="/images/drop-icon.png"/>
+ </rich:dndParam>
...
]]></programlisting>
@@ -138,17 +138,17 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dataTable value="#{capitalsBean.capitals}" var="caps">
- <f:facet name="caption">Capitals List</f:facet>
- <h:column>
- <a4j:outputPanel>
- <rich:dragSupport dragIndicator=":form:ind" dragType="text">
- <a4j:actionparam value="#{caps.name}" name="name"/>
- </rich:dragSupport>
- <h:outputText value="#{caps.name}"/>
- </a4j:outputPanel>
- </h:column>
- </rich:dataTable>
+ <rich:dataTable value="#{capitalsBean.capitals}" var="caps">
+ <f:facet name="caption">Capitals List</f:facet>
+ <h:column>
+ <a4j:outputPanel>
+ <rich:dragSupport dragIndicator=":form:ind" dragType="text">
+ <a4j:actionparam value="#{caps.name}" name="name"/>
+ </rich:dragSupport>
+ <h:outputText value="#{caps.name}"/>
+ </a4j:outputPanel>
+ </h:column>
+ </rich:dataTable>
...
]]></programlisting>
@@ -160,11 +160,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:panel style="width:100px;height:100px;">
- <f:facet name="header">Drop Zone</f:facet>
- <rich:dropSupport acceptedTypes="text" reRender="box"
- dropListener="#{capitalsBean.addCapital2}"/>
- </rich:panel>
+ <rich:panel style="width:100px;height:100px;">
+ <f:facet name="header">Drop Zone</f:facet>
+ <rich:dropSupport acceptedTypes="text" reRender="box"
+ dropListener="#{capitalsBean.addCapital2}"/>
+ </rich:panel>
...
]]></programlisting>
@@ -176,12 +176,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dataTable value="#{capitalsBean.capitals2}" var="cap2" id="box">
- <f:facet name="caption">Capitals chosen</f:facet>
- <h:column>
- <h:outputText value="#{cap2.name}"/>
- </h:column>
- </rich:dataTable>
+ <rich:dataTable value="#{capitalsBean.capitals2}" var="cap2" id="box">
+ <f:facet name="caption">Capitals chosen</f:facet>
+ <h:column>
+ <h:outputText value="#{cap2.name}"/>
+ </h:column>
+ </rich:dataTable>
...]]></programlisting>
<para>And finally, as a listener, this listener will implement the dropped element:</para>
@@ -217,7 +217,7 @@
common Ajax request is performed that renders results in the third table.</para>
<para>As with every Ajax action component, <emphasis role="bold">
- <property><rich:dropSupport></property>
+ <property><rich:dropSupport></property>
</emphasis> has all the common attributes (<emphasis><property>"timeout"</property>,</emphasis>
<emphasis><property>"limitToList"</property>,</emphasis>
<emphasis><property>"reRender"</property>,</emphasis> etc.) for Ajax request customization. To
@@ -252,7 +252,7 @@
<para>
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?c=dro..."
>Here</ulink> you can see the example of <emphasis role="bold"
- ><rich:dropSupport></emphasis> usage and sources for the given example.
+ ><rich:dropSupport></emphasis> usage and sources for the given example.
</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-28 12:24:53 UTC (rev 2530)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-28 12:44:27 UTC (rev 2531)
@@ -66,17 +66,17 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:modalPanel id="panel">
- <f:facet name="header">
- <h:outputText value="header">
- </f:facet>
+ <rich:modalPanel id="panel">
+ <f:facet name="header">
+ <h:outputText value="header">
+ </f:facet>
...
- <!--Any Content inside-->
+ <!--Any Content inside-->
...
- <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide</a>
- </rich:modalpanel>
+ <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide</a>
+ </rich:modalpanel>
...
- <a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
+ <a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
...
]]></programlisting>
</section>
@@ -144,16 +144,16 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <form jsfc="h:form" id="form">
- <rich:modalPanel id="panel" width="400" height="300">
- <f:facet name="header">
- <h:outputText value="Modal Panel"/>
- </f:facet>
- <h:graphicImage value="/pages/california_large.gif"/>
- <a href="javascript:Richfaces.hideModalPanel('form:panel')">Close</a>
- </rich:modalPanel>
- <a href="javascript:Richfaces.showModalPanel('form:panel');">Open</a>
- </form>
+ <form jsfc="h:form" id="form">
+ <rich:modalPanel id="panel" width="400" height="300">
+ <f:facet name="header">
+ <h:outputText value="Modal Panel"/>
+ </f:facet>
+ <h:graphicImage value="/pages/california_large.gif"/>
+ <a href="javascript:Richfaces.hideModalPanel('form:panel')">Close</a>
+ </rich:modalPanel>
+ <a href="javascript:Richfaces.showModalPanel('form:panel');">Open</a>
+ </form>
...
]]></programlisting>
@@ -177,14 +177,14 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">
- <rich:modalPanel id="panel">
- <f:facet name="header"><h:outputText value="Modal Panel"/></f:facet>
- <f:facet name="controls">
- <a href="javascript:Richfaces.hideModalPanel('form:panel')">X</a>
- </f:facet>
- <h:graphicImage value="/pages/california_large.gif"/>
- </rich:modalPanel>
+ <programlisting role="XML"><![CDATA[...
+ <rich:modalPanel id="panel">
+ <f:facet name="header"><h:outputText value="Modal Panel"/></f:facet>
+ <f:facet name="controls">
+ <a href="javascript:Richfaces.hideModalPanel('form:panel')">X</a>
+ </f:facet>
+ <h:graphicImage value="/pages/california_large.gif"/>
+ </rich:modalPanel>
]]></programlisting>
<para>The result displays like this:</para>
17 years, 5 months
JBoss Rich Faces SVN: r2530 - in trunk/ui/calendar: src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-28 08:24:53 -0400 (Tue, 28 Aug 2007)
New Revision: 2530
Modified:
trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
some fixes after classes refactoring
Modified: trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
===================================================================
--- trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-28 12:05:35 UTC (rev 2529)
+++ trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-28 12:24:53 UTC (rev 2530)
@@ -8,33 +8,33 @@
<meta http-equiv="Content-Type" content="text/xhtml" />
<style type="text/css">
-.rich-Dayclass {
+.Dayclass {
color: #000000;
font-weight:bold;
}
-.rich-Weekendclass {
+.Weekendclass {
color:#800000;
font-weight:bold;
}
-.rich-Commonrich-Dayclass {
+.Commondayclass {
color: #000080;
}
-.rich-Hoveredrich-Dayclass {
+.Hovereddayclass {
color:red;
}
-.rich-Weekendrich-Dayclass {
+.Weekenddayclass {
color:#800000;
}
-.rich-Hoveredweekclass {
+.Hoveredweekclass {
color:red;
}
-.rich-Disabledrich-Dayclass {
+.Disableddayclass {
color:gray;
}
-.rich-Torich-Dayclass {
+.Todayclass {
background-color: #f0f0f0;
}
-.rich-Selectedrich-Dayclass {
+.Selecteddayclass {
background-color: #f08080;
}
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 12:05:35 UTC (rev 2529)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 12:24:53 UTC (rev 2530)
@@ -733,9 +733,9 @@
{
this.selectedDate=new Date(this.currentDate);
this.selectedDate.setDate(obj.data);
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selected Dayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
this.selectedDateElement = obj;
- Element.addClassName(obj, "rich-Selected Dayclass");
+ Element.addClassName(obj, "Selecteddayclass");
$(this.INPUT_DATE_ID).value=this.getSelectedDateString(this.params.datePattern);
this.renderHeader();
@@ -920,7 +920,7 @@
//var _d=new Date();
if (this.selectedDateElement) {
- Element.classNames(this.selectedDateElement).remove("rich-Selected Dayclass");
+ Element.classNames(this.selectedDateElement).remove("Selecteddayclass");
this.selectedDateElement = null;
}
@@ -980,7 +980,7 @@
if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) {
this.selectedDateElement = element;
- e.add("rich-Selected Dayclass");
+ e.add("Selecteddayclass");
}
this.setCellEvents(element);
@@ -1133,7 +1133,7 @@
}
else
{
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selected Dayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
if (oldSelectedDate!=null) if (noUpdate) this.render(); else this.onUpdate();
this.today(noUpdate);
}
17 years, 5 months
JBoss Rich Faces SVN: r2529 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-28 08:05:35 -0400 (Tue, 28 Aug 2007)
New Revision: 2529
Modified:
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-743
added CDATA into programmlisting pattens
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -88,7 +88,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[
+ <programlisting role="JAVA"><![CDATA[
package demo;
import org.ajax4jsf.framework.ajax.AjaxEvent;
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,9 +61,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:calendar popup="false"/>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
@@ -161,13 +161,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<f:facet name="header">
<f:verbatim>
{previousMonthControl} | {nextMonthControl}
</f:verbatim>
</f:facet>
-...</programlisting>
+...]]></programlisting>
<para>It's possible to define <emphasis>
<property>"footer"</property>
</emphasis> facet and replace in it (in the same way how it was described for <emphasis>
@@ -191,11 +191,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<f:facet name="weekNumber">
<h:outputText style="font-weight: bold;" value="{weekNumber}" />
</f:facet>
-...</programlisting>
+...]]></programlisting>
<para>The example of using JavaScript API is placed below:</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -50,7 +50,7 @@
<section>
<title>Key attributes and ways of usage</title>
<para>The component <emphasis role="bold"><property><a4j:commandButton></property></emphasis> placed on a page generates the following HTML code:</para>
- <programlisting role="XHTML"><![CDATA[<input type="submit" onclick="A4J.AJAX.Submit(...request parameters);return false;" value="sort"/>
+ <programlisting role="JAVA"><![CDATA[<input type="submit" onclick="A4J.AJAX.Submit(...request parameters);return false;" value="sort"/>
]]></programlisting>
<para>Hence, the utility method "A4J.AJAX.Submit" is called on a click, the method performs Ajax request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
<note>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -57,13 +57,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:dragSupport dragType="file">
<rich:dndParam name="testDrag" value="testDragValue"
type="drag"/>
</rich:dragSupport>
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -73,11 +73,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">import org.richfaces.component.html.HtmlDndParam;
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDndParam;
...
HtmlDndParam myDparam = new HtmlDndParam();
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -105,7 +105,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JSP">...
+ <programlisting role="JSP"><![CDATA[...
<rich:dragSupport ...>
<rich:dndParam type="drag" name="dragging">
<h:graphicImage value="/img/product1_small.png"/>
@@ -113,7 +113,7 @@
<h:graphicImage value="product1.png"/>
</rich:dragSupport>
...
-</programlisting>
+]]></programlisting>
<para>Here <property>dndParam</property> defines an icon that is used by
an indicator when a drag is on the place of a default icon (e.g. a
@@ -131,13 +131,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JSP">...
+ <programlisting role="JSP"><![CDATA[...
<rich:dragSupport ...>
<rich:dndParam type="drag" name="label" value="#{msg.subj}"/>
...
</rich:dragSupport>
...
-</programlisting>
+]]></programlisting>
<para>The parameter is transmitted into an indicator for usage in an
informational part of the dragIndicator component (inside an indicator a
@@ -155,7 +155,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JSP">...
+ <programlisting role="JSP"><![CDATA[...
<rich:dropSupport ...>
<rich:dndParam type="drop" name="comp" >
<h:graphicImage height="16" width="16" value="/images/comp.png"/>
@@ -163,7 +163,7 @@
...
</rich:dropSupport >
...
-</programlisting>
+]]></programlisting>
<para>Here, <property>dndParam</property> passes icons into an indicator,
if dragged content of a comp type is above the given drop zone that
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -65,13 +65,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<h:panelGrid id="drag1">
<rich:dragSupport dragType="item"/>
<!--Some content to be dragged-->
</h:panelGrid>
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -80,11 +80,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">import org.richfaces.component.html.HtmlDragSupport;
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDragSupport;
...
HtmlDragSupport myDragZone = new HtmlDragSupport();
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -101,7 +101,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<h:column>
<rich:dragSupport dragIndicator=":form:iii" dragType="text">
<a4j:actionparam value="#{caps.name}" name="name"/>
@@ -109,7 +109,7 @@
<h:outputText value="#{caps.name}"/>
</h:column>
...
-</programlisting>
+]]></programlisting>
<para>However, using <property>a4j:outputPanel</property> as a wrapper inside
<property>h:column</property>, the following code could be used successfully:</para>
@@ -118,7 +118,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<h:column>
<a4j:outputPanel>
<rich:dragSupport dragIndicator=":form:iii" dragType="text">
@@ -128,7 +128,7 @@
</a4j:outputPanel>
</h:column>
...
-</programlisting>
+]]></programlisting>
<para>This code makes all rows of this column draggable.</para>
@@ -141,7 +141,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<h:panelGrid id="drag1">
<rich:dragSupport dragType="singleItems" .../>
<!--Some content to be dragged-->
@@ -157,7 +157,7 @@
<!--Drop zone content-->
</h:panelGrid>
...
-</programlisting>
+]]></programlisting>
<para>In this example, the <property>drop1</property> panel grid is a drop zone that invokes
drag-and-drop for drops of items from the first <property>drag1</property> panel grid, but not
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,7 +61,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:dropDownMenu value="Item1">
<!--Nested menu components-->
</rich:dropDownMenu>
@@ -102,7 +102,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<f:facet name="label">
<h:graphicImage value="/images/img1.gif"/>
</f:facet>
@@ -118,11 +118,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:dropDownMenu event="onclick" value="Item1">
<!--Nested menu components-->
</rich:dropDownMenu>
-...</programlisting>
+...]]></programlisting>
<para>The <emphasis role="bold">
<property><rich:dropDownMenu></property>
@@ -239,12 +239,12 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr">
<!--Nested menu components-->
</rich:dropDownMenu>
...
-</programlisting>
+]]></programlisting>
<para>This is the result:</para>
@@ -271,7 +271,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
<!--Nested menu components-->
</rich:dropDownMenu>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -66,12 +66,12 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:panel>
<rich:dropSupport acceptedTypes="text"/>
</rich:panel>
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -81,11 +81,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">import org.richfaces.component.html.HtmlDropSupport;
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDropSupport;
...
HtmlDropSupport myDragZone = new HtmlDropSupport();
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -113,13 +113,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:dropSupport acceptedTypes="[iconsDragged, textDragged]" typeMapping="{iconsDragged: DropIcon}">
<rich:dndParam name="DropIcon">
<h:graphicImage value="/images/drop-icon.png"/>
</rich:dndParam>
...
-</programlisting>
+]]></programlisting>
<para>In this example, dropping a draggable item of an <emphasis><property>"iconsDragged"</property></emphasis> type
will trigger the use a parameter named <emphasis><property>"DropIcon"</property></emphasis> in the event processing
@@ -137,7 +137,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="caps">
<f:facet name="caption">Capitals List</f:facet>
<h:column>
@@ -150,7 +150,7 @@
</h:column>
</rich:dataTable>
...
-</programlisting>
+]]></programlisting>
<para>As a drop zone, this panel will accept draggable items of type "text" and then rerender an
element with the ID of "box":</para>
@@ -159,14 +159,14 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:panel style="width:100px;height:100px;">
<f:facet name="header">Drop Zone</f:facet>
<rich:dropSupport acceptedTypes="text" reRender="box"
dropListener="#{capitalsBean.addCapital2}"/>
</rich:panel>
...
-</programlisting>
+]]></programlisting>
<para>As a part of the page that can be updated in a partial page update, this table has an ID
of "box":</para>
@@ -175,14 +175,14 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals2}" var="cap2" id="box">
<f:facet name="caption">Capitals chosen</f:facet>
<h:column>
<h:outputText value="#{cap2.name}"/>
</h:column>
</rich:dataTable>
-...</programlisting>
+...]]></programlisting>
<para>And finally, as a listener, this listener will implement the dropped element:</para>
@@ -190,7 +190,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">...
+ <programlisting role="JAVA"><![CDATA[...
public void addCapital2(DropEvent event) {
FacesContext context = FacesContext.getCurrentInstance();
Capital cap = new Capital();
@@ -198,7 +198,7 @@
capitals2.add(cap);
}
...
-</programlisting>
+]]></programlisting>
<para>Here is the result after a few drops of items from the first table:</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,9 +61,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
@@ -95,9 +95,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:insert src="/pages/sourcePage.xhtml" highlight="xhtml"/>
- ...</programlisting>
+ ...]]></programlisting>
<figure>
<para>The result of using <emphasis role="bold">
<property><rich:insert></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -65,7 +65,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<rich:modalPanel id="panel">
<f:facet name="header">
<h:outputText value="header">
@@ -78,7 +78,7 @@
...
<a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -88,11 +88,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">import org.richfaces.component.html.HtmlModalPanel;
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlModalPanel;
...
HtmlModalPanel myPanel = new HtmlModalPanel();
...
-</programlisting>
+]]></programlisting>
</section>
<section>
@@ -143,7 +143,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
+ <programlisting role="XML"><![CDATA[...
<form jsfc="h:form" id="form">
<rich:modalPanel id="panel" width="400" height="300">
<f:facet name="header">
@@ -155,7 +155,7 @@
<a href="javascript:Richfaces.showModalPanel('form:panel');">Open</a>
</form>
...
-</programlisting>
+]]></programlisting>
<para>This defines a window with a particular size and ID. It includes one "Open" link. Clicking
on this link makes the modal window content appear.</para>
@@ -185,7 +185,7 @@
</f:facet>
<h:graphicImage value="/pages/california_large.gif"/>
</rich:modalPanel>
-</programlisting>
+]]></programlisting>
<para>The result displays like this:</para>
@@ -228,7 +228,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});</programlisting>
+ <programlisting role="JAVA"><![CDATA[Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});</programlisting>
<para> Thus, except the standard modalPanel parameters you can pass any of your own parameters. </para>
<para> Also modalPanel allows to handle its own opening and closing events on the client side.
The <emphasis><property>"onshow"</property></emphasis> and <emphasis><property>"onclose"</property></emphasis> attributes are used in this
@@ -239,7 +239,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA">onshow="alert(event.parameters.param1)"</programlisting>
+ <programlisting role="JAVA"><![CDATA[onshow="alert(event.parameters.param1)"</programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is output. </para>
<para> More information about this problem could be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111804"
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,11 +61,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu event="onmouseover">
<!--Nested panelMenu components-->
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
@@ -95,11 +95,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu event="onmouseover">
<!--Nested panelMenu components-->
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
<para>Switching mode could be chosen with the <emphasis>
<property>"mode"</property>
@@ -149,13 +149,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu event="onclick" submitMode="none">
< rich:panelMenuItem label="Link to external page">
<h:outputLink ... >
<rich:panelMenuItem>
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
<note><title>Note:</title> As the <emphasis role="bold">
<property><rich:panelMenu></property>
@@ -190,13 +190,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu selectedChild="thisChild">
<rich:panelMenuGroup label="Group1" name="thisChild">
<!--Nested panelMenu components-->
</rich:panelMenuGroup>
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,13 +61,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
<rich:panelMenuGroup label="Group1">
<!--Nested panelMenu components-->
</rich:panelMenuGroup>
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
@@ -154,13 +154,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
<rich:panelMenuGroup label="Group1" iconExpanded="disc" iconCollapsed="chevron">
<!--Nested panelMenu components-->
</rich:panelMenuGroup>
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
<para> As the result the pictures are shown below. The first one represents the collapsed state,
the second one - expanded state:</para>
@@ -186,13 +186,13 @@
<para>It's also possible to define a path to the icon. Simple code is placed below.</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
<rich:panelMenuGroup label="Group1" iconExpanded="\images\img1.gif" iconCollapsed=""\images\img2.gif"">
<!--Nested menu components-->
</rich:panelMenuGroup>
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -61,13 +61,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
…
<rich:panelMenuItem value="Item1"/>
…
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
<section>
@@ -133,7 +133,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
…
<rich:panelMenuItem submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
@@ -143,7 +143,7 @@
</rich:panelMenuItem>
…
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
<para>There are two icon-related attributes. The <emphasis>
<property>"icon"</property>
@@ -168,13 +168,13 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
…
<rich:panelMenuItem ="Item 1.1" icon="chevronUp" />
…
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
<para> As the result the picture is shown below:</para>
<figure>
@@ -189,13 +189,13 @@
<para>It's also possible to define a path to the icon. Simple code is placed below.</para>
- <programlisting role="xml">...
+ <programlisting role="xml"><![CDATA[...
<rich:panelMenu>
…
<rich:panelMenuItem ="Item 1.1" icon="\images\img1.gif" />
…
</rich:panelMenu>
-...</programlisting>
+...]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-28 11:16:58 UTC (rev 2528)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-28 12:05:35 UTC (rev 2529)
@@ -296,7 +296,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[A4J.AJAX.onExpired = function(loc,expiredMsg){
+ <programlisting role="Java"><![CDATA[A4J.AJAX.onExpired = function(loc,expiredMsg){
// Custom Developer Code
};
]]></programlisting>
17 years, 5 months
JBoss Rich Faces SVN: r2528 - trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-28 07:16:58 -0400 (Tue, 28 Aug 2007)
New Revision: 2528
Modified:
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
Log:
RF-742
Modified: trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
===================================================================
--- trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2007-08-28 10:58:22 UTC (rev 2527)
+++ trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2007-08-28 11:16:58 UTC (rev 2528)
@@ -337,4 +337,4 @@
this.edit.fireEvent('on' + e);
}
}
-}
+};
17 years, 5 months