JBoss Rich Faces SVN: r7900 - trunk/docs/migrationguide/en/src/main/resources/css.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-04-17 11:48:07 -0400 (Thu, 17 Apr 2008)
New Revision: 7900
Modified:
trunk/docs/migrationguide/en/src/main/resources/css/html.css
Log:
http://jira.jboss.com/jira/browse/RF-3048 - styles for <code> were added
Modified: trunk/docs/migrationguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-04-17 15:46:50 UTC (rev 7899)
+++ trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-04-17 15:48:07 UTC (rev 7900)
@@ -406,4 +406,9 @@
}
.css_string {
color:#336699;
+}
+code{
+color:#000000;
+font-size:12px;
+font-family:courier;
}
\ No newline at end of file
16 years, 9 months
JBoss Rich Faces SVN: r7899 - in trunk/docs/migrationguide/en/src/main/docbook: included and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-04-17 11:46:50 -0400 (Thu, 17 Apr 2008)
New Revision: 7899
Added:
trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml
trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml
trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml
trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml
Modified:
trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml
trunk/docs/migrationguide/en/src/main/docbook/master.xml
trunk/docs/migrationguide/en/src/main/docbook/modules/scope.xml
Log:
http://jira.jboss.com/jira/browse/RF-3048 - new sections were added
Added: trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml (rev 0)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="binding">
+ <sectioninfo>
+ <keywordset>
+ <keyword>binding</keyword>
+ <keyword>JSP</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Binding problem in JSP</title>
+ <section>
+ <title>Description</title>
+ <para>
+ Binding does not work for all components in JSP.
+ It is impossible to use <emphasis><property>"binding"</property></emphasis> attribute for
+ RichFaces components. Wrong class-name is used in TLD generated from XML configuration files.
+ </para>
+ </section>
+ <section>
+ <title>Links</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/RF-2918 ">Jira</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140368#...">RichFaces Forum</ulink>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>How to reproduce</title>
+<para>
+ Just using binding attribute.
+</para>
+ </section>
+ <section>
+ <title>Causes</title>
+ <para>
+ There was <code><classname>java.lang.String</classname></code> instead of <code><classname>javax.faces.component.UIComponent</classname></code> in configuration files.
+ </para>
+ </section>
+
+ <section>
+ <title>Workarounds</title>
+ <para>
+ The decision is to use <property>Facelets</property> upgrade to <ulink url=" http://www.jboss.org/jbossrichfaces/downloads/">RichFaces 3.2.0 SP1</ulink>
+ </para>
+ </section>
+
+</section>
\ No newline at end of file
Added: trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml (rev 0)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="explicitId">
+ <sectioninfo>
+ <keywordset>
+ <keyword>explicit</keyword>
+ <keyword>id</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Ajax requests in JSF 1.2</title>
+ <section>
+ <title>Description</title>
+ <para>
+ Ajax requests stop to work without any errors shown when intensive Ajax traffic is expected. No error or other diagnostic presents.
+ </para>
+ </section>
+ <section>
+ <title>How to reproduce</title>
+ <para>
+ Do not define an <property>id</property> for Ajax command component.
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <h:panelGrid columns="2">
+ <h:inputText id="myinput" value="#{userBean.name}">
+ <a4j:support event="onkeyup" reRender="outtext" />
+ </h:inputText>
+ <h:outputText id="outtext" value="#{userBean.name}" />
+ </h:panelGrid>
+ </h:form>
+...]]></programlisting>
+ </section>
+ <section>
+ <title>Causes</title>
+ <para>
+ This is a specific of the dynamic id generation of the JSF 1.2 implementation.
+ In case of simultaneous request processing, the id of the command component becomes <property>out-of-sync</property>
+ with id of the same component on the page. After that any Ajax requests from the component with old id just do not process.
+ </para>
+ </section>
+
+ <section>
+ <title>Workarounds</title>
+ <para>
+ You should define the <property>id</property> for the command component and parent namespace components
+ (<emphasis role="bold"><property><h:form></property></emphasis>,
+ <emphasis role="bold"><property><f:subview></property></emphasis>,
+ <emphasis role="bold"><property><h:dataTable></property></emphasis> and so on) explicitly.
+ As soon as this is a core JSF 1.2 functionality, the problem cannot be solved on the <property>RichFaces</property> level.
+ </para>
+ </section>
+
+</section>
\ No newline at end of file
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml 2008-04-17 15:30:42 UTC (rev 7898)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section>
+<section id="i18n">
<sectioninfo>
<keywordset>
<keyword>i18n</keyword>
@@ -38,7 +38,7 @@
<option value="An Gajdov& aacute;">An Gajdov& aacute;</option>
...
</select>
-]]></programlisting>
+...]]></programlisting>
</section>
<section>
<title>Causes</title>
@@ -50,7 +50,7 @@
<section>
<title>Workarounds</title>
<para>
- The decision is to upgrade to <ulink url=" http://www.jboss.org/jbossrichfaces/downloads/">RichFaces 3.2.0 SP1</ulink>
+ The decision is to upgrade to <ulink url="http://www.jboss.org/jbossrichfaces/downloads/">RichFaces 3.2.0 SP1</ulink>
</para>
</section>
Added: trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml (rev 0)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>JSF-RI-1.2_08</keyword>
+ <keyword></keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Menu components and JSF-RI-1.2_08</title>
+ <section>
+ <title>Description</title>
+ <para>
+ Menu components are not working with JSF-RI-1.2_08:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <emphasis role="bold"><property><rich:contextMenu></property></emphasis> component is not invoked by the right mouse click
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <emphasis role="bold"><property><rich:dropDownMenu></property></emphasis> component causes the exception with showing XHTML invalid output
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Links</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=717 ">JavaServer Faces issues</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/RF-2637 ">Jira</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140689#...">RichFaces Forum</ulink>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>How to reproduce</title>
+ <para>
+ Having JSF-RI 1.2_08 and menu components on a page.
+ </para>
+ </section>
+ <section>
+ <title>Causes</title>
+ <para>
+ Critical bug in JSF-RI 1.2_08. Already fixed for the further released there.
+ </para>
+ </section>
+
+ <section>
+ <title>Workarounds</title>
+ <para>
+ Downgrade to <ulink url="https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderI...">JSF-RI 1.2_07</ulink>
+ or use recent <ulink url="https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderI...">JSF-RI SNAPSHOT</ulink>.
+ </para>
+ </section>
+
+</section>
\ No newline at end of file
Added: trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml (rev 0)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="resource">
+ <sectioninfo>
+ <keywordset>
+ <keyword>resource</keyword>
+ <keyword>skinning</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Resources for standard skinning classes</title>
+ <section>
+ <title>Description</title>
+ <para>
+ When standard skinning classes or background images are inaccessible
+ "Resource not registered : org.richfaces.renderkit.html.images.InputBackgroundImage" (another name is possible) exception appears in server log.
+ </para>
+ </section>
+ <section>
+ <title>Links</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/RF-2944 ">Jira</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140846#...">RichFaces Forum</ulink>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>How to reproduce</title>
+ <para>Usually reproduced after server restart when user refreshes page</para>
+ </section>
+ <section>
+ <title>Causes</title>
+ <para>
+ Resources for standard skinning classes haven't been registered during <property>RichFaces</property> library build
+ </para>
+ </section>
+
+ <section>
+ <title>Workarounds</title>
+ <para>
+ Switch off standard skinning classes by setting initial parameter in <property>web.xml</property>
+ </para>:
+ <programlisting role="XML"><![CDATA[...
+<context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
+ <param-value>disable</param-value>
+</context-param>
+...]]></programlisting>
+<para>
+ Add <ulink url="http://docs.google.com/View?docid=dqk93fg_3ggsznfz5">META-INF/resources-config.xml</ulink> to the application classpath.
+</para>
+ </section>
+
+</section>
\ No newline at end of file
Modified: trunk/docs/migrationguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-17 15:30:42 UTC (rev 7898)
+++ trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -6,6 +6,10 @@
<!ENTITY req SYSTEM "modules/req.xml">
<!ENTITY i18n SYSTEM "included/i18n.xml">
+ <!ENTITY menuJSF SYSTEM "included/menuJSF.xml">
+ <!ENTITY binding SYSTEM "included/binding.xml">
+ <!ENTITY explicitId SYSTEM "included/explicitId.xml">
+ <!ENTITY resource SYSTEM "included/resource.xml">
]>
<book>
<bookinfo>
@@ -23,14 +27,37 @@
&req;
<chapter role="NotInToc" id="RichFacesMigrationIssues" xreflabel="RichFacesMigrationIssues">
<?dbhtml filename="RichFacesMigrationIssues.html"?>
-
+ <chapterinfo>
+ <keywordset>
+ <keyword>RichFaces</keyword>
+ <keyword>Migration Guide</keyword>
+ </keywordset>
+ </chapterinfo>
<title>The RichFaces Migration Issues</title>
+
<para>
This chapter includes only the issue with migration from previous versions to 3.2.0.
Issues with new components and other problems are not included.
The <ulink url="http://jira.jboss.com/jira/browse/RF">Jira</ulink> contains everything.
</para>
+
+ <section id="MostImportant">
+ <?dbhtml filename="MostImportant.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>important</keyword>
+ <keyword>issues</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Most important</title>
+
&i18n;
+ &menuJSF;
+ &binding;
+ &explicitId;
+ &resource;
+ </section>
+
</chapter>
</book>
Modified: trunk/docs/migrationguide/en/src/main/docbook/modules/scope.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/modules/scope.xml 2008-04-17 15:30:42 UTC (rev 7898)
+++ trunk/docs/migrationguide/en/src/main/docbook/modules/scope.xml 2008-04-17 15:46:50 UTC (rev 7899)
@@ -27,7 +27,7 @@
</listitem>
<listitem>
<para>
- Concepts related to Web or application servers configuration is beyond the scope of this document
+ Concepts related to Web or application servers configuration, JSF, JSF implementations are beyond the scope of this document
</para>
</listitem>
</itemizedlist>
16 years, 9 months
JBoss Rich Faces SVN: r7898 - branches/3.1.x/test-applications/jsp/src/main/java/ddMenu.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-17 11:30:42 -0400 (Thu, 17 Apr 2008)
New Revision: 7898
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
Log:
Add binding for rich:dropDownMenu;
Modified: branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2008-04-17 15:13:47 UTC (rev 7897)
+++ branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2008-04-17 15:30:42 UTC (rev 7898)
@@ -1,7 +1,11 @@
package ddMenu;
import java.awt.Event;
+import org.richfaces.component.html.HtmlDropDownMenu;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
public class DDMenu {
private int hideDelay;
@@ -17,9 +21,11 @@
private String iconFolder = null;
private String selectMenu;
private String mode;
+ private String bindLabel;
private boolean rendered;
private boolean disabled;
private boolean check;
+ private HtmlDropDownMenu mydDMenu;
public DDMenu() {
selectMenu = "accord";
@@ -33,11 +39,13 @@
jointPoint = "";
popupWidth = "";
mode = "none";
+ bindLabel = "default";
icon = null;
iconFolder = null;
rendered = true;
disabled = false;
check = false;
+ mydDMenu = new HtmlDropDownMenu();
}
public String getIcon() {
@@ -248,4 +256,24 @@
setPopupWidth("auto");
setDisabled(true);
}
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlDropDownMenu getMydDMenu() {
+ return mydDMenu;
+ }
+
+ public void setMydDMenu(HtmlDropDownMenu mydDMenu) {
+ this.mydDMenu = mydDMenu;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = mydDMenu.getClientId(context).toString();
+ }
}
16 years, 9 months
JBoss Rich Faces SVN: r7897 - branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-17 11:13:47 -0400 (Thu, 17 Apr 2008)
New Revision: 7897
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
Log:
Modal Panel # 3 contained <a4j:include>
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-04-17 13:44:07 UTC (rev 7896)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-04-17 15:13:47 UTC (rev 7897)
@@ -4,19 +4,25 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="modalPanelSubviewID">
- <h:messages />
- <rich:modalPanel id="modalPanelID" minHeight="#{modalPanel.minHeight}" minWidth="#{modalPanel.minWidth}"
- height="#{modalPanel.height}" width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
- resizeable="#{modalPanel.resizeable}" keepVisualState="#{modalPanel.keepVisualState}"
- rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}" autosized="#{modalPanel.autosized}" left="#{modalPanel.left}"
- top="#{modalPanel.top}" shadowDepth="#{modalPanel.shadowDepth}" shadowOpacity="#{modalPanel.shadowOpacity}"
- showWhenRendered="#{modalPanel.showWhenRendered}" onhide="showEvent('onhideInputID', 'onhide work!')"
+ <h:messages />
+ <rich:modalPanel id="modalPanelID" minHeight="#{modalPanel.minHeight}"
+ minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
+ width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
+ resizeable="#{modalPanel.resizeable}"
+ keepVisualState="#{modalPanel.keepVisualState}"
+ rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}"
+ autosized="#{modalPanel.autosized}" left="#{modalPanel.left}"
+ top="#{modalPanel.top}" shadowDepth="#{modalPanel.shadowDepth}"
+ shadowOpacity="#{modalPanel.shadowOpacity}"
+ showWhenRendered="#{modalPanel.showWhenRendered}"
+ onhide="showEvent('onhideInputID', 'onhide work!')"
onshow="showEvent('onshowInputID', 'onshow work!')">
<f:facet name="header">
<h:outputText value="Heder goes here..." />
</f:facet>
<f:facet name="controls">
- <h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
+ <h:graphicImage value="/pics/error.gif"
+ onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
</f:facet>
<h:outputText value="This is Modal Panel example" styleClass="text1" />
<h:inputText value="#{modalPanel.inputTextTest}" />
@@ -25,44 +31,81 @@
<f:selectItem itemLabel="2" itemValue="2" />
<f:selectItem itemLabel="3" itemValue="3" />
</h:selectOneListbox>
-
+
<f:verbatim>
<br />
<br />
</f:verbatim>
- <h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID');return false;" value="Close">
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanelID');return false;"
+ value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
<rich:spacer height="10" width="10"></rich:spacer>
- <h:outputLink onclick="Richfaces.showModalPanel('modalPanelID2');return false;" value="Show">
- <f:verbatim>Show 2nd MP</f:verbatim>
+ <h:outputLink
+ onclick="Richfaces.showModalPanel('modalPanelID2');return false;"
+ value="Show">
+ <f:verbatim>Show 2nd MP</f:verbatim>
</h:outputLink>
-
+
</rich:modalPanel>
- <a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show MP</a>
-
- <rich:modalPanel id="modalPanelID2" height="200" width="200" moveable="true">
- <f:facet name="header">
- <h:outputText value="Header of the 2nd modal panel" />
- </f:facet>
- <h:outputText value="Some text for the 2nd modal Panel" />
- <rich:spacer height="10" width="10"></rich:spacer>
- <h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID2');return false;" value="Close">
+ <a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show
+ MP</a>
+ <br>
+ <a onclick="Richfaces.showModalPanel('modalPanelID3');" href="#">Show
+ MP #3</a>
+
+ <rich:modalPanel id="modalPanelID2" height="415" width="1131"
+ autosized="true" resizeable="false" moveable="false" zindex="2000"
+ minHeight="415" minWidth="1131">
+ <f:facet name="header">
+ <h:outputText value="Header of the 2nd modal panel" />
+ </f:facet>
+ <h:outputText value="Some text for the 2nd modal Panel" />
+ <rich:spacer height="10" width="10"></rich:spacer>
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanelID2');return false;"
+ value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
</rich:modalPanel>
-
- <f:verbatim>
+
+ <f:verbatim>
<br />
<br />
</f:verbatim>
-
- <h:graphicImage value="/pics/info.gif" onclick="Richfaces.showModalPanel('modalPanelID');" />
- <f:verbatim>
+
+ <h:graphicImage value="/pics/info.gif"
+ onclick="Richfaces.showModalPanel('modalPanelID');" />
+ <f:verbatim>
<br />
<br />
</f:verbatim>
- <div style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
-
+ <div
+ style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+
+ <rich:modalPanel id="modalPanelID3" resizeable="false" autosized="true"
+ minHeight="10" moveable="true">
+ <f:facet name="header">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:outputText value="modal panel" />
+ </a4j:outputPanel>
+ </f:facet>
+
+ <f:facet name="controls">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanelID3');return false;"
+ value="Close" style="cursor:pointer">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </a4j:outputPanel>
+ </f:facet>
+
+ <a4j:outputPanel id="modalView">
+ <a4j:include id="includeModals"
+ viewId="/Panel/Panel.jsp" />
+ </a4j:outputPanel>
+ </rich:modalPanel>
</f:subview>
16 years, 9 months
JBoss Rich Faces SVN: r7896 - trunk/ui/pickList/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-17 09:44:07 -0400 (Thu, 17 Apr 2008)
New Revision: 7896
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-2828
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-17 13:36:02 UTC (rev 7895)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-17 13:44:07 UTC (rev 7896)
@@ -303,15 +303,15 @@
for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
OrderingComponentRendererBase.ControlsHelper helper = SHUTTLE_HELPERS[i];
- boolean isDisabled = helper.getButtonStyleClass().equals(ListShuttleControlsHelper.DISABLED_STYLE_PREF);
- if (helper.getBundlePropertyName().equals(ListShuttleControlsHelper.BUNDLE_REMOVE_ALL_LABEL)) {
+ boolean isDisabled = helper.getButtonStyleClass().equals(PickListControlsHelper.DISABLED_STYLE_PREF);
+ if (helper.getBundlePropertyName().equals(PickListControlsHelper.BUNDLE_REMOVE_ALL_LABEL)) {
enable = isSelectedList;
if(enable != isDisabled) {
enable = true;
} else {
enable = false;
}
- } else if (helper.getBundlePropertyName().equals(ListShuttleControlsHelper.BUNDLE_COPY_ALL_LABEL)) {
+ } else if (helper.getBundlePropertyName().equals(PickListControlsHelper.BUNDLE_COPY_ALL_LABEL)) {
enable = isAvailableList;
if(enable != isDisabled) {
enable = true;
@@ -319,7 +319,7 @@
enable = false;
}
} else {
- if (helper.getButtonStyleClass().equals(ListShuttleControlsHelper.DISABLED_STYLE_PREF)) {
+ if (helper.getButtonStyleClass().equals(PickListControlsHelper.DISABLED_STYLE_PREF)) {
enable = true;
} else {
enable = false;
16 years, 9 months
JBoss Rich Faces SVN: r7895 - trunk/test-applications/facelets/src/main/java/inplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-17 09:36:02 -0400 (Thu, 17 Apr 2008)
New Revision: 7895
Modified:
trunk/test-applications/facelets/src/main/java/inplaceSelect/InplaceSelect.java
Log:
Add test for tabbing and binding
Modified: trunk/test-applications/facelets/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17 13:35:48 UTC (rev 7894)
+++ trunk/test-applications/facelets/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17 13:36:02 UTC (rev 7895)
@@ -1,6 +1,9 @@
package inplaceSelect;
import javax.faces.event.ValueChangeEvent;
+import org.richfaces.component.html.HtmlInplaceSelect;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
public class InplaceSelect {
private boolean applyFromControlsOnly;
@@ -22,6 +25,8 @@
private int tabindex;
private Object value;
private String valueCL;
+ private HtmlInplaceSelect myInplaceSelect;
+ private String bindLabel;
public InplaceSelect() {
valueCL = "---";
@@ -30,8 +35,8 @@
minSelectWidth = "85";
selectWidth = "170";
defaultLabel = "defaultLabel";
- controlsVerticalPosition = "center";
- controlsHorizontalPosition = "left";
+ controlsVerticalPosition = "top";
+ controlsHorizontalPosition = "center";
value = "errors";
listWidth = "200";
listHeight = "150";
@@ -42,8 +47,31 @@
openOnEdit = true;
rendered = true;
immediate = false;
+ myInplaceSelect = new HtmlInplaceSelect();
+ bindLabel = "Click binding";
}
+ public void setmyInplaceSelect(HtmlInplaceSelect myInplaceSelect){
+ this.myInplaceSelect = myInplaceSelect;
+ }
+
+ public HtmlInplaceSelect getmyInplaceSelect(){
+ return myInplaceSelect;
+ }
+
+ public void setbindLabel(String bindLabel){
+ this.bindLabel = bindLabel;
+ }
+
+ public String getbindLabel(){
+ return bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInplaceSelect.getClientId(context);
+ }
+
public void valueChangeListener(ValueChangeEvent event){
valueCL = "valueChangeListener work!";
}
16 years, 9 months
JBoss Rich Faces SVN: r7894 - trunk/test-applications/jsp/src/main/java/inplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-17 09:35:48 -0400 (Thu, 17 Apr 2008)
New Revision: 7894
Modified:
trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
Log:
Add tests for tabbing and binding
Modified: trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17 13:35:24 UTC (rev 7893)
+++ trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17 13:35:48 UTC (rev 7894)
@@ -35,7 +35,7 @@
minSelectWidth = "85";
selectWidth = "170";
defaultLabel = "defaultLabel";
- controlsVerticalPosition = "center";
+ controlsVerticalPosition = "top";
controlsHorizontalPosition = "center";
value = "errors";
listWidth = "200";
@@ -48,7 +48,7 @@
rendered = true;
immediate = false;
myInplaceSelect = new HtmlInplaceSelect();
- bindLabel = "default";
+ bindLabel = "Click Binding";
}
public HtmlInplaceSelect getMyInplaceSelect(){
16 years, 9 months
JBoss Rich Faces SVN: r7893 - trunk/test-applications/facelets/src/main/webapp/InplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-17 09:35:24 -0400 (Thu, 17 Apr 2008)
New Revision: 7893
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml
Log:
Add test for tabbing and binding
Modified: trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml 2008-04-17 12:46:11 UTC (rev 7892)
+++ trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml 2008-04-17 13:35:24 UTC (rev 7893)
@@ -1,5 +1,8 @@
<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="inplaceSelectSubviewID">
+
+<h:inputText value="For verify tabbing"/> <br/>
+
This is because such an error can easily be made at programming level, <br />
and while invisible for the user who does not understand or cannot <br />
acquire the source code, many of those
@@ -67,7 +70,6 @@
onchange="submit();">
<f:selectItem itemLabel="top" itemValue="top" />
<f:selectItem itemLabel="bottom" itemValue="bottom" />
- <f:selectItem itemLabel="center" itemValue="center" />
</h:selectOneRadio>
<h:outputText value="controlsHorizontalPosition"></h:outputText>
@@ -99,5 +101,8 @@
<h:outputText value="openOnEdit"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceSelect.bindLabel}"></h:outputText>
</h:panelGrid><h:commandButton value="ok"></h:commandButton>
</f:subview>
\ No newline at end of file
16 years, 9 months
JBoss Rich Faces SVN: r7892 - branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-17 08:46:11 -0400 (Thu, 17 Apr 2008)
New Revision: 7892
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
Log:
MPanel calls from another MPanel
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-04-17 12:26:38 UTC (rev 7891)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-04-17 12:46:11 UTC (rev 7892)
@@ -33,10 +33,26 @@
<h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID');return false;" value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
+ <rich:spacer height="10" width="10"></rich:spacer>
+ <h:outputLink onclick="Richfaces.showModalPanel('modalPanelID2');return false;" value="Show">
+ <f:verbatim>Show 2nd MP</f:verbatim>
+ </h:outputLink>
+
</rich:modalPanel>
<a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show MP</a>
+ <rich:modalPanel id="modalPanelID2" height="200" width="200" moveable="true">
+ <f:facet name="header">
+ <h:outputText value="Header of the 2nd modal panel" />
+ </f:facet>
+ <h:outputText value="Some text for the 2nd modal Panel" />
+ <rich:spacer height="10" width="10"></rich:spacer>
+ <h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID2');return false;" value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
+
<f:verbatim>
<br />
<br />
16 years, 9 months
JBoss Rich Faces SVN: r7891 - in branches/3.1.x/test-applications/jsp/src/main: webapp/Tooltip and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-17 08:26:38 -0400 (Thu, 17 Apr 2008)
New Revision: 7891
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java
branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
Log:
ToolTip binding was added.
Modified: branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2008-04-17 12:11:15 UTC (rev 7890)
+++ branches/3.1.x/test-applications/jsp/src/main/java/tooltip/Tooltip.java 2008-04-17 12:26:38 UTC (rev 7891)
@@ -1,5 +1,9 @@
package tooltip;
+import org.richfaces.component.html.HtmlToolTip;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
public class Tooltip {
private boolean followMouse;
@@ -16,6 +20,8 @@
private String style;
private String layout;
private String event;
+ private String bindLabel;
+ private HtmlToolTip myToolTip;
public String getEvent() {
return event;
@@ -48,8 +54,27 @@
delay = 0;
style = "none";
layout = "inline";
+ bindLabel = "not ready";
+ myToolTip = new HtmlToolTip();
}
+ public void setBindLabel(String bindLabel){
+ this.bindLabel = bindLabel;
+ }
+ public String getBindLabel(){
+ return bindLabel;
+ }
+ public void setMyToolTip(HtmlToolTip myToolTip){
+ this.myToolTip = myToolTip;
+ }
+ public HtmlToolTip getMyToolTip(){
+ return myToolTip;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myToolTip.getClientId(context).toString();
+ }
+
public String getDirection() {
return direction;
}
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2008-04-17 12:11:15 UTC (rev 7890)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/Tooltip.jsp 2008-04-17 12:26:38 UTC (rev 7891)
@@ -22,7 +22,8 @@
onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
- onshow="showEvent('onshowInputID', 'onshow work!')">
+ onshow="showEvent('onshowInputID', 'onshow work!')"
+ >
<f:facet name="defaultContent">
<f:verbatim>DEFAULT VALUE</f:verbatim>
</f:facet>
@@ -74,7 +75,7 @@
onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
- onshow="showEvent('onshowInputID', 'onshow work!')">
+ onshow="showEvent('onshowInputID', 'onshow work!')" binding="#{tooltip.myToolTip}">
<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
</rich:toolTip>
</rich:panel>
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-04-17 12:11:15 UTC (rev 7890)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-04-17 12:26:38 UTC (rev 7891)
@@ -90,5 +90,8 @@
<h:selectBooleanCheckbox value="#{tooltip.rendered}">
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectBooleanCheckbox>
+
+ <h:commandButton actionListener="#{tooltip.checkBinding}" value="Binding" />
+ <h:outputText value="#{tooltip.bindLabel}" />
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 9 months