[
https://jira.jboss.org/jira/browse/RF-6956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Belaevski resolved RF-6956.
--------------------------------
Resolution: Won't Fix
Assignee: Tsikhon Kuprevich
Doesn't look like a RF bug. As far as I see, this happens because components
are processed in the order in which they are defined on the page, so "update
model" call for select is followed by "update model" call to slider overwriting
value set previously.
Solutions:
1. Set value using action method
2. Make the first a4j:support ajaxSingle="true" or enclose select into
a4j:region
> inputNumberSlider and reRender
> ------------------------------
>
> Key: RF-6956
> URL: https://jira.jboss.org/jira/browse/RF-6956
> Project: RichFaces
> Issue Type: Bug
> Components: component-input
> Affects Versions: 3.3.0
> Environment: RF3.3.0, Mojara 1.2_12, Facelets, Glassfish V2.1
> Reporter: Fab Mars
> Assignee: Tsikhon Kuprevich
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues