I haven't used it, but there's a t:jsValueChangeListener. It may already do most or all of what you need. I need to have one that also sets some f:param values (or sets some hidden field values) so it sets the correct Optional Validation Framework mode, which is why I've stuck with the original code on the wiki.
http://myfaces.apache.org/tomahawk/javascriptListener.html If it doesn't do everything you need, perhaps it could be extended. On 11/25/05, Mario Ivankovits <[EMAIL PROTECTED]> wrote: > Mike Kienenberger wrote: > > Your suggestion of calling this.form.submit() may not work. There's > > other "hidden" javascript that needs to be executed before form is > > submitted. > Ok, I understand. > Thanks for this information, I'll rework the sample. > > Thoug, I dont like it to make asumptions about how ids are rendered > > > Thus, this might be a perfect thing for an additional tag, isnt it? > > <t:jsaction event="onchange" for="select-box-id" > action="#{command.action}" /> > > This will install a "onchange" javascript on the compontent referenced > by "for" and (if "onchanged") do some magic to get the command fired. > > > What do you think? > > > Ciao, > Mario > >

