Re: throw new PageExpiredException("Request cannot be processed. The target page does not exist anymore.");

2010-03-23 Thread Fernando Wermus
Pedro,
 I think I got my problem.

I have a AjaxLink, BookmarkablePageLink, and the page. I would like to have
a stateful BookmarkablePageLink. This is just for not repeating code or
creating new pages. Is it possible? It seems not to be.

thanks in advance

On Tue, Mar 23, 2010 at 8:45 AM, Pedro Santos  wrote:

> Hi, give you page an constructor that your application IPageFactory know
> how
> to create. For instance, use the PageParameters. If your request cycle
> don't
> find your page in the session page map, and don't know how to create it,
> you
> got the mentioned exception.
>
> On Tue, Mar 23, 2010 at 3:44 AM, Fernando Wermus
> wrote:
>
> > Hi all,
> >I am getting this message with a page that gets some paremeters in its
> > constructor, some BookmarkablePageLink and an AjaxLink. When I pressed in
> > the AjaxLink, I got this exception. I don't understand the reason why is
> > thrown.
> >What I can guess is that there isn't any session to keep track in an
> > AjaxLink call because the page is stateless (get some parameters). Am I
> > right?
> >
> > thanks in advance
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: throw new PageExpiredException("Request cannot be processed. The target page does not exist anymore.");

2010-03-23 Thread Pedro Santos
Hi, give you page an constructor that your application IPageFactory know how
to create. For instance, use the PageParameters. If your request cycle don't
find your page in the session page map, and don't know how to create it, you
got the mentioned exception.

On Tue, Mar 23, 2010 at 3:44 AM, Fernando Wermus
wrote:

> Hi all,
>I am getting this message with a page that gets some paremeters in its
> constructor, some BookmarkablePageLink and an AjaxLink. When I pressed in
> the AjaxLink, I got this exception. I don't understand the reason why is
> thrown.
>What I can guess is that there isn't any session to keep track in an
> AjaxLink call because the page is stateless (get some parameters). Am I
> right?
>
> thanks in advance
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Pedro Henrique Oliveira dos Santos


throw new PageExpiredException("Request cannot be processed. The target page does not exist anymore.");

2010-03-22 Thread Fernando Wermus
Hi all,
I am getting this message with a page that gets some paremeters in its
constructor, some BookmarkablePageLink and an AjaxLink. When I pressed in
the AjaxLink, I got this exception. I don't understand the reason why is
thrown.
What I can guess is that there isn't any session to keep track in an
AjaxLink call because the page is stateless (get some parameters). Am I
right?

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus