I have the following submit button that works great:

<t:submit t:id="pdf" name="Run Report" value="Run Report" /> 

with an onSelectedFromPdf() method in page class that references component id 
"pdf". 

Question:  How can this submit button be changed from just "Run Report" to an 
image?  

I tried: 

<input id="pdf" type="image" src="${context:layout/images/pdf_download.jpg}" />

which gives the error that "id Pdf does not exist".

And also: 

<t:submit t:id="pdf" t:image="${context:layout/images/pdf_download.jpg}" /> 

which would be great if it worked!  But gives error:

Failure reading parameter 'image' of component ...: Could not find a coercion 
from type java.lang.String to type org.apache.tapestry5.Asset.

Reply via email to