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