You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Karen Schaper <Ka...@frontiernet.net> on 2008/06/27 05:02:17 UTC
New browser window on RedirectRequestTarget(url)
Hello Again,
I'm hoping there is a simple solution for this. I can't seem to find the
right place to look.
Basically this line of code, I'd like to open a new browser window to
display it in.
getRequestCycle().setRequestTarget(new RedirectRequestTarget( url ) );
Thanks for all your help. It is REALLY appreciated.
-Karen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: New browser window on RedirectRequestTarget(url)
Posted by Igor Vaynberg <ig...@gmail.com>.
so give that link a target attribute
eg target="_blank"
-igor
On Sun, Jun 29, 2008 at 8:34 PM, Karen Schaper
<Ka...@frontiernet.net> wrote:
> I can't use a Link. This happens when the user clicks on a menu item from a context menu I've created.
>
> It's in the onClick of IYuiMenuAjaxAction.
>
> Not sure I'm doing this right. I don't need to forward the request. I just need to open this url in it's own window.
>
>
>
>
>
>> -----Original Message-----
>> From: Martin Grigorov [mailto:mcgregory@e-card.bg]
>> Sent: Friday, June 27, 2008 4:17 AM
>> To: users@wicket.apache.org
>> Subject: Re: New browser window on RedirectRequestTarget(url)
>>
>>
>> On Thu, 2008-06-26 at 23:02 -0400, Karen Schaper wrote:
>> > Hello Again,
>> >
>> > I'm hoping there is a simple solution for this. I can't seem
>> to find the
>> > right place to look.
>> >
>> > Basically this line of code, I'd like to open a new browser window to
>> > display it in.
>> >
>> > getRequestCycle().setRequestTarget(new
>> RedirectRequestTarget( url ) );
>> >
>> >
>> > Thanks for all your help. It is REALLY appreciated.
>> >
>> > -Karen
>>
>> Hi Karen,
>>
>> Try with:
>>
>> link = new Link(wid) {
>>
>> public void onClick() {
>> getRequestCycle().setRequestTarget(new
>> RedirectRequestTarget( url ) );
>> }
>> }
>>
>> link.setPopupSettings(new PopupSettins(...));
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
RE: New browser window on RedirectRequestTarget(url)
Posted by Karen Schaper <Ka...@frontiernet.net>.
I can't use a Link. This happens when the user clicks on a menu item from a context menu I've created.
It's in the onClick of IYuiMenuAjaxAction.
Not sure I'm doing this right. I don't need to forward the request. I just need to open this url in it's own window.
> -----Original Message-----
> From: Martin Grigorov [mailto:mcgregory@e-card.bg]
> Sent: Friday, June 27, 2008 4:17 AM
> To: users@wicket.apache.org
> Subject: Re: New browser window on RedirectRequestTarget(url)
>
>
> On Thu, 2008-06-26 at 23:02 -0400, Karen Schaper wrote:
> > Hello Again,
> >
> > I'm hoping there is a simple solution for this. I can't seem
> to find the
> > right place to look.
> >
> > Basically this line of code, I'd like to open a new browser window to
> > display it in.
> >
> > getRequestCycle().setRequestTarget(new
> RedirectRequestTarget( url ) );
> >
> >
> > Thanks for all your help. It is REALLY appreciated.
> >
> > -Karen
>
> Hi Karen,
>
> Try with:
>
> link = new Link(wid) {
>
> public void onClick() {
> getRequestCycle().setRequestTarget(new
> RedirectRequestTarget( url ) );
> }
> }
>
> link.setPopupSettings(new PopupSettins(...));
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: New browser window on RedirectRequestTarget(url)
Posted by Martin Grigorov <mc...@e-card.bg>.
On Thu, 2008-06-26 at 23:02 -0400, Karen Schaper wrote:
> Hello Again,
>
> I'm hoping there is a simple solution for this. I can't seem to find the
> right place to look.
>
> Basically this line of code, I'd like to open a new browser window to
> display it in.
>
> getRequestCycle().setRequestTarget(new RedirectRequestTarget( url ) );
>
>
> Thanks for all your help. It is REALLY appreciated.
>
> -Karen
Hi Karen,
Try with:
link = new Link(wid) {
public void onClick() {
getRequestCycle().setRequestTarget(new RedirectRequestTarget( url ) );
}
}
link.setPopupSettings(new PopupSettins(...));
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org