Re: AjaxFormComponentUpdatingBehavior broken after invalid submit

2011-10-28 Thread Martin Grigorov
On Fri, Oct 28, 2011 at 7:22 AM, Hans Lesmeister 2 hans.lesmeis...@lessy-software.de wrote: Hi, did you already try a call to form.modelChanged() in onUpdate? form.modelChanging() is even more important because it marks the page as dirty and thus saves the new state of it at the end of the

~ as separator in urls

2011-10-28 Thread martin.dilger
Hi, since https://issues.apache.org/jira/browse/WICKET-4061, we use ~ as url-separator, this leads to enormous problems and prevents us from upgrading from 1.5.0 to 1.5.1. We have an apache which has mod_security enabled, and all Ajax-Requests are blocked, the same could happen if an apache is

Re: Multi-tabs and back-button support 1.5.2

2011-10-28 Thread Charlie Midtlyng
I have now created an issue on jira with the actual problems described above. https://issues.apache.org/jira/browse/WICKET-4182 https://issues.apache.org/jira/browse/WICKET-4182 -- View this message in context:

Re: ~ as separator in urls

2011-10-28 Thread Martin Grigorov
Hi, On Fri, Oct 28, 2011 at 9:00 AM, martin.dilger martin.dil...@googlemail.com wrote: Hi, since https://issues.apache.org/jira/browse/WICKET-4061, we use ~ as url-separator, this leads to enormous problems and prevents us from upgrading from 1.5.0 to 1.5.1. We have an apache which has

Application Home page - Firefox issue

2011-10-28 Thread Groot, Mathijs de (IDT Competence Java)
Hi, I've a really strange problem with my home page when using Firefox (3.6.32). I'm currently using Wicket version 1.5.2 When typing in a textField, the model object is always null when submitted! This is only the case when my Page is my application home page, and only with Firefox. (thus:

Re: Application Home page - Firefox issue

2011-10-28 Thread Martin Grigorov
Hi, On Fri, Oct 28, 2011 at 9:54 AM, Groot, Mathijs de (IDT Competence Java) math.de.gr...@logica.com wrote: Hi, I've a really strange problem with my home page when using Firefox (3.6.32). I'm currently using Wicket version 1.5.2 When typing in a textField, the model object is always null

RE: Application Home page - Firefox issue

2011-10-28 Thread Groot, Mathijs de (IDT Competence Java)
Hi Martin, Thanks for your quick reply. a) No, it is not working in Firefox 7.0.1 as well b) I know form submitting should be (and is) the same for all browsers, that is why it's so strange. c) I don't have much experience with analysing the post requests, but I see the following when

Re: Application Home page - Firefox issue

2011-10-28 Thread Martin Grigorov
Create a quickstart and attach it to Jira. On Fri, Oct 28, 2011 at 11:50 AM, Groot, Mathijs de (IDT Competence Java) math.de.gr...@logica.com wrote: Hi Martin, Thanks for your quick reply. a) No, it is not working in Firefox 7.0.1 as well b) I know form submitting should be (and is) the

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-28 Thread Andrea Del Bene
That's why I don't like a statement like UI programming on client-side with Java. You are just giving the impression of programming your GUI in Java, but in the end is a lot of JavaScript, and this doesn't help code maintenance as pointed out by Eelco . I know that GWT is good at mimicking

Determine the latest page in multi tabbed browsing

2011-10-28 Thread Dirk Arnoldt
Hi, I'm facing a problem with multi tabbed browsing. In a wicket application I currently detect browser navigation (back button) by means of timestamps. As a result I display a warning to the user telling him that he should not use the back button and subsequently forward him to the next

Re: ~ as separator in urls

2011-10-28 Thread martin.dilger
Hi Martin, thanks for your reply. Well, could be, I´m not sure, what all these apache modules do, our problem is, that mod_security in apache denies all request with '~' in the URL, what we get is 404, which per Default looks like the Application would not respond on Button clicks, since no

Re: AjaxFormComponentUpdatingBehavior broken after invalid submit

2011-10-28 Thread Russell Pitre
Great! That's exactly what I needed. Thanks. -Russ On Fri, Oct 28, 2011 at 2:56 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Fri, Oct 28, 2011 at 7:22 AM, Hans Lesmeister 2 hans.lesmeis...@lessy-software.de wrote: Hi, did you already try a call to form.modelChanged() in onUpdate?

Re: wicketstuff-push examples working across browsers

2011-10-28 Thread Soheb Mahmood
Hello Martin and Seb, Just to drop an email to let you know how I'm doing so far, I've had a go yesterday, and to some extent, this morning at trying to get the master branch running, as I feel it is important to at least try and give feedback early as possible. However, I've been struggling

Re: popup to disapear on defaultdatatable paging

2011-10-28 Thread midikem
Well i got it to work after a while when i realized PagingNavigator not was the only one i could use. So when i switched to AjaxPagingNavigator i found this method onAjaxEvent that did what i wanted it to. Have another question about DataTable though. Is it possible to change the headersToolbar

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Bertrand Guay-Paquet
Hi, this wont be a standard behavior as it would add a lot of overhead. during listener processing you may load five LDMs with database queries and only one of them will be effected by the form submission - Then those four will not get loaded before rendering and there is no problem. Their

Re: Determine the latest page in multi tabbed browsing

2011-10-28 Thread Igor Vaynberg
since wicket provides backbutton support why are you fighting it? -igor On Fri, Oct 28, 2011 at 2:22 AM, Dirk Arnoldt dirk.arn...@1und1.de wrote: Hi, I'm facing a problem with multi tabbed browsing. In a wicket application I currently detect browser navigation (back button) by means of

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Igor Vaynberg
On Fri, Oct 28, 2011 at 8:10 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, this wont be a standard behavior as it would add a lot of overhead. during listener processing you may load five LDMs with database queries and only one of them will be effected by the form submission -

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Bertrand Guay-Paquet
I still see 2 issues with this however in favor of forcing detachment of models between the listener and the renderer: Issue 1: With an ajax form submit, some components could be triggering the load of LDMs in their onEvent for the default ajax event. They would have a tough time knowing that

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Igor Vaynberg
i think you are blowing this way out of proportion. this only affects components that (A) modify their own model but do not update it and *also* (B) have their model loaded for some reason before they update it. (B) is very rare - thats why this very rarely causes a problem. we have always

How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
Hi, I have a question about Wicket localization I could not find an answer for. I have a component where I'd like to get a translated message for a given key. The actual string is sitting somewhere in a grand-parent panel, and I have no any access to it. I'd like to get translations for that

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
Localizer#getString(final String key, final Component component, final IModel? model, final Locale locale, final String style, final String defaultValue) -igor On Fri, Oct 28, 2011 at 10:54 AM, Andrew Schetinin ascheti...@gmail.com wrote: Hi, I have a question about Wicket localization I

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Bertrand Guay-Paquet
On 28/10/2011 12:49 PM, Igor Vaynberg wrote: i think you are blowing this way out of proportion. I hope so :) this only affects components that (A) modify their own model but do not update it and *also* (B) have their model loaded for some reason before they update it. This is not the type of

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
Hi Igor, But as I said, this method is deprecated and ignores Locale parameter: @Deprecated public String getString(final String key, final Component component, final IModel? model, final Locale locale, final String style, final String defaultValue) throws

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Igor Vaynberg
i suppose you can contrive an example that breaks any situation :) in this case you are making a lot of assumptions: the two panels are not sharing a model even though they are both referencing the same person, the show panel loads the model prematurely instead of at render time. these two things

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
you are right. i was looking in 1.5 where we have exposed the locale. for the time being you can simply do this: Locale old=session.getlocale(); session.setlocale(foo); localizer.get(..); session.setlocale(old); -igor On Fri, Oct 28, 2011 at 1:22 PM, Andrew Schetinin ascheti...@gmail.com

Re: LDMs load too early - hold outdated application data.

2011-10-28 Thread Bertrand Guay-Paquet
Thanks for clearing that up. I didn't know it was considered bad practice to access _any_ model's object before rendering. In that case, my points are moot (but I have some code I must change...) I wasn't only trying to build an impossible example btw :) It was pretty close to what I intended

Can an AJAX event navigate to a page using a BookmarkablePageLink

2011-10-28 Thread Chris Colman
Are BookmarkablePageLinks only for use with a href=# tags use or is it possible to catch an AJAX event and use the BookmarkablePageLink as the 'destination specifier' for the navigation or does navigation under AJAX always have to be via setReponsePage()? Chris

Re: Can an AJAX event navigate to a page using a BookmarkablePageLink

2011-10-28 Thread Igor Vaynberg
setResonsePage(class, params) should still work also if you have a bpl you can do something like target.appendjavascript(window.location='+bpl.geturl()+';); -igor On Fri, Oct 28, 2011 at 2:51 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Are BookmarkablePageLinks only for use with a

RE: Can an AJAX event navigate to a page using a BookmarkablePageLink

2011-10-28 Thread Chris Colman
BookmarkablePageLink setResonsePage(class, params) should still work also if you have a bpl you can do something like target.appendjavascript(window.location='+bpl.geturl()+';); Ah! That's exactly what I was looking for. I already have a bpl available so I was trying to leverage the data I had