You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jensiator <je...@gmail.com> on 2012/04/25 10:04:19 UTC

Re: Any news on "1.5 - mapping different error pages for specific errors"

I Think is something like: 
public IRequestHandler onException(RequestCycle pCycle, Exception
pException) {
if(pException instanceof SomeException) {
 return new RenderPageRequestHandler(new PageProvider(new
SomeSpecialOwnErrorPage()));
}
}

>From my peek in the super class. Have not tested it. Please correct me if
I'm wrong. 
Let us all try to give each other code example in these discussion instead
of referring to sourcecode. Have anyone looked at competing languages like
Csharp. They got a lot of example codes i MSDN. Lets do the same!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4585856.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Any news on "1.5 - mapping different error pages for specific errors"

Posted by jensiator <je...@gmail.com>.
I will try to contribute

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4588983.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Any news on "1.5 - mapping different error pages for specific errors"

Posted by Martin Grigorov <mg...@apache.org>.
Hi Jens,

On Wed, Apr 25, 2012 at 11:04 AM, jensiator <je...@gmail.com> wrote:
> I Think is something like:
> public IRequestHandler onException(RequestCycle pCycle, Exception
> pException) {
> if(pException instanceof SomeException) {
>  return new RenderPageRequestHandler(new PageProvider(new
> SomeSpecialOwnErrorPage()));
> }
> }
>
> From my peek in the super class. Have not tested it. Please correct me if
> I'm wrong.
> Let us all try to give each other code example in these discussion instead
> of referring to sourcecode. Have anyone looked at competing languages like
> Csharp. They got a lot of example codes i MSDN. Lets do the same!

Since we don't have few hundred paid employees which main task is too
keep the documentation up-to-date we rely on the community to
update the Wiki and send patches (for javadocs as well) ;-)

>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4585856.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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