> Fra: AM101 [mailto:[EMAIL PROTECTED] 
> Sendt: 21. april 2007 13:30 
> Til: user@shale.apache.org 
> Emne: Re: valueChangeListener is breaking form submit 
> 
> 
> When I remove valueChangeListener , setter is called. But I need to use 
> valueChangeListener. 
>

That's a hard one to diagnose but I have a couple ideas.  The setters on the 
sub type
list are not going to be called if the component is disabled.

Something else to consider is validation errors.  You might be hitting 
validation errors.
If you are, the lifecycle is going to stop short and jump to the render phase 
bypassing
the update model phase.

If you are hitting validation errors, try setting the immediate attribute to 
"true" on the
two select components and the command component you are using to submit the 
form.
This will cause the value change listeners and commands to be invoked in the 
apply
request values phase (before validation).


Gary
 
> AM101 wrote: 
> > 
> > I have two selectOneMenu components (lstType and lstSubType) in my form. I 
> > want to change values in lstSubType when value in lstType changes. I am 
> > using valueChangeListener as follwong: 
> > 
> > 
> > > > id="lstType" allowBody="false"> 
> > 
> > > /> 
> > 
> > 
> > 
> > > > value="[EMAIL PROTECTED]" /> 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > > id="lstSubType" allowBody="false"> 
> > 
> > > value="[EMAIL PROTECTED]" /> 
> > 
> > > value="[EMAIL PROTECTED]" /> 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > value="[EMAIL PROTECTED]" /> 
> > 
> > 
> > 
> > 
> > Everything works fine except that when I submit the form setter of sub 
> > type is never called and always remains the same . Please let me know what 
> > is missing? 
> > 
> > Thanks, 
> > AM 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758. 
> html#a10116210 
> Sent from the Shale - User mailing list archive at Nabble.com. 
> 
> 

Reply via email to