You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Vombach <an...@psi.ch> on 2004/11/18 12:27:42 UTC
PageLink with Button
Normally a PageLink component looks like
<a href="#" jwcid="@PageLink" page="mypage">goto my page</a>
This is fine but is it also possible to embed a HTML button instead of
the link? I would like to have a page with some text to be read and a
button which links to another page without having to define a java class
or using an image.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: PageLink with Button
Posted by Andreas Vombach <an...@psi.ch>.
...ok, the HTML can remain empty and the component is called with
<button jwcid="@PageButton" targetPage="newpage" label="go" />
Thanks again
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: PageLink with Button
Posted by Andreas Vombach <an...@psi.ch>.
Thank you, Markus for the component code. I'm (still) not too firm with
Components, I guess I'll need a PageButton.jwc like
<component-specification
class="org.tdr.ui.components.PageButton"
allow-body="no"
allow-informal-parameters="no">
<parameter name="targetPage" type="java.lang.String" required="yes"
direction="in"/>
<parameter name="label" type="java.lang.String" required="no"
direction="in"/>
<parameter name="disabled" type="java.lang.String" required="no"
direction="in"/>
</component-specification>
and some HTML spec file I'm not sure about the content ...??
Cheers Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: PageLink with Button
Posted by Markus Wiederkehr <ma...@gmail.com>.
I have written my own component for this purpose. Have a look at the
attached source code.
Markus
On Thu, 18 Nov 2004 12:27:42 +0100, Andreas Vombach
<an...@psi.ch> wrote:
> Normally a PageLink component looks like
>
> <a href="#" jwcid="@PageLink" page="mypage">goto my page</a>
>
> This is fine but is it also possible to embed a HTML button instead of
> the link? I would like to have a page with some text to be read and a
> button which links to another page without having to define a java class
> or using an image.