Re: [flexcoders] Re: php flex-2 standalone

2005-11-21 Thread Brian Lesser
Hi Renaun,
Have you got this working so that a DataGrid can display a query 
returned by CFMS in Flex 2 standalone? I tried doing this:

_recordResponder = new Responder(handleRecordResult, 
handleRecordStatus);

_nc = new NetConnection();
_nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
_nc.addEventListener(NetStatusEventType.NET_STATUS, 
onNetStatus);
_nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, 
onSecurityError);

_nc.connect(http://localhost/flashservices/gateway;);
   
_nc.call(blesser.mirror.getRecords, _recordResponder);

Followed later by:

function handleRecordResult(result){
 grid.dataProvider = result;
}

But of course I don't see the record set in the grid. It just has one 
column named serverInfo.

I came across this post:

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=y

which seems to indicate it likely won't work. Any light you can throw on 
getting back a record set would be most welcome.
Yours truly,
-Brian



Renaun Erickson wrote:

You can always connect using the NetConnection code as you do in Flash
and AS 2.0.  The Flex mxml tags are just nice wrappers that handle a
lot stuff for you.

I used the AS NetConnection class to connect a Flex 2 app to the
current AMF ColdFusion format just fine.  The newer RemoteObject
component in Flex uses the newer AMF3 format.  (There are 3 versions
now, check out the google link below on the AMF3).  

Semi-Related Links:
http://www.communitymx.com/content/article.cfm?cid=EE7CA
AMFPHP's webpage has some AS classes that can be used also.
http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=Search

Main thing to remember is with Flex2 there is a new AMF format
(version 3) so beware of compability problems in the future.  I assume
they are not going to get rid of the first two AMF formats but just be
ware that you do not try and mix gateway and connections up.

Renaun

--- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA [EMAIL PROTECTED]
wrote:
  

hi,
do anybody know any alternet way to use php and felx-2 standalone 
together?? 

i know that remote object can't work with standalone or need CF 
adepter plug-in and only work with flex- enterpriese edition

but still any idea to club php with flex-2 standalone edition??

regards,
jignesh










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



 


  



-- 
__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__






 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] Java Pojo to AS pojo with ant

2005-11-21 Thread Mykola Paliyenko



Hi Jim,
For my current project I've implemented ant codegeneration for 


  Generate actionscript pojos
 from java pojos
Generate client-side
 actionscript business delegate from that same interface (for cairngorm
 framework)

I
cannot share the code since it is project specific but I can share the
idea. The implementation itself is very easy if you are familiar with
Java.

I'm using XDoclet2 as a
generating tool. The templates are written in Velocity but they are
very simple. To determine which classes to generate I'm using
IValueObject empty interface. I do not use EJB I use Spring with
Hibernate and thus I generate delegates for my Java services that are
placed in a Spring context. I have a convention that all my
service interfaces called ISomeNameManager and I convert
them to the SomeNameDelegate with the same package. That is
all. 

If you know exactly what you need to generate it will take you a couple
of days to get introduced into XDoclet and create your tool. Good luck.

Regards,
Mykola



On 11/20/05, Jim Schneider [EMAIL PROTECTED] wrote:

















I'm looking to automatically generate actionscript
pojos from java pojos (ejb3 annotations) using Ant.
I saw the AS2vogenerator, but it was my understanding that was done in an IDE
and was dependent on hbm files. Maybe I misunderstand the capabilities. 



On a related note, has anyone been able to generate DDL
using the hibernate-tools ant task without having to list out all of the
annotated classes in the hibernate.cfg.xml file? Seems like there should be a
way to "pass in" the class files to the annotationconfiguration ant
element, but after searching for a couple hours, I didn't see that this
was supported. Ideally, this should read from a "par" file and not
really need the cfg.xml file (except for database dialect). 



While I'm asking for everything, does anyone else have
some useful code generation tools (using ant) that they can share?
Specifically, from an ejb3 annotated set of pojos, and a business service
interface (ejb3 stateless session interface), I would like to:




 Generate DDL for any given
 database dialect
 Generate actionscript pojos
 from java pojos
 Generate server-side java
 business delegate (remote object) from a business service interface
 (ejb3 stateless session interface)
 Generate client-side
 actionscript business delegate from that same interface (for cairngorm
 framework)




Again, I want to do this all from ant, not from an IDE.
Maybe these are just a set of velocity templates? Any examples of these (and
how to invoke in ant) would be great as I'd rather not have to learn the
velocity template language (yet!).



Thanks, 



Jim











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




  










-- Best Regards,Mykola






--
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] Re: iterate mx:Model data in CellRenderer

2005-11-21 Thread keishichi2001
wow, that's what i wanted...

Thx, Matt.


-- Keishichi


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 mx:Repeater id=rp_1
 dataProvider={mx.utils.ArrayUtil.toArray(dataObject.daysch)} /
 
  
 
 Matt
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of keishichi2001
 Sent: Thursday, November 17, 2005 11:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] iterate mx:Model data in CellRenderer
 
  
 
 i'm trying to display mx:Model data in CellRenderer(within TileList).
 The mx:Model has following format.
 
 mx:Model id=monthdata
   obj
 item
   date1/date
   day0/day
   daysch
 titleSales MTG/title
 titlePresentation/title
   /daysch
 /item
 item
   date2/date
   day1/day
   daysch
 titlesomething to do/title
   /daysch
 /item
   /obj
 /mx:Model
 
 daysch element may have multiple nested elements.
 Above data will be passed into dataProvider of TileList.
 
 mx:TileList columnCount=7 rowCount=6 borderStyle=none
 dataProvider={monthdata.obj.item} listItemRenderer=adayCellRenderer
 
 Then, the CellRenderer should be able to get item data by itself.
 
 1: mx:Link label={dataObject.date}/
 2: mx:VBox 
 3:   mx:Repeater id=rp_1 dataProvider={dataObject.daysch}
 4: mx:Link label={rp_1.currentItem.title}/
 5:   /mx:Repeater
 6: /mx:VBox
 
 I've confirmed that line1({dataObject.date}) has no problem, it works
 as i expected.
 However, line3-5 doesn't work.
 When I run this application, i got following error dialog.
 
 TypeError: Error #1034: Type Coersion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection
   at mx.binding::Binding/execute()
   at mx.binding::Binding/watcherFired()
   at mx.binding::Watcher/notifyListeners()
   at mx.binding::PropertyWatcher/handleEvent()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.core::Container/set dataObject()
   at mx.controls.listclasses::TileBase/calculateHeight()
   at mx.controls.listclasses::ListBase/measure()
   at mx.core::UIComponent/UIComponent$480$private::measureSizes()
   at mx.core::UIComponent/validateSize()
   at mx.managers::LayoutManager/validateSize()
   at
 mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantia
 tion()
   at
 mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()
   at
 mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()
 
 
 I hope someone correct me...
 
 
 Best Regards,
 Keishichi
 
 
 
 
 
 
 
 
 --
 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
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
 site+design+developmentw2=Computer+software+developmentw3=Software+des
 ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 b+site+design+developmentw2=Computer+software+developmentw3=Software+d
 esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw  
 
 Software design and development
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
 Web+site+design+developmentw2=Computer+software+developmentw3=Software
 +design+and+developmentw4=Macromedia+flexw5=Software+development+best+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  
 
 Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
 developmentw2=Computer+software+developmentw3=Software+design+and+deve
 lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw  
 
 Software development best practice
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practice;
 w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
 are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  
 
  
 
  
 
 
 
 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]
 mailto:[EMAIL PROTECTED] 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
  
 
 










 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM

[flexcoders] JavaScript in flex

2005-11-21 Thread manish
Hi All,
  Can Please somebody let me know that how can i use the
javascript functions in flex . Is there is any way that i can call
javascript functions from .as files. I will really appreciate if
someone   will help me in this regard.


Thanks
Manish Jain








 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] JavaScript in flex

2005-11-21 Thread Philippe Maegerman





http://weblogs.macromedia.com/flashjavascript/

Philippe 
Maegerman



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of manishSent: 
lundi 21 novembre 2005 8:04To: 
flexcoders@yahoogroups.comSubject: [flexcoders] _javascript_ in 
flex
Hi All, 
Can Please somebody let me know that how can i use the_javascript_ functions 
in flex . Is there is any way that i can call_javascript_ functions from .as 
files. I will really appreciate ifsomeone will help me in this 
regard.ThanksManish Jain





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



  






--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--


Re: [flexcoders] JavaScript in flex

2005-11-21 Thread ashu
Hi manish,

this is a code use can use to implement javascript in
flex:

?xml version=1.0 encoding=utf-8?
mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml;
load=abc()
mx:Script source=js1.js /
mx:TextInput id=a1 /
/mx:Application


// JavaScript Document
function abc(){
a1.setStyle('color','red');
}


thanks,
Ashish Grover







--- manish [EMAIL PROTECTED] wrote:

 Hi All,
   Can Please somebody let me know that how
 can i use the
 javascript functions in flex . Is there is any way
 that i can call
 javascript functions from .as files. I will really
 appreciate if
 someone   will help me in this regard.
 
 
 Thanks
 Manish Jain
 
 
 
 
 
 
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] Flex2 : databinding itemrenders

2005-11-21 Thread Michael Hansen



Thanks Manish.

I've abandoned the Hlist, and trying to build my own (much like the tile the flex store sample). 

I'm very much pressed for time now (did not foresee the problems with
databinding). If the new release hasn't come out when i finish this (a
week or so) I'll try to construct some samples that expose the problems.

I really appreciate your commitment. I hope com.macromedia.PayCheckManager is also looking at the list :D
cheers

 -michael


On 11/20/05, Manish Jethani [EMAIL PROTECTED] wrote:




On 11/20/05, Michael Hansen [EMAIL PROTECTED] wrote:

[snip]

 Isn't there a way to loop through the itemlist, and manually force a rebind
 of the dataObjects?

Okay, if you have the time, can you send me (directly to me, not to
the list) a standalone sample (a complete sample that compiles and
runs) that shows the problem? If you can't, it's okay, because I
think I know how to recreate your scenario.

Since you're hoping for this to be fixed in the next build, let me
make sure it works :)

Manish







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




  
















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



  









[flexcoders] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread Dave Wolf

For those of you coming from a Flash background and are wondering what
the heck an EJB with XDoclet annotations using a Velocity template to
generate a stub for a POJO are..


Say hello to your distant cousins the Java programmer.  I think you're
going to see lots more of them.  I also reccomend you make them your
friends.  Its going to be tough to pull off major Flex development
without a good Java geek or two in your pocket.

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY



--- In flexcoders@yahoogroups.com, Mykola Paliyenko [EMAIL PROTECTED]
wrote:

 Hi Jim,
 For my current project I've implemented ant codegeneration for
 
 
1. Generate actionscript pojos from java pojos
2. Generate client-side actionscript business delegate from that same
interface (for cairngorm framework)
 
 I cannot share the code since it is project specific but I can share the
 idea. The implementation itself is very easy if you are familiar
with Java.
 
 I'm using XDoclet2 http://xdoclet.codehaus.org/ as a generating
tool. The
 templates are written in Velocity but they are very simple. To determine
 which classes to generate I'm using IValueObject empty interface. I
do not
 use EJB I use Spring with Hibernate and thus I generate delegates for my
 Java services that are placed in a Spring context. I have a
convention that
 all my service interfaces called ISomeNameManager and I convert
them to
 the SomeNameDelegate with the same package. That is all.
 
 If you know exactly what you need to generate it will take you a
couple of
 days to get introduced into XDoclet and create your tool. Good luck.
 
 Regards,
 Mykola
 
 
 
 On 11/20/05, Jim Schneider [EMAIL PROTECTED] wrote:
 
   I'm looking to automatically generate actionscript pojos from
java pojos
  (ejb3 annotations) using Ant. I saw the AS2vogenerator, but it was my
  understanding that was done in an IDE and was dependent on hbm
files. Maybe
  I misunderstand the capabilities.
 
   On a related note, has anyone been able to generate DDL using the
  hibernate-tools ant task without having to list out all of the
annotated
  classes in the hibernate.cfg.xml file? Seems like there should be
a way to
  pass in the class files to the annotationconfiguration ant
element, but
  after searching for a couple hours, I didn't see that this was
supported.
  Ideally, this should read from a par file and not really need the
  cfg.xml file (except for database dialect).
 
   While I'm asking for everything, does anyone else have some
useful code
  generation tools (using ant) that they can share? Specifically,
from an ejb3
  annotated set of pojos, and a business service interface (ejb3
stateless
  session interface), I would like to:
 
 
 1. Generate DDL for any given database dialect
 2. Generate actionscript pojos from java pojos
 3. Generate server-side java business delegate (remote object) from
 a business service interface (ejb3 stateless session interface)
 4. Generate client-side actionscript business delegate from that
 same interface (for cairngorm framework)
 
   Again, I want to do this all from ant, not from an IDE. Maybe
these are
  just a set of velocity templates? Any examples of these (and how
to invoke
  in ant) would be great as I'd rather not have to learn the
velocity template
  language (yet!).
 
   Thanks,
 
   Jim
 
 
 
   --
  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
developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer
  software
developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software
  design and
developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
  Macromedia
 
flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 Software
  development best

Re: [flexcoders] Re: php flex-2 standalone

2005-11-21 Thread Jignesh Dodiya



did anybody try this one??

http://www.jessewarden.com/archives/2005/06/flash_flex_amfp.html

On 11/21/05, Brian Lesser [EMAIL PROTECTED] wrote:
Hi Renaun,Have you got this working so that a DataGrid can display a query returned by CFMS in Flex 2 standalone? I tried doing this:
 _recordResponder = new Responder(handleRecordResult, handleRecordStatus); _nc = new NetConnection(); _nc.objectEncoding = flash.net.ObjectEncoding.AMF0; _nc.addEventListener(
NetStatusEventType.NET_STATUS, onNetStatus); _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, onSecurityError); _nc.connect(
http://localhost/flashservices/gateway);  _nc.call(blesser.mirror.getRecords, _recordResponder);Followed later by: function handleRecordResult(result){
 grid.dataProvider = result; }But of course I don't see the record set in the grid. It just has one column named serverInfo.I came across this post:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=ywhich seems to indicate it likely won't work. Any light you can throw on getting back a record set would be most welcome.
Yours truly,-Brian 
Renaun Erickson wrote:You can always connect using the NetConnection code as you do in Flashand AS 2.0. The Flex mxml tags are just nice wrappers that handle a
lot stuff for you.I used the AS NetConnection class to connect a Flex 2 app to thecurrent AMF ColdFusion format just fine. The newer RemoteObjectcomponent in Flex uses the newer AMF3 format. (There are 3 versions
now, check out the google link below on the AMF3). Semi-Related Links:
http://www.communitymx.com/content/article.cfm?cid=EE7CAAMFPHP's webpage has some AS classes that can be used also.
http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=SearchMain thing to remember is with Flex2 there is a new AMF format
(version 3) so beware of compability problems in the future. I assumethey are not going to get rid of the first two AMF formats but just beware that you do not try and mix gateway and connections up.
Renaun--- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA 
[EMAIL PROTECTED]wrote: hi,do anybody know any alternet way to use php and felx-2 standalone together?? i know that remote object can't work with standalone or need CF 
adepter plug-in and only work with flex- enterpriese editionbut still any idea to club php with flex-2 standalone edition??regards,jignesh
 --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links  -- __
Brian LesserAssistant Director, Teaching and Technology SupportComputing and Communications ServicesRyerson University350 Victoria St.Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220Office: AB48D E-mail: [EMAIL PROTECTED]
(Enter through LB66) Web: http://www.ryerson.ca/~blesser__
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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. 



-- jignesh dodiya 






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



  









RES: [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never Completed

2005-11-21 Thread Michel Bertrand
Title: Mensagem





Yes, 
I'm sure about SWF.I'm going to try an workaround (if 
any).

Thanks !
Michel.



  
  -Mensagem original-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de 
  Matt ChotinEnviada em: sexta-feira, 18 de novembro de 2005 
  23:31Para: flexcoders@yahoogroups.comAssunto: RE: 
  [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never 
  Completed
  
  Ive heard of the 
  Loader having some problems in the alpha but are you sure that its really the 
  right path for the swf? Did you compile MyComponent.mxml already into a 
  SWF, remember you dont have a server to do the compilation for 
  you
  
  Matt
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Michel 
  BertrandSent: Thursday, 
  November 17, 2005 11:27 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2..0 - Loader 
  - Error #2036 : Load Never Completed
  
  Hello ! 
  
  I have tried to use 
  mx.controls.Loader to load a simple MXML component, like: 
  
  public class MyLoader extends 
  Canvas { 
  public var 
  source:String; 
  public function 
  ioError(error:Object) : Void { Alert.show("Loader 
  ioError"+ error.text); } 
  public function 
  securityError(error:Object) : Void { Alert.show("Loader 
  securityError"+ error.text); } 
  public override function 
  createChildren(): Void { this.width = 0; 
  this.height = 0; 
  this.visible = 
  false; 
  loader = new 
  Loader(); loader.addEventListener("complete", 
  this.loadComplete); loader.addEventListener("ioError", 
  this.ioError); loader.addEventListener("securityError", 
  this.securityError); addChild(loader); 
  loader.load(source); 
  
  super.createChildren(); 
  . } } 
  
  The property "source" contains 
  the path to my MXML that is located at the same directory of MyLoader, for 
  example, "source" content is 
  "MyComponent.mxml.swf". 
  So, I've ever had "Error #2036 : 
  Load Never Completed" when running this code. 
  I'm using Flash Player version 
  8,5,0,133. 
  Any idea ? 
  
  Thanks in advance ! 
  Michel 
  Bertrand | Desenvolvimento | DATASUL TecnologiaAcesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de 
  tecnologia 
  





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



  









[flexcoders] Re: Java ArrayList

2005-11-21 Thread Greg Morphis
anyone??


On 11/18/05, Greg Morphis [EMAIL PROTECTED] wrote:
  Hi, I'm working on a Flex project with a Java backend.
 I'm making a JSP page (or trying to) that will output a schedule in an
 HTML table.
 I cant seem to get it to work

 I import all of my classes, no problem there..

 I declare my variables, no problem there..
 It seems to be in the while loop..

 Here's my code:

 %@ page import=java.sql.Date %
 %@ page import=java.text.SimpleDateFormat %
 %@ page import=java.util.Iterator %
 %@ page import=java.util.ArrayList %

 %@ page import=com.alltel.rapid.aopscheduler.dao.* %
 %@ page import=com.alltel.rapid.aopscheduler.business.SchedulerDelegate %
 %@ page import=com.alltel.rapid.aopscheduler.vo.WeeklyRowObject %
 %@ page import=com.alltel.rapid.aopscheduler.vo.ActivityVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.DailyScheduleVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.ScheduleEntryVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.WeeklyScheduleSearchVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.WeeklyScheduleVO %

 ... HTML CODE ...

 %
 String l = request.getParameter(location);
 String date = request.getParameter(date);

 Date d = new Date(105, 10, 5);
 WeeklyScheduleDAO dao;
 dao = new WeeklyScheduleDAO();
 WeeklyScheduleSearchVO ws = new WeeklyScheduleSearchVO();
 SimpleDateFormat s = new SimpleDateFormat(MM/dd/);
 SimpleDateFormat hhmm = new SimpleDateFormat(hh:mm);

 ws.setLocation(4096);
 ws.setWeekEndDate(d);

 WeeklyScheduleVO W = dao.getWeeklySchedule( ws );

 ArrayList days = W.getScheduleDays();
 //String[] days = W.getScheduleDays();


 out.println(table border='1');
 out.println( tr);
 out.println(  thEmployee/th);
 out.println(  thTitle/th);
 out.println(  thSunday/th);
 out.println(  thMonday/th);
 out.println(  thTuesday/th);
 out.println(  thWednesday/th);
 out.println(  thThursday/th);
 out.println(  thFriday/th);
 out.println(  thSaturday/th);
 out.println( /tr);
 //out.println(/table);

 Iterator daysIT = days.iterator();
 int i = 1;
 while(daysIT.hasNext())
 {
  DailyScheduleVO day = (DailyScheduleVO)daysIT.next();
  //get the entries in day i+1
  ArrayList entries = day.getEntries();
  //iterate over the entries
  Iterator it = entries.iterator();


  int j = 1;
  while(it.hasNext())
  {
   //get an entry
   ScheduleEntryVO entry = (ScheduleEntryVO)it.next();

   //now get the activities in the entry
   ArrayList acts = entry.getActivities();
   //iterate over the list if it has length
   Iterator itt = acts.iterator();
   if(day.getDay() == 1)
   {
out.println( tr);
out.println(  td(+ i + , + j + )  +
 entry.name +/td);
out.println(  td+ entry.jobTitle +/td);
   }
   out.println(  td(+ i + , + j + )  +
 entry.timespan +/td);
   /*
   while(itt.hasNext())
   {
//get an activity
ActivityVO act = (ActivityVO)itt.next();
if(i == 1) {
}
   }
   */
  j++;
  out.println( /tr);
  }

  i++;


 }
 out.print(/table);


 %


 It doesnt work... it prints the 1st and 2nd and 3rd columns fine, but
 the rest it prints below, and it prints only a single column
 You can see an example here..
 http://home.alltel.net/omen/printws2.html

 I've tried what seems to be everything and no matter what I try I
 can't seem to get it to work!

 Any help you can offer would be appreciated.

 Thanks!


 --
 Auxilium meum a Domino



--
Auxilium meum a Domino


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Java Pojo to AS pojo with ant

2005-11-21 Thread Mykola Paliyenko
Yeah Dave,
totally agree XDoclet and EJB sucks. Now we do not use XDoclet for java 
any more, we have Java 5.0 annotations. But I've found XDoclet2 suitable 
for generating interface between Java and Flex. People in flex team are 
really hapy that they do not have to maintain their Delegates and 
ValueObjects any more, since they are maintained dynamically.
I'm a Java programer myself and I found that Flex is much more closer to 
Java developers familiar with web mvc frameworks than to the Flash 
developers. Also it is very funny to read about Flex EJB integration 
samples since EJB is deader than dead. It's strange but the only stuff 
I've found about Spring2Flex is SpringBeanAdapter library. It would be 
interesting to have a poll about what Java server techology people use 
for a backend. I will be very surprised if it will be EJB.

Regards, Mykola

Dave Wolf wrote:


 For those of you coming from a Flash background and are wondering what
 the heck an EJB with XDoclet annotations using a Velocity template to
 generate a stub for a POJO are..


 Say hello to your distant cousins the Java programmer.  I think you're
 going to see lots more of them.  I also reccomend you make them your
 friends.  Its going to be tough to pull off major Flex development
 without a good Java geek or two in your pocket.

 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com

 Email:  [EMAIL PROTECTED]
 Office: 866-CYNERGY



 --- In flexcoders@yahoogroups.com, Mykola Paliyenko [EMAIL PROTECTED]
 wrote:
 
  Hi Jim,
  For my current project I've implemented ant codegeneration for
 
 
 1. Generate actionscript pojos from java pojos
 2. Generate client-side actionscript business delegate from that same
 interface (for cairngorm framework)
 
  I cannot share the code since it is project specific but I can share the
  idea. The implementation itself is very easy if you are familiar
 with Java.
 
  I'm using XDoclet2 http://xdoclet.codehaus.org/ as a generating
 tool. The
  templates are written in Velocity but they are very simple. To determine
  which classes to generate I'm using IValueObject empty interface. I
 do not
  use EJB I use Spring with Hibernate and thus I generate delegates for my
  Java services that are placed in a Spring context. I have a
 convention that
  all my service interfaces called ISomeNameManager and I convert
 them to
  the SomeNameDelegate with the same package. That is all.
 
  If you know exactly what you need to generate it will take you a
 couple of
  days to get introduced into XDoclet and create your tool. Good luck.
 
  Regards,
  Mykola
 
 
 
  On 11/20/05, Jim Schneider [EMAIL PROTECTED] wrote:
  
I'm looking to automatically generate actionscript pojos from
 java pojos
   (ejb3 annotations) using Ant. I saw the AS2vogenerator, but it was my
   understanding that was done in an IDE and was dependent on hbm
 files. Maybe
   I misunderstand the capabilities.
  
On a related note, has anyone been able to generate DDL using the
   hibernate-tools ant task without having to list out all of the
 annotated
   classes in the hibernate.cfg.xml file? Seems like there should be
 a way to
   pass in the class files to the annotationconfiguration ant
 element, but
   after searching for a couple hours, I didn't see that this was
 supported.
   Ideally, this should read from a par file and not really need the
   cfg.xml file (except for database dialect).
  
While I'm asking for everything, does anyone else have some
 useful code
   generation tools (using ant) that they can share? Specifically,
 from an ejb3
   annotated set of pojos, and a business service interface (ejb3
 stateless
   session interface), I would like to:
  
  
  1. Generate DDL for any given database dialect
  2. Generate actionscript pojos from java pojos
  3. Generate server-side java business delegate (remote object) from
  a business service interface (ejb3 stateless session interface)
  4. Generate client-side actionscript business delegate from that
  same interface (for cairngorm framework)
  
Again, I want to do this all from ant, not from an IDE. Maybe
 these are
   just a set of velocity templates? Any examples of these (and how
 to invoke
   in ant) would be great as I'd rather not have to learn the
 velocity template
   language (yet!).
  
Thanks,
  
Jim
  
  
  
--
   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
 developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
  
 

[flexcoders] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread Dave Wolf

I have a history with EJB which is as long as is feasibly possible (I
was involved in the development of the actual EJB spec all the way
back at version 0.4!).  I am with you on the future of EJB.

Our applications tend to be the new wave architecture where we run
inside Tomcat using POJO's, standard persistence layers, etc.  That
said EJB3 tends to match that model a lot closer then ever.

I am also with you on the natural migration of the Java developer into
Flex and RIA's in general.  RIA and Flex in particular is something
the serious business developer has been waiting on for over 8 years
now.  That said, most Java devs have been so throttled by HTML and so
focused on the back-end development we have a lot to learn from the
Flash crowd in terms of user experience.

As I said, the sweet spot is having really good folks on both sides of
the fence, a good development approach on how to get those two groups
working together cohesively, and proven success.  Right now being able
to bring all of that together is pretty scare.  It also explains
seeing folks like us coming into this community.  



-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY



--- In flexcoders@yahoogroups.com, Mykola Paliyenko [EMAIL PROTECTED]
wrote:

 Yeah Dave,
 totally agree XDoclet and EJB sucks. Now we do not use XDoclet for java 
 any more, we have Java 5.0 annotations. But I've found XDoclet2
suitable 
 for generating interface between Java and Flex. People in flex team are 
 really hapy that they do not have to maintain their Delegates and 
 ValueObjects any more, since they are maintained dynamically.
 I'm a Java programer myself and I found that Flex is much more
closer to 
 Java developers familiar with web mvc frameworks than to the Flash 
 developers. Also it is very funny to read about Flex EJB integration 
 samples since EJB is deader than dead. It's strange but the only stuff 
 I've found about Spring2Flex is SpringBeanAdapter library. It would be 
 interesting to have a poll about what Java server techology people use 
 for a backend. I will be very surprised if it will be EJB.
 
 Regards, Mykola
 
 Dave Wolf wrote:
 
 
  For those of you coming from a Flash background and are wondering what
  the heck an EJB with XDoclet annotations using a Velocity template to
  generate a stub for a POJO are..
 
 
  Say hello to your distant cousins the Java programmer.  I think you're
  going to see lots more of them.  I also reccomend you make them your
  friends.  Its going to be tough to pull off major Flex development
  without a good Java geek or two in your pocket.
 
  -- 
  Dave Wolf
  Cynergy Systems, Inc.
  Macromedia Flex Alliance Partner
  http://www.cynergysystems.com
 
  Email:  [EMAIL PROTECTED]
  Office: 866-CYNERGY
 
 
 
  --- In flexcoders@yahoogroups.com, Mykola Paliyenko [EMAIL PROTECTED]
  wrote:
  
   Hi Jim,
   For my current project I've implemented ant codegeneration for
  
  
  1. Generate actionscript pojos from java pojos
  2. Generate client-side actionscript business delegate from
that same
  interface (for cairngorm framework)
  
   I cannot share the code since it is project specific but I can
share the
   idea. The implementation itself is very easy if you are familiar
  with Java.
  
   I'm using XDoclet2 http://xdoclet.codehaus.org/ as a generating
  tool. The
   templates are written in Velocity but they are very simple. To
determine
   which classes to generate I'm using IValueObject empty interface. I
  do not
   use EJB I use Spring with Hibernate and thus I generate
delegates for my
   Java services that are placed in a Spring context. I have a
  convention that
   all my service interfaces called ISomeNameManager and I convert
  them to
   the SomeNameDelegate with the same package. That is all.
  
   If you know exactly what you need to generate it will take you a
  couple of
   days to get introduced into XDoclet and create your tool. Good luck.
  
   Regards,
   Mykola
  
  
  
   On 11/20/05, Jim Schneider [EMAIL PROTECTED] wrote:
   
 I'm looking to automatically generate actionscript pojos from
  java pojos
(ejb3 annotations) using Ant. I saw the AS2vogenerator, but it
was my
understanding that was done in an IDE and was dependent on hbm
  files. Maybe
I misunderstand the capabilities.
   
 On a related note, has anyone been able to generate DDL using the
hibernate-tools ant task without having to list out all of the
  annotated
classes in the hibernate.cfg.xml file? Seems like there should be
  a way to
pass in the class files to the annotationconfiguration ant
  element, but
after searching for a couple hours, I didn't see that this was
  supported.
Ideally, this should read from a par file and not really
need the
cfg.xml file (except for database dialect).
   
 While I'm asking for everything, does anyone else have some
  

Re: [flexcoders] Flex2 : databinding itemrenders

2005-11-21 Thread Manish Jethani
On 11/21/05, Michael Hansen [EMAIL PROTECTED] wrote:

  I'm very much pressed for time now (did not foresee the problems with
 databinding). If the new release hasn't come out when i finish this (a week
 or so) I'll try to construct some samples that expose the problems.

Never mind, I think this is what you're talking about:

?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
  xmlns=*
  mx:DataGrid id=dataGrid
mx:Object name=foo value=1 /
mx:Object name=bar value=2 /
  /mx:DataGrid
  mx:Button click=dataGrid.dataProvider.getItemAt(0).name = 'yin' /
/mx:Application

When the button is clicked, the data grid continues to show the old
value (i.e. foo).

  I really appreciate your commitment. I hope com.macromedia.PayCheckManager
 is also looking at the list :D

Heh, no comments :)

Manish


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: php flex-2 standalone

2005-11-21 Thread Jignesh Dodiya



did anybody try this one??

http://www.jessewarden.com/archives/2005/06/flash_flex_amfp.html

On 11/21/05, Brian Lesser [EMAIL PROTECTED] wrote:
Hi Renaun,Have you got this working so that a DataGrid can display a query returned by CFMS in Flex 2 standalone? I tried doing this:
 _recordResponder = new Responder(handleRecordResult, handleRecordStatus); _nc = new NetConnection(); _nc.objectEncoding = flash.net.ObjectEncoding.AMF0; _nc.addEventListener(
NetStatusEventType.NET_STATUS, onNetStatus); _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, onSecurityError); _nc.connect(
http://localhost/flashservices/gateway);  _nc.call(blesser.mirror.getRecords, _recordResponder);Followed later by: function handleRecordResult(result){
 grid.dataProvider = result; }But of course I don't see the record set in the grid. It just has one column named serverInfo.I came across this post:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=ywhich seems to indicate it likely won't work. Any light you can throw on getting back a record set would be most welcome.
Yours truly,-Brian 
Renaun Erickson wrote:You can always connect using the NetConnection code as you do in Flashand AS 2.0. The Flex mxml tags are just nice wrappers that handle a
lot stuff for you.I used the AS NetConnection class to connect a Flex 2 app to thecurrent AMF ColdFusion format just fine. The newer RemoteObjectcomponent in Flex uses the newer AMF3 format. (There are 3 versions
now, check out the google link below on the AMF3). Semi-Related Links:
http://www.communitymx.com/content/article.cfm?cid=EE7CAAMFPHP's webpage has some AS classes that can be used also.
http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=SearchMain thing to remember is with Flex2 there is a new AMF format
(version 3) so beware of compability problems in the future. I assumethey are not going to get rid of the first two AMF formats but just beware that you do not try and mix gateway and connections up.
Renaun--- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA 
[EMAIL PROTECTED]wrote: hi,do anybody know any alternet way to use php and felx-2 standalone together?? i know that remote object can't work with standalone or need CF 
adepter plug-in and only work with flex- enterpriese editionbut still any idea to club php with flex-2 standalone edition??regards,jignesh
 --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links  -- __
Brian LesserAssistant Director, Teaching and Technology SupportComputing and Communications ServicesRyerson University350 Victoria St.Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220Office: AB48D E-mail: [EMAIL PROTECTED]
(Enter through LB66) Web: http://www.ryerson.ca/~blesser__
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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. 



-- jignesh dodiya 






--
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] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread frank_krul



I think we all have to realize that all of our declarations on this topic are relative to our own experiences. That being said, if you use simple procedural JSPs, and servlets to expose DB backends using JDBC, then you might say EJB is dead. On the other side of the coin, if you do large scale, enterprise wide development, EJB is a life saver. Take persistence frameworks as an example...what are the alternatives outside of proprietary, non-standard COTS products? By far the current most popular form of persistence frameworks is the EJB 2.0 standard.This allows Container Managed Persistence, in which the application server manages the persistence for the developers, allowing them to concentrate on coding business logic instead of implementation specifics. Prior to EJB 2.0, the specification mandated remote interfaces and had no way to express relationships between objects. Both of these problems harmed performance, but they were fixed in EJB 2.0.Today CMP ships with all J2EE EJB 2.0 compliant application servers, thus it has a huge advantage over the rest of the marketplace due to the ubiquitous nature of the platform.Truthfully, there are many analysts whom (after reviewing the initial CMP and EJB spec) developed their own forms of persistence frameworks, and 2.0 did little to persuade them that things had changed radically for them to migrate away from their ingrained technologies.Thankfully the World of IT developers realized the deficiencies of previous persistence models and/or the hard sell in introducing a proprietary in house persistence platform to (rightfully) wary IT management groups at conservative publicly traded firms. What is required is an official java standard for persistence, and that is exactly what JSR 220 a part of the Java community process for standardization is. The Java consortium feels that by getting the entire Java community behind one standard Java persistence API, they will simplify the now-confusing, expensive and risky development of J2EE and J2SE applications using data persistence. During the specification member voting in August of this year, all present firms (Apple, Apache, IBM, BEA, JBOSS, HP, SAP, Oracle et all) votedon thespecification with such epiphanic comments such as:?We believe JSR-220 will have great impact on the Java enterprise eco-system and will give productivity back to the developers.? ?JBOSS Inc.This new architecture provides a standard way to transparently persist plain Java objects. It is designed to work in multiple tiers of enterprise architecture, including J2SE, Web tier, and Application Servers, allowing it to be used for both the Web-based RFP and client-side java apps. This standard is an amalgamation of both CMP, which is for persisting distributed components built specifically to the entity bean component API, and JDO, which is geared towards local, rich object models not tied to any particular API. Developers can choose between these technologies by evaluating their requirements (persistent components or persistent objects).With both the freely available open-source persistence, and the maturing of the common, and now ubiquitous EJB model, it is highly suggested thatEJB isin for its' glory days. As this new SUN EJB 3.0 persistence framework is an extension of both EJB 2.0 CMP and the existing JDO API, the adoption of this new technology is an easy one for most Java developers working in common J2EE services architectures, for the initial exposure has already occurred.My opinion is that EJB is far from dead, one only has to look at the voting members for the JSRall the big players are there. With Java being one important player in granting our flex apps the data it exposes, these questions are only going to become more important for FLEX teams.Frank KrulSenior ConsultantKeane Canada[EMAIL PROTECTED] wrote: -To: flexcoders@yahoogroups.comFrom: "Dave Wolf" [EMAIL PROTECTED]Sent by: flexcoders@yahoogroups.comDate: 11/21/2005 11:04AMSubject: [flexcoders] Re: Java Pojo to AS pojo with antI have a history with EJB which is as long as is feasibly possible (Iwas involved in the development of the actual EJB spec all the wayback at version 0.4!). I am with you on the future of EJB.Our applications tend to be the "new wave" architecture where we runinside Tomcat using POJO's, standard persistence layers, etc. Thatsaid EJB3 tends to match that model a lot closer then ever.I am also with you on the natural migration of the Java developer intoFlex and RIA's in general. RIA and Flex in particular is somethingthe serious business developer has been waiting on for over 8 yearsnow. That said, most Java devs have been so throttled by HTML and sofocused on the back-end development we have a lot to learn from theFlash crowd in terms of user experience.As I said, the sweet spot is having really good folks on both sides ofthe fence, a good development approach on how to get those two groupsworking together cohesively, and proven success. Right now 

[flexcoders] Re: php flex-2 standalone

2005-11-21 Thread Renaun Erickson
Jesse's example uses the RemoteObject which works fine in Flex 1.5,
but in Flex2 the RemoteObject has defaulted to AMF3 and does not allow
the endpoint attribute, making you use Adapters (at least for the
standalone).  So to manually connect to a endpoint (gateway) that you
want you have to do it with the AS class NetConnection.

I'll try to provide some code when I get a chance.

--- In flexcoders@yahoogroups.com, Jignesh Dodiya [EMAIL PROTECTED] wrote:

 did anybody try this one??
  http://www.jessewarden.com/archives/2005/06/flash_flex_amfp.html
 
  On 11/21/05, Brian Lesser [EMAIL PROTECTED] wrote:
 
  Hi Renaun,
  Have you got this working so that a DataGrid can display a query
  returned by CFMS in Flex 2 standalone? I tried doing this:
 
  _recordResponder = new Responder(handleRecordResult,
  handleRecordStatus);
 
  _nc = new NetConnection();
  _nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
  _nc.addEventListener(NetStatusEventType.NET_STATUS,
  onNetStatus);
  _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR,
  onSecurityError);
 
  _nc.connect(http://localhost/flashservices/gateway;);
 
  _nc.call(blesser.mirror.getRecords, _recordResponder);
 
  Followed later by:
 
  function handleRecordResult(result){
  grid.dataProvider = result;
  }
 
  But of course I don't see the record set in the grid. It just has one
  column named serverInfo.
 
  I came across this post:
 
 
 
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=y
 
  which seems to indicate it likely won't work. Any light you can
throw on
  getting back a record set would be most welcome.
  Yours truly,
  -Brian
 
 
 
  Renaun Erickson wrote:
 
  You can always connect using the NetConnection code as you do in
Flash
  and AS 2.0. The Flex mxml tags are just nice wrappers that handle a
  lot stuff for you.
  
  I used the AS NetConnection class to connect a Flex 2 app to the
  current AMF ColdFusion format just fine. The newer RemoteObject
  component in Flex uses the newer AMF3 format. (There are 3 versions
  now, check out the google link below on the AMF3).
  
  Semi-Related Links:
  http://www.communitymx.com/content/article.cfm?cid=EE7CA
  AMFPHP's webpage has some AS classes that can be used also.
  
 
http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=Search
  
  Main thing to remember is with Flex2 there is a new AMF format
  (version 3) so beware of compability problems in the future. I assume
  they are not going to get rid of the first two AMF formats but
just be
  ware that you do not try and mix gateway and connections up.
  
  Renaun
  
  --- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA [EMAIL PROTECTED]
  wrote:
  
  
  hi,
  do anybody know any alternet way to use php and felx-2 standalone
  together??
  
  i know that remote object can't work with standalone or need CF
  adepter plug-in and only work with flex- enterpriese edition
  
  but still any idea to club php with flex-2 standalone edition??
  
  regards,
  jignesh
  
  
  
  
  
  
  
  
  
  
  --
  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
  
  
  
  
  
  
  
  
 
 
  --
  __
  Brian Lesser
  Assistant Director, Teaching and Technology Support
  Computing and Communications Services
  Ryerson University
  350 Victoria St.
  Toronto, Ontario Phone: (416) 979-5000 ext. 6835
  M5B 2K3 Fax: (416) 979-5220
  Office: AB48D E-mail: [EMAIL PROTECTED]
  (Enter through LB66) Web: http://www.ryerson.ca/~blesser
  __
 
 
 
 
 
 
  --
  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
flexcodershttp://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/.
 
 
   --
 
 
 
 
 --
 jignesh dodiya







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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 

RE: [flexcoders] JavaScript in flex

2005-11-21 Thread Mehdi, Agha










This is really good. I wonder if AS/JS
integration can happen in different browser windows. Can AS functions in one
browser window communicate with JS functions in the other?



Agha Mehdi 
IDT - eBusiness Program Manager 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
Sent: Monday, November 21, 2005
1:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
_javascript_ in flex







http://weblogs.macromedia.com/flashjavascript/









Philippe
Maegerman















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of manish
Sent: lundi 21 novembre 2005 8:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] _javascript_
in flex

Hi All,

Can Please somebody let me know that how can i use the
_javascript_ functions in flex . Is there is any way
that i can call
_javascript_ functions from .as files. I will really
appreciate if
someone will help me in this regard.


Thanks
Manish Jain














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



  








--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--



[flexcoders] flashgateway.GatewayException: Error occurred while attempting to convert an input arguments type.

2005-11-21 Thread Oscar . Cortes
I am sending back a AS VO to Java. Originally, I got the AS VO populated
from Java. I made some changes and now I want to send it back, but I am
getting this error message.

  flashgateway.GatewayException: Error occurred while attempting to
convert an input arguments type.

 What does it mean?  What should I be checking to fix the problem?

Thanks

---
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 ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Java Pojo to AS pojo with ant

2005-11-21 Thread Mykola Paliyenko



Frank 

Lets be honest. I'm a guy that used to the Open Source Frameworks
because the guys developing them are honest. They want only money for
support, while the monsters that vote for EJB want to sell their IDEs
and their application servers that supports that crappy heavy
technology. 

It is not honest to tell that 
By
far the current most popular form of persistence frameworks is the EJB
2.0 standard
look at the any recruiting site to see what technologies are most
wanted to be familiar by Java developers. EJB has about 15% and as far
as I know that 15% are support of the old projects. Actually now the
only thing that remains from J2EE is servlets and JMS for everything
else we have Spring, Hibernate and other frameworks. 

Look at the any Java community site, EJB is dead. EJB2.0 is the worst
technology I've ever known and even Sun now recognize it. And however
EJB 3.0 is pretty like Hibernate I'd better use Hibernate with Spring
than it. The same features but I can run it on Tomcat that is much
liter than any EJB3.0 compliant app server.

Spring Hibernate and AOP makes EJB dead!!! And great thanx to them. I
do not need XDoclet any more, I can run unittests without Cactus I can
deploy my application anywhere I do not need crappy EJB deployment
descriptors, and I'm happy with it. 

-- 
Best Regards,
Mykola
On 11/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:




I
think we all have to realize that all of our declarations on this topic
are relative to our own experiences. That being said, if you use
simple procedural JSPs, and servlets to expose DB backends using JDBC,
then you might say EJB is dead. On the other side of the coin, if
you do large scale, enterprise wide development, EJB is a life
saver. Take persistence frameworks as an example...what are the
alternatives outside of proprietary, non-standard COTS products? 
By
far the current most popular form of persistence frameworks is the EJB
2.0 standard.This allows Container Managed Persistence, in which
the application server manages the persistence for the developers,
allowing them to concentrate on coding business logic instead of
implementation specifics. Prior
to EJB 2.0, the specification mandated remote interfaces and had no way
to express relationships between objects. Both of these problems harmed
performance, but they were fixed in EJB 2.0.Today
CMP ships with all J2EE EJB 2.0 compliant application servers, thus it
has a huge advantage over the rest of the marketplace due to the
ubiquitous nature of the platform.
Truthfully,
there are many analysts whom (after reviewing the initial CMP and EJB
spec) developed their own forms of persistence frameworks, and 2.0 did
little to persuade them that things had changed radically for them to
migrate away from their ingrained technologies.
Thankfully
the World of IT developers realized the deficiencies of previous
persistence models and/or the hard sell in introducing a proprietary in
house persistence platform to (rightfully) wary IT management groups at
conservative publicly traded firms. What is required
is an official java standard for persistence, and that is exactly what
JSR 220 a part of the Java community process for standardization is. The
Java consortium feels that by getting the entire Java community behind
one standard Java persistence API, they will simplify the
now-confusing, expensive and risky development of J2EE and J2SE
applications using data persistence. During
the specification member voting in August of this year, all present
firms (Apple, Apache, IBM, BEA, JBOSS, HP, SAP, Oracle et all)
votedon thespecification with such epiphanic comments such
as:
?We believe JSR-220 will have great impact on the Java enterprise eco-system and will give productivity back to the developers.?
 ?JBOSS Inc.
This
new architecture provides a standard way to transparently persist plain
Java objects. It is designed to work in multiple tiers of enterprise
architecture, including J2SE, Web tier, and Application Servers,
allowing it to be used for both the Web-based RFP and client-side java
apps. 
This
standard is an amalgamation of both CMP, which is for persisting
distributed components built specifically to the entity bean component
API, and JDO, which is geared towards local, rich object models not
tied to any particular API. Developers can choose between these
technologies by evaluating their requirements (persistent components or
persistent objects).

With
both the freely available open-source persistence, and the maturing of
the common, and now ubiquitous EJB model, it is highly suggested
thatEJB isin for its' glory days. As
this new SUN EJB 3.0 persistence framework is an extension of both EJB
2.0 CMP and the existing JDO API, the adoption of this new technology
is an easy one for most Java developers working in common J2EE services
architectures, for the initial exposure has already occurred.

My
opinion is that EJB is far from dead, one only has to look at the
voting members for the 

RE: [flexcoders] e4x weirdness

2005-11-21 Thread Roger Gonzalez





This was an bug that hasrecently been fixed. It was 
specifically due to the mx:XML format="e4x" case, so if you can get your 
data in via other means (perhaps via AS code?) you might be able to work around 
it.

Drove me nuts, too. :-)

-RogerRoger 
Gonzalez[EMAIL PROTECTED] 


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Johannes 
  NelSent: Saturday, November 19, 2005 2:16 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] e4x 
  weirdness
  Hi Alli have a sample application where i embed a xml file 
  in my mxml, and then in a seperate class i use e4x to extract the text nodes 
  from this listi expect to get text back that says one, two, 
  three... but i get 
  backontwthrefoufivwhere the last 
  character has disapeared and the closing bracket seems to be 
  added.thanksji attach the xml incase encoding has 
  somethig to do with it.here is my index.mxml?xml 
  version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" 
  xmlns="*" initialize="init()" 
  mx:VBox mx:Script 
   ![CDATA[  
   import somePackage.controller.Application; 
 private var 
  __controller:net.lennel.isay.controller.Application;//have to type this 
  explicitly since the mx:Application tag is also a class named 
  application   
 private function 
  init():Void   
  {   
   __controller = new 
  somePackage.controller.Application();  
 __controller.menuData 
  = xmlModel;   
  }   
]] 
  /mx:Script   

  /mx:VBox mx:XML id="xmlModel" 
  source="xml/menu.xml" format="e4x"/ 
  /mx:Applicationand then the application 
  classpackage somePackage.controller { 
  import flash.events.EventDispatcher; 
   import flash.util.trace; import 
  flash.xml.XMLNode; import 
  mx.collections.ArrayCollection; 
   public class Application extends EventDispatcher 
  {  private var 
  __menu:ArrayCollection;  public 
  function Application()  
  {   
  super();  } 
 public function 
  set menuData(menu:XML):Void  
  {   var len:int = 
  menu.item.length();  
 
   for(var i:int = 0 ; i  len; i++) 
{ 
 
  trace(menu.item[i].title);  
  
   }  
  } }}-- j:pn 





--
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] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread JesterXL





EJB is about to die
Needs food badly!

- Original Message - 
From: Mykola 
Paliyenko 
To: flexcoders@yahoogroups.com 
Sent: Monday, November 21, 2005 12:02 PM
Subject: Re: [flexcoders] Re: Java Pojo to AS pojo with 
ant
Frank Lets be honest. I'm a guy that used to the Open 
Source Frameworks because the guys developing them are honest. They want only 
money for support, while the monsters that vote for EJB want to sell their IDEs 
and their application servers that supports that crappy heavy technology. 
It is not honest to tell that By far the current 
most popular form of persistence frameworks is the EJB 2.0 
standardlook at the any recruiting site to see what 
technologies are most wanted to be familiar by Java developers. EJB has about 
15% and as far as I know that 15% are support of the old projects. Actually now 
the only thing that remains from J2EE is servlets and JMS for everything else we 
have Spring, Hibernate and other frameworks. Look at the any Java 
community site, EJB is dead. EJB2.0 is the worst technology I've ever known and 
even Sun now recognize it. And however EJB 3.0 is pretty like Hibernate I'd 
better use Hibernate with Spring than it. The same features but I can run it on 
Tomcat that is much liter than any EJB3.0 compliant app server.Spring 
Hibernate and AOP makes EJB dead!!! And great thanx to them. I do not need 
XDoclet any more, I can run unittests without Cactus I can deploy my application 
anywhere I do not need crappy EJB deployment descriptors, and I'm happy with it. 
-- Best Regards,Mykola
On 11/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I 
  think we all have to realize that all of our declarations on this topic are 
  relative to our own experiences. That being said, if you use simple 
  procedural JSPs, and servlets to expose DB backends using JDBC, then you might 
  say EJB is dead. On the other side of the coin, if you do large scale, 
  enterprise wide development, EJB is a life saver. Take persistence 
  frameworks as an example...what are the alternatives outside of proprietary, 
  non-standard COTS products? 
  
  
  By far the 
  current most popular form of persistence frameworks is the EJB 2.0 
  standard.This allows Container Managed Persistence, in which the 
  application server manages the persistence for the developers, allowing them 
  to concentrate on coding business logic instead of implementation 
  specifics. Prior to EJB 2.0, the 
  specification mandated remote interfaces and had no way to express 
  relationships between objects. Both of these problems harmed performance, but 
  they were fixed in EJB 2.0.Today CMP ships with all 
  J2EE EJB 2.0 compliant application servers, thus it has a huge advantage over 
  the rest of the marketplace due to the ubiquitous nature of the 
  platform.
  
  Truthfully, there 
  are many analysts whom (after reviewing the initial CMP and EJB spec) 
  developed their own forms of persistence frameworks, and 2.0 did little to 
  persuade them that things had changed radically for them to migrate away from 
  their ingrained technologies.
  
  Thankfully the 
  World of IT developers realized the deficiencies of previous persistence 
  models and/or the hard sell in introducing a proprietary in house persistence 
  platform to (rightfully) wary IT management groups at conservative publicly 
  traded firms. What is required is an official java standard 
  for persistence, and that is exactly what JSR 220 a part of the Java community 
  process for standardization is. The Java consortium feels 
  that by getting the entire Java community behind one standard Java persistence 
  API, they will simplify the now-confusing, expensive and risky development of 
  J2EE and J2SE applications using data persistence. During the 
  specification member voting in August of this year, all present firms (Apple, 
  Apache, IBM, BEA, JBOSS, HP, SAP, Oracle et all) votedon 
  thespecification with such epiphanic comments such as:
  
  ?We believe JSR-220 will have great impact on the Java 
  enterprise eco-system and will give productivity back to the developers.? 
  ?JBOSS Inc.
  
  This new 
  architecture provides a standard way to transparently persist plain Java 
  objects. It is designed to work in multiple tiers of enterprise architecture, 
  including J2SE, Web tier, and Application Servers, allowing it to be used for 
  both the Web-based RFP and client-side java apps. 
  
   
  
  This standard is 
  an amalgamation of both CMP, which is for persisting distributed components 
  built specifically to the entity bean component API, and JDO, which is geared 
  towards local, rich object models not tied to any particular API. Developers 
  can choose between these technologies by evaluating their requirements 
  (persistent components or persistent objects).
  
  With both the 
  freely available open-source persistence, and the maturing of the common, and 
  now ubiquitous EJB model, it is highly 

[flexcoders] Tab Navigator Tab Icons - Changing during runtime

2005-11-21 Thread Niklas Richardson
Hi all,

I'm now trying to dynamically change the icons on tabs of a tab navigator.

I've tried the same tricks from the accordion icon changing, but to no avail.

Anyone else done this with any luck?

Thanks.

Niklas


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] Flex 2: Where's the color?

2005-11-21 Thread Greg Johnson
In Flex 1.5 panel header had the nice gradient haloGreen.  Now they are 
flat grey.  I have tried several different ways to change the color to 
a gradient, but to no avail?

Is there a place I can referance Flex 2 styling and what it can and 
cant do that Flex 1.5 could?

Thanks





 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: php flex-2 standalone

2005-11-21 Thread Renaun Erickson
Have you checked your NetConnectionDebugger?  Make sure the data is
coming over right then worry about the datagrid.

I connected and returned data with the code below, using AMFPHP, PHP5
and Flex2 standalone.

var gatewayUrl : String = http://localhost/amfphp/gateway.php;;
var gateway_conn : NetConnection = new NetConnection();
gateway_conn.connect( gatewayUrl );

When I get another change I'll look into ColdFusion again.

--- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote:

 Hi Renaun,
 Have you got this working so that a DataGrid can display a query 
 returned by CFMS in Flex 2 standalone? I tried doing this:
 
 _recordResponder = new Responder(handleRecordResult, 
 handleRecordStatus);
 
 _nc = new NetConnection();
 _nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
 _nc.addEventListener(NetStatusEventType.NET_STATUS, 
 onNetStatus);
 _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, 
 onSecurityError);
 
 _nc.connect(http://localhost/flashservices/gateway;);

 _nc.call(blesser.mirror.getRecords, _recordResponder);
 
 Followed later by:
 
 function handleRecordResult(result){
  grid.dataProvider = result;
 }
 
 But of course I don't see the record set in the grid. It just has one 
 column named serverInfo.
 
 I came across this post:
 

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=y
 
 which seems to indicate it likely won't work. Any light you can
throw on 
 getting back a record set would be most welcome.
 Yours truly,
 -Brian
 
 
 
 Renaun Erickson wrote:
 
 You can always connect using the NetConnection code as you do in Flash
 and AS 2.0.  The Flex mxml tags are just nice wrappers that handle a
 lot stuff for you.
 
 I used the AS NetConnection class to connect a Flex 2 app to the
 current AMF ColdFusion format just fine.  The newer RemoteObject
 component in Flex uses the newer AMF3 format.  (There are 3 versions
 now, check out the google link below on the AMF3).  
 
 Semi-Related Links:
 http://www.communitymx.com/content/article.cfm?cid=EE7CA
 AMFPHP's webpage has some AS classes that can be used also.

http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=Search
 
 Main thing to remember is with Flex2 there is a new AMF format
 (version 3) so beware of compability problems in the future.  I assume
 they are not going to get rid of the first two AMF formats but just be
 ware that you do not try and mix gateway and connections up.
 
 Renaun
 
 --- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA [EMAIL PROTECTED]
 wrote:
   
 
 hi,
 do anybody know any alternet way to use php and felx-2 standalone 
 together?? 
 
 i know that remote object can't work with standalone or need CF 
 adepter plug-in and only work with flex- enterpriese edition
 
 but still any idea to club php with flex-2 standalone edition??
 
 regards,
 jignesh
 
 
 
 
 
 
 
 
 
 
 --
 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
 
 
 
  
 
 
   
 
 
 
 -- 
 __
 Brian Lesser
 Assistant Director, Teaching and Technology Support
 Computing and Communications Services
 Ryerson University
 350 Victoria St.
 Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
 M5B 2K3Fax: (416) 979-5220
 Office: AB48D  E-mail: [EMAIL PROTECTED]
 (Enter through LB66)   Web: http://www.ryerson.ca/~blesser
 __








 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/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: Java Pojo to AS pojo with ant

2005-11-21 Thread Valy Sivec
I'm not an EJB advocate, but I'm glad to see that with
EJB3.0 specs the data persistence technology is more
mature and reliable than it was few years ago.
Hibernate  EJB3.0 added great deal of value to J2EE
comunity and I would think is wrong to disregard EJB
(s). I would suggest you guys to look at the Microsoft
ADO.NET packages and you'll appreciate EJB3.0 and
Hibernate even more...

In conclusion, EJB might not be suitable for your
project and in many ways EJB have been used improperly
but that doesn't mean it's not a great technology...

The great thing is that we have the option to
choose...and with open source projects even more... go
and fix the issue in the code if you have to... 

My appologies to the Flexcoders; this not being a Flex
related message.

Regards,
Valy Sivec










--- JesterXL [EMAIL PROTECTED] wrote:

 EJB is about to die
 Needs food badly!
 
 - Original Message - 
 From: Mykola Paliyenko 
 To: flexcoders@yahoogroups.com 
 Sent: Monday, November 21, 2005 12:02 PM
 Subject: Re: [flexcoders] Re: Java Pojo to AS pojo
 with ant
 
 
 Frank 
 
 Lets be honest. I'm a guy that used to the Open
 Source Frameworks because the guys developing them
 are honest. They want only money for support, while
 the monsters that vote for EJB want to sell their
 IDEs and their application servers that supports
 that crappy heavy technology. 
 
 It is not honest to tell that 
 By far the current most popular form of persistence
 frameworks is the EJB 2.0 standard
 look at the any recruiting site to see what
 technologies are most wanted to be familiar by Java
 developers. EJB has about 15% and as far as I know
 that 15% are support of the old projects. Actually
 now the only thing that remains from J2EE is
 servlets and JMS for everything else we have Spring,
 Hibernate and other frameworks. 
 
 Look at the any Java community site, EJB is dead.
 EJB2.0 is the worst technology I've ever known and
 even Sun now recognize it. And however EJB 3.0 is
 pretty like Hibernate I'd better use Hibernate with
 Spring than it. The same features but I can run it
 on Tomcat that is much liter than any EJB3.0
 compliant app server.
 
 Spring Hibernate and AOP makes EJB dead!!! And great
 thanx to them. I do not need XDoclet any more, I can
 run unittests without Cactus I can deploy my
 application anywhere I do not need crappy EJB
 deployment descriptors, and I'm happy with it. 
 
 -- 
 Best Regards,
 Mykola
 
 
 On 11/21/05, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
   I think we all have to realize that all of our
 declarations on this topic are relative to our own
 experiences.  That being said, if you use simple
 procedural JSPs, and servlets to expose DB backends
 using JDBC, then you might say EJB is dead.  On the
 other side of the coin, if you do large scale,
 enterprise wide development, EJB is a life saver. 
 Take persistence frameworks as an example...what are
 the alternatives outside of proprietary,
 non-standard COTS products?  
 
   By far the current most popular form of
 persistence frameworks is the EJB 2.0 standard. This
 allows Container Managed Persistence, in which the
 application server manages the persistence for the
 developers, allowing them to concentrate on coding
 business logic instead of implementation specifics. 
  Prior to EJB 2.0, the specification mandated remote
 interfaces and had no way to express relationships
 between objects. Both of these problems harmed
 performance, but they were fixed in EJB 2.0.  Today
 CMP ships with all J2EE EJB 2.0 compliant
 application servers, thus it has a huge advantage
 over the rest of the marketplace due to the
 ubiquitous nature of the platform.   
 
 
 
   Truthfully, there are many analysts whom (after
 reviewing the initial CMP and EJB spec) developed
 their own forms of persistence frameworks, and 2.0
 did little to persuade them that things had changed
 radically for them to migrate away from their
 ingrained technologies.
 
 
 
   Thankfully the World of IT developers realized the
 deficiencies of previous persistence models and/or
 the hard sell in introducing a proprietary in house
 persistence platform to (rightfully) wary IT
 management groups at conservative publicly traded
 firms.  What is required is an official java
 standard for persistence, and that is exactly what
 JSR 220 a part of the Java community process for
 standardization is.  The Java consortium feels that
 by getting the entire Java community behind one
 standard Java persistence API, they will simplify
 the now-confusing, expensive and risky development
 of J2EE and J2SE applications using data
 persistence. During the specification member voting
 in August of this year, all present firms (Apple,
 Apache, IBM, BEA, JBOSS, HP, SAP, Oracle et all)
 voted on the specification with such epiphanic
 comments such as:
 
 
 
   ?We believe JSR-220 will have great impact on the
 Java enterprise eco-system and will give
 productivity back to the developers.? ?JBOSS 

RES: [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never Completed

2005-11-21 Thread Michel Bertrand
Title: Mensagem





Hi ! 
What do you mean by "deferred 
instantiation" 
?

  
  -Mensagem original-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de 
  Roger GonzalezEnviada em: segunda-feira, 21 de novembro de 2005 
  15:31Para: flexcoders@yahoogroups.comAssunto: RE: 
  [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never 
  Completed
  There is 
  no .mxml.swf, that was a server thing from 1.x days.
  
  You have 
  to build thechild SWF first, then load it.
  
  Dynamically loading child SWFsis not really that simple, 
  unfortunately. It is inefficient to try to build an application by 
  loading other MXML applications, as they will be 10x larger than they really 
  need to be. Even in 1.x, the child SWF that you built was also an 
  application. There isn't any such thing as "dynamically loading a 
  component".
  
  Further, 
  the interop rules between the parent and child SWF are much more 
  complicated.
  
  Just to 
  make certain, dynamic loading is really what you want, right? You don't 
  simply want to create the component, perhaps using deferred 
  instantiation?
  
  -RogerRoger 
  Gonzalez[EMAIL PROTECTED] 
  
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Matt 
ChotinSent: Friday, November 18, 2005 5:31 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 2.0 - 
Loader - Error #2036 : Load Never Completed


Ive heard of the 
Loader having some problems in the alpha but are you sure that its really 
the right path for the swf? Did you compile MyComponent.mxml already 
into a SWF, remember you dont have a server to do the compilation for 
you

Matt





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Michel 
BertrandSent: Thursday, 
November 17, 2005 11:27 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2.0 - Loader 
- Error #2036 : Load Never Completed

Hello ! 

I have tried to use 
mx.controls.Loader to load a simple MXML component, like: 

public class MyLoader extends 
Canvas { 
public var 
source:String; 
public function 
ioError(error:Object) : Void { Alert.show("Loader 
ioError"+ error.text); } 
public function 
securityError(error:Object) : Void { Alert.show("Loader 
securityError"+ error.text); } 

public override function 
createChildren(): Void { this.width = 0; 
this.height = 0; 
this.visible = 
false; 
loader = new 
Loader(); loader.addEventListener("complete", 
this.loadComplete); loader.addEventListener("ioError", 
this.ioError); loader.addEventListener("securityError", 
this.securityError); addChild(loader); 
loader.load(source); 

super.createChildren(); 
. } } 

The property "source" contains 
the path to my MXML that is located at the same directory of MyLoader, for 
example, "source" content is 
"MyComponent.mxml.swf". 
So, I've ever had "Error #2036 
: Load Never Completed" when running this code. 

I'm using Flash Player version 
8,5,0,133. 
Any idea ? 

Thanks in advance 
! Michel 
Bertrand | Desenvolvimento | DATASUL TecnologiaAcesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de 
tecnologia 






--
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] JavaScript in flex

2005-11-21 Thread Matt Horn





Note that in Flex 2 (ActionScript 3), _javascript_-Flex 
and Flex-_javascript_ communicationis natively supported with the 
ExternalInterface API. This is documented in the Flex 2 Alpha docs 
here:

http://livedocs.macromedia.com/labs/1/flex/1051.html

hth,

matt horn
flex docs

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, 
  AghaSent: Monday, November 21, 2005 12:06 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] _javascript_ in 
  flex
  
  
  This is really good. 
  I wonder if AS/JS integration can happen in different browser windows. Can AS 
  functions in one browser window communicate with JS functions in the 
  other?
  
  Agha 
  Mehdi 
  IDT - eBusiness 
  Program Manager 
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe 
  MaegermanSent: Monday, 
  November 21, 2005 1:57 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] _javascript_ in 
  flex
  
  
  http://weblogs.macromedia.com/flashjavascript/
  
  
  Philippe 
  Maegerman
  
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of manishSent: lundi 21 novembre 2005 
  8:04To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] _javascript_ in 
  flex
  Hi All, Can 
  Please somebody let me know that how can i use the_javascript_ functions in flex . Is there is any way that i 
  can call_javascript_ functions from 
  .as files. I will really appreciate ifsomeone will help me in this 
  regard.ThanksManish 
  Jain
  --**STATEMENT 
  OF CONFIDENTIALITY** 
  This e-mail and any attached files are confidential 
  and intended solely for the use of the individual to whom it is addressed. If 
  you have received this email in error please send it back to the person that 
  sent it to you. Any views or opinions presented are solely those of author and 
  do not necessarily represent those the Emakina Company. Unauthorized 
  publication, use, dissemination, forwarding, printing or copying of this email 
  and its associated attachments is strictly prohibited.
  We also inform you that we have checked that this 
  message does not contain any virus but we decline any responsability in case 
  of any damage caused by an a non detected 
  virus.--





--
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] List box event

2005-11-21 Thread Manish Jethani
On 11/20/05, Manish Jethani [EMAIL PROTECTED] wrote:
 On 11/20/05, Jason Doyle [EMAIL PROTECTED] wrote:

  I am trying to fire off an event when the user mouses over an item in
  a list box. Both mouseOver and itemRollOver fire the events anytime
  the mouse enters the list box, even over whitespace. Any ideas how to
  get it to fire off only over list box items? And capture the index of
  that item? I really thought that is what itemRollOver did.

 It _is_ itemRollOver.  Works for me -- the event fires only when I
 roll over an item. :-/

wait... is this Flex 2?  I tried in Flex 2.  I don't have a working
Flex 1.5 on my machine at the moment, so can't help, sorry.


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Java Pojo to AS pojo with ant

2005-11-21 Thread Dave Wolf
As you said, these are all opinions which are always driven by our own
personal experiences.  I do want to give a bit of background on my
experiences, how they have effected my opinion, and why I as well as
so many at Cynergy Systems are enamored with Flex, and why we build
applications the way we do.

I have been developing Java since Duke danced across my Mosaic Browser
while working as a Faculty researcher at UMD (Go Terps!).  I was a
Principal Architect at Sybase for one of the first J2EE branded
application servers.  I was involved in the development not only of
J2EE applications, but the actual direction of the specification
itself since version 0.4 way back in 1998.  I am a three time speaker
at JavaOne on subjects like Advanced Transaction Processing in J2EE
(Google it, the presentation is still wandering the net) as well as
CORBA, clustering etc.  I also was a product manager at that little
startup in Redmond WA.  

I have plenty of experiences to draw on to build my opinion.  My
opinion is EJB was a good try, a valiant attempt, and in the end an
over-architected failure.  I often say someday when I am rich and
famous and write my memoirs I will apologize for ever driving EJB. 
EJB is too heavy, too over architected and designed for a software ISV
mentality that never fit the intended market of business applications
developers.  Fine, its scalable, powerful, robust, open API's,
standards based, blah blah.  The root issue is that mere mortals
cannot be productive in it.  Just writing HelloWorld could take you
hours in EJB.  

I know you point out CMP (Container Managed Persistence for your
flexers) as being an advantage of EJB.  Actually if I could point to a
single monstrous failure in EJB it was CMP.  Its architecturally
flawed.  The finder() design is a memory hog, the ejb query syntax is
bizarre and incredibly limiting, the whole assumption that the
database will not remain consistent if you allow any other application
outside CMP to access it is ridiculous (Google Distributed Diamonds),
etc.  Trust me, if CMP were so amazing why is it that EJB3's CMP model
is effectively just Hibernate?  And why do you have a quote from the
JBoss group?  Well maybe because Hibernate is *their* project.  EJB3's
implementation means they're invention is being pushed.  Heck, lets
look at JBoss for a moment.  They realized EJB apps were so hard to
build and maintain they built an entire company around providing
consulting for their *free* server.  That should shoot alarm bells up
right away.

All you have to do is go to a former EJB Mecca like TheServerSide (TSS
is kinda like the EJB version of FlexCoders) to see that those guys
have changed lock stock and barrel to servlet based solutions like
Spring, Hibernate, Tapestry, JSF etc.  That place used to be *the* EJB
discussion forum and those three letters are like rat poison there.

To us at Cynergy Systems software is about people and their user
experience.  Its about getting software in peoples hands quickly, for
a reasonable price and in as simple an environment as possible.  To me
EJB does none of that.  Mixing a Flex UI with a simple container, a
powerful persistence layer, state machine, etc is the right solution.
 I've been in the trenches with EJB, possibly more then pretty much
most people, and I can tell you, I'm hard pressed to bring a client
there again.  I want to provide my clients with an affordable,
scalable rich application they can maintain.  To me that is *not* EJB. 

Just my $0.02.  (Although I think its worth closer to a buck twenty
five or so but…)

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY









 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] Flex 2.0 - Loader - Error #2036 : Load Never Completed

2005-11-21 Thread Tracy Spratt
Title: Mensagem










Search the archives and docs for an answer
to that.  Use that exact phrase.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Monday, November 21, 2005
1:46 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Flex
2.0 - Loader - Error #2036 : Load Never Completed







Hi ! What do you mean by deferred instantiation ?





-Mensagem
original-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] Em nome de Roger Gonzalez
Enviada em: segunda-feira, 21 de
novembro de 2005 15:31
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] Flex 2.0
- Loader - Error #2036 : Load Never Completed



There is no .mxml.swf, that was a server thing from
1.x days.











You have to build thechild SWF first, then
load it.











Dynamically loading child SWFsis not really
that simple, unfortunately. It is inefficient to try to build an
application by loading other MXML applications, as they will be 10x larger than
they really need to be. Even in 1.x, the child SWF that you built was also
an application. There isn't any such thing as dynamically loading a
component.











Further, the interop rules between the parent and
child SWF are much more complicated.











Just to make certain, dynamic loading is really what
you want, right? You don't simply want to create the component, perhaps
using deferred instantiation?











-Roger

Roger Gonzalez
[EMAIL PROTECTED] 
























From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Friday, November 18, 2005
5:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2.0
- Loader - Error #2036 : Load Never Completed

Ive heard of the Loader having some
problems in the alpha but are you sure that its really the right path
for the swf? Did you compile MyComponent.mxml already into a SWF,
remember you dont have a server to do the compilation for you



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Thursday, November 17, 2005
11:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0 -
Loader - Error #2036 : Load Never Completed





Hello
! 

I
have tried to use mx.controls.Loader to load a simple MXML component, like:


public
class MyLoader extends Canvas { 

public
var source:String; 

public
function ioError(error:Object) : Void { 
Alert.show(Loader
ioError+ error.text); 
}


public
function securityError(error:Object) : Void { 
Alert.show(Loader
securityError+ error.text); 
} 

public
override function createChildren(): Void { 
this.width
= 0; 
this.height
= 0; 
this.visible
= false; 

loader
= new Loader(); 
loader.addEventListener(complete,
this.loadComplete); 
loader.addEventListener(ioError,
this.ioError); 
loader.addEventListener(securityError,
this.securityError); 
addChild(loader);

loader.load(source);


super.createChildren();

.

}

} 

The
property source contains the path to my MXML that is located at the
same directory of MyLoader, for example, 
source
content is MyComponent.mxml.swf. 

So,
I've ever had Error #2036 : Load Never Completed when running this
code. 

I'm
using Flash Player version 8,5,0,133. 

Any
idea ? 

Thanks
in advance ! 
Michel Bertrand | Desenvolvimento
| DATASUL Tecnologia
Acesse www.datasuldirect.com.br e
conheça mais sobre os produtos e soluções de tecnologia 













--
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] Flex 2: Where's the color?

2005-11-21 Thread Manish Jethani
On 11/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
 In Flex 1.5 panel header had the nice gradient haloGreen.  Now they are
 flat grey.  I have tried several different ways to change the color to
 a gradient, but to no avail?

I think headerColors is supposed to work, so that's a bug.  for now,
you can use your own skin for title bar's background by setting
titleBackgroundSkin to a class reference.

 Panel {
  titleBackgroundSkin: ClassReference(my.skin.TitleBackgroundSkin);
 }

or:

Panel {
 titleBackgroundSkin: Embed(source=graphics.swf,symbol=titleBackground);
}

Manish


 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/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: Java Pojo to AS pojo with ant

2005-11-21 Thread JesterXL
I knew someone would get it, hehe!

- Original Message - 
From: Blake Kadatz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, November 21, 2005 2:02 PM
Subject: RE: [flexcoders] Re: Java Pojo to AS pojo with ant


 EJB is about to die 
 Needs food badly! 

Ah... someone else who spent way too many a quarter in his youth
ensuring his life force didn't run out.  :)



 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Alert display late in tagged AS code

2005-11-21 Thread Tracy Spratt

You cannot do this:
   loginSrv.send();
   loginOK = loginSrv.result.results.ans;

Data service calls are asynchronous.
http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default
fields=defaultValues=#Question371

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of endofadam228
Sent: Sunday, November 20, 2005 4:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Alert display late in tagged AS code

Hi all Flex developer

I really need your help!

Please, thank you very much!

--- In flexcoders@yahoogroups.com, endofadam228
[EMAIL PROTECTED] wrote:

 Alert display late in tagged AS code
 
 I wanna create a app with login page, I am testing the alert function
 with login unsuccessful.
 
 After loaded the first page, I don't know why the alert will show when
 I click the button second time. I have test by Network Monitor, I can
 get the xml content in my first click, but I don't know why the value
 save into AS code after I click one more!
 
 true.html
 
 resultsansfalse/ans/results
 
 index.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 horizontalAlign=center verticalAlign=middle
 mx:HTTPService id=loginSrv url=http://127.0.0.1/true.html;
 /mx:HTTPService
 mx:Script
 ![CDATA[
   function checkLogin(){
   var loginOK = true;
   loginSrv.send();
   loginOK = loginSrv.result.results.ans;
   if (loginOK == false){
   alert('Your login ID or password is not
correct!', 'Warning');
   }
   }
 ]]
 /mx:Script
   mx:Panel title=Login Page autoLayout=true
creationPolicy=queued
 mx:Label text=Login ID: id=lblid/
 mx:TextInput id=txtid /
 mx:Label text=Password: id=lblpw/
 mx:TextInput id=txtpw password=true /
 mx:ControlBar horizontalAlign=right id=cbar
   mx:Button label=Login id=btnlogin click=checkLogin();/  
   mx:Button label=Cancel id=btncancel /
 /mx:ControlBar
   /mx:Panel
 /mx:Application









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



 







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] flex2: styles sheets and accessing elements

2005-11-21 Thread Manish Jethani
On 11/22/05, Johannes Nel [EMAIL PROTECTED] wrote:

  in flex 1.5 when i compile in a sylesheet using the following that
[snip]

  SomeName{
  top-margin:5;
  botton-margin:6;
  }

  then if i have some mxml component somewher in my app named SomeName

as of today, to get type selectors working for your own components,
you have to set the component's className property to the type name
you want to use.  In an AS component, you can do this in the
constructor.  In an MXML component, you can assign it on the root tag:

  SomeName className=SomeName ... 
...
  /SomeName

we're hoping this requirement will go away before the release.

Manish


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] Flex Enterprise Servces inf posted to labs

2005-11-21 Thread Clint Modien



http://labs.macromedia.com/wiki/index.php?title=Flex_Enterprise_Services:overview






--
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] Re: Returning Object Instances from ColdFusion

2005-11-21 Thread Peter Farland
Benoit, both of those approaches are Flex 2.0 only.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit 
Hediard
Sent: Sunday, November 20, 2005 6:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Returning Object Instances from ColdFusion

I think that you should use the Flex Metada RemoteClass in your AS class:
[RemoteClass(alias=CFIDE.samples.usermanager.components.User)]
public class User
{
...
}

But apparently, it is not yet supported in current alpha release...

So for the moment, you have to use registerClassAlias :
public function User()
{
registerClassAlias(CFIDE.samples.usermanager.components.user,
User);  
}

Be carefull, you might get coersion failed error, due to some lazy class 
initialization.
So, as a workaround, you need to define a static var to instantiate the class 
in your remoting responser.
private static var DEP_LINK:User = new User();

For more information on this problem:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584;
threadid=1069666

Benoit Hediard


-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Renaun 
Erickson Envoyé : dimanche 20 novembre 2005 07:34 À : 
flexcoders@yahoogroups.com Objet : [flexcoders] Re: Returning Object Instances 
from ColdFusion

I have not tried the code, but from what I read it seems that all you would 
need to do is put the line of code below in the begining of your app.  Like in 
the initialize event of the main mxml file.

mx.utils.ClassUtil.FLEX_CLASS_FIELD = _REMOTECLASS;

Renaun

--- In flexcoders@yahoogroups.com, Simeon Bateman [EMAIL PROTECTED]
wrote:

 Thanks for your response. I guess my real question is where am I 
 supposed to set hte FLEX_CLASS_FIELD at?  Just in my VO in as?  Its 
 just not clear to me.
 
 Thanks.
 simeon
 
 --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED]
wrote:
 
  mx.utils.ClassUtil.FLEX_CLASS_FIELD is a static field.  And the 
  value is _remoteClass the article is pointing out that you need to 
  set it to _REMOTECLASS because of how coldfusion sends back 
  properties (in all uppercase).  So like the article notes your AS 
  Objects will have to have all UPPER class attribute names.
  
  Renaun
  
  --- In flexcoders@yahoogroups.com, Simeon Bateman 
  [EMAIL PROTECTED]
  wrote:
  
   Hey i am working on returning custom objects from coldfusion to my 
   flex application.  I found a good example of this here
   
  
 

http://www.richinternet.de/blog/index.cfm?mode=entryentry=74BA931D-C3DA-FDE
0-C7959146205942DA
   
   However in the notes at the bottom it says:
   
   Edit: if you want to return CFC instances rather than structs then 
   you'll have to change the static property FLEX_CLASS_FIELD of the 
   mx.utils.ClassUtil class to _REMOTECLASS.
   
   But I cant figure out where/how to make this change?  I have 
   googled and searched the docs, and I cant find any examples of 
   using this
 class.
   
   Thanks for any guidance i can get here.
   
   simeon
  
 







 Yahoo! Groups Sponsor ~-- Fair 
play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/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



 









 Yahoo! Groups Sponsor ~-- Get 
fast access to your favorite Yahoo! Groups. Make Yahoo! your home page 
http://us.click.yahoo.com/dpRU5A/wUILAA/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



 




 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/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] sessions and maintenance questions

2005-11-21 Thread Jaime Bermudez



I added the session-config tag to my web.xml only to get the following warning in my weblogic console:

Deployment descriptor web.xml is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type web-app must match icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*, etc.


The problem seems to be that the session-config tag is missing from the list of acceptable tags, but I'm not sure why since I came across the session-config tag on BEA's site. I'm running BEA-Weblogic with JRockit 
1.4.2_04 JVM.

- Jaime

On 11/16/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote:

Hi Jamie,

Once you set the web session time to a particular value, like so (in the 
web.xml):

session-config

 session-timeout60/
session-timeout
/session-config


Then what happens is, after 60 minutes of inactivity, the next remote call will fail because the user is not longer authenticated at the server level. And yes, the remote call will fail with one of the two faultcodes mentioned below. So I essential kick the user back to the login page. 


If you don't set your RemoteObjects to use-custom-authentication, then none of this matters. Then will keep working forever... not safe in a production environment at all.


Hope that helps!

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Jaime BermudezSent: Wednesday, November 16, 2005 11:01 AMTo: 
[EMAIL PROTECTED]Cc: Dimitrios GianninasSubject: Re: [flexcoders] sessions and maintenance questions


Dimitrios,

Sounds like your solution may solve a similar issue for a project I'm working on. Can you explainhow thecustom authentication relates to a timeout? Is it the only way to get one of the two fault codes you're checking for? Also, I checked 
web.xml and I don't see any timeout setting.

Thanks,

Jaime
On 11/14/05, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote: 

Hi Robert,

To answer the first part, with our Flex applications we no longer store any data in the server session. We load any required data by the UI at start-upand cache it in a global model (ModelLocator if you are using Cairngorm). As for the session 
timeout, we config out RemoteObject to use custom authentication, as follows:

use-custom-authenticationtrueuse-custom-authentication 


Then we config the session timeout in the web.xml to say 60 minutes. So if some user sayleaves for a lng lunch and returns after 2 hours, the next remote called made will be rejected. We catch this in the 
Services.mxml and return the user to the login view. Sample:

/**
* Handles failed authentication faults and re-routes regular application faults.
*/
function handleRemoteFault( event ):Void {
 if( event.fault.faultcode
 == Client.Authentication || event.fault.faultcode == 401 ) {
 EventBroadcaster.getInstance().broadcastEvent( EventList.LOGOFF );
 }
 else {
 event.call.faultHandler( event );
 }
}
/mx:Script

!-- SystemServices remote reference --
mx:RemoteObject id=systemServices named=systemService concurrency=single
 
result=event.call.resultHandler(event.result) 

fault=handleRemoteFault( event )
 
showBusyCursor=true / 


This handles the server restart scenario as well.

As for the second portion, I don't believe there is anyway to tell the user that hey, we are doing a maintenance right now. Since the server is not available, the remote call will simply hang. 


Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Monday, November 14, 2005 9:47 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] sessions and maintenance questions




I have a question for you guys about how you're currently designing your Flex applications.


Since a Flex application is not session-based in the sense of an application server session, how are you guys handling, say, you want a user to have to log back in if they remain inactive after 5 hours in the case of using remote objects? You're not making actual HTTP requests in that case…are you still storing variables in the application server session upon start of a client's session and checking the status of those variables every time a remote method call is made? Do you have some sort of filter that filters every remote method call to check every time? What about if the application server needs to be restarted in the middle of the day…granted the client doesn't have any knowledge of this, do you just allow them to keep going without having to log back in or do you force them to log back in and if this is the case, how does the client application become away of such a change and the need for the user to have to log back in? 

[flexcoders] Re: Flex 2: Where's the color?

2005-11-21 Thread Greg Johnson
Ya, kinda had a feeling it was just a bug.  So went ahead and covered 
myself by telling boss we are just out of luck till the next release 
where this is fixed.  I might try the skin, just hate using a graphic 
where text should do the trick.

Tnks


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:

 On 11/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
  In Flex 1.5 panel header had the nice gradient haloGreen.  Now 
they are
  flat grey.  I have tried several different ways to change the 
color to
  a gradient, but to no avail?
 
 I think headerColors is supposed to work, so that's a bug.  for 
now,
 you can use your own skin for title bar's background by setting
 titleBackgroundSkin to a class reference.
 
  Panel {
   titleBackgroundSkin: ClassReference
(my.skin.TitleBackgroundSkin);
  }
 
 or:
 
 Panel {
  titleBackgroundSkin: Embed
(source=graphics.swf,symbol=titleBackground);
 }
 
 Manish







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] combo box in a data grid

2005-11-21 Thread rgwilson26



I would like to know how to put a combo box in on cloumn of a datagrid. I would like the combobox to allow the user to pick from two values on the last column of the datagrid when each row is populated.Somthing like this. (but this does not work)mxataGrid id="intitalFlowchartDataGrid"mx:columns mx:Array mxataGridColumn headerText="Path #" columnName="Path" width="50" / mxataGridColumn headerText="Seq #" columnName="Seq" width="50"/ mxataGridColumn headerText="Description" columnName="Description" width="400" editable="true" / mxataGridColumn headerText="BoxType" columnName="BoxType" mx:ComboBox textAlign="left" id="cmbBoxType"  mx:dataProvider  mx:Array mx:String/mx:String mx:StringBox/mx:String  mx:StringNotes/mx:String  /mx:Array /mx:dataProvider /mx:ComboBox /mxataGridColumn /mx:Array/mx:columns/mxataGrid






--
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] Flex 2:Bind a variable to selectedIndex?

2005-11-21 Thread Greg Johnson
Basicaly I have an accordian view.  The first pannel is a dataGrid, the 
secound pannel is a viewstack.  What I want is for when I go from the 
dataGrid to teh viewstack, that the viewstack switch to the first 
view.  However all I seem to be able to do is ether get an error 
because the viewstack doesn't exist, or every time I click to switch 
the viewstack it throws me right back to the first view.  The viewstack 
will show the details for an item someone selects on the datagrid.

I thought if I could bind a variable to selectedIndex then I could just 
change that, and when the viewstack showed it would use that value and 
switch.

Any ideas?





 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/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] sessions and maintenance questions

2005-11-21 Thread Jaime Bermudez



Ok, so I misread the line. The session-config tag is there, butI'm not sure why I'm getting the warning. Could it have something todo w/ the ? that appears after the tag in the below list?

On 11/21/05, Jaime Bermudez [EMAIL PROTECTED] wrote:

I added the session-config tag to my web.xml only to get the following warning in my weblogic console:

Deployment descriptor web.xml is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type web-app must match icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*, etc. 


The problem seems to be that the session-config tag is missing from the list of acceptable tags, but I'm not sure why since I came across the session-config tag on BEA's site. I'm running BEA-Weblogic with JRockit 
1.4.2_04 JVM.

- Jaime


On 11/16/05, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote: 

Hi Jamie,

Once you set the web session time to a particular value, like so (in the web.
xml):

session-config
 
 session-timeout60/ 
session-timeout
/session-config
 

Then what happens is, after 60 minutes of inactivity, the next remote call will fail because the user is not longer authenticated at the server level. And yes, the remote call will fail with one of the two faultcodes mentioned below. So I essential kick the user back to the login page. 


If you don't set your RemoteObjects to use-custom-authentication, then none of this matters. Then will keep working forever... not safe in a production environment at all. 


Hope that helps!

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Jaime BermudezSent: Wednesday, November 16, 2005 11:01 AMTo: 
[EMAIL PROTECTED]Cc: Dimitrios GianninasSubject: Re: [flexcoders] sessions and maintenance questions


Dimitrios,

Sounds like your solution may solve a similar issue for a project I'm working on. Can you explainhow thecustom authentication relates to a timeout? Is it the only way to get one of the two fault codes you're checking for? Also, I checked 
web.xml and I don't see any timeout setting.

Thanks,

Jaime
On 11/14/05, Dimitrios Gianninas 
 [EMAIL PROTECTED] wrote: 

Hi Robert,

To answer the first part, with our Flex applications we no longer store any data in the server session. We load any required data by the UI at start-upand cache it in a global model (ModelLocator if you are using Cairngorm). As for the session 
timeout, we config out RemoteObject to use custom authentication, as follows:

use-custom-authenticationtrueuse-custom-authentication 


Then we config the session timeout in the web.xml to say 60 minutes. So if some user sayleaves for a lng lunch and returns after 2 hours, the next remote called made will be rejected. We catch this in the 
Services.mxml and return the user to the login view. Sample:

/**
* Handles failed authentication faults and re-routes regular application faults.
*/
function handleRemoteFault( event ):Void {
 if( event.fault.faultcode
 == Client.Authentication || event.fault.faultcode == 401 ) {
 EventBroadcaster.getInstance().broadcastEvent( EventList.LOGOFF );
 }
 else {
 event.call.faultHandler( event );
 }
}
/mx:Script

!-- SystemServices remote reference --
mx:RemoteObject id=systemServices named=systemService concurrency=single
 
result=event.call.resultHandler(event.result) 

fault=handleRemoteFault( event )
 
showBusyCursor=true / 


This handles the server restart scenario as well.

As for the second portion, I don't believe there is anyway to tell the user that hey, we are doing a maintenance right now. Since the server is not available, the remote call will simply hang. 


Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Monday, November 14, 2005 9:47 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] sessions and maintenance questions




I have a question for you guys about how you're currently designing your Flex applications.


Since a Flex application is not session-based in the sense of an application server session, how are you guys handling, say, you want a user to have to log back in if they remain inactive after 5 hours in the case of using remote objects? You're not making actual HTTP requests in that case…are you still storing variables in the application server session upon start of a client's session and checking the status of those variables every time a remote method call is made? Do you have some sort of filter that filters every remote method call to check every time? What about if the application server needs to be restarted in the middle of the day…granted the client doesn't have any 

Re: [flexcoders] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread Anatole Tartakovsky





If I may, I would take it even to lower level. In 
my personal experience often "the less is more". Less framework / managers is 
more flexibilityand performance -as long asanarchy is not in the 
picture. 

There are very few reasons (other the lookup 
information) for "persistance" in persistence solution as client is very much 
stateful unlike HTML pages. Amount of direct manipultion of the data on server 
level is greatly diminished. As complexity/amount of code on middleware level 
decreases there is a huge advantage of making "thin server" solution. 
Essentially the server becomes data access "driver"/ validation/transaction 
facility. 

I would say that XDoclet approach / annotations 
seemed to work very well by allowing us to comfort Java users with flexibility 
in code generator. It also allow for nice way to command which parts of 
pojo code would be available to Flex.

In the end, you want to receive state information 
from the client, that would drive all validation and transaction. You need just 
to be able to generate DAO for retrieve / update directly from SQL that would be 
compatible with those dataProviders. They become your basic stateful 
dataProviders directly accessible from the client or as a part of a transaction. 
In order to do transactions you need just another adapter/service point 
that invokes validator and then in turnDAO objectsusing ThreadLocal 
transaction.

I do not think there is much of a choice here 
without huge duplication of persistence framework for transactional services to 
support even 3 updates transactionally- especially if you are using 
RemoteObject. Please see http://weblogs.macromedia.com/pent/archives/2005/02/operating_in_pa.cfmas 
an example of the issues to submit transactions in small chunks ( please note 
that due to "denial of service" restriction IE allows no more then 2 active 
HTTPRequests, so WebServices or anything short of "remote scripting" gateway 
would fail as well). 
And resources, concurrency and management of 
server-based performance makes it applicable for a fraction of the 
applications I was involved in.

I am sure someone will come with great idea of 
using Struts/Hibernate to manage data requests - and it might even become 
popular choice. I just do not think that one-size-fits-all solution really 
exists. As a personal opinion I never seen anything "one-size-fits-all" that 
actually fits. 

Thank you,
Anatole Tartakovsky
[EMAIL PROTECTED]

  - Original Message - 
  From: 
  Dave Wolf 
  
  To: flexcoders@yahoogroups.com 
  Sent: Monday, November 21, 2005 1:50 
  PM
  Subject: [flexcoders] Re: Java Pojo to AS 
  pojo with ant
  As you said, these are all opinions which are 
  always driven by our ownpersonal experiences. I do want to give a 
  bit of background on myexperiences, how they have effected my opinion, and 
  why I as well asso many at Cynergy Systems are enamored with Flex, and why 
  we buildapplications the way we do.I have been developing Java 
  since Duke danced across my Mosaic Browserwhile working as a Faculty 
  researcher at UMD (Go Terps!). I was aPrincipal Architect at Sybase 
  for one of the first J2EE brandedapplication servers. I was involved 
  in the development not only ofJ2EE applications, but the actual direction 
  of the specificationitself since version 0.4 way back in 1998. I am 
  a three time speakerat JavaOne on subjects like "Advanced Transaction 
  Processing in J2EE"(Google it, the presentation is still wandering the 
  net) as well asCORBA, clustering etc. I also was a product manager 
  at that littlestartup in Redmond WA. I have plenty of 
  experiences to draw on to build my opinion. Myopinion is EJB was a 
  good try, a valiant attempt, and in the end anover-architected 
  failure. I often say someday when I am rich andfamous and write my 
  memoirs I will apologize for ever driving EJB. EJB is too heavy, too over 
  architected and designed for a software ISVmentality that never fit the 
  intended market of business applicationsdevelopers. Fine, its 
  scalable, powerful, robust, open API's,standards based, blah blah. 
  The root issue is that mere mortalscannot be productive in it. Just 
  writing HelloWorld could take youhours in EJB. I know you 
  point out CMP (Container Managed Persistence for yourflexers) as being an 
  advantage of EJB. Actually if I could point to asingle monstrous 
  failure in EJB it was CMP. Its architecturallyflawed. The 
  finder() design is a memory hog, the ejb query syntax isbizarre and 
  incredibly limiting, the whole assumption that thedatabase will not remain 
  consistent if you allow any other applicationoutside CMP to access it is 
  ridiculous (Google Distributed Diamonds),etc. Trust me, if CMP were 
  so amazing why is it that EJB3's CMP modelis effectively just 
  Hibernate? And why do you have a quote from theJBoss group? 
  Well maybe because Hibernate is *their* project. 
  EJB3'simplementation means they're invention is 

RE: [flexcoders] Flex Enterprise Servces inf posted to labs

2005-11-21 Thread David Mendels
Hi,

We are working on the CFAdapter in parallel.

-David 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
 Sent: Monday, November 21, 2005 3:06 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex Enterprise Servces inf posted to labs
 
 
 I wonder if there will be a CFAdapter out-of-the-box or we'll 
 have to wait for further development. 
 I hope not to be forced to start learning JAVA just to be 
 able to implement DataServices.
 It's not like I don't mind, but it will be a new learning 
 cycle that I wanted to avoid if possible...
 
 João Fernandes
 Secção de Desenvolvimento
 Departamento de Informática
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of Clint Modien
 Sent: Mon 21-Nov-05 7:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Enterprise Servces inf posted to labs
  
 http://labs.macromedia.com/wiki/index.php?title=Flex_Enterpris
 e_Services:overview
 
 


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] sessions and maintenance questions

2005-11-21 Thread Jaime Bermudez



On second thought, I had the ordering of the tags wrong. Works fine now.
On 11/21/05, Jaime Bermudez [EMAIL PROTECTED] wrote:

Ok, so I misread the line. The session-config tag is there, butI'm not sure why I'm getting the warning. Could it have something todo w/ the ? that appears after the tag in the below list?


On 11/21/05, Jaime Bermudez [EMAIL PROTECTED]
 wrote: 

I added the session-config tag to my web.xml only to get the following warning in my weblogic console:

Deployment descriptor web.xml is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type web-app must match icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*, etc. 


The problem seems to be that the session-config tag is missing from the list of acceptable tags, but I'm not sure why since I came across the session-config tag on BEA's site. I'm running BEA-Weblogic with JRockit 
1.4.2_04 JVM.

- Jaime


On 11/16/05, Dimitrios Gianninas 
 [EMAIL PROTECTED] wrote: 

Hi Jamie,

Once you set the web session time to a particular value, like so (in the web.
 xml):

session-config
 
 session-timeout60/ 
session-timeout
/session-config
 

Then what happens is, after 60 minutes of inactivity, the next remote call will fail because the user is not longer authenticated at the server level. And yes, the remote call will fail with one of the two faultcodes mentioned below. So I essential kick the user back to the login page. 


If you don't set your RemoteObjects to use-custom-authentication, then none of this matters. Then will keep working forever... not safe in a production environment at all. 


Hope that helps!

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Jaime BermudezSent: Wednesday, November 16, 2005 11:01 AMTo: 
[EMAIL PROTECTED]Cc: Dimitrios GianninasSubject: Re: [flexcoders] sessions and maintenance questions


Dimitrios,

Sounds like your solution may solve a similar issue for a project I'm working on. Can you explainhow thecustom authentication relates to a timeout? Is it the only way to get one of the two fault codes you're checking for? Also, I checked 
web.xml and I don't see any timeout setting.

Thanks,

Jaime
On 11/14/05, Dimitrios Gianninas 
 [EMAIL PROTECTED] wrote: 

Hi Robert,

To answer the first part, with our Flex applications we no longer store any data in the server session. We load any required data by the UI at start-upand cache it in a global model (ModelLocator if you are using Cairngorm). As for the session 
timeout, we config out RemoteObject to use custom authentication, as follows:

use-custom-authenticationtrueuse-custom-authentication 


Then we config the session timeout in the web.xml to say 60 minutes. So if some user sayleaves for a lng lunch and returns after 2 hours, the next remote called made will be rejected. We catch this in the 
Services.mxml and return the user to the login view. Sample:

/**
* Handles failed authentication faults and re-routes regular application faults.
*/
function handleRemoteFault( event ):Void {
 if( event.fault.faultcode
 == Client.Authentication || event.fault.faultcode == 401 ) {
 EventBroadcaster.getInstance().broadcastEvent( EventList.LOGOFF );
 }
 else {
 event.call.faultHandler( event );
 }
}
/mx:Script

!-- SystemServices remote reference --
mx:RemoteObject id=systemServices named=systemService concurrency=single
 
result=event.call.resultHandler(event.result) 

fault=handleRemoteFault( event )
 
showBusyCursor=true / 


This handles the server restart scenario as well.

As for the second portion, I don't believe there is anyway to tell the user that hey, we are doing a maintenance right now. Since the server is not available, the remote call will simply hang. 


Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Monday, November 14, 2005 9:47 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] sessions and maintenance questions




I have a question for you guys about how you're currently designing your Flex applications.


Since a Flex application is not session-based in the sense of an application server session, how are you guys handling, say, you want a user to have to log back in if they remain inactive after 5 hours in the case of using remote objects? You're not making actual HTTP requests in that case…are you still storing variables in the application server session upon start of a client's session and checking the status of those variables every time a remote method call is made? Do you have some sort of filter that filters every remote method call to check every 

RE: [flexcoders] Re: Java ArrayList

2005-11-21 Thread Tracy Spratt
Use Flex, not HTML?

Seriously, that seems to be a Java / HTML question, and maybe is not
very interesting to many here on Flexcoders.  A Java list might give
better response.  

Just debug it.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Monday, November 21, 2005 8:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Java ArrayList

anyone??


On 11/18/05, Greg Morphis [EMAIL PROTECTED] wrote:
  Hi, I'm working on a Flex project with a Java backend.
 I'm making a JSP page (or trying to) that will output a schedule in an
 HTML table.
 I cant seem to get it to work

 I import all of my classes, no problem there..

 I declare my variables, no problem there..
 It seems to be in the while loop..

 Here's my code:

 %@ page import=java.sql.Date %
 %@ page import=java.text.SimpleDateFormat %
 %@ page import=java.util.Iterator %
 %@ page import=java.util.ArrayList %

 %@ page import=com.alltel.rapid.aopscheduler.dao.* %
 %@ page
import=com.alltel.rapid.aopscheduler.business.SchedulerDelegate %
 %@ page import=com.alltel.rapid.aopscheduler.vo.WeeklyRowObject %
 %@ page import=com.alltel.rapid.aopscheduler.vo.ActivityVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.DailyScheduleVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.ScheduleEntryVO %
 %@ page
import=com.alltel.rapid.aopscheduler.vo.WeeklyScheduleSearchVO %
 %@ page import=com.alltel.rapid.aopscheduler.vo.WeeklyScheduleVO %

 ... HTML CODE ...

 %
 String l = request.getParameter(location);
 String date = request.getParameter(date);

 Date d = new Date(105, 10, 5);
 WeeklyScheduleDAO dao;
 dao = new WeeklyScheduleDAO();
 WeeklyScheduleSearchVO ws = new WeeklyScheduleSearchVO();
 SimpleDateFormat s = new SimpleDateFormat(MM/dd/);
 SimpleDateFormat hhmm = new SimpleDateFormat(hh:mm);

 ws.setLocation(4096);
 ws.setWeekEndDate(d);

 WeeklyScheduleVO W = dao.getWeeklySchedule( ws );

 ArrayList days = W.getScheduleDays();
 //String[] days = W.getScheduleDays();


 out.println(table border='1');
 out.println( tr);
 out.println(  thEmployee/th);
 out.println(  thTitle/th);
 out.println(  thSunday/th);
 out.println(  thMonday/th);
 out.println(  thTuesday/th);
 out.println(  thWednesday/th);
 out.println(  thThursday/th);
 out.println(  thFriday/th);
 out.println(  thSaturday/th);
 out.println( /tr);
 //out.println(/table);

 Iterator daysIT = days.iterator();
 int i = 1;
 while(daysIT.hasNext())
 {
  DailyScheduleVO day = (DailyScheduleVO)daysIT.next();
  //get the entries in day i+1
  ArrayList entries = day.getEntries();
  //iterate over the entries
  Iterator it = entries.iterator();


  int j = 1;
  while(it.hasNext())
  {
   //get an entry
   ScheduleEntryVO entry = (ScheduleEntryVO)it.next();

   //now get the activities in the entry
   ArrayList acts = entry.getActivities();
   //iterate over the list if it has length
   Iterator itt = acts.iterator();
   if(day.getDay() == 1)
   {
out.println( tr);
out.println(  td(+ i + , + j + )  +
 entry.name +/td);
out.println(  td+ entry.jobTitle +/td);
   }
   out.println(  td(+ i + , + j + )  +
 entry.timespan +/td);
   /*
   while(itt.hasNext())
   {
//get an activity
ActivityVO act = (ActivityVO)itt.next();
if(i == 1) {
}
   }
   */
  j++;
  out.println( /tr);
  }

  i++;


 }
 out.print(/table);


 %


 It doesnt work... it prints the 1st and 2nd and 3rd columns fine, but
 the rest it prints below, and it prints only a single column
 You can see an example here..
 http://home.alltel.net/omen/printws2.html

 I've tried what seems to be everything and no matter what I try I
 can't seem to get it to work!

 Any help you can offer would be appreciated.

 Thanks!


 --
 Auxilium meum a Domino



--
Auxilium meum a Domino



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



 







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/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:

[flexcoders] Web service question

2005-11-21 Thread Dimitrios Gianninas





Toying with 
calling web services for the first time in a long time with Flex... So here my 
question. I have a Java class exposed as a web service, and it has two methods 
exposed.

When I call 
the first method from Flex, all is good. When I call the second one, its still 
calling the first one! Am i missing something?

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.






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



  









[flexcoders] Re: Web service question

2005-11-21 Thread Dave Wolf
Could you post your code?  Also is this Flex 1.5 or Flex 2?  We use
web services a over the place and they work like a champ.

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY 

--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 Toying with calling web services for the first time in a long time with
 Flex... So here my question. I have a Java class exposed as a web
 service, and it has two methods exposed.
  
 When I call the first method from Flex, all is good. When I call the
 second one, its still calling the first one! Am i missing something?
  
 Dimitrios Jimmy Gianninas
 RIA Developer
 Optimal Payments Inc.








 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/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] Flex Enterprise Servces inf posted to labs

2005-11-21 Thread João Fernandes
Well , 

what I can understand from David reply (but I might be missunderstanding it), 
they are working in parallel on a CFAdapter to do the same job like the 
Hibernate/JAVA adapter. 

João Fernandes


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Douglas Knudsen
Sent: Mon 21-Nov-05 8:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Enterprise Servces inf posted to labs
 
yeah, but I didn't hear David mention support of DataServices in the
CF Adapter as in the Enterprise Services.  All that uber kewl JMS
stuff would be Java only I would wager.

DK

On 11/21/05, João Fernandes [EMAIL PROTECTED] wrote:
 God is great and MM is bigger...

 Thanks


 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of David Mendels
 Sent: Mon 21-Nov-05 8:25 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex Enterprise Servces inf posted to labs

 Hi,

 We are working on the CFAdapter in parallel.

 -David

  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
  Sent: Monday, November 21, 2005 3:06 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Flex Enterprise Servces inf posted to labs
 
 
  I wonder if there will be a CFAdapter out-of-the-box or we'll
  have to wait for further development.
  I hope not to be forced to start learning JAVA just to be
  able to implement DataServices.
  It's not like I don't mind, but it will be a new learning
  cycle that I wanted to avoid if possible...
 
  João Fernandes
  Secção de Desenvolvimento
  Departamento de Informática
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com on behalf of Clint Modien
  Sent: Mon 21-Nov-05 7:27 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex Enterprise Servces inf posted to labs
 
  http://labs.macromedia.com/wiki/index.php?title=Flex_Enterpris
  e_Services:overview
 
 



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








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



 






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/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/
 
winmail.dat

RE: [flexcoders] combo box in a data grid

2005-11-21 Thread Tracy Spratt










You need to use a cell renderer. This
particular one has been done many times.



Look at the samples that come with Flex,
and search the archives here and the various other sites, maybe even google.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rgwilson26
Sent: Monday, November 21, 2005
2:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] combo box in
a data grid





I would
like to know how to put a combo box in on cloumn of a datagrid. I would like
the combobox to allow the user to pick from two values on the last column of
the datagrid when each row is populated.

Somthing
like this. (but this does not work)

mxataGrid
id=intitalFlowchartDataGrid
mx:columns
 mx:Array
 mxataGridColumn
headerText=Path # columnName=Path width=50
/
 mxataGridColumn headerText=Seq
# columnName=Seq width=50/
 mxataGridColumn
headerText=Description columnName=Description
width=400 editable=true /
 mxataGridColumn
headerText=BoxType columnName=BoxType
 mx:ComboBox
textAlign=left id=cmbBoxType
  mx:dataProvider
  mx:Array

mx:String/mx:String

mx:StringBox/mx:String
 
mx:StringNotes/mx:String
  /mx:Array
 /mx:dataProvider
 /mx:ComboBox
 /mxataGridColumn
 /mx:Array
/mx:columns
/mxataGrid









--
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] Web service question

2005-11-21 Thread Tracy Spratt










Are you calling the second in a result
handler from the first? Remember this is all asynchronous.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios Gianninas
Sent: Monday, November 21, 2005
4:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Web service
question







Toying with calling web services for the first time
in a long time with Flex... So here my question. I have a Java class exposed as
a web service, and it has two methods exposed.











When I call the first method from Flex, all is good.
When I call the second one, its still calling the first one! Am i missing
something?









Dimitrios
Jimmy Gianninas

RIADeveloper

Optimal Payments
Inc.















--
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] Re: php flex-2 standalone

2005-11-21 Thread Jignesh Dodiya



Thanx Renaun for your idea.let me follow your instruction
On 11/21/05, Renaun Erickson [EMAIL PROTECTED] wrote:
Have you checked your NetConnectionDebugger? Make sure the data iscoming over right then worry about the datagrid.
I connected and returned data with the code below, using AMFPHP, PHP5and Flex2 standalone.var gatewayUrl : String = 
http://localhost/amfphp/gateway.php;var gateway_conn : NetConnection = new NetConnection();gateway_conn.connect( gatewayUrl );When I get another change I'll look into ColdFusion again. 
--- In flexcoders@yahoogroups.com, Brian Lesser 
[EMAIL PROTECTED] wrote: Hi Renaun, Have you got this working so that a DataGrid can display a query  returned by CFMS in Flex 2 standalone? I tried doing this:  _recordResponder = new Responder(handleRecordResult, 
 handleRecordStatus);  _nc = new NetConnection(); _nc.objectEncoding = flash.net.ObjectEncoding.AMF0; _nc.addEventListener(NetStatusEventType.NET_STATUS
,  onNetStatus); _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR,  onSecurityError);  _nc.connect(
http://localhost/flashservices/gateway);  _nc.call(blesser.mirror.getRecords, _recordResponder);  Followed later by:  function handleRecordResult(result){
 grid.dataProvider = result; }  But of course I don't see the record set in the grid. It just has one  column named serverInfo.  I came across this post:
 http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=y
  which seems to indicate it likely won't work. Any light you canthrow on  getting back a record set would be most welcome. Yours truly, -Brian   
 Renaun Erickson wrote:  You can always connect using the NetConnection code as you do in Flash and AS 2.0. The Flex mxml tags are just nice wrappers that handle a lot stuff for you.
  I used the AS NetConnection class to connect a Flex 2 app to the current AMF ColdFusion format just fine. The newer RemoteObject component in Flex uses the newer AMF3 format. (There are 3 versions
 now, check out the google link below on the AMF3).   Semi-Related Links: 
http://www.communitymx.com/content/article.cfm?cid=EE7CA AMFPHP's webpage has some AS classes that can be used also.
http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=Search  Main thing to remember is with Flex2 there is a new AMF format
 (version 3) so beware of compability problems in the future. I assume they are not going to get rid of the first two AMF formats but just be ware that you do not try and mix gateway and connections up.
  Renaun  --- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA 
[EMAIL PROTECTED] wrote:hi, do anybody know any alternet way to use php and felx-2 standalone  together??   i know that remote object can't work with standalone or need CF 
 adepter plug-in and only work with flex- enterpriese edition  but still any idea to club php with flex-2 standalone edition??  regards,
 jignesh-- 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 --  __
 Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835
 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: 
http://www.ryerson.ca/~blesser __
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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. 



-- jignesh dodiya 






--
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] Re: Java Pojo to AS pojo with ant

2005-11-21 Thread frank_krul



Hi Guys, I didn't want to mention alternatives like Toplink and Hibernate in an effort to keep the thread concise. It is honest to say that for persistence frameworks EJB with CMP is the market leader since it is an ubiqitous technology; it appears in every J2EE compliant container. That does not necessarily mean it is being used by everyone. Hibernate is the best product out there, but it's penetration as a 3rd party tool just can't compete with a technology that is embedded into platforms.So in saying that as a alternative to EJB with CMP, Hibernate is the current de-facto standard for persistence in the Java developer and architecture community.This is due to the following reasons:#1- It is a freely available open source product, and this satisfies most budgetary constraints. There is a supported licensed version from JBoss Inc as their JBoss Enterprise Middleware System suite uses Hibernate as a persistence layer. It is supported 24x7 by JBoss Inc. if purchased, and the firm provides training for Java developers as well. This bodes well for companies whom do not have a comprehensive open-source mandate in effect.#2- Hibernate is the closest product to a reference implementation of the EJB 3.0/JSR-220 persistence standardization effort. JSR-220 istheSun and Java community effort primarily concerned with improving the EJB architecture, by reducing its complexity for developers. Currently two Hibernate employees sit on the International voting panel for this JSR effort, considering the likes of IBM, SAP and IBM are involved, this speaks volumes for Hibernate?s acceptance in the persistence community, and for their continuing support of EJB. Thanks for helping to prove my point by mentioning HibernateSure, Hibernate can be used without the new EJB3 persistence APIs, and yes, it is still more powerful than current market alternatives without it, but having said that, most developers love Hibernate since it persists most JavaBeans with no code changes to the existing beans.I don't really understand these evangalistic arguments anyways. For you, you might not be needing these large-scale development tools and frameworks, or you might have in-house tools that fit your requirements. I regard even obscure technologies as having a place, and this talk of EJB doesn't even come close to being obscure. Touting a technology as dead or alive reveals an inflexibility that may not be in your development efforts best interests.Sincerely,Frank KrulFrank Lets be honest. I'm a guy that usedto the Open Source Frameworks because the guys developing them are honest. They want only money for support, while the monsters that vote for EJB want to sell their IDEs and their application servers that supports that crappy heavy technology. It is not honest to tell that  By far the current most popular form of persistence frameworks is the EJB 2.0 standard look at the any recruiting site to see what technologies are most wanted to be familiar by Java developers. EJB has about 15% and as far as I know that 15% are support of the old projects. Actually now the only thing that remains from J2EE is servlets and JMS for everything else we have Spring, Hibernate and other frameworks. Look at the any Java community site, EJB is dead. EJB2.0 is the worst technology I've ever known and even Sun now recognize it. And however EJB 3.0 is pretty like Hibernate I'd better use Hibernate with Spring than it. The same features but I can run it on Tomcat that is much liter than any EJB3.0 compliant app server. Spring Hibernate and AOP makes EJB dead!!! And great thanx to them. I do not need XDoclet any more, I can run unittests without Cactus I can deploy my application anywhere I do not need crappy EJB deployment descriptors, and I'm happy with it. -- Best Regards, Mykola On 11/21/05, [EMAIL PROTECTED]  [EMAIL PROTECTED]  wrote: I think we all have to realize that all of our declarations on this topic are relative to our own experiences. That being said, if you use simple procedural JSPs, and servlets to expose DB backends using JDBC, then you might say EJB is dead. On the other side of the coin, if you do large scale, enterprise wide development, EJB is a life saver. Take persistence frameworks as an example...what are the alternatives outside of proprietary, non-standard COTS products?  By far the current most popular form of persistence frameworks is the EJB 2.0 standard.This allows Container Managed Persistence, in which the application server manages the persistence for the developers, allowing them to concentrate on coding business logic instead of implementation specifics.   Prior to EJB 2.0, the specification mandated remote interfaces and had no way to express relationships between objects. Both of these problems harmed performance, but they were fixed in EJB 2.0.  Today CMP ships with all J2EE EJB 2.0 compliant application servers, thus it has a huge advantage over the rest of the marketplace due to the ubiquitous nature of 

[flexcoders] [AS3/E4X/Flex2] Parsing rss1

2005-11-21 Thread David Vexler
Hello List
I've stack with a question of parsing the RSS 1 feed. I cannot access 
item node via dot syntax, for example

//this is short version of feed
var rss:XML =
rdf:RDF
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:sy=http://purl.org/rss/1.0/modules/syndication/;
xmlns:admin=http://webns.net/mvcb/;
xmlns:cc=http://web.resource.org/cc/;
xmlns=http://purl.org/rss/1.0/;
item
titlehello/title
descriptionworld/description
/item
/rdf:RDF

//i tried to do it with dot syntax
trace(rss.item.toXMLString())
//and also with namespaces
var ns:Namespace = rss.namespace(rdf);
trace(rss.ns::RDF.item.toXMLString())

but this does not seems to work, can smbd point where am i wrong?
Thanks in advance

best regards David Vexler
 




 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Alert display late in tagged AS code

2005-11-21 Thread dpsweb

you need add a eventlistner in your code:


 loginSrv.send();
 //loginOK = loginSrv.result.results.ans;
 loginSrv.addEventListner(complete,myAnyFunction);

 ...
 }

 function myAnyFunction(event:Event)
 {
 .
  // see the event parameter in your debug, see the parameter
  // event.currentTarget too!
 }

Bye,
 Daniel [from Brazil]



--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 
 You cannot do this:
  loginSrv.send();
  loginOK = loginSrv.result.results.ans;
 
 Data service calls are asynchronous.
 http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default
 fields=defaultValues=#Question371
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of endofadam228
 Sent: Sunday, November 20, 2005 4:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Alert display late in tagged AS code
 
 Hi all Flex developer
 
 I really need your help!
 
 Please, thank you very much!
 
 --- In flexcoders@yahoogroups.com, endofadam228
 [EMAIL PROTECTED] wrote:
 
  Alert display late in tagged AS code
  
  I wanna create a app with login page, I am testing the alert function
  with login unsuccessful.
  
  After loaded the first page, I don't know why the alert will show when
  I click the button second time. I have test by Network Monitor, I can
  get the xml content in my first click, but I don't know why the value
  save into AS code after I click one more!
  
  true.html
  
  resultsansfalse/ans/results
  
  index.mxml
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
  horizontalAlign=center verticalAlign=middle
  mx:HTTPService id=loginSrv url=http://127.0.0.1/true.html;
  /mx:HTTPService
  mx:Script
  ![CDATA[
  function checkLogin(){
  var loginOK = true;
  loginSrv.send();
  loginOK = loginSrv.result.results.ans;
  if (loginOK == false){
  alert('Your login ID or password is not
 correct!', 'Warning');
  }
  }
  ]]
  /mx:Script
mx:Panel title=Login Page autoLayout=true
 creationPolicy=queued
  mx:Label text=Login ID: id=lblid/
  mx:TextInput id=txtid /
  mx:Label text=Password: id=lblpw/
  mx:TextInput id=txtpw password=true /
  mx:ControlBar horizontalAlign=right id=cbar
mx:Button label=Login id=btnlogin click=checkLogin();/  
mx:Button label=Cancel id=btncancel /
  /mx:ControlBar
/mx:Panel
  /mx:Application
 
 
 
 
 
 
 
 
 
 --
 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









 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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] openAMF examples?

2005-11-21 Thread Jaime Bermudez



Hey guys,

Just wondering if anyone has some sample FLEX code where they use openAMF in place of RemoteObjects for FLEX 1.5. Specifically wondering what happens to result and fault handlers.

Thanks,

Jaime






--
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] Web service question

2005-11-21 Thread Dimitrios Gianninas





Not at all... the two calls are done at every different 
points in the use of the UI. So even if I call methodB()... on the server I see that it is executing methodA(). 

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
SprattSent: Monday, November 21, 2005 5:49 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Web service 
question


Are you calling the 
second in a result handler from the first? Remember this is all 
asynchronous.
Tracy





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Dimitrios 
GianninasSent: Monday, 
November 21, 2005 4:16 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Web service 
question


Toying with calling web 
services for the first time in a long time with Flex... So here my question. I 
have a Java class exposed as a web service, and it has two methods 
exposed.



When I call the first method 
from Flex, all is good. When I call the second one, its still calling the first 
one! Am i missing something?


Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.








--
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] Re: Web service question

2005-11-21 Thread Dimitrios Gianninas





Its Flex 1.5. What code do you want tosee exactly? My 
AS delegate? The Services.mxml ? The WSDL ?

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave 
WolfSent: Monday, November 21, 2005 4:32 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Web service 
question
Could you post your code? Also is this Flex 1.5 or Flex 
2? We useweb services a over the place and they work like a 
champ.--Dave WolfCynergy Systems, Inc.Macromedia Flex 
Alliance Partnerhttp://www.cynergysystems.comEmail: 
[EMAIL PROTECTED]Office: 866-CYNERGY --- In 
flexcoders@yahoogroups.com, "Dimitrios 
Gianninas"[EMAIL PROTECTED] wrote: Toying 
with calling web services for the first time in a long time with Flex... 
So here my question. I have a Java class exposed as a web service, and 
it has two methods exposed.  When I call the first method 
from Flex, all is good. When I call the second one, its still calling 
the first one! Am i missing something?  Dimitrios "Jimmy" 
Gianninas RIA Developer Optimal Payments 
Inc.





--
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] Flex 2:Bind a variable to selectedIndex?

2005-11-21 Thread Aldo Bucchi
Greg,

with that info, my bet would be:

try setting the creationPolicy of your accordion to all
http://livedocs.macromedia.com/labs/1/flex/langref/mx/core/Container.html#creationPolicy

best,
aldo

On 11/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
 Basicaly I have an accordian view.  The first pannel is a dataGrid, the
 secound pannel is a viewstack.  What I want is for when I go from the
 dataGrid to teh viewstack, that the viewstack switch to the first
 view.  However all I seem to be able to do is ether get an error
 because the viewstack doesn't exist, or every time I click to switch
 the viewstack it throws me right back to the first view.  The viewstack
 will show the details for an item someone selects on the datagrid.

 I thought if I could bind a variable to selectedIndex then I could just
 change that, and when the viewstack showed it would use that value and
 switch.

 Any ideas?






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









--
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Web service question

2005-11-21 Thread Dave Wolf
Cairngorn huh I'll bet dollars to donuts that somehow the event is
being mis-dispatched.

flame bait
Show what you have, but to me these situations are the biggest proof
where abstracted frameworks, especially around event dispatching come
back to bite you.  Something simple like clicking a button to fire a
service wanders through hard to debug framework.  Why go through
something as abstracted as a FrontController/Command/Locator pattern
soup to do something as simple as fire a service from a button click.
/flame bait

Ahem.

I can tell you we've built seriously complex applications using
mx:WebService/. It's likely just a fat finger in the implementation.
 mx:WebService/ works like a champ. (ok it has a cpl issues but this
isnt one of them!)

Your friendly neigborhood KISS pontificator,

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 Its Flex 1.5. What code do you want to see exactly? My AS delegate? The
 Services.mxml ? The WSDL ?
  
 Dimitrios Jimmy Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dave Wolf
 Sent: Monday, November 21, 2005 4:32 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Web service question
 
 
 Could you post your code?  Also is this Flex 1.5 or Flex 2?  We use
 web services a over the place and they work like a champ.
 
 --
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com
 
 Email: [EMAIL PROTECTED]
 Office: 866-CYNERGY 
 
 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
 [EMAIL PROTECTED] wrote:
 
  Toying with calling web services for the first time in a long time
 with
  Flex... So here my question. I have a Java class exposed as a web
  service, and it has two methods exposed.
   
  When I call the first method from Flex, all is good. When I call the
  second one, its still calling the first one! Am i missing something?
   
  Dimitrios Jimmy Gianninas
  RIA Developer
  Optimal Payments Inc.
 
 
 
 
 
 
 
 
 --
 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]
 mailto:[EMAIL PROTECTED] 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
 
 







 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/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] Flex Enterprise Servces inf posted to labs

2005-11-21 Thread David Mendels
Hi,

I'll ask someone from that team to post more about the CFAdapter plans

-David 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
 Sent: Monday, November 21, 2005 4:34 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex Enterprise Servces inf posted to labs
 
 Well , 
 
 what I can understand from David reply (but I might be 
 missunderstanding it), they are working in parallel on a 
 CFAdapter to do the same job like the Hibernate/JAVA adapter. 
 
 João Fernandes
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of Douglas Knudsen
 Sent: Mon 21-Nov-05 8:56 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex Enterprise Servces inf posted to labs
  
 yeah, but I didn't hear David mention support of DataServices 
 in the CF Adapter as in the Enterprise Services.  All that 
 uber kewl JMS stuff would be Java only I would wager.
 
 DK
 
 On 11/21/05, João Fernandes [EMAIL PROTECTED] wrote:
  God is great and MM is bigger...
 
  Thanks
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com on behalf of David Mendels
  Sent: Mon 21-Nov-05 8:25 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Flex Enterprise Servces inf posted to labs
 
  Hi,
 
  We are working on the CFAdapter in parallel.
 
  -David
 
   -Original Message-
   From: flexcoders@yahoogroups.com
   [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
   Sent: Monday, November 21, 2005 3:06 PM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] Flex Enterprise Servces inf 
 posted to labs
  
  
   I wonder if there will be a CFAdapter out-of-the-box or 
 we'll have 
   to wait for further development.
   I hope not to be forced to start learning JAVA just to be able to 
   implement DataServices.
   It's not like I don't mind, but it will be a new learning 
 cycle that 
   I wanted to avoid if possible...
  
   João Fernandes
   Secção de Desenvolvimento
   Departamento de Informática
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com on behalf of Clint Modien
   Sent: Mon 21-Nov-05 7:27 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex Enterprise Servces inf posted to labs
  
   http://labs.macromedia.com/wiki/index.php?title=Flex_Enterpris
   e_Services:overview
  
  
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?
 
 
  Yahoo! Groups Sponsor 
 ~-- Get fast access to your favorite 
 Yahoo! Groups. Make Yahoo! your home page 
 http://us.click.yahoo.com/dpRU5A/wUILAA/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
 
 
 
  
 
 
 
 
 


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: List box event

2005-11-21 Thread Jason Doyle
Nope, Flex 1.5. thank though :)





 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: Web service question

2005-11-21 Thread Carson Hager





Dimitrios,

Does your app allow you to invoke this method using 
http? It would be invaluable to see the soap request to determine if the 
correct operation is being invoked. You likely already have a tool to 
inspect the soap payload. If not, tcptunnel from Axis is a very easy to 
use tool to do just this. If you haven't set this up, I can walk you through 
it.

Carson
  Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com 
 Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 
1.703.489.6466   



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios 
GianninasSent: Monday, November 21, 2005 6:33 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Web service 
question

Its Flex 1.5. What code do you want tosee exactly? My 
AS delegate? The Services.mxml ? The WSDL ?

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave 
WolfSent: Monday, November 21, 2005 4:32 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Web service 
question
Could you post your code? Also is this Flex 1.5 or Flex 
2? We useweb services a over the place and they work like a 
champ.--Dave WolfCynergy Systems, Inc.Macromedia Flex 
Alliance Partnerhttp://www.cynergysystems.comEmail: 
[EMAIL PROTECTED]Office: 866-CYNERGY --- In 
flexcoders@yahoogroups.com, "Dimitrios 
Gianninas"[EMAIL PROTECTED] wrote: Toying 
with calling web services for the first time in a long time with Flex... 
So here my question. I have a Java class exposed as a web service, and 
it has two methods exposed.  When I call the first method 
from Flex, all is good. When I call the second one, its still calling 
the first one! Am i missing something?  Dimitrios "Jimmy" 
Gianninas RIA Developer Optimal Payments 
Inc.





--
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] Re: Web service question

2005-11-21 Thread Dimitrios Gianninas





Thanks for the help... but I just figured it out. Both 
methods, although having different return types, were accepting exactly the same 
object (a complex object). Guess this caused the same method to be called on the 
server side. We are experimenting with XFire, so it must be a bug 
perhaps.

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Carson 
HagerSent: Monday, November 21, 2005 11:55 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Web service 
question

Dimitrios,

Does your app allow you to invoke this method using 
http? It would be invaluable to see the soap request to determine if the 
correct operation is being invoked. You likely already have a tool to 
inspect the soap payload. If not, tcptunnel from Axis is a very easy to 
use tool to do just this. If you haven't set this up, I can walk you through 
it.

Carson
  Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com 
 Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 
1.703.489.6466   



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios 
GianninasSent: Monday, November 21, 2005 6:33 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Web service 
question

Its Flex 1.5. What code do you want tosee exactly? My 
AS delegate? The Services.mxml ? The WSDL ?

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave 
WolfSent: Monday, November 21, 2005 4:32 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Web service 
question
Could you post your code? Also is this Flex 1.5 or Flex 
2? We useweb services a over the place and they work like a 
champ.--Dave WolfCynergy Systems, Inc.Macromedia Flex 
Alliance Partnerhttp://www.cynergysystems.comEmail: 
[EMAIL PROTECTED]Office: 866-CYNERGY --- In 
flexcoders@yahoogroups.com, "Dimitrios 
Gianninas"[EMAIL PROTECTED] wrote: Toying 
with calling web services for the first time in a long time with Flex... 
So here my question. I have a Java class exposed as a web service, and 
it has two methods exposed.  When I call the first method 
from Flex, all is good. When I call the second one, its still calling 
the first one! Am i missing something?  Dimitrios "Jimmy" 
Gianninas RIA Developer Optimal Payments 
Inc.





--
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] Re: Web service question

2005-11-21 Thread Dimitrios Gianninas





Now, now, lets be nice :)Took me two seconds to add 
the appropriate trace output to my AS delegate and I am calling the correct 
method.

See when calling the getList method:

in AS:
calling getList
11/21 23:2:26 [INFO] SOAP: Asynchronously invoking SOAPCall: 
getList
11/21 23:2:26 [INFO] SOAP: Encoding SOAPCall request
Warning: registerPrefix is not a function
11/21 23:2:26 [INFO] SOAP: Sent SOAP Request Message
11/21 23:2:26 [INFO] WebService: Invoking call 
getList
11/21 23:2:29 [INFO] SOAP: Received SOAP response from network [3025 
millis]
11/21 23:2:29 [INFO] SOAP: Parsed SOAP response XML [0 
millis]
11/21 23:2:29 [INFO] SOAP: Decoding SOAPCall response
11/21 23:2:29 [INFO] SOAP: Decoded SOAP response into result [20 
millis]

And I see the appropriate logging on the Java side:

2005-11-21 23:02:26 DEBUG - Searching for FMA:

Now calling the getRecord method:

calling getRecord
11/21 23:2:58 [INFO] SOAP: Asynchronously invoking SOAPCall: 
getRecord
11/21 23:2:58 [INFO] SOAP: Encoding SOAPCall request
Warning: registerPrefix is not a function
11/21 23:2:58 [INFO] SOAP: Sent SOAP Request Message
11/21 23:2:58 [INFO] WebService: Invoking call 
getRecord
11/21 23:2:58 [INFO] SOAP: Received SOAP response from network [411 
millis]
11/21 23:2:58 [INFO] SOAP: Parsed SOAP response XML [10 
millis]
11/21 23:2:58 [INFO] SOAP: Decoding SOAPCall response
11/21 23:2:58 [INFO] SOAP: Decoded SOAP response into result [0 
millis]

But on the server side, I see the same method being 
called:

2005-11-21 23:02:58 DEBUG - Searching for FMA:

So go figure eh?

Dimitrios 
"Jimmy" Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave 
WolfSent: Monday, November 21, 2005 10:37 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Web service 
question
Cairngorn huh I'll bet dollars to donuts that somehow the 
event isbeing mis-dispatched.flame baitShow what you 
have, but to me these situations are the biggest proofwhere abstracted 
frameworks, especially around event dispatching comeback to bite you. 
Something simple like clicking a button to fire aservice wanders through 
hard to debug framework. Why go throughsomething as abstracted as a 
FrontController/Command/Locator patternsoup to do something as simple as 
fire a service from a button click./flame baitAhem.I 
can tell you we've built seriously complex applications 
usingmx:WebService/. It's likely just a fat finger in the 
implementation.mx:WebService/ works like a champ. (ok it has a cpl 
issues but thisisnt one of them!)Your friendly neigborhood KISS 
pontificator,-- Dave WolfCynergy Systems, Inc.Macromedia 
Flex Alliance Partnerhttp://www.cynergysystems.comEmail: 
[EMAIL PROTECTED]Office: 866-CYNERGY--- In 
flexcoders@yahoogroups.com, "Dimitrios 
Gianninas"[EMAIL PROTECTED] wrote: Its Flex 
1.5. What code do you want to see exactly? My AS delegate? The 
Services.mxml ? The WSDL ?  Dimitrios "Jimmy" 
Gianninas RIA Developer Optimal Payments Inc. 
    From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Dave Wolf Sent: Monday, November 21, 2005 4:32 PM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Re: Web service 
question   Could you post your code? Also is this 
Flex 1.5 or Flex 2? We use web services a over the place and they 
work like a champ.  -- Dave Wolf Cynergy 
Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com 
 Email: [EMAIL PROTECTED] Office: 866-CYNERGY   --- 
In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
[EMAIL PROTECTED] wrote:   Toying with 
calling web services for the first time in a long time with  
Flex... So here my question. I have a Java class exposed as a web  
service, and it has two methods exposed.When I 
call the first method from Flex, all is good. When I call the  
second one, its still calling the first one! Am i missing something? 
   Dimitrios "Jimmy" Gianninas  RIA 
Developer  Optimal Payments Inc.   
  -- 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] 
mailto:[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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
   

[flexcoders] Re: Web service question

2005-11-21 Thread Dave Wolf
Hey I was nice!  Just opinionated. :=)

I am with Carson.  I would be *very* interested to put a proxy in like
the tcptunnel and see what went out in the payload.  It would be
pretty odd to see XFire matching implementation method calls by
matching the parameter types.  Using tcptunnel would let us see
exactly what operation name was passed in each SOAP payload.

This is an interesting part of the trace log BTW.

Parsed SOAP response XML [10 millis]

So much for parsing SOAP payloads being expensive huh wink

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY

--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 Now, now, lets be nice :) Took me two seconds to add the appropriate
 trace output to my AS delegate and I am calling the correct method.
  
 See when calling the getList method:
  
 in AS:
 calling getList
 11/21 23:2:26 [INFO] SOAP: Asynchronously invoking SOAPCall: getList
 11/21 23:2:26 [INFO] SOAP: Encoding SOAPCall request
 Warning: registerPrefix is not a function
 11/21 23:2:26 [INFO] SOAP: Sent SOAP Request Message
 11/21 23:2:26 [INFO] WebService: Invoking call getList
 11/21 23:2:29 [INFO] SOAP: Received SOAP response from network [3025
 millis]
 11/21 23:2:29 [INFO] SOAP: Parsed SOAP response XML [0 millis]
 11/21 23:2:29 [INFO] SOAP: Decoding SOAPCall response
 11/21 23:2:29 [INFO] SOAP: Decoded SOAP response into result [20 millis]
  
 And I see the appropriate logging on the Java side:
  
 2005-11-21 23:02:26 DEBUG - Searching for FMA:
  
 Now calling the getRecord method:
  
 calling getRecord
 11/21 23:2:58 [INFO] SOAP: Asynchronously invoking SOAPCall: getRecord
 11/21 23:2:58 [INFO] SOAP: Encoding SOAPCall request
 Warning: registerPrefix is not a function
 11/21 23:2:58 [INFO] SOAP: Sent SOAP Request Message
 11/21 23:2:58 [INFO] WebService: Invoking call getRecord
 11/21 23:2:58 [INFO] SOAP: Received SOAP response from network [411
 millis]
 11/21 23:2:58 [INFO] SOAP: Parsed SOAP response XML [10 millis]
 11/21 23:2:58 [INFO] SOAP: Decoding SOAPCall response
 11/21 23:2:58 [INFO] SOAP: Decoded SOAP response into result [0 millis]
  
 But on the server side, I see the same method being called:
  
 2005-11-21 23:02:58 DEBUG - Searching for FMA:
  
 So go figure eh?
  
 Dimitrios Jimmy Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dave Wolf
 Sent: Monday, November 21, 2005 10:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Web service question
 
 
 Cairngorn huh I'll bet dollars to donuts that somehow the event is
 being mis-dispatched.
 
 flame bait
 Show what you have, but to me these situations are the biggest proof
 where abstracted frameworks, especially around event dispatching come
 back to bite you.  Something simple like clicking a button to fire a
 service wanders through hard to debug framework.  Why go through
 something as abstracted as a FrontController/Command/Locator pattern
 soup to do something as simple as fire a service from a button click.
 /flame bait
 
 Ahem.
 
 I can tell you we've built seriously complex applications using
 mx:WebService/. It's likely just a fat finger in the implementation.
 mx:WebService/ works like a champ. (ok it has a cpl issues but this
 isnt one of them!)
 
 Your friendly neigborhood KISS pontificator,
 
 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com
 
 Email: [EMAIL PROTECTED]
 Office: 866-CYNERGY
 
 
 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
 [EMAIL PROTECTED] wrote:
 
  Its Flex 1.5. What code do you want to see exactly? My AS delegate?
 The
  Services.mxml ? The WSDL ?
   
  Dimitrios Jimmy Gianninas
  RIA Developer
  Optimal Payments Inc.
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of Dave Wolf
  Sent: Monday, November 21, 2005 4:32 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Web service question
  
  
  Could you post your code?  Also is this Flex 1.5 or Flex 2?  We use
  web services a over the place and they work like a champ.
  
  --
  Dave Wolf
  Cynergy Systems, Inc.
  Macromedia Flex Alliance Partner
  http://www.cynergysystems.com
  
  Email: [EMAIL PROTECTED]
  Office: 866-CYNERGY 
  
  --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
  [EMAIL PROTECTED] wrote:
  
   Toying with calling web services for the first time in a long time
  with
   Flex... So here my question. I have a Java class exposed as a web
   service, and it has two methods exposed.

   When I call the first method from Flex, all is good. When I call the
   second one, its still calling the first one! Am i missing something?

   Dimitrios Jimmy Gianninas
   RIA Developer
   Optimal Payments Inc.
  
  
  
  
  
  
  
  

[flexcoders] two problems of flex2 printing

2005-11-21 Thread Zhu Feng



Hi, all
I use FlexPrintJob in Flex2, the two problems bother me:




Problem 
1:
A problem of printing the JPEG files 
imported at runtime using Flex2 alpha:
We import an image at the runtime, 
and the image can show in the page. If we use the FlexPrintJob to print this 
image, the image can not be printed (it seems disappeared in the printed 
paper).
But, while we use embedding image, 
all works well: the image can show in the page and be 
printed.



Problem 
2:
When print the datagrid with cell 
renders (e.g. image, combo box, check box, etc) for multiple page printing, the 
height of the last row of the page is lower than others (as showed in the 
attachment "problem2.pdf"). While use datagrid without any renders, all work 
well.

Any ideas? 
-- Best Regards!Zhu FengMSN: [EMAIL PROTECTED]






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



  









problem2.pdf
Description: Adobe PDF document


RE: [flexcoders] Flex Enterprise Servces inf posted to labs

2005-11-21 Thread Mika Kiljunen










That certainly looks quite interesting. I
wonder about the performance and how scalable this model will be compared to
EJB etc. The basic concept though is quite beautiful and I really look forward
to test those messaging systems!



-Mika











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: 21. marraskuuta 2005 21:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex
Enterprise Servces inf posted to labs





http://labs.macromedia.com/wiki/index.php?title=Flex_Enterprise_Services:overview








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