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',
'../kemner/?wicket:interface
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',
'?x=cu02w6454cTq5HSn4Av8ZXGRwfcS*bDlrHDXn8GklQ6Sh3RC2Dgwz8
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
wrote:
> We recently upgraded to Tomcat 7 and Wicket 1.5.3. After the upgrade, we
> started getting an error saying that too m
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
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
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 Model("if (!
$('#" + formMarkupId + "').validate().
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 g
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 b
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
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:
https://localhost/app/wi
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 c
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
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
b
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
Model("Password:")));
fe
override the validator message to not show the value...
-igor
On Wed, Feb 15, 2012 at 3:11 PM, pblakez 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 around for this ?
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 wrote:
> Thank
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 wrote:
> The cachedItemCount calculated i
so when should it be discarded?
-igor
On Wed, Feb 15, 2012 at 4:25 PM, Jonathan Tougas 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 still be around whe
ok that works thanks igor
cheers pb...
On Thu, Feb 16, 2012 at 10:22 AM, Igor Vaynberg wrote:
> override the validator message to not show the value...
>
> -igor
>
> On Wed, Feb 15, 2012 at 3:11 PM, pblakez wrote:
> > Gidday
> >
> > when I add password field with minimumLength and the user en
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:
http://
use submitlink
On Thu, Feb 16, 2012 at 10:28 AM, atomix 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 updated
> }
> ...
>
> So
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.
-
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 N
i *read* that , pass the form you want submitlink to submit in constructor
On Thu, Feb 16, 2012 at 11:16 AM, atomix wrote:
> 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.htm
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, atomix wrote:
The link is *OUT *of the Form
--
View this message in context:
http://apache-wicke
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 wrote:
> 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 s
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 go
27 matches
Mail list logo