On Thu, Sep 8, 2011 at 3:24 PM, nhsoft.yhw <[email protected]> wrote:
> Migrate Question
>
> Q1:
> PackageResourceReference resRef = new
> PackageResourceReference(parent.getClass(), src);
> return (urlFor(resRef).toString());
>
> PageParameters is required for urlFor method, if why PageParameters is
> required.
just pass "new PageParameters()" or "null"
>
> Q2:
> Image imgThumbnail = new Image("thumbnailImage");
> imgThumbnail.add(new SimpleAttributeModifier("src",
> shopImageService.getThumbnailAbsoluteUrl(itemPhoto)));
>
> Image model object is required, how to code in wicket 1.5 if model is emtpy.
You don't need Image component. You can use WebComponent for that
>
> Q3:
> where LoopItem.getIteration() method
getIndex()
>
> Q4:
> how to redirect as follow code :
> getRequestCycle().setRequestTarget(new
> RedirectRequestTarget("/connect/qq/login"));
getRequestCycle().scheduleRequestHandlerAfterCurrent(new
RedirectRequestHandler(....))
>
> Q5:
> // EXCEL REPORT EXPORT
> final Link lnkExport = new Link("export") {
>
>        public void onClick() {
>                // temporarily switch off paging of results
>                final JxlExportOrder jxlExportOrder = new 
> JxlExportOrder(coOrder);
>                getRequestCycle().setRequestTarget(new IRequestTarget() {
>
>                        public void detach(RequestCycle requestCycle) {
>                                ...
>                        }
>
>                        public void respond(RequestCycle requestCycle) {
>                                ....
>                        }
>                });
>        }
> };
>
> IRequestTarget removed, which object replace?
IRequestHandler. See A4

Also take a look at the last 3 articles at http://wicketinaction.com.
They explain the new request handling.
>
>
> -----
> http://www.517wm.com
> 外卖订餐分享工具
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletRequest-in-wicket-1-5-tp3798272p3798640.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to