wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Guay-Paquet <ber...@step.polymtl.ca>
Subject Re: Append elements in ajax request
Date Fri, 19 Jul 2013 18:48:08 GMT
Hi Sven,

Yeah I saw that possibility but the problem is that the messages are 
animated when first displayed. I don't want the animation to trigger 
again when repainting the panel. I believe Dan's solution will fill all 
my needs and I'm implementing it now.

Regards,
Bertrand

On 19/07/2013 2:36 PM, Sven Meier wrote:
> 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
>


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


Mime
View raw message