You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Inge Solvoll <ta...@ingenett.com> on 2005/09/01 11:42:48 UTC

Need combination of PopupLink and ExternalLink

I need to implement a popup window called by javascript. It will be a 
dialog box in my application. In this window, I want to load a page that 
implements IExternalPage. From what I've seen so far, it looks like I 
will have to implement a combination of ExternalLink and PopupLink 
myself. Or are there other alternatives?

Thanks

Inge

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


Re: Need combination of PopupLink and ExternalLink

Posted by Inge Solvoll <ta...@ingenett.com>.
Thanks a lot, this tip saved me a lot of work!! I also extracted some 
other (to me) new knowledge about tapestry from your code sample, so 
this was great help.

Inge :)

Nick Westgate wrote:
> Hi Inge.
> 
> In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.
> 
>     <component id="recordDetailLink" type="ExternalLink">
>         <binding name="page" expression="'RecordDetail'"/>
>         <binding name="parameters" expression="{patientId, record.id}"/>
>         <binding name="renderer" 
> expression="beans.recordDetailLinkRenderer"/>
>     </component>
>     <bean class="org.apache.tapestry.contrib.link.PopupLinkRenderer" 
> name="recordDetailLinkRenderer">
>         <set-property name="windowName" expression="'recordDetail'"/>
>         <set-property name="features" expression="'top=100,left=100'"/>
>     </bean>
> 
> Cheers,
> Nick.
> 
> 
> Inge Solvoll wrote:
> 
>> I need to implement a popup window called by javascript. It will be a 
>> dialog box in my application. In this window, I want to load a page 
>> that implements IExternalPage. From what I've seen so far, it looks 
>> like I will have to implement a combination of ExternalLink and 
>> PopupLink myself. Or are there other alternatives?
>>
>> Thanks
>>
>> Inge
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 


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


Re: Need combination of PopupLink and ExternalLink

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Inge.

In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.

     <component id="recordDetailLink" type="ExternalLink">
         <binding name="page" expression="'RecordDetail'"/>
         <binding name="parameters" expression="{patientId, record.id}"/>
         <binding name="renderer" expression="beans.recordDetailLinkRenderer"/>
     </component>
     <bean class="org.apache.tapestry.contrib.link.PopupLinkRenderer" name="recordDetailLinkRenderer">
         <set-property name="windowName" expression="'recordDetail'"/>
         <set-property name="features" expression="'top=100,left=100'"/>
     </bean>

Cheers,
Nick.


Inge Solvoll wrote:
> I need to implement a popup window called by javascript. It will be a 
> dialog box in my application. In this window, I want to load a page that 
> implements IExternalPage. From what I've seen so far, it looks like I 
> will have to implement a combination of ExternalLink and PopupLink 
> myself. Or are there other alternatives?
> 
> Thanks
> 
> Inge
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 

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