Anoe,

Can you post your solution? I'm working on the same problem.

Thanks,
Eric




"Mike Kienenberger" <[EMAIL PROTECTED]> 
06/07/2007 03:18 PM
Please respond to
"MyFaces Discussion" <[email protected]>


To
"MyFaces Discussion" <[email protected]>
cc

Subject
Re: selectOneListBox and inputText






I think there's a "valueChangeNotifier" (or something like that) in
Tomahawk that does this as well -- it's a value-change-listener that
executes after updateModel.

On 6/6/07, anoe <[EMAIL PROTECTED]> wrote:
>
> got the solution thanks to kaapa in irc. The problem is the phase when 
the
> valueChangeListener is acting, i had to add this to that method:
>
>         PhaseId phaseId = event.getPhaseId();
>         if (phaseId.equals(PhaseId.ANY_PHASE)) {
>                 event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
>                 event.queue();
>         } else if (phaseId.equals(PhaseId.UPDATE_MODEL_VALUES)) {
>             ...
>         }
>
>
>
> anoe wrote:
> >
> > hi all, i am having problems with coordinating a selectOneListBox with
> > inputText in the same page. What i want is the inputText to change 
when
> > you select another item in the list. I've got my conversor for the 
items
> > inside, i've debugged and it seems the variable for the text is 
updating
> > in the model (with a valuechangelistener), my bean is request-scoped 
but i
> > am using <t:saveState to maintain the state between calls.. i've even
> > checked the method getInputTextVariable to check that it is returning 
the
> > right value, and it is. But the input text is never showing the value 
i
> > want. Any idea?
> >
>
> --
> View this message in context: 
http://www.nabble.com/selectOneListBox-and-inputText-tf3877373.html#a10992086

> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


_________________________

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the 
exclusive use of the individual or entity named above and may contain 
information that is privileged, confidential or exempt from disclosure 
under applicable law. If the reader of this message is not the intended 
recipient, or the employee or agent responsible for delivery of the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please 
notify the sender immediately by e-mail and delete the material from any 
computer.  Thank you.

Reply via email to