1)Tapestry will normally render whatever you put, so there's no issue with having the button w/out a jwcid attribute. That's barking up the wrong tree. 2)The error that you're getting when you put jwcid says that the component is in an ignored block of text. Here are some examples of ignored blocks of text: 1) i18n: <span key="str_msg">This text is ignored; it will be replaced by the text associated with the i18n key str_msg</span>This text is NOT in an ignored block. 2) inserts: <span jwcid="@Insert" value="ognl:someValue">This text is placeholder; it's ignored by tapestry</span>This text would render 3) Other components that don't render their body, including: contrib:Table <table jwcid="@contrib:Table" source="ognl:list" columns="a,b,c"> <tr><td>The tr and td's I'm specifying here wont' render</td> <td>Or here</td> <td>Or here</td> </tr> </table> This text will render
So, check to see what tags/components are surrounding your button, and whether or not they allow a body. Robert > > hi, after done some search, it seems that $remove$ is not what i should > use, > cuz it removes the contents within. i want tapestry to render a component > exactly as it is defined in the template, ie > > in template, i have > > <input type="button" name="calcTotalButton" value="Calculate" > onClick="calcTotals()"/> > > and i want tapestry to render this line exactly in the result page. > apparently if i dont identify it using jwcid, tapestry wont render this > line > at all. > > any idea please, thanks! > > -- > View this message in context: > http://www.nabble.com/call-javascript-method-on-button-click-tf2073678.html#a5716741 > Sent from the Tapestry - User forum at Nabble.com. > > > --------------------------------------------------------------------- > 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]