red wrote:
> Hi All,
>
> By use the framework functionalities (interfaces), if there is an exception
> a stack trace will be arise. Is there any UI error component to use? It's
> better for the end user.
>
> Thanks
> Abdel
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the
exoplatform@... mailing list.
> To unsubscribe: mailto:
exoplatform-unsubscribe@...
> For general help: mailto:
sympa@...?subject=help
> ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws>
You can use ExoFacesMessage component to display error message. To use
this component, you can see in any ActionListener calss in any UI
component. example like that
/static public class AddFolderActionListener extends ExoActionListener {
public void execute(ExoActionEvent event) throws Exception {
UIFolderForm uicomp = (UIFolderForm) event.getSource();
Information iprovider = findInformationProvider(uicomp);
ResourceBundle res = getApplicationResourceBundle() ;
try{
//to do something
}catch(Exception e) {
//iprovider.addMessage(new
ExoFacesMessage(FacesMessage.SEVERITY_ERROR,
res.getString("resourceKey")+e.getMessage()) ;/
/ }
}
}
/...
--
Best regard,
Hoa Pham - eXoplatform Viet Nam's team
Ha Noi - Viet Nam.
Email:
hoa.pham@...
YM: phamvuxuanhoa
Skype:phamvuxuanhoa
--
You receive this message as a subscriber of the
exoplatform@... mailing list.
To unsubscribe: mailto:
exoplatform-unsubscribe@...
For general help: mailto:
sympa@...?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws