This content has been marked as final.
Show 5 replies
-
1. Re: rich:inplaceSelect questions (fire valueChanged event)
tirupathineela Feb 18, 2009 1:50 AM (in response to jamon)Hi Jamon!
I think you need to use valueChangeEvent for the method and valueChangeListener for UI.
Refer
http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?tab=selects&cid=826280 -
2. Re: rich:inplaceSelect questions (fire valueChanged event)
jamon Feb 18, 2009 5:36 AM (in response to jamon)Now I can't understand, what I doing wrong. In my application I try bind attribute "valueChangeListener" of inplaceSelect to method:
public void valueChanged(ValueChangeEvent ae) { //some code }
and, as before, I never view work of code inside this method (i.e. this method still never fired after change value in rich:inplaceSelect)
Next, I use "value" attribut of rich:inplaceSelect:value={#myBean.currentItem}
Java code:private SelectItem currentItem; //follow getter/setter for this field
In my mind, I think this field may store current value of inplaceSelect, but after some test, I can't find confirmation for this. I use these approach:
1. bind actionListener of my rich:datascroller to some method in bean; (this method fired properly after each user action on datascroller component);
2. add some code in this method like this:if(currentItem!=null) System.out.println(currentItem.getLabel());
3. change value in inplaceSelect
4. do some action on dataScroller
And I see never new in my output...
What I do wrong? What should I do to:
1) get ability to runtime-catch current value of inplaceSelect;
2) store this value for each action on dataScroller (I want once select some value of inplaceSelect, and next actions on dataScroller should not change it)
Please, review my post.. -
3. Re: rich:inplaceSelect questions (fire valueChanged event)
jamon Feb 18, 2009 10:05 AM (in response to jamon)up!
please, help:) -
4. Re: rich:inplaceSelect questions (fire valueChanged event)
nbelaevski Feb 18, 2009 3:26 PM (in response to jamon)Try to make dataScroller ajaxSingle="false".
-
5. Re: rich:inplaceSelect questions (fire valueChanged event)
abelevich Feb 19, 2009 6:29 AM (in response to jamon)
Hi I think problem is hereprivate SelectItem currentItem; //follow getter/setter for this field
InplaceSelect stores object from the selected SelectItem to it value property, not the SelectItem completely