JBoss Rich Faces SVN: r6858 - trunk/framework/test/src/main/java/org/ajax4jsf/tests.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-17 10:45:17 -0400 (Mon, 17 Mar 2008)
New Revision: 6858
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
Log:
Fixed tests for panel menu.
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-17 14:44:00 UTC (rev 6857)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-17 14:45:17 UTC (rev 6858)
@@ -47,6 +47,7 @@
import javax.faces.render.Renderer;
import javax.servlet.http.HttpServletResponse;
+import org.ajax4jsf.component.AjaxViewRoot;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.context.AjaxContextImpl;
import org.ajax4jsf.renderkit.AjaxViewRootRenderer;
@@ -152,7 +153,11 @@
request.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, ajaxContext);
// Setup ViewHandler / ViewRoot.
application.setViewHandler(new MockViewHandler(application.getViewHandler()));
- facesContext.setViewRoot(application.getViewHandler().createView(facesContext, facesContext.getViewRoot().getViewId()));
+
+ UIViewRoot root = new AjaxViewRoot();
+ root.setViewId("/viewId");
+ root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);
+ facesContext.setViewRoot(root);
// Setup Skin avd version variables.
servletContext.setAttribute("a4j", new VersionBean());
servletContext.setAttribute("a4jSkin", new SkinBean());
16 years, 10 months
JBoss Rich Faces SVN: r6857 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-17 10:44:00 -0400 (Mon, 17 Mar 2008)
New Revision: 6857
Modified:
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
Log:
RF-672 - corrected name of attribute for <a4j:jsFunction>
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-03-17 14:43:13 UTC (rev 6856)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-03-17 14:44:00 UTC (rev 6857)
@@ -80,10 +80,9 @@
...
<h:form>
...
- <a4j:jsFunction name="callScript" data="#{bean.someProperty1 }
- "reRender="someComponent" oncomplete="myScript(data.subProperty1, data.subProperty2)">
- <a4j:actionParam name="param_name" assignTo="#{bean.someProperty2}">
- </a4j:actionParam>
+ <a4j:jsFunction name="callScript" data="#{bean.someProperty1}"
+ reRender="someComponent" oncomplete="myScript(data.subProperty1, data.subProperty2)">
+ <a4j:actionParam name="param_name" assignTo="#{bean.someProperty2}"/>
</a4j:jsFunction>
...
</h:form>
16 years, 10 months
JBoss Rich Faces SVN: r6856 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-17 10:43:13 -0400 (Mon, 17 Mar 2008)
New Revision: 6856
Modified:
trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
Log:
RF-926 - updated code for <a4j:commandButton> component
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2008-03-17 14:22:35 UTC (rev 6855)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandButton.xml 2008-03-17 14:43:13 UTC (rev 6856)
@@ -35,7 +35,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:commandButton reRender="someData" action="#{bean.action1}" value="Link"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+<a4j:commandButton reRender="someData" action="#{bean.action1}" value="Link"/>
+...]]></programlisting>
</section>
<section>
@@ -55,8 +57,9 @@
<para><emphasis role="bold"><property><a4j:commandButton></property></emphasis> is used in the same way as <emphasis role="bold"><property><h:commandButton></property></emphasis>, but with definition of the area that is updated after the response comes back from the server.</para>
<para>This definition of the component provides a link, a click on the link causes an Ajax form submit on the server, <property>action1</property> method performance, and rendering of the component with <property>someData</property> id after the response comes back from the server.</para>
<para>The component <emphasis role="bold"><property><a4j:commandButton></property></emphasis> placed on a page generates the following HTML code:</para>
- <programlisting role="JAVA"><![CDATA[<input type="submit" onclick="A4J.AJAX.Submit(...request parameters);return false;" value="sort"/>
-]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+<input type="submit" onclick="A4J.AJAX.Submit(...request parameters);return false;" value="sort"/>
+...]]></programlisting>
<para>Hence, the utility method <property>A4J.AJAX.Submit</property> is called on a click, the method performs Ajax request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
<note>
<title>Note:</title>
@@ -67,7 +70,7 @@
depends on the location of <emphasis role="bold"><property><a4j:commandButton></property></emphasis>. If the <property>commandButton</property> is situated outside the re-rendered region
you can use keyword <property>'this'</property> as in the following example:
</para>
- <programlisting role="JAVA"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<h:form id="form">
<a4j:commandButton id="cbutton" action="director.rollCamera"
onclick="this.disabled=true"
@@ -80,7 +83,7 @@
the <emphasis><property>"oncomplete"</property></emphasis> attribute has a problem obtaining a reference of the <property>commandButton</property> object
when using the keyword <property>'this'</property>. In this case you can use the <emphasis><property>"oncomplete"</property></emphasis> attribute as in the following example:
</para>
- <programlisting role="JAVA"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<h:form id="form">
<a4j:commandButton id="cbutton" action="director.rollCamera"
onclick="this.disabled=true"
16 years, 10 months
JBoss Rich Faces SVN: r6855 - trunk/ui/panelmenu/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-17 10:22:35 -0400 (Mon, 17 Mar 2008)
New Revision: 6855
Modified:
trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuGroup.jspx
trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuItem.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2281
Modified: trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuGroup.jspx
===================================================================
--- trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuGroup.jspx 2008-03-17 14:13:17 UTC (rev 6854)
+++ trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuGroup.jspx 2008-03-17 14:22:35 UTC (rev 6855)
@@ -27,28 +27,30 @@
<f:call name="utils.encodePassThru" />
- <tr id="row_#{clientId}"
- class="#{this:getSelectedClass( context, component )}" >
- <td class="dr-pmenu-nowrap #{this:getIconClass( context, component,'left')}">
- <f:call name="insertSpacerImages" />
- <f:call name="insertImage">
- <f:parameter value="left" />
- </f:call>
- </td>
- <td style="width:100%" id="icon#{clientId}" class="dr-pmenu-group-self-label #{this:getLabelClass( context, component )}" >
- <input type="hidden" name="panelMenuState#{clientId}"
- value="#{isNodeOpened}" />
-
- <input type="hidden" name="panelMenuAction#{clientId}"
- value="" />
- <f:call name="insertLabel"/>
- </td>
- <td class="#{this:getIconClass( context, component,'right')}">
- <f:call name="insertImage">
- <f:parameter value="right" />
- </f:call>
- </td>
- </tr>
+ <tbody>
+ <tr id="row_#{clientId}"
+ class="#{this:getSelectedClass( context, component )}" >
+ <td class="dr-pmenu-nowrap #{this:getIconClass( context, component,'left')}">
+ <f:call name="insertSpacerImages" />
+ <f:call name="insertImage">
+ <f:parameter value="left" />
+ </f:call>
+ </td>
+ <td style="width:100%" id="icon#{clientId}" class="dr-pmenu-group-self-label #{this:getLabelClass( context, component )}" >
+ <input type="hidden" name="panelMenuState#{clientId}"
+ value="#{isNodeOpened}" />
+
+ <input type="hidden" name="panelMenuAction#{clientId}"
+ value="" />
+ <f:call name="insertLabel"/>
+ </td>
+ <td class="#{this:getIconClass( context, component,'right')}">
+ <f:call name="insertImage">
+ <f:parameter value="right" />
+ </f:call>
+ </td>
+ </tr>
+ </tbody>
</table>
<vcp:body>
<f:call name="renderChildren" />
Modified: trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuItem.jspx
===================================================================
--- trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuItem.jspx 2008-03-17 14:13:17 UTC (rev 6854)
+++ trunk/ui/panelmenu/src/main/templates/org/richfaces/htmlPanelMenuItem.jspx 2008-03-17 14:22:35 UTC (rev 6855)
@@ -23,27 +23,29 @@
<f:parameter value="onclick,onmousedown,onmouseup,onmousemove" />
</f:call>
- <tr id="row_#{clientId}"
- class="#{this:getSelectedClass( context, component )}" >
- <td class="dr-pmenu-nowrap #{this:getIconClass( context, component,'left')}">
- <f:call name="insertSpacerImages" />
- <f:call name="insertImage">
- <f:parameter value="left" />
- </f:call>
- </td>
- <td style="width:100%" id="icon#{clientId}" class="dr-pmenu-group-self-label #{this:getLabelClass( context, component )}" >
- <input type="hidden" name="panelMenuAction#{clientId}" value=""/>
- <f:call name="insertLabel"/>
- <vcp:body>
- <f:call name="renderChildren" />
- </vcp:body>
- </td>
- <td class="#{this:getIconClass( context, component,'right')}">
- <f:call name="insertImage">
- <f:parameter value="right" />
- </f:call>
- </td>
- </tr>
+ <tbody>
+ <tr id="row_#{clientId}"
+ class="#{this:getSelectedClass( context, component )}" >
+ <td class="dr-pmenu-nowrap #{this:getIconClass( context, component,'left')}">
+ <f:call name="insertSpacerImages" />
+ <f:call name="insertImage">
+ <f:parameter value="left" />
+ </f:call>
+ </td>
+ <td style="width:100%" id="icon#{clientId}" class="dr-pmenu-group-self-label #{this:getLabelClass( context, component )}" >
+ <input type="hidden" name="panelMenuAction#{clientId}" value=""/>
+ <f:call name="insertLabel"/>
+ <vcp:body>
+ <f:call name="renderChildren" />
+ </vcp:body>
+ </td>
+ <td class="#{this:getIconClass( context, component,'right')}">
+ <f:call name="insertImage">
+ <f:parameter value="right" />
+ </f:call>
+ </td>
+ </tr>
+ </tbody>
</table>
</div>
</f:root>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6854 - trunk/samples/calendar-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-03-17 10:13:17 -0400 (Mon, 17 Mar 2008)
New Revision: 6854
Modified:
trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
Log:
RF-2359
Modified: trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
===================================================================
--- trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2008-03-17 14:11:39 UTC (rev 6853)
+++ trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2008-03-17 14:13:17 UTC (rev 6854)
@@ -4,6 +4,7 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/calendar" prefix="calendar" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/modal-panel" prefix="mp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
@@ -182,9 +183,29 @@
<f:verbatim><br /></f:verbatim>
<h:commandButton value="Submit"/>
+
+ <hr/>
+ <mp:modalPanel id="_panel" showWhenRendered="false" left="300" top="300" >
+ <f:facet name="header">
+ <f:verbatim>
+ Header
+ </f:verbatim>
+ </f:facet>
+
+ <f:facet name="controls">
+ <f:verbatim>
+ <a href="#" onclick="Richfaces.hideModalPanel('_panel');">close</a>
+ </f:verbatim>
+ </f:facet>
+
+ <calendar:calendar popup="true" />
+ </mp:modalPanel>
+
+ <f:verbatim>
+ <input type="button" value="Show Modal Panel Bug" onclick="Richfaces.showModalPanel('_panel');"></input>
+ </f:verbatim>
-
</h:form>
</f:view>
</body>
16 years, 10 months
JBoss Rich Faces SVN: r6853 - management/design/listShuttle.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-17 10:11:39 -0400 (Mon, 17 Mar 2008)
New Revision: 6853
Modified:
management/design/listShuttle/FuncSpec - ListShuttle.doc
Log:
RF-2016
Modified: management/design/listShuttle/FuncSpec - ListShuttle.doc
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Rich Faces SVN: r6852 - Plan/3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-03-17 09:56:57 -0400 (Mon, 17 Mar 2008)
New Revision: 6852
Modified:
trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
Log:
Modified: trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Rich Faces SVN: r6851 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-03-17 09:54:59 -0400 (Mon, 17 Mar 2008)
New Revision: 6851
Modified:
trunk/ui/dataTable/src/main/config/component/dataTable.xml
Log:
RF-2503
Modified: trunk/ui/dataTable/src/main/config/component/dataTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-03-17 13:50:00 UTC (rev 6850)
+++ trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-03-17 13:54:59 UTC (rev 6851)
@@ -185,6 +185,12 @@
<classname>java.util.Collection</classname>
<description></description>
</property>
+ <property hidden="true">
+ <name>sortFields</name>
+ </property>
+ <property hidden="true">
+ <name>filterFields</name>
+ </property>
<property>
<name>sortMode</name>
<classname>java.lang.String</classname>
16 years, 10 months
JBoss Rich Faces SVN: r6850 - trunk/ui/orderingList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-03-17 09:50:00 -0400 (Mon, 17 Mar 2008)
New Revision: 6850
Modified:
trunk/ui/orderingList/src/main/config/component/orderinglist.xml
Log:
http://jira.jboss.com/jira/browse/RF-2530
Modified: trunk/ui/orderingList/src/main/config/component/orderinglist.xml
===================================================================
--- trunk/ui/orderingList/src/main/config/component/orderinglist.xml 2008-03-17 13:32:21 UTC (rev 6849)
+++ trunk/ui/orderingList/src/main/config/component/orderinglist.xml 2008-03-17 13:50:00 UTC (rev 6850)
@@ -145,32 +145,8 @@
middle (default) - controls should be rendered centered relatively to a list.
</description>
<defaultvalue><![CDATA["middle"]]></defaultvalue>
- </property>
+ </property>
<property>
- <name>sortIconUp</name>
- <classname>java.lang.String</classname>
- <description>
- Specifies an icon for a sorting marker in sorting 'up' position.
- </description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
- </property>
- <property>
- <name>sortIconDown</name>
- <classname>java.lang.String</classname>
- <description>
- Specifies an icon for a sorting marker in sorting 'down' position.
- </description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
- </property>
- <property>
- <name>sortIcon</name>
- <classname>java.lang.String</classname>
- <description>
- Specifies a default icon for a sorting marker in non-sorting position.
- </description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
- </property>
- <property>
<name>orderControlsVisible</name>
<classname>boolean</classname>
<description>
16 years, 10 months
JBoss Rich Faces SVN: r6849 - trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-17 09:32:21 -0400 (Mon, 17 Mar 2008)
New Revision: 6849
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-2539
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-03-17 12:56:34 UTC (rev 6848)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-03-17 13:32:21 UTC (rev 6849)
@@ -673,12 +673,10 @@
this.changed = false;
var oldValue = this.element.value;
- if (this.oldValue!=oldValue)
- {
+ if (this.oldValue!=oldValue) {
this.startPosition = 0;
- this.endPosition = oldValue.length-1;
- if (this.options.tokens.length!=0)
- {
+ this.endPosition = oldValue.length;
+ if (this.options.tokens.length!=0) {
var tokens = this.options.tokens.join('');
this.startPosition = this.endPosition = Richfaces.Selection.getStart(this.element);
@@ -712,8 +710,7 @@
var itm="";
this.selectedItems = [];
var newItemsCache = {};
- if (this.options.tokens.length!=0)
- {
+ if (this.options.tokens.length!=0) {
var re = new RegExp('\\s*[\\'+this.options.tokens.join("|\\")+']\\s*');
var items = value.split(re);
for (var i=0;i<items.length;i++)
@@ -723,11 +720,11 @@
this.selectedItems.push(itm);
newItemsCache[itm.text] = itm;
}
- }
- else
- {
+ } else {
itm = this.selectedItemsCache[value];
- if (!itm) itm = {text:items[i], object: null};
+ if (!itm) {
+ itm = {text:value, object: null};
+ }
this.selectedItems.push(itm);
newItemsCache[itm.text] = itm;
}
16 years, 10 months