[richfaces-svn-commits] JBoss Rich Faces SVN: r14268 - in branches/community/3.3.X: ui/colorPicker/src/main/config/component and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu May 21 12:14:18 EDT 2009


Author: Alex.Kolonitsky
Date: 2009-05-21 12:14:17 -0400 (Thu, 21 May 2009)
New Revision: 14268

Modified:
   branches/community/3.3.X/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
   branches/community/3.3.X/ui/colorPicker/src/main/config/component/colorPicker.xml
   branches/community/3.3.X/ui/colorPicker/src/main/templates/org/richfaces/htmlColorPicker.jspx
Log:
Colorpicker: add "inputSize" attribute
https://jira.jboss.org/jira/browse/RF-7191

Modified: branches/community/3.3.X/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/community/3.3.X/samples/colorPickerDemo/src/main/webapp/pages/index.jsp	2009-05-21 13:54:19 UTC (rev 14267)
+++ branches/community/3.3.X/samples/colorPickerDemo/src/main/webapp/pages/index.jsp	2009-05-21 16:14:17 UTC (rev 14268)
@@ -24,7 +24,7 @@
                             <h:outputText value="Data Table" />
                         </f:facet>
 
-                        <colorPicker:colorPicker id="cp" value="#ff0000" />
+                        <colorPicker:colorPicker id="cp" value="#ff0000" inputSize="3"/>
                         
                         <h:outputText value="#{row}"/>
                     </rich:column>

Modified: branches/community/3.3.X/ui/colorPicker/src/main/config/component/colorPicker.xml
===================================================================
--- branches/community/3.3.X/ui/colorPicker/src/main/config/component/colorPicker.xml	2009-05-21 13:54:19 UTC (rev 14267)
+++ branches/community/3.3.X/ui/colorPicker/src/main/config/component/colorPicker.xml	2009-05-21 16:14:17 UTC (rev 14268)
@@ -56,6 +56,13 @@
 		    </description>
 		    <defaultvalue><![CDATA["#ffffff"]]></defaultvalue>
 		</property>
+		<property>
+		    <name>inputSize</name>
+		    <classname>java.lang.Integer</classname>
+		    <description>
+		        inputSize - way to set the size of the edit box
+		    </description>
+		</property>
 		
         &ui_component_attributes;
 		&html_events;

Modified: branches/community/3.3.X/ui/colorPicker/src/main/templates/org/richfaces/htmlColorPicker.jspx
===================================================================
--- branches/community/3.3.X/ui/colorPicker/src/main/templates/org/richfaces/htmlColorPicker.jspx	2009-05-21 13:54:19 UTC (rev 14267)
+++ branches/community/3.3.X/ui/colorPicker/src/main/templates/org/richfaces/htmlColorPicker.jspx	2009-05-21 16:14:17 UTC (rev 14268)
@@ -28,7 +28,7 @@
 	<f:call name="addPopupToAjaxRendered" />
 	
 	<span id="#{clientId}" class="rich-color-picker-span"	x:passThruWithExclusions="value,name,type,id,styleClass,class,style">
-		<input readonly="readonly" type="text" name="#{clientId}" value="#{value}"/>
+		<input readonly="readonly" type="text" name="#{clientId}" value="#{value}" size="#{component.attributes['inputSize']}"/>
 		<jsp:scriptlet><![CDATA[
             if(component.getFacet("icon")!=null && component.getFacet("icon").isRendered()) {
         ]]></jsp:scriptlet>        




More information about the richfaces-svn-commits mailing list