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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]