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?



wouter



_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to