tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Waimun Yeow <wai...@dev.java.net>
Subject Re: PageLink with button
Date Thu, 01 Sep 2005 18:28:32 GMT
I checked tapestry 3.03 api; there is no ButtonRenderer available. I 
guess I will just stick to <a> href links, and wait till I migrate to 
v4.

Tks anyway. You have been a great help to me from the start.


--
waimun

On 9/1/05, Waimun Yeow <waimun@dev.java.net> wrote:
 > I got the following exception:
 >
 > The content of element type "component" must match
 > "(property*,(binding|inherited-binding|listener-binding|static-
 > binding|message-binding)*)".
 >
 > And here's my definition:
 > <component id="addAnother" type="PageLink">
 >   <binding name="page" expression="'AddVisit'"/>
 >   <binding name="renderer" expression="beans.buttonRenderer"/>
 > </component>
 >
 >
 > On 9/1/05, Alexandr Kundirenko <akundirenko@gmail.com> wrote:
 >  > Yes, it is for 4.0 version.
 >  > Not sure that it works for 3.0.3, try with 3x syntax
 >  > Use  replace "value" attribute "expression", don't use binding
 >  > prefixes "literal" and "bean", etc
 >  >
 >  > WY> I get the following exception:
 >  > WY> Attribute "value" must be declared for element type "binding"
 >  >
 >  > WY> Is the following implementation for Tapestry 4? I am using 
3.03.
 > And
 >  > WY> also, I think it should be beans.buttonRenderer.
 >  >
 >  >
 >  >
 >  > WY> On 9/1/05, Alexandr Kundirenko <akundirenko@gmail.com> wrote:
 >  >  >> There is simpler way:
 >  >  >>
 >  >  >> <bean name="buttonRenderer"
 >  > WY> class="org.apache.tapestry.link.ButtonLinkRenderer"/>
 >  >  >>
 >  >  >> <component id="cancel" type="PageLink">
 >  >  >>     <binding name="page" value="literal:TargetPage"/>
 >  >  >>     <binding name="renderer" value="bean:buttonRenderer"/>
 >  >  >> </component>
 >  >  >>
 >  >  >> --
 >  >  >> aku
 >  >  >>
 >  >  >> wctc> With CSS,
 >  >  >> wctc> you can make a <a> look like a button ...
 >  >  >>
 >  >  >> wctc> -----Original Message-----
 >  >  >> wctc> From: Waimun Yeow [mailto:waimun@dev.java.net]
 >  >  >> wctc> Sent: donderdag 1 september 2005 12:27
 >  >  >> wctc> To: tapestry-user@jakarta.apache.org
 >  >  >> wctc> Subject: PageLink with button
 >  >  >>
 >  >  >> wctc> Hi,
 >  >  >>
 >  >  >> wctc> How do I create a PageLink with a button instead of the
 > regular
 >  > WY> <a>
 >  >  >> wctc> href?
 >  >  >>
 >  >  >> wctc> If there's anyone who have done it, please advise....
 >  >  >>
 >  >  >>
 >  >  >> wctc> Tks,
 >  >  >>
 >  >  >>
 >  >  >> wctc> waimun
 >  >  >>
 >  >  >>
 >  >  >> wctc>
 >  > WY>
 > ---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message