JBoss Rich Faces SVN: r3527 - branches/3.1.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-10-25 08:43:45 -0400 (Thu, 25 Oct 2007)
New Revision: 3527
Modified:
branches/3.1.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
http://jira.jboss.com/jira/browse/RF-1113
Modified: branches/3.1.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- branches/3.1.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-10-25 12:37:00 UTC (rev 3526)
+++ branches/3.1.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-10-25 12:43:45 UTC (rev 3527)
@@ -95,7 +95,7 @@
}
this.initialized = true;
- //this.setInitialValue();
+ this.setInitialValue();
//Event.observe(window, "load", this.setInitialValue.bindAsEventListener(this)); //FIX RFA-190
//Event.observe($(input), "propertychange", this.setInitialValue.bindAsEventListener(this));
17 years, 2 months
JBoss Rich Faces SVN: r3526 - trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-10-25 08:37:00 -0400 (Thu, 25 Oct 2007)
New Revision: 3526
Modified:
branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
Log:
http://jira.jboss.com/jira/browse/RF-1236
Modified: branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
===================================================================
--- branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-10-25 11:11:34 UTC (rev 3525)
+++ branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-10-25 12:37:00 UTC (rev 3526)
@@ -13,6 +13,7 @@
</u:style>
<u:style name="background-color" skin="tableBackgroundColor" /> <!--tableBackgroundColor-->
<!-- <u:style name="border-collapse" value="inherit" /> fix RF-535 -->
+ <u:style name="empty-cells" value="show" />
</u:selector>
<u:selector name=".dr-table-cell" >
@@ -28,7 +29,6 @@
<u:style name="font-size" skin="generalSizeFont"/> <!--generalSizeFont-->
<u:style name="color" skin="generalTextColor"/> <!--generalTextColor-->
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
- <u:style name="empty-cells" value="show"/>
</u:selector>
<u:selector name=".dr-subtable-cell" >
Modified: trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
===================================================================
--- trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-10-25 11:11:34 UTC (rev 3525)
+++ trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-10-25 12:37:00 UTC (rev 3526)
@@ -29,7 +29,6 @@
<u:style name="font-size" skin="generalSizeFont"/> <!--generalSizeFont-->
<u:style name="color" skin="generalTextColor"/> <!--generalTextColor-->
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
- <u:style name="empty-cells" value="show"/>
</u:selector>
<u:selector name=".dr-subtable-cell" >
17 years, 2 months
JBoss Rich Faces SVN: r3525 - trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-10-25 07:11:34 -0400 (Thu, 25 Oct 2007)
New Revision: 3525
Modified:
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java
trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java
Log:
added default constructors to Expression Adaptors
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java 2007-10-25 10:59:46 UTC (rev 3524)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/MethodBindingMethodExpressionAdaptor.java 2007-10-25 11:11:34 UTC (rev 3525)
@@ -24,6 +24,9 @@
/* (non-Javadoc)
* @see javax.faces.el.MethodBinding#getType(javax.faces.context.FacesContext)
*/
+ public MethodBindingMethodExpressionAdaptor() {
+ // TODO Auto-generated constructor stub
+ }
public MethodBindingMethodExpressionAdaptor(MethodExpression expression) {
super();
@@ -74,4 +77,6 @@
public String getExpressionString() {
return expression.getExpressionString();
}
+
+
}
Modified: trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java 2007-10-25 10:59:46 UTC (rev 3524)
+++ trunk/framework/impl/src/main/java/org/richfaces/webapp/taglib/ValueBindingValueExpressionAdaptor.java 2007-10-25 11:11:34 UTC (rev 3525)
@@ -106,6 +106,10 @@
public void setExpression(ValueExpression expression) {
this.expression = expression;
}
+
+ public ValueBindingValueExpressionAdaptor() {
+ // TODO Auto-generated constructor stub
+ }
public ValueBindingValueExpressionAdaptor(ValueExpression expression) {
super();
17 years, 2 months
JBoss Rich Faces SVN: r3524 - branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-25 06:59:46 -0400 (Thu, 25 Oct 2007)
New Revision: 3524
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
Log:
remove throwing of IllegalArgumentException in encodeParams method if param attribute name == null (RF-1158)
Modified: branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
===================================================================
--- branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-25 10:57:37 UTC (rev 3523)
+++ branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-25 10:59:46 UTC (rev 3524)
@@ -32,7 +32,6 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import org.ajax4jsf.Messages;
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
@@ -72,18 +71,17 @@
UIParameter param = (UIParameter)child;
String name = param.getName();
- if (null == name) {
- throw new IllegalArgumentException(Messages.getMessage(
- Messages.UNNAMED_PARAMETER_ERROR, component.getClientId(context)));
+ if (name != null) {
+
+ Object value = param.getValue();
+ buff.append("_params[");
+ buff.append(ScriptUtils.toScript(name));
+ buff.append("] = ");
+ buff.append(ScriptUtils.toScript(value));
+ buff.append(";");
+ params.add(buff.toString());
+
}
-
- Object value = param.getValue();
- buff.append("_params[");
- buff.append(ScriptUtils.toScript(name));
- buff.append("] = ");
- buff.append(ScriptUtils.toScript(value));
- buff.append(";");
- params.add(buff.toString());
}
}
17 years, 2 months
JBoss Rich Faces SVN: r3523 - trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-25 06:57:37 -0400 (Thu, 25 Oct 2007)
New Revision: 3523
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
Log:
remove unnecessary imports
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-25 10:33:32 UTC (rev 3522)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-10-25 10:57:37 UTC (rev 3523)
@@ -26,15 +26,12 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
-import java.util.logging.Logger;
-import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import org.ajax4jsf.Messages;
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
17 years, 2 months
JBoss Rich Faces SVN: r3522 - branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-25 06:33:32 -0400 (Thu, 25 Oct 2007)
New Revision: 3522
Modified:
branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
Log:
fix RF-1141 if name == null parameters doesn't encodes
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-10-25 10:04:39 UTC (rev 3521)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-10-25 10:33:32 UTC (rev 3522)
@@ -272,7 +272,7 @@
public void renderBody(UIRichMessages uiMessages, FacesContext context, ResponseWriter writer,FacesMessage facesMsg) throws IOException{
- if(uiMessages.isPassed()){
+ if(uiMessages.isPassed() || facesMsg != null ){
if(isWroteTable){
writer.startElement(HTML.TR_ELEMENT, uiMessages);
17 years, 2 months
JBoss Rich Faces SVN: r3521 - branches/3.1.x/ui/datascroller/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-25 06:04:39 -0400 (Thu, 25 Oct 2007)
New Revision: 3521
Modified:
branches/3.1.x/ui/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java
Log:
RF-1145 (add getParameters method)
Modified: branches/3.1.x/ui/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java
===================================================================
--- branches/3.1.x/ui/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java 2007-10-25 09:45:56 UTC (rev 3520)
+++ branches/3.1.x/ui/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java 2007-10-25 10:04:39 UTC (rev 3521)
@@ -22,14 +22,19 @@
package org.richfaces.renderkit.html;
import java.io.IOException;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import javax.faces.component.UIComponent;
import javax.faces.component.UIData;
+import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.event.PhaseId;
+import org.ajax4jsf.Messages;
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
@@ -248,6 +253,28 @@
return context.getExternalContext().getRequestParameterMap();
}
+ //get UIParameter's Map
+ protected Map getParameters(FacesContext context, UIComponent component){
+ Map parameters = new HashMap();
+
+ if(component instanceof UIDatascroller){
+ UIDatascroller datascroller = (UIDatascroller)component;
+ List children = datascroller.getChildren();
+ for (Iterator iterator = children.iterator(); iterator.hasNext();) {
+ UIComponent child = (UIComponent) iterator.next();
+ if(child instanceof UIParameter) {
+ UIParameter param = (UIParameter)child;
+ String name = param.getName();
+ if (name != null) {
+ parameters.put(name, param.getValue());
+ }
+ }
+ }
+ }
+
+ return parameters;
+ }
+
public String getOnClick(FacesContext context, UIComponent component,
String value) {
@@ -258,6 +285,12 @@
component);
Map parameters = (Map) eventOptions.get("parameters");
parameters.put(scroller.getClientId(context), value);
+
+ Map params = getParameters(context,component);
+ if(!params.isEmpty()){
+ parameters.putAll(params);
+ }
+
function.addParameter(eventOptions);
StringBuffer buffer = new StringBuffer();
function.appendScript(buffer);
17 years, 2 months
JBoss Rich Faces SVN: r3520 - in branches/3.1.x/ui/simpleTogglePanel/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-25 05:45:56 -0400 (Thu, 25 Oct 2007)
New Revision: 3520
Modified:
branches/3.1.x/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
branches/3.1.x/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
Log:
RF-1120
Modified: branches/3.1.x/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
===================================================================
--- branches/3.1.x/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2007-10-25 09:15:35 UTC (rev 3519)
+++ branches/3.1.x/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2007-10-25 09:45:56 UTC (rev 3520)
@@ -11,19 +11,22 @@
this.status="true";
}
- this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
+// this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
},
- windowOnLoad: function(){
+/* windowOnLoad: function(){
if (RichFaces.navigatorType() == "MSIE"){
var body = $(this.panelId+"_body");
- if (body && body.style.display!="none") body.firstChild.style.width=body.clientWidth;
+ if (body && body.style.display!="none") body.firstChild.style.width=body.clientWidth;
+*/
+
/* if ($(this.panelId_head).clientWidth<$(this.panelId).clientWidth){
$(this.panelId_head).style.width=$(this.panelId).clientWidth-2+"px";
- }*/
+ }
}
},
+*/
toggleToState: function() {
var body = $(this.panelId+"_body");
@@ -34,7 +37,7 @@
this.status="true";
switch_off.style.display="none";
switch_on.style.display="";
- this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
+// this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
// body.firstChild.style.width=body.clientWidth;
} else {
Element.hide(body);
Modified: branches/3.1.x/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
===================================================================
--- branches/3.1.x/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-10-25 09:15:35 UTC (rev 3519)
+++ branches/3.1.x/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-10-25 09:45:56 UTC (rev 3520)
@@ -87,17 +87,13 @@
<f:call name="utils.encodeEndFormIfNessesary"/>
<div id="#{clientId}_body"
+ class="dr-stglpnl-b rich-stglpanel-body #{component.attributes['bodyClass']}"
style="display : #{this:getdivdisplay(context, component)};
- overflow: auto; height: #{component.attributes['height']}; width: 100%;">
- <table cellpadding="0" style="width: 100%" >
- <tr>
- <td class="dr-stglpnl-b rich-stglpanel-body #{component.attributes['bodyClass']}">
+ height: #{component.attributes['height']};">
+
<vcp:body>
<f:call name="renderChildren" />
</vcp:body>
- </td>
- </tr>
- </table>
</div>
</div>
17 years, 2 months
JBoss Rich Faces SVN: r3519 - trunk/test-applications/facelets/src/main/webapp/inputNumberSlider.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-10-25 05:15:35 -0400 (Thu, 25 Oct 2007)
New Revision: 3519
Modified:
trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml 2007-10-25 09:15:11 UTC (rev 3518)
+++ trunk/test-applications/facelets/src/main/webapp/inputNumberSlider/inputNumberSlider.xhtml 2007-10-25 09:15:35 UTC (rev 3519)
@@ -1,146 +1,174 @@
-<f:subview id="inputNumberSliderSubviewID"
+<f:subview id="inputNumberSliderSubviewID"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
<h:form>
- <h:panelGrid columns="1">
- <a4j:log level="ALL" popup="false" width="400" height="200"/>
- <h:outputText value="Event:"></h:outputText>
- <rich:inputNumberSlider minValue="0" maxValue="100" width="300px"
- onmousedown="alert('OnMouseDown');" onblur="" onchange="" onclick="" ondblclick="" onerror="" onfocus="" onselect="" onkeydown=""
- onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup=""></rich:inputNumberSlider>
+ <h:panelGrid columns="1">
+ <h:outputText value="Event:"></h:outputText>
+ <rich:inputNumberSlider minValue="0" maxValue="100" width="300px"
+ onmousedown="alert('OnMouseDown');" onblur="" onchange="" onclick=""
+ ondblclick="" onerror="" onfocus="" onselect="" onkeydown=""
+ onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover=""
+ onmouseup=""></rich:inputNumberSlider>
- <rich:spacer height="15px" width="300px"></rich:spacer>
+ <rich:spacer height="15px" width="300px"></rich:spacer>
- <rich:inputNumberSlider id="SliderId"
- immediate="#{inputNumberSlider.immediate}"
- required="#{inputNumberSlider.rendered}"
- requiredMessage="#{inputNumberSlider.requiredMessage}"
- inputPosition="#{inputNumberSlider.inputPosition}"
- showToolTip="#{inputNumberSlider.showToolTip}"
- tabindex="#{inputNumberSlider.tabindex}"
- value="#{inputNumberSlider.value}"
- valueChangeListener="#{inputNumberSlider.changeListener}"
- disabled="#{inputNumberSlider.disabled}"
- enableManualInput="#{inputNumberSlider.enableManualInput}"
- inputSize="#{inputNumberSlider.inputSize}"
- maxValue="#{inputNumberSlider.maxValue}"
- minValue="#{inputNumberSlider.minValue}"
- rendered="#{inputNumberSlider.rendered}"
- showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
- step="#{inputNumberSlider.step}"
- showInput="#{inputNumberSlider.showInput}"
- width="#{inputNumberSlider.width}"
- barClass="#{inputNumberSlider.barStyle}"
- tipClass="#{inputNumberSlider.tipStyle}"
- inputClass="#{inputNumberSlider.inputStyle}"
- handleClass="#{inputNumberSlider.handleStyle}"
- styleClass="#{inputNumberSlider.tipStyle}"
- maxlength="#{inputNumberSlider.maxlength}"></rich:inputNumberSlider>
+ <rich:inputNumberSlider id="SliderId"
+ immediate="#{inputNumberSlider.immediate}"
+ inputPosition="#{inputNumberSlider.inputPosition}"
+ showToolTip="#{inputNumberSlider.showToolTip}"
+ tabindex="#{inputNumberSlider.tabindex}"
+ value="#{inputNumberSlider.value}"
+ valueChangeListener="key"
+ required="#{inputNumberSlider.rendered}"
+ requiredMessage="#{inputNumberSlider.requiredMessage}"
+ disabled="#{inputNumberSlider.disabled}"
+ enableManualInput="#{inputNumberSlider.enableManualInput}"
+ inputSize="#{inputNumberSlider.inputSize}"
+ maxValue="#{inputNumberSlider.maxValue}"
+ minValue="#{inputNumberSlider.minValue}"
+ rendered="#{inputNumberSlider.rendered}"
+ showBoundaryValues="#{inputNumberSlider.showBoundaryValues}"
+ step="#{inputNumberSlider.step}"
+ showInput="#{inputNumberSlider.showInput}"
+ width="#{inputNumberSlider.width}"
+ barClass="#{inputNumberSlider.barStyle}"
+ tipClass="#{inputNumberSlider.tipStyle}"
+ inputClass="#{inputNumberSlider.inputStyle}"
+ handleClass="#{inputNumberSlider.handleStyle}"
+ styleClass="#{inputNumberSlider.tipStyle}"
+ maxlength="#{inputNumberSlider.maxlength}">
+ <a4j:support action="#{inputNumberSlider.changeListener}" event="onchange" reRender="work"></a4j:support>
+ </rich:inputNumberSlider>
+
+ <h:outputText id="work" value="#{key}" />
+ </h:panelGrid>
<rich:spacer height="20px"></rich:spacer>
- </h:panelGrid>
-
- <h:panelGrid columns="2" cellspacing="10px" border="1">
-
- <h:outputText value="value" />
- <h:outputText value="#{inputNumberSlider.value}" />
-
-
-
- <h:outputText value="inputPosition"></h:outputText>
- <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
- <f:selectItem itemLabel="right" itemValue="right"/>
- <f:selectItem itemLabel="left" itemValue="left"/>
- </h:selectOneRadio>
-
- <h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
- <h:outputText value="Max Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <rich:simpleTogglePanel switchType="client" opened="true"
+ label="inputNumberSlider straightforward">
+ <h:panelGrid columns="2">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest1}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest2}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
- <h:outputText value="Min Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.minValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest3}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
- <h:outputText value="Input Size:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.inputSize}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest4}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
- <h:outputText value="Input MaxLength:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxlength}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{inputNumberSlider.bTest5}" value="run" reRender="SliderId,iNSliderPropertyID"></a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
- <h:outputText value="Step:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.step}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="tabindex" />
- <h:inputText value="#{inputNumberSlider.tabindex}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <rich:simpleTogglePanel id="iNSliderPropertyID" switchType="client" opened="true"
+ label="inputNumberSlider property">
+ <h:panelGrid columns="2" cellspacing="10px" border="1">
+ <h:outputText value="value" />
+ <h:inputText value="#{inputNumberSlider.value}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="inputPosition"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
- onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.width}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.enableManualInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Max Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Boundary Values:"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inputNumberSlider.showBoundaryValues}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Min Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.minValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Show Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="showToolTip" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Input Size:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.inputSize}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="required" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage" />
- <h:inputText value="#{inputNumberSlider.requiredMessage}" >
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="immediate" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Input MaxLength:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxlength}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
- action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
+ <h:outputText value="Step:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.step}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="tabindex" />
+ <h:inputText value="#{inputNumberSlider.tabindex}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.enableManualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Boundary Values:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.showBoundaryValues}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Show Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showToolTip" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage" />
+ <h:inputText value="#{inputNumberSlider.requiredMessage}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
+ action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
</h:form>
</f:subview>
\ No newline at end of file
17 years, 2 months
JBoss Rich Faces SVN: r3518 - trunk/test-applications/facelets/src/main/java/inputNumberSlider.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-10-25 05:15:11 -0400 (Thu, 25 Oct 2007)
New Revision: 3518
Modified:
trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
Log:
Modified: trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-10-24 19:40:02 UTC (rev 3517)
+++ trunk/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-10-25 09:15:11 UTC (rev 3518)
@@ -55,7 +55,7 @@
}
public void changeListener(ValueChangeListener event) {
- System.out.println(event.toString());
+ System.out.println("valueChangeListener " + event.toString());
}
public boolean isDisabled() {
@@ -273,4 +273,70 @@
this.value = value;
}
+ public void bTest1(){
+ setMinValue("0");
+ setMaxValue("9");
+ setInputSize(1);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("3");
+ setShowInput(true);
+ setStep("1");
+ setShowToolTip(true);
+ setShowBoundaryValues(true);
+ setShowInput(true);
+ }
+
+ public void bTest2(){
+ setMinValue("1000");
+ setMaxValue("99999");
+ setInputSize(10);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("99999");
+ setShowInput(true);
+ setStep("50");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ setShowInput(true);
+ }
+
+ public void bTest3(){
+ setMinValue("101");
+ setMaxValue("203");
+ setInputSize(4);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ }
+
+ public void bTest4(){
+ setMinValue("10");
+ setMaxValue("12");
+ setInputSize(2);
+ setInputPosition("left");
+ setEnableManualInput(false);
+ setValue("102");
+ setShowInput(false);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(true);
+ }
+
+ public void bTest5(){
+ setMinValue("-99999");
+ setMaxValue("99999");
+ setInputSize(15);
+ setInputPosition("right");
+ setEnableManualInput(true);
+ setValue("102");
+ setShowInput(true);
+ setStep("2");
+ setShowToolTip(false);
+ setShowBoundaryValues(false);
+ }
}
17 years, 2 months