I like the idea of having nicer urls, but I this proposed solution seems to get us only part of the way there. The given strategy gives us a nice url for the top level pages, but what pages linked from those? As far as I can tell the mount points don't seem to propagate down.
I wonder if it makes sense to bridge this idea with some sort of custom url encoding strategy, which seems to be the way to do this sort of stuff in wicket. See IRequestTargetUrlCodingStrategy. Some quick googling leads me also to this: http://java.dzone.com/news/wicket-creating-restful-urls Which I think could fit in quite well with the current UI. As for demo pages, yes, I think we should try to adapt this for any sort of page. Probably MenuPageInfo and DemoLinkInfo should share a common super type "PageInfo". Also DemoLinkInfo should be renamed to DemoPageInfo for consistencies sake. -Justin David Winslow wrote: > Hi all, > > Some of us at OpenGeo have been lamenting the overly long/verbose URLs > produced by Wicket. Wicket provides a concept of 'mounting' pages at > particular URLs, which we could use to clean them up a bit. I've put > together a small patch (attached) that uses the title i18n key for menu > pages as the mounted path as a small example (note this is just a sort > of proof-of-concept, I am NOT proposing that we uses the title keys. I > am really NOT proposing that we i18n-ize the URLs.) > > I'd like to add a 'prettyPath' or 'shortPath' field to MenuPageInfo to > allow those context items to provide a nice URL for the pages they > describe. We could leave it optional to avoid requiring a 'big-bang' > migration, but in the long run I'm not sure whether it should be > mandatory or not. > > Another question I have is whether we should extend this support to > other types of contributed pages (demo links?) > > Thoughts? > > -- > David Winslow > OpenGeo - http://opengeo.org/ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
