JBoss Rich Faces SVN: r10104 - trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-08-14 13:12:06 -0400 (Thu, 14 Aug 2008)
New Revision: 10104
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
RF-4143 - corrected necessary links
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-08-14 16:47:21 UTC (rev 10103)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-08-14 17:12:06 UTC (rev 10104)
@@ -82,9 +82,9 @@
columns =richDataIterators, \t Columns, \t\t\t/images/ico_columns.gif, \t\t/images/cn_Columns.gif, columns.html, jbossrichfaces/freezone/docs/tlddoc/rich/columns.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/taglib/ColumnsTag.html, \t\t\t\t\t/richfaces/columns.jsf
fileUpload =richInputs, \t File Upload, \t\t/images/ico_FileUpload.gif, \t\t/images/cn_FileUpload.gif, fileUpload.html, jbossrichfaces/freezone/docs/tlddoc/rich/fileUpload.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIFileUpload.html, \t\t\t\t\t/richfaces/fileUpload.jsf
StandardSkinning =richMisc, \t Standard Skinning, \t\t/images/ico_StandardComponentsSkinning.gif, \t\t/images/cn_StandardComponentsSkinning.gif, ArchitectureOverview.html\#StControlsSkinning, jbossrichfaces/freezone/docs/tlddoc/rich/StandardSkinning.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html, \t\t\t\t\t/richfaces/standardSkinning.jsf
-plugnskin =richMisc, \t Plug'n'Skin, \t\t/images/ico_plugnskin.gif, \t\t/images/cn_plugnskin.gif, ArchitectureOverview.html\#plugnskin, jbossrichfaces/freezone/docs/tlddoc/rich/plugnskin.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html, \t\t\t\t\t/richfaces/plugnskin.jsf
-hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif, \t\t/images/cn_hotkey.gif, ArchitectureOverview.html\#hotkey, jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/hotKey.jsf
-ajaxValidator=richValidators, \t Ajax Validator, \t\t/images/ico_ajaxValidator.gif, \t\t/images/cn_ajaxValidator.gif, ArchitectureOverview.html\#ajaxValidator, jbossrichfaces/freezone/docs/tlddoc/rich/ajaxValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/ajaxValidator.jsf
-beanValidator=richValidators, \t Bean Validator, \t\t/images/ico_beanValidator.gif, \t\t/images/cn_beanValidator.gif, ArchitectureOverview.html\#beanValidator, jbossrichfaces/freezone/docs/tlddoc/rich/beanValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/beanValidator.jsf
-graphValidator=richValidators, \t Graph Validator, \t\t/images/ico_graphValidator.gif, \t\t/images/cn_graphValidator.gif, ArchitectureOverview.html\#graphValidator, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/graphValidator.jsf
-stateAPI=richMisc, \t State Manager API, \t\t/images/ico_stateAPI.gif, \t\t/images/cn_stateAPI.gif, ArchitectureOverview.html\#stateAPI, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/stateAPI.jsf
+plugnskin =richMisc, \t Plug'n'Skin, \t\t/images/ico_plugnskin.gif, \t\t/images/cn_plugnskin.gif, ArchitectureOverview.html\#PlugnSkin, jbossrichfaces/freezone/docs/tlddoc/rich/plugnskin.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html, \t\t\t\t\t/richfaces/plugnskin.jsf
+hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif, \t\t/images/cn_hotkey.gif, hotKey.html, jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/hotKey.jsf
+ajaxValidator=richValidators, \t Ajax Validator, \t\t/images/ico_ajaxValidator.gif, \t\t/images/cn_ajaxValidator.gif, ajaxValidator.html, jbossrichfaces/freezone/docs/tlddoc/rich/ajaxValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/ajaxValidator.jsf
+beanValidator=richValidators, \t Bean Validator, \t\t/images/ico_beanValidator.gif, \t\t/images/cn_beanValidator.gif, beanValidator.html, jbossrichfaces/freezone/docs/tlddoc/rich/beanValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/beanValidator.jsf
+graphValidator=richValidators, \t Graph Validator, \t\t/images/ico_graphValidator.gif, \t\t/images/cn_graphValidator.gif, graphValidator.html, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/graphValidator.jsf
+stateAPI=richMisc, \t State Manager API, \t\t/images/ico_stateAPI.gif, \t\t/images/cn_stateAPI.gif, ArchitectureOverview.html\#statemanagerapi, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/stateAPI.jsf
16 years, 4 months
JBoss Rich Faces SVN: r10103 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-08-14 12:47:21 -0400 (Thu, 14 Aug 2008)
New Revision: 10103
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/effect.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
Log:
RF-4060 - added almost all links
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -182,6 +182,7 @@
component, it becomes possible to group easily the rows with special HTML attribute.</para>
<para>The columns also could be grouped in a particular way with the help of the <emphasis role="bold"><property><h:columnGroup></property></emphasis>
component that is described in <link linkend="columnGroup">the following chapter</link>.</para>
+ <para><ulink url="http://wiki.jboss.org/wiki/DynamicColumns">Here</ulink> you can find additional information about dynamic columns.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -87,6 +87,20 @@
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandLink.jsf?c=com...">Here</ulink> you can see the example of <emphasis role="bold"
><property><a4j:commandLink></property></emphasis> usage and sources for the given example
</para>
+ <para>
+ <ulink
+ url="http://wiki.jboss.org/auth/wiki/RichFacesConfirmationOnClick">
+ Here</ulink>
+ there is detailed information on how to use JavaScript
+ <code>"window.confirmation"</code>
+ with
+ <code>"onclick"</code>
+ on
+ <emphasis role="bold">
+ <property><a4j:commandLink></property>
+ </emphasis>
+ .
+ </para>
</section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -494,8 +494,20 @@
<para>As it could be seen on the picture above, the font style for header was changed.</para>
-
-
+ <para>
+ Detailed information on how to set
+ <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ border to "0px" you can find
+ <ulink
+ url="http://wiki.jboss.org/auth/wiki/RichFacesDataTableBorderTo0">
+ here
+ </ulink>
+ .
+ </para>
+
+
</section>
<section>
<title>Relevant Resources Links</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/effect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/effect.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/effect.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -208,6 +208,27 @@
<section>
<title>Relevant Resources Links</title>
<para>
+ <ulink
+ url="http://wiki.jboss.org/wiki/CreateABannerUsingEffectsAndPoll">
+ Here
+ </ulink>
+ you can get additional information how to create an image banner
+ using
+ <emphasis role="bold">
+ <property><rich:effect></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis>
+ components and
+ <ulink
+ url="http://wiki.jboss.org/auth/wiki/CreateAHTMLBannerUsingEffectsAndPoll">
+ here
+ </ulink>
+ how to create a HTML banner.
+ </para>
+ <para>
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/effect.jsf?c=effect"
>Here</ulink> you can see the example of <emphasis role="bold">
<property><rich:effect></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -119,7 +119,18 @@
</section>
<section>
<title>Relevant resources links</title>
- <para> <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/jsFunction.jsf?c=jsFu...">Here</ulink>
+ <para>
+ <ulink
+ url="http://wiki.jboss.org/auth/wiki//RichFacesCookbook/JsFunctionJson">
+ Here
+ </ulink>
+ you can find additional information and example on how to use
+ <emphasis role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis>
+ with JSON.
+ </para>
+ <para> <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/jsFunction.jsf?c=jsFu...">Here</ulink>
you can see the example of <emphasis role="bold"
><property><a4j:jsFunction></property></emphasis> usage and sources for the given example.</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -678,6 +678,23 @@
could be found in the <ulink url="http://labs.jboss.com/wiki/ModalPanelValidation">Wiki article</ulink> and on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061517"
>RichFaces Users Forum</ulink>. </para>
+ <para>
+ <ulink
+ url="http://wiki.jboss.org/wiki/RichFacesPleaseWaitBox">
+ Here
+ </ulink>
+ you can find information on how to show a "Please Wait" box and
+ block the input while the Ajax request is processed using combination of
+ <emphasis role="bold">
+ <property><a4j:status></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis>
+ components
+ .
+ </para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -173,16 +173,49 @@
</section>
<section>
- <title>Relevant resources links</title>
+ <title>Relevant resources links</title>
+ <para>
+ <ulink
+ url="http://wiki.jboss.org/wiki/CreateABannerUsingEffectsAndPoll">
+ Here
+ </ulink>
+ you can get additional information how to create an image
+ banner using
+ <emphasis role="bold">
+ <property><rich:effect></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis>
+ components and
+ <ulink
+ url="http://wiki.jboss.org/auth/wiki/CreateAHTMLBannerUsingEffectsAndPoll">
+ here
+ </ulink>
+ how to create a HTML banner.
+ </para>
+ <para>
+ <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf?c=poll">
+ Here
+ </ulink>
+ you can see the example of
+ <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis>
+ usage and sources for the given example.
+ </para>
+ <para>
+ The aditional information about component usage you can find
+ here :
+ <ulink
+ url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">
+ RichFaces Users Forum
+ </ulink>
+ .
+ </para>
- <para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf?c=poll"
- >Here</ulink> you can see the example of <emphasis role="bold">
- <property><a4j:poll></property>
- </emphasis> usage and sources for the given example. </para>
- <para>The aditional information about component usage you can find here : <ulink
- url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">RichFaces
- Users Forum</ulink>.</para>
-
</section>
</chapter>
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -125,7 +125,24 @@
</section>
<section>
<title>Relevant resources links</title>
- <para>
+ <para>
+ <ulink
+ url="http://wiki.jboss.org/wiki/RichFacesPleaseWaitBox">
+ Here
+ </ulink>
+ you can find information on how to show a "Please Wait" box and
+ block the input while the Ajax request is processed using combination of
+ <emphasis role="bold">
+ <property><a4j:status></property>
+ </emphasis>
+ and
+ <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis>
+ components
+ .
+ </para>
+ <para>
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status">Here</ulink> you can see the example of <emphasis role="bold"
><property><a4j:status></property></emphasis> usage and sources for the given example.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -243,7 +243,11 @@
]]></programlisting>
<para>
Information about the <emphasis><property>"process"</property></emphasis> attribute usage you can find <link linkend="process">here</link>.
- </para>
+ </para>
+ <para>
+ <ulink url="http://wiki.jboss.org/wiki/RichFacesSuggestionGettingAdditionalProperties">Here </ulink>
+ you can find example of getting additional properties.
+ </para>
</section>
<section>
@@ -576,6 +580,18 @@
<section>
<title>Relevant Resources Links</title>
<para>
+ Additional information on how to build
+ <emphasis role="bold">
+ <property><rich:HtmlSuggestionBox></property>
+ </emphasis>
+ dynamically you can read
+ <ulink
+ url="http://wiki.jboss.org/wiki/RichFacesCookBookCreatingSuggestionBoxDynamically">
+ here
+ </ulink>
+ .
+ </para>
+ <para>
<ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=s..."
>Here</ulink> you can see the example of <emphasis role="bold"
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2008-08-14 16:11:51 UTC (rev 10102)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2008-08-14 16:47:21 UTC (rev 10103)
@@ -314,6 +314,8 @@
<property>Seam</property>
with MyFaces. Look at myFaces part of this section.
</para>
+ <para>Detailed information on how to integrate Richfaces and Trinidad and how to hide ".seam" postfix in the URL you can find
+ <ulink url="http://wiki.jboss.org/auth/wiki/RichFacesWithTrinidad">here</ulink></para>
</section>
<section id="PortletSupport">
<title>Portlet Support</title>
16 years, 4 months
JBoss Rich Faces SVN: r10102 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-08-14 12:11:51 -0400 (Thu, 14 Aug 2008)
New Revision: 10102
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
https://jira.jboss.org/jira/browse/RF-2826
https://jira.jboss.org/jira/browse/RF-4147
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14 15:58:05 UTC (rev 10101)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14 16:11:51 UTC (rev 10102)
@@ -61,12 +61,7 @@
if (this.bar.cancel) {
this.bar.cancel.observe("mousedown", function(e){this.cancelHandler(e)}.bindAsEventListener(this));
}
-
- //this.bar.bar.observe("mousedown", function(e){this.barMouseDownHandler(e);}.bindAsEventListener(this));
}
- //this.tabber.observe("focus", function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
- //this.tabber.observe("blur", function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
-
},
initEvents : function() {
@@ -130,7 +125,6 @@
tmpValueBlurHandler : function() {
if (this.clickOnBar || this.byTab) {
this.clickOnBar = false;
- //this.byTab = false;
return;
}
@@ -159,10 +153,6 @@
}
},
- /*barMouseDownHandler : function(e) {
- this.clickOnBar = true;
- },*/
-
okHandler : function(e) {
this.save();
Event.stop(e);
@@ -176,9 +166,6 @@
/**
* STATE'S API
*/
- /*endViewState : function() {
- this.deleteViewArtifacts();
- },*/
endEditableState : function() {
this.inplaceInput.style.position = "";
@@ -186,11 +173,7 @@
this.bar.hide();
}
- //Event.stopObserving(this.tabber, "focus", this.switchingStatesHandler.bindAsEventListener(this));
- //this.tabber.observe("focus", this.switchingStatesHandler.bindAsEventListener(this));
-
this.tempValueKeeper.style.clip = 'rect(0px,0px,10px,10px)';
- //this.tempValueKeeper.hide();
},
/*endChangedState : function() {
@@ -206,9 +189,6 @@
var textWidth= this.inplaceInput.offsetWidth;
var inputSize = this.setInputWidth(textWidth);
- //this.tabber.hide();
-
- //this.tempValueKeeper.show();
this.tempValueKeeper.style.clip = 'rect(auto,auto,auto,auto)';
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
@@ -237,7 +217,6 @@
this.changeState(Richfaces.InplaceInput.STATES[2]);
- //this.createNewText(this.valueKeeper.value);1
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.CHANGED.NORMAL;
},
@@ -402,15 +381,9 @@
initDimensions : function() {
//TODO: Crap code magic numbers - I propose 325 and 675
- /*this.bar.style.visibility = "hidden";
- this.bar.show();*/
-
- //var dim = this.bsPanel.getDimensions();
this.BAR_WIDTH = 26;
this.BAR_HEIGHT = 12;
- /*this.bar.hide();
- this.bar.style.visibility = "visible";*/
},
show : function(inpWidth, inpHeight) {
16 years, 4 months
JBoss Rich Faces SVN: r10101 - trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-08-14 11:58:05 -0400 (Thu, 14 Aug 2008)
New Revision: 10101
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/PickListTest.java
Log:
PickListTest fixed and extended
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/PickListTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/PickListTest.java 2008-08-14 15:26:02 UTC (rev 10100)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/PickListTest.java 2008-08-14 15:58:05 UTC (rev 10101)
@@ -7,17 +7,25 @@
public class PickListTest extends SeleniumTestBase {
+ private static final String PICK_LIST = "pickList";
+ private static final String COPY_BTN = "copy";
+ private static final String COPY_ALL_BTN = "copyAll";
+ private static final String REMOVE_BTN = "remove";
+ private static final String REMOVE_ALL_BTN = "removeAll";
+ private static final String SRC_ELEM_PREFIX = ":source::";
+
@Test
public void testPickListComponent(Template template) {
renderPage(template);
String parentId = getParentId() + "_form:";
- String pickListId = "pickList";
- String copyElemId = parentId + pickListId + "discopy";
- String copyAllElemId = parentId + pickListId + "copyAll";
- String removeElemId = parentId + pickListId + "disremove";
- String removeAllElemId = parentId + pickListId + "removeAll";
+ String pickListId = parentId + PICK_LIST;
+ String copyElemId = pickListId + COPY_BTN;
+ String copyAllElemId = pickListId + COPY_ALL_BTN;
+ String removeElemId = pickListId + REMOVE_BTN;
+ String removeAllElemId = pickListId + REMOVE_ALL_BTN;
+
writeStatus("Check move controls customized labels");
AssertTextEquals(copyElemId, "MOVE");
@@ -25,8 +33,8 @@
AssertTextEquals(removeElemId, "TAKE AWAY");
AssertTextEquals(removeAllElemId, "TAKE ALL AWAY");
- String destListId = parentId + pickListId + "tlTbody";
- String srcListId = parentId + pickListId + "tbody";
+ String destListId = parentId + PICK_LIST + "tlTbody";
+ String srcListId = parentId + PICK_LIST + "tbody";
writeStatus("Check initial disposition");
@@ -38,31 +46,67 @@
Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[1]"), "ZHURIK");
Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[2]"), "MELESHKO");
- writeStatus("Try to select first item and check state thereafter");
+ writeStatus("Check buttons state");
- selenium.doubleClick("xpath=//tbody[@id='" + srcListId + "']/tr/td");
+ assertButtonEnabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonEnabled(REMOVE_ALL_BTN);
+ writeStatus("Try to move the first item and check state thereafter");
+
+ String srcElemPrefix = parentId + PICK_LIST + SRC_ELEM_PREFIX;
+ fireMouseEvent(srcElemPrefix + "1", "click", 0, 0, false);
+ clickById(copyElemId);
+
Assert.assertEquals(getNumberOfChildren(srcListId), 5);
Assert.assertEquals(getNumberOfChildren(destListId), 3);
Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[3]"), "LEONTIEV");
+ writeStatus("Test 'MOVE ALL' button");
+
+ clickById(copyAllElemId);
+
+ Assert.assertEquals(getNumberOfChildren(srcListId), 0);
+ Assert.assertEquals(getNumberOfChildren(destListId), 8);
+
+ assertButtonDisabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonEnabled(REMOVE_ALL_BTN);
+
+ writeStatus("Test 'REMOVE ALL' button");
+
+ clickById(removeAllElemId);
+
+ Assert.assertEquals(getNumberOfChildren(srcListId), 8);
+ Assert.assertEquals(getNumberOfChildren(destListId), 0);
+
+ assertButtonEnabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonDisabled(REMOVE_ALL_BTN);
}
+ private void assertButtonEnabled(String btnId) {
+ String id = getParentId() + "_form:" + PICK_LIST;
+ Assert.assertTrue(isVisibleById(id + btnId));
+ Assert.assertFalse(isVisibleById(id + "dis" + btnId));
+ }
+
+ private void assertButtonDisabled(String btnId) {
+ String id = getParentId() + "_form:" + PICK_LIST;
+ Assert.assertFalse(isVisibleById(id + btnId));
+ Assert.assertTrue(isVisibleById(id + "dis" + btnId));
+ }
+
/**
* Returns number of children for DOM element with given id.
* @param elemId DOM element id
* @return number of children
*/
private int getNumberOfChildren(String elemId) {
- int retVal = -1;
- try {
- retVal = Integer.parseInt(runScript("dom=selenium.browserbot.getCurrentWindow().$('" + elemId
- + "').childElements().size()"));
- } catch (Exception e) {
- Assert.fail(e.getMessage());
- }
-
- return retVal;
+ return selenium.getXpathCount("//*[@id='" + elemId + "']/*").intValue();
}
public String getTestUrl() {
16 years, 4 months
JBoss Rich Faces SVN: r10100 - in trunk/ui/inplaceInput/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-08-14 11:26:02 -0400 (Thu, 14 Aug 2008)
New Revision: 10100
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
https://jira.jboss.org/jira/browse/RF-2826
https://jira.jboss.org/jira/browse/RF-4147
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14 15:02:08 UTC (rev 10099)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14 15:26:02 UTC (rev 10100)
@@ -11,7 +11,7 @@
this.tempValueKeeper = $(temValueKeepId);
this.valueKeeper = $(valueKeepId);
this.attributes = attributes;
- this.tabber = $(tabberId);
+ //this.tabber = $(tabberId);
this.events = events;
this.classes = classes;
@@ -50,6 +50,7 @@
this.inplaceInput.observe("mouseover", this.inplaceMouseOverHandler.bindAsEventListener(this));
//TODO: do like above - no need to create extra functions
+ this.tempValueKeeper.observe("focus", function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
this.tempValueKeeper.observe("blur", function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
this.tempValueKeeper.observe("keydown", function(e){this.tmpValueKeyDownHandler(e);}.bindAsEventListener(this));
@@ -63,10 +64,9 @@
//this.bar.bar.observe("mousedown", function(e){this.barMouseDownHandler(e);}.bindAsEventListener(this));
}
+ //this.tabber.observe("focus", function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
+ //this.tabber.observe("blur", function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
- this.tabber.observe("focus", function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
- this.tabber.observe("blur", function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
-
},
initEvents : function() {
@@ -106,26 +106,16 @@
//TODO: Event.element here?
switchingStatesHandler : function(e) {
+ if (this.skipSwitching) {
+ this.skipSwitching = false;
+ return;
+ }
var el = (e.srcElement) ? e.srcElement : e.target;
- if ((el.id == this.inplaceInput.id) || (e.type == "focus")) {
-
- var target;
- if (e.target) {
- target = e.target;
- } else if (target = e.srcElement) {
- target = e.srcElement;
- } else {
- //TO DO: to catch this exception
- }
- if (target.tagName.toLowerCase() == "input") {
- if (target.id == this.tabber.id) {
- this.byTab = true;
- } else {
- return;
- }
- }
- this.edit();
- }
+ if (el.id == this.inplaceInput.id) {
+ this.skipSwitching = true;
+ this.tempValueKeeper.focus();
+ }
+ this.edit();
},
edit: function (){
@@ -140,7 +130,7 @@
tmpValueBlurHandler : function() {
if (this.clickOnBar || this.byTab) {
this.clickOnBar = false;
- this.byTab = false;
+ //this.byTab = false;
return;
}
@@ -164,7 +154,7 @@
break;
case Event.KEY_TAB :
this.save();
- this.byTab = true;
+ //this.byTab = true;
break;
}
},
@@ -195,8 +185,12 @@
if (this.bar) {
this.bar.hide();
}
- this.tabber.show();
- this.tempValueKeeper.hide();
+
+ //Event.stopObserving(this.tabber, "focus", this.switchingStatesHandler.bindAsEventListener(this));
+ //this.tabber.observe("focus", this.switchingStatesHandler.bindAsEventListener(this));
+
+ this.tempValueKeeper.style.clip = 'rect(0px,0px,10px,10px)';
+ //this.tempValueKeeper.hide();
},
/*endChangedState : function() {
@@ -204,14 +198,18 @@
},*/
startEditableState : function() {
+ if (this.currentState == Richfaces.InplaceInput.STATES[1]) {
+ return;
+ }
this.inplaceInput.style.position = "relative";
this.changeState(Richfaces.InplaceInput.STATES[1]);
var textWidth= this.inplaceInput.offsetWidth;
var inputSize = this.setInputWidth(textWidth);
- this.tabber.hide();
+ //this.tabber.hide();
- this.tempValueKeeper.show();
+ //this.tempValueKeeper.show();
+ this.tempValueKeeper.style.clip = 'rect(auto,auto,auto,auto)';
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
if (this.bar) {
@@ -222,7 +220,6 @@
//TODO: implement Select all method?
Richfaces.InplaceInput.textboxSelect(this.tempValueKeeper, 0, this.tempValueKeeper.value.length);
}
- this.tempValueKeeper.focus();
},
startViewState : function() {
@@ -370,14 +367,14 @@
},
deleteViewArtifacts : function () {
- var text = this.inplaceInput.childNodes[4];
+ var text = this.inplaceInput.childNodes[3];
if (text) {
this.inplaceInput.removeChild(text);
}
},
//TODO: search within childNodes for textNode.value().trim().length == 0?
getCurrentText : function() {
- return this.inplaceInput.childNodes[4];
+ return this.inplaceInput.childNodes[3];
},
createNewText : function(text) {
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-14 15:02:08 UTC (rev 10099)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-14 15:26:02 UTC (rev 10100)
@@ -86,10 +86,9 @@
}
</jsp:scriptlet>
- <input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" tabindex='#{component.attributes["tabindex"]}'/>
<input id='#{clientId}tempValue'
class='rich-inplace-field'
- style='display:none;'
+ style='clip:rect(0px,0px,10px,10px)'
type='text'
autocomplete="off"
value='#{fieldValue}'
16 years, 4 months
JBoss Rich Faces SVN: r10099 - trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2008-08-14 11:02:08 -0400 (Thu, 14 Aug 2008)
New Revision: 10099
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java
Log:
https://jira.jboss.org/jira/browse/RF-4173
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java 2008-08-14 14:41:09 UTC (rev 10098)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/html/SubTableRenderer.java 2008-08-14 15:02:08 UTC (rev 10099)
@@ -113,4 +113,8 @@
return UISubTable.class;
}
+ @Override
+ public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
+ encodeRows(context, (UIDataTable) component);
+ }
}
16 years, 4 months
JBoss Rich Faces SVN: r10098 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: beanValidator and 15 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-08-14 10:41:09 -0400 (Thu, 14 Aug 2008)
New Revision: 10098
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/extended-data-model.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/externalFilteringUsage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/log/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
Log:
Bug fixing(RF-4180)
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -39,7 +39,7 @@
<ui:include src="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="openlabel" value="Validation Bean Code" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -23,7 +23,7 @@
<div class="sample-container" >
<ui:include src="/richfaces/beanValidator/examples/simple.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="openlabel" value="Page Code" />
+ <ui:param name="openlabel" value="View Source" />
<ui:param name="sourcepath" value="/richfaces/beanValidator/examples/simple.xhtml"/>
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -15,7 +15,7 @@
<div class="sample-container" >
<ui:include src="/richfaces/calendar/examples/organiser.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="openlabel" value="Page source" />
+ <ui:param name="openlabel" value="View Source" />
<ui:param name="sourcepath" value="/richfaces/calendar/examples/organiser.xhtml"/>
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/extended-data-model.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/extended-data-model.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/extended-data-model.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -36,7 +36,7 @@
<ui:include src="/richfaces/dataTable/examples/extendedDataModel.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/dataTable/examples/extendedDataModel.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -17,7 +17,7 @@
<ui:include src="/richfaces/dataTableScroller/examples/simpleScroller.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/dataTableScroller/examples/simpleScroller.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/externalFilteringUsage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/externalFilteringUsage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/externalFilteringUsage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -33,7 +33,7 @@
<div class="sample-container">
<ui:include src="/richfaces/filteringFeature/examples/externalFiltering.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
<ui:param name="sourcepath" value="/richfaces/filteringFeature/examples/externalFiltering.xhtml"/>
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -31,7 +31,7 @@
<ui:include src="/richfaces/include/examples/wizard.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/include/examples/wizard.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/include/examples/wstep1.xhtml"/>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -25,7 +25,7 @@
<ui:include src="/richfaces/insert/examples/groovy.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/insert/examples/groovy.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/log/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/log/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/log/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -23,7 +23,7 @@
<ui:include src="/richfaces/log/examples/log.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/log/examples/log.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -37,7 +37,7 @@
<ui:include src="/richfaces/mediaOutput/examples/jpegSample.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/mediaOutput/examples/jpegSample.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -22,7 +22,7 @@
<br/><br/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/componentControl/examples/mpusage.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
@@ -37,7 +37,7 @@
<ui:include src="/richfaces/modalPanel/examples/simplePanel.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/modalPanel/examples/simplePanel.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -27,7 +27,7 @@
<ui:include src="/richfaces/paint2D/examples/painter.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/paint2D/examples/painter.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/portlet/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -39,7 +39,7 @@
<ui:include src="/richfaces/push/examples/push.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/push/examples/push.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</ui:remove>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -74,7 +74,7 @@
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath"
value="/richfaces/push/examples/push.xhtml" />
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath"
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -31,7 +31,7 @@
<ui:include src="/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</fieldset>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel/usage.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel/usage.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -37,7 +37,7 @@
<br/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/togglePanel/examples/tipsPanel.xhtml"/>
- <ui:param name="openlabel" value="View Page Source"/>
+ <ui:param name="openlabel" value="View Source"/>
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -16,7 +16,7 @@
<ui:include src="/richfaces/tree/examples/simpleDnd.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/tree/examples/simpleDnd.xhtml"/>
- <ui:param name="openlabel" value="Open Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
</div>
</ui:define>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2008-08-14 14:41:09 UTC (rev 10098)
@@ -17,7 +17,7 @@
<ui:include src="/richfaces/tree/examples/simple.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/tree/examples/simple.xhtml"/>
- <ui:param name="openlabel" value="Open Page Source" />
+ <ui:param name="openlabel" value="View Source" />
</ui:include>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/tree/examples/simple-tree-data.properties"/>
16 years, 4 months
JBoss Rich Faces SVN: r10097 - trunk/test-applications/facelets/src/main/webapp/Gmap.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-14 10:27:57 -0400 (Thu, 14 Aug 2008)
New Revision: 10097
Modified:
trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
Log:
new gMapKey
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2008-08-14 14:27:15 UTC (rev 10096)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml 2008-08-14 14:27:57 UTC (rev 10097)
@@ -6,7 +6,7 @@
gmapVar="map" oninit="#{event.oninit}" showGLargeMapControl="#{gmap.showGLargeMapControl}" showGMapTypeControl="#{gmap.showGMapTypeControl}"
showGScaleControl="#{gmap.showGScaleControl}" locale="#{gmap.locale}"
onclick="#{event.onclick}" ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
- gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA" style="#{style.style}" styleClass="#{style.styleClass}" binding="#{gmap.htmlGMap}" />
+ style="#{style.style}" styleClass="#{style.styleClass}" binding="#{gmap.htmlGMap}" gmapKey="ABQIAAAA0U0BoP4B9ZWzZ0Uncpxc9BSkiBOrQ7kN79cmmrq2_ldwWa2-oxT-qOZFpk4tRWODJPlZHWqQTROI4Q"/>
<h:panelGroup>
<f:verbatim><br />
16 years, 4 months
JBoss Rich Faces SVN: r10096 - in trunk: framework/impl/src/main/java/org/richfaces/model and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-08-14 10:27:15 -0400 (Thu, 14 Aug 2008)
New Revision: 10096
Added:
trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java
Removed:
trunk/framework/impl/src/main/java/org/richfaces/model/AbstractModifiableModel.java
Modified:
trunk/framework/impl/src/main/java/org/richfaces/model/ModifiableModel.java
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
Log:
refactoring
Added: trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/model/Modifiable.java 2008-08-14 14:27:15 UTC (rev 10096)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.model;
+
+import java.util.List;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+public interface Modifiable{
+
+ void modify(List<FilterField> filterFields, List<SortField2> sortFields);
+}
Deleted: trunk/framework/impl/src/main/java/org/richfaces/model/AbstractModifiableModel.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/model/AbstractModifiableModel.java 2008-08-14 14:06:43 UTC (rev 10095)
+++ trunk/framework/impl/src/main/java/org/richfaces/model/AbstractModifiableModel.java 2008-08-14 14:27:15 UTC (rev 10096)
@@ -1,17 +0,0 @@
-/**
- *
- */
-package org.richfaces.model;
-
-import java.util.List;
-
-import org.ajax4jsf.model.ExtendedDataModel;
-
-/**
- * @author Konstantin Mishin
- *
- */
-public abstract class AbstractModifiableModel extends ExtendedDataModel{
-
- public abstract void modify(List<FilterField> filterFields, List<SortField2> sortFields);
-}
Modified: trunk/framework/impl/src/main/java/org/richfaces/model/ModifiableModel.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/model/ModifiableModel.java 2008-08-14 14:06:43 UTC (rev 10095)
+++ trunk/framework/impl/src/main/java/org/richfaces/model/ModifiableModel.java 2008-08-14 14:27:15 UTC (rev 10096)
@@ -28,7 +28,7 @@
* @author Konstantin Mishin
*
*/
-public class ModifiableModel extends AbstractModifiableModel{
+public class ModifiableModel extends ExtendedDataModel implements Modifiable{
private class RowKeyWrapperFactory extends ObjectWrapperFactory {
@@ -176,7 +176,6 @@
}
- @Override
public void modify(List<FilterField> filterFields, List<SortField2> sortFields) {
int rowCount = originalModel.getRowCount();
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-08-14 14:06:43 UTC (rev 10095)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-08-14 14:27:15 UTC (rev 10096)
@@ -38,7 +38,7 @@
import org.ajax4jsf.component.SequenceDataAdaptor;
import org.ajax4jsf.model.ExtendedDataModel;
-import org.richfaces.model.AbstractModifiableModel;
+import org.richfaces.model.Modifiable;
import org.richfaces.model.FilterField;
import org.richfaces.model.ModifiableModel;
import org.richfaces.model.SortField2;
@@ -122,14 +122,15 @@
ExtendedDataModel dataModel = super.createDataModel();
if ((filterFields != null && !filterFields.isEmpty())
|| (sortFields != null && !sortFields.isEmpty())) {
- AbstractModifiableModel modifiableModel = null;
- if (dataModel instanceof AbstractModifiableModel) {
- modifiableModel = (AbstractModifiableModel) dataModel;
+ Modifiable modifiable = null;
+ if (dataModel instanceof Modifiable) {
+ modifiable = (Modifiable) dataModel;
} else {
- modifiableModel = new ModifiableModel(dataModel, getVar());
+ ModifiableModel modifiableModel = new ModifiableModel(dataModel, getVar());
+ dataModel = modifiableModel;
+ modifiable = modifiableModel;
}
- modifiableModel.modify(filterFields, sortFields);
- dataModel = modifiableModel;
+ modifiable.modify(filterFields, sortFields);
}
return dataModel;
}
16 years, 4 months
JBoss Rich Faces SVN: r10095 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-08-14 10:06:43 -0400 (Thu, 14 Aug 2008)
New Revision: 10095
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4161
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-08-14 13:35:11 UTC (rev 10094)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-08-14 14:06:43 UTC (rev 10095)
@@ -19,7 +19,7 @@
<h:form>
<h:panelGrid columns="2" width="100%" columnClasses="col1,col2">
- <rich:tree style="width:300px" nodeSelectListener="#{simpleTreeDndBean.processSelection}"
+ <rich:tree ajaxKeys="#{null}" style="width:300px" nodeSelectListener="#{simpleTreeDndBean.processSelection}"
reRender="selectedNode" ajaxSubmitSelection="true" switchType="client"
value="#{simpleTreeDndBean.treeNode}" var="item" id="tree" dragType="pic"
acceptedTypes="pic" dragIndicator="indicator"
16 years, 4 months