oops, i meant to say that action should be set to the url of the returnPage

On Wed, Aug 4, 2010 at 20:50, Andreas Andreou <andy...@di.uoa.gr> wrote:
> i dont think i've ever seen <button> used inside an <a>
>
> what's wrong with doing something like:
>
> <form method="get" action="${returnPage}"><button type="submit"
> ...>...<./button></form>
>
> On Wed, Aug 4, 2010 at 19:49, Jim O'Callaghan <jc1000...@yahoo.co.uk> wrote:
>> 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
>>
>>
>
>
>
> --
> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
> Tapestry PMC / Tacos developer
> Open Source / JEE Consulting
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

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

Reply via email to