Re: how to get HttpServletRequest in wicket 1.5

2011-09-21 Thread nhsoft.yhw
Q5:my code for wicket1.5 as follow: final Link lnkExport = new Link(export) { public void onClick() { Shop shop = shopService.read(shopId); // temporarily switch off paging of results

RE: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Hielke Hoeve
september 2011 11:36 To: users@wicket.apache.org Subject: Re: how to get HttpServletRequest in wicket 1.5 HttpServletRequest servletReq = (HttpServletRequest) getRequest().getContainerRequest(); On Thu, Sep 8, 2011 at 12:26 PM, nhsoft.yhw nhsoft@gmail.com wrote: in wicket 1.4.x, the code like

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread nhsoft.yhw
nhsoft.yhw wrote: Q7. how to get inputstream from ResourceReference object, here is code for wicket 1.4.x inputStream = reference.getResource().getResourceStream().getInputStream(); but IResource interface has no getResourceStream() method in wicket 1.5.0 My solution :

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Martin Grigorov
: donderdag 8 september 2011 11:36 To: users@wicket.apache.org Subject: Re: how to get HttpServletRequest in wicket 1.5 HttpServletRequest servletReq = (HttpServletRequest) getRequest().getContainerRequest(); On Thu, Sep 8, 2011 at 12:26 PM, nhsoft.yhw nhsoft@gmail.com wrote: in wicket 1.4.x

RE: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Hielke Hoeve
Roger, thanks for the clarification. Hielke -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: woensdag 14 september 2011 9:54 To: users@wicket.apache.org Subject: Re: how to get HttpServletRequest in wicket 1.5 java.lang.Object

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Peter Ertl
Am 14.09.2011 um 09:32 schrieb nhsoft.yhw: inputStream = packageResource.getCacheableResourceStream().getInputStream(); I think this needs some clarification... PackageResource has these methods for getting a stream: (1) protected IResourceStream getResourceStream() and (2) public

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Martin Grigorov
On Wed, Sep 14, 2011 at 2:07 PM, Peter Ertl pe...@gmx.org wrote: Am 14.09.2011 um 09:32 schrieb nhsoft.yhw: inputStream = packageResource.getCacheableResourceStream().getInputStream(); I think this needs some clarification... PackageResource has these methods for getting a stream:  (1)  

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Peter Ertl
@Martin: yeah, switching from protected to public should at most yield a warning in an overloaded class. Igor didn't like it. Maybe my English confused him and he thought about going from public to protected?! Would be great if we could change this in 1.5. What you think? Am 14.09.2011 um

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Martin Grigorov
Ah, yes. A child class which overrides the method and is protected will complain that visibility is reduced ... Have to wait for Wicket.next. On Wed, Sep 14, 2011 at 2:30 PM, Peter Ertl pe...@gmx.org wrote: @Martin: yeah, switching from protected to public should at most yield a warning in an

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Igor Vaynberg
and by complain he means a compile error... -igor On Wed, Sep 14, 2011 at 4:37 AM, Martin Grigorov mgrigo...@apache.org wrote: Ah, yes. A child class which overrides the method and is protected will complain that visibility is reduced ... Have to wait for Wicket.next. On Wed, Sep 14, 2011

Re: how to get HttpServletRequest in wicket 1.5

2011-09-09 Thread nhsoft.yhw
Q9. i found that modalwindow has some problem for firefox browse after upgrading to wicket 1.5. firefox version 6.0.1, modalwindow can not display when click open modalwindow link, but when i switch firefox's private browsing mode, it works . Chrome, IE8, Safari is ok. -

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread nhsoft.yhw
in wicket 1.4.x getRequestCycle().setRequestTarget(new RedirectRequestTarget(/connect/qq/login)); how to code for wicket 1.5.0 - http://www.517wm.com 外卖订餐分享工具 -- View this message in context:

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Martin Grigorov
HttpServletRequest servletReq = (HttpServletRequest) getRequest().getContainerRequest(); On Thu, Sep 8, 2011 at 12:26 PM, nhsoft.yhw nhsoft@gmail.com wrote: in wicket 1.4.x, the code like : HttpServletRequest request = getWebRequestCycle().getWebRequest().getHttpServletRequest(); but i

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Mike Mander
Am 08.09.2011 11:26, schrieb nhsoft.yhw: in wicket 1.4.x, the code like : HttpServletRequest request = getWebRequestCycle().getWebRequest().getHttpServletRequest(); but i don't know how to get HttpServletRequest in wicket 1.5 - http://www.517wm.com 外卖订餐分享工具 -- View this message in

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Mike Mander
Sorry for posting the wrong one. YOurs is org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContainerRequest() Mike in wicket 1.4.x, the code like : HttpServletRequest request = getWebRequestCycle().getWebRequest().getHttpServletRequest(); but i don't know how to get

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread nhsoft.yhw
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. Q2: Image imgThumbnail = new Image(thumbnailImage);

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Martin Grigorov
On Thu, Sep 8, 2011 at 3:24 PM, nhsoft.yhw nhsoft@gmail.com 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

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread nhsoft.yhw
Q7. how to get inputstream from ResourceReference object, here is code for wicket 1.4.x inputStream = reference.getResource().getResourceStream().getInputStream(); but IResource interface has no getResourceStream() method in wicket 1.5.0 - http://www.517wm.com 外卖订餐分享工具 -- View this message