You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sam Barrow <sa...@sambarrow.com> on 2010/02/14 08:37:44 UTC

Generics for datatable columns

This is a stupid minor thing but I was wondering.

If I have a datatable of SubClass objects, shouldn't a I be able to add
an IColumn<SuperClass> to the list of columns?

Not very often used, but could be useful occasionally like for
inheritance with domain entities. Couldn't hurt to implement this right
(just add a generics wildcard)?



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


RE: setPageExpiredErrorPage only for certain pages?

Posted by Andreas Lüdtke <sa...@t-online.de>.
Peter,

I implemented my own RequestCycle and that did the trick.

Thanks

	Andreas 

> -----Original Message-----
> From: Major Péter [mailto:majorpetya@sch.bme.hu] 
> Sent: Sunday, February 14, 2010 2:00 PM
> To: users@wicket.apache.org
> Subject: Re: setPageExpiredErrorPage only for certain pages?
> 
> My guess would be to override RequestCycle#onRuntimeException and do
> your logic there if the exception is PageExpiredException.
> 
> Regards,
> Peter
> 
> 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta:
> > In my WebApplication class I use setPageExpiredErrorPage(). 
> So far, so good.
> > But this happens also for the main/home page that everybody 
> can access. I
> > would like to redirect only the pages where a user has to 
> login, not for the
> > home page. If the homepage expires, a simple redirect to a 
> new session with
> > that page should be made.
> > 
> > Is this possible with wicket?
> > 
> > Andreas
> 
> ---------------------------------------------------------------------
> 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: setPageExpiredErrorPage only for certain pages?

Posted by Andreas Lüdtke <sa...@t-online.de>.
Martijn,

the page I'm talking about is already "bookmarked" but the problem arises
when the user submits new data to that page and the list on that page should
be updated.

Andreas

> -----Original Message-----
> From: Martijn Dashorst [mailto:martijn.dashorst@gmail.com] 
> Sent: Sunday, February 14, 2010 5:05 PM
> To: users@wicket.apache.org
> Subject: Re: setPageExpiredErrorPage only for certain pages?
> 
> How would you know which page was requested when the session has
> expired? The whole reason for the PageExpiredException is that wicket
> doesn't know which page was requested. Use bookmarkablepagelinks for
> links you don't want to expire.
> 
> Martijn
> 
> 2010/2/14 Major Péter <ma...@sch.bme.hu>:
> > My guess would be to override RequestCycle#onRuntimeException and do
> > your logic there if the exception is PageExpiredException.
> >
> > Regards,
> > Peter
> >
> > 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta:
> >> In my WebApplication class I use 
> setPageExpiredErrorPage(). So far, so good.
> >> But this happens also for the main/home page that 
> everybody can access. I
> >> would like to redirect only the pages where a user has to 
> login, not for the
> >> home page. If the homepage expires, a simple redirect to a 
> new session with
> >> that page should be made.
> >>
> >> Is this possible with wicket?
> >>
> >> Andreas
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
> 
> ---------------------------------------------------------------------
> 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: setPageExpiredErrorPage only for certain pages?

Posted by Martijn Dashorst <ma...@gmail.com>.
How would you know which page was requested when the session has
expired? The whole reason for the PageExpiredException is that wicket
doesn't know which page was requested. Use bookmarkablepagelinks for
links you don't want to expire.

Martijn

2010/2/14 Major Péter <ma...@sch.bme.hu>:
> My guess would be to override RequestCycle#onRuntimeException and do
> your logic there if the exception is PageExpiredException.
>
> Regards,
> Peter
>
> 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta:
>> In my WebApplication class I use setPageExpiredErrorPage(). So far, so good.
>> But this happens also for the main/home page that everybody can access. I
>> would like to redirect only the pages where a user has to login, not for the
>> home page. If the homepage expires, a simple redirect to a new session with
>> that page should be made.
>>
>> Is this possible with wicket?
>>
>> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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


Re: setPageExpiredErrorPage only for certain pages?

Posted by Major Péter <ma...@sch.bme.hu>.
My guess would be to override RequestCycle#onRuntimeException and do
your logic there if the exception is PageExpiredException.

Regards,
Peter

2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta:
> In my WebApplication class I use setPageExpiredErrorPage(). So far, so good.
> But this happens also for the main/home page that everybody can access. I
> would like to redirect only the pages where a user has to login, not for the
> home page. If the homepage expires, a simple redirect to a new session with
> that page should be made.
> 
> Is this possible with wicket?
> 
> Andreas

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


setPageExpiredErrorPage only for certain pages?

Posted by Andreas Lüdtke <sa...@t-online.de>.
In my WebApplication class I use setPageExpiredErrorPage(). So far, so good.
But this happens also for the main/home page that everybody can access. I
would like to redirect only the pages where a user has to login, not for the
home page. If the homepage expires, a simple redirect to a new session with
that page should be made.

Is this possible with wicket?

Andreas


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