You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thomas Hackel <th...@bi-so.com> on 2004/11/03 15:03:51 UTC

(Conditional)OnLoad PopUp

Hi there!

I have to open a popUp when a page loads and when some condition is met.

Its no problem to write a window.open() call into a Conditional-span, 
but its a problem to create a tapestry url!

And the best thing would be if i could pass some objects to the page 
instead passing parameters via the url.

Is there an elegant/tapestry-like way to solve this problem?
I investigated into Script component which does not help when i can't 
constuct the target url.

Thanks,
Thomas

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


Re: (Conditional)OnLoad PopUp

Posted by Pablo Lalloni <pl...@afip.gov.ar>.
El mié, 03-11-2004 a las 12:57, Thomas Hackel escribió:

> when i use window.open(URL,x,y); i cant use a page link, i have to 
> construct the url by myself.


You should ask the PageService to build the link for you... the same
applies with other engine services...


-- 

Pablo I. Lalloni 
Teléfono +54 (11) 4347-3177 
Proyecto Pampa
Dirección Informática Tributaria
AFIP

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I B M
U B M
We all B M
For I B M!!!!
		-- H.A.R.L.I.E.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: (Conditional)OnLoad PopUp

Posted by James Sherwood <js...@romulin.com>.
Try

getRequestCycle().getRequestContext().getParameter("sp");

You can name it anything, id=4 and use id in the quotations.


I use this in one of our pages, dunno if it is absolutly correct, but it
works;)

Also look into the contrib popup component, might be easy there:)

James


----- Original Message ----- 
From: "Thomas Hackel" <th...@bi-so.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, November 03, 2004 11:57 AM
Subject: Re: (Conditional)OnLoad PopUp


> James Sherwood wrote:
> > If you dont want to mess with the chrome you can just use a pagelink
with a
> > static binding called Target with the value of _blank
>
> when i use window.open(URL,x,y); i cant use a page link, i have to
> construct the url by myself.
> now i reach the page i want (servlet + ? + service=page/ + pagename) but
> i cant give serviceparameter with the request.
>
> &sp=fooBar
>
> in the called page i dont get any serviceparameter :-(
>
> Thanks,
> Thomas
>
> ---------------------------------------------------------------------
> 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: (Conditional)OnLoad PopUp

Posted by Thomas Hackel <th...@bi-so.com>.
James Sherwood wrote:
> If you dont want to mess with the chrome you can just use a pagelink with a
> static binding called Target with the value of _blank

when i use window.open(URL,x,y); i cant use a page link, i have to 
construct the url by myself.
now i reach the page i want (servlet + ? + service=page/ + pagename) but 
i cant give serviceparameter with the request.

&sp=fooBar

in the called page i dont get any serviceparameter :-(

Thanks,
Thomas

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


Re: (Conditional)OnLoad PopUp

Posted by James Sherwood <js...@romulin.com>.
If you dont want to mess with the chrome you can just use a pagelink with a
static binding called Target with the value of _blank

If you want to control the chrome, you can create the url in java very
simple if its going to an internal page.

servlet + ? + service=page/ + pagename

for parameters being passed you can just add them to the end or use a direct
link for option 1


James


----- Original Message ----- 
From: "Thomas Hackel" <th...@bi-so.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, November 03, 2004 10:03 AM
Subject: (Conditional)OnLoad PopUp


> Hi there!
>
> I have to open a popUp when a page loads and when some condition is met.
>
> Its no problem to write a window.open() call into a Conditional-span,
> but its a problem to create a tapestry url!
>
> And the best thing would be if i could pass some objects to the page
> instead passing parameters via the url.
>
> Is there an elegant/tapestry-like way to solve this problem?
> I investigated into Script component which does not help when i can't
> constuct the target url.
>
> Thanks,
> Thomas
>
> ---------------------------------------------------------------------
> 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: (Conditional)OnLoad PopUp

Posted by David Solis <h....@gmail.com>.
Please check PopupLinkRenderer at contrib. Unfortunately is not part
of 3.0.1 distribution.

http://cvs.apache.org/viewcvs.cgi/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/link/Attic/PopupLinkRenderer.java?rev=1.1.2.1&only_with_tag=branch-3-0&view=markup


On Wed, 03 Nov 2004 15:03:51 +0100, Thomas Hackel
<th...@bi-so.com> wrote:
> Hi there!
> 
> I have to open a popUp when a page loads and when some condition is met.
> 
> Its no problem to write a window.open() call into a Conditional-span,
> but its a problem to create a tapestry url!
> 
> And the best thing would be if i could pass some objects to the page
> instead passing parameters via the url.
> 
> Is there an elegant/tapestry-like way to solve this problem?
> I investigated into Script component which does not help when i can't
> constuct the target url.
> 
> Thanks,
> Thomas
> 
> ---------------------------------------------------------------------
> 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: (Conditional)OnLoad PopUp

Posted by Marcus Brito <mb...@gmail.com>.
Take a look at the contrib:PopupLink component:

http://jakarta.apache.org/tapestry/doc/ComponentReference/contrib.PopupLink.html

-- Marcus Brito <mb...@gmail.com>

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