I did it a little bit differently to the way described below here is how
I did it:
In the .html file:
<a jwcid="@GenericLink" class="statuslink" href="ognl:generatedLink"
windowName="remote"
features="status=yes,toolbar=no,menubar=no,location=no,resizable=yes"
renderer="ognl: @[EMAIL PROTECTED]"><span
key="LinkMsg">Link</span></a>
In the Page.java
public class Page extends BasePage
{
public static PopupLinkRenderer LINK_RENDERER = new
PopupLinkRenderer();
public void pageBeginRender(PageEvent arg0)
{
LINK_RENDERER.setFeatures("status=yes,toolbar=no,menubar=no,location=no,
resizable=yes");
LINK_RENDERER.setWindowName("Remote");
}
}
This seems to work, but I think that I should make LINK_RENDERER a
private non static member variable with a getter and setter, I don't
think this would work in a heavy load situation.
Craig
-----Original Message-----
From: Chris Chiappone [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 April 2006 1:42 AM
To: Tapestry users
Subject: Re: PopupLinkRenderer
Here is some code examples:
In .jwc or .page:
<bean class="org.apache.tapestry.contrib.link.PopupLinkRenderer"
name="popupTermsRenderer">
<set name="windowName" value="literal:TermsOfUse" />
<set name="features"
value="literal:top=100,left=100,width=480,height=480,scrollbars=yes,resi
zable=no"
/>
</bean>
<component id="popupTerms" type="DirectLink">
<binding name="listener" value="listener:termsOfUsePopup" />
<binding name="renderer" value="beans.popupTermsRenderer" />
</component>
In .html file:
<span jwcid="popupTerms"/>
Hope that helps...
~chris
On 4/19/06, Mark <[EMAIL PROTECTED]> wrote:
>
> If it's not too much code, can you post it for others who might have
the
> same problem, please?
>
>
> Craig Spry wrote:
> > Don't worry about my question I figured it out for myself.
> >
> > Craig
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]