wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Meier <s...@meiers.net>
Subject Re: Append elements in ajax request
Date Fri, 19 Jul 2013 18:36:00 GMT
Hi Bertrand,

use a custom ApplicationSettings#feedbackMessageCleanupFilter that keeps 
your special messages even if they were rendered already.

Sven

On 07/19/2013 06:07 PM, Bertrand Guay-Paquet wrote:
> Hi Dan,
>
>> You can render into a hidden div, then use some JavaScript to move them
>> into view. Something like this which uses jQuery.
>> response.render(OnDomReadyHeaderItem.forScript("$('#hiddenfeedback
>> div').appendTo($('#visiblefeedback'));"));
> Great idea! Thanks!
>> That behavior doesn't seem exactly right though. If a form is
>> AJAX-submitted twice with the same error, do you really want to show the
>> error twice?
> The feedback panel I'm referring to is used for session messages like 
> "Your email address was saved". They don't indicate errors with forms; 
> I have other fenced feedback panels that do that and I want them to 
> only show the most recent messages like you explained.
>
> Some pages which display the session messages also have ajax buttons 
> that do minor actions and I don't want those ajax requests to clear 
> the catch-all feedback panel.
>
> Thanks again!
> Bertrand
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message