who is making a patch :)

On 5/10/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:

* JulianS:
>
> If you mount a package e.g.
>
>       mount("/pages", PackageName.forClass(Index.class));
>
>
> You will run into a RuntimeException if you type in a url like
> "http://localhost:8081/quickstart/app/pages"; (I'm using Wicket 1.2.5):
>
> WicketMessage: Unable to load class with name: wicket.quickstart.
>
> Root cause:
>
> wicket.WicketRuntimeException: Unable to load class with name:
> wicket.quickstart.
> at
> wicket.application.DefaultClassResolver.resolveClass(
DefaultClassResolver.java:66)
> at
>
wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(
PackageRequestTargetUrlCodingStrategy.java:82)
> ...
>
> This seems wrong to me. The user should never see a RuntimeException no
> matter what they type in.

That's very true, and there is a JIRA issue for this:

PackageRequestTargetUrlCodingStrategy should interrupts the cycle
and sends a 404 when a page/class cannot be found
https://issues.apache.org/jira/browse/WICKET-293
--
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to