tapestry-user@jakarta.apache.org
[Top] [All Lists]

RE: PopupLinkRenderer

Subject: RE: PopupLinkRenderer
From: "Craig Spry"
Date: Thu, 20 Apr 2006 08:05:04 +1000
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: @com.here.pages.PageWithLink@LINK_RENDERER"><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:chiappone@xxxxxxxxx] 
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 <lists@xxxxxxxxxxxxxxx> 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: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
> > For additional commands, e-mail:
tapestry-user-help@xxxxxxxxxxxxxxxxxx
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx
>
>


--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>