Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
* 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
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 Wicket-user@lists.sourceforge.net 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
make a jira issue for this https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420 On 5/10/07, JulianS [EMAIL PROTECTED] wrote: Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 Wicket-user@lists.sourceforge.net 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
Done: WICKET-554 Johan Compagner wrote: make a jira issue for this https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420 On 5/10/07, JulianS [EMAIL PROTECTED] wrote: Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 Wicket-user@lists.sourceforge.net 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a1040 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user