I'm slightly confused about what you're asking, but,
I'd suggest looking at the linksubmit and/or imagesubmit components
from the tapestry library.  I'm also aware of at least one component on
tassel (http://equalitylearning.org/Tassel/app) which deals with link
submitting.

Robert
Vadim Pesochinskiy wrote:
> Thanks for response. This is a bit like Struts / JSTL tags, they
> can never 
> catch up with HTML elements or the way these elements are used
> by web 
> designers.
> 
> ----- Original Message ----- 
> From: "Andreas Andreou" <[EMAIL PROTECTED]>
> To: "Tapestry users" <[email protected]>
> Sent: Wednesday, June 22, 2005 7:04 PM
> Subject: Re: Javascript onclick
> 
> 
> 
>>Vadim Pesochinskiy wrote:
>>
>>
>>>Hello!
>>>
>>>Our web designer has a habit of creating buttons using <a> tag
> 
> and onclick 
> 
>>>Javascript and styles for button image. I am wondering how do
> 
> I do this 
> 
>>>with Tapestry, without putting Javascript in Tapestry files?
> 
> Maybe there 
> 
>>>is a component that can do this type of thing?
>>>
>>
>>You'll have to create your own component, and make it output
> 
> whatever you 
> 
>>want.
>>Then, you'll have to instruct your designer how to use it.
>>In the example you present, you could end up with something
> 
> like:
> 
>><a jwcid="@MyLink"
>>     onclick="document.getElementById('descEdit').submit();
> 
> return false"
> 
>>     class="GrcBtn TTAreaBtn" id="descSubmitBtn"
>>     key="trouble_ticket.save_description_button"
>>     msgClass="Ctr" otherClass="Rt">body ignored</a>
>>If you also pick good default values, you can further trim
> 
> down the above 
> 
>>code.
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.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]

Reply via email to