AW: jQuery form validation with wicket ajax

2012-02-15 Thread Gerrit Scholz | QUERPLEX.de
I prepend if(!$('.register').valid()) { return false;}; to the onclick attribute. This statement call the jQuery validator for the form. The onclick attribute without my changes (AjaxRequestTarget not null): onclick=var wcall=wicketSubmitFormById('contactForm8',

RE: jQuery form validation with wicket ajax

2012-02-15 Thread Paul Jackson
This works for us: onclick=if (! $('#id45').validate().form()) {return false};if (function(){return Wicket.$$(this)Wicket.$$('id45')}.bind(this)()) { Wicket.showIncrementally('busyIndicator');}var wcall=wicketSubmitFormById('id45',

Re: Too Many Files Open

2012-02-15 Thread Martijn Dashorst
Increase the number of file handles allowed by your unix box. For many systems this limit is set too low. Martijn On Mon, Feb 13, 2012 at 10:33 PM, Wooldridge, Keith A keith.wooldri...@mantech.com wrote: We recently upgraded to Tomcat 7 and Wicket 1.5.3.  After the upgrade, we started getting

Wicket jQuery Validator integration

2012-02-15 Thread Zachary Bedell
Good morning, Reading a recent thread about accessing jQuery Validation from Wicket reminded me that I've developed some code that might be of use. I'm not sure if this is something anyone else would be interested in or if it's something that might eventually be integrated into Wicket core or

Wicket jQuery Validator integration

2012-02-15 Thread Zachary Bedell
Good morning, Reading a recent thread about accessing jQuery Validation from Wicket reminded me that I've developed some code that might be of use. I'm not sure if this is something anyone else would be interested in or if it's something that might eventually be integrated into Wicket core or

Re: jQuery form validation with wicket ajax

2012-02-15 Thread Alec Swan
Gerrit, You need to call .valid().form(), not just .valid(). Also, you should probably use the form id #contactForm8 instead of '.register' jQuery selector. In other words, use Paul's code snippet: button.add(new AttributeModifier(onclick, new ModelString(if (! $('# + formMarkupId +

RE: Wicket jQuery Validator integration

2012-02-15 Thread Paul Jackson
We do something very similar to this, and agree that it works really well. We also use JSR303 annotations on our domain models and use them to drive adding both wicket and jquery validators. We have a bunch of ValdiationConfiguration classes that know what to add to the markup and javascript to

AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
I noticed two count queries go by when using the DataTable component. so I searched and dug up this jira issue https://issues.apache.org/jira/browse/WICKET-1766 which is a won't fix. Igor states that two queries are required each request, but I see this differently: The count is a used as the

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Dan Retzlaff
Hi, Jonathan. Which component are you referring to? I don't see isVisible() overrides in PagingNavigator or its helpers. It's state and as such should not be discarded when the request is finished, it's still needed for things like checking if a link was indeed visible when a click comes in

PageParameters in 1.5.3 vs 1.5.4

2012-02-15 Thread Lawrence, Sean
Hi, I'm noticing a difference in the way search parameters are handled in 1.5.4 vs 1.5.3 after upgrading wicket. Basically, identical parameters are eliminated. See example below Passing the identical list of search parameters to our SearchResultsPage: URL with 1.5.3:

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
The PagingNavigationIncrementLink's linksTo(Page), which calls isLast() which calls pageable getPageCount() which ends up calling size() eventually. This is called during Component.canCallListenerInterface (*you're right it's not isVisible*) to verify if the link can indeed be clicked. And to be

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Dan Retzlaff
Thanks for the clarification. I see your point now: if records are deleted from the database, the navigation click is ignored an the page is simply re-rendered. But if the data content has changed such that the navigation no longer makes sense, what behavior would you prefer? On Wed, Feb 15, 2012

RE: continueToOriginalDestination seems to be incorrectly retaining destination across multiple logins

2012-02-15 Thread Evan Sable
Thanks for your response Martin, and sorry for my delayed reply! I added the breakpoint (it's line 210 in my 1.5-SNAPSHOT). I also put one at line 197, at the start of the mapRequest method, to see if it was getting into the method and finding a null value for the data variable. But neither

Feedback Panel exposes password in cleartext if minimumLength test fails

2012-02-15 Thread pblakez
Gidday when I add password field with minimumLength and the user enters an shorter password it is displayed in the feedback panel in cleartext is there a work around for this ? e.g. form.add(new PasswordTextField(pass).add(StringValidator.minimumLength(8)).setLabel(new ModelString(Password:)));

Re: Feedback Panel exposes password in cleartext if minimumLength test fails

2012-02-15 Thread Igor Vaynberg
override the validator message to not show the value... -igor On Wed, Feb 15, 2012 at 3:11 PM, pblakez pbla...@gmail.com wrote: Gidday when I add password field with minimumLength and the user enters an shorter password it is displayed in the feedback panel in cleartext is there a work

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
The cachedItemCount calculated in onBeforeRender should not be discarded at the end of a request (so the clear in onDetach and readObject shouldn't be there). This way it would still be around when a request comes in to handle a click. On Wed, Feb 15, 2012 at 5:19 PM, Dan Retzlaff

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Dan Retzlaff
I understand your suggestion. But if the page to which the link refers no longer exists based on the new data content, isn't it a bad idea to go there? I feel like I'm drawing this out. Sorry for that. :) On Wed, Feb 15, 2012 at 4:25 PM, Jonathan Tougas jtou...@gmail.com wrote: The

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Igor Vaynberg
so when should it be discarded? -igor On Wed, Feb 15, 2012 at 4:25 PM, Jonathan Tougas jtou...@gmail.com wrote: The cachedItemCount calculated in onBeforeRender should not be discarded at the end of a request (so the clear in onDetach and readObject shouldn't be there). This way it would

Re: Feedback Panel exposes password in cleartext if minimumLength test fails

2012-02-15 Thread pblakez
ok that works thanks igor cheers pb... On Thu, Feb 16, 2012 at 10:22 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: override the validator message to not show the value... -igor On Wed, Feb 15, 2012 at 3:11 PM, pblakez pbla...@gmail.com wrote: Gidday when I add password field with

New bie question . Custom Form Submit

2012-02-15 Thread atomix
I have a link which is outside of a Form ... And I want that when user click the link, the Form is submited(); I did : ... onClick(){ form.process(); // But the model of Form Components haven't updated } ... So what I should do for that easy request? -- View this message in context:

Re: New bie question . Custom Form Submit

2012-02-15 Thread vineet semwal
use submitlink On Thu, Feb 16, 2012 at 10:28 AM, atomix say_i_love_you_4e...@yahoo.com wrote: I have a link which is outside of a Form ... And I want that when user click the link, the Form is submited(); I did : ... onClick(){ form.process(); // But the model of Form Components haven't

Re: New bie question . Custom Form Submit

2012-02-15 Thread atomix
The link is *OUT *of the Form -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/New-bie-question-Custom-Form-Submit-tp4392995p4393062.html Sent from the Users forum mailing list archive at Nabble.com.

Re: New bie question . Custom Form Submit

2012-02-15 Thread Sven Meier
Read javadoc of SubmitLink(String, Form) Am 16.02.2012 06:46, schrieb atomix: The link is *OUT *of the Form -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/New-bie-question-Custom-Form-Submit-tp4392995p4393062.html Sent from the Users forum mailing list archive at

Re: New bie question . Custom Form Submit

2012-02-15 Thread vineet semwal
i *read* that , pass the form you want submitlink to submit in constructor On Thu, Feb 16, 2012 at 11:16 AM, atomix say_i_love_you_4e...@yahoo.com wrote: The link is *OUT *of the Form -- View this message in context:

Re: New bie question . Custom Form Submit

2012-02-15 Thread Sven Meier
Sure, but I assume atomix hasn't ;) Sven Am 16.02.2012 07:10, schrieb vineet semwal: i *read* that , pass the form you want submitlink to submit in constructor On Thu, Feb 16, 2012 at 11:16 AM, atomixsay_i_love_you_4e...@yahoo.com wrote: The link is *OUT *of the Form -- View this message

Re: New bie question . Custom Form Submit

2012-02-15 Thread vineet semwal
hi sven, sorry that reply was to atomix ,i saw your mail few seconds late else i wouldnt have replied :) On Thu, Feb 16, 2012 at 12:14 PM, Sven Meier s...@meiers.net wrote: Sure, but I assume atomix hasn't ;) Sven Am 16.02.2012 07:10, schrieb vineet semwal: i *read* that , pass the form

Re: New bie question . Custom Form Submit

2012-02-15 Thread atomix
Ahh Thanks again... I didn't khow that the SubmitLink can be outside of a Form ... ...but IMO , why can't another thing call a Form to be submit ... like calling process() = what does this method really doing, why don't it update all the models?? Thank for answer my silly questions. Wish you a