Wouter Vanden Hove wrote:
Hi ,
I have a custom-portlet with an input-field and submit-button.
In the update-method of the portlet the input-field is processed.
Depending on that, I set an IStatusMessage.
However, the statusmessage doesn't show up after you clicked the
submit-button, it shows up from the moment you click any other link.
so it shows up one click too late.
in the update-method, I set the message like this:
def update(self):
...do stuff....
self._msg("notification-email sent")
def _msg(self, msg, type='info'):
IStatusMessage(self.request).addStatusMessage(msg, type=type)
But it seems I need to do something extra to have the statusmessage show up
on the same page?
Which version of Plone?
This problem used to exist when you set a status message and render the
page in the same request, but I thought it had been fixed.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers