Re: [flexcoders] How to get access to HttpSession in a stateful-c lass

2005-04-04 Thread Dan Tropp
This may be a stupid question, but if your flex app is wrapped in in a jsp file (using something like mm:mxml source=.../) can you access variables in request scope? Or can you pass selected variables into a flex app? I got around it by having initialize=callHttpServiceToGetInitData() in my

Re: [flexcoders] How to get access to HttpSession in a stateful-c lass

2005-04-05 Thread Dan Tropp
Steven, Thanks for the reply. I realise my question wasn't quite clear - I wanted to access objects in the request object on the client. Or more specifically, pass a complex object that is available to the JSP into the Flex app. This page was what I was after...

[flexcoders] Can't run CairngormApplication inside Flex Builder - doesn't recognise it as an mx:Application!

2005-04-07 Thread Dan Tropp
Do other people have this problem? Or is there a configuration setting that I have missed? I also does get code hinting for my own custom components (MXML and AS). Any help appreciated. Dan Yahoo! Groups Links * To visit your group on the web, go to:

Re: [flexcoders] HTTPService.send

2005-04-08 Thread Dan Tropp
Not sure about the first two, but for 3. the call to the HTTPService generates a pending call which is not executed until you leave the current scope (allowing you to bind to the result event). So I don't think there are any race conditions. cheers Dan viraf_bankwalla wrote: The

[flexcoders] Use mx:Model as well as Cairngorm ViewHelper pattern?

2005-04-08 Thread Dan Tropp
The book hasn't arrived yet...in the meantime. Is it a good idea to bind your components to a Model and have the ViewHelper use the Model (eg. myModel.foo), or are you better off just having your ViewHelper subclass directly access the components (eg. fooLabel.text) It feels like having

Re: [flexcoders] flex and jsp

2005-04-10 Thread Dan Tropp
I think you want thissearch the Flex documentation for "flashvars". AFAIK this is the only way to pass data into your Flex app. Dan Using flashVars You can pass variables to your Flex applications using the flashVars property in the object and embed tags in your HTML wrapper. You do

Re: [flexcoders] Re: No debugging information available for invocation of methods on server-side

2005-04-11 Thread Dan Tropp
ectory /extras/netConnectionDebugger/ Andrew btw I use Flex 1.5, Tomcat 4.1.30, Windows XP --- In flexcoders@yahoogroups.com, Dan Tropp [EMAIL PROTECTED] wrote: This is getting really frustrating. I have turned all the debug flags to true in the flex-config.xml file and the loggi

Re: [flexcoders] Re: Error: Cannot invoke method when using a VO

2005-04-11 Thread Dan Tropp
class vo.ApplicantVO implements ValueObject { public static var registered:Boolean = Object.registerClass( "vo.ApplicantVO", ApplicantVO ); Do you have a line like this in your AS class? ... } If you don't register the Java/AS class

Re: [flexcoders] Use mx:Model as well as Cairngorm ViewHelper pattern? -- Best-practice for using validators?

2005-04-11 Thread Dan Tropp
I've removed my models and just have the ViewHelper. My field validators are just bound directly to the controls rather than to the mx:Model. What is best practice - locating validators in your .mxml or programatically in you .as ViewHelper?? Dan Dan Tropp wrote: The book hasn't arrived