- button callout result always display as error
This commit is contained in:
Heng Sin Low 2009-11-12 04:37:42 +00:00
parent abf98bcc72
commit 2fac5b523d
1 changed files with 7 additions and 2 deletions

View File

@ -1923,8 +1923,13 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
{
if (event.getSource() instanceof WButtonEditor)
{
statusBar.setStatusLine(processButtonCallout((WButtonEditor)event.getSource()), true);
actionButton((WButtonEditor)event.getSource());
String error = processButtonCallout((WButtonEditor)event.getSource());
if (error != null && error.trim().length() > 0)
{
statusBar.setStatusLine(error, true);
return;
}
actionButton((WButtonEditor)event.getSource());
}
}