You probably won't be able to make this fit for everyone, what about
removing any 'Page' suffix?
So I'd add another option:
4) leave class name mangling to subclasses (as currently implemented via
#transformFromUrl and #transformForUrl)
Sven
On 08/08/2011 04:20 PM, Bruno Borges wrote:
Martin and I were talking about issue #3941 and he suggested that I should
reopen the discussion here.
https://issues.apache.org/jira/browse/WICKET-3941
I originally proposed that PackageMapper should offer a feature (disabled by
default) to de-capitalize the page class name.
MyPage -> http://localhost/a/myPage
But Martin suggested that it should look like:
MyPage -> http://localhost/a/my-page
So the quizz is:
1) Should PackageMapper offer a de-capitalized version of page class name?
2) Should PackageMapper offer a hyphen-separated-lower-case version of page
class name?
3) Either way, should PackageMapper offer this feature enabled by default on
Wicket 1.5 or keep it disabled by default and let users enable it if they
want?
Reason to have this is to avoid coding this style of URL for Package mapped
pages every time. Conservative users always look at me when they see that
kind of URL (http://localhost/a/MyPage) and they ask me to change it.
Thanks,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099