Re: What's replaced org.apache.wicket.request.target.basic.URIRequestTargetUrlCodingStrategy in 1.5?
Hi, On Wed, Nov 23, 2011 at 6:30 PM, erac wrote: > Thanks for the pointer to using request mappers and the continuing updates to > WicketInAction which are very useful. > > After some more work I've then solved my next problem of returning an 'on > the fly' XML response using extended ResourceReference & ByteArrayResource > classes. This is also very different to the solution in 1.4 where I overrode > URIRequestTargetUrlCodingStrategy.decode() returning a new > ResourceStreamRequestTarget. > > Can you suggest a way of understanding the relationships of these many > classes and the best way of choosing a solution? I apologise for such an > open question but at the moment I seem to spend a long time Googling until I > get a hint of a way forward. The migration page is the documentation we only have... Please start a new thread(s) with specific question(s) about your application needs and we will see how to approach them the best way. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/What-s-replaced-org-apache-wicket-request-target-basic-URIRequestTargetUrlCodingStrategy-in-1-5-tp4091780p4100321.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What's replaced org.apache.wicket.request.target.basic.URIRequestTargetUrlCodingStrategy in 1.5?
Thanks for the pointer to using request mappers and the continuing updates to WicketInAction which are very useful. After some more work I've then solved my next problem of returning an 'on the fly' XML response using extended ResourceReference & ByteArrayResource classes. This is also very different to the solution in 1.4 where I overrode URIRequestTargetUrlCodingStrategy.decode() returning a new ResourceStreamRequestTarget. Can you suggest a way of understanding the relationships of these many classes and the best way of choosing a solution? I apologise for such an open question but at the moment I seem to spend a long time Googling until I get a hint of a way forward. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-s-replaced-org-apache-wicket-request-target-basic-URIRequestTargetUrlCodingStrategy-in-1-5-tp4091780p4100321.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What's replaced org.apache.wicket.request.target.basic.URIRequestTargetUrlCodingStrategy in 1.5?
Hi, **UrlCodingStrategy interface and all its impls were replaced with IRequestMapper and its impls. These examples weren't migrated mostly because there were no tests for them. Read http://wicketinaction.com/2011/07/wicket-1-5-request-mapper/ and the next two articles for more about IRequestMapper and Co. Check also https://issues.apache.org/jira/browse/WICKET-4228. This ticket is a contribution by a user that migrates CapturingUrlCodingStrategy from the same examples to 1.5. Use it as inspiration. The easiest way to see what the new IRequestMapper impls can do is by checking their unit tests. I think IRequestMapper is much simpler than IUrlCodingStrategy and it shouldn't be very hard to implement what you need. On Mon, Nov 21, 2011 at 4:58 PM, Richard Care wrote: > Hi Wicketeers, > > I want to capture requests to sub-pagesof a specific URL (e.g. > http://host/root-page/42 as a sub-page of http://host/root-page/) and then > respond with XML that's based on the current state of the site and the tail > of the URL (e.g. 42) > > I've used URIRequestTargetUrlCodingStrategy as demonstrated in > http://wicketstuff.org/wicket14/staticpages/but (as with many other classes) > this has moved/disappeared in Wicket 1.5. > > I haven't found any mention of this class in > https://cwiki.apache.org/WICKET/migration-to-wicket-15.htmland the > staticpages example above has disappeared from > http://wicketstuff.org/wicket/index.html > > The migration notes do mention > org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy so it > looks like AbstractRequestTargetUrlCodingStrategy has been replaced by > IRequestHandler and its implementations. As mount() now only takes an > IRequestMapper I assumes that is also relevant but I would really appreciate > a pointer as to which of the many classes implementing IRequestHandler and > IRequestMapper to use. > > Thanks in advance. > > Regards Richard Care > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What's replaced org.apache.wicket.request.target.basic.URIRequestTargetUrlCodingStrategy in 1.5?
Hi Wicketeers, I want to capture requests to sub-pagesof a specific URL (e.g. http://host/root-page/42 as a sub-page of http://host/root-page/) and then respond with XML that's based on the current state of the site and the tail of the URL (e.g. 42) I've used URIRequestTargetUrlCodingStrategy as demonstrated in http://wicketstuff.org/wicket14/staticpages/but (as with many other classes) this has moved/disappeared in Wicket 1.5. I haven't found any mention of this class in https://cwiki.apache.org/WICKET/migration-to-wicket-15.htmland the staticpages example above has disappeared from http://wicketstuff.org/wicket/index.html The migration notes do mention org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy so it looks like AbstractRequestTargetUrlCodingStrategy has been replaced by IRequestHandler and its implementations. As mount() now only takes an IRequestMapper I assumes that is also relevant but I would really appreciate a pointer as to which of the many classes implementing IRequestHandler and IRequestMapper to use. Thanks in advance. Regards Richard Care