You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Esteban Masoero <em...@getsense.com.ar> on 2009/10/19 19:08:49 UTC
Showing session-stored messages in another window/tab
Hi:
We've implemented the classic registration process:
- user registers
- app sends him an email with a generated link
- user clicks that link, which it's oppened in a new window/tab
- The UserActivationPage that responds to that link request does:
this.info(""User account activated"); setResponsePage(LoginPage.class);
(so the user can log in for the first time)
The problem is that the message is only shown when the link is oppened
in the same window/tab the user has previously registered. After trying
a few things, we ended up doing
this.getPageSettings().setAutomaticMultiWindowSupport(false); in
MyApplication, which seems to work (we think is related to wicket using
the same session, but we're not sure).
However, we're not sure whether it's the best way of solving this. Any
other ideas or comments?
Thanks,
Esteban
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Showing session-stored messages in another window/tab
Posted by Esteban Masoero <em...@getsense.com.ar>.
I haven't thought of that. Thanks, that's another altenative.
However, I'll like yo see whether there's a solution using session
messages, because I think of them as a nicer alternative. If i don't
find a way of achieving this, I'll use the parameter option.
thanks,
Esteban
Pedro Santos escribió:
> - app sends him an email with a generated link
> can this link encode an parameter like:isActivationFromEmail ?
> so:
> loginPageOrActivationPage.add(new Label("id","User account
> activated").setVisible(getPageParameters().get("isActivationFromEmail"));
>
>
> On Mon, Oct 19, 2009 at 4:24 PM, Esteban Masoero
> <em...@getsense.com.ar>wrote:
>
>
>> Sadly, you are not right, because I tried what you suggested and the error
>> kept appearing. Anyway, I just wanted to know whether the solution I used
>> was the proper one for this occasion. I didn't say that I'm using wicket
>> 1.3.7. Maybe that has something to do with it?
>>
>> Thanks,
>>
>> Esteban
>>
>> Vytautas Racelis escribió:
>>
>> Well, Component.info takes WebPage as reporter. Session.info reporter is
>>
>>> null.
>>> As i understand this will be rendered in session scope instead of single
>>> page.
>>> But i may be wrong :)
>>>
>>>
>>> Esteban Masoero wrote:
>>>
>>>
>>>> But as I see in org.apache.wicket.Component.info(String), that method
>>>> already adds that message to the session. Wouldn't be the same?
>>>>
>>>> Vytautas Racelis escribió:
>>>>
>>>>
>>>>> Hi,
>>>>> maybe getSession().info <http://this.info/>(""User account activated");
>>>>> would help
>>>>>
>>>>>
>>>>> On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
>>>>> <em...@getsense.com.ar>wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi:
>>>>>>
>>>>>> We've implemented the classic registration process:
>>>>>> - user registers
>>>>>> - app sends him an email with a generated link
>>>>>> - user clicks that link, which it's oppened in a new window/tab
>>>>>> - The UserActivationPage that responds to that link request does:
>>>>>> this.info(""User account activated");
>>>>>> setResponsePage(LoginPage.class);
>>>>>> (so the user can log in for the first time)
>>>>>>
>>>>>> The problem is that the message is only shown when the link is oppened
>>>>>> in
>>>>>> the same window/tab the user has previously registered. After trying a
>>>>>> few
>>>>>> things, we ended up doing
>>>>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>>>>> MyApplication, which seems to work (we think is related to wicket using
>>>>>> the
>>>>>> same session, but we're not sure).
>>>>>>
>>>>>> However, we're not sure whether it's the best way of solving this. Any
>>>>>> other ideas or comments?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Esteban
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>>>
>>>>
>>>>
>>>
>> ---------------------------------------------------------------------
>> 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: Showing session-stored messages in another window/tab
Posted by Pedro Santos <pe...@gmail.com>.
- app sends him an email with a generated link
can this link encode an parameter like:isActivationFromEmail ?
so:
loginPageOrActivationPage.add(new Label("id","User account
activated").setVisible(getPageParameters().get("isActivationFromEmail"));
On Mon, Oct 19, 2009 at 4:24 PM, Esteban Masoero
<em...@getsense.com.ar>wrote:
> Sadly, you are not right, because I tried what you suggested and the error
> kept appearing. Anyway, I just wanted to know whether the solution I used
> was the proper one for this occasion. I didn't say that I'm using wicket
> 1.3.7. Maybe that has something to do with it?
>
> Thanks,
>
> Esteban
>
> Vytautas Racelis escribió:
>
> Well, Component.info takes WebPage as reporter. Session.info reporter is
>> null.
>> As i understand this will be rendered in session scope instead of single
>> page.
>> But i may be wrong :)
>>
>>
>> Esteban Masoero wrote:
>>
>>> But as I see in org.apache.wicket.Component.info(String), that method
>>> already adds that message to the session. Wouldn't be the same?
>>>
>>> Vytautas Racelis escribió:
>>>
>>>> Hi,
>>>> maybe getSession().info <http://this.info/>(""User account activated");
>>>> would help
>>>>
>>>>
>>>> On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
>>>> <em...@getsense.com.ar>wrote:
>>>>
>>>>
>>>>
>>>>> Hi:
>>>>>
>>>>> We've implemented the classic registration process:
>>>>> - user registers
>>>>> - app sends him an email with a generated link
>>>>> - user clicks that link, which it's oppened in a new window/tab
>>>>> - The UserActivationPage that responds to that link request does:
>>>>> this.info(""User account activated");
>>>>> setResponsePage(LoginPage.class);
>>>>> (so the user can log in for the first time)
>>>>>
>>>>> The problem is that the message is only shown when the link is oppened
>>>>> in
>>>>> the same window/tab the user has previously registered. After trying a
>>>>> few
>>>>> things, we ended up doing
>>>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>>>> MyApplication, which seems to work (we think is related to wicket using
>>>>> the
>>>>> same session, but we're not sure).
>>>>>
>>>>> However, we're not sure whether it's the best way of solving this. Any
>>>>> other ideas or comments?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Esteban
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>
>>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Pedro Henrique Oliveira dos Santos
Re: Showing session-stored messages in another window/tab
Posted by Esteban Masoero <em...@getsense.com.ar>.
Sadly, you are not right, because I tried what you suggested and the
error kept appearing. Anyway, I just wanted to know whether the solution
I used was the proper one for this occasion. I didn't say that I'm using
wicket 1.3.7. Maybe that has something to do with it?
Thanks,
Esteban
Vytautas Racelis escribió:
> Well, Component.info takes WebPage as reporter. Session.info reporter
> is null.
> As i understand this will be rendered in session scope instead of
> single page.
> But i may be wrong :)
>
>
> Esteban Masoero wrote:
>> But as I see in org.apache.wicket.Component.info(String), that method
>> already adds that message to the session. Wouldn't be the same?
>>
>> Vytautas Racelis escribió:
>>> Hi,
>>> maybe getSession().info <http://this.info/>(""User account activated");
>>> would help
>>>
>>>
>>> On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
>>> <em...@getsense.com.ar>wrote:
>>>
>>>
>>>> Hi:
>>>>
>>>> We've implemented the classic registration process:
>>>> - user registers
>>>> - app sends him an email with a generated link
>>>> - user clicks that link, which it's oppened in a new window/tab
>>>> - The UserActivationPage that responds to that link request does:
>>>> this.info(""User account activated");
>>>> setResponsePage(LoginPage.class);
>>>> (so the user can log in for the first time)
>>>>
>>>> The problem is that the message is only shown when the link is
>>>> oppened in
>>>> the same window/tab the user has previously registered. After
>>>> trying a few
>>>> things, we ended up doing
>>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>>> MyApplication, which seems to work (we think is related to wicket
>>>> using the
>>>> same session, but we're not sure).
>>>>
>>>> However, we're not sure whether it's the best way of solving this. Any
>>>> other ideas or comments?
>>>>
>>>> Thanks,
>>>>
>>>> Esteban
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Showing session-stored messages in another window/tab
Posted by Vytautas Racelis <tu...@gmail.com>.
Well, Component.info takes WebPage as reporter.
Session.info reporter is null.
As i understand this will be rendered in session scope instead of single
page.
But i may be wrong :)
Esteban Masoero wrote:
> But as I see in org.apache.wicket.Component.info(String), that method
> already adds that message to the session. Wouldn't be the same?
>
> Vytautas Racelis escribió:
>> Hi,
>> maybe getSession().info <http://this.info/>(""User account activated");
>> would help
>>
>>
>> On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
>> <em...@getsense.com.ar>wrote:
>>
>>
>>> Hi:
>>>
>>> We've implemented the classic registration process:
>>> - user registers
>>> - app sends him an email with a generated link
>>> - user clicks that link, which it's oppened in a new window/tab
>>> - The UserActivationPage that responds to that link request does:
>>> this.info(""User account activated"); setResponsePage(LoginPage.class);
>>> (so the user can log in for the first time)
>>>
>>> The problem is that the message is only shown when the link is
>>> oppened in
>>> the same window/tab the user has previously registered. After trying
>>> a few
>>> things, we ended up doing
>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>> MyApplication, which seems to work (we think is related to wicket
>>> using the
>>> same session, but we're not sure).
>>>
>>> However, we're not sure whether it's the best way of solving this. Any
>>> other ideas or comments?
>>>
>>> Thanks,
>>>
>>> Esteban
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
--
Regards,
Vytautas Racelis
-----------------------------------
phone:+370-600-34389
e-mail: turisto@gmail.com
www.xaloon.org
www.leenle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Showing session-stored messages in another window/tab
Posted by Esteban Masoero <em...@getsense.com.ar>.
But as I see in org.apache.wicket.Component.info(String), that method
already adds that message to the session. Wouldn't be the same?
Vytautas Racelis escribió:
> Hi,
> maybe getSession().info <http://this.info/>(""User account activated");
> would help
>
>
> On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
> <em...@getsense.com.ar>wrote:
>
>
>> Hi:
>>
>> We've implemented the classic registration process:
>> - user registers
>> - app sends him an email with a generated link
>> - user clicks that link, which it's oppened in a new window/tab
>> - The UserActivationPage that responds to that link request does:
>> this.info(""User account activated"); setResponsePage(LoginPage.class);
>> (so the user can log in for the first time)
>>
>> The problem is that the message is only shown when the link is oppened in
>> the same window/tab the user has previously registered. After trying a few
>> things, we ended up doing
>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>> MyApplication, which seems to work (we think is related to wicket using the
>> same session, but we're not sure).
>>
>> However, we're not sure whether it's the best way of solving this. Any
>> other ideas or comments?
>>
>> Thanks,
>>
>> Esteban
>>
>> ---------------------------------------------------------------------
>> 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: Showing session-stored messages in another window/tab
Posted by Vytautas Racelis <tu...@gmail.com>.
Hi,
maybe getSession().info <http://this.info/>(""User account activated");
would help
On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero
<em...@getsense.com.ar>wrote:
> Hi:
>
> We've implemented the classic registration process:
> - user registers
> - app sends him an email with a generated link
> - user clicks that link, which it's oppened in a new window/tab
> - The UserActivationPage that responds to that link request does:
> this.info(""User account activated"); setResponsePage(LoginPage.class);
> (so the user can log in for the first time)
>
> The problem is that the message is only shown when the link is oppened in
> the same window/tab the user has previously registered. After trying a few
> things, we ended up doing
> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
> MyApplication, which seems to work (we think is related to wicket using the
> same session, but we're not sure).
>
> However, we're not sure whether it's the best way of solving this. Any
> other ideas or comments?
>
> Thanks,
>
> Esteban
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
--
Regards,
Vytautas Racelis
-----------------------------------
phone:+370-600-34389
e-mail: turisto@gmail.com
www.xaloon.org
www.leenle.com
Re: Showing session-stored messages in another window/tab
Posted by Esteban Masoero <em...@getsense.com.ar>.
I'm now calling getSession().info(). However, the message doesn't show up.
After debugging for a while I noticed that when de LogjnPage is created,
the message I added is there, and is perfectly rendered (I reached the
method
org.apache.wicket.markup.html.basic.Label.onComponentTagBody(MarkupStream,
ComponentTag) for the message label and the srting is there). Strangely,
after hitting F8 (Resume in eclipse) I reach the LoginPage constructor
again, as if the LoginPage were constructed again (and apparently it
is). This time, when the page creates the feedback panel, the session
has no messages, because as we may expect they have been consumed by the
previous instance of LoginPage. Apparently, this second instance is the
definitive instance of the page to be rendered, so finally no messages
are shown.
I must be doing something really wrong!, any ideas of why am I seeing
this strange twice-instanced pages behaviour?
Thanks,
Esteban
Igor Vaynberg escribió:
> you should call getsession().info() as mentioned in this thread.
>
> when you call info() on a component, that messages is scoped to the
> owning page. when you call getsession().info() the message is scoped
> to the session and is kept there until rendered.
>
> -igor
>
> On Mon, Oct 19, 2009 at 12:12 PM, Esteban Masoero
> <em...@getsense.com.ar> wrote:
>
>> I want it to be shown in the LoginPage, because the activation page does not
>> show anything, it only activates the user.
>> I tried something like:
>>
>> LoginPage page = new LoginPage();
>> page.info("User account activated");
>> setResponsePage(page);
>>
>> but it didn't work. Anyway, as I know, in order to leave a feedback message
>> that needs to be shown in the next whateverPage, you'll need to leave it to
>> the session. Am I missing something?
>>
>> Thanks,
>>
>> Esteban
>>
>>
>> Igor Vaynberg escribió:
>>
>>> you want the message to show on the loginpage or on the activation page?
>>>
>>> -igor
>>>
>>> On Mon, Oct 19, 2009 at 10:08 AM, Esteban Masoero
>>> <em...@getsense.com.ar> wrote:
>>>
>>>
>>>> Hi:
>>>>
>>>> We've implemented the classic registration process:
>>>> - user registers
>>>> - app sends him an email with a generated link
>>>> - user clicks that link, which it's oppened in a new window/tab
>>>> - The UserActivationPage that responds to that link request does:
>>>> this.info(""User account activated"); setResponsePage(LoginPage.class);
>>>> (so
>>>> the user can log in for the first time)
>>>>
>>>> The problem is that the message is only shown when the link is oppened in
>>>> the same window/tab the user has previously registered. After trying a
>>>> few
>>>> things, we ended up doing
>>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>>> MyApplication, which seems to work (we think is related to wicket using
>>>> the
>>>> same session, but we're not sure).
>>>>
>>>> However, we're not sure whether it's the best way of solving this. Any
>>>> other
>>>> ideas or comments?
>>>>
>>>> Thanks,
>>>>
>>>> Esteban
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Showing session-stored messages in another window/tab
Posted by Igor Vaynberg <ig...@gmail.com>.
you should call getsession().info() as mentioned in this thread.
when you call info() on a component, that messages is scoped to the
owning page. when you call getsession().info() the message is scoped
to the session and is kept there until rendered.
-igor
On Mon, Oct 19, 2009 at 12:12 PM, Esteban Masoero
<em...@getsense.com.ar> wrote:
> I want it to be shown in the LoginPage, because the activation page does not
> show anything, it only activates the user.
> I tried something like:
>
> LoginPage page = new LoginPage();
> page.info("User account activated");
> setResponsePage(page);
>
> but it didn't work. Anyway, as I know, in order to leave a feedback message
> that needs to be shown in the next whateverPage, you'll need to leave it to
> the session. Am I missing something?
>
> Thanks,
>
> Esteban
>
>
> Igor Vaynberg escribió:
>>
>> you want the message to show on the loginpage or on the activation page?
>>
>> -igor
>>
>> On Mon, Oct 19, 2009 at 10:08 AM, Esteban Masoero
>> <em...@getsense.com.ar> wrote:
>>
>>>
>>> Hi:
>>>
>>> We've implemented the classic registration process:
>>> - user registers
>>> - app sends him an email with a generated link
>>> - user clicks that link, which it's oppened in a new window/tab
>>> - The UserActivationPage that responds to that link request does:
>>> this.info(""User account activated"); setResponsePage(LoginPage.class);
>>> (so
>>> the user can log in for the first time)
>>>
>>> The problem is that the message is only shown when the link is oppened in
>>> the same window/tab the user has previously registered. After trying a
>>> few
>>> things, we ended up doing
>>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>>> MyApplication, which seems to work (we think is related to wicket using
>>> the
>>> same session, but we're not sure).
>>>
>>> However, we're not sure whether it's the best way of solving this. Any
>>> other
>>> ideas or comments?
>>>
>>> Thanks,
>>>
>>> Esteban
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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: Showing session-stored messages in another window/tab
Posted by Esteban Masoero <em...@getsense.com.ar>.
I want it to be shown in the LoginPage, because the activation page does
not show anything, it only activates the user.
I tried something like:
LoginPage page = new LoginPage();
page.info("User account activated");
setResponsePage(page);
but it didn't work. Anyway, as I know, in order to leave a feedback
message that needs to be shown in the next whateverPage, you'll need to
leave it to the session. Am I missing something?
Thanks,
Esteban
Igor Vaynberg escribió:
> you want the message to show on the loginpage or on the activation page?
>
> -igor
>
> On Mon, Oct 19, 2009 at 10:08 AM, Esteban Masoero
> <em...@getsense.com.ar> wrote:
>
>> Hi:
>>
>> We've implemented the classic registration process:
>> - user registers
>> - app sends him an email with a generated link
>> - user clicks that link, which it's oppened in a new window/tab
>> - The UserActivationPage that responds to that link request does:
>> this.info(""User account activated"); setResponsePage(LoginPage.class); (so
>> the user can log in for the first time)
>>
>> The problem is that the message is only shown when the link is oppened in
>> the same window/tab the user has previously registered. After trying a few
>> things, we ended up doing
>> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
>> MyApplication, which seems to work (we think is related to wicket using the
>> same session, but we're not sure).
>>
>> However, we're not sure whether it's the best way of solving this. Any other
>> ideas or comments?
>>
>> Thanks,
>>
>> Esteban
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Showing session-stored messages in another window/tab
Posted by Igor Vaynberg <ig...@gmail.com>.
you want the message to show on the loginpage or on the activation page?
-igor
On Mon, Oct 19, 2009 at 10:08 AM, Esteban Masoero
<em...@getsense.com.ar> wrote:
> Hi:
>
> We've implemented the classic registration process:
> - user registers
> - app sends him an email with a generated link
> - user clicks that link, which it's oppened in a new window/tab
> - The UserActivationPage that responds to that link request does:
> this.info(""User account activated"); setResponsePage(LoginPage.class); (so
> the user can log in for the first time)
>
> The problem is that the message is only shown when the link is oppened in
> the same window/tab the user has previously registered. After trying a few
> things, we ended up doing
> this.getPageSettings().setAutomaticMultiWindowSupport(false); in
> MyApplication, which seems to work (we think is related to wicket using the
> same session, but we're not sure).
>
> However, we're not sure whether it's the best way of solving this. Any other
> ideas or comments?
>
> Thanks,
>
> Esteban
>
> ---------------------------------------------------------------------
> 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