RE: [flexcoders] open source server side push

2010-04-05 Thread James Ward
Check out Jetty 7 with support for Asynchronous BlazeDS Polling with 
Continuations:
http://blogs.webtide.com/athena/entry/asynchronous_blazeds_polling_with_jetty

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of hgnowhg
Sent: Saturday, April 03, 2010 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] open source server side push



Are there any open source (i.e. FREE!) server side push services that do NOT 
limit the number of concurrent users? i.e. Blaze is open source but limits the 
number of subscribers. LCDS would be perfect but is expensive. All I need is a 
datagrid that will update w/ new data as data gets added to my MySQL server.

inline: image001.jpginline: image002.jpg

Re: [flexcoders] Java and Flex

2009-11-29 Thread James Ward
I have a list of getting started resources on my blog:
http://jamesward.com/flex-and-java-resources

-James



From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Fri Nov 27 16:36:30 2009
Subject: [flexcoders] Java and Flex



I'm java developer and i like adobe flex , so i need to make app with flex 
depend on java programming , how can i do that and what is the best id to make 
that .

Thanks
M.Adam
Java Developer





RE: [flexcoders] Blazeds messaging from java to java

2009-09-17 Thread James Ward
I think it would be easier to use JMS instead.  And then just connect BlazeDS 
to the JMS topic.

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of netdeep
Sent: Thursday, September 17, 2009 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Blazeds messaging from java to java



I know BlazeDS allows flex to communicate with server technology, but what if I 
want to communicate from a java class. How do I send my channel (which I've 
already set up and defined in the messaging-config file) a message and also 
hear back from the same channel?

I can create messages like this:

String clientID = UUIDUtils.createUUID();
AsyncMessage message = new AsyncMessage();
message.setDestination(airBridge);
message.setClientId(clientID);
message.setMessageId(UUIDUtils.createUUID());
message.setTimestamp(System.currentTimeMillis());
// this header info is not currently being used
TreeMap String, StringhMap = new TreeMapString, String();
hMap.put(secureID, general);
hMap.put(reportID, repID);
message.setHeaders(hMap);

// but I can't create this because I am not a ServiceAdaptor- I don't have the
// getDestination() method.
MessageService service = (MessageService)getDestination().getService();
// And even if I could get the service, how do I send it to a specific channel?
// And if I send a message how do I hear back from the channel?

The message needs to get sent from a servlet to the ServiceAdapter (messaging 
channel) which will in turn propagate that out to other apps, get a result and 
send confirmation that the process completed successfully back to the servlet. 
How can this be done?

inline: image001.jpginline: image002.jpg

RE: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-09-16 Thread James Ward
Yeah.  Turns out that the folks at Stack Overflow didn't like the idea of the 
riacowboy tag.  So you can still ask the question with sensible tags and then 
post a comment on my Ask the RIA Cowboy blog so that I know where to find it.

Thanks.

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Monday, September 14, 2009 10:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Java/Flex questions answered by James Ward



Could not find the tag 'raiCowboy'

http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327

It says tag 'raiCowboy' has been deleted.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James 
Ward jaw...@... wrote:

 This would be a great question to ask on StackOverflow.com :)

 -James


 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of ilikeflex
 Sent: Friday, September 11, 2009 11:03 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Java/Flex questions answered by James Ward



 what i am expecting that as soon as i run my flex application i should
 see

 System.out.println(getIndexList Executing);
 System.out.println(getIndexProfileList Executing);
 System.out.println(getIndexTradingDatesList Executing);
 System.out.println(getIndexValues Executing);

 but i see

 System.out.println(getIndexList Executing);
 System.out.println(getIndexList End Executing);

 System.out.println(getIndexProfileList Executing);
 System.out.println(getIndexProfileList End Executing);

 System.out.println(getIndexTradingDatesList Executing);
 System.out.println(getIndexTradingDatesList End Executing);

 System.out.println(getIndexValues Executing);
 System.out.println(getIndexValues End Executing);

 I should see all the method executing simultaneously.

 Any help...

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  ilikeflex ilikeflex@ wrote:
 
 
  I am doing something like this:
 
  if( indexListRemoteObject == null)
  {
  indexListRemoteObject = new RemoteObject(indexMasterDAO);
  indexListRemoteObject.addEventListener( ResultEvent.RESULT,
  indexListHandler );
  indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler
  );
  indexListRemoteObject.getIndexList();
  }
 
  if( indexProfileListRemoteObject == null )
  {
  indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
  indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT,
  indexProfileListHandler );
  indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT,
  faultHandler );
  indexProfileListRemoteObject.getIndexProfileList();
  }
 
 
  if( indexTradingDatesListRemoteObject == null )
  {
  indexTradingDatesListRemoteObject = new
 RemoteObject(indexMasterDAO);
  indexTradingDatesListRemoteObject.addEventListener(
 ResultEvent.RESULT,
  indexTradingDatesListHandler );
  indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT,
  faultHandler );
  indexTradingDatesListRemoteObject.getIndexTradingDatesList();
  }
 
  if( indexValuesListRemoteObject == null )
  {
  indexValuesListRemoteObject = new RemoteObject(indexMasterDAO);
  indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT,
  indexValuesListHandler );
  indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT,
  faultHandler );
  indexValuesListRemoteObject.getIndexValues();
  }
 
  but if i put the System.out.println in different Java Methods.. i see
  the same sequence of order in which they are called. I am 100% sure
 that
  my first method(getIndexList) takes lot of time. So while getIndexList
  is executing then i should also see that atleast one of the other
  methods are being executed simulataneously. But this is not happening
 as
  expected. None of the other methods is able to recieve the request
 while
  getIndexList is processing.
 
  All my java methods are static. I don't think this should cause any
  issue.
 
  thanks
  ilikeflex
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  --- In 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
   fotis.chatzinikos
  fotis.chatzinikos@ wrote:
  
   make a remote call implementation in java that fills a hashmap or
  related object with all the info you want:
  
   init()
   {
   people = getPeople() ;
   towns = getTowns() ;
   etc...
   }
  
   if you want them 1-by-1 call them in sequence:
  
   getPeople() on responce getTowns and so on...
  
   --- In 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
valdhor valdhorlists@ wrote:
   
I don't understand. Each call _IS_ a separate request. Even though
  Flex batches them up together, each remoteObject call hits the server
 as
  a separate request. They will return asynchronously

RE: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-09-11 Thread James Ward
This would be a great question to ask on StackOverflow.com  :)

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Friday, September 11, 2009 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Java/Flex questions answered by James Ward



what i am expecting that as soon as i run my flex application i should
see

System.out.println(getIndexList Executing);
System.out.println(getIndexProfileList Executing);
System.out.println(getIndexTradingDatesList Executing);
System.out.println(getIndexValues Executing);

but i see

System.out.println(getIndexList Executing);
System.out.println(getIndexList End Executing);

System.out.println(getIndexProfileList Executing);
System.out.println(getIndexProfileList End Executing);

System.out.println(getIndexTradingDatesList Executing);
System.out.println(getIndexTradingDatesList End Executing);

System.out.println(getIndexValues Executing);
System.out.println(getIndexValues End Executing);

I should see all the method executing simultaneously.

Any help...

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
ilikeflex ilikef...@... wrote:


 I am doing something like this:

 if( indexListRemoteObject == null)
 {
 indexListRemoteObject = new RemoteObject(indexMasterDAO);
 indexListRemoteObject.addEventListener( ResultEvent.RESULT,
 indexListHandler );
 indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler
 );
 indexListRemoteObject.getIndexList();
 }

 if( indexProfileListRemoteObject == null )
 {
 indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
 indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT,
 indexProfileListHandler );
 indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT,
 faultHandler );
 indexProfileListRemoteObject.getIndexProfileList();
 }


 if( indexTradingDatesListRemoteObject == null )
 {
 indexTradingDatesListRemoteObject = new
RemoteObject(indexMasterDAO);
 indexTradingDatesListRemoteObject.addEventListener(
ResultEvent.RESULT,
 indexTradingDatesListHandler );
 indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT,
 faultHandler );
 indexTradingDatesListRemoteObject.getIndexTradingDatesList();
 }

 if( indexValuesListRemoteObject == null )
 {
 indexValuesListRemoteObject = new RemoteObject(indexMasterDAO);
 indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT,
 indexValuesListHandler );
 indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT,
 faultHandler );
 indexValuesListRemoteObject.getIndexValues();
 }

 but if i put the System.out.println in different Java Methods.. i see
 the same sequence of order in which they are called. I am 100% sure
that
 my first method(getIndexList) takes lot of time. So while getIndexList
 is executing then i should also see that atleast one of the other
 methods are being executed simulataneously. But this is not happening
as
 expected. None of the other methods is able to recieve the request
while
 getIndexList is processing.

 All my java methods are static. I don't think this should cause any
 issue.

 thanks
 ilikeflex


















 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 fotis.chatzinikos
 fotis.chatzinikos@ wrote:
 
  make a remote call implementation in java that fills a hashmap or
 related object with all the info you want:
 
  init()
  {
  people = getPeople() ;
  towns = getTowns() ;
  etc...
  }
 
  if you want them 1-by-1 call them in sequence:
 
  getPeople() on responce getTowns and so on...
 
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  valdhor valdhorlists@ wrote:
  
   I don't understand. Each call _IS_ a separate request. Even though
 Flex batches them up together, each remoteObject call hits the server
as
 a separate request. They will return asynchronously. This is what you
 want so that you get the data back as fast as possible.
  
  
   --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
   ilikeflex ilikeflex@ wrote:
   
HI
   
I am using Blazeds. At the start of my application i am making
 couple of request to get the data from the backend. I am tracking my
 request through Charles Debugger. I see that all my initial request
are
 put together in one POST request. I want that each service call to
 backend be a different POST request. So that i can get the data fast.
   
Please have a look at the screen

shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1\
\
http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1 
-RzjZAE/s1600-h/Query.png)
   
How can i achieve this?
I am using the Remote Objec to make the calls
   
indexProfileListRemoteObject = new
RemoteObject(indexMasterDAO);
indexProfileListRemoteObject.addEventListener(
ResultEvent.RESULT,
 indexProfileListHandler );
   
indexListRemoteObject = new RemoteObject(indexMasterDAO

RE: [flexcoders] Java/Flex questions answered by James Ward

2009-08-14 Thread James Ward
Thanks for the plug.  I'm using StackOverflow.com to manage the questions.  
Just tag them with riacowboy so that I can find them.

I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow 
- so hopefully many here will start getting more involved in Stack Overflow.

BTW: Here is the Ask The RIA Cowboy post:
http://www.jamesward.com/blog/ask-the-ria-cowboy/

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of hworke
Sent: Friday, August 14, 2009 11:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java/Flex questions answered by James Ward




Hello Devs,

James Ward the Technical Evangelist for Flex at Adobe
encourages all to post RIA related questions in his
blog. I asked him JAVA/LCDS questions before and got
instant answer from him. If you have JAVA/BlazeDS/
LCDS related questions then you can post it here:

http://www.jamesward.com/blog/

inline: image001.jpginline: image002.jpg

RE: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-08-14 Thread James Ward
This would be a great question to ask on StackOverflow.com.  :)

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Friday, August 14, 2009 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Java/Flex questions answered by James Ward



HI

I am using Blazeds. At the start of my application i am making couple of 
request to get the data from the backend. I am tracking my request through 
Charles Debugger. I see that all my initial request are put together in one 
POST request. I want that each service call to backend be a different POST 
request. So that i can get the data fast.

Please have a look at the screen 
shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png)

How can i achieve this?
I am using the Remote Objec to make the calls

indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, 
indexProfileListHandler );

indexListRemoteObject = new RemoteObject(indexMasterDAO);
indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler );

Thanks
ilikeflex


--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James 
Ward jaw...@... wrote:

 Thanks for the plug. I'm using StackOverflow.com to manage the questions. 
 Just tag them with riacowboy so that I can find them.

 I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack 
 Overflow - so hopefully many here will start getting more involved in Stack 
 Overflow.

 BTW: Here is the Ask The RIA Cowboy post:
 http://www.jamesward.com/blog/ask-the-ria-cowboy/

 -James


 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of hworke
 Sent: Friday, August 14, 2009 11:17 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Java/Flex questions answered by James Ward




 Hello Devs,

 James Ward the Technical Evangelist for Flex at Adobe
 encourages all to post RIA related questions in his
 blog. I asked him JAVA/LCDS questions before and got
 instant answer from him. If you have JAVA/BlazeDS/
 LCDS related questions then you can post it here:

 http://www.jamesward.com/blog/


inline: image001.jpginline: image002.jpg

RE: [flexcoders] help with java Flex plz

2009-08-03 Thread James Ward
I have some starter links (videos, articles, etc) on my blog:
http://www.jamesward.com/blog/flex-and-java-resources/

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of adamlee2010
Sent: Monday, August 03, 2009 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help with java Flex plz



I'm java developer and i like flex very much .. my problem that i don't know 
successful way to connect java with flex.

So plz any one was connected Java with Flex and was making good projects with 
them plz tell me the steps step by step... because i tried a lot of ways 
through the internet and not worked successfully.

Thanks and i hope ur response very soon my friends.

M.adam



Re: [flexcoders] wmode=opaque/transparent and linux

2009-06-24 Thread James Ward
This should work fine with a newer version of Firefox (minimum 3.1 I think) and 
Flash Player 10.

I have Firefox 3.5 RC and FP 10 and it works fine.

-James



From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Wed Jun 24 13:03:40 2009
Subject: [flexcoders] wmode=opaque/transparent and linux



Does this work? One of my developers is telling me that flash on linux
doesnt allow divs to overlap flash material. Is this true or is there
something wrong with his setup.

Thanks
Hank

--
blog: whydoeseverythingsuck.com




RE: [flexcoders] Re: Flash speed test - please participate - only 1 click required !

2009-04-15 Thread James Ward
Testing the frame rate in Flash Player isn't usually an accurate picture of 
performance because the browsers actually artificially limit the frame rate.  
More details:
http://www.jamesward.com/blog/2008/04/10/bursting-bubbles/

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tom93438
Sent: Sunday, April 12, 2009 11:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flash speed test - please participate - only 1 click 
required !





One other test that would also be useful:
Please hit:

http://flatim3000.appspot.com/?fps=24

Does the same as before, but tests for 24 fps.

thanks

tom

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, tom s 
tcs2...@... wrote:

 Hi All,

 I'm doing some tests to see how 'fast' the Flash Player is in a variety of
 environments.
 Please click the link to take part: (you don't have to do anything other
 than click the link)

 http://flatim3000.appspot.com


 It's totally malware free. If you're interested, see below for details.
 Please hit it as many times as you like, from as many different environments
 as you can :)
 I'll share the results when I'm done.

 cheers

 tom

 details
 =
 The SWF:
 1. attempts to set the frame rate to 1000
 2. listens for enter_frame 10,000 times
 3. records how long (2) takes
 4. computes the actual FPS
 5. send the data to a server, along with details on OS, Browser, FP version,
 IP

 Any suggestions/improvements - let me know...


inline: image001.jpginline: image002.jpg

RE: [flexcoders] Running AIR application with ADL in Linux

2009-04-01 Thread James Ward
You need to overlay the AIR SDK on top of your Flex SDK:
http://blogs.adobe.com/ashutosh/2009/03/flex_builder_linux_with_air_15.html#comments

I think the adl that you are trying to run is the Mac version of adl.

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of rfkrockteekers
Sent: Wednesday, April 01, 2009 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Running AIR application with ADL in Linux


Is it possible to debug AIR applications on Linux using ADL? If I try and run 
it from command line by ./adl, I get errors saying cannot execute binary 
file. Is there something I need to do to make it work?
I'm using Ubuntu 8.04, and Flex 3.3.0.4582.

I'm able to compile AIR apps just fine with amxmlc, I just can't run them yet 
using ADL :-|

inline: image001.jpginline: image002.jpg

RE: [flexcoders] AIR as GUI on Linux

2008-12-09 Thread James Ward
I've been exploring using File IO in AIR to connect to DBUS on Linux as a way 
to communicate between AIR apps and other applications.  Nothing to show yet 
but it certainly seems possible.  There is already a JavaScript DBUS API that 
could be partially ported.

Would that work?

-James


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben 
Cessa
Sent: Sunday, December 07, 2008 2:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR as GUI on Linux


I'm starting with Flex/AIR and I wanna build some apps as GUI for some
shell programs like: portage from Gentoo and a DHCP server, may big
doubt here is this: what's the best way to communicate which such
programs from an AIR application or what can I use as middleware
between both.

I really hope that someone with more experience can point me in the
right direction on this one. Thanx a lot for your help.

inline: image001.jpginline: image002.jpg

RE: [flexcoders] 64bit Flash player released, Linux only for ow

2008-11-17 Thread James Ward
Wahoo!!! Check out my video of it working on 64-bit Ubuntu:

http://www.jamesward.com/wordpress/2008/11/17/flash-player-for-64-bit-linux-beta-now-available/

-James


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Monday, November 17, 2008 3:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 64bit Flash player released, Linux only for ow


http://blogs.adobe.com/penguin.swf/2008/11/now_supporting_16_exabytes.html

This is great news !

--
Tom Chiverton
Helping to preemptively administrate mission-critical sexy open-source
clusters



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office. Any reference to 
a partner in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged. If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents. If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

inline: image001.jpginline: image002.jpg

Re: [flexcoders] How to set up FLEX3/LCDS/JBoss Development Enironment ?

2008-10-20 Thread James Ward
http://www.infoq.com/articles/blazeds-intro

Does that help?

-James



From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Mon Oct 20 09:52:34 2008
Subject: [flexcoders] How to set up FLEX3/LCDS/JBoss Development Enironment ?

I need start a project with FLEX3/LCDS on JBoss,

I need set up it and make simple things (like 'hello world') work.

Please help me.

Thanks

Mark





Re: [flexcoders] How to make BlazeDS working?

2008-06-24 Thread James Ward
This article might be helpful:
http://www.infoq.com/articles/blazeds-intro

-James



- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue Jun 24 09:13:34 2008
Subject: [flexcoders] How to make BlazeDS working?

Hi,

I know BlazeDS is a open souce and I like its features.

I do not have a lot java experience,do you think it is hard for me to 
make it working.

Do you have a good tutorial to make BlazeDS work with coldfusion 
application?

Please give me advice.

Thanks

Mark



 


RE: [flexcoders] Re: blazeds performance

2008-03-31 Thread James Ward
Perhaps messaging has some overhead that Remoting doesn't?  Messaging
should still be using AMF3 so that is probably not where the bottleneck
is.  You might still be able to add the same benchmarking stuff to the
underlying channel on the Consumer.

 

-James

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of netdeep
Sent: Wednesday, March 26, 2008 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: blazeds performance

 

Thanks for the reply.

Since you were pulling down 20K rows in less than 2 seconds in the
benchmark app, it 
seems like I am certainly doing something wrong.

I looked at the benchmark app and tried to emulate the way you measured
the 
performance, however it looks like you are doing things a little
differently from the way I 
am. You are setting up a channel in your code:

var channel:AMFChannel = new AMFChannel(null, messagebroker/amf);
channel.netConnection.objectEncoding = ObjectEncoding.AMF3;
var channelSet:ChannelSet = new ChannelSet();
channelSet.addChannel(channel);
ro.channelSet = channelSet;
channelSet.messageAgents[0].addEventListener('acknowledge',loadDone);

But I am just using a subscribe with a consumer:

mx:Consumer id=consumer destination=factory 
message=messageHandler(event.message)/

I tested the time between when messageHandler is first called and when
it is finished 
drawing and it is 52 seconds. I'm not sure if that includes the load or
not. I'm not sure 
how to actually test the performance since I can't grab the start time
from before the 
message is sent since the message request does not originate in my code.

One thing I was also wondering is whether or not I am defining the
channel properly and 
using blazeds or perhaps some other protocol. Here's how I set it up in
my messaging-
config file:

adapters
adapter-definition id=TCgateway class=factory.ReportManager/
/adapters

destination id=factory
adapter ref=TCgateway/
/destination

And ReportManager is just an instance of ServiceAdapter:

public class ReportManager extends ServiceAdapter { 

public Object invoke(Message message) {  }

}

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, James Ward [EMAIL PROTECTED] wrote:

 You will probably need to do more research to determine where in the
process the 
bottleneck is. Check out my Census Benchmark app to see what the
different parts of 
process you can measure (right-click to get the source code):
 http://www.jamesward.org/census
 
 My guess is that it's not blaze that is slow but the data
transformation and display of 
the data in the charts.
 
 I hope that helps.
 
 -James
 
 
 
 - Original Message -
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Wed Mar 26 05:27:37 2008
 Subject: [flexcoders] blazeds performance
 
 I am wondering if anyone has an idea about increasing blazeds
performance. I am 
receiving 
 information from a database for a chart. Each record is a java object
and the entire set 
of 
 aproximately 180K records is contained in two separate arrays since it
is a multi-series 
 chart. I convert the records into actionscript objects from java
objects when I get them. 
 From the time the records are sent to the flex app, til the time they
get drawn on the 
screen 
 takes approximately 45+ seconds. This seems pretty long to me. Is this
on par with what 
 should be expected? If not, what could I do to improve this
performance?


 

image001.jpgimage002.jpg

Re: [flexcoders] blazeds performance

2008-03-26 Thread James Ward
You will probably need to do more research to determine where in the process 
the bottleneck is.  Check out my Census Benchmark app to see what the different 
parts of process you can measure (right-click to get the source code):
http://www.jamesward.org/census

My guess is that it's not blaze that is slow but the data transformation and 
display of the data in the charts.

I hope that helps.

-James



- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Wed Mar 26 05:27:37 2008
Subject: [flexcoders] blazeds performance

I am wondering if anyone has an idea about increasing blazeds performance. I am 
receiving 
information from a database for a chart. Each record is a java object and the 
entire set of 
aproximately 180K records is contained in two separate arrays since it is a 
multi-series 
chart. I convert the records into actionscript objects from java objects when I 
get them. 
From the time the records are sent to the flex app, til the time they get drawn 
on the screen 
takes approximately 45+ seconds. This seems pretty long to me. Is this on par 
with what 
should be expected? If not, what could I do to improve this performance?



 


Re: [flexcoders] Running LCDS on Tomcat port 80

2008-02-03 Thread James Ward
I use Apache with mod_proxy like this:

  ProxyRemote  /census/*  http://localhost:8080/census/
  ProxyPass /census http://localhost:8080/census
  ProxyPassReverse /census http://localhost:8080/census


For kernel based port forwarding you can use iptables on Linux.  More
info here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingPortForwardingWithJBoss

Works great for me and is easier to maintain than mod_jk.

-James


On Sun, 2008-02-03 at 02:43 -0800, Kevin wrote:
 I am wondering which of the different methods for running Tomcat on
 port
 80 are best or most appropriate for deploying my LCDS app. In my
 research I seems to have found a couple different options. Is there a
 preference to any of theses when running a LCDS app vs a servlet based
 app?
 
 1) mod_jk: sounds this this is the preferred method.
 I saw this post
 http://www.brightworks.com/technology/brightworks_articles/setting_up_a_\
 windows_tomcat_fds_server.html
 which is great, but it also seemed like he was a little unsure if it
 was the correct way to achieve this. Thoughts?
 
 2) jsvc interface
 
 3) kernel based port forwarding: I have no idea how to do this?
 
 Lastly, is there a way to use port 80 without having to run everything
 through an apache server (besides running with root privileges)?
 
 Thanks for your help.
 
 - Kevin
 
 
 
 
  


RE: [flexcoders] Re: BlazeDS examples?

2008-01-31 Thread James Ward
All you need to do is download BlazeDS, and run Tomcat's startup.bat
then go here:

http://localhost:8400/blazeds-samples/

 

-James

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jovialrandor
Sent: Wednesday, January 30, 2008 8:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: BlazeDS examples?

 

I'm not familiar on setting up a Java environment. The manual is 
not too clear. Also, it's surprising that no one has put any 
working examples online.

THanks

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, James Ward [EMAIL PROTECTED] wrote:

 If you download Blaze there is a samples war file that you can 
deploy in any app server. The samples include quite a few different 
example applications and tutorials. Does that help?
 
 -James
 
 
 
 - Original Message -
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Fri Jan 25 19:55:50 2008
 Subject: [flexcoders] BlazeDS examples?
 
 anybody have any resources of a working example using the new 
BlazeDS?


 

image001.jpgimage002.jpg

Re: [flexcoders] BlazeDS examples?

2008-01-26 Thread James Ward
If you download Blaze there is a samples war file that you can deploy in any 
app server.  The samples include quite a few different example applications and 
tutorials.  Does that help?

-James



- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Fri Jan 25 19:55:50 2008
Subject: [flexcoders] BlazeDS examples?

anybody have any resources of a working example using the new BlazeDS? 



 


Re: [flexcoders] Anyone have a template ant build file for FDS?

2008-01-13 Thread James Ward
See if this one helps:

http://flexapps.cvs.sourceforge.net/flexapps/census/build.xml?revision=1.24view=markup

-James


On Fri, 2008-01-11 at 06:48 -0800, Collene wrote:
 Hi all,
 
 I'm trying to create a Flex Data services application and deploy to
 Tomcat 6 using ant. I created a simple Stock Portfolio application
 from this book: http://www.theriabook.com/ . The Stock Portfolio has
 a remote procedure call using a Java backend and Flex/mxml front end.
 In my build file, I compile the Java classes, then copy the Flex DS
 libs and .mxml files to the appropriate directories in the webapp. I
 then jar this all up and use a catalina task to deploy to Tomcat using
 ant (this is similar to how we deploy our other applications). I then
 go to http://localhost:8080/stockportfolio, which goes to
 http://localhost:8080/StockPortfolio.mxml. And it works (my
 application shows up, and the remote calls work great). However, if I
 make a small change to my code and deploy again using the same ant
 build file, then go back to http://localhost:8080/stockportfolio, it
 indicates the application can not be found. Checking out the Tomcat
 webapps directory, stockportfolio is there, but the only directory
 left inside the folder is WEB-INF/lib, with all of the jar files. 
 I've encountered this problem before (a jar locking problem in
 Tomcat), so added antiResourceLocking=true and antiJARLocking=true
 to my context.xml file, stopped Tomcat, deployed again, and that fixed
 the problem (so I'm able deploy without the jar files locking up), but
 a new one has popped up. I can only deploy this way 3-4 times before
 Tomcat displays an out of memory error. Watching my task manager
 while deploying and then going to the application, I think this
 happens as the .swf is created. Each time I redeploy and then visit
 the application, the memory usage continues to rise. I've increased
 the memory allocated to Tomcat, but it doesn't help if the memory
 usage continues to rise as I deploy several times (which I tend to do
 during development of the application).
 
 I'm trying to find a better way to deploy the application, and if this
 is indeed caused by compiling the mxml to swf, I'd like to compile the
 swf during deployment using ant. So I looked on the web and fount
 flex ant tasks (http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks ).
 However, I have yet to find a good ant build file I can use as a
 template for a Flex Data Services application, and was hoping someone
 could point me in the right direction (or perhaps provide a solution
 to the problem I have above). Any attempts so far at compiling using
 mxmlc and the ant tasks have corrupted my application source and so
 the application doesn't run (solve one error, another pops up, very
 frustrating process). Any help/advice is appreciated, thanks!
 
 
 
 
  


RE: [flexcoders] Open Source ActionScript HTML/CSS broswer released

2008-01-08 Thread James Ward
I think that would be me.

I should have a project setup for Alex's code in the next week.  Email
me directly if you want to be a contributor.

-James


On Tue, 2008-01-08 at 10:46 -0800, Alex Harui wrote:
 Someone is looking into opensourcing my code.
 
  
 

 __
 From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Hayes
 Sent: Tuesday, January 08, 2008 10:42 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Open Source ActionScript HTML/CSS broswer
 released
 
 
  
 
 
 On a (somewhat) related note, has anyone had a chance to play with the
 code that Alex Harui posted here:
 http://blogs.adobe.com/aharui/2008/01/html_and_flex_1.html ?
 
 I'm actually looking for something to display html tables, some
 horrible hackery on my part got it to display more or less what I'm
 wanting,
 but I'm lacking time to take it much further in the near future (and I
 fear it may be beyond my skill in any case).
 In fact, the html I have to display is horrible, so it's probably a no
 go without me re-writing it in any case(in which case divs may be
 better for our purposes).
 
 Alex, are you OK with it being open sourced (say google code)? Is
 anyone interested in working on it ?
 (Many thanks for posting it, by the way, it's much appreciated, as is
 the wrapper project below.)
 
 I've only had the briefest of looks at the wrapper project, but saw in
 the docs that table support is yet to come.
 
 regards,
 
 Jim.
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of flashcodersny
 Sent: Mon 07/01/2008 23:17
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Open Source ActionScript HTML/CSS broswer
 released
 
 Motion  Color Inc. today open-sourced a public beta version of
 Wrapper, formerly used for closed-sourced projects. Wrapper is a
 cross-browser compliant HTML/CSS rendering engine written in
 ActionScript that sits on top of your standards compliant HTML page.
 Wrapper eliminates cross-browser issues and makes integrating
 ActionScript and HTML/CSS projects possible without needing to
 compile. Wrapper will be available free from
 http://code.google.com/p/htmlwrapper
 
 __
 This communication is from Primal Pictures Ltd., a company registered
 in England and Wales with registration No. 02622298 and registered
 office: 4th Floor, Tennyson House, 159-165 Great Portland Street,
 London, W1W 5PA, UK. VAT registration No. 648874577.
 
 This e-mail is confidential and may be privileged. It may be read,
 copied and used only by the intended recipient. If you have received
 it in error, please contact the sender immediately by return e-mail or
 by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
 do not disclose its contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs
 Email Security System.
 __
 
 
  


Re: [flexcoders] Spring Framework with BlazeDS

2008-01-04 Thread James Ward
Check out:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1035406

and the old test drive has a Spring example:
http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/

-James


On Fri, 2008-01-04 at 09:16 -0800, Rodrigo Pereira Fraga wrote:
 hi!
 
 With OpenAMF, I had a class SpringBeanInvoker that drew my beans, 
 exist something similar in BlazeDS that I can to use to call my Beans 
 of Spring?
 
 Thanks!
 
 Atenciosamente:
 ---
 | Rodrigo Pereira Fraga |
 http://www.digows.com 
 
 e-mails: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 ---
 
 
 
 
  


Re: [flexcoders] Re: BlazeDS and Java 5 Enum Support - works only one way?

2008-01-03 Thread James Ward
Please file a Feature Request:
http://bugs.adobe.com/flex

Send the list the bug number so that we can all go vote for it.

-James


On Wed, 2008-01-02 at 21:33 -0500, Anatole Tartakovsky wrote:
 James,
You might want to consider to add [Enum... to thecompiler metatags
 - henerated code provided -in the bottom portion of blog
 http://flexblog.faratasystems.com/?p=242
 Thanks,
 Anatole
 
  
 On 1/2/08, James Ward [EMAIL PROTECTED] wrote: 
 Hi Vijay,
 
 Only mapping Strings to Enums is supported. Can you file an
 enhancement
 request? http://bugs.adobe.com/flex
 
 Let the list know the bug number so those interested can go
 vote for it.
 
 -James
 
 On Wed, 2007-12-19 at 19:05 -0800, moonusamy wrote:
  Unfortunately that doesn't work for me. I have an AS class 
  corresponding to every Java class including enums. I want to
 be able
  to pass an instance of the AS class as the arg and have it
 translate
  to the appropriate Enum. 
  
  So basically here's what I want to do: 
  on the Java side:
  public enum Color {RED, GREEN}
  A method on a Java class Bar as follows:
  public void foo(Color c);
  
  on the AS side:
  [RemoteClass(alias=Color)] 
  public class ASColor implements IExternalizable
  {
  private var _value:String;
  
  public function ASColor(val:String=null):void {
  this._value = val;
  }
  
  public function get value():String { 
  return this._value;
  }
  
  public static const RED:String = RED;
  public static const RED:String = GREEN; 
  
  public function readExternal(input:IDataInput):void { 
  this._value = input.readUTF();
  }
  
  public function writeExternal(output:IDataOutput):void {
  output.writeUTF(this._value);
  }
  }
  
  var c:ASColor = new ASColor( ASColor.RED);
  invoke foo(c) thru RemoteObject
  
  Note: The enum implementation on the AS side is weak but
 that is just
  a limitation of AS3 not having an equivalent of
 readResolve(). 
  
  --- In flexcoders@yahoogroups.com, Peter Farland
 [EMAIL PROTECTED]
  wrote: 
  
   If you have an Enum argument in a Java method, you need to
 send it a
   String. During method invocation, BlazeDS will use
   Enum.valueOf(desiredClass, yourStringValue) to create an
 enum on 
  your
   behalf.
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED]
  On
   Behalf Of moonusamy 
   Sent: Wednesday, December 19, 2007 3:45 PM
   To: flexcoders@yahoogroups.com 
   Subject: [flexcoders] BlazeDS and Java 5 Enum Support -
 works only
  one
   way?
   
   
   If I have a Java method that returns an Enum, it seems to
 be
  serialized 
   ok as a String, but if I have a Java method that takes an
 Enum
  argument,
   I get the same error I used to get before with LCDS 2.5.1:
   
   faultDetail = Types cannot be instantiated without a
 public, no 
   arguments constructor.
   
   Java 5 Enums don't have public no-arg constructors.
   
   Unless I am missing something, Enum support in BlazeDS
 works only
  one
   way. Anyone hit this?
   
   Vijay
   
   
   
   
   --
   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
  
  
  
  
  
  
 
 
 
 
 
  


Re: [flexcoders] Re: BlazeDS and Java 5 Enum Support - works only one way?

2008-01-02 Thread James Ward
Hi Vijay,

Only mapping Strings to Enums is supported.  Can you file an enhancement
request?  http://bugs.adobe.com/flex

Let the list know the bug number so those interested can go vote for it.

-James


On Wed, 2007-12-19 at 19:05 -0800, moonusamy wrote:
 Unfortunately that doesn't work for me. I have an AS class
 corresponding to every Java class including enums. I want to be able
 to pass an instance of the AS class as the arg and have it translate
 to the appropriate Enum. 
 
 So basically here's what I want to do:
 on the Java side:
 public enum Color {RED, GREEN}
 A method on a Java class Bar as follows:
 public void foo(Color c);
 
 on the AS side:
 [RemoteClass(alias=Color)]
 public class ASColor implements IExternalizable
 {
 private var _value:String;
 
 public function ASColor(val:String=null):void {
 this._value = val;
 }
 
 public function get value():String {
 return this._value;
 }
 
 public static const RED:String = RED;
 public static const RED:String = GREEN; 
 
 public function readExternal(input:IDataInput):void {
 this._value = input.readUTF();
 }
 
 public function writeExternal(output:IDataOutput):void {
 output.writeUTF(this._value);
 }
 }
 
 var c:ASColor = new ASColor(ASColor.RED);
 invoke foo(c) thru RemoteObject
 
 Note: The enum implementation on the AS side is weak but that is just
 a limitation of AS3 not having an equivalent of readResolve(). 
 
 --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED]
 wrote:
 
  If you have an Enum argument in a Java method, you need to send it a
  String. During method invocation, BlazeDS will use
  Enum.valueOf(desiredClass, yourStringValue) to create an enum on
 your
  behalf.
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of moonusamy
  Sent: Wednesday, December 19, 2007 3:45 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] BlazeDS and Java 5 Enum Support - works only
 one
  way?
  
  
  If I have a Java method that returns an Enum, it seems to be
 serialized
  ok as a String, but if I have a Java method that takes an Enum
 argument,
  I get the same error I used to get before with LCDS 2.5.1:
  
  faultDetail = Types cannot be instantiated without a public, no
  arguments constructor.
  
  Java 5 Enums don't have public no-arg constructors.
  
  Unless I am missing something, Enum support in BlazeDS works only
 one
  way. Anyone hit this?
  
  Vijay
  
  
  
  
  --
  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] Announcing BlazeDS: Open Source Remoting and Messaging

2007-12-13 Thread James Ward
More info here:
http://coenraets.org/blog/2007/12/blazeds-open-sourcing-remoting-and-mes
saging/

And my new BlazeBench is here:
http://www.jamesward.org/wordpress/2007/12/12/blazebench-why-you-want-am
f-and-blazeds/

-James


RE: [flexcoders] Classloader issue using Flex Data Services with OC4J 10.1.3

2007-06-02 Thread James Ward
Oh the joys of the OC4J Classloader.  It's been a long time since I used OC4J 
and Flex, but I do remember it being an adventure.  None-the-less I'd suggest 
you try LCDS 2.5 and see if we have dealt with the problem.  You can find LCDS 
2.5 at the bottom of this page:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401825

If that doesn't help I'll see if I can get someone from engineering to help 
figure this out.

Sorry I don't have a better answer for you.

-James


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
mattjshannon
Sent: Friday, May 04, 2007 9:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Classloader issue using Flex Data Services with OC4J 
10.1.3

Hi,

As a learning exercise, I have tried to port James Ward's WeBudget 
RIA Flex 1.5 Cairngorm 0.99 EJB 3 application across to Flex 2.0.1 
with FDS using Caigrngorm 2.2 running on Oracle Containers for Java 
10.1.3 (deployed as an enterprise application / EAR)

http://www.jamesward.org/wordpress/2005/06/26/10/

I also have followed FDS setup instructions for OC4J per the 
following link :-

http://www.adobe.com/support/documentation/en/flex/2/install.html#oc4j

I've got the application partially firing with FDS able to correctly 
retrieve the entity beans results (containing both simple string/date 
and complex attributes such as java.util.collections attributes) from 
the remoted ejb session bean services and instantiate local client 
actionscript view object representations accordingly.

What I'm experiencing however, is when trying to push actionscript 
view object's back to the server which contain complex array types as 
parameters to methods of the remoted EJB session beans, a service 
fault occurs stating the flex.messaging.io.ArrayCollection class was 
not found.

What I found was moving all the flex web app's java delegate classes 
along with ALL flex* and common* libraries out of the applications 
WEB-INF/lib folder to OC4J's j2ee/home/applib folder fixed the 
issue. Presumably as they are now picked up as global libraries and 
available to all J2EE application components deployed to the 
container (must be running in a parent classloader to the individual 
applications deployed).

The exact error I received is shown at the bottom of this message.

Has anyone seen a similar classloading issue on other application 
servers for FDS projects?

What component on the server is actually trying to perform the 
class.forName below? Where is it running?

Presumably it is not a component packaged in the web application of 
the EAR I deployed to the server - otherwise it should have picked up 
the libraries under WEB-INF/lib

cheers

Matt.

-
07/05/04 23:46:31 [Flex] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/5/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
rootCause = (Typed Object #1 'javax.ejb.EJBException')
causedByException = (Typed Object 
#2 'oracle.classloader.util.AnnotatedClassNotFoundException')
localizedMessage = 

Missing class: flex.messaging.io.ArrayCollection

Dependent class: com.evermind.io.ClassLoaderObjectInputStream
Loader: oc4j:10.1.3
Code-Source: /C:/oc4j101320/j2ee/home/lib/oc4j-
internal.jar
Configuration: code-source in META-INF/boot.xml in 
C:\oc4j101320\j2ee\home\oc4j.jar

This load was initiated at webudget.root:0.0.0 using the Class.forName
() method.

The missing class is available from the following locations:

1. Code-
Source: /C:/oc4j101320/j2ee/home/applications/webudget/webudgetWEB/WEB
-INF/lib/flex-messaging.jar (from WEB-INF/lib/ directory in 
C:\oc4j101320\j2ee\home\applications\webudget\webudget
WEB\WEB-INF\lib)
This code-source is available in loader 
webudget.web.webudgetWEB:0.0.0. This is the current thread's context 
loader, and it appears that Class.forName() was used to load the 
dependent class
. If a loader was not explicitly passed to Class.forName(), try 
passing the result of calling Thread.currentThread
().getContextClassLoader().


annotation = (Typed Object 
#3 'oracle.classloader.util.MissingClass')
exception = null
message = 

Missing class: flex.messaging.io.ArrayCollection

Dependent class: com.evermind.io.ClassLoaderObjectInputStream
Loader: oc4j:10.1.3
Code-Source: /C:/oc4j101320/j2ee/home/lib/oc4j-
internal.jar
Configuration: code-source in META-INF/boot.xml in 
C:\oc4j101320\j2ee\home\oc4j.jar

This load was initiated at webudget.root:0.0.0 using the Class.forName
() method.

The missing class is available from the following locations:

1. Code-
Source: /C:/oc4j101320/j2ee/home/applications/webudget/webudgetWEB/WEB
-INF/lib/flex-messaging.jar (from WEB-INF/lib/ directory in 
C:\oc4j101320\j2ee\home\applications\webudget\webudget
WEB\WEB-INF\lib)

This code-source is available in loader 
webudget.web.webudgetWEB:0.0.0. This is the current thread's context 
loader, and it appears that Class.forName() was used to load the 
dependent class
. 

RE: [flexcoders] FDS 30 Minute Testdrive Project - problems creating a new project

2007-06-02 Thread James Ward
It seems there is a version mismatch between the Test Drive and the version of 
Flex Builder you are using.  I'd make sure you have updated to Flex 2.0.1 
Hotfix 2 and if that still doesn't work, download LCDS 2.5 (from the bottom of 
the Hotfix 2 download page) and use the Test Drive which is included with that. 
 I hope that helps.

-James


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of annespg
Sent: Tuesday, May 29, 2007 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS 30 Minute Testdrive Project - problems creating a new 
project

I'm trying to use the FDS 30 Minute TestDrive sample apps inside 
Flex Builder. I downloaded the test drive and all the samples work 
just dandy fine, and I can view the source etc. So I wanted to load 
some of the sample apps into Flex Builder so that I could modify and 
play with them with the debugger so as to learn more. 

I've tried the following:
create New Project - use Flex Data Services/compile app locally
Root Folder: C:\fds-tomcat\webapps\ROOT
Root URL: http://localhost:8600/ROOT. When I click Finish, I get the 
following 3 errors in the Output panel:

unable to load SWC fds.swc: multiple points
unable to load SWC fds.swc: multiple points
The definition of base class Locale was not found
Could not resolvemx:Application to a component implementaion

I am on Flex 2.0.143459.

I've verified that fds.swc is indeed in the 
C:\fds-tomcat\webapps\ROOT\WEB-INF\flex\libs folder.
I don't know what the other messages mean or what to do.

I then stubbornly unzipped one of the sample apps into the 
FlexBuilder project folder (which I named FDS TestDrive Samples) and 
tried to run it anyway to see if I could get more info. I then get 
a browser window with the following additional errors:
type Status report
message /ROOT/FDS%20TestDrive%20Samples/Chat.html
description The requested resource (/ROOT/FDS%20TestDrive%
20Samples/Chat.html) is not available.

So I guess one problem is that it is not making an html document. 
But I don't know how to correct that.

I have no idea what to do. Any help would be GREATLY appreciated.
 


Re: [flexcoders] XMLHTTPRequest in Flex instead of Javascript

2007-05-12 Thread James Ward
You can also use the HTTPService and integrate with JAAS pretty easily.
We do this in the Meldware Flex based email client.  Here are a few code
snippets:

From Services.mxml:

mx:HTTPService id=loginService
url=j_security_check
showBusyCursor=true
useProxy=false/


From LoginDelegate.as:

public function login(user:UserVO):void
{
  var params:Object = new Object();
  params.j_username = user.username;
  params.j_password = user.password;
  var call:AsyncToken = service.send(params);
  call.addResponder(responder);
}

Hope that helps.

-James


On Fri, 2007-05-11 at 04:41 -0700, Jon Bradley wrote:
 On the same line of thought, since HTTPRequest seems to be one of the 
 answers to my problem, has anyone tried to perform user 
 authentication through that?
 
 The system we're developing uses servlets for all communication - but 
 it creates these dynamically as we define pages that contain 
 'portals' (every page is a dynamically created JSP page basically) in 
 the backend system.
 
 Am I correct to assume that if I can do a form post in an XHTML page, 
 I can convert that post to the HTTPRequest in Flex?
 
 thanks all!
 
 jon
 
 
 
 
  


Re: [flexcoders] FDS example

2007-04-12 Thread James Ward
I have 3 or 4 with ant builds on sourceforge under the flexapps project.  You 
will have to check them out of cvs.  I think flexpaint and census are good ones 
that use fds.

-James



- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Sent: Thu Apr 12 05:04:33 2007
Subject: [flexcoders] FDS example

Hi all,
Does anyone have a good example of a FDS application with proper 
deployment instructions? I've just started with it  am finding some 
things a bit confusing.
PLease help !

Regards,
Robi.



 


Re: [flexcoders] Java developer is glad to participate in open source Flex project.

2007-02-12 Thread James Ward
The buni.org project is also looking for volunteers.  They have a Flex 2
based email client.

http://www.buni.org/

-James


On Mon, 2007-02-12 at 05:48 -0800, Igor Costa wrote:
 Hi Alexander
 
 you could start looking at Code Google
 and
 
 www.riaforge.com
 www.osflash.org
 
 
 Best.
 
 
 
 On 2/12/07, alex_s9v [EMAIL PROTECTED] wrote:
 Hi all!
 My name is Alexander.
 
 I have a passion for Flex and I'd like to participate in open
 source
 flex project.
 
 I have 2 years experience with server-side java (Struts, JSF
 and
 Hibernate) and a little experience with Eclipse RCP.
 
 I am searching for open source flex project where I can avail
 and can
 improve my Flex skills.
 
 
 
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.org
 www.igorcosta.com
 skype: igorpcosta
 
 
  


Re: [flexcoders] AMF3/WebService benchmark app

2007-02-11 Thread James Ward
Hi Mark,

Sorry I took that down temporarily because it is still under
construction and wasn't intended for public consumption yet.  It should
be back up with a new version soon.  If you want to run the app on your
own, you can get all the code from SourceForge:
http://www.sf.net/projects/flexapps

-James


On Fri, 2007-02-09 at 21:54 +, Mark Piller wrote:
 Hey guys,
 
 Does anyone know whatever happened to the Census app built by James
 Ward? It used to be available at http://www.jamesward.org/census/. The
 application used to compare performance of various ways of accessing
 server-side data (remoting, web service, http get, etc). If anyone
 saved a copy of the source code for that app before it was pulled, I
 would love to get a copy.
 
 Thanks,
 Mark
 
 
 
 
  


[flexcoders] Open Source Flex Project Needs Your Help

2007-01-05 Thread James Ward
Want to add some Open Source and/or Flex experience to your resume? Want
to contribute to a cool Web 2.0 project?  The Buni.org community is
looking for Flex developers to help finish their Flex based, Meldware
Webmail client  (previously the JBoss Collaboration Server).  Learn more
about Meldware here:
http://www.buni.org/mediawiki/index.php/Meldware_Communications_Suite

Anyone is welcome to help, but what is most needed is someone who can
help improve the UI / look  feel.  To get started check out the
Meldware Developers Pages':
http://www.buni.org/mediawiki/index.php/Meldware_Developers%27_Pages

To see a list of open Flex related bugs check Bugzilla:
http://buni.org/bugzilla/buglist.cgi?query_format=specificorder=relevance+descbug_status=__open__product=Meldware+WebMailcontent=

Meldware is great software and the Buni community is one I have enjoyed
being apart of for almost a year.  We'd love to have some new Flex
contributors! Come on over to the buni.org forums, email lists, and irc
chats to get involved!  Also, if you have questions, email Andrew Oliver
( [EMAIL PROTECTED] ).

-James


Re: [flexcoders] Re: FLEX.war and PROJECT.war

2006-11-28 Thread James Ward
It may help you to reference a few Ant build files that do this:
http://flexapps.cvs.sourceforge.net/flexapps/flexpaint/build.xml?revision=1.1.1.1view=markup
http://flexapps.cvs.sourceforge.net/flexapps/census/build.xml?revision=1.9view=markup

-James


On Tue, 2006-11-28 at 05:22 +, sanjaypmg wrote:
 Thanks for your quick response...
 
 I have tried it but after integrating it when I start my exisiting 
 application, It is failed to load even the first page.
 
 I am sure, I am doing some mistakes while making entries in web.xml.
 
 Could you please help me out which entries should I make for this 
 integration?
 
 I have got the integration with Flex 1.5 from:
 
 http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/co
 mmon/html/wwhelp.htm?context=Flex_Documentationfile=0903.htm
 
 but didnt get for flex 2.
 
 Pleease help.
 
 Thanks
 Sanjay
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 
  It's usually better to have the WARs combined if you can. Make 
 sure
  that the web.xml from the flex.war gets integrated correctly.
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of sanjaypmg
  Sent: Monday, November 27, 2006 4:51 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] FLEX.war and PROJECT.war
  
  
  
  Hey..
  
  I have my flex project under Flex.war folder and another java 
 project 
  under Project.war folder. while I am trying to call my mxml file 
 from 
  my java project I am facing an error.. 
  
  could anyone please help me?
  
  Thanks
  Sanjay
 
 
 
 
 
  


Re: [flexcoders] FDS2 and Linux

2006-11-19 Thread James Ward
I've had this problem too.  Problem is that the installer is using it's
own JVM, rather than the system one.  There is some way to override
this, but I can't remember how.  So alternatively you can download the
HP_UX version, which is actually just a jar file installer, then run:
java -jar fds2_install.jar

Let me know if you have any problems.

-James


On Sat, 2006-11-18 at 22:19 +0100, Christoph Guse wrote:
 Hi List,
 
 today I tried to install FDS2 on my Kubuntu Linux box. Unfortunately
 the 
 installation fails with the error message:
 
 grep: error while loading shared libraries: libc.so.6: cannot open 
 shared object file: No such file or directory
 /tmp/install.dir.13818/Linux/resource/jre/bin/java: error while
 loading 
 shared libraries: libpthread.so.0: cannot open shared object file: No 
 such file or directory
 
 libc.sp.6 is present on my machine. I found somewhere a similar
 problem 
 with CF7 on a japanese site but I didn't understand a word ;-)
 
 Can someone help me?
 
 Regards,
 Christoph
 
 -- 
 
 Christoph Guse
 Löhstraße 34
 41747 Viersen
 Tel. / VoIP 0 21 62 / 50 24 066
 Mobil 01 51 / 17 80 74 84
 
 
 
 
 
  


Re: [flexcoders] FDS Configuration on JBOSS

2006-10-30 Thread James Ward
Try putting flex.war (expanded war file) into the deploy dir.  For
example (on Linux I would do):

cd jboss-4.0.4.GA/server/default/deploy
mkdir flex.war
cd flex.war
jar -xvf ~/fds2/flex.war

Then start or restart JBoss.

Let me know if that works.

-James


On Fri, 2006-10-27 at 14:59 +, polonycjunk wrote:
 Greetings,
 
 I am trying to get FDS running on JBOSS but need help with the 
 configuration. I initially had flex 2 running on tomcat which work 
 perfectly fine for regular applications. For FDS applications, I 
 downloaded JBOSS and tried running the samples that FDS includes 
 (dashboard). The problem is it seems that when running any 
 application (FDS or a regular app), it doesn't seem to compile 
 the .mxml file into a .swf file and display it correctly. Instead, 
 it just displays the .mxml code when i access it.
 
 Here's a break down of what I did. Keep in mind i'm new to JBOSS.
 
 1)Installed jboss-4.0.4
 2) took the flex.war file and extracted everything into the folder 
 C:\jboss-4.0.4.GA\server\default\deploy\jbossweb-
 tomcat55.sar\ROOT.war\flex
 3)Followed steps as described in 
 http://www.adobe.com/support/documentation/en/flex/2/install.html#jbo
 ss 
 Put install_root/resources/security/tomcat/flex-tomcat-
 common.jar and install_root/resources/security/tomcat/flex-tomcat-
 server.jar in the jboss_root/server/default/lib folder. 
 Copy install_root/resources/security/tomcat/context.xml to 
 your web application under the WEB-INF 
 Start JBoss. 
 
 Flex Data Services welcome screen displays fine when accessing 
 http://localhost:8080/flex/ 
 
 At this point, I'm just trying to get regular flex 2 applications to 
 run correctly on JBoss. Are there any other configurations that I 
 must do in order to get JBOSS to compile the mxml files into .swf 
 files and display it correctly? I don't seem to have this problem 
 when using Tomcat or Resin.
 
 
 
 
  


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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: How to parse web services response doc containing namespace

2006-09-02 Thread James Ward
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just ran into this problem too.  And unfortunately this post was quite
a while ago and I can't seem to find an answer...  But I did find a
workaround.  It's not pretty and it seems there should be a better way.
 But until the better way is found, try something like this:

mx:DataGridColumn dataField=age
  mx:itemRenderer
   mx:Component
 mx:Label text={(data as XML).samples::age}
   mx:Script
 ![CDATA[
   private namespace samples = http://census.samples;;
   use namespace samples;
 ]]
   /mx:Script
 /mx:Label
   /mx:Component
  /mx:itemRenderer
/mx:DataGridColumn

- -James


kevntrace wrote:
 Thanks Derek.  I did read in the docs about declaring a namespace 
 variable - indeed if you look at the code I posted, you will see I 
 did exactly that with a variable named csw.  I also tried 
 referencing the namespace in different ways - using the variable, 
 using wildcards etc.  I still got nothing to work.
 
 Could you take another look at my code and try to put in context how 
 I would declare and use that namespace variable?  Like I said, I am 
 a complete newbie to Flex, and this really is my first ever project 
 and I've had no training.  So I'm not sure the namespace variable 
 I've used is in scope when I'm trying to parse the result document, 
 I'm not sure on how to mix MXML and ActionScript (so just giving me 
 an extract of ActionScript code without showing me how to include it 
 in my MXML doesn't really help too much).  I do appreciate all the 
 responses from everyone though.
 
 
 Excerpt where I declare the namespace var;
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 private namespace csw 
 = http://kevin.company.com/services/webservices/adobe/blogSvc/blogPo
 rt;
 use namespace csw;
 ]]
 /mx:Script
 
 Excerpt where I try to parse out using the namespace (none of these 
 work);
 mx:columns
 mx:DataGridColumn headerText=Top Posts 
 dataField=*::getMostPopularPostsResponse.*::ColumnList.*::row.*::ite
 m/
 mx:DataGridColumn headerText=Clicks 
 dataField=getMostPopularPostsResponse.ColumnList.row.item 
 width=75/
 mx:DataGridColumn headerText=Blah 
 dataField=csw::getMostPopularPostsResponse.csw::ColumnList.csw::row.
 csw::item width=75/
 /mx:columns
 
 
 
 --- In flexcoders@yahoogroups.com, Derek Adams [EMAIL PROTECTED] 
 wrote:
 I have been successful in doing that by declaring the namespace as 
 a 
 local variable in ActionScript, then using it in the e4x query. 
 For 
 instance:

 private var aps:Namespace = new Namespace
 (http://cadtel.com/APWebService;);

 model.currentOrderPaths = 
 results.aps::Order.aps::RelatedPaths.aps::Paths.aps::NetworkPath;

 Hope that helps,
 Derek

 
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE+iVesZ9+wiQzdmARAp2iAJoCskU6Zls3Q04H/YTt/ZvLJ+i6vgCgj0I3
a4nTJOoX/rDlAI5nHY50uz4=
=H9Lx
-END PGP SIGNATURE-


--
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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread James Ward
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You do not need root access unless you need to run on a privileged port
(ie. under 1024).  You can install your Java app server of choice with
FDS in any folder you want.

FDS Express is only restricted by it's license.  For instance the
license states that you can only run FDS Express on a single cpu
machine.  And that you can't redistribute FDS Express.

- -James


Michael Schmalle wrote:
 Hey Hank,

 Using FDS also means that you have root access to the web server right?
 Seeing as this is Java, you would need permissions to install in root
 folders.

 So, even if you can use FDS Express, it is still restricted(not free in the
 sense of Flex SDK). Dedicated servers are not cheap.

 Peace, Mike

 On 8/24/06, hank williams [EMAIL PROTECTED] wrote:

   Oh, Sorry Jack, I didnt understand that you were asking a licensing
 question.

 Regards,
 Hank

 On 8/24/06, Jack Caldwell  [EMAIL PROTECTED] wrote:

   Hank:
 
  Not a problem.
 
  I agree overall the web app has a bearing.
 
  However, I just wanted to know how many concurrent users FDS Express
  would allow.
 
  Also, with the developmental version what happens when concurrent user
  number 101 comes knocking on the door.
 
  Thanks,
 
  Jack
 
   --
  *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] *On
  Behalf Of *hank williams
  *Sent:* Thursday, August 24, 2006 2:31 PM
  *To:* flexcoders@yahoogroups.com
 
  *Subject:* Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
  systems - which provides
 
   Hate to jump in, because I see your question is targeted at ted, but I
  have to say one thing. The issue isnt how many users FDS Express can
 support
  but how many users your entire application can support per server.
 Because
  FDS is just a piece of your web application (WAR). So if you are doing
  something that is computationally intense or disk access intense it
 will
  suck up system resources more than otherwise, thus reducing the
 number of
  concurrent users your FDS app can support. So you really need to
 test your
  app to see how many concurrent users your apps, without FDS, will
 support.
  Adding FDS to that will obviously consume resources as well.
 
  What this means is FDS is more expensive when attached to a more
 heavy
  application.
 
  Regards,
  Hank
 
  On 8/24/06, Jack Caldwell [EMAIL PROTECTED] wrote:
 
Ted:
  
   How many concurrent users can FDS Express support?
  
   On the departmental version, if the 101st concurrent user tries to
   connect is there an
   error message or busy message or do they just wait a little longer to
   get the data?
  
   Thanks,
  
   Jack
  
--
   *From:* flexcoders@yahoogroups.com [mailto:
 [EMAIL PROTECTED]
   *On Behalf Of *Ted Patrick
   *Sent:* Thursday, August 24, 2006 1:57 PM
   *To:* flexcoders@yahoogroups.com
   *Subject:* RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
   systems - which provides
  
  FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   FDS Express == 1CPU FREE
  
   - FDS Express is limited to one 1 physical CPU (multi-core supported)
  
   - FDS Express cannot be clustered for failover and redundancy.
  
   All higher level FDS Licenses address the redundancy and failover
   aspects for departmental use (100 concurrent users) and enterprise
   (unlimited users).
  
   The blanket statement that FDS costs $20,000 is dead wrong. For a
   large majority of projects it is free, free, free.
  
   Ted Patrick
  
   Flex Evangelist
  
   Adobe Systems Incorporated
  
  --
  
   *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 ups.com]
   *On Behalf Of *hank williams
  
   *Sent:* Thursday, August 24, 2006 11:19 AM
   *To:* flexcoders@yahoogroups.com
   * Subject:* Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of
 backend
   systems - which provides
  
 I have to agree with Ted regarding productivity.
  
   Of course I may just be revealing that I am not as smart as the rest
   of you, but when I was considering various means of connecting to
 my java
   server during the transition to Flex2, I explored Axis and Axis2
 for web
   services.
  
   Figuring out how to use them was *no joke*. I am sure if I had
   dedicated the time to it I could have gotten up and running. But,
 honestly,
   I gave up after several days of study.
  
   The Axis umailing list was fairly useless for beginners, there were
   lots of people having problems with Axis2 and the documentation
 was 

Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread James Ward
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

A few things...

First I am working on a demo that will show the performance and
bandwidth differences between the various ways of exchanging data
between Flex apps and the backend.  I'll let everyone know when it's
ready...  Hopefully next week.

Second, the GZIP thing does work to reduce bandwidth, but you take quite
a hit on latency and server cpu cycles depending on just how much data
and how often stuff is passing through the servlet or apache filter.

In every case I've ever seen, RemoteObject significantly increases
developer productivity, significantly reduces bandwidth, significantly
reduces latency, significantly reduces server load, and significantly
reduces client cpu cycles.  This applies to REST, SOAP, and JSON.  With
the most significant benefits when compared against SOAP, since SOAP is
so verbose compared to the others.

- -James


Dave Wolf wrote:
 Basically every webcontainer these days supports GZIP compression.  We
 use Tomcat in many circumstances which is hyper configurable.  We can
 actually tell it to only compress the SOAP traffic and to do so when
 it exceeds N bytes etc.  So in effect we turn SOAP into a compressed
 binary format. That makes that differential much less relevant.
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7OF4sZ9+wiQzdmARAorBAKCDvmyF/vPp4CANVJ+xOW6fhiTHFwCgv5is
3O+Es/BPlaop2gx5lnPBHYM=
=mnO6
-END PGP SIGNATURE-


--
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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread James Ward
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry for the double post.  Forgot to mention one thing...

The benefits are also seen with DataService, and ever more so when you
use lazyLoading and paging.

- -James


James Ward wrote:
 A few things...
 
 First I am working on a demo that will show the performance and
 bandwidth differences between the various ways of exchanging data
 between Flex apps and the backend.  I'll let everyone know when it's
 ready...  Hopefully next week.
 
 Second, the GZIP thing does work to reduce bandwidth, but you take quite
 a hit on latency and server cpu cycles depending on just how much data
 and how often stuff is passing through the servlet or apache filter.
 
 In every case I've ever seen, RemoteObject significantly increases
 developer productivity, significantly reduces bandwidth, significantly
 reduces latency, significantly reduces server load, and significantly
 reduces client cpu cycles.  This applies to REST, SOAP, and JSON.  With
 the most significant benefits when compared against SOAP, since SOAP is
 so verbose compared to the others.
 
 -James
 
 
 Dave Wolf wrote:
 Basically every webcontainer these days supports GZIP compression.  We
 use Tomcat in many circumstances which is hyper configurable.  We can
 actually tell it to only compress the SOAP traffic and to do so when
 it exceeds N bytes etc.  So in effect we turn SOAP into a compressed
 binary format. That makes that differential much less relevant.

 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7OJ8sZ9+wiQzdmARArHRAJ97Sjew/Y3a0FQfA2r1cysd55K08wCgk2id
mHzyM1OUEl1AVEUbpHWkcCs=
=lRPl
-END PGP SIGNATURE-


--
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] FDS: Can I disconnect a specific client from the server?

2006-07-23 Thread James Ward
I can't find anything in the api:
http://livedocs.macromedia.com/flex/2/fds2javadoc/index.html

However, this could be easily achived my sending a message to the flex
client (via messaging) which told the flex app to disconnect.

-James


On Sat, 2006-07-22 at 14:28 -0700, Tom Bray wrote:
 No, I'm talking about disconnecting on the server-side with Java.  In
 other words, getting a reference to the server-side client object
 using the FDS API and disconnecting it.
 
 -Tom
 
 
 
 On 7/22/06, James Ward [EMAIL PROTECTED] wrote:
 Yup. Look into the disconnect() method on Consumer and
 DataService
 objects.
 
 http://livedocs.macromedia.com/flex/2/langref/mx/messaging/Consumer.html#disconnect()
 
 http://livedocs.macromedia.com/flex/2/langref/mx/data/DataService.html#disconnect()
 
 -James
 
 
 
 
 On Fri, 2006-07-21 at 14:07 -0700, Tom Bray wrote:
  I'm coming to FDS from FMS2 where I have the ability to
 disconnect any
  client for any reason -- say after a period of inactivity or
 because
  an administrator of the chat has banned a user. Can I do
 this in FDS?
  
  Thanks,
  
  Tom
  
  
  
  
 
 
 
 
 
  



--
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] FDS: Can I disconnect a specific client from the server?

2006-07-22 Thread James Ward
Yup.  Look into the disconnect() method on Consumer and DataService
objects.
http://livedocs.macromedia.com/flex/2/langref/mx/messaging/Consumer.html#disconnect()
http://livedocs.macromedia.com/flex/2/langref/mx/data/DataService.html#disconnect()

-James


On Fri, 2006-07-21 at 14:07 -0700, Tom Bray wrote:
 I'm coming to FDS from FMS2 where I have the ability to disconnect any
 client for any reason -- say after a period of inactivity or because
 an administrator of the chat has banned a user. Can I do this in FDS?
 
 Thanks,
 
 Tom
 
 
 
  



--
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] Chart watermark won't go away in SDK

2006-07-05 Thread James Ward
Try to also clear your browser's cache.

-James


On Wed, 2006-07-05 at 20:17 +, vanhoese wrote:
 I followed the instructions from the readme_charting.htm for the 
 standalone Flex SDK. I also removed the generated cache file that is 
 created when I call mxmlc from the java command through ANT. the new 
 compiled swf still has watermarked charts. Is seems like something is 
 still cached. Has anybody had success installing the serial key after 
 you had used the charting trial? 
 
 Here's my OS and java versions:
  uname -a
 SunOS utopia 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-V240
  java -version
 java version 1.4.2_06
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
 Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
  
 
 
 
 
  



--
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] fds reservation sample not working

2006-04-10 Thread James Ward
Oops.  Forgot to point out that you will need to import the
ArrayCollection class.

-James


On Mon, 2006-04-10 at 17:36 +0200, Paolo Bernardini wrote:
 Hi James
  
 thanks for the reply, but unfortunately it didn't work I got this
 error:
  Severity Description Resource In Folder Location Creation Time Id
 2 Call to a possibly undefined method
 'ArrayCollection' TimeChooser.mxml reservation/samples/reservation line 17 10 
 aprile 2006 17.31.28 36
  
 I tryied to compile anyway, it did, but didn't solve the problem.
 
 
  
 2006/4/10, James Ward [EMAIL PROTECTED]: 
 Hi Paolo,
 
 This is a bug.  For now you can fix it by updating the code
 to:
 
public function set
 selectedDate(_selectedDate:Date):void 
{
dataProvider = new
 ArrayCollection();
 
this._selectedDate =
 _selectedDate;
 
for (var i:uint = 0; i = 23; i
 ++) 
{
addDate(i,0);
addDate(i,15);
addDate(i,30);
addDate(i,45); 
}
 
}
 
private function
 addDate(h:uint,m:uint):void
{
var t:Date = new
 Date(_selectedDate.getTime()); 
t.setHours(h);
t.setMinutes(m);
dataProvider.addItem(t);
if ((t.getHours() ==
 _selectedDate.getHours())  ( t.getMinutes() ==
 _selectedDate.getMinutes()))
{
selectedIndex =
 dataProvider.length ;
}
} 
 
 
 Let me know if that works.
 
 -James
 
 
 On Mon, 2006-04-10 at 09:20 +, Paolo Bernardini wrote:
  I was looking at the reservation sample that come with the
 flex data
  services, and I noted than unlike beta1, with beta2 when you
 drag to 
  make a reservation the two combos displaying the time don't
 update to
  reflect the selection of the drag action.
  I checked the code and I didn't see any error, it looks like
 there is
  a bug with the selectedIndex of the combo in
 TimeChooser.mxml.
 
 
  if ((t.getHours() == _selectedDate.getHours()) 
 (t.getMinutes() ==
  _selectedDate.getMinutes())){
selectedIndex = dp.length;
 
} 
dp.push(t);
  }
 
  can someone confirm this?
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 
 --
 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
 
  1.  Visit your group flexcoders on the web.
   
  2.  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  3.  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

* To visit your group on the web

[flexcoders] WeBudget RIA 1.0 Beta 1 (Flex 1.5, Cairngorm 0.99, EJB 3)

2005-06-29 Thread James Ward
Hi Flex Friends.

I thought you might be interested in a little project I have been
working on which uses Flex 1.5, Cairngorm 0.99, and EJB 3.  It's open
source so hopefully those learning Flex will have a few more real world
examples.  And hopefully some of the Flex and Cairngorm veterans can
offer their wisdom to make the project even better.

Check out my blog for more info (demo, docs, etc)
http://www.cayambe.com/

Let me know what you think.  Thanks!

-James




--
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] How to create copy of a object

2005-06-22 Thread James Ward
Joe,
Your timing on this was impeccable!  I just spent the past hour
wrestling with ObjectCopy (both Manish's and the mx.utils one that
doesn't work).

So here is Manish's ObjectCopy with Joe's hack to preserve type:

  public static function copy(source):Object
  {
var cl:Number = copyCache.length;
for (var i:Number = 0; i  cl; i++)
{
  var o = copyCache[i];
  if (o.s == source)
return o.t;
}

copyDepthLevel++;

var newObj;

if (typeof(source.__constructor__) == function)
{
  // for AS2 classes
  newObj = new source.__constructor__();
}
else if (typeof(source.constructor) == function)
{
  // for Arrays and Objects
  newObj = new source.constructor();
}
else
{
  // for goodness sake, instantiate *something*!
  newObj = new Object();
}

copyCache.push({s: source, t: newObj});

for (var p in source)
{
  var v = source[p];
  newObj[p] = typeof v == object ? copy(v) : v;
}

if (--copyDepthLevel == 0)
  copyCache = [];

return newObj;
  }


Notice that the method signature changed slightly.  This was to avoid
this error:
Error: A function call on a non-function was attempted.

due to: 
newObj = new source.constructor();


I have tested this code in my app and it's working great!  Thanks Joe
and Manish!

-James


On Wed, 2005-06-22 at 11:18 -0400, Joe Berkovitz wrote:
 A couple of big caveats here.
 
 1. mx.utils.ObjectCopy is broken.  (At least, in the Flex 1.5 
 distribution.)  It does not correctly preserve the class of an object 
 when that class is a subclass of some superclass.  Instead, the copied 
 object will appear to have the type of the superclass.
 
 I note that ObjectCopy appears to only be used in net debugging and 
 nowhere else.  So this bug isn't exposed via any documented Flex APIs.
 
 Moral: beware of undocumented internal Flash classes, however convenient 
 they might look.
 
 2. Even if ObjectCopy worked, you cannot conveniently meld Manish's 
 cached-array approach with it, because ObjectCopy will do the wrong 
 thing with cycles (it locks up) and multiply referenced objects (it 
 duplicates instances).
 
 So what to do?
 
 As empirically determined through testing, one correct approach in Flex 
 1.5 to instantiating an object that preserves the type of an existing 
 one is as follows:
 
  var newObj;
  if (typeof(obj.__constructor__) == function)
  {
  // for AS2 classes
  newObj = new obj.__constructor__();
  }
  else if (typeof(obj.constructor) == function)
  {
  // for Arrays and Objects
  newObj = new obj.constructor();
  }
  else
  {
  // for goodness sake, instantiate *something*!
  newObj = new Object();
  }
 
 I've exhaustively tested this and it works correctly for AS2 classes, 
 for Arrays, and for untyped Objects.  You can merge it with Manish's 
 code (which I haven't tested, but looks good) to produce a working, 
 accurate deep copy.
 
 .. .  ..   .j
 
 
 Abdul Qabiz wrote:
  http://manish.revise.org/2005/04/deepcopying-actionscript-objects.html
  
  http://www.darronschall.com/weblog/archives/000148.cfm 
  
  
  -abdul
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Pradeep Chaudhary
  Sent: Wednesday, June 22, 2005 7:33 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How to create copy of a object
  
  I want to create a copy for my custom object before it is modified so
  that i can rollback my changes on any error condition. Do we have any
  inbuilt methods or any alternative solution for creating a copy of
  object so that changes made to original object is not reflected copied
  object.
  
  Pradeep
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  
  
  
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 




 
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] The 'lots-o-text' mx:Text Bug

2005-06-14 Thread James Ward
Hi all.

I just discovered a very strange possible bug in the mx:Text component.
It seems that if I create just a plain old selectable mx:Text field
with lots of text (like 50k) then after simply clicking on the text
field, my CPU utilization jumps to 40% (from 0%) and just sticks there.
If I click again, click somewhere else, select the text, scroll with my
mouse wheel, do nothing, whatever, cpu usage stays at 40%.  If I scroll
the text field by clicking on the up, down or drag-scroll thingy, my CPU
utilization drops back down to 0%.  If I set my mx:Text field to
selectable=false then I don't have this problem (but that's not an
option in this instance).

Has anyone seen this before?  Any ideas on a workaround?

Thanks.

-James




 
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 WYSIWYG

2005-06-09 Thread James Ward
Hi Flex Friends.

Thought you all might be interested in a simple little Flex based
WYSIWYG tool.  Check it out at:

http://www.cayambe.com

I would love to hear what you all think and any ideas for improvement.

Thanks!

-James




 
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: Fun with context roots

2005-06-08 Thread James Ward
This seems like something that could easily be handled by Apache's
mod_rewrite.  Are you running Apache on your front end web server?  How
does the redirect from the front end webserver to the app server happen?
If you are not running Apache there is probably some trickery you could
setup with JSP's.  I do not think that this is something that could be
done with just Flex though.  I think you will need something intelligent
on the server side to make the routing decisions.

-James


On Wed, 2005-06-08 at 21:28 +, sbyrne_dorado wrote:
 Matt,
 I'm sorry that I'm not being clear.  I'm thinking about your JSP
 suggestion, and I suppose that would, and would confirm my original
 premise that Flex has a limitation in this area.
 
 Let's see if I can be a little clearer:
 
 WEB SERVER:
incoming url from browser: http://66.23.45.67/beta/Example.mxml
redirects to 
outgoing to app server:http://192.168.4.110/Example.mxml
 
 APP SERVER:
can know as a deployment parameter that the external name contains
beta.
incoming url from web server: http://192.168.4.110/Example.mxml
emits some HTML with EMBEDS in it, BUT THIS HTML DOES NOT CONTAIN
beta in the URLs that it uses to refer to the Flex servlets.  
It needs to in order for the calls from the browser to the Flex
servlets to be redirected successfully by the Webserver.  My 
assertion is that Flex does not have any support for this
situation, and instead REQUIRES that the Webserver NOT rewrite
the URLs to remove a context root that's used only for 
directing traffic at the Webserver.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
  Could you embed the information by generating the MXML using a JSP?  I
  don't remember if you can access the URL that the browser thinks you are
  hitting from a JSP if it is really a pass-through from another server.
  The JSP might think it's on the real server (192.168...) and not
  (foo.bar.com).  If not maybe you can do it with Javascript on the HTML
  page since the url in the address bar should have the right info?
  
   
  
  Sorry, not much help but I'm still having trouble understanding which
  pieces of info you have access to, don't have access to, when you would
  have access to it, and where and when you need that info.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of sbyrne_dorado
  Sent: Thursday, June 02, 2005 11:41 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Fun with context roots
  
   
  
  I don't think I even get to the state of calling services; the main
  page (with EMBED, OBJECT, etc) needs to be emitting the pseudo context
  root beta, because URLs from it that it will use to download the
  application will need that pseudo context root to get past the web
  server.
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
   What urls are being generated by the server here, named services?  If
   the urls need to be portable can you use relative urls?  I can
   understand that you want a url on one server to redirect to a
  different
   url on another server using a different path, but I guess I'm not sure
   how the context root becomes a problem here.
   

   
   Matt
   

   
   
   
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On
   Behalf Of sbyrne_dorado
   Sent: Wednesday, June 01, 2005 5:06 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Fun with context roots
   

   
   I am wondering if I've stumbled on a limitation of Flex, or if it's a
   limitation of my knowledge (probably the latter).
   
   Here's the situation: I would like to have the ability to have a web
   server dispatch to different app servers based on a contex root like
   path prefix.  But, I don't want to have to force each of those app
   servers to have to have the webapp stored under the same context root
   that the web server URLs are using.
   
   More concretely:
   
   On my webserver I want to be able to say
   http://foo.bar.com/beta/...;, and have the webserver redirect that to
   the internal app server URL http://192.168.1.1/...;; i.e. no beta
   context root.  
   
   Can I do this?  I can't seem to get the URLs generated by the server
   to be the externally visible form of the URLs (i.e. with the beta
   context root) and not have the app server's context root be beta.
   
   Steve
   
   
   
   
   
   
   
   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]
   mailto:[EMAIL PROTECTED] 
   
   *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
   Service http://docs.yahoo.com/info/terms/ .
  
  
  
  

Re: [flexcoders] Re: Not diplaying properly in Firefox browser?

2005-05-26 Thread James Ward
Eric ( anyone else interested),
I just finished a simple Greasemonkey script which fixes this
problem.  :)

Check out the details:
http://www.cayambe.com/

I can now see .mxml pages in Firefox on Linux!  :)

-James


On Wed, 2005-05-04 at 11:19 -0700, Eric Raymond wrote:
 It happens on two machines here, Fedora Core 2 and Red Hat 8.0, so I 
 doubt it is that dependent on your flavor of Linux.  And the fact that 
 it seems to affect Macromedia created apps as well as our own suggest 
 that the problem is much deeper.  FYI, we also have Firefox 1.0.3 (latest).
 
 Let the finger pointing begin!
 
 James Ward wrote:
 
 Hey Eric.  I have the same problem on Gentoo with Firefox 1.0.3.  What
 flavor of Linux are you using?  I tried to replicate this problem on a
 friend's RedHat box and couldn't, but there is a good chance that they
 were using an out-of-date version of Mozilla.
 
 -James
 
 
 On Sun, 2005-05-01 at 02:53 +, Eric Raymond wrote:
   
 
 Flex apps do not seem to be rendering properly when viewed in the
 Mozilla Firefox browser under Linux.
 
 For some reason only the leftmost 200 pixels are displayed.  The rest
 of the application is gray. Resizing the window has no effect.  This
 affects the Store Demo on the macromedia site.
 
 I'm running Shockwave Flash 7.0 r25.
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 




 
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] Cairngorm Confusion

2005-05-25 Thread James Ward
I think you raise valid questions.  The main question is really one that
most developers ask at some point.  Why use these things called
Patterns?

You may want to check out:
http://en.wikipedia.org/wiki/Design_Patterns
http://java.sun.com/blueprints/corej2eepatterns/

or search google.  There are many, many article on Pattern based
development.

And my short answer to the What is Cairngorm? question is:

Cairngorm is a framework for implementing Patterns within a Flex
application.

Hope that helps.

-James


On Wed, 2005-05-25 at 13:08 -0500, Mike Anderson wrote:
 Hello Everyone,
 
 I want so terribly to assimilate Flex into my programming life, as I can
 see the true potential of it now.  Coming from the Flash MX 2004 and
 AS2.0 programming background, I can truly appreciate the power Flex
 offers.
 
 Since I am starting with a clean slate using Flex, I am seeking advice
 on how I should handle my Data Structures on the Client Side, and how I
 can collect data spread across multiple forms, and then send it to my
 Remoting Server.
 
 More than that, I've never been one to stare a Gift Horse in the mouth -
 and ignore good advice.  If I must learn Flex using blood, sweat and
 tears - then maybe that's how I must learn it, but if there is a model I
 can follow, that will serve as a guide for me, I would love to have a
 tool like that.
 
 Everybody keeps touting Cairngorm - and I downloaded everything from the
 website.  I read everything that was available, but there is one
 critical piece missing.  All the whitepapers talk  about, is how
 Cairngorm has evolved through the versions, what has changed since the
 last version, and the fact that it addresses the modeling questions when
 it comes to building RIA's -
 
 Isn't there an article covering the topic of WHAT Cairngorm is?  How it
 works?  Explain in plain English as to HOW the proposed structure and
 included helper files enhances the developers ability to create RIA's
 (which are scalable in nature).
 
 Does everybody understand what I am getting at?  There is nothing on the
 website, that starts at Ground Zero - explaining What Cairngorm is,
 Here is how it works, Here is a coding example of a typical way of
 doing an app, and then in comparison, the Cairngorm way.
 
 I know you all, are probably going to say Well, look at the bundled
 applications, because it will spell it all out there.  The thing is, I
 don't want to have to make that determination for myself.  I am not that
 good yet - I actually need to be TOLD why it should be done this way.
 
 Sorry for the unusual post, but I just need some clarifications on
 Cairngorm.  Pretend I am an idiot - and not somebody who has been
 following this model for months, and has a good grasp of Flex.
 
 Thanks in advance,
 
 Mike
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 




 
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] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread James Ward
ROFL!  Come on Gordon!  If you are going to accidentally leak info, can
you make it a bit juicier?  ;)  Maybe something about some super-secret
project or the Adobe buyout or Flex 2 release dates.  This is good info,
but not *that* exciting!

Still laughing...  :)

-James


On Tue, 2005-05-17 at 17:15 -0700, Gordon Smith wrote:
 Oops... I meant to send this to an internal group, not to flexcoders.
 Enjoy the information, but, for now, don't expect this level of detail
 about our future plans. Of course, we do want your feedback on
 features for the next release, and we'll be sharing more plans with
 you in the future, as we get closer to the next release.
  
 Sorry,
 Gordon
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
 Sent: Tuesday, May 17, 2005 4:54 PM
 To: 'flexcoders@yahoogroups.com'
 Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
 
 
 As you may have gathered, we've been spending a lot of time
 lately leveraging the new features of the Flash Player in the
 new Flex application model. Naturally, you'll also be able to
 leverage those same new features, so we thought we'd start
 giving you a run down of what's new. Of course we don't have
 beta software for you to play with yet, so for now, we'll
 provide a lot of detail so you can evaluate these new features
 and give guidance for us.
 
  
 
 XML manipulation in Flex 2.0 is going to get a lot more
 powerful, as well as faster. By the time that Flex 2.0 ships,
 the Flash Player will support E4X (ECMAScript for XML), a
 set of programming language extensions adding native XML
 support to ECMAScript. The player team is busy implementing
 Standard ECMA-357 as described in
 http://www.ecma-international.org/publications/standards/Ecma-357.htm.
 
 
  
 
 
 Here's how the spec describes what this feature offers: E4X
 adds native XML datatypes to the ECMAScript language, extends
 the semantics of familiar ECMAScript operators for
 manipulating XML objects and adds a small set of new operators
 for common XML operations, such as searching and filtering. It
 also adds support for XML literals, namespaces, qualified
 names and other mechanisms to facilitate XML processing.
 
 
  
 
 
 Lets take a look at a few examples of how you can read XML
 data using E4X.
 
 
  
 
 
 As in the current player, you'll be able to create variables
 of type XML by parsing a String. But XML literals will now be
 supported as well:
 
 
  
 
 
 var employees:XML =
 employees
 employee ssn=123-123-1234
 name first=John last=Doe/
 address
 street11 Main St./street
 citySan Francisco/city
 stateCA/state
 zip98765/zip
 /address
 /employee
 employee ssn=789-789-7890
 name first=Mary last=Roe/
 address
 street99 Broad St./street
 cityNewton/city
 stateMA/state
 zip01234/zip
 /address
 /employee
 /employees;
 
 
  
 
 
 Instead of using DOM-style APIs like firstChild, nextSibling,
 etc., with E4X you just dot down to grab the node you
 want. Multiple nodes are indexable with [n], similar to the
 elements of an Array:
 
 
  
 
 
 trace(employees.employee[0].address.zip);
 
 
 ---
 
 
 98765
 
 
  
 
 
 To grab an attribute, you just use the .@ operator:
 
 
  
 
 
 trace([EMAIL PROTECTED]);
 ---
 
 
 789-789-7890
 
 
  
 
 
 If you don't pick out a particular node, you get all of them,
 as an indexable list:
 
 
  
 
 
 trace(employees.employee.name);
 
 
 ---
 
 
 name first=John last=Doe/
 
 
 name first=Mary last=Roe/
 
 
  
 
 

Re: [flexcoders] HttpRequest and HttpSession access in Remote Obj ect

2005-05-09 Thread James Ward
Pradeep,

I think I saw this same problem when I did not have my RemoteObject
class in the webapp's classloader.  Is the class you are invoking in
either the WEB-INF/lib or WEB-INF/classes dir?

-James


On Mon, 2005-05-09 at 11:22 +0530, Pradeep Chaudhary wrote:
 The class is invoked normally by Remote Object Framework. Since the
 flashgateway.Gateway.getHttpRequest() method returns null I cannot
 call the getSession() method on it. I'am also not dealing with any
 threads at present. Do I need to do some configuration settings to
 have this working. I have the required flashgateway.jar file in
 WEB-INF/lib directory.
 
 Pradeep
 
 On 5/6/05, Peter Farland [EMAIL PROTECTED] wrote:
   You simply get the HttpServletRequest object from
   flashgateway.Gateway.getHttpRequest() and then call
  getSession from
   there. If a session doesn't exist you need to pass true to getSession so
   that it will create one for you.
   
   This method only works if you are within the same thread that made the
   HTTP request - i.e. your class was invoked normally by our RemoteObject
   framework by a normal NetConnection to the AMF Gateway Servlet.
   
   I've not heard of anyone having problems with the syntax so I'd be
   interested to hear how Pradeep or yourself are having issues with this.
   Without more information, however, I can not suggest what might be
   wrong.
  
   
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of Brett Palmer
   Sent: Friday, May 06, 2005 1:53 AM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] HttpRequest and HttpSession access in Remote
   Obj ect
   
   I think Pradeep's question is the same as mine.  Is there a method in
   Flex to gain access to the webcontainers session information?  We need
   this because we have a lot of existing server side code that uses a
   session object to determine login status, user rights, etc.  We also
   use sessions to help determine the load on our servers.
   
   What is the recommended method for sharing session information with a
   Flex/Flash client and the server when using remote objects?
   
   Thanks in advance,
   
   Brett
   
   On 5/5/05, Matt Chotin [EMAIL PROTECTED] wrote:
 
 

Hmm, that seems odd considering we need a request to reach the
   RemoteObject.
 You're not spawning a thread are you? 

  
 
 
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
   On
Behalf Of Pradeep
 Sent: Thursday, May 05, 2005 4:48 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] HttpRequest and HttpSession access in Remote
   Object 
 

  

I'am using Remote Objects to call my Java class methods on server. For
 maintaining user information I need Http Session object. So I tried
 using flashgateway.Gateway.getHttpRequest() and
 flashgateway.Gateway.getHttpRequest().getSession() to
  get
HttpRequest
 and HttpSession objects respectively. But
 flashgateway.Gateway.getHttpRequest() method returns
  null.
 
 Unless I get reference to request obect I will not be able to access
 Session object.
 
 Can anybody please suggest something?
 
 
 
 
 
 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 the Yahoo! Terms of Service.
   
   
   
   Yahoo! Groups Links
   
   
   
   
   
   
   
   
   
   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 the Yahoo! Terms of Service.
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 




 
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] setting up remote object pojo in java packages

2005-05-09 Thread James Ward
Andrew,

I am pretty sure you need the fully qualified classname in your
flex-config.xml file.

-James



On Mon, 2005-05-09 at 18:05 +, greenfishinwater wrote:
 I had originally deployed my java code as individual pojo, into
 web-inf\classes, everything works fine.
 
 My class is ProductStructure, I then put the java classes into a
 package: com.x.y.reference
 
 I copied the package folder tree to web-inf\classes, e.g
 web-inf\classes\com\x\y etc
 
 I get the error when calling the remote object:
 ProductStructure (wrong name: com\x\y\reference\ProductStructure)
 
 Do I need to change the object source in flex-config.xml to include
 the full package name, or have I copied the folder tree incorrectly?
 
 Thank you
 Andrew
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 




 
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] HttpRequest and HttpSession access in Remote Obj ect

2005-05-06 Thread James Ward
Hey Brett  Pradeep,

Flex 1.5 uses the flashgateway.Gateway.getHttpRequest(),
flashgateway.Gateway.getHttpResponse(), and
flashgateway.Gateway.getServletConfig() methods. To use these methods,
you must have the WEB-INF/lib/flashgateway.jar file in your classpath.

Taken from
http://www.macromedia.com/support/documentation/en/flex/1_5/migration.html

I think there is more documentation on this somewhere, but I couldn't
find it.

Hope that helps.

-James


On Thu, 2005-05-05 at 23:52 -0600, Brett Palmer wrote:
 I think Pradeep's question is the same as mine.  Is there a method in
 Flex to gain access to the webcontainers session information?  We need
 this because we have a lot of existing server side code that uses a
 session object to determine login status, user rights, etc.  We also
 use sessions to help determine the load on our servers.
 
 What is the recommended method for sharing session information with a
 Flex/Flash client and the server when using remote objects?
 
 Thanks in advance,
 
 Brett
 
 On 5/5/05, Matt Chotin [EMAIL PROTECTED] wrote:
   
   
  
  Hmm, that seems odd considering we need a request to reach the RemoteObject.
   You're not spawning a thread are you? 
  

   
   
   
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Pradeep
   Sent: Thursday, May 05, 2005 4:48 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] HttpRequest and HttpSession access in Remote Object 
   
  

  
  I'am using Remote Objects to call my Java class methods on server. For
   maintaining user information I need Http Session object. So I tried
   using flashgateway.Gateway.getHttpRequest() and
   flashgateway.Gateway.getHttpRequest().getSession() to get
  HttpRequest
   and HttpSession objects respectively. But
   flashgateway.Gateway.getHttpRequest() method returns null.
   
   Unless I get reference to request obect I will not be able to access
   Session object.
   
   Can anybody please suggest something?
   
   
   
   
   
   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 the Yahoo! Terms of Service.
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 




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

2005-04-20 Thread James Ward

I am running Flex on OC4J Standalone 9.0.4.1 without any problems.

Can you access main.mxml ?

-James


On Wed, 2005-04-20 at 19:00 +, viraf_bankwalla wrote:
 
 Hi,
 
 Has anyone been successful in running a flex application on Oracle 10 
 app server.  I have a test page hello.mxml that I am able to access, 
 however if I access main.mxml.swf it appears that a 404 is being 
 returned.
 
 This works fine under weblogic.  
 
 Thanks
 
 - viraf
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 




 
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] Any Profiler Gurus Out There?

2005-04-07 Thread James Ward

Hi All.
My app's startup time is beginning to get a little slow.  I have done
all the basic optimizations, but they didn't help a whole lot.  So I
decided to dive into the Profiler.  What fun it has been!  ;)

Here is my unique setup:
My web-app server (OC4J) runs on Linux.
I have the installed the Flash Debug Player on my Windows machine
(actually under VMware on the Linux box).
I run my app on the windows machine with the asprofile=true parameter
and was able to get some ProfilerData files outputted to a temp folder.
I copy those files over to my linux box in the
profiler/WEB-INF/ProfilerData dir then run the profiler web-app.
It lists some snapshots.  I click on any of them and I see some swf and
swc url's listed, but no calls, cumulative time, etc.  Just blank
columns other than the first column.

Same deal under any of the drill downs.  None of the juicy info that I
need is there.  :(

I tried the same thing on a simple mxml app and got the same results.

Any ideas?  Thanks!

-James




 
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] Any Profiler Gurus Out There?

2005-04-07 Thread James Ward

Thanks Matt and Abdul.

My mm.cfg file has these settings and seems to be correctly generating a
10MB .dat file when I run my application.  So I think maybe the problem
is moving those files over to my Linux box for processing.  Perhaps
these .dat files hard code a directory location of the .dat file or
something?

I suppose I can try to install Flex and the profiler webapp on my
Windows box.

Let me know if anyone has any other ideas.  Thanks!

-James


On Thu, 2005-04-07 at 09:56 -0700, Matt Chotin wrote:
 Make sure you have the right entries in mm.cfg
 
  
 
 ProfilingOutputFileEnable=1
 
 ProfileFunctionEnable=1
 
 FrameProfilingEnable=0 (this is real expensive if you turn it on but I
 suppose it can be useful)
 
  
 
 I think if you dont have ProfileFunctionEnable youll need the
 profile() blocks that Abdul suggested.
 
  
 
 Matt
 
  
 

 __
 
 From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 07, 2005 2:32 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Any Profiler Gurus Out There?
 
 
  
 
 Strange, you should be able to see things...
 
 Try wraping your code with profile(true) and profile(false), like
 
 function foo()
 {
   profile(true);
   //code..
 
   profile(false);
 }
 
 Then see if it works...
 
 -abdul
 
 
 
 
 -Original Message-
 From: James Ward [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 07, 2005 2:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Any Profiler Gurus Out There?
 
 
 Hi All.
 My app's startup time is beginning to get a little slow.  I have done
 all the basic optimizations, but they didn't help a whole lot.  So I
 decided to dive into the Profiler.  What fun it has been!  ;)
 
 Here is my unique setup:
 My web-app server (OC4J) runs on Linux.
 I have the installed the Flash Debug Player on my Windows machine
 (actually under VMware on the Linux box).
 I run my app on the windows machine with the asprofile=true parameter
 and was able to get some ProfilerData files outputted to a temp
 folder.
 I copy those files over to my linux box in the
 profiler/WEB-INF/ProfilerData dir then run the profiler web-app.
 It lists some snapshots.  I click on any of them and I see some swf
 and
 swc url's listed, but no calls, cumulative time, etc.  Just blank
 columns other than the first column.
 
 Same deal under any of the drill downs.  None of the juicy info that I
 need is there.  :(
 
 I tried the same thing on a simple mxml app and got the same results.
 
 Any ideas?  Thanks!
 
 -James
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 
 __
 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 the Yahoo! Terms of
 Service.
 
 




 
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] Custom Preloader Questions

2005-03-24 Thread James Ward

Hi All.
I have been messing with custom preloader stuff and a few questions have
come up which I can't seem to find answers to, so I am turning to the
guru's.  Basically I want to control what my preloader looks like (this
part is pretty straight forward), but I also want this preloader to stay
on the screen for a little while beyond my app's creationComplete.  I
want it to stay up until I generate another event.  The next thing is
that I would like to use my custom preloader when the browser loads the
swf from cache.  I can't seem to override the default preloader in this
instance.  Only on the first, non-cached pull of the swf.  Is this stuff
possible?  Thanks!

-James




 
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] weird problem with Flashplayer in Linux

2005-03-21 Thread James Ward

Perhaps the difference is JVM version?  Are you running the latest on
your linux box?

-James


On Mon, 2005-03-21 at 16:24 +0100, Christoph Guse wrote:
 Hi list,
 
 I have a weird problem with my app. I'm using Flex and Flash in Linux.
 But let me explain as good I can.
 
 On the picture you can see a part of my application. It is a DataGrid
 with a CellRenderer I did on my own. Every row stands for a job to do.
 As you can see every  CellRenderer has 5 item: a title, start date
 (Anfang), end date (fertig bis), priority (Prioritt) and status
 (Status). Every item comes from a JobObject an is formatted by the
 CellRenderer. The two dates are formatted by the same DateFormatter
 the CellRenderer gets by a ViewHelper (I use the
 Cairngrom-architecture). When I format only one Date, as in the
 screenshot, in the Linux Flashplayer everything is ok. It doesn't
 matter if I format the stard date or the end date. If I format both
 dates, my machine is in a infinite loop. The browser doesn't matter,
 it is in Firefox and Konqueror.
 In Windows there is absolutely no problem with two dates, I checked
 that with a Windows XP box which is slower than the linux box.
 
 Some information of the Linux box:
 Suse 9.2, Kernel 2.6.8-x
 Flashplayer 7.0.25
 Flex 1.5
 1 GB RAM
 
 I want to use Linux and I have to use Linux, so I need a solution for
 that problem. Perhaps there is a newer Linux Flashplayer?
 
 Thanks
 Christoph
 
 screenshot
 -- 
 
  Christoph Guse
  Lhstrae 34
  41747 Viersen
  Tel.  0 21 62 / 50 24 066
  Mobil   01 72 / 160 74 84
  VoIP  0 12 12 / 39 64 48 831
 




 
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 on Oracle 9iAS

2005-03-21 Thread James Ward

I am using Flex on 9iAS standalone.  But if you have the option, use
JBoss or Tomcat.  ;)

-James


On Tue, 2005-03-22 at 07:20 +, ssudha2 wrote:
 
 The supported Application Server listed in Macromedia site does not 
 include Oracle 9iAS.
 
 Does anybody know whether Flex supports Oracle 9iAS application 
 server?
 
 Thanks
 Sudha
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 




 
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] Need help with BEA Weblogic and Portlets

2005-03-18 Thread James Ward

I did that a while back.  It was pretty straight forward...  I used
workshop and imported flex.war to create a web project.  Then added some
portlets.  Sorry I don't have more details, this was like 9 months ago.

Hope that helps somewhat.

-James


On Fri, 2005-03-18 at 08:16 -0800, Jeff Steiner wrote:
 I have a co-worker that is attempting to compile Flex apps into portlets for
 use within WebLogic Portal server.
 
 Anyone here have any experience in that realm?
 
 Thanks,
 Jeff
 http://www.flexauthority.com
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 




 
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] Using embedded fonts in the htmlText property

2005-03-16 Thread James Ward
Min,
Do something like:

function setStyleSheet(event)
{
var myStyleSheet = new TextField.StyleSheet();
myStyleSheet.load(assets/styles.css);
event.target.styleSheet = myStyleSheet;
}

mx:Text width=100% initialize=setStyleSheet(event)
mx:htmlText
![CDATA[
span class='bodyText'test/span
]]
/mx:htmlText
/mx:Text

Hope that helps.

-James


On Wed, 2005-03-16 at 19:37 +, Min Lieu wrote:
 
 Hello,
 
 I've embedded the Futura font family in my Flex application. Can the 
 text within the htmlText property of a mx:Text tag access these fonts?
 
 For example, I have the following stylesheet mystyle.css:
 
 @font-face { 
 src: url(/fonts/lte50154.ttf);
 fontFamily:futura;
 }
 
 bodyText {
 font-family: futura;
 font-size: 12pt;
 text-align: left;
 color: #00;
 }
 
 And I have the following line within my mxml file:
 
 mx:Text htmlText=span class='bodyText'HELLO!/span /
 
 Thanks!
 
 Min
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






Re: [flexcoders] Use hand cursor

2005-03-14 Thread James Ward
I am really surprised that MM didn't do a better job with this. My
personal feeling is that anything that can be clicked, should by
default, use the hand cursor. Sorry for the rant... So I ended up
creating wrapper classes for clickable items. For instance:

class components.Button extends mx.controls.Button
{
function init():Void
{
super.init();
useHandCursor = true;
}

function onPress():Void
{
super.onPress();
}
}


Hope that helps.

-James


On Mon, 2005-03-14 at 16:29 +0200, Robert Stuttaford wrote:
 Hi flex coders,
 
 
 
 Does anyone know how I can force use of the hand cursor, specifically
 on an Image control? Ideally Id love to just go
 instance.useHandCursor = true;
 
 
 
 Do I have to write a derivative and override the relevant mouse
 handlers?
 
 
 
 Thanks!
 
 Robert
 
 
 
 Yahoo! Groups Sponsor
 ADVERTISEMENT
 click here
 
 
 
 __
 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 the Yahoo! Terms of
 Service.
 






Re: [flexcoders] Handling deployment of flex-config.xml?

2005-03-11 Thread James Ward
Eric,
We are using ant to do value replacement in the flex-config then taking
the basic flex.war and dumping all our our custom stuff in. This
approach works well for us since we do value replacements elsewhere as
well. If you want my ant scripts I would be happy to post them.

-James


On Fri, 2005-03-11 at 20:37 +, Eric Raymond wrote:
 
 I'm curious how people handle the flex-config.xml file when they
 deploy their application to a public server?
 
 The issue we have is that the flex config has both development
 settings which should not be released and other settings like
 RemoteObject settings which need to be released when they change with
 respect to a build.
 
 One idea is to have some ant task which modifies the config file prior
 to to creating a .war file.
 
 Another idea is to somehow split up the flex-config file into two
 files: a file that contains the release/development specific info and
 a file which has the common, but likely to change settings like
 remoteobject configurations. We would have two versions of the former
 file.
 
 Has anyone dealt with this in a nice way? FYI, we like to deploy
 straight from version control with no/minimal manual steps involved.
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






TreeGrid Version 2

2005-03-05 Thread James Ward
I just finished some big fixes to the TreeGrid component I have been
working on. Check it out at:
http://www.cayambe.com/plog/index.php?op=ViewArticlearticleId=6blogId=1

Please let me know if you find any bugs or have ideas for improvement.

Thanks.

-James






Re: [flexcoders] Flex concerns

2005-03-04 Thread James Ward
Well we are actually building our entire website / portal in Flex. So
the search engine problem applies to us. Luckily we have a content
management system behind our portal so our solution is to hide an iframe
with a plain old indexable version of our site. Any links into that
iframe get redirected to the correct place in the portal. This is one
of the topics which will be in the article I will be writing in April.

-James


On Sat, 2005-03-05 at 01:13 +0530, Manish Jethani wrote:
 Shell Bryson wrote:
 
  So far I've discovered; search engines ignore Flex apps.
 
 Thankfully! Search engines can't tell the difference between a webpage 
 with *content* (like a news article, a website with food recipes, etc.) 
 and a web application, and they end up indexing the application 
 contents (like all the labels and stuff?). Why would a search engine 
 want to index a Flex app? What's there in a Flex app for a search 
 engine to know about?
 
 My understanding is that Flex is for *applications* while HTML/CSS is 
 for *content*. If you use one for the other, you have trouble.
 
 Manish
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






dynamic rsl loading

2005-02-26 Thread James Ward
Has anyone dealt with loading different rsl's depending on the url or
some other parameter?

What I would like to do is split my application up into small pieces.
If a user has accessed my application but not logged in I don't want
them to have to download the rsl for everything, just the one for login,
registration, etc. Once the user logs in, some things (like navigation)
stay the same, but now the user can see more stuff. So I would like to
load an additional rsl. All using the same base mxml file.

Any ideas?

Thanks.

-James






disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Hi all.
I would like to display the disclosure icon used by the TreeRow in a
custom datagrid cellrenderer. I have tried a number of things, but
can't seem to make it work. Any ideas?

Thanks.

-James






Re: [flexcoders] disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Thanks Manish. What's the equivalent actionscript so that I can do this
in my CustomDataGridCellRenderer.as ?

-James


On Sat, 2005-02-26 at 04:13 +0530, Manish Jethani wrote:
 James Ward wrote:
 
  I would like to display the disclosure icon used by the TreeRow in a
  custom datagrid cellrenderer.
 
 mx:Image source=@Embed(symbol='TreeDisclosureOpen') /
 mx:Image source=@Embed(symbol='TreeDisclosureClosed') /
 
 Manish
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






dropShadow masking?

2005-02-23 Thread James Ward
Hi all. I have encountered some strange behavior when I added a
dropShadow to a VBox which has a WipeDown / WipeUp effect on it. The
dropShadow doesn't wipe with the VBox. This can be seen by adding
dropShadow=true to the cart VBox on the Samples - Explorer - UI
Patterns - Overlay Demo. Am I using this wrong or is this a bug? If
it's a bug is there a known workaround? Thanks.

-James






reset a form?

2005-02-04 Thread James Ward
I wish there were a method on a form to reset it... I have a form in a
viewstack... The user fills out the form clicks save, I set the text
fields text = , and then switch to a different view. Works decent.
However, let's say I allow the user to navigate back to the form. Well,
the validator is now showing it's error messages (required fields)...
Bummer. So I guess I would like a form reset or a way to clear
validation errors. Any ideas?

Thanks.

-James






RE: [flexcoders] ChangeEvent on component in mxml component

2005-02-02 Thread James Ward
asdf gets set by a remoteobject result handler. I think I need to give
a little more detail...

I want to have code in MyComponent.mxml that has logic dependent on
values in the valueobject. So depending on what gets passed to the
component the component renders differently.

Thanks for the help Matt.

-James


On Tue, 2005-02-01 at 22:28 -0800, Matt Chotin wrote:
 How have you declared the asdf property? If its declared just as a
 var you shouldnt need to do anything.
 
 
 
 Matt
 
 
 
 
 __
 
 From: James Ward [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 01, 2005 2:19 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ChangeEvent on component in mxml component
 
 
 
 
 Hi everyone.
 
 I have a mxml component with a ValueObject in it. I am binding to the
 valueobject where I use the component. How can I generate an event
 when
 the data changes?
 
 My code is something like this:
 
 MyComponent data={asdf}/
 
 in MyComponent.mxml I have something like:
 
 ValueObject id=data/
 
 ValueObject is a .as file.
 
 
 So how do I generate an event when {asdf} changes?
 
 Thanks in advance.
 
 -James
 
 
 
 
 
 
 
 __
 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 the Yahoo! Terms of
 Service.
 
 






htmlText and styles

2005-02-02 Thread James Ward
Has anyone successfully applied a style to a Label or Text with
htmlText? I tried span class='mystyle' But that doesn't seem to
work. Thanks.

-James






Re: [flexcoders] htmlText and styles

2005-02-02 Thread James Ward
Replying to myself... Bad form... Sorry.

Doing this:
var myStyleSheet = new TextField.StyleSheet();
myStyleSheet.load(assets/styles.css);
details.styleSheet = myStyleSheet;
details.htmlText = span class='test'test/span;

works, but isn't pretty. Let me know if there is a better way.

Thanks.

-James


On Wed, 2005-02-02 at 13:11 -0700, James Ward wrote:
 Has anyone successfully applied a style to a Label or Text with
 htmlText? I tried span class='mystyle' But that doesn't seem to
 work. Thanks.
 
 -James
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






ChangeEvent on component in mxml component

2005-02-01 Thread James Ward
Hi everyone.

I have a mxml component with a ValueObject in it. I am binding to the
valueobject where I use the component. How can I generate an event when
the data changes?

My code is something like this:

MyComponent data={asdf}/

in MyComponent.mxml I have something like:

ValueObject id=data/

ValueObject is a .as file.


So how do I generate an event when {asdf} changes?

Thanks in advance.

-James






OpenType Fonts?

2005-01-31 Thread James Ward
I am trying to use an OpenType font in Flex and getting this error:
1 Warning found. 

Warning /mxml-test.jsp:16
Font not found at: file:/blah/assets/Fonts/avenirltstd_light.otf

I know the file exists, so does this mean that OpenType Fonts are not
supported?

Thanks.

-James