[flexcoders] Incremental compiling -- should I have long build times?

2006-08-31 Thread jrjazzman23
Hi,

I'm wondering if incremental compiling is working.  Building takes the
same amount of time whether I make one minor change to one file, or a
clean build -- about 25 seconds.  Is there any way to verify that the
project is being compiled incrementally?

thanks





--
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/
 





[flexcoders] Re: Best way to use Formatters and Bindings

2006-08-31 Thread jrjazzman23
We've been using unformatters.  So the binding back to the model might
look like this:





--- In flexcoders@yahoogroups.com, "Clarke Bishop"
<[EMAIL PROTECTED]> wrote:
>
> What's the best practice for using Formatters and Bindings together?
> 
> For example:
> - I have a currency value that's stored as a number in my model (And
in the
> database)
> - I retrieve the value and use the CurrencyFormatter to make it look
like
> $15,123 which is displayed in a TextInput component.
> - So far, so good. But, now my user edits the value and wants to save it
> back to the database
> - But, the new value in the TextInput component isn't a number anymore!
> 
> Do I:
> - Have to write an unformatter for each formatter?
> - Create a custom CurrencyTextInput component that has both a
formatted and
> unformatted version of the data
> - Am I looking at this all wrong and need to think differently?
> 
> It seems like this situation must come up all the time, and I expect an
> easier way to make it work. All the examples in the docs show formatting
> with two fields -- One formatted and one not formatted. But, I don't
think
> users want to see it this way.
> 
> Thanks much for any advice!
> 
>Clarke
>








--
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/
 




[flexcoders] Re: Some Cairngorm questions

2006-08-22 Thread jrjazzman23
As I said, we're still doing textbook Cairngorm.  My question revolved
around our extract class refactoring that we started.  

Also, there's nothing that I'm aware of that says everything in the
model has to be a VO.  We still use VOs exclusively for moving data
between different layers of the app.

thanks

--- In flexcoders@yahoogroups.com, "Darren Houle" <[EMAIL PROTECTED]> wrote:
>
> Okay... well... that sounds nice, but... your subject for this
thread was 
> "Some Cairngorm questions" and what you're doing doesn't sound much
like 
> cairngorm, so... I guess a more approrpiate subject might have been
"Here's 
> how we've changed Cairngorm into a different pattern, and why."
> 
> Just kidding :-) :-) :-)
> 
> Sounds like you've got something that works for you, and that's what
counts!
> 
> Darren
> 
> 
> >From: "jrjazzman23" <[EMAIL PROTECTED]>
> >Reply-To: flexcoders@yahoogroups.com
> >To: flexcoders@yahoogroups.com
> >Subject: [flexcoders] Re: Some Cairngorm questions
> >Date: Sat, 19 Aug 2006 15:40:41 -
> >
> >Our VO classes are separate from the model.  We found that the model
> >needed stuff that didn't belong in the VOs, for example, fields that
> >don't get persisted to the db, state variables, and various methods
> >that the classes in the model need.  When we do need a VO to pass to
> >the data layer, we call toVO(), which, you guessed it, gives us a
> >plain ol' VO.  We didn't get too far into our project before we
> >realized that model != VOs.
> >
> >The code that knows what parts of the model need to be persisted, and
> >when and how to do it is in a separate utility class that we call a
> >persistence manager.  It has all the logic that was cluttering up the
> >Commands.  Now the command just uses the persistence manager in a very
> >simple way, like pm.saveCar(car).  So each command is back to fitting
> >one screen, which I think is nice.
> >
> >Jeremy
> >
> >--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
> > wrote:
> > >
> > > I'm pretty sure they're called ValueObjects for a reason :)
> > >
> > > Ben
> > >
> > > --- In flexcoders@yahoogroups.com, "Darren Houle"  wrote:
> > > >
> > > > >As for reusing events and commands from different places, most of
> >what
> > > > >I could find from the Cairngorm creators suggest that Commands be
> > > > >specific use cases and a Command should always know its
context.  I
> > > > >suppose if the event payload indicates the context, then
you're not
> > > > >violating this rule.  I hadn't thought about doing this.
> > > >
> > > > I take Steven literally when he says Cairngorm should be a
> >lightweight
> > > > framework :-)
> > > >
> > > >
> > > > >By "something else" I was referring to something other than a
Command
> > > > >(say, a model object) consuming the Delegates.  Anything
wrong with
> > > this?
> > > >
> > > > So... you're saying that, for instance, a User vo stored in
the Model
> > > > Locator would not only describe User data fields, but also contain
> > > methods
> > > > with business logic?  Like methods that could create delegates and
> > > deal with
> > > > the returned results?  It's not OOTB, so I'm not sure it's
> > > "Cairngorm" but
> > > > it's not against the laws of the universe either, it could work.
> >There
> > > > *are* examples of vo's out there that do things like track and
> > > increment a
> > > > static emp_id, or populate new vo properties in the vo constructor
> >with
> > > > values based on some other value stored in the Model Locator, but
> > > I'm not
> > > > sure I'd put alot of business logic in there for several reasons;
> > > other
> > > > developers familiar with Cairngorm wouldn't think to look for
that in
> > > > there... you'd have to change the Front Controller, Commands, and
> > > Delegate
> > > > around... and you'd also be storing business logic inside your
data
> > > model,
> > > > which to me would make me feel all itchy.
> > > >
> > > > I think limited logic in the vo's, used to intelligently construct
> > > that vo,
> > > > would b

[flexcoders] Re: Some Cairngorm questions

2006-08-19 Thread jrjazzman23
Our VO classes are separate from the model.  We found that the model
needed stuff that didn't belong in the VOs, for example, fields that
don't get persisted to the db, state variables, and various methods
that the classes in the model need.  When we do need a VO to pass to
the data layer, we call toVO(), which, you guessed it, gives us a
plain ol' VO.  We didn't get too far into our project before we
realized that model != VOs.  

The code that knows what parts of the model need to be persisted, and
when and how to do it is in a separate utility class that we call a
persistence manager.  It has all the logic that was cluttering up the
Commands.  Now the command just uses the persistence manager in a very
simple way, like pm.saveCar(car).  So each command is back to fitting
one screen, which I think is nice. 

Jeremy

--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> I'm pretty sure they're called ValueObjects for a reason :)
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com, "Darren Houle"  wrote:
> >
> > >As for reusing events and commands from different places, most of
what
> > >I could find from the Cairngorm creators suggest that Commands be
> > >specific use cases and a Command should always know its context.  I
> > >suppose if the event payload indicates the context, then you're not
> > >violating this rule.  I hadn't thought about doing this.
> > 
> > I take Steven literally when he says Cairngorm should be a
lightweight 
> > framework :-)
> > 
> > 
> > >By "something else" I was referring to something other than a Command
> > >(say, a model object) consuming the Delegates.  Anything wrong with
> this?
> > 
> > So... you're saying that, for instance, a User vo stored in the Model 
> > Locator would not only describe User data fields, but also contain
> methods 
> > with business logic?  Like methods that could create delegates and
> deal with 
> > the returned results?  It's not OOTB, so I'm not sure it's
> "Cairngorm" but 
> > it's not against the laws of the universe either, it could work. 
There 
> > *are* examples of vo's out there that do things like track and
> increment a 
> > static emp_id, or populate new vo properties in the vo constructor
with 
> > values based on some other value stored in the Model Locator, but
> I'm not 
> > sure I'd put alot of business logic in there for several reasons; 
> other 
> > developers familiar with Cairngorm wouldn't think to look for that in 
> > there... you'd have to change the Front Controller, Commands, and
> Delegate 
> > around... and you'd also be storing business logic inside your data
> model, 
> > which to me would make me feel all itchy.
> > 
> > I think limited logic in the vo's, used to intelligently construct
> that vo, 
> > would be cool, but I'm not sure I'd expect to see much else in there.
> > 
> > Darren
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > >--- In flexcoders@yahoogroups.com, "Darren Houle"  wrote:
> > > >
> > > > Jeremy...
> > > >
> > > >
> > > > >First.  I don't see what value the FrontController adds in Flex
> apps.
> > > > >  My initial thought was that it was important to prevent views
> from
> > > > >coupling to specific commands.
> > > >
> > > > Yes, if you subscribe to the idea of an MVC pattern then yes, you
> > >need to do
> > > > this.  And if you're not going to do this then you should either
> > >design a
> > > > better pattern... or don't use one at all... but don't code
> > >something that's
> > > > only half Cairngorm.  Mostly because if I'm the developer who
comes
> > >after
> > > > you and has to reverse-engineer your code one day I'd like to know
> > >where
> > > > things are and not have to quess or re-write it all from
scratch :-)
> > > >
> > > >
> > > > >That really doesn't hold up though,
> > > > >because the views are coupled to specifc events
> > > >
> > > > Yes, Views generate events, but they don't have to be specific,
> like:
> > > >
> > > >AddPublicUserToManagerList(user)
> > > >
> > > > they can be generic, like:
> > > >
> > > >AddUserToList(user, "public", "manager")
> > > >
> > > > That way several different Views can re-use an Event and your
> > >Command can
> > > > figure out what it should do based on the event args.  There's
> pros and
> > > > cons, but that's one way to reduce the number of pieces and parts.
> > > >
> > > >
> > > > >each of which results in a specific Command being executed.
> > > > >Since the FrontController
> > > > >maintains a 1-to-1 map of Cairngorm events to Commands
> > > >
> > > > Not necessarily.  Yes, they are normally 1 to 1, but if you
want an
> > >Event to
> > > > trigger two Commands you can also do this in the Front Controller:
> > > >
> > > >addCommand(AppController.EVENT_ONE, SomeCommand);
> > > >addCommand(AppController.EVENT_ONE, AnotherCommand);
> > > >
> > > >
> > > > >why don't views just run the commands directly?
> > > >
> > > > You could, and it's not a terrible thing to argue for fewer
pieces,
> > >like

[flexcoders] Re: Some Cairngorm questions

2006-08-18 Thread jrjazzman23
We are pretty much sticking to textbook Cairngorm.  We all just began
to question the FrontController.  Most of my MVC experience is with
struts, where it seems to make more sense.

As for reusing events and commands from different places, most of what
I could find from the Cairngorm creators suggest that Commands be
specific use cases and a Command should always know its context.  I
suppose if the event payload indicates the context, then you're not
violating this rule.  I hadn't thought about doing this.

By "something else" I was referring to something other than a Command
(say, a model object) consuming the Delegates.  Anything wrong with this?

Jeremy


--- In flexcoders@yahoogroups.com, "Darren Houle" <[EMAIL PROTECTED]> wrote:
>
> Jeremy...
> 
> 
> >First.  I don't see what value the FrontController adds in Flex apps.
> >  My initial thought was that it was important to prevent views from
> >coupling to specific commands.
> 
> Yes, if you subscribe to the idea of an MVC pattern then yes, you
need to do 
> this.  And if you're not going to do this then you should either
design a 
> better pattern... or don't use one at all... but don't code
something that's 
> only half Cairngorm.  Mostly because if I'm the developer who comes
after 
> you and has to reverse-engineer your code one day I'd like to know
where 
> things are and not have to quess or re-write it all from scratch :-)
> 
> 
> >That really doesn't hold up though,
> >because the views are coupled to specifc events
> 
> Yes, Views generate events, but they don't have to be specific, like:
> 
>AddPublicUserToManagerList(user)
> 
> they can be generic, like:
> 
>AddUserToList(user, "public", "manager")
> 
> That way several different Views can re-use an Event and your
Command can 
> figure out what it should do based on the event args.  There's pros and 
> cons, but that's one way to reduce the number of pieces and parts.
> 
> 
> >each of which results in a specific Command being executed.
> >Since the FrontController
> >maintains a 1-to-1 map of Cairngorm events to Commands
> 
> Not necessarily.  Yes, they are normally 1 to 1, but if you want an
Event to 
> trigger two Commands you can also do this in the Front Controller:
> 
>addCommand(AppController.EVENT_ONE, SomeCommand);
>addCommand(AppController.EVENT_ONE, AnotherCommand);
> 
> 
> >why don't views just run the commands directly?
> 
> You could, and it's not a terrible thing to argue for fewer pieces,
like for 
> instance Delegates are actually optional, but they do help during
testing 
> and development because it's easier to point a simple Delegate at a
test 
> Service than to find and re-point all the occurances of a Service in
your 
> Commands.  So, yes, you could do without the Front Controller but by
gaining 
> simplicity you'd lose some flexability (as well as confusing another 
> Caringorm developer who's pulling their hair out trying to find
where you 
> put your Front Controller.)
> 
> 
> >Next, we're moving most of our remote object calls into the model.
> >The logic that controls what parts of the model get persisted, when,
> >and in what order is complex, and our Commands had become huge and
> >full of logic.  As a reuslt of the changes, lots of the classes in the
> >model now make remote calls and implement IResponder.  I'm trying to
> >get back to the model of Command kicks off the "feature" and then gets
> >out of the way.  Is there any rule with Cairngorm that says that
> >Commands must do the remote calls?  Is it common to use something
> >other than a Command to make remote calls?
> 
> Do you mean "something else" making the call to the Service as in a 
> Delegate, or do you mean some other class (maybe a subclass of Command) 
> handling that?  As far as vanilla Cairngorm goes there's really just 
> Command, SequenceCommand, and Delegate.  I'm pretty sure, though, that 
> Adobe/Steven feel Cairngorm is a starting point to be built on... so
if you 
> stick to the basic pattern but need to add to it then that's totally
cool.  
> I actually find that you almost *have* to expand on Cairngorm to get
certain 
> things done... like running a Command that's dependant on another
Command 
> that's dependant on the results of a WebService call that's
dependant on the 
> results of another WebService call.  Complicated business logic may
require 
> custom pieces be added to the base, but that's an okay thing.
> 
> Darren
>







--
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/
 





[flexcoders] Re: Some Cairngorm questions

2006-08-18 Thread jrjazzman23
Ben,

Thanks for your viewpoint.  I'd like to summarize your points to see
if I understood correctly:

1) It's easy to execute a Command by raising a Cairngorm event.

It seems to me that the amount of code to raise a Cairngorm event is
the same as executing the Command directly.  Probably the same # of
imports.  2 lines of code to raise a cairngorm event.  2 lines of code
to instiate and execute a Command.

2) FrontController keeps instances of the Command in one place.  

I'm not sure this is technically true.  To me, the more imporant thing
to control is the various places that you're raising Cairngorm events,
which can get messy in a large app.  We typicallly try to raise
Cairngorm events at the highest level possible in a module.  Again,
the fact that raising the event is not the absolute direct execution
of a Command is almost meaningless.

3) Changing the name of a Command is easy because you only need to
edit a line or 2 of code in the FrontController.

True.  But you're still raising Cairngorm events by name/type.  If you
rename the Command, you'll most likely want to rename the Cairngorm
event type.  Now you're back to having to find all the places where
you're raising that particular event type.  This actually shouldn't be
much of an issue due to the fact that Commands are supposed to be
context sensitive, i.e. the Command should know what
screen/module/component caused it to be executed.  Therefore, there
are usually a small # of places where any one event type gets raised.
 This context sensitivity is another way in which application code
really isn't abstracted from Commands in a meaningful way.  

I screwed up on my initial explanation of what we're doing with our
model.  We're still using Delegates.. no direct calling of remote
objects.  What we are doing is moving the code that uses delegates
from Commands to the Model.  Again, the reasoning here is that when
you do something like (contrived example here...) car.save(), car
being a model object, only the car knows what save() really involves,
based on state in car and its various components and logic within the
car, etc.  So the car needs to use Delegates, implement IResponder (or
Responder), etc.  

I think a big benefit we've received from Cairngorm on our current
project is the consolidation of the use cases or "features" into one
place, or one tree on the file systems.  This seems to facilitate team
development some since there is a single place to go and see what use
cases exist.  The struggle for us has been keeping the Commands very
light, thus our initiative to move the logic and delegate calls from
some of the really big Commands into the model.


Jeremy


--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> While I am sure there are others, the first thing that comes to mind
> concerning your first question is something I did just the other day.
> Say you've got a command that you want to execute when you receive
> data back from a remote call. For debugging or other purposes, you now
> want to be able to execute that command manually, by clicking a
> button. Using FrontController and the traditional Cairngorm approach,
> all you have to do is dispatch the event in the click handler. Without
> FrontController you have to import, instantiate and call execute() on
> your Command class. Not to mention you now have instances of your
> Command class scattered about.
> 
> Or what if you decide that a Command that is called in various places
> should be named differently or changed in some other way? Using
> FrontController you greatly minimize the places in which you need to
> edit your code. I suppose if you never need to execute the same
> Command in response to more than one type of event (generally
> speaking, not Event), then your approach would be fine.
> 
> As I understand it, Cairngorm generally advocates making remote calls
> from your delegate classes, not commands. Again, the main advantage I
> see here is code centralization. You might have five different
> commands that all need to call the same remote method. If something
> changes and you need to call that method with different arguments or
> need to call a different method altogether, using a delegate means you
> change your code once instead of five times.
> 
> I am still a relative newcomer to Flex and Cairngorm but the main
> advantages I've seen and loved so far are the things I've mentioned
> here; code centralization, defined responsibilities and clear
> separation of duties for the pieces of your app. Most of the time when
> I do question a methodology put forth by Cairngorm I simply fall back
> on the thought that its developers are way smarter and more
> experienced than myself so they probably have a good reason for

[flexcoders] Some Cairngorm questions

2006-08-17 Thread jrjazzman23
Hi,

I've got a couple of questions on my mind that I'm hoping to get some
opinions on...

First.  I don't see what value the FrontController adds in Flex apps.
 My initial thought was that it was important to prevent views from
coupling to specific commands.  That really doesn't hold up though,
because the views are coupled to specifc events, each of which results
in a specific Command being executed.  Since the FrontController
maintains a 1-to-1 map of Cairngorm events to Commands, why don't
views just run the commands directly?

Next, we're moving most of our remote object calls into the model. 
The logic that controls what parts of the model get persisted, when,
and in what order is complex, and our Commands had become huge and
full of logic.  As a reuslt of the changes, lots of the classes in the
model now make remote calls and implement IResponder.  I'm trying to
get back to the model of Command kicks off the "feature" and then gets
out of the way.  Is there any rule with Cairngorm that says that
Commands must do the remote calls?  Is it common to use something
other than a Command to make remote calls?


thanks

Jeremy






--
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/
 




[flexcoders] defaultButton and viewstack issue

2006-08-15 Thread jrjazzman23
Hi,

One of the children of the ViewStack has the defaultButton defined. 
The problem is that if a different child of the ViewStack is visible,
pressing enter on one of its text boxes fires the click of the
defaultButton for the hidden ViewStack child.  

The docs say "When controls in the container have focus, pressing the
Enter key is the same as clicking this Button control."  The button
that gets "clicked" is on a container that does NOT have focus.

The only workaround we've found is to define defaultButtons for all
the viewstack's children.  Is there a better solution to this?

thanks

Jeremy







--
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/
 





[flexcoders] Re: need to be able to cancel change to a DateField

2006-08-02 Thread jrjazzman23
Thanks for the ideas.  I'm a little surprised that there's no notion
of cancelling a change event or capturing some kind of "before change"
event.

Jeremy

--- In flexcoders@yahoogroups.com, "Joan Lafferty" <[EMAIL PROTECTED]> wrote:
>
> Here is a quick example of how you can do it. 
> 
>  
> 
> 
> 
>  
> 
> http://www.adobe.com/2006/mxml"; >
> 
>  
> 
> 
> 
>
> 
> 
> 
>  
> 
>  
> 
>  creationComplete="currentSetDate = df.selectedDate" />
> 
>  
> 
> 
> 
>  
> 
> Good luck.
> 
> Joan
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Karl Johnson
> Sent: Wednesday, August 02, 2006 1:19 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] need to be able to cancel change to a
> DateField
> 
>  
> 
> You might be able to find another event to capture before the commit,
> but it can be a bit hacky sometimes because of the different way to
> interact with form inputs fire different events. The way to do this that
> would ensure you get it right everytime is to store the dateField value
> in a variable, and if they don't confirm the change, change the
> selectedDate back to what was in the Date variable. If they do confirm,
> then set the variable equal to the new selectedDate.
> 
>  
> 
> If you are doing this in a lot of places, then simply extend the
> DateField and add a new property on it called previousDate or something
> like that. Then you could build the confirmation and change back logic
> right into the component.
> 
>  
> 
> Karl 
> 
>  
> 
> Cynergy Systems, Inc.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jrjazzman23
> Sent: Wednesday, August 02, 2006 3:22 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] need to be able to cancel change to a DateField
> 
> I'd like to be able to ask the user to confirm their date selection
> BEFORE the selectedDate field gets set. The Change event appears to
> not be cancelable. Is there any other way to accomplish this?
> 
> thanks
>






--
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/
 





[flexcoders] need to be able to cancel change to a DateField

2006-08-02 Thread jrjazzman23
I'd like to be able to ask the user to confirm their date selection
BEFORE the selectedDate field gets set.  The Change event appears to
not be cancelable.  Is there any other way to accomplish this?

thanks





--
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/
 





[flexcoders] Re: Not getting code hinting for Cairngorm types

2006-08-01 Thread jrjazzman23
I re-added the swc just to make sure.  Still no code hinting.  If I
type "import com.adobe.", I would think Cairngorm would be available
in the list.  The compiler is able to find all the types and build ok.
 The editors just don't seem to know about Cairngorm.

--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> Recently ran into this problem while packing component into swc.
> 
> The problem lies in how you add the swc to your project.
> 
> It's in
> 
> Project > Flex Build Path > Library Path
> 
> press "Add SWC" and make sure you put something like this in the
dialog box:
> 
> $DOCUMENTS\your_lib.swc
> 
> I'm assuming you put "your_lib.swc" in the project folder.
> 
> After this, you should get correct code hint for custom types, and even
> better, custom component can be live-previewed in the Design View.
> 
> 
> Jeremy.
> 
> 
> 
> On 7/29/06, jrjazzman23 <[EMAIL PROTECTED]> wrote:
> >
> >   We're not getting code hinting for Cairngorm types in FB2. I'm only
> > referencing the swc file. Do we need the source in order to get code
> > hinting?
> >
> > thanks
> >
> >  
> >
>







--
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/
 





[flexcoders] Not getting code hinting for Cairngorm types

2006-07-28 Thread jrjazzman23
We're not getting code hinting for Cairngorm types in FB2.  I'm only
referencing the swc file.  Do we need the source in order to get code
hinting?

thanks





--
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/
 




[flexcoders] Command classes that use multiple delegates

2006-07-28 Thread jrjazzman23
Hi,

In the case of a Command that uses multiple business delegates, what's
best practice for an onResult() knowing which remote call it's handling?  

thanks






--
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/
 





[flexcoders] tokens in services-config.xml. magic?

2006-07-25 Thread jrjazzman23
Hi,

So services-config.xml has some nice tokens like {server.name},
{context.root}, etc.  I can't seem to find a list of these pre-defined
tokens in the documentation.  Anybody know where this would be?  It
appears that some of these are resolved to their values at runtime by
the SWF.  So, this don't seem to be the same type of tokens that get
resolved at compile-time.  Can someone shed some light here?

A point of clarification.. there are some references to these tokens
in the documentation in the form of example snippets.  What I'm
seeking is a list of tokens that you can use, and when/how they get
resolved to values.

thanks

Jeremy






 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 





[flexcoders] Cases when a view should update ModelLocator?

2006-07-17 Thread jrjazzman23
For example, when a button is pushed, a property on the ModelLocator
needs to be updated, which as a result changes which screen is
visible.  I'm trying to be pragmatic with MVC here.  Is it advised to
implement a Command for such a simple "feature"?

thanks

Jeremy






 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 




[flexcoders] Re: binding ViewStack.selectedChild to the data model

2006-07-16 Thread jrjazzman23
thanks.  I successfully switched to using selectedIndex.  Curious
though, would the solution you provided create a binding?  Seems like
it might be a one-time assignment to selectedChild and not receive
updates.

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> The docs say selectedChild can only be set in AS, not MXML.  Maybe 
> try something like:
> 
> creationComplete="viewstack1.selectedChild = ModelLocator.getInstance
> ().selectedView" 
> 
> 
> --- In flexcoders@yahoogroups.com, "jrjazzman23"  
> wrote:
> >
> > I think the binding is happening before the viewstack children are
> > initialized.. getting the following error when I run the prog:
> > 
> > TypeError: Error #2007: Parameter child must be non-null.
> > 
> > 
> > ModelLocator snippet
> > ---
> > public var selectedView : Container;
> > 
> > 
> > 
> > mainapp.mxml snippet
> > --
> >  height="550"
> > creationPolicy="all"
> > selectedChild="{ModelLocator.getInstance().selectedView}" >
> >   
> >   
> > 
> > 
> > 
> > 
> > I've tried running the following from main app's initialize,
> > preinitialize and creationcomplete
> > ---
> > ModelLocator.initialize();
> > ModelLocator.getInstance().selectedView = FindClientCanvas;
> > 
> > 
> > 
> > How can I delay the binding until the viewstack and its children 
> have 
> > been created?
> > 
> > thanks
> >
>






--
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/
 




[flexcoders] binding ViewStack.selectedChild to the data model

2006-07-14 Thread jrjazzman23
I think the binding is happening before the viewstack children are
initialized.. getting the following error when I run the prog:

TypeError: Error #2007: Parameter child must be non-null.


ModelLocator snippet
---
public var selectedView : Container;



mainapp.mxml snippet
--

  
  




I've tried running the following from main app's initialize,
preinitialize and creationcomplete
---
ModelLocator.initialize();
ModelLocator.getInstance().selectedView = FindClientCanvas;



How can I delay the binding until the viewstack and its children have 
been created?

thanks





 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 





[flexcoders] Re: ModelLocator - Cairngorm 2

2006-07-14 Thread jrjazzman23
thanks for the response.  I think it solves the problem, however the
pseudo-private constructor can only be enforced at runtime.  


--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> What about something like this?
> 
> 
> 
> [Bindable]
> public class ShopModelLocator implements ModelLocator
> {
> private static var modelLocator : ShopModelLocator;
> 
> public static function getInstance() : ShopModelLocator
> {
> if ( modelLocator == null )
> modelLocator = new ShopModelLocator();
> 
> return modelLocator;
> }
> 
> public function ShopModelLocator()
> {
>   if ( ShopModelLocator.modelLocator != null )
> throw new Error( "Only one
ShopModelLocatorinstance
> should be instantiated" );
> }
> 
> public var products : ICollectionView;
> }
> 
> 
> 
> |-+->
> | | |
> | |  "jrjazzman23"  |
> | |  <[EMAIL PROTECTED]>|
> | |  Sent by:   |
> | |  flexcoders@yahoogroups.com |
> | |  07/14/2006 02:27 PM|
> | |  Please respond to  |
> | |  flexcoders |
> | | |
> |-+->
>  
>-|
>   |
|
>   |  To: flexcoders@yahoogroups.com
|
>   |  cc:   
|
>   |  Subject:  [flexcoders] ModelLocator - Cairngorm 2 
|
>  
>-|
> 
> 
> 
> 
> I can't get the reference implementation to compile (pasted below).
> Seems to be missing a constructor. How should this be solved keeping
> in mind that private constructors aren't supported?
> 
> [Bindable]
> public class ShopModelLocator implements ModelLocator
> {
> private static var modelLocator : ShopModelLocator;
> 
> public static function getInstance() : ShopModelLocator
> {
> if ( modelLocator == null )
> modelLocator = new ShopModelLocator();
> 
> return modelLocator;
> }
> 
> public var products : ICollectionView;
> }
> 
> 
> 
> 
> 
> 
> 
> 
>
---
> This e-mail message (including attachments, if any) is intended for
the use
> of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and
exempt from
> disclosure.  If you are not the intended recipient, you are notified
that
> any dissemination, distribution or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please notify the sender and erase this e-mail message immediately.
>
---
>






--
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/
 





[flexcoders] ModelLocator - Cairngorm 2

2006-07-14 Thread jrjazzman23
I can't get the reference implementation to compile (pasted below). 
Seems to be missing a constructor.  How should this be solved keeping
in mind that private constructors aren't supported?

[Bindable]
public class ShopModelLocator implements ModelLocator
{
   private static var modelLocator : ShopModelLocator;
   
   public static function getInstance() : ShopModelLocator 
   {
  if ( modelLocator == null )
  modelLocator = new ShopModelLocator();
  
  return modelLocator;
   }
 
   public var products : ICollectionView;
}






 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 





[flexcoders] bidirectional binding

2006-07-14 Thread jrjazzman23
I find myself wanting to do bidirectional binding, but I have the
feeling there may be some drawbacks to this.  

I want a screen's controls to be initialized (bound to) a data model.
 As the user changes the controls' values, I want the data model to
reflect this.  In this case the data model is basically a VO.  Is
there a best practice for this?

thanks

Jeremy





 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 





[flexcoders] intermittent code hints

2006-07-10 Thread jrjazzman23
The scenario is an .mxml file that is the sole includer of an .as
file.  Using the FB2 plug-in, sometimes, we get code hinting in the
.as file, other times not.  When we do get code hinting, all the
variables from the enclosing .mxml are available.  One of our
developers is not getting any code hinting in the .as file.  Any idea
what could cause this?

Also, how would FB handle code hinting of an .as file was included by
multiple .mxml files?  Does it give you code hinting for the variables
in all the .mxml files, or none?

thanks

Jeremy





 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

--
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/
 





[flexcoders] Re: RemoteObject calls failing

2006-06-01 Thread jrjazzman23



thanks for the reply. 

from the channel def:


uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>

I also tried replacing {context.root} with "flex".  I actually tried
hard coding values for all 3 of the merge fields, which didn't seem to
have any effect.  I've got tomcat on my machine and I'm running from
eclipse, so the browser is using http.

Is there anything else I should check?

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> Have you got a {context.root} token in the channel-definition endpoint
> for the "my-amf" channel? If so, can you try removing it to hard code
> the context root, or if you want it to remain in the config, you must
> specify --context.root as a command line parameter.
> 
> Next, how did you load the SWF? Using an HTTP url or the file system? If
> the latter, try either replacing the {server.name} and {server.port}
> tokens with the real values of the tomcat server or try hosting the SWF
> on the web app and browsing to it.
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jrjazzman23
> Sent: Wednesday, May 31, 2006 7:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RemoteObject calls failing
> 
> Hi.  I'm having trouble getting a simple RemoteObject call to work. 
> Running tomcat 5.5  Here are some pertinent snippets.  The call
> generates this:
> 
> fault
> [RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend"
> faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
> HTTP: Failed"]
>   at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
> tHandler()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AbstractInvoker.as:
> 191]
>   at
> mx.rpc::Responder/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\Resp
> onder.as:56]
>   at
> mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\A
> syncRequest.as:107]
>   at
> mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:
> \dev\enterprise_beta3\frameworks\mx\messaging\ChannelSet.as:946]
>   at
> mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_beta3\f
> rameworks\mx\messaging\ChannelSet.as:679]
>   at flash.events::EventDispatcher/dispatchEvent()
>   at
> mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enter
> prise_beta3\frameworks\mx\messaging\Channel.as:658]
>   at
> mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChann
> el::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\chan
> nels\PollingChannel.as:111]
>   at
> mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::stat
> usHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\AMF
> Channel.as:285]
> [object Object]
> 
> 
> Here are some pertinent snippets:
> 
> 
>   
>   
>     
>   
>   
>   
>     com.test.Account
>   
> 
> 
> 
> 
> Action Script:
> 
> var dataTest:mx.rpc.remoting.RemoteObject = new RemoteObject();
>         dataTest.destination = "DataTest";
>   
> dataTest.getName.addEventListener("result", handleResult);
>         dataTest.addEventListener("fault",
> handleFault);
>         dataTest.bla();
> 
> 
> remote object:
> 
> package com.test
> 
> public class Account {
> 
>   public String Name = null;
>   
>   public Account() {
>     Name = "My Company";
>   }
>   
>   public String bla() {
>     return Name;
>   }
> 
> }
> 
> 
> I appreciate any help.
> 
> Jeremy
> 
> 
> 
> 
> 
> 
>  Yahoo! Groups Sponsor ~-->
> Get to your groups with one click. Know instantly when new email arrives
> http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
> ~-> 
> 
> --
> 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








  
  

[flexcoders] Re: RemoteObject calls failing

2006-06-01 Thread jrjazzman23



I tried replacing {context.root} with "flex" once more and it worked.
 I think I didn't recompile properly the first time I made this
change.   Still curious, where would I pass a --context.root parameter? 

thanks so much for the help.

Jeremy

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> Have you got a {context.root} token in the channel-definition endpoint
> for the "my-amf" channel? If so, can you try removing it to hard code
> the context root, or if you want it to remain in the config, you must
> specify --context.root as a command line parameter.
> 
> Next, how did you load the SWF? Using an HTTP url or the file system? If
> the latter, try either replacing the {server.name} and {server.port}
> tokens with the real values of the tomcat server or try hosting the SWF
> on the web app and browsing to it.
> 
> 
> -Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jrjazzman23
> Sent: Wednesday, May 31, 2006 7:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RemoteObject calls failing
> 
> Hi.  I'm having trouble getting a simple RemoteObject call to work. 
> Running tomcat 5.5  Here are some pertinent snippets.  The call
> generates this:
> 
> fault
> [RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend"
> faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
> HTTP: Failed"]
>   at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
> tHandler()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AbstractInvoker.as:
> 191]
>   at
> mx.rpc::Responder/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\Resp
> onder.as:56]
>   at
> mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\A
> syncRequest.as:107]
>   at
> mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:
> \dev\enterprise_beta3\frameworks\mx\messaging\ChannelSet.as:946]
>   at
> mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_beta3\f
> rameworks\mx\messaging\ChannelSet.as:679]
>   at flash.events::EventDispatcher/dispatchEvent()
>   at
> mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enter
> prise_beta3\frameworks\mx\messaging\Channel.as:658]
>   at
> mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChann
> el::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\chan
> nels\PollingChannel.as:111]
>   at
> mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::stat
> usHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\AMF
> Channel.as:285]
> [object Object]
> 
> 
> Here are some pertinent snippets:
> 
> 
>   
>   
>     
>   
>   
>   
>     com.test.Account
>   
> 
> 
> 
> 
> Action Script:
> 
> var dataTest:mx.rpc.remoting.RemoteObject = new RemoteObject();
>         dataTest.destination = "DataTest";
>   
> dataTest.getName.addEventListener("result", handleResult);
>         dataTest.addEventListener("fault",
> handleFault);
>         dataTest.bla();
> 
> 
> remote object:
> 
> package com.test
> 
> public class Account {
> 
>   public String Name = null;
>   
>   public Account() {
>     Name = "My Company";
>   }
>   
>   public String bla() {
>     return Name;
>   }
> 
> }
> 
> 
> I appreciate any help.
> 
> Jeremy
> 
> 
> 
> 
> 
> 
>  Yahoo! Groups Sponsor ~-->
> Get to your groups with one click. Know instantly when new email arrives
> http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
> ~-> 
> 
> --
> 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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.



  












[flexcoders] RemoteObject calls failing

2006-05-31 Thread jrjazzman23



Hi.  I'm having trouble getting a simple RemoteObject call to work. 
Running tomcat 5.5  Here are some pertinent snippets.  The call
generates this:

fault
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Failed"]
  at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AbstractInvoker.as:191]
  at
mx.rpc::Responder/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\Responder.as:56]
  at
mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AsyncRequest.as:107]
  at
mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:\dev\enterprise_beta3\frameworks\mx\messaging\ChannelSet.as:946]
  at
mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\ChannelSet.as:679]
  at flash.events::EventDispatcher/dispatchEvent()
  at
mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\Channel.as:658]
  at
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\PollingChannel.as:111]
  at
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\AMFChannel.as:285]
[object Object]


Here are some pertinent snippets:


      
      
        
      
      
      
        com.test.Account
      

    


Action Script:

var dataTest:mx.rpc.remoting.RemoteObject = new RemoteObject();
        dataTest.destination = "DataTest";
        dataTest.getName.addEventListener("result", handleResult);
        dataTest.addEventListener("fault", handleFault);
        dataTest.bla();


remote object:

package com.test

public class Account {

  public String Name = null;
  
  public Account() {
    Name = "My Company";
  }
  
  public String bla() {
    return Name;
  }

}


I appreciate any help.

Jeremy










--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.