You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jason Wang <ja...@bulletin.net> on 2009/07/31 03:58:24 UTC

A bug in picking up resource strings for PatternValidator in 1.4-rc7

Hi, all,


I recently rebuild a small site with 1.4-rc7 and found that the resource 
strings for PatternValidator cannot be recognized by wicket and the 
default one is always used.

Change back to 1.4-rc1 problem solved.(havnt tried rc2,....rc6)

I have created a jira ticket at 
https://issues.apache.org/jira/browse/WICKET-2405

Just send this email here so other people can be aware of it.

Code:

final RequiredTextField<String> mobile = new 
RequiredTextField<String>("mobile");
mobile.setLabel(new Model<String>("mobile")).add(new 
PatternValidator("^[1-9]([0-9]{8,14})"));

Properties file:

mobile.PatternValidator = Please input a valid international phone number.

Results:

always output "<input> does not match pattern '^[1-9]([0-9]{8,14})'. "


WIth the same code, build with 1.4 rc1, worked fine, build with rc7, 
problem occurred


Thanks

Jason Wang

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Modal dialog's components get disabled after closing

Posted by Gajo Csaba <cg...@i-rose.si>.
I've found the error, looks like our abstract class which extends the 
ModalWindow had
contentPanel.setEnabled(false);
written in its close callback method...


Gajo Csaba wrote:
> Hi,
>
> I have a class which extends ModalWindow and has just one content 
> panel inside. I've added several radio buttons and ajaxfallbackbuttons 
> to it. When I display it with dialog.show(target) it shows without 
> problem.
>
> I also have a "Cancel" button in it, which is supposed to close the 
> dialog. It's code is: dialog.close(target). This also works, it closes 
> the dialog.
>
> The problem is, when I open the same dialog again, all components 
> inside are disabled! Why is this so? How can I close the dialog 
> without getting all of its components disabled?
>
> Regards,
> Csaba
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Modal dialog's components get disabled after closing

Posted by Gajo Csaba <cg...@i-rose.si>.
Hi,

I have a class which extends ModalWindow and has just one content panel 
inside. I've added several radio buttons and ajaxfallbackbuttons to it. 
When I display it with dialog.show(target) it shows without problem.

I also have a "Cancel" button in it, which is supposed to close the 
dialog. It's code is: dialog.close(target). This also works, it closes 
the dialog.

The problem is, when I open the same dialog again, all components inside 
are disabled! Why is this so? How can I close the dialog without getting 
all of its components disabled?

Regards,
Csaba



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: A bug in picking up resource strings for PatternValidator in 1.4-rc7

Posted by Jason Wang <ja...@bulletin.net>.
Ohhh, god! I took one day off and then 1.4.0 came out!!! Thanks for 
telling me and good job wicket team!

Igor Vaynberg wrote:
> 1.4.0 is out, why dont you try with that...
>
> -igor
>
> On Thu, Jul 30, 2009 at 6:58 PM, Jason Wang<ja...@bulletin.net> wrote:
>   
>> Hi, all,
>>
>>
>> I recently rebuild a small site with 1.4-rc7 and found that the resource
>> strings for PatternValidator cannot be recognized by wicket and the default
>> one is always used.
>>
>> Change back to 1.4-rc1 problem solved.(havnt tried rc2,....rc6)
>>
>> I have created a jira ticket at
>> https://issues.apache.org/jira/browse/WICKET-2405
>>
>> Just send this email here so other people can be aware of it.
>>
>> Code:
>>
>> final RequiredTextField<String> mobile = new
>> RequiredTextField<String>("mobile");
>> mobile.setLabel(new Model<String>("mobile")).add(new
>> PatternValidator("^[1-9]([0-9]{8,14})"));
>>
>> Properties file:
>>
>> mobile.PatternValidator = Please input a valid international phone number.
>>
>> Results:
>>
>> always output "<input> does not match pattern '^[1-9]([0-9]{8,14})'. "
>>
>>
>> WIth the same code, build with 1.4 rc1, worked fine, build with rc7, problem
>> occurred
>>
>>
>> Thanks
>>
>> Jason Wang
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: A bug in picking up resource strings for PatternValidator in 1.4-rc7

Posted by Igor Vaynberg <ig...@gmail.com>.
1.4.0 is out, why dont you try with that...

-igor

On Thu, Jul 30, 2009 at 6:58 PM, Jason Wang<ja...@bulletin.net> wrote:
> Hi, all,
>
>
> I recently rebuild a small site with 1.4-rc7 and found that the resource
> strings for PatternValidator cannot be recognized by wicket and the default
> one is always used.
>
> Change back to 1.4-rc1 problem solved.(havnt tried rc2,....rc6)
>
> I have created a jira ticket at
> https://issues.apache.org/jira/browse/WICKET-2405
>
> Just send this email here so other people can be aware of it.
>
> Code:
>
> final RequiredTextField<String> mobile = new
> RequiredTextField<String>("mobile");
> mobile.setLabel(new Model<String>("mobile")).add(new
> PatternValidator("^[1-9]([0-9]{8,14})"));
>
> Properties file:
>
> mobile.PatternValidator = Please input a valid international phone number.
>
> Results:
>
> always output "<input> does not match pattern '^[1-9]([0-9]{8,14})'. "
>
>
> WIth the same code, build with 1.4 rc1, worked fine, build with rc7, problem
> occurred
>
>
> Thanks
>
> Jason Wang
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org