Hi, i wonder how can i do this. in my html template, i have a button, on
click a javascript method will be called, and fill some form components.
this method should not submit the page. all work fine in plain html.

then when i do this in tapestry, i got problems.  if i dont give this button
compoent a jwcid as such,

<input type="button" name="calcTotalButton" value="Calculate"
onClick="calcTotals()"/>

as it works in original html template, tapestry wont render the button, so i
end up with a page without this button. 


well then i added a jwcid to this component and specify it as a Button ( i
can not be submit), i got this error:

<input type="button" name="calcTotalButton" value="Calculate"
onClick="calcTotals()" jwcid="calcTotalButton"/>

org.apache.tapestry.parse.TemplateParseException
Tag <input> on line 373 is a dynamic component, and may not appear inside an
ignored block.


is there anyway i can get around with this? how can i make call to a
javascript method on button click?

thanks!!
-- 
View this message in context: 
http://www.nabble.com/call-javascript-method-on-button-click-tf2073678.html#a5709887
Sent from the Tapestry - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to