You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dirk Wichmann <di...@team-wichmann.de> on 2012/12/20 21:51:05 UTC

delete messages

Hi all,

since a view month I use wicket 6.1.1 and I'm new here, so I hope that 
I'm able to describe my problem so you can understand it right.
I have implemented a login panel, inside this panel I have a modal 
window (ModalWindow) where the user is able to put in his mail address, 
so I can send him his password / new password.
If there are errors in the main login panel, e.g. user unknown, the 
error message will be displayed and everything is fine.
The problem is, if I open the modal window the error messages from main 
panel will be displayed.
Is there any possibility to reset / delete the old messages?? With 
google I found a view solutions, but they're described for wicket 1.n...

Thanks in advance
Kind regards
Dirk

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


Re: delete messages

Posted by Dirk Wichmann <di...@team-wichmann.de>.
Hi,

found my mistake in the small example..... :-(
I use a filter on the first feedback panel.
That's because I'm displaying the errors with a behavior (ErrorMarker) 
direct next to the input fields, an I don't want to display the errors 
two times (in feedback panel and next to the input)
Now I guess, that if the errors don't will be displayed in the first 
feedback panel because they are filtered they will be displayed in the 
modal window.
If I kick out the filter everything is fine.....

after adding lFeedbackMessage.markRendered(); in the ErrorMarker class 
and switching on the filter everything is fine and the messages will 
only be displayed one time :-)


Many thanks for your support
Cheers
Dirk



Am 22.12.2012 14:14, schrieb Sven Meier:
> Yes, create a quickstart and attach it to a JIRA issue:
>
>   http://wicket.apache.org/start/quickstart.html
>
> This way we will have it easier to analyse the problem or even better 
> you will find an error on your side when you create a minimal example 
> for it ;).
>
> Sven
>
> On 12/22/2012 01:57 PM, Maxim Solodovnik wrote:
>> I believe it should be attached to the JIRA issue
>> On Dec 22, 2012 7:38 PM, "Dirk Wichmann" <di...@team-wichmann.de> wrote:
>>
>>> Hi Sven,
>>>
>>> create a quickstart means that I create a quickstart project, put 
>>> the my
>>> stuff inside, zip the project and attach it to a e-mail??
>>> Maybe it's a stupid question, but I thought that attachments will be
>>> filtered?
>>>
>>> Cheers
>>> Dirk
>>>
>>>
>>> Am 21.12.2012 20:38, schrieb Sven Meier:
>>>
>>>> Hi Dirk,
>>>>
>>>> that doesn't look correct. Once rendered the messages should be 
>>>> cleared.
>>>> Please create a quickstart.
>>>>
>>>> Sven
>>>>
>>>> On 12/21/2012 06:44 PM, Dirk Wichmann wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> thanks for your reply, but that is not my problem,
>>>>> Example:
>>>>> 1) the user entered invalid password -> error feedback message is 
>>>>> shown
>>>>> 2) the user opens the modal and in the modal the error messages 
>>>>> from the
>>>>> login page will be displayed.
>>>>>
>>>>> thats the call of the modal:
>>>>>
>>>>> AjaxFallbackLink<Void> lPasswordMissedLink = new 
>>>>> AjaxFallbackLink<Void>("
>>>>> **passwordMissed") {
>>>>>                  @Override
>>>>>                  public void onClick(AjaxRequestTarget target) {
>>>>>                      target.add(passwordMissed); // I have tryed both
>>>>> passwordMissed is the modal and lFeedbackPanel the feedback panel
>>>>>                      //target.add(lFeedbackPanel);
>>>>> passwordMissed.show(target);
>>>>>                  }
>>>>>              };
>>>>>
>>>>> Thanks in advance
>>>>> Cheers
>>>>> Dirk
>>>>>
>>>>>
>>>>> Am 21.12.2012 09:04, schrieb Martin Grigorov:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> The feedback messages are rendered in FeedbackPanel. Once 
>>>>>> rendered they
>>>>>> are
>>>>>> removed at the server side. So the next render of the 
>>>>>> FeedbackPanel will
>>>>>> remove them from the UI too.
>>>>>>
>>>>>> Example:
>>>>>> 1) the user enters invalid password -> an error feedback message is
>>>>>> shown
>>>>>> 2) the user opens the Modal to reset/re-send his password -> code:
>>>>>> success("The new password is sent to mail@example.com");
>>>>>> target.add(feedbackPanel);
>>>>>>
>>>>>> target.add(feedbackPanel); will re-render the FeedbackPanel and this
>>>>>> will
>>>>>> replace the message from 1) with the one from 2)
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann 
>>>>>> <dirk@team-wichmann.de
>>>>>>> wrote:
>>>>>>   Hi all,
>>>>>>> since a view month I use wicket 6.1.1 and I'm new here, so I 
>>>>>>> hope that
>>>>>>> I'm
>>>>>>> able to describe my problem so you can understand it right.
>>>>>>> I have implemented a login panel, inside this panel I have a modal
>>>>>>> window
>>>>>>> (ModalWindow) where the user is able to put in his mail address, 
>>>>>>> so I
>>>>>>> can
>>>>>>> send him his password / new password.
>>>>>>> If there are errors in the main login panel, e.g. user unknown, the
>>>>>>> error
>>>>>>> message will be displayed and everything is fine.
>>>>>>> The problem is, if I open the modal window the error messages 
>>>>>>> from main
>>>>>>> panel will be displayed.
>>>>>>> Is there any possibility to reset / delete the old messages?? With
>>>>>>> google
>>>>>>> I found a view solutions, but they're described for wicket 1.n...
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>> Kind regards
>>>>>>> Dirk
>>>>>>>
>>>>>>> ------------------------------****----------------------------**--**--------- 
>>>>>>>
>>>>>>>
>>>>>>> To unsubscribe, e-mail: 
>>>>>>> users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>>> <us...@wicket.apache.org> 
>>>>>>>
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ---------
>>>>> To unsubscribe, e-mail: 
>>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>> ------------------------------**------------------------------**--------- 
>>>>
>>>> To unsubscribe, e-mail: 
>>>> users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>> ------------------------------**------------------------------**--------- 
>>>
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@wicket.**apache.org<us...@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: delete messages

Posted by Sven Meier <sv...@meiers.net>.
Yes, create a quickstart and attach it to a JIRA issue:

   http://wicket.apache.org/start/quickstart.html

This way we will have it easier to analyse the problem or even better 
you will find an error on your side when you create a minimal example 
for it ;).

Sven

On 12/22/2012 01:57 PM, Maxim Solodovnik wrote:
> I believe it should be attached to the JIRA issue
> On Dec 22, 2012 7:38 PM, "Dirk Wichmann" <di...@team-wichmann.de> wrote:
>
>> Hi Sven,
>>
>> create a quickstart means that I create a quickstart project, put the my
>> stuff inside, zip the project and attach it to a e-mail??
>> Maybe it's a stupid question, but I thought that attachments will be
>> filtered?
>>
>> Cheers
>> Dirk
>>
>>
>> Am 21.12.2012 20:38, schrieb Sven Meier:
>>
>>> Hi Dirk,
>>>
>>> that doesn't look correct. Once rendered the messages should be cleared.
>>> Please create a quickstart.
>>>
>>> Sven
>>>
>>> On 12/21/2012 06:44 PM, Dirk Wichmann wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> thanks for your reply, but that is not my problem,
>>>> Example:
>>>> 1) the user entered invalid password -> error feedback message is shown
>>>> 2) the user opens the modal and in the modal the error messages from the
>>>> login page will be displayed.
>>>>
>>>> thats the call of the modal:
>>>>
>>>> AjaxFallbackLink<Void> lPasswordMissedLink = new AjaxFallbackLink<Void>("
>>>> **passwordMissed") {
>>>>                  @Override
>>>>                  public void onClick(AjaxRequestTarget target) {
>>>>                      target.add(passwordMissed); // I have tryed both
>>>> passwordMissed is the modal and lFeedbackPanel the feedback panel
>>>>                      //target.add(lFeedbackPanel);
>>>> passwordMissed.show(target);
>>>>                  }
>>>>              };
>>>>
>>>> Thanks in advance
>>>> Cheers
>>>> Dirk
>>>>
>>>>
>>>> Am 21.12.2012 09:04, schrieb Martin Grigorov:
>>>>
>>>>> Hi,
>>>>>
>>>>> The feedback messages are rendered in FeedbackPanel. Once rendered they
>>>>> are
>>>>> removed at the server side. So the next render of the FeedbackPanel will
>>>>> remove them from the UI too.
>>>>>
>>>>> Example:
>>>>> 1) the user enters invalid password -> an error feedback message is
>>>>> shown
>>>>> 2) the user opens the Modal to reset/re-send his password -> code:
>>>>> success("The new password is sent to mail@example.com");
>>>>> target.add(feedbackPanel);
>>>>>
>>>>> target.add(feedbackPanel); will re-render the FeedbackPanel and this
>>>>> will
>>>>> replace the message from 1) with the one from 2)
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann <dirk@team-wichmann.de
>>>>>> wrote:
>>>>>   Hi all,
>>>>>> since a view month I use wicket 6.1.1 and I'm new here, so I hope that
>>>>>> I'm
>>>>>> able to describe my problem so you can understand it right.
>>>>>> I have implemented a login panel, inside this panel I have a modal
>>>>>> window
>>>>>> (ModalWindow) where the user is able to put in his mail address, so I
>>>>>> can
>>>>>> send him his password / new password.
>>>>>> If there are errors in the main login panel, e.g. user unknown, the
>>>>>> error
>>>>>> message will be displayed and everything is fine.
>>>>>> The problem is, if I open the modal window the error messages from main
>>>>>> panel will be displayed.
>>>>>> Is there any possibility to reset / delete the old messages?? With
>>>>>> google
>>>>>> I found a view solutions, but they're described for wicket 1.n...
>>>>>>
>>>>>> Thanks in advance
>>>>>> Kind regards
>>>>>> Dirk
>>>>>>
>>>>>> ------------------------------****----------------------------**--**---------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>>> <us...@wicket.apache.org>
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>> ------------------------------**------------------------------**
>>>> ---------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@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: delete messages

Posted by Maxim Solodovnik <so...@gmail.com>.
I believe it should be attached to the JIRA issue
On Dec 22, 2012 7:38 PM, "Dirk Wichmann" <di...@team-wichmann.de> wrote:

> Hi Sven,
>
> create a quickstart means that I create a quickstart project, put the my
> stuff inside, zip the project and attach it to a e-mail??
> Maybe it's a stupid question, but I thought that attachments will be
> filtered?
>
> Cheers
> Dirk
>
>
> Am 21.12.2012 20:38, schrieb Sven Meier:
>
>> Hi Dirk,
>>
>> that doesn't look correct. Once rendered the messages should be cleared.
>> Please create a quickstart.
>>
>> Sven
>>
>> On 12/21/2012 06:44 PM, Dirk Wichmann wrote:
>>
>>> Hi Martin,
>>>
>>> thanks for your reply, but that is not my problem,
>>> Example:
>>> 1) the user entered invalid password -> error feedback message is shown
>>> 2) the user opens the modal and in the modal the error messages from the
>>> login page will be displayed.
>>>
>>> thats the call of the modal:
>>>
>>> AjaxFallbackLink<Void> lPasswordMissedLink = new AjaxFallbackLink<Void>("
>>> **passwordMissed") {
>>>                 @Override
>>>                 public void onClick(AjaxRequestTarget target) {
>>>                     target.add(passwordMissed); // I have tryed both
>>> passwordMissed is the modal and lFeedbackPanel the feedback panel
>>>                     //target.add(lFeedbackPanel);
>>> passwordMissed.show(target);
>>>                 }
>>>             };
>>>
>>> Thanks in advance
>>> Cheers
>>> Dirk
>>>
>>>
>>> Am 21.12.2012 09:04, schrieb Martin Grigorov:
>>>
>>>> Hi,
>>>>
>>>> The feedback messages are rendered in FeedbackPanel. Once rendered they
>>>> are
>>>> removed at the server side. So the next render of the FeedbackPanel will
>>>> remove them from the UI too.
>>>>
>>>> Example:
>>>> 1) the user enters invalid password -> an error feedback message is
>>>> shown
>>>> 2) the user opens the Modal to reset/re-send his password -> code:
>>>> success("The new password is sent to mail@example.com");
>>>> target.add(feedbackPanel);
>>>>
>>>> target.add(feedbackPanel); will re-render the FeedbackPanel and this
>>>> will
>>>> replace the message from 1) with the one from 2)
>>>>
>>>>
>>>>
>>>> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann <dirk@team-wichmann.de
>>>> >wrote:
>>>>
>>>>  Hi all,
>>>>>
>>>>> since a view month I use wicket 6.1.1 and I'm new here, so I hope that
>>>>> I'm
>>>>> able to describe my problem so you can understand it right.
>>>>> I have implemented a login panel, inside this panel I have a modal
>>>>> window
>>>>> (ModalWindow) where the user is able to put in his mail address, so I
>>>>> can
>>>>> send him his password / new password.
>>>>> If there are errors in the main login panel, e.g. user unknown, the
>>>>> error
>>>>> message will be displayed and everything is fine.
>>>>> The problem is, if I open the modal window the error messages from main
>>>>> panel will be displayed.
>>>>> Is there any possibility to reset / delete the old messages?? With
>>>>> google
>>>>> I found a view solutions, but they're described for wicket 1.n...
>>>>>
>>>>> Thanks in advance
>>>>> Kind regards
>>>>> Dirk
>>>>>
>>>>> ------------------------------****----------------------------**--**---------
>>>>>
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>>> <us...@wicket.apache.org>
>>>>> >
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> ------------------------------**------------------------------**
>>> ---------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: delete messages

Posted by Dirk Wichmann <di...@team-wichmann.de>.
Hi Sven,

create a quickstart means that I create a quickstart project, put the my 
stuff inside, zip the project and attach it to a e-mail??
Maybe it's a stupid question, but I thought that attachments will be 
filtered?

Cheers
Dirk


Am 21.12.2012 20:38, schrieb Sven Meier:
> Hi Dirk,
>
> that doesn't look correct. Once rendered the messages should be cleared.
> Please create a quickstart.
>
> Sven
>
> On 12/21/2012 06:44 PM, Dirk Wichmann wrote:
>> Hi Martin,
>>
>> thanks for your reply, but that is not my problem,
>> Example:
>> 1) the user entered invalid password -> error feedback message is shown
>> 2) the user opens the modal and in the modal the error messages from 
>> the login page will be displayed.
>>
>> thats the call of the modal:
>>
>> AjaxFallbackLink<Void> lPasswordMissedLink = new 
>> AjaxFallbackLink<Void>("passwordMissed") {
>>                 @Override
>>                 public void onClick(AjaxRequestTarget target) {
>>                     target.add(passwordMissed); // I have tryed both 
>> passwordMissed is the modal and lFeedbackPanel the feedback panel
>>                     //target.add(lFeedbackPanel);
>> passwordMissed.show(target);
>>                 }
>>             };
>>
>> Thanks in advance
>> Cheers
>> Dirk
>>
>>
>> Am 21.12.2012 09:04, schrieb Martin Grigorov:
>>> Hi,
>>>
>>> The feedback messages are rendered in FeedbackPanel. Once rendered 
>>> they are
>>> removed at the server side. So the next render of the FeedbackPanel 
>>> will
>>> remove them from the UI too.
>>>
>>> Example:
>>> 1) the user enters invalid password -> an error feedback message is 
>>> shown
>>> 2) the user opens the Modal to reset/re-send his password -> code:
>>> success("The new password is sent to mail@example.com");
>>> target.add(feedbackPanel);
>>>
>>> target.add(feedbackPanel); will re-render the FeedbackPanel and this 
>>> will
>>> replace the message from 1) with the one from 2)
>>>
>>>
>>>
>>> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann 
>>> <di...@team-wichmann.de>wrote:
>>>
>>>> Hi all,
>>>>
>>>> since a view month I use wicket 6.1.1 and I'm new here, so I hope 
>>>> that I'm
>>>> able to describe my problem so you can understand it right.
>>>> I have implemented a login panel, inside this panel I have a modal 
>>>> window
>>>> (ModalWindow) where the user is able to put in his mail address, so 
>>>> I can
>>>> send him his password / new password.
>>>> If there are errors in the main login panel, e.g. user unknown, the 
>>>> error
>>>> message will be displayed and everything is fine.
>>>> The problem is, if I open the modal window the error messages from 
>>>> main
>>>> panel will be displayed.
>>>> Is there any possibility to reset / delete the old messages?? With 
>>>> google
>>>> I found a view solutions, but they're described for wicket 1.n...
>>>>
>>>> Thanks in advance
>>>> Kind regards
>>>> Dirk
>>>>
>>>> ------------------------------**------------------------------**--------- 
>>>>
>>>> To unsubscribe, e-mail: 
>>>> users-unsubscribe@wicket.**apache.org<us...@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
>
>


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


Re: delete messages

Posted by Sven Meier <sv...@meiers.net>.
Hi Dirk,

that doesn't look correct. Once rendered the messages should be cleared.
Please create a quickstart.

Sven

On 12/21/2012 06:44 PM, Dirk Wichmann wrote:
> Hi Martin,
>
> thanks for your reply, but that is not my problem,
> Example:
> 1) the user entered invalid password -> error feedback message is shown
> 2) the user opens the modal and in the modal the error messages from 
> the login page will be displayed.
>
> thats the call of the modal:
>
> AjaxFallbackLink<Void> lPasswordMissedLink = new 
> AjaxFallbackLink<Void>("passwordMissed") {
>                 @Override
>                 public void onClick(AjaxRequestTarget target) {
>                     target.add(passwordMissed); // I have tryed both 
> passwordMissed is the modal and lFeedbackPanel the feedback panel
>                     //target.add(lFeedbackPanel);
> passwordMissed.show(target);
>                 }
>             };
>
> Thanks in advance
> Cheers
> Dirk
>
>
> Am 21.12.2012 09:04, schrieb Martin Grigorov:
>> Hi,
>>
>> The feedback messages are rendered in FeedbackPanel. Once rendered 
>> they are
>> removed at the server side. So the next render of the FeedbackPanel will
>> remove them from the UI too.
>>
>> Example:
>> 1) the user enters invalid password -> an error feedback message is 
>> shown
>> 2) the user opens the Modal to reset/re-send his password -> code:
>> success("The new password is sent to mail@example.com");
>> target.add(feedbackPanel);
>>
>> target.add(feedbackPanel); will re-render the FeedbackPanel and this 
>> will
>> replace the message from 1) with the one from 2)
>>
>>
>>
>> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann 
>> <di...@team-wichmann.de>wrote:
>>
>>> Hi all,
>>>
>>> since a view month I use wicket 6.1.1 and I'm new here, so I hope 
>>> that I'm
>>> able to describe my problem so you can understand it right.
>>> I have implemented a login panel, inside this panel I have a modal 
>>> window
>>> (ModalWindow) where the user is able to put in his mail address, so 
>>> I can
>>> send him his password / new password.
>>> If there are errors in the main login panel, e.g. user unknown, the 
>>> error
>>> message will be displayed and everything is fine.
>>> The problem is, if I open the modal window the error messages from main
>>> panel will be displayed.
>>> Is there any possibility to reset / delete the old messages?? With 
>>> google
>>> I found a view solutions, but they're described for wicket 1.n...
>>>
>>> Thanks in advance
>>> Kind regards
>>> Dirk
>>>
>>> ------------------------------**------------------------------**--------- 
>>>
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@wicket.**apache.org<us...@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: delete messages

Posted by Dirk Wichmann <di...@team-wichmann.de>.
Hi Martin,

thanks for your reply, but that is not my problem,
Example:
1) the user entered invalid password -> error feedback message is shown
2) the user opens the modal and in the modal the error messages from the 
login page will be displayed.

thats the call of the modal:

AjaxFallbackLink<Void> lPasswordMissedLink = new 
AjaxFallbackLink<Void>("passwordMissed") {
                 @Override
                 public void onClick(AjaxRequestTarget target) {
                     target.add(passwordMissed); // I have tryed both 
passwordMissed is the modal and lFeedbackPanel the feedback panel
                     //target.add(lFeedbackPanel);
passwordMissed.show(target);
                 }
             };

Thanks in advance
Cheers
Dirk


Am 21.12.2012 09:04, schrieb Martin Grigorov:
> Hi,
>
> The feedback messages are rendered in FeedbackPanel. Once rendered they are
> removed at the server side. So the next render of the FeedbackPanel will
> remove them from the UI too.
>
> Example:
> 1) the user enters invalid password -> an error feedback message is shown
> 2) the user opens the Modal to reset/re-send his password -> code:
> success("The new password is sent to mail@example.com");
> target.add(feedbackPanel);
>
> target.add(feedbackPanel); will re-render the FeedbackPanel and this will
> replace the message from 1) with the one from 2)
>
>
>
> On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann <di...@team-wichmann.de>wrote:
>
>> Hi all,
>>
>> since a view month I use wicket 6.1.1 and I'm new here, so I hope that I'm
>> able to describe my problem so you can understand it right.
>> I have implemented a login panel, inside this panel I have a modal window
>> (ModalWindow) where the user is able to put in his mail address, so I can
>> send him his password / new password.
>> If there are errors in the main login panel, e.g. user unknown, the error
>> message will be displayed and everything is fine.
>> The problem is, if I open the modal window the error messages from main
>> panel will be displayed.
>> Is there any possibility to reset / delete the old messages?? With google
>> I found a view solutions, but they're described for wicket 1.n...
>>
>> Thanks in advance
>> Kind regards
>> Dirk
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@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: delete messages

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

The feedback messages are rendered in FeedbackPanel. Once rendered they are
removed at the server side. So the next render of the FeedbackPanel will
remove them from the UI too.

Example:
1) the user enters invalid password -> an error feedback message is shown
2) the user opens the Modal to reset/re-send his password -> code:
success("The new password is sent to mail@example.com");
target.add(feedbackPanel);

target.add(feedbackPanel); will re-render the FeedbackPanel and this will
replace the message from 1) with the one from 2)



On Thu, Dec 20, 2012 at 10:51 PM, Dirk Wichmann <di...@team-wichmann.de>wrote:

> Hi all,
>
> since a view month I use wicket 6.1.1 and I'm new here, so I hope that I'm
> able to describe my problem so you can understand it right.
> I have implemented a login panel, inside this panel I have a modal window
> (ModalWindow) where the user is able to put in his mail address, so I can
> send him his password / new password.
> If there are errors in the main login panel, e.g. user unknown, the error
> message will be displayed and everything is fine.
> The problem is, if I open the modal window the error messages from main
> panel will be displayed.
> Is there any possibility to reset / delete the old messages?? With google
> I found a view solutions, but they're described for wicket 1.n...
>
> Thanks in advance
> Kind regards
> Dirk
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>