Omar,

ViewHelper should have *nothing* to do with handling faults.  You will have
to decide how you choose to pass exceptions back from J2EE to Flex; you can
catch those either in the onResult() or onFault() methods of your command
classes, and handle accordingly.

Note that you will not (typically) be throwing exceptions on the Java side
and catching them on the client side.  Rather, if something happens in your
server-side POJO/delegate/whatever that you can't handle, and need to defer
to the client to handle, you will need to conceive a mechanism for passing
status between the server and client.

I'd anticipate you doing this in the onResult() of a command, rather than
onFault().

But remember - ViewHelpers should only be used to prepare and massage the
model for rendering to the view.  ViewHelpers are *not* catch all places for
any business logic that doesn't obviously fit in controller/command/delegate
or service locator !!!

Best,

Steven


--
Steven Webster
Technical Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
Mobile: +44 (0)7977 216 223
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Omar Ramos
Sent: 10 August 2005 18:49
To: [email protected]
Subject: Re: [flexcoders] Cairgorm command question.

Yeah thats what I tought. Command would send the error code or message to
the view helper and the helper applies the logic and takes action on the
view.

On 8/10/05, Omar Ramos <[EMAIL PROTECTED]> wrote:
> Yeah I mean from the server I mite send difrent types of errors for 
> the same invocation. The logic for handeling the type of error and 
> taking action on the view corresponds on the command or the 
> viewhelper?
> 
> On 8/10/05, Allen Manning <[EMAIL PROTECTED]> wrote:
> > Omar,
> >
> > I think 'onFault' or 'onStatus' is a method of the Responder.
> >
> > Allen
> > www.prismix.com/
> >
> >
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Omar Ramos
> > Sent: 10 August 2005 18:10
> > To: [email protected]
> > Subject: [flexcoders] Cairgorm command question.
> >
> > Hi guys I have a simple question. Does my command need to have the 
> > logic to manage the exceptiosn I recive from remoting and decide 
> > what to do depending on the exception? or does that belong on the 
> > view helper? Thanks for any feedback you can give with this.
> >
> >
> > Omar Ramos
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> > SPONSORED LINKS
> > Computer software testing Macromedia flex Development Software 
> > developer ________________________________ YAHOO! GROUPS LINKS
> >
> >  Visit your group "flexcoders" on the web.
> >
> >  To unsubscribe from this group, send an email to:
> >  [EMAIL PROTECTED]
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >  To unsubscribe from this group, send an email to:
> >  [EMAIL PROTECTED]
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> > ________________________________
> >
>


------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hqgcp4s/M=362335.6886445.7839731.1510227
/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123704377/A=2894361/R=0/SIG=13jmebhbo
/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO
&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In low income neighborhoods, 84% do
not own computers. At Network for Good, help bridge the Digital
Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h1u4dd1/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123708942/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to