Thanks Ville. I will use the pageLink method where the context is created within the java file - the page linked to may also be dynamic, so will also need to be passed. A shame IE treats <button> differently.
Regards, Jim. -----Original Message----- From: Ville Virtanen [mailto:ville.virta...@cerion.fi] Sent: 04 August 2010 16:40 To: users@tapestry.apache.org Subject: Re: <button> for IE On a side note: you can use the onAction(possible_context) to catch any action made by any link. Also, you can construct the context for the pagelink (or actionlink) in the java file, just return new Object[]{value1, value2...} from the java method. (<t:pagelink page="somePage" context="prop:myContextMethod">....) - Ville 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-tp29346696p29347798.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org