Jesse pointed out that it should be target= instead of element= when the thing being listened to is a Tapestry component (i.e., has a jwcid). Apparently, element= is for html elements that aren't tapestry components.
If the problem you are having is the same as mine (I think it might be) then it is fixed in the snapshot from last night. On 11/28/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
ok - I see there is a jira issue about this one... Ron Piterman wrote: > Hi all - > I have a simlar scenario to the above post with the same name: > > I call responseBuilder.updateComponent on the template-container of a > component with an @EventListener. > > The component is being rendered but the javascript is not regenerated. > > The usecase is as follows: > > <tr jwcid="[EMAIL PROTECTED]"> > <td><label .../></td> > <td><select jwcid="[EMAIL PROTECTED]" .../></td> > <span jwcid="@If" condition="prop:selectionIsRed" > renderTag="ognl:false"> > <td><label .../></td> > <td> <input .../></td> > </span> > <span jwcid="@If" condition="prop:selectionIsBlue" > renderTag="ognl:false"> > <td><label .../></td> > <td><input .../></td> > </span> > </tr> > > @EventListener( > submitForm="myform", validateForm=false , > elements="select" , events="onchange") > public void colorChanged() { > getResponseRenderer().updateComponent("color"); > } > > Any advise? > > Cheers, > Ron > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]