JBoss Rich Faces SVN: r6948 - trunk/ui/combobox/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-19 10:13:33 -0400 (Wed, 19 Mar 2008)
New Revision: 6948
Modified:
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2608
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-19 13:59:57 UTC (rev 6947)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-19 14:13:33 UTC (rev 6948)
@@ -188,7 +188,7 @@
buttonIconInactive = "url('" + buttonIconInactive + "')";
}
variables.setVariable("buttonIconInactive", buttonIconInactive);
- variables.setVariable("enableManualInput", component.isEnableManualInput());
+ variables.setVariable("enableManualInput", !component.isEnableManualInput());
]]>
16 years, 10 months
JBoss Rich Faces SVN: r6947 - trunk/ui/datascroller/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-19 09:59:57 -0400 (Wed, 19 Mar 2008)
New Revision: 6947
Modified:
trunk/ui/datascroller/src/main/config/component/datascroller.xml
Log:
Desciption for RF-2182 updated
Modified: trunk/ui/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/ui/datascroller/src/main/config/component/datascroller.xml 2008-03-19 13:43:36 UTC (rev 6946)
+++ trunk/ui/datascroller/src/main/config/component/datascroller.xml 2008-03-19 13:59:57 UTC (rev 6947)
@@ -249,7 +249,7 @@
<property>
<name>page</name>
<classname>int</classname>
- <description><![CDATA[If page >= 1 then it's a number of page to show, if page <= -1 then the page to show is pageCount + page + 1, so that if page="-1" the last page is shown]]></description>
+ <description><![CDATA[If page >= 1 then it's a number of page to show]]></description>
</property>
<property>
16 years, 10 months
JBoss Rich Faces SVN: r6946 - trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-19 09:43:36 -0400 (Wed, 19 Mar 2008)
New Revision: 6946
Modified:
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
SuggestionBoxRenderer optimized
Modified: trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
--- trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-03-19 13:31:38 UTC (rev 6945)
+++ trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-03-19 13:43:36 UTC (rev 6946)
@@ -23,7 +23,6 @@
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -62,8 +61,7 @@
*/
public class SuggestionBoxRenderer extends AjaxComponentRendererBase {
- private static final Map<String, Pattern> tokensCache =
- Collections.synchronizedMap(new ReferenceMap<String, Pattern>());
+ private static final Map<String, Pattern> tokensCache = new ReferenceMap<String, Pattern>();
/**
* Component options.
@@ -343,9 +341,8 @@
if (HtmlUtil.shouldWriteId(parent)) {
return parent;
} else {
- throw new FacesException("SuggestionBox cannot be attached to component having id: " +
- parent.getId() + " because its client identifier is likely to not be written into browser! " +
- "Please try to set id manually!");
+ throw new FacesException("SuggestonBox cannot be attached to the component with id = " + parent.getId() +
+ ", because a client identifier of the component won�t be rendered onto the page. Please, set the identifier.");
}
} else {
throw new FacesException("Parent component is null for SuggestionBox " +
16 years, 10 months
JBoss Rich Faces SVN: r6945 - branches/3.1.x/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo.
by richfaces-svn-commits@lists.jboss.org
Author: vbaranov
Date: 2008-03-19 09:31:38 -0400 (Wed, 19 Mar 2008)
New Revision: 6945
Modified:
branches/3.1.x/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java
Log:
http://jira.jboss.com/jira/browse/RF-2526
Modified: branches/3.1.x/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java
===================================================================
--- branches/3.1.x/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java 2008-03-19 13:28:56 UTC (rev 6944)
+++ branches/3.1.x/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java 2008-03-19 13:31:38 UTC (rev 6945)
@@ -30,6 +30,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -279,6 +280,33 @@
}
}
}
+ // sort taglib models by artifactIds in ASC order
+ Collections.sort(taglibModels, new Comparator() {
+ /**
+ * Compares two <code>Model</code> objects by artifactIds
+ * for sorting in ASC order
+ * @param m1 - model object
+ * @param m2 - model object
+ * @return result of comparing
+ */
+ public int compare(Object o1, Object o2) {
+ // cast incoming parameters to Model objects
+ if(!(o1 instanceof Model) || !(o2 instanceof Model)) {
+ throw new IllegalArgumentException("Only Model objects should be compared!");
+ }
+ Model m1 = (Model) o1;
+ Model m2 = (Model) o2;
+ // check incoming parameters for null
+ if ((m1 == null) || (m1.getArtifactId() == null)) {
+ return -1;
+ } else
+ if ((m2 == null) || (m2.getArtifactId() == null)) {
+ return 1;
+ }
+
+ return m1.getArtifactId().compareTo(m2.getArtifactId());
+ }
+ });
generateTaglib(taglibModels, taglib);
}
} else {
16 years, 10 months
JBoss Rich Faces SVN: r6944 - in management/design: orderingList and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 09:28:56 -0400 (Wed, 19 Mar 2008)
New Revision: 6944
Modified:
management/design/listShuttle/FuncSpec - ListShuttle.doc
management/design/orderingList/FuncSpec - orderingList.doc
Log:
controlsType attribute changed
Modified: management/design/listShuttle/FuncSpec - ListShuttle.doc
===================================================================
(Binary files differ)
Modified: management/design/orderingList/FuncSpec - orderingList.doc
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Rich Faces SVN: r6943 - in trunk: samples/inputNumberSliderDemo/src/main/webapp/pages and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-03-19 08:46:22 -0400 (Wed, 19 Mar 2008)
New Revision: 6943
Modified:
trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java
trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp
trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
Log:
RF-2473
Modified: trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java 2008-03-19 12:22:01 UTC (rev 6942)
+++ trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java 2008-03-19 12:46:22 UTC (rev 6943)
@@ -28,8 +28,17 @@
private boolean showBoundaryValues = true;
private boolean showInput = true;
private boolean disabled = false;
+ private boolean manualInput = true;
- public int getValue() {
+ public boolean isManualInput() {
+ return manualInput;
+ }
+
+ public void setManualInput(boolean manualInput) {
+ this.manualInput = manualInput;
+ }
+
+ public int getValue() {
return value;
}
Modified: trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp 2008-03-19 12:22:01 UTC (rev 6942)
+++ trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp 2008-03-19 12:46:22 UTC (rev 6943)
@@ -83,14 +83,23 @@
</f:verbatim>
<rich:inputNumberSlider id="SliderId" inputPosition="left" showInput="#{bean.showInput}" showBoundaryValues="#{bean.showBoundaryValues}"
- showToolTip="true" disabled="#{bean.disabled}"
+ showToolTip="true" disabled="#{bean.disabled}" enableManualInput = "#{bean.manualInput}"
value="1.4" step="0.1" minValue="1.2"
maxValue="2.2"/>
-
+
<f:verbatim>
<br/>
<br/>
</f:verbatim>
+
+ <rich:inputNumberSlider inputPosition="left" showInput="#{bean.showInput}" showBoundaryValues="#{bean.showBoundaryValues}"
+ showToolTip="true" disabled="#{bean.disabled}"
+ value="0" step="1" minValue="-999"
+ maxValue="10"/>
+ <f:verbatim>
+ <br/>
+ <br/>
+ </f:verbatim>
<h:panelGrid columns="2" cellspacing="10px" border="1">
<h:outputText value="Disabled:"></h:outputText>
@@ -108,6 +117,10 @@
<h:selectBooleanCheckbox value="#{bean.showInput}">
<a4j:support event="onchange" reRender="SliderId"></a4j:support>
</h:selectBooleanCheckbox>
+ <h:outputText value="Enable Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{bean.manualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
</h:panelGrid>
<br/>
Modified: trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
===================================================================
--- trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2008-03-19 12:22:01 UTC (rev 6942)
+++ trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2008-03-19 12:46:22 UTC (rev 6943)
@@ -130,7 +130,7 @@
writer.write(" ");
]]></jsp:scriptlet>
</div>
- <div class="dr-insldr-handler rich-inslider-handler #{component.attributes['handleClass']}" id="#{clientId}Handle">
+ <div class="dr-insldr-handler rich-inslider-handler #{component.attributes['handleClass']}" id="#{clientId}Handle" style="visibility:hidden;">
<jsp:scriptlet><![CDATA[
writer.write(" ");
]]></jsp:scriptlet>
16 years, 10 months
JBoss Rich Faces SVN: r6942 - in trunk/ui/modal-panel/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-19 08:22:01 -0400 (Wed, 19 Mar 2008)
New Revision: 6942
Modified:
trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-2353
Modified: trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
===================================================================
--- trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2008-03-19 12:19:23 UTC (rev 6941)
+++ trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2008-03-19 12:22:01 UTC (rev 6942)
@@ -138,6 +138,7 @@
StringBuffer result = new StringBuffer();
if (panel.isKeepVisualState() || panel.isShowWhenRendered()) {
+ result.append("Event.observe(window, \"load\", function() {");
result.append("Richfaces.showModalPanel('" + panel.getClientId(context) + "', {");
Iterator it = panel.getVisualOptions().entrySet().iterator();
@@ -150,7 +151,7 @@
}
}
- result.append("});");
+ result.append("});}.bind());");
}
return result.toString();
}
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-03-19 12:19:23 UTC (rev 6941)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-03-19 12:22:01 UTC (rev 6942)
@@ -358,14 +358,16 @@
// Many not visible elements have focus method, we is had to avoid processing them.
/^a|input|select|button|textarea$/i.test(root.tagName) &&
!root.disabled && !/^hidden$/.test(root.type) &&
- !/^none$/.test(root.style.display)) {
+ Element.visible(root)) {
- callback.call(this, root);
+ callback.call(this, root);
} else {
if (root != this.id) {
var child = root.firstChild;
while (child) {
- this.processAllFocusElements(child, callback);
+ if (!child.style || Element.visible(child)) {
+ this.processAllFocusElements(child, callback);
+ }
child = child.nextSibling;
}
}
@@ -373,8 +375,9 @@
},
processTabindexes: function(input) {
- if (!this.firstOutside)
+ if (!this.firstOutside && !(/^select$/i.test(input.tagName) && ModalPanel.disableSelects)) {
this.firstOutside = input;
+ }
this.lastOutside = input;
if (input.tabIndex) {
input.prevTabIndex = input.tabIndex;
16 years, 10 months
JBoss Rich Faces SVN: r6941 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: pickList and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 08:19:23 -0400 (Wed, 19 Mar 2008)
New Revision: 6941
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
Log:
Pick List example
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-19 12:13:13 UTC (rev 6940)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-19 12:19:23 UTC (rev 6941)
@@ -4,8 +4,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form>
- <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}" />
- </h:form>
-
+ <h:form>
+ <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}" maxFilesQuantity="10"/>
+ </h:form>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19 12:13:13 UTC (rev 6940)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19 12:19:23 UTC (rev 6941)
@@ -30,7 +30,7 @@
<rich:column>
<h:outputText value="#{pickList}"/>
</rich:column>
- </rich:dataList>
+ </rich:dataList>
</rich:panel>
</h:panelGrid>
</h:form>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-19 12:13:13 UTC (rev 6940)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-19 12:19:23 UTC (rev 6941)
@@ -8,10 +8,14 @@
<ui:define name="sample">
<p>
- SHORT DESCRIPTION
+ Pick List component is a simple selection component where a set of items can be
+ selected from a list that contains all the available items to a list that
+ contains the selected items.
</p>
-
+ <p>
+ Next example shows simplest declarative definition on the page.
+ </p>
<div class="sample-container" >
<ui:include src="/richfaces/pickList/examples/simple.xhtml"/>
@@ -19,11 +23,26 @@
<ui:param name="sourcepath" value="/richfaces/pickList/examples/simple.xhtml"/>
</ui:include>
</div>
+
+ <p>
+ Pick List is a simplified variant of ListShuttle component. It not uses custom model.
+ Instead it uses f:selectItem(s) tags for elements definition, so convertors creation
+ isn't required for the component.
+ </p>
<p>
- DESCRIPTION
+ Value of the component stores as list which contains select items values.
</p>
-
+
+ <p>
+ Next example shows simple case where the values applied and listed via Ajax.
+ Select items in this example contains USA state names as label for item and
+ corresponding state capitals as value for item.
+ </p>
+ <p>
+ Just move some elements with state names to the result list and corresponding
+ state capitals will appears in the result panel.
+ </p>
<div class="sample-container" >
<ui:include src="/richfaces/pickList/examples/items.xhtml"/>
@@ -31,7 +50,6 @@
<ui:param name="sourcepath" value="/richfaces/pickList/examples/items.xhtml"/>
</ui:include>
</div>
-
</ui:define>
16 years, 10 months
JBoss Rich Faces SVN: r6940 - trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo.
by richfaces-svn-commits@lists.jboss.org
Author: vbaranov
Date: 2008-03-19 08:13:13 -0400 (Wed, 19 Mar 2008)
New Revision: 6940
Modified:
trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java
Log:
http://jira.jboss.com/jira/browse/RF-2526
Modified: trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java
===================================================================
--- trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java 2008-03-19 11:28:43 UTC (rev 6939)
+++ trunk/cdk/maven-cdk-plugin/src/main/java/org/ajax4jsf/builder/mojo/AssemblyLibraryMojo.java 2008-03-19 12:13:13 UTC (rev 6940)
@@ -30,6 +30,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -252,7 +253,7 @@
if (null != library.getTaglibs() && library.getTaglibs().length > 0) {
for (int i = 0; i < library.getTaglibs().length; i++) {
Taglib taglib = library.getTaglibs()[i];
- List taglibModels;
+ List<Model> taglibModels;
if (taglib.getIncludeModules() == null
&& taglib.getExcludeModules() == null) {
taglibModels = models;
@@ -280,6 +281,27 @@
}
}
}
+ // sort taglib models by artifactIds in ASC order
+ Collections.sort(taglibModels, new Comparator<Model>() {
+ /**
+ * Compares two <code>Model</code> objects by artifactIds
+ * for sorting in ASC order
+ * @param m1 - model object
+ * @param m2 - model object
+ * @return result of comparing
+ */
+ public int compare(Model m1, Model m2) {
+ // check incoming parameters for null
+ if ((m1 == null) || (m1.getArtifactId() == null)) {
+ return -1;
+ } else
+ if ((m2 == null) || (m2.getArtifactId() == null)) {
+ return 1;
+ }
+
+ return m1.getArtifactId().compareTo(m2.getArtifactId());
+ }
+ });
generateTaglib(taglibModels, taglib);
}
} else {
16 years, 10 months
JBoss Rich Faces SVN: r6939 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/pickList/examples and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 07:28:43 -0400 (Wed, 19 Mar 2008)
New Revision: 6939
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/CapitalsBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/CapitalsBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/CapitalsBean.java 2008-03-19 10:26:31 UTC (rev 6938)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/CapitalsBean.java 2008-03-19 11:28:43 UTC (rev 6939)
@@ -16,7 +16,7 @@
public class CapitalsBean {
private ArrayList<Capital> capitals = new ArrayList<Capital>();
private ArrayList<String> capitalsNames = new ArrayList<String>();
- private SelectItem[] capitalsNamesOptions;
+ private ArrayList<SelectItem> capitalsOptions = new ArrayList<SelectItem>();
private String capital = "";
public List<Capital> autocomplete(Object suggest) {
@@ -49,11 +49,9 @@
for (Capital cap : capitals) {
capitalsNames.add(cap.getName());
}
- capitalsNamesOptions = new SelectItem[capitals.size()];
- for (int i=0; i<capitals.size(); i++) {
- capitalsNamesOptions[i] = new SelectItem();
- capitalsNamesOptions[i].setLabel(capitals.get(i).getName());
- capitalsNamesOptions[i].setValue(capitals.get(i).getName());
+ capitalsOptions.clear();
+ for (Capital cap : capitals) {
+ capitalsOptions.add(new SelectItem(cap.getName(),cap.getState()));
}
}
@@ -74,12 +72,12 @@
this.capital = capital;
}
+ public ArrayList<SelectItem> getCapitalsOptions() {
+ return capitalsOptions;
+ }
+
public ArrayList<String> getCapitalsNames() {
return capitalsNames;
}
- public SelectItem[] getCapitalsNamesOptions() {
- return capitalsNamesOptions;
- }
-
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19 10:26:31 UTC (rev 6938)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19 11:28:43 UTC (rev 6939)
@@ -7,26 +7,30 @@
<style>
.top{
vertical-align:top;
+ }
+ .pbody{
+ padding:0px;
+ height:120px;
+ width:150px;
+ overflow:auto;
}
</style>
<h:form>
- <h:panelGrid columns="1" columnClasses="top, top">
+ <h:outputText value="change after RF-2602"></h:outputText>
+ <h:panelGrid columns="2" columnClasses="top, top">
<rich:pickList value="#{pickListBean.result}">
- <f:selectItems value="#{pickListBean.optionsAvailable}"/>
+ <f:selectItems value="#{capitalsBean.capitalsOptions}"/>
<a4j:support event="ondblclick" reRender="result"/>
</rich:pickList>
- <rich:panel id="result">
+ <rich:panel id="result" bodyClass="pbody">
<f:facet name="header">
<h:outputText value="#{pickListBean.items} Options Choosen"></h:outputText>
</f:facet>
- <rich:dataTable value="#{pickListBean.result}" var="pickList" rendered="#{pickListBean.items>0}">
+ <rich:dataList value="#{pickListBean.result}" var="pickList" rendered="#{pickListBean.items>0}">
<rich:column>
- <f:facet name="header">
- <h:outputText value="Oprtions Values"/>
- </f:facet>
<h:outputText value="#{pickList}"/>
</rich:column>
- </rich:dataTable>
+ </rich:dataList>
</rich:panel>
</h:panelGrid>
</h:form>
16 years, 10 months