[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: mx:Binding source=numFormatter.format(myText.text) destination=model.textValue / --- In flexcoders@yahoogroups.com, Clarke Bishop [EMAIL PROTECTED] wrote: What's the best practice for using Formatters and

[flexcoders] Re: Some Cairngorm questions

2006-08-22 Thread jrjazzman23
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

[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

[flexcoders] Re: Some Cairngorm questions

2006-08-18 Thread jrjazzman23
--- In flexcoders@yahoogroups.com, jrjazzman23 jrjazzman23@ wrote: 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

[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

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

[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

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

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

2006-08-02 Thread jrjazzman23
. 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

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

2006-08-01 Thread jrjazzman23
: $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

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

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

[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

[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

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

2006-07-16 Thread jrjazzman23
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 jrjazzman23@ wrote: I think the binding is happening before the viewstack

[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

[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

[flexcoders] Re: ModelLocator - Cairngorm 2

2006-07-14 Thread jrjazzman23
; } |-+- | | | | | jrjazzman23 | | | [EMAIL PROTECTED]| | | Sent by: | | | flexcoders@yahoogroups.com | | | 07/14/2006 02:27 PM| | | Please respond to | | | flexcoders

[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

[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

[flexcoders] Re: RemoteObject calls failing

2006-06-01 Thread jrjazzman23
@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

[flexcoders] Re: RemoteObject calls failing

2006-06-01 Thread jrjazzman23
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

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