Re: Filtered feedback message cleanup

2013-11-19 Thread Francois Meillet
Form form = new Form(form);
form.setOutputMarkupId(true);
add(form);

RequiredTextFieldString username = new
RequiredTextFieldString(username, new ModelString());
form.add(username);

final PasswordTextField password = new 
PasswordTextField(password, new
ModelString());
password.add(new ValidationMessageBehavior());
form.add(password);

LinkString localeLinkDE = new LinkString(localeLinkDE) {
@Override
public void onClick() {
Locale localeDE = new Locale(de, DE);
setLocale(localeDE);
password.getFeedbackMessages().clear();
}
};
add(localeLinkDE);



-
François Meillet
Formation Wicket - Développement Wicket
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662523.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Filtered feedback message cleanup

2013-11-19 Thread meduolis
Thanks Francois, it works.

I am changing locale in BasePage, so I had to add postprocessLocaleChange()
and override it on it's subclasses to get it working.
So it would be great if we could clear messages using something like
FeedbackCollector.clearAll() without any knowledge about what components
contains what messages.

Thanks again



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662527.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Filtered feedback message cleanup

2013-11-18 Thread meduolis
Hello,

I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I
really need an assistance here.

I have a simple form with two different input fields: RequiredTextField and
PasswordTextField. Also there is a feedback panel, but it filters out
PasswordTextField feedback message and displays it inline to its' field.
When submiting the form, we got one message in feedback panel and one
message after password field.
http://apache-wicket.1842946.n4.nabble.com/file/n4662502/formSubmited.gif 
Later we trigger model update by setting new locale.

Feedback message for username got cleared, but filtered feedback message -
not.

Is there any manual way to clear filtered messages? Or it should be done  by
Wicket itself?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662502.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Filtered feedback message cleanup

2013-11-18 Thread meduolis
Hello,

I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I
really need an assistance here.

I have a simple form with two different input fields: RequiredTextField and
PasswordTextField. Also there is a feedback panel, but it filters out
PasswordTextField feedback message and displays it inline to its' field.
When submiting the form, we got one message in feedback panel and one
message after password field.
http://apache-wicket.1842946.n4.nabble.com/file/n4662503/formSubmited.gif 
Later we trigger model update by setting new locale.
http://apache-wicket.1842946.n4.nabble.com/file/n4662503/localeChanged.gif 
Feedback message for username got cleared, but filtered feedback message -
not.

Is there any manual way to clear filtered messages? Or it should be done  by
Wicket itself?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Filtered feedback message cleanup

2013-11-18 Thread meduolis
attaching quickstart:  feedbackI18n.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4662505/feedbackI18n.zip  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662505.html
Sent from the Users forum mailing list archive at Nabble.com.

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