[Geoserver-devel] Error Pages in Wicket

Hey all,

I've been breaking the administrative UI a lot recently playing with
JavaScript and stuff, and I was thinking it would be nice to create some
custom error pages for wicket, just to keep the navigation links from
completely disappearing when things go south.

It looks like it's pretty easy to do, though we have quite a few
options:

http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

I'd be happy to write a patch to add them, but I wanted to get a bit of
feedback on the content. I was thinking we could have an internal error
page like:

<h2>Oops, there was a server error...</h2>

Sorry, something unexpected happened on the server.

{if logged in}
Here's a stack trace you can include in the <link>JIRA</link> report for
this issue:
<textbox with stack trace/>

{else}
If you were <link>logged in</link>, you could view an error report for
this issue.
{end if}

Go back to the <link>home page</link> and try again.

and a session timeout page like:

<h2>Sorry, your session ended</h2>

It looks like you waited too long to make that last change. If this
continues to happen, you should get in touch with your system
administrator.

Go back to the <link>home page</link> and try again.

Any thoughts?

--
David Winslow
OpenGeo - http://opengeo.org/

That's indeed a very good idea and the content looks good enough to me.
have my enthusiast +1

Cheers,
Gabriel
David Winslow wrote:

Hey all,

I've been breaking the administrative UI a lot recently playing with
JavaScript and stuff, and I was thinking it would be nice to create some
custom error pages for wicket, just to keep the navigation links from
completely disappearing when things go south.

It looks like it's pretty easy to do, though we have quite a few
options:

http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

I'd be happy to write a patch to add them, but I wanted to get a bit of
feedback on the content. I was thinking we could have an internal error
page like:

<h2>Oops, there was a server error...</h2>

Sorry, something unexpected happened on the server.

{if logged in}
Here's a stack trace you can include in the <link>JIRA</link> report for
this issue:
<textbox with stack trace/>

{else}
If you were <link>logged in</link>, you could view an error report for
this issue.
{end if}

Go back to the <link>home page</link> and try again.

and a session timeout page like:

<h2>Sorry, your session ended</h2>

It looks like you waited too long to make that last change. If this
continues to happen, you should get in touch with your system
administrator.

Go back to the <link>home page</link> and try again.

Any thoughts?

--
David Winslow OpenGeo - http://opengeo.org/

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Wow, that took a bit longer than I expected. Anyway, there's a patch up
on JIRA now for this, if anyone wants to review. I'd like to get a
thumbs-up from at least one more person before committing to web-core.

http://jira.codehaus.org/browse/GEOS-3552

--
David Winslow
OpenGeo - http://opengeo.org/

On Mon, 2009-09-28 at 15:48 -0300, Gabriel Roldan wrote:

That's indeed a very good idea and the content looks good enough to me.
have my enthusiast +1

Cheers,
Gabriel
David Winslow wrote:
> Hey all,
>
> I've been breaking the administrative UI a lot recently playing with
> JavaScript and stuff, and I was thinking it would be nice to create some
> custom error pages for wicket, just to keep the navigation links from
> completely disappearing when things go south.
>
> It looks like it's pretty easy to do, though we have quite a few
> options:
>
> http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
>
> I'd be happy to write a patch to add them, but I wanted to get a bit of
> feedback on the content. I was thinking we could have an internal error
> page like:
>
> <h2>Oops, there was a server error...</h2>
>
> Sorry, something unexpected happened on the server.
>
> {if logged in}
> Here's a stack trace you can include in the <link>JIRA</link> report for
> this issue:
> <textbox with stack trace/>
>
> {else}
> If you were <link>logged in</link>, you could view an error report for
> this issue.
> {end if}
>
> Go back to the <link>home page</link> and try again.
>
>
>
> and a session timeout page like:
>
> <h2>Sorry, your session ended</h2>
>
> It looks like you waited too long to make that last change. If this
> continues to happen, you should get in touch with your system
> administrator.
>
> Go back to the <link>home page</link> and try again.
>
>
> Any thoughts?
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel

David Winslow ha scritto:

Wow, that took a bit longer than I expected. Anyway, there's a patch up
on JIRA now for this, if anyone wants to review. I'd like to get a
thumbs-up from at least one more person before committing to web-core.

Thumbs up!

Minor thing, the timeout page says "It looks like you waited to long to make that last change". Should use "too long" instead, shouldn't it?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks aaime. The typo's fixed and the change is committed.

--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, 2009-09-29 at 09:56 +0200, Andrea Aime wrote:

David Winslow ha scritto:
> Wow, that took a bit longer than I expected. Anyway, there's a patch up
> on JIRA now for this, if anyone wants to review. I'd like to get a
> thumbs-up from at least one more person before committing to web-core.

Thumbs up!

Minor thing, the timeout page says "It looks like you waited to long to
make that last change". Should use "too long" instead, shouldn't it?

Cheers
Andrea