inputNumberSlider value and reRender
fabmars Apr 28, 2009 8:36 AMHello. I have a strange one here. First bug (?) discovered in a loooong while.
I'm on RF3.3.0, Mojara 1.2_12, Facelets, Glassfish V2.1
I have a combobox next to an inputNumberSlider.
When the combo changes, the range, step and value of the slider must scale (this is some sort of unit converter thing)
<h:selectOneMenu id="unit" value="#{shippingView.unit}" disabled="#{shippingView.allWeights}" converter="SelectCodableConverter"> <f:selectItems value="#{shippingView.unitItems}"/> <a4j:support event="onchange" reRender="measure"/> </h:selectOneMenu> <rich:inputNumberSlider id="measure" label="Value" value="#{shippingView.value}" width="300" maxValue="#{shippingView.range}" step="#{shippingView.step}" inputSize="5" maxlength="5" required="true" disabled="#{shippingView.allWeights}"> <f:validateLength maximum="5"/> <a4j:support event="onchange" actionListener="#{shippingView.doSelectShippings}" ajaxSingle="true" reRender="shippingList"/> </rich:inputNumberSlider>
Problem is, after I programatically changed the slider's value, it's reset to the previous value, before the component is rerendered.
ShippingViewHandler.setValue(int) line: 100 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 BeanELResolver.setValue(ELContext, Object, Object, Object) line: 372 FacesCompositeELResolver(CompositeELResolver).setValue(ELContext, Object, Object, Object) line: 315 FacesCompositeELResolver.setValue(ELContext, Object, Object, Object) line: 100 AstValue.setValue(EvaluationContext, Object) line: 167 ValueExpressionImpl.setValue(ELContext, Object) line: 273 TagValueExpression.setValue(ELContext, Object) line: 93 HtmlInputNumberSlider(UIInput).updateModel(FacesContext) line: 771 HtmlInputNumberSlider(UIInput).processUpdates(FacesContext) line: 703
Thanks for checking it out.
I created this issue: https://jira.jboss.org/jira/browse/RF-6956