I rolled a component that uses the IE specific tag to render normal button if
the used browser is less than IE 8. (IE 8+ handles it correctly)

That wasn't the greatest solution, but it worked. Also it only matters when
you have more than one button in the form, so single button forms can be
implemented as if it works ok in ie.

 - Ville

<!--[if lt IE 8]>Less than IE 8 submit<![endif]-->
<![if !lt IE 8]>IE8 or greater or non-ie browser button<![endif]>


Jim O'Callaghan wrote:
> 
> Can anyone advise on a good approach for IE's handling of the <button>
> tag?
> I was using:
> 
>  
> 
>  ${returnPage} <button>${message:generic.continue-label}</button> 
> 
>  
> 
> . in my tml with:
> 
>  
> 
> Public Link getReturnPage(){.}
> 
>  
> 
> . in my associated java class until I found IE doesn't behave the same way
> as Chrome / FF.  I am trying to avoid having to provide an onActionFromXYZ
> in my page class as I already have the href I want to navigate to - just
> that I want to style it as a button without too much hacking.  I don't
> want
> to put PageLinks in my tml as in this specific case the context is
> variable.
> 
>  
> 
> Regards,
> 
> Jim. 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/%3Cbutton%3E-for-IE-tp29346696p29347648.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to