Is there any UI Error component

View: New views
3 Messages — Rating Filter:   Alert me  

Is there any UI Error component

by red :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Is there any UI Error component

by Hoa.Pham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Is there any UI Error component

by red :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Thanks it works now
Abdel

pham vu xuan hoa wrote:
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@objectweb.org mailing list.
> To unsubscribe: mailto:exoplatform-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?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@exoplatform.com
YM: phamvuxuanhoa
Skype:phamvuxuanhoa




--
You receive this message as a subscriber of the exoplatform@objectweb.org mailing list.
To unsubscribe: mailto:exoplatform-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws