Re: Modifying PageParameters

2011-11-10 Thread Jochen Mader
So much more awesome... (goes and cries in a corner)
Am 11.11.2011 01:04 schrieb "Igor Vaynberg" :

> is it more awesome then this one:
>
> https://github.com/42Lines/wicket-cdi
>
> -igor
>
> On Thu, Nov 10, 2011 at 1:22 PM, Jochen Mader 
> wrote:
> > Hello,
> > I am currently working on a Weld-Integration for Wicket 1.5.
> > Got almost everything done but Conversations are giving me a headache.
> > When navigating to another page I need to provide the conversation ID.
> > Only at the very end of a request I am able to figure out if the
> > conversation is valid.
> > For an AjaxLink using setResponsePage I thought the following would be
> > the thing to do:
> > Use onRequestHandlerExecuted to do the stuff at the end of the request.
> > There I look for an IPageRequestHandler and modify its PageParameters
> > using one of the following methods:
> >
> pageHandler.getPage().getPageParameters().add(WeldMetaData.CONVERSATIONID,
> > conversation.getId());
> > pageHandler.getPageParameters().add(WeldMetaData.CONVERSATIONID,
> > conversation.getId());
> >
> > Apparently this doesn't work and parameters set in this way won't end
> > up in the response page.
> > What do I have to do to achieve this?
> >
> > Thanks,
> >
> > Jochen
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Modifying PageParameters

2011-11-10 Thread Igor Vaynberg
is it more awesome then this one:

https://github.com/42Lines/wicket-cdi

-igor

On Thu, Nov 10, 2011 at 1:22 PM, Jochen Mader  wrote:
> Hello,
> I am currently working on a Weld-Integration for Wicket 1.5.
> Got almost everything done but Conversations are giving me a headache.
> When navigating to another page I need to provide the conversation ID.
> Only at the very end of a request I am able to figure out if the
> conversation is valid.
> For an AjaxLink using setResponsePage I thought the following would be
> the thing to do:
> Use onRequestHandlerExecuted to do the stuff at the end of the request.
> There I look for an IPageRequestHandler and modify its PageParameters
> using one of the following methods:
> pageHandler.getPage().getPageParameters().add(WeldMetaData.CONVERSATIONID,
> conversation.getId());
> pageHandler.getPageParameters().add(WeldMetaData.CONVERSATIONID,
> conversation.getId());
>
> Apparently this doesn't work and parameters set in this way won't end
> up in the response page.
> What do I have to do to achieve this?
>
> Thanks,
>
> Jochen
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Modifying PageParameters

2011-11-10 Thread Jochen Mader
Hello,
I am currently working on a Weld-Integration for Wicket 1.5.
Got almost everything done but Conversations are giving me a headache.
When navigating to another page I need to provide the conversation ID.
Only at the very end of a request I am able to figure out if the
conversation is valid.
For an AjaxLink using setResponsePage I thought the following would be
the thing to do:
Use onRequestHandlerExecuted to do the stuff at the end of the request.
There I look for an IPageRequestHandler and modify its PageParameters
using one of the following methods:
pageHandler.getPage().getPageParameters().add(WeldMetaData.CONVERSATIONID,
conversation.getId());
pageHandler.getPageParameters().add(WeldMetaData.CONVERSATIONID,
conversation.getId());

Apparently this doesn't work and parameters set in this way won't end
up in the response page.
What do I have to do to achieve this?

Thanks,

Jochen

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org