Re: problem with IResourceListener

2012-09-19 Thread Decebal Suiu
I analyzed these lines (two iframes = two sessions): requestUrl = widget?0-IResourceListener-widget-renderer-chartid=32836b83-27c5-43f7-a166-8ba38407d7dd objectHashCode = 12027390 requestUrl = widget?0-IResourceListener-widget-renderer-chartid=fb7e5efe-77c9-4494-9f99-9a577fef1687

Re: problem with IResourceListener

2012-09-19 Thread Martin Grigorov
Hi, You make requests to the same page instance with the same components inside it. I.e. 0-IResourceListener-widget-renderer-chart always uses the same instance of 'chart' component. On Wed, Sep 19, 2012 at 11:02 AM, Decebal Suiu decebal.s...@asf.ro wrote: I analyzed these lines (two iframes =

Re: problem with IResourceListener

2012-09-19 Thread Decebal Suiu
Thanks Martin I understand this. But why urlFor(IResourceListener.INTERFACE, null); returns 0-IResourceListener-widget-renderer-chart in both situations (two iframes in the same html file). The page version remains the same for both calls. It's ok this behavior? The problem appears only when I

Wicket 1.5 - How to configure link generated url?

2012-09-19 Thread Nicolas Tacheny
I'm coding a wicket 1.5 application and I need to control the way url are rendered for security reason. mountPage(xxx/yyy, Zzzz.class) is excellent for that but I have a problem with url generated for link listener. For exemple, if I add the following link to my page: add(new

Re: Wicket 1.5 - How to configure link generated url?

2012-09-19 Thread Martin Grigorov
Hi, You can use mountPage(login, LoginPage.class); add(new BookmarkablePageLink(link-login, LoginPage.class)) this will generate: /login. Whay do you want to replace '~' ? On Wed, Sep 19, 2012 at 1:47 PM, Nicolas Tacheny nicolas.tach...@gmail.com wrote: I'm coding a wicket 1.5 application and

Re: wicket-dnd strange situation

2012-09-19 Thread Marieke Vandamme
Dear Sven, Is wicket-dnd already changed for wicket 6 ? I can't find the sources for this.. Thanks! Kind Regards, Marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4652141.html Sent from the Users forum

Re: Wicket 1.5 - How to configure link generated url?

2012-09-19 Thread Nicolas Tacheny
Tx, it's ok with a BookmarkablePageLink but is there a way to configure that for Link in case I need to implement specifics behaviors in onClick? It's a security constraint in the owner company. My web app will be behind a Web Application Firewall (apache module) in which there are rules

AjaxFallbackLink's onClick with null AjaxRequestTarget (migrating 1.4 to 6)

2012-09-19 Thread Rodrigo Heffner
Hi, I have many AjaxFallbackLinks in my application, and all the onClick events have a null AjaxRequestTarget, causing NullPointerExceptions. Most of them look like this: new AjaxFallbackLink(editDetailsLink) { @Override public void onClick(AjaxRequestTarget target) {

Re: Wicket 1.5 - How to configure link generated url?

2012-09-19 Thread Martin Grigorov
By default Wicket uses '-' as url-encoded version of the component path separator (':'). Wicket uses '~' only if your component id has '-' in its name. So the easiest solution to avoid '~' is to not use '-' in the component ids. I.e. rename 'link-login' to 'linkLogin'. On Wed, Sep 19, 2012 at

Re: Wicket 1.5 - How to configure link generated url?

2012-09-19 Thread Nicolas Tacheny
Hallelujah! Tx a lot. On 19 Sep 2012, at 13:18, Martin Grigorov wrote: By default Wicket uses '-' as url-encoded version of the component path separator (':'). Wicket uses '~' only if your component id has '-' in its name. So the easiest solution to avoid '~' is to not use '-' in the

Re: AjaxFallbackLink's onClick with null AjaxRequestTarget (migrating 1.4 to 6)

2012-09-19 Thread Martin Grigorov
Hi, It seems you expect that 'target' will be always there so you actually need AjaxLink. Maybe JavaScript is disabled ... I just tested http://www.wicket-library.com/wicket-examples-6.0.x/ajax/links (the second link is AjaxFallbackLink) and 'target' is non-null. On Wed, Sep 19, 2012 at 1:59

Re: AjaxFallbackLink's onClick with null AjaxRequestTarget (migrating 1.4 to 6)

2012-09-19 Thread Rodrigo Heffner
Thanks Martin, I remembered I was adding jquery libraries to my application. After I removed the package resource references, ajax worked fine. On 19 September 2012 12:23, Martin Grigorov mgrigo...@apache.org wrote: Hi, It seems you expect that 'target' will be always there so you actually

Re: StringRequestTarget migration question

2012-09-19 Thread Rodrigo Heffner
Ok, finally managed to run the page affected by the code and it's working as expected. Thanks! On 18 September 2012 15:35, Martin Grigorov mgrigo...@apache.org wrote: See TextRequestHandler too. On Tue, Sep 18, 2012 at 5:18 PM, Rodrigo Heffner rodrigo.heff...@gmail.com wrote: Thanks,

Variable number of links with just one wicket id?

2012-09-19 Thread fabley
Hello, I’m pretty new to Wicket and I want to realize the following thing: There is a variable number of links which I’d like to show on my page with only one wicket-id… So that there can be added links in the Java Code without adding them in my HTML-file. Is there any solution to do this? Kind

Re: Variable number of links with just one wicket id?

2012-09-19 Thread Martin Grigorov
Hi, See AbstractRepeater and its specializations (e.g. RepeatingView, ListView). http://www.wicket-library.com/wicket-examples-6.0.x/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.RepeatingPage On Wed, Sep 19, 2012 at 4:31 PM, fabley a.j...@lrworld.com wrote: Hello, I’m

Re: conditional css

2012-09-19 Thread Bruno Borges
If you try to use the Twitter's Bootstrap template, it throws an exception of unclosed tag... :-( I removed those conditional CSS's and then it worked. *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Wed, Sep 19, 2012 at 2:53 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, What

Unable to succesfully propagate event from panel since getPage() throws error

2012-09-19 Thread lucast
Dear Forum, I have the following tree structure: WebPage has Panel A, which has Panel B. I am trying to propagate an event from Panel B so that it is caught from WebPage. Normally, I would propagate an event in the usual way: send(*getPage()*, Broadcast.BREADTH, new EventUpdate(someObject) );

Re: Unable to succesfully propagate event from panel since getPage() throws error

2012-09-19 Thread Martin Grigorov
getPage() will return 'null' only if you call send() in PanelB's constructor. Move the code in PanelB#onInitialize(). See Broadcast.EXACT. On Wed, Sep 19, 2012 at 6:28 PM, lucast lucastol...@hotmail.com wrote: Dear Forum, I have the following tree structure: WebPage has Panel A, which has

Re: Unable to succesfully propagate event from panel since getPage() throws error

2012-09-19 Thread Sebastien
Hi, Why not use BUBBLE instead of BREADTH so the order of traversal are component page ? ie: this.send(/* your panel */ this, Broadcast.BUBBLE, .) Sebastien. On Wed, Sep 19, 2012 at 5:28 PM, lucast lucastol...@hotmail.com wrote: Dear Forum, I have the following tree structure: WebPage

Re: wicket-dnd strange situation

2012-09-19 Thread Sven Meier
That's still on my TODO list. Sven On 09/19/2012 12:56 PM, Marieke Vandamme wrote: Dear Sven, Is wicket-dnd already changed for wicket 6 ? I can't find the sources for this.. Thanks! Kind Regards, Marieke Vandamme -- View this message in context:

Re: Wicket Application instance from outside Wicket Application

2012-09-19 Thread Oscar Besga Arcauz
Maybe if you do a foward from webservice to wicket page... From other side, you can see Wicket Session classes and data into the normal HttpSession (thougth it needs a little navigation) or you can hook data in normal HttpSession into wicket classes. My2cents: I would refactor helpers outside

multipart form problem - form validation fails

2012-09-19 Thread Michał Bartoszewski
Hi, I am building form that is responsible for submiting simple product information: - name - description - photo I previously had this form working with name and description then I have decided to add photo filed for upload and situation got weird. I had to make form multipart and set maximum

Re: multipart form problem - form validation fails

2012-09-19 Thread Andrea Del Bene
Which version of Wicket are you using? I've tested your code enabling file upload but it worked fine with both version 1.5.8 and 6.0.0 class AddProductForm extends FormProduct { private FileUploadField photoField; public AddProductForm(String id, CompoundPropertyModelProduct model) {