[flexcoders] ModelLocator for each modules????

2008-06-05 Thread slash_n_rose
Hi All
I'm using Cairngorm in my application, which has different big
modules. For example one module may be project management and other
contact management. Do I need to make different ModelLocator files for
these modules?? 

Regards
Jerry



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





Re: [flexcoders] ModelLocator - Cairngorm 2

2006-07-14 Thread Oscar . Cortes
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.
---

 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/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/
 


pic01723.gif
Description: GIF image


Re: [flexcoders] modellocator and double bindings

2006-07-07 Thread Douglas Knudsen
thanks!  yes, I am certain.

It seemed to only effect VOs 'owned' by the main VO.
for example, homeAddress is a VO that is a member of myVO.
mymodel.myVO.homeAddress.address1

each VO extended Cairngorm's ValueObject and is tagged Bindable.

DK


On 7/7/06, Dimitrios Gianninas [EMAIL PROTECTED] wrote:

 Does your VO class have the [Bindable] at the top of it?

 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of Douglas Knudsen
 Sent: Thu 7/6/2006 11:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] modellocator and double bindings

 Ok, before the big hoorah relase of FB 2 and cairngorm2 I had a app
 that has a few forms in it bound to a VO hanging out in the
 modellocator.  I used double bindings to display and update values in
 the VO like this

 mx:Binding source={mymodel.myVO.homeAddress.address1}
 destination=txtAddress1.text /
 mx:Binding source={txtAddress1.text}
 destination=mymodel.myVO.homeAddress.address1 /

 mx:TextInput width=100% id=txtAddress1 /

 things worked swell.  Then came the update to Flez 2 and cairngorm and
 teh above double binding attack bombs.  The txtAddrss1 input box is
 diplayed empty and gets updated as empty too.  Yuk!

 THe approach I have found to work is to use a local var as a pointer
 and bind to it.  wierd.  So this works
 [Bindable]
 localAddy: Address = mymodel.myVO.homeAddress;

 mx:Binding source={localAddy.address1} destination=txtAddress1.text /
 mx:Binding source={txtAddress1.text} 
 destination=localAddy.address1 /

 mx:TextInput width=100% id=txtAddress1 /

 Any thoughts?


 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?

 --
 WARNING
 ---
 This electronic message and its attachments may contain confidential, 
 proprietary or legally privileged information, which is solely for the use of 
 the intended recipient.  No privilege or other rights are waived by any 
 unintended transmission or unauthorized retransmission of this message.  If 
 you are not the intended recipient of this message, or if you have received 
 it in error, you should immediately stop reading this message and delete it 
 and all attachments from your system.  The reading, distribution, copying or 
 other use of this message or its attachments by unintended recipients is 
 unauthorized and may be unlawful.  If you have received this e-mail in error, 
 please notify the sender.

 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des 
 renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
 seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
 privilège ou à aucun autre droit si le présent message a été transmis 
 involontairement ou s'il est retransmis sans son autorisation.  Si vous 
 n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par 
 erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que 
 toutes ses pièces jointes, de votre système.  La lecture, la distribution, la 
 copie ou tout autre usage du présent message ou de ses pièces jointes par des 
 personnes autres que le destinataire visé ne sont pas autorisés et pourraient 
 être illégaux.  Si vous avez reçu ce courrier électronique par erreur, 
 veuillez en aviser l'expéditeur.



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








-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


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




Re: [flexcoders] modellocator and double bindings

2006-07-07 Thread Douglas Knudsen



holy creations batman! sounds like a good reason. Now, would adding a creationPolicy=all to the root application tag address this maybe?DKOn 7/7/06, 
Moishe Groger [EMAIL PROTECTED] wrote:







Binding seems to take even if local controls haven't been 
created yet. So if you're double-binding is between a null control and an 
always-available model locator, the values in the model locator should be 
corrupted before the control is created.

On the other hand, if a local variable is used the 
double-binding doesn't acually start binding into the model until the local 
controls are created.

Moishe Groger


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas 
KnudsenSent: Thursday, July 06, 2006 11:06 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] modellocator and 
double bindings


Ok, before the big hoorah relase of FB 2 and cairngorm2 I had a appthat 
has a few forms in it bound to a VO hanging out in themodellocator. I used 
double bindings to display and update values inthe VO like 
thismx:Binding 
source={mymodel.myVO.homeAddress.address1}destination=txtAddress1.text 
/mx:Binding 
source={txtAddress1.text}destination=mymodel.myVO.homeAddress.address1 
/mx:TextInput width=100% id=txtAddress1 /things 
worked swell. Then came the update to Flez 2 and cairngorm andteh above 
double binding attack bombs. The txtAddrss1 input box isdiplayed empty and 
gets updated as empty too. Yuk!THe approach I have found to work is to 
use a local var as a pointerand bind to it. wierd. So this 
works[Bindable]localAddy: Address = 
mymodel.myVO.homeAddress;mx:Binding 
source={localAddy.address1} destination=txtAddress1.text 
/mx:Binding source={txtAddress1.text} 
destination=localAddy.address1 /mx:TextInput 
width=100% id=txtAddress1 /Any thoughts?-- Douglas 
Knudsenhttp://www.cubicleman.comthis is 
my signature, like it?



-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?

__._,_.___





--
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] modellocator and double bindings

2006-07-06 Thread Douglas Knudsen
Ok, before the big hoorah relase of FB 2 and cairngorm2 I had a app
that has a few forms in it bound to a VO hanging out in the
modellocator.  I used double bindings to display and update values in
the VO like this

mx:Binding source={mymodel.myVO.homeAddress.address1}
destination=txtAddress1.text /
mx:Binding source={txtAddress1.text}
destination=mymodel.myVO.homeAddress.address1 /

mx:TextInput width=100% id=txtAddress1 /

things worked swell.  Then came the update to Flez 2 and cairngorm and
teh above double binding attack bombs.  The txtAddrss1 input box is
diplayed empty and gets updated as empty too.  Yuk!

THe approach I have found to work is to use a local var as a pointer
and bind to it.  wierd.  So this works
[Bindable]
localAddy: Address = mymodel.myVO.homeAddress;

mx:Binding source={localAddy.address1} destination=txtAddress1.text /
mx:Binding source={txtAddress1.text} 
destination=localAddy.address1 /

mx:TextInput width=100% id=txtAddress1 /

Any thoughts?


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


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

2005-08-23 Thread Mehdi, Agha
Title: ModelLocator







Hi All,

How does ModelLocator work? I am looking at the sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are bound to views and Commands manipulate ModelLocator to update views. Is ModelLocator available to the entire application once it gets initialized on the root level? If it works like that then it means that I'd hardly ever need ViewLocators??? I can create models, initialize them in ModelLocator and use them wherever I want in the app?

Thanks


Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766









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



  









RE: [flexcoders] ModelLocator

2005-08-23 Thread Mercer, Dustin
Title: ModelLocator










Exactly. I found after implementing the
ModelLocator, I pretty much wiped out the need for ViewHelpers. The only thing
I use the ViewHelpers for now is setting focus on fields! It makes things a
lot more organized and simplified. You are right though. Just initialize it
in the app init event and you will be able to use it anywhere, anytime.



Dustin Mercer











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModelLocator





Hi All,

How does ModelLocator work? I am looking at the
sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are
bound to views and Commands manipulate ModelLocator
to update views. Is ModelLocator available to the entire application once it
gets initialized on the root level? If it works like that then it means that
I'd hardly ever need ViewLocators??? I can create models, initialize them in
ModelLocator and use them wherever I want in the app?

Thanks



Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766









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



  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.



  











RE: [flexcoders] ModelLocator

2005-08-23 Thread Mehdi, Agha
Title: ModelLocator










Great. That sounds exciting and a very
good approach. The way Im implementing is that I have a ModelLocator,
which has models as properties. Now should those individual models make the
ValueObjects available to views or just their own properties? Why I am leaning
towards VOs is so that its easier for me to send them over to CF. Does
that sound ok?



Thanks



Agha Mehdi 
IDT - eBusiness Program Manager 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin
Sent: Tuesday, August 23, 2005
11:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Exactly. I found after implementing
the ModelLocator, I pretty much wiped out the need for ViewHelpers. The
only thing I use the ViewHelpers for now is setting focus on fields! It
makes things a lot more organized and simplified. You are right
though. Just initialize it in the app init event and you will be able to
use it anywhere, anytime.



Dustin Mercer











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModelLocator





Hi All,

How does ModelLocator work? I am looking at the
sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are
bound to views and Commands manipulate ModelLocator
to update views. Is ModelLocator available to the entire application once it
gets initialized on the root level? If it works like that then it means that
I'd hardly ever need ViewLocators??? I can create models, initialize them in
ModelLocator and use them wherever I want in the app?

Thanks



Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766










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



  











RE: [flexcoders] ModelLocator

2005-08-23 Thread Shahnavaz Alware
Title: ModelLocator










Hi Mehdi



To use ModelLocator and transfer VO is perfectly fine. 

Eg. I have a Datagrid dp=ModelLocator.organizations
and when I select in the datagrid I have ModelLocator.organization =
SelectedItem which I send to my J2EE server in your case CF.



import com.VO.*;



class model.ModelLocator implements
org.nevis.cairngorm.model.ModelLocator {

 

 public static function initialise()
: Void {

 }



//

 

public static var
organizations : Array;

public static var
organization : OrganizationalUnitVO;



}











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
12:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Great. That sounds exciting and a very
good approach. The way Im implementing is that I have a ModelLocator,
which has models as properties. Now should those individual models make the
ValueObjects available to views or just their own properties? Why I am leaning
towards VOs is so that its easier for me to send them over to CF. Does
that sound ok?



Thanks



Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin
Sent: Tuesday, August 23, 2005
11:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Exactly. I found after implementing
the ModelLocator, I pretty much wiped out the need for ViewHelpers. The
only thing I use the ViewHelpers for now is setting focus on fields! It
makes things a lot more organized and simplified. You are right
though. Just initialize it in the app init event and you will be able to
use it anywhere, anytime.



Dustin Mercer











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModelLocator





Hi All,

How does ModelLocator work? I am looking at the
sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are
bound to views and Commands manipulate ModelLocator
to update views. Is ModelLocator available to the entire application once it gets
initialized on the root level? If it works like that then it means that I'd
hardly ever need ViewLocators??? I can create models, initialize them in
ModelLocator and use them wherever I want in the app?

Thanks



Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766











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



  











RE: [flexcoders] ModelLocator

2005-08-23 Thread Mercer, Dustin
Title: ModelLocator










IMHO, this is the best way. Works
very clean. I dont know about the integration with CF (I dont
use CF) but I can tell you it works great with Java. Good Luck J



Dustin Mercer 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
12:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Great. That sounds exciting and a very
good approach. The way Im implementing is that I have a ModelLocator,
which has models as properties. Now should those individual models make the
ValueObjects available to views or just their own properties? Why I am leaning
towards VOs is so that its easier for me to send them over to CF. Does
that sound ok?



Thanks



Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin
Sent: Tuesday, August 23, 2005
11:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Exactly. I found after implementing
the ModelLocator, I pretty much wiped out the need for ViewHelpers. The
only thing I use the ViewHelpers for now is setting focus on fields! It
makes things a lot more organized and simplified. You are right
though. Just initialize it in the app init event and you will be able to
use it anywhere, anytime.



Dustin Mercer











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModelLocator





Hi All,

How does ModelLocator work? I am looking at the
sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are
bound to views and Commands manipulate ModelLocator
to update views. Is ModelLocator available to the entire application once it
gets initialized on the root level? If it works like that then it means that
I'd hardly ever need ViewLocators??? I can create models, initialize them in
ModelLocator and use them wherever I want in the app?

Thanks



Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766











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