Re: HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-04 Thread Gert-Jan Schouten
Done! https://issues.apache.org/jira/browse/WICKET-4196 *Gert-Jan Schouten Java Developer* On 03/11/11 15:16, Igor Vaynberg wrote: please create a jira issue. -igor On Thu, Nov 3, 2011 at 7:02 AM, Gert-Jan Schouten gert-jan.schou...@roboreus.com wrote: Hello! The problem is that a

Re: HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-04 Thread Martin Grigorov
See the comments in the ticket On Fri, Nov 4, 2011 at 11:57 AM, Gert-Jan Schouten gert-jan.schou...@roboreus.com wrote: Done! https://issues.apache.org/jira/browse/WICKET-4196 *Gert-Jan Schouten Java Developer* On 03/11/11 15:16, Igor Vaynberg wrote: please create a jira issue. -igor

RE: abort loading lazy components

2011-11-04 Thread Michal Wegrzyn
Thanks for an update Martin. Unfortunately using IAjaxCallDecorator#decorateScript() prevents handling request (nothing happens). If I append the stop script directly to ajax request target (before sending event), then request proceeds, but the first lazy component is not loaded. Also, the

Re: Orders of CSS files

2011-11-04 Thread Clint Checketts
You can manually add in the autocomplete's CSS file yourself, and wicket won't re-add it in. That way you can add in your custom CSS after it. -Clint On Thu, Nov 3, 2011 at 9:43 AM, Илья Нарыжный phan...@ydn.ru wrote: Hello, Is there some way to specify final CSS file which will be used by

jqwicket question

2011-11-04 Thread Decebal Suiu
Hello I want to migrate from wiquery to jqwicket but I have a problem. In wiquery I used add(new HeaderContributor(new CoreJavaScriptHeaderContributor())) in BasePage to force adding jquery.js first before others js (my_application.js or jquery plugins). How can I do this with jqwicket? Thanks,

Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread heikki
hello, I still find URL mapping to be far from easy. I can't get the following mapping to work; all advice very much appreciated: intented mapping is: / -- map to IndexPage.class /b-- map to AnotherPage.class with pageparameter param=b /c

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Martin Grigorov
Hi, Custom root request mapper should be able to do it. Just check the request's URL - if it has no segments then return the home page, if it has one segment then return new RenderPageRequestHandler(AnotherPage.class, new PageParameters().add(param, segmentValue)) On Fri, Nov 4, 2011 at 2:53 PM,

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Bas Gooren
The latter problem is logical: your mapping is focused on incoming requests. When wicket renders a link to AnotherPage.class, which url should be generated? My guess is that a request for /b comes in, wicket then checks if the url is valid for AnotherPage.class by generating a url for it,

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Martin Grigorov
On Fri, Nov 4, 2011 at 3:17 PM, Bas Gooren b...@iswd.nl wrote: The latter problem is logical: your mapping is focused on incoming requests. When wicket renders a link to AnotherPage.class, which url should be generated? My guess is that a request for /b comes in, wicket then checks if the url

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Bas Gooren
My eyes too :-) I was working on absolute urls the other day, and then came along this pearl. But since you are the one who reported/created WICKET-3347 you've enjoyed the sight of this method before :-) But back on-topic: The TS should create a single root mapper which maps

Form action from Form component

2011-11-04 Thread Brian Mulholland
How do I get the value wicket is going to write out in the form action from the form component. The links have a getURL method, but I haven't seen an equivalent method for the form. Brian Mulholland - To unsubscribe, e-mail:

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread heikki
hi, thanks for your hints, but still I didn't get it to work. I have a RootRequestMapper that extends MountedMapper, and it overrides mapRequest() like so @Override public IRequestHandler mapRequest(Request request) { ListString segments = request.getUrl().getSegments();

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread heikki
sorry, just saw your reply about pastebin after posting. Here it is: http://pastebin.com/uRNyxZbV. Thanks and kind regards Heikki Doeleman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-external-pages-to-root-tp3890756p3990244.html Sent from the Users

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Martin Grigorov
No need to extend MountedMapper. Just implement IRequestMapper and then use application.setRootRequestMapper(yourMapper) See how CryptoMapper works. On Fri, Nov 4, 2011 at 4:21 PM, heikki tropic...@gmail.com wrote: sorry, just saw your reply about pastebin after posting. Here it is:

Re: Form action from Form component

2011-11-04 Thread Martin Grigorov
org.apache.wicket.markup.html.form.Form.getActionUrl() it is protected On Fri, Nov 4, 2011 at 4:06 PM, Brian Mulholland blmulholl...@gmail.com wrote: How do I get the value wicket is going to write out in the form action from the form component.  The links have a getURL method, but I haven't

Re: Form action from Form component

2011-11-04 Thread manuelbarzi
may you try extending overriding your form :? YourForm extends Form { ... ... onComponentTag(ComponentTag tag) { ... super.onComponentTag(tag); String action = tag.getString(action); ... } On Fri, Nov 4, 2011 at 3:06 PM, Brian Mulholland blmulholl...@gmail.comwrote: How do I get the

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Igor Vaynberg
On Fri, Nov 4, 2011 at 6:37 AM, Martin Grigorov mgrigo...@apache.org wrote: On Fri, Nov 4, 2011 at 3:17 PM, Bas Gooren b...@iswd.nl wrote: The latter problem is logical: your mapping is focused on incoming requests. When wicket renders a link to AnotherPage.class, which url should be

Re: Mounting page to mutliple urls with different pageparameter

2011-11-04 Thread Bas Gooren
Well, the simplest solution would be: - set Index.class as your homepage (through the corresponding method in your application class) - use mount(new MountedMapper(/${param}, AnotherPage.class)); that should at least get /b and /c working. Unfortunately (?) that will also allow /xyz and /abc

Re: Determine the latest page in multi tabbed browsing

2011-11-04 Thread robert.mcguinness
martin, would be awesome if you could through up a github project of wicket + ajax + history as an example of how to get all this to work. rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-the-latest-page-in-multi-tabbed-browsing-tp3947526p3991713.html

Forge tools?

2011-11-04 Thread nino martinez wael
Hi i was to a great presentation today on forge tools. They are lacking a wicket plugin. So the question are if any of you have started work on a plugin for wicket? http://jboss.org/forge Regards nino

Mounting and displaying correct URL's

2011-11-04 Thread anantasthana
I am mounting url's like mountPage(ProductType/${Category},ProductTypePage.class) and i read the Parameter Category and pull the info from the database So if i am on the page for food the URL is /ProductType/Food now inside my application im using redirects which redirect to these pages by

Re: Mounting and displaying correct URL's

2011-11-04 Thread Igor Vaynberg
use setResponsePage(ProductTypePage.class, new PageParameters().put(Category, Food)); -igor On Fri, Nov 4, 2011 at 5:11 PM, anantasthana anant.a...@gmail.com wrote: I am mounting url's like mountPage(ProductType/${Category},ProductTypePage.class) and i read the Parameter Category and pull

Re: Mounting and displaying correct URL's

2011-11-04 Thread anantasthana
Thanks for the Quick and extremely helpful reply. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-and-displaying-correct-URL-s-tp3992126p3992140.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Using FileUpload.writeTo() in a background thread

2011-11-04 Thread ilovewicket
i have the same problem, any ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-FileUpload-writeTo-in-a-background-thread-tp1845020p3991986.html Sent from the Users forum mailing list archive at Nabble.com.

Wicket 1.5 - setResponsePage() - page still tries to render HTML before redirect

2011-11-04 Thread armhold
Hi, Geoff Hayman raised this issue previously here: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-setResponsePage-page-still-tries-to-render-HTML-before-redirect-td3819145.html but apparently got no response (and Nabble won't let me reply to that for some reason... conspiracy?) I've run

Re: Wicket 1.5 - setResponsePage() - page still tries to render HTML before redirect

2011-11-04 Thread bht
Hi, To abort the construction of the page, you throw ResetResponseException or subclasses. Regards, Bernard On Fri, 4 Nov 2011 19:12:34 -0700 (PDT), you wrote: Hi, Geoff Hayman raised this issue previously here: