[flexcoders] RE: AS3 codegen

2007-05-08 Thread Peter Martin
We are still using this approach on our projects. To run it inside of
Eclipse is a bit of pain as you need to write an Ant script and then
configure it as a builder on your project. When you configure it you
probably want to take care of which resources trigger the build
otherwise it will running with every change.

To be honest I am not a great fan of XDoclet2 - I would rather see a
native plugin for Eclipse. A quick solution is maybe to write a plugin
for XDoclet, which does provide a plugin for Eclipse.
 
-Original Message-
From: Kevin [mailto:[EMAIL PROTECTED] 
Sent: 07 May 2007 23:30
To: flexcoders@yahoogroups.com
Cc: Peter Martin
Subject: AS3 codegen

I noticed that this post was over a year old, but I am wondering if  
the codegen plugin is still appropriate for use.  We have over 50  
Java objects that we would like to generate AS3 VO from for a  
Cairngorm app.  Can anyone advise...

http://weblogs.macromedia.com/pmartin/archives/2006/04/ 
xdoclet2_as3_an.cfm

Thanks, Kevin


[flexcoders] Re: Cairngorm's Anaemic Domain Model

2007-02-23 Thread Peter Martin
No Cairngorm Enterprise is still an internal project. We are currently
developing our first customer project on Cairngorm Enterprise. Once we
have proven it we will then look to release to the community.


--- In flexcoders@yahoogroups.com, "John Menke" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Peter Martin"  wrote:
> >
> > I thought at this point it is worth jumping in to talk a bit about
> > Cairngorm Enterprise, which we are currently working on.
> > 
> 
> Peter,
> 
> is there a public cairngorm repository where we can get a look at the
> Cairngorm Enterprise Code?
> 
> -jm
>




RE: [flexcoders] Re: Cairngorm's Anaemic Domain Model

2006-12-08 Thread Peter Martin
I thought at this point it is worth jumping in to talk a bit about
Cairngorm Enterprise, which we are currently working on.

 

With Cairngorm Enterprise one of goals is to promote an application
model on the client (RIA) and a domain model on server. We see the
application model being a good OO model that reflects the UI and tells
us about the entities and their relationships that we are surfacing. It
will also encapsulate all the business rules that apply to the UI. I see
this being different to the domain model and the business rules that
reside on the server. Next, we see the application model being
responsible for communication with the server-side i.e. it will call
remote services, consume messages, produce messages and contain managed
data collections. It knows when it needs to retrieve data from the
server, it knows when it needs to update server and it knows what to do
when data is pushed from the server.

 

This sort of shifts the concept we have at the moment, whereby you call
a command, which may invoke a service via a delegate. In essence we are
going to move the delegates behind the model and have the command call
an operation on the model. This is not saying what we do today is wrong,
but recognizing different applications have different needs. A simple
application certainly doesn't need this level of complexity - Cairngorm
today is just fine.

 

>From our observations as the complexity of an application increases we
see people treating the ModelLocator as a session for storing data that
comes back from the server. There is no application model that shows the
entities and their relationships, this is often left to the view to
piece together. To help with this we have introduced the concept of an
operation, which is effectively your IResponder. When an operation is
executed on the delegate it creates an operation, which is responsible
for updating the application model. The idea then is that an operation
can perform any post-processing, which is required on the data. This
allows the application model to be update correctly - quite often when a
legacy application is involved the data that comes back from server
isn't in a form that reflects how it is going to be viewed. We would
deal with that in the operation. In essence it would be nice to see VOs
/ DTOs being used for transporting data rather than making their way in
to the view via the ModelLocator.

 

We hope by encouraging an application model it will stop people having
to code allot of the logic in to the views and also make unit testing
easier. If we had a well encapsulated model it would be easier to unit
test than a bunch of views.

 

In saying this we can't force people to create an application model nor
are you prevented from doing so today. If you want to build an
application model in Cairngorm today you can and I know people do. Our
goal here is to encourage this in your design and to promote this
approach within Cairngorm Enterprise. In addition we want to emphasize
security and make it inherent within Cairngorm Enterprise by adopting
the "safe-by-default" mantra.

 

We have already done allot of work on Cairngorm Enterprise and there is
more to do - so now commitment just now as to when we will release it.
Certainly I would like to solicit your feedback on the above and hear
your ideas.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: 05 December 2006 11:30
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Cairngorm's Anaemic Domain Model

 

My question isn't about the model locator. It's about logic, or lack
thereof encapsulated within the domain objects.

 

 

On 05/12/2006, at 9:59 PM, Tim Hoff wrote:





It doesn't matter if it's a "collection of dumb value objects", a 
component, a state variable, or just a common effect. If an object 
is used more than a couple of times in the app, put it in the
ModelLocator.  Remember, everything is an object; instantiated and 
destroyed like the rest of them (GC?:)).  The key is; does the object 
need to be reusable?  If so, make it central.

-TH

p.s. right on Tom.

 

 



[flexcoders] Web Services in Cairngorm 2.1

2006-11-03 Thread Peter Martin










There have been a number of postings across the
various newsgroups regarding Web Services behaving differently in Cairngorm
2.1.

 

The problem is due to ServiceLocator no longer
extending UIComponent. As such, loadWSDL() is not called automatically.

 

To call a Web Service operation you will need to call
loadWSDL() yourself, for example:

 

webService.loadWSDL();

var call : AsyncToken = webService.GetQuote.send(
stockSymbol );

call.addResponder( responder );

 

In the next release of Cairngorm we will do this
automatically for you in the ServiceLocator.

 

 


 
  
  
   





Peter
Martin
Technical Architect (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ,
 UK
p: +44 (0) 131 338 6108
m: +44 (0) 7825 032160
[EMAIL PROTECTED]
http://weblogs.macromedia.com/pmartin



   
  
  
  
 


 




__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





[flexcoders] Re: DestinationLocator (Cairngorm 2)

2006-07-03 Thread Peter Martin
You are correct it should have a constructor and a getInstance()
method. At the time of writing it I only wrote it to work with
SecureDestinationLocator so there was no need - or that's my excuse
and I am sticking with it ;).

I will update the code on my blog so DestinationLocator can be used on
it's own.

--- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]>
wrote:
>
> After downloading this 2 files from Peter Martin's blog
(http://weblogs.macromedia.com/pmartin/archives/2006/06/cairngorm_2_sec.cfm)
> 
> I converted my service to DestinationLocator. I got a lot of
getInstance() not found.
> 
>  
> 
> Shouldn't the DestinationLocator provided in the zip file have a
constructor and a getInstance() like the serviceLocator?
> 
>  
> 
> Regards,
> 
>  
> 
> João Fernandes
> Dep. Informática - Área de Desenvolvimento
> Cofina media
> 
> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
> [EMAIL PROTECTED] 
>






 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/
 




RE: [flexcoders] Re: Resizing a Panel

2006-04-13 Thread Peter Martin










Thanks.

 

It sounds like my implementation is very similar
to yours. I sorted my problem by adding setCapture(); to my mouseDown handler
and releaseCapture(); to my MouseUp handler. I also put event.updateAfterEvent();
in my mouseMove event handler to be on the safe side.

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeremy lu
Sent: 13 April 2006 16:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Resizing a Panel



 


hi Peter, 

I'm using a combination of mouseDown, mouseMove
and MouseUp event and also taking care of the offset when mouse clicked on the
bottom right black grip. (there's a x/y delta between mouse down point and the
top/left point of black grip) 






On 4/13/06, Peter Martin <[EMAIL PROTECTED]> wrote:

I have tried
event.updateAfterEvent() but it made no difference.

I looked at the links below and the resizing is exactly what I want to
achieve - how did you deal with the sluggish cursor movement?

Thanks 
Peter.


--- In flexcoders@yahoogroups.com,
"jeremy lu" <[EMAIL PROTECTED]> wrote:
>
> handling resizing using mouse event is tricky, sluggish cursor 
movement is
> usally the main problem.
>
> I made something similar several weeks ago, check it here:
>
>
http://ria.richtechmedia.com/go.php?http://ria.richtechmedia.com/upload/resizePanel2/
>
>
> jeremy.
>
> On 4/13/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
> >
> >  Hi, 
> >
> > In the event handler write;
> >
> > event.updateAfterEvent()
> >
> > Peace, Mike
> >
> > On 4/12/06, Peter Martin <[EMAIL PROTECTED]> wrote: 
> >
> > >  I have created a Window component (in Flex 2 beta 2)
that
subclasses
> > > TitleWindow. It allows the user to resize the window by grabbing
the
> > > bottom corner. It works fine if you are making the window
smaller, 
> > > however if you are making it bigger Flex can't keep up with the
mouse,
> > > unless you go very, very slowly.
> > >
> > > What I have is an event listener that handles onMouseMove and 
sets the
> > > width and height to mouseX and mouseY.
> > >
> > > Thanks
> > > Peter.
> > >
> > >
> > >
> > >
> > > 
> > >  --
> > > 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<
http://groups.yahoo.com/group/flexcoders>"
> > >on the web.
> > >
> > >
> > >   To unsubscribe from this group, send an email to:
> > >
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > >
> > >   Your use of Yahoo! Groups is subject to the Yahoo!
Terms of 
Service<http://docs.yahoo.com/info/terms/>
> > > .
> > >  --
> > >
> >
> >
> > 
> > --
> > What goes up, does come down.
> >
> >
> >  --
> > 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<
http://groups.yahoo.com/group/flexcoders>"
> >on the web.
> >
> >
> >  To unsubscribe from this group, send an email to:
> >
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms
of 
Service<http://docs.yahoo.com/info/terms/>
> > .
> >  --
> >
>







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



  











RE: [flexcoders] How to clear date field

2006-04-13 Thread Peter Martin
DateField has a text property, which you can set to an empty string.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sandip_patil01
Sent: 13 April 2006 12:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to clear date field

Hi All,

Can anybody tell me how to clear date field.

I am using ,

 tag. 

>From this user can select whatever date he want to select.

Suppose if user want to leave text box empty after selecting 
date.i.e.blank text box.

How this can be achived ?


Thanks,
Sandip






--
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 
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: Resizing a Panel

2006-04-13 Thread Peter Martin
I have tried event.updateAfterEvent() but it made no difference.

I looked at the links below and the resizing is exactly what I want to
achieve - how did you deal with the sluggish cursor movement?

Thanks
Peter.


--- In flexcoders@yahoogroups.com, "jeremy lu" <[EMAIL PROTECTED]> wrote:
>
> handling resizing using mouse event is tricky, sluggish cursor
movement is
> usally the main problem.
> 
> I made something similar several weeks ago, check it here:
> 
>
http://ria.richtechmedia.com/go.php?http://ria.richtechmedia.com/upload/resizePanel2/
> 
> 
> jeremy.
> 
> On 4/13/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
> >
> >  Hi,
> >
> > In the event handler write;
> >
> > event.updateAfterEvent()
> >
> > Peace, Mike
> >
> > On 4/12/06, Peter Martin <[EMAIL PROTECTED]> wrote:
> >
> > >  I have created a Window component (in Flex 2 beta 2) that
subclasses
> > > TitleWindow. It allows the user to resize the window by grabbing the
> > > bottom corner. It works fine if you are making the window smaller,
> > > however if you are making it bigger Flex can't keep up with the
mouse,
> > > unless you go very, very slowly.
> > >
> > > What I have is an event listener that handles onMouseMove and
sets the
> > > width and height to mouseX and mouseY.
> > >
> > > Thanks
> > > Peter.
> > >
> > >
> > >
> > >
> > >
> > >  --
> > > 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<http://groups.yahoo.com/group/flexcoders>"
> > >on the web.
> > >
> > >
> > >   To unsubscribe from this group, send an email to:
> > >  
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > >
> > >   Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service<http://docs.yahoo.com/info/terms/>
> > > .
> > >  --
> > >
> >
> >
> >
> > --
> > What goes up, does come down.
> >
> >
> >  --
> > 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<http://groups.yahoo.com/group/flexcoders>"
> >on the web.
> >
> >
> >  To unsubscribe from this group, send an email to:
> > 
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service<http://docs.yahoo.com/info/terms/>
> > .
> >  --
> >
>







--
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] Resizing a Panel

2006-04-12 Thread Peter Martin
I have created a Window component (in Flex 2 beta 2) that subclasses
TitleWindow. It allows the user to resize the window by grabbing the
bottom corner. It works fine if you are making the window smaller,
however if you are making it bigger Flex can't keep up with the mouse,
unless you go very, very slowly.

What I have is an event listener that handles onMouseMove and sets the
width and height to mouseX and mouseY.

Thanks
Peter.





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