Re: [flexcoders] Re: Flex and Java Communication

2008-12-04 Thread Ryan Gravener
http://code.google.com/p/wicket-flex-blazeds/

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Thu, Dec 4, 2008 at 4:00 PM, valdhor [EMAIL PROTECTED] wrote:

   Hmmm

 I'm wanting to learn Java and I already know Flex.

 The book mentioned comes from the other direction (Already know Java
 and want to learn Flex).

 Are there any resources/tutorials etc for someone like me who wants to
 learn Java for use with BlazeDS/LCDS. I already know C++ so the
 language itself is pretty easy. I get bogged down on how to create the
 server side application and connect it to Flex.

 Can anybody point me in the right direction?

  



Re: [flexcoders] Re: Detect server timeout in Flex

2008-12-04 Thread Ryan Gravener
make an http request to a page on your server?  depending if there is a
session respond true/false?

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Thu, Dec 4, 2008 at 5:07 PM, oneworld95 [EMAIL PROTECTED] wrote:

   Let me clarify: How do you detect session timeouts in Flex if you're
 not using BlazeDS?

 -Alex


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 oneworld95 [EMAIL PROTECTED] wrote:
 
  Is there a way to detect server timeout in Flex? I'm using Java on the
  backend, with basic authentication. When a user hits the folder, it
  pops up the authentication box. If authenticated, the user can view the
  Flex app. Thanks.
 

  



Re: [flexcoders] BlazeDS and MySQL

2008-11-23 Thread Ryan Gravener
Shameless plug: http://code.google.com/p/wicket-flex-blazeds/

I've never added delete and update functions but if you checkout
http://ryangravener.com/wordpress/?p=52 you can get the jyst.


Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Sun, Nov 23, 2008 at 6:05 AM, Fernando Cabredo [EMAIL PROTECTED]wrote:

   Hi,

 Is there anyone who can provide a tutorial on CRUD operation using Java,
 BlazeDS and MySQL.?

 Thanks,

 Pando

  



Re: [flexcoders] Flex 2 to Flex 3 - LCDS

2008-10-27 Thread Ryan Gravener
If your using flex 3, you should switch over to blazeds as well.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Oct 27, 2008 at 3:37 PM, schneiderjim
[EMAIL PROTECTED]wrote:

   We purchased Flex 2, which at the time, I believe included LCDS (or
 whatever it was called at the time). My belief is that we only use
 LCDS (currently) for remote object calls (I'm honestly not sure we
 need LCDS for remote object, but I'll assume for now that we do
 [without changing backend implementation]).

 We need/want to upgrade to Flex 3 on the UI side, but would prefer to
 leave our remote services unchanged (not even touch the server side of
 the code/libraries) until we understand our licensing options.

 Is this possible? Is it recommended? Any tricks/issues to overcome?
 Any issues with the messaging/licensing that would prohibit us from
 doing this?

 Thanks for any info.

  



Re: [flexcoders] Re: Upload file(from local machine) via web service

2008-10-23 Thread Ryan Gravener
http://weblog.cahlan.com/2006/12/flex-upload-component.html

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Oct 23, 2008 at 11:41 AM, nathanpdaniel [EMAIL PROTECTED] wrote:

   I don't think it's possible (but only sure to about 98% :D). My
 suggestion would be to
 a) (easiest) just create a separate upload page
 b) (little more complicated) create an upload page that doesn't save to
 server but rather just converts the file to base64 encoded string, the
 flex app listens for the uploadCompleteData - that data will be your
 file in base64 encoded string. You can send that in a web service.
 For b - you can look at the Excel library
 (http://code.google.com/p/as3xls/) - more specifically - look at the
 php script which does this to load a local Excel file into the flex
 app. It does upload the file to the server, but doesn't save it, just
 spits it back in a form usable by Flex.

 Hope this helps at least a little, I know it's probably not exactly
 what you're looking for though...
 -Nathan


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amanda
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Does anyone know if flex supports browsing a local file system for a
  file and then sending the file via a web service? I have seen the
  flash.net.FileReference class, but I am not seeing a way to convert
 the
  fileReference to something useful like an XMLDocument so I can send
 it.
 
  Thanks.
  Amanda S.
 

  



Re: [flexcoders] Increase in swf size when upgraded to FlexSDK3

2008-10-20 Thread Ryan Gravener
are you compiling with debug enabled?

Ryan Gravener
http://twitter.com/ryangravener


On Mon, Oct 20, 2008 at 7:40 PM, Shailesh Mangal
[EMAIL PROTECTED]wrote:

   We recently moved from Flex 2.0.1/LCDS 2.5.1 to Flex3.1.0/LCDS2.6 and
 noticed that by
 doing that our swf went from 1.3MB to 1.9MB. This is 50% increase in size.

 Is this typical with Flex 3?

 -Shailesh

  



Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Ryan Gravener
Pseudo multiple inheritance.

Ryan Gravener
http://twitter.com/ryangravener


On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth [EMAIL PROTECTED]wrote:

   And sometimes you even have interfaces with no methods. In this case
 it's a marker (often a parent of other interfaces) and when used in method
 signatures you get type checking.


 On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle [EMAIL PROTECTED]
  wrote:

   Hi,
 It's ICommand.

 The reason is you can stack interfaces on top of each other allowing more
 decoupling to the implementing concrete classes.

 This interface is obvious. Any class that implements it needs eval() and
 only eval. It's like a singleton declaration of implementation.

 If you jammed this evel() method into IUIComponent, maybe all components
 don't need eval. Make sense?

 Also another good example of this type of interface in the flex framework
 is IDataRenderer, it's only declared property is 'data'.

 Mike

  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin [EMAIL PROTECTED]wrote:

   I was wondering if someone can explain why you would need an interface
 so short?

 INTERFACE:

 package my.package.area
 {
 /**
 * Interface for methods that evaluate an object and return a result.
 */
 public interface IEval
 {
 /**
 * Evaluates the input object
 * @o the object to evaluate
 * @return the computed result value
 */
 function eval(o:Object=null):*;

 } // end of interface IEval
 }

 USAGE OF INTERFACE:

 if (value is IEval) { value = IEval(value).eval(o) };

 Cairngorm has a short interface like this as well, though I cannot
 remember what it is. In Cairngorm they say its for naming or to make
 the code easier to understand? I am just not sure why you would do
 this? Help me see the light!

 TIA




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.


  



Re: [flexcoders] Remote calls are not happening using blazeDS in secured environment

2008-10-09 Thread Ryan Gravener
Is your apache http server redirecting to http from https?

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Oct 9, 2008 at 11:23 PM, venkateswarlu naidu 
[EMAIL PROTECTED] wrote:

   Here is the exact error message that i am seeing in the server console
 secure endpoint /messageborker/secureamf must be contacted via secure
 protocol

 Please help me on this.

 Thanks  Regards,
 Venkat.

 - Original Message 
 From: venkateswarlu naidu [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, 9 October, 2008 9:33:56 PM
 Subject: [flexcoders] Remote calls are not happening using blazeDS in
 secured environment

  Hi All,

 Even after adding my-secure-amf channel to remote-config. xml, our flex
 application coludn,t make remote calls.
 I am seeing a failover to HTTP from a HTTPS request in the http url log,
 dont know why it is failing over to
 HTTP://context/messagebroker/ amf from HTTPS://context/messagebroker/
 secureamf in a secured environment.

 Actually this failover is not happening in DEV (in which we have both HTTP
 and HTTPS enabled).

 The problem is specific to QA env (weblogic+clustered +secured) , i dont
 have any clues.

 Can any body help me on this?

 Thanks  Regards,
 Venkat.

 - Original Message 
 From: venkateswarlu naidu contactvenku@ yahoo.co. in
 To: [EMAIL PROTECTED] ups.com
 Sent: Wednesday, 8 October, 2008 10:41:13 PM
 Subject: [flexcoders] could not establish connection to java data service
 from flex client using blazeDS

  Hi All,

 We have a flex+blazeDS+ Java based application, after deploying the
 application in QA env, java data service calls are not happening. When i see
 the URL log in HTTP sniffer tool, the request is getting stopped at URL
 context-root /messagebroker/ amf and finally seeing 502 (CANNOT_CONNECT)
 status.

 The same application is working fine in DEV environment.

 Our QA environment: secured, HTTPS, running behind firewalls and clustered.

 Why the flex client can not connect to the java data services?

 Any help is greatly appreciated.

 Thanks  Regards,
 Venkat.

 Add more friends to your messenger and enjoy! Go to http://messenger.
 yahoo.com/ invite/ http://messenger.yahoo.com/invite/

 --
 Add more friends to your messenger and enjoy! Invite them 
 now.http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/

 --
 Be the first one to try the new Messenger 9 Beta! Click 
 here.http://in.rd.yahoo.com/tagline_messenger_7/*http://in.messenger.yahoo.com/win/
 



[flexcoders] AdvancedDataGridHeaderRenderer loses focus on set dataProvider

2008-10-08 Thread Ryan Gravener
Take a look at this video (sorry the mouse cursor does not appear in it):

http://screencast.com/t/VECik0vjuk

Every time the dataProvider is set the textfield loses focus, and I can't
find a way to restore it.  So essentially on each key stroke the textfield
loses focus, which renders it useless inside the
advanceddatagridheaderrenderer.  I'll provide source if necessary, just
looking for a quick fix if there is one.

Sincerely,
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Flex and BlazeDS in internet environment

2008-10-07 Thread Ryan Gravener
So long as your using flex and not air you can do this:

endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf;
class=flex.messaging.endpoints.StreamingAMFEndpoint/

Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 7, 2008 at 10:53 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Tuesday 07 Oct 2008, Joshua Partogi wrote:
  endpoint=http://localhost:8080/messagebroker/amf;
  Do we have to change the URL?

 Do you expect 'localhost' to resolve to the correct thing for your users,
 on
 their machines ?

 --
 Tom Chiverton
 Helping to dynamically restore distributed networks



 

 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.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






Re: [flexcoders] Eclipse not Building

2008-10-06 Thread Ryan Gravener
make sure you stop the debugger, clear your cache, clean the project
and then set the breakpoint.

On 10/6/08, jitendra jain [EMAIL PROTECTED] wrote:
 Hi Guys,

   I have tried of cleaning and building Flex project using Eclipse. I was
 stunned to see that my debugger points to some commented code. Please help.
 Cleaning and building doesn't helped me.. If any other way to do it??
  Thanks,

 with Regards,
 Jitendra Jain



   Add more friends to your messenger and enjoy! Go to
 http://messenger.yahoo.com/invite/


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Header text

2008-10-05 Thread Ryan Gravener
So long as your using advanceddatagridcolumn you can do
headerRenderer=com.yourcompany.package.ExtendsVBox

and in ExtendsVBox

override public function set data(value:Object) {
super.data = data;
//do stuff
}

Ryan Gravener
http://ryangravener.com/flex


On Sun, Oct 5, 2008 at 7:26 PM, markgoldin_2000
[EMAIL PROTECTED]wrote:

   columns[columnIndexValue].headerText returns header's text.
 How do I get it if I use a custom (VBox) header renderer?

 Thanks

  



Re: [flexcoders] Re: Header text

2008-10-05 Thread Ryan Gravener
Well, you are in luck.  I just did this a few hours ago and it worked.  Put
this method:


override public function set data(value:Object) {
super.data = value;
//do stuff
}

in your Custom renderer.  The variable data will be the column.


Ryan Gravener
http://twitter.com/ryangravener


On Sun, Oct 5, 2008 at 10:09 PM, markgoldin_2000
[EMAIL PROTECTED]wrote:

   Not sure how that helps me, maybe I wasn't clear in my question. I
 need to get header text when I am using a custom renderer for
 column's header.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ryan
 Gravener [EMAIL PROTECTED] wrote:
 
  So long as your using advanceddatagridcolumn you can do
  headerRenderer=com.yourcompany.package.ExtendsVBox
 
  and in ExtendsVBox
 
  override public function set data(value:Object) {
  super.data = data;
  //do stuff
  }
 
  Ryan Gravener
  http://ryangravener.com/flex
 
 
  On Sun, Oct 5, 2008 at 7:26 PM, markgoldin_2000
  [EMAIL PROTECTED]wrote:
 
   columns[columnIndexValue].headerText returns header's text.
   How do I get it if I use a custom (VBox) header renderer?
  
   Thanks
  
  
  
 

  



Re: [flexcoders] Re: Header text

2008-10-05 Thread Ryan Gravener
domain:DomainGrid width=100% height=100%
dataProvider={service.get.lastResult.results}
 creationComplete={resize(grid);}
 editable=true
itemEditEnd={edit(event, grid)}
itemClick={showMenu(event)}
resize={resize(grid,event);search()}
sortableColumns=false
sortExpertMode=false
id=grid
clazz={clazz}
domain:columns
mx:AdvancedDataGridColumn editable=false dataField=id
width=40/
domain:DomainColumn editable=true dataField=email
width=200
headerRenderer=org.yesorno.components.domain.SearchableHeader/

mx:AdvancedDataGridColumn editable=true dataField=alias
width=100/
mx:AdvancedDataGridColumn editable=true dataField=admin
width=50/
mx:AdvancedDataGridColumn editable=false dataField=created
labelFunction=pointFunction width=80/
mx:AdvancedDataGridColumn editable=false dataField=updated
labelFunction=pointFunction width=80 /
/domain:columns
/domain:DomainGrid

!--org.yesorno.components.domain.SearchableHeader--
?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:domain=org.yesorno.components.domain.* horizontalAlign=center
mx:Script
![CDATA[
override public function set data(value:Object):void {
super.data=value;
trace(data.clazz);
}
]]
/mx:Script

mx:Label text={data.headerText}/
domain:DomainComplete clazz={data.clazz} property={data.dataField}
width=100%/
/mx:VBox

Ryan Gravener
http://twitter.com/ryangravener


On Mon, Oct 6, 2008 at 12:27 AM, markgoldin_2000
[EMAIL PROTECTED]wrote:

   I am getting two compile errors:
 1023: Incompatible override.
 1144: Interface method set data in namespace mx.core:IDataRenderer is
 implemented with an incompatible signature in class
 yardmodel.modulecode:reassignedBlock.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ryan
 Gravener [EMAIL PROTECTED] wrote:
 
  Well, you are in luck. I just did this a few hours ago and it
 worked. Put
  this method:
 
 
  override public function set data(value:Object) {
  super.data = value;
  //do stuff
  }
 
  in your Custom renderer. The variable data will be the column.
 
 
  Ryan Gravener
  http://twitter.com/ryangravener
 
 
  On Sun, Oct 5, 2008 at 10:09 PM, markgoldin_2000
  [EMAIL PROTECTED]wrote:
 
   Not sure how that helps me, maybe I wasn't clear in my
 question. I
   need to get header text when I am using a custom renderer for
   column's header.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Ryan
   Gravener ryan@ wrote:
   
So long as your using advanceddatagridcolumn you can do
headerRenderer=com.yourcompany.package.ExtendsVBox
   
and in ExtendsVBox
   
override public function set data(value:Object) {
super.data = data;
//do stuff
}
   
Ryan Gravener
http://ryangravener.com/flex
   
   
On Sun, Oct 5, 2008 at 7:26 PM, markgoldin_2000
markgoldin_2000@wrote:
   
 columns[columnIndexValue].headerText returns header's text.
 How do I get it if I use a custom (VBox) header renderer?

 Thanks



   
  
  
  
 

  



Re: [flexcoders] Triggering Validator based on string value for TextInput

2008-10-02 Thread Ryan Gravener
I suppose you would need to use the regular expression validator.

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Oct 2, 2008 at 12:46 PM, djohnson29 [EMAIL PROTECTED] wrote:

   Does anyone know how to trigger a validator on a TextInput based on a
 certain string value?

 I have a regular TextInput with a regular Validator attached to it
 (required Validation). I would like to also trigger this Validator so
 that the red outline and tooltip displays when there is a particular
 value in the text property.

 So if the TextInput is empty, then the required validation kicks in,
 and if the text property contains for example, foo, then then the
 Validator fires as well.

 Is there a quick and easy way to do this without overridding the
 Validator?

  



Re: [flexcoders] Using data from List Control to send to PHP

2008-10-02 Thread Ryan Gravener
You can iterate through the dataprovider;

for each (var obj:Object in list.dataProvider) {
//do work
}

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Oct 2, 2008 at 3:11 PM, ghus32 [EMAIL PROTECTED] wrote:

   Hello Everyone,

 I was wondering if any of you guys know how to extract data from a list
 control as each separate entry as a var?

 I was to send each entry to my php script.

 Ex. I have 4 entries in my list control I want to send file_name1,
 filename_2, filename_3, filename_4 to my php script

 thanks

  



Re: [flexcoders] How do we clear List's data

2008-09-29 Thread Ryan Gravener
I would try calling list.validateNow(); after you change the dp.


Ryan Gravener
http://twitter.com/ryangravener


On Mon, Sep 29, 2008 at 6:10 PM, Joshua Partogi [EMAIL PROTECTED]wrote:

   dear all,

 I have got a List component that has data in it. But I want to clear
 the data in it. How do we do this in Flex? Has anyone got any
 experience with this? I tried using list.dataProvider = null but it
 doesn't work. Could anyone give me a hint and clue about this please?

 Many thanks

 --
 Read my blog: http://joshuajava.wordpress.com/
 Follow me on twitter: http://twitter.com/jpartogi
  



Re: [flexcoders] Re: BlazeDS Integration

2008-09-25 Thread Ryan Gravener
Is this a flex air app or just flex?

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Sep 25, 2008 at 9:36 AM, Patrick [EMAIL PROTECTED] wrote:

   The files are located under the WEB-INF/flex folder of the webapp, and
 I access the flex app through the generated HTML page that flex
 builder generates which works.

 Also the error I'm getting is:
 [RPC Fault faultString=[MessagingError message='Destination 'build'
 either does not exist or the destination has no channels defined (and
 the application does not define any default channels.)']
 faultCode=InvokeFailed faultDetail=Couldn't establish a connection
 to 'build']
 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Dimitrios Gianninas

 [EMAIL PROTECTED] wrote:
 
  the error message you are getting might help :)
 
  Dimitrios Gianninas
  RIA Developer Team Lead
  Optimal Payments Inc.
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 On Behalf Of Patrick McDaniel
  Sent: Wednesday, September 24, 2008 6:47 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] BlazeDS Integration
 
 
 
  Hello All -
 
  I recently have started trying to get BlazeDS implemented in a
 couple of my Flex applications. I'm running into trouble getting an
 error that my destination doesn't exist. I have looked all around the
 internet and can't seem to come up with a solution to my problem. I'm
 hoping someone on the list will see a stupid mistake or head me off in
 the right direction.
 
  Currently I'm trying to use Spring, BlazeDS, and Flex to make all
 this work. I'm running it all in Tomcat 6. Also I'm using the spring
 file found on adobe exchange. I have also included my .mxml file, but
 it is just a simple test to see if I can actually get it to work. It
 is exactly the same as the remoting example provided by the turnkey
 download. There are no errors in any logs so I assume that the spring
 container and webapp itself is loading alright. I just get the error
 when I click the button to get the data. Here are my configuation files:
 
  WEB.XML
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  display-nameBuild Reporting Dashboard/display-name
 
  !-- log4j setup --
  context-param
  param-namelog4jConfigLocation/param-name
  param-value/WEB-INF/log4j.xml/param-value
  /context-param
 
  !--applicationContext.xml setup --
  context-param
  param-namecontextConfigLocation/param-name
  param-value/WEB-INF/applicationContext.xml/param-value
  /context-param
 
  context-param
  param-nameflex.class.path/param-name
  param-value/WEB-INF/flex/hotfixes/param-value
  /context-param
 
 
  filter
  filter-nameCharacterEncodingFilter/filter-name
  filter-class
 
 org.springframework.web.filter.CharacterEncodingFilter/filter-class
  init-param
  param-nameencoding/param-name
  param-valueUTF-8/param-value
  /init-param
  init-param
  param-nameforceEncoding/param-name
  param-valuetrue/param-value
  /init-param
  /filter
 
  filter-mapping
  filter-nameCharacterEncodingFilter/filter-name
  url-pattern/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameCharacterEncodingFilter/filter-name
  url-pattern*.do/url-pattern
  /filter-mapping
 
  listener
  listener-class
 
 org.springframework.web.util.Log4jConfigListener/listener-class
  /listener
 
  listener
  listener-class
 
 org.springframework.web.context.ContextLoaderListener/listener-class
  /listener
 
  !-- MessageBroker Servlet(BlazeDS) --
  servlet
  servlet-nameMessageBrokerServlet/servlet-name
  display-nameMessageBrokerServlet/display-name
 
 servlet-classflex.messaging.MessageBrokerServlet/servlet-class
  init-param
  param-nameservices.configuration.file/param-name
  param-value/WEB-INF/flex/services-config.xml/param-value
  /init-param
  init-param
  param-nameflex.write.path/param-name
  param-value/WEB-INF/flex/param-value
  /init-param
 
  load-on-startup1/load-on-startup
  /servlet
 
  !-- Servlet setup (Spring HTTP) --
  servlet
  servlet-nameccdb/servlet-name
  servlet-class
 
 org.springframework.web.servlet.DispatcherServlet/servlet-class
  init-param
  param-namecontextConfigLocation/param-name
  param-value/WEB-INF/servlet.xml/param-value
  /init-param
  load-on-startup1/load-on-startup
  /servlet
 
  servlet-mapping
  servlet-nameccdb/servlet-name
  url-pattern*.do/url-pattern
  /servlet-mapping
 
  servlet-mapping
  servlet-nameMessageBrokerServlet/servlet-name
  url-pattern/messagebroker/*/url-pattern
  /servlet-mapping
 
  welcome-file-list id=WelcomeFileList
  welcome-fileindex.html/welcome-file
  welcome-fileApplication.html/welcome-file
  welcome-fileDashboard.html/welcome-file
  /welcome-file-list
 
  /web-app
 
  REMOTING-CONFIG.XML
  ?xml version=1.0 encoding=UTF-8?
  service id=remoting

Re: [flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread Ryan Gravener
override the set dataProvider;

then store the openitems, selecteditems, etc...

call
super.dataProvider = provider;
openItems=storedOpenItems;
validateNow();
selectedItems=storedSelectedItems;
validateNow();

as for amf calls, I have a method which gets the instance from the
dataprovider
and adds it to an array.  then i set the value in the tree.

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Sep 25, 2008 at 1:41 PM, Ivo [EMAIL PROTECTED] wrote:

   Are you resetting the data provider or just updating it? I find that
 if I just update the data provider by inserting/removing elements the
 Tree reflects the change appropriately.

 One bug I've hit, which might be what you are experiencing, is that if
 I remove the Tree from the stage and add it later then all branches
 will appear collapsed even tho the property openItems correctly lists
 the open nodes. The workaround is similar to what you describe:

 https://bugs.adobe.com/jira/browse/SDK-14892

  



Re: [flexcoders] Re: BlazeDS Integration

2008-09-25 Thread Ryan Gravener
Well, maybe this can help.  Its a very limited quickstart, but I use it as
my base for all new projects.

http://code.google.com/p/wicket-flex-blazeds/

Ryan Gravener
http://twitter.com/ryangravener


On Thu, Sep 25, 2008 at 6:13 PM, Patrick [EMAIL PROTECTED] wrote:

   Just a flex app.

 Patrick

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ryan
 Gravener [EMAIL PROTECTED] wrote:
 
  Is this a flex air app or just flex?
 
  Ryan Gravener
  http://twitter.com/ryangravener
 
 
  On Thu, Sep 25, 2008 at 9:36 AM, Patrick [EMAIL PROTECTED] wrote:
 
   The files are located under the WEB-INF/flex folder of the
 webapp, and
   I access the flex app through the generated HTML page that flex
   builder generates which works.
  
   Also the error I'm getting is:
   [RPC Fault faultString=[MessagingError message='Destination 'build'
   either does not exist or the destination has no channels defined (and
   the application does not define any default channels.)']
   faultCode=InvokeFailed faultDetail=Couldn't establish a connection
   to 'build']
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   Dimitrios Gianninas
  
   dimitrios.gianninas@ wrote:
   
the error message you are getting might help :)
   
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
   
   

   
From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com
 [mailto:
   flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%
 40yahoogroups.com]
   On Behalf Of Patrick McDaniel
Sent: Wednesday, September 24, 2008 6:47 PM
To: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com

Subject: [flexcoders] BlazeDS Integration
   
   
   
Hello All -
   
I recently have started trying to get BlazeDS implemented in a
   couple of my Flex applications. I'm running into trouble getting an
   error that my destination doesn't exist. I have looked all around the
   internet and can't seem to come up with a solution to my problem. I'm
   hoping someone on the list will see a stupid mistake or head me off in
   the right direction.
   
Currently I'm trying to use Spring, BlazeDS, and Flex to make all
   this work. I'm running it all in Tomcat 6. Also I'm using the spring
   file found on adobe exchange. I have also included my .mxml file, but
   it is just a simple test to see if I can actually get it to work. It
   is exactly the same as the remoting example provided by the turnkey
   download. There are no errors in any logs so I assume that the spring
   container and webapp itself is loading alright. I just get the error
   when I click the button to get the data. Here are my configuation
 files:
   
WEB.XML
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
   Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameBuild Reporting Dashboard/display-name
   
!-- log4j setup --
context-param
param-namelog4jConfigLocation/param-name
param-value/WEB-INF/log4j.xml/param-value
/context-param
   
!--applicationContext.xml setup --
context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/applicationContext.xml/param-value
/context-param
   
context-param
param-nameflex.class.path/param-name
param-value/WEB-INF/flex/hotfixes/param-value
/context-param
   
   
filter
filter-nameCharacterEncodingFilter/filter-name
filter-class
   
   org.springframework.web.filter.CharacterEncodingFilter/filter-class
init-param
param-nameencoding/param-name
param-valueUTF-8/param-value
/init-param
init-param
param-nameforceEncoding/param-name
param-valuetrue/param-value
/init-param
/filter
   
filter-mapping
filter-nameCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter-mapping
filter-nameCharacterEncodingFilter/filter-name
url-pattern*.do/url-pattern
/filter-mapping
   
listener
listener-class
   
   org.springframework.web.util.Log4jConfigListener/listener-class
/listener
   
listener
listener-class
   
   org.springframework.web.context.ContextLoaderListener/listener-class
/listener
   
!-- MessageBroker Servlet(BlazeDS) --
servlet
servlet-nameMessageBrokerServlet/servlet-name
display-nameMessageBrokerServlet/display-name
   
   servlet-classflex.messaging.MessageBrokerServlet/servlet-class
init-param
param-nameservices.configuration.file/param-name
param-value/WEB-INF/flex/services-config.xml/param-value
/init-param
init-param
param-nameflex.write.path/param-name
param-value/WEB-INF/flex/param-value
/init-param
   
load-on-startup1/load-on-startup
/servlet
   
!-- Servlet setup

Re: [flexcoders] flex showing always the same SWF

2008-09-24 Thread Ryan Gravener
When that happens to me, I either have some compile errors, or its cached in
the browser.  So I delete cache and clean the project.

On Wed, Sep 24, 2008 at 12:33 PM, BENABDALLAH Abdelaziz 
[EMAIL PROTECTED] wrote:

   eash time I hit run in flex builder, I get an old version of my
 project, nothing seems to work except renaming the project,
 I reinstalled flex builder and it worked fine, but recently the same
 problem came again.
 what is the deal with it and how can I fix this problem ?
 thanks

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] How do I determine the host where I am at?

2008-09-24 Thread Ryan Gravener
initialize bm.

bm.init();


Ryan Gravener
http://twitter.com/ryangravener


On Wed, Sep 24, 2008 at 5:47 PM, Guy Morton [EMAIL PROTECTED] wrote:

   mx.core.Application.application.url

 On 25/09/2008, at 7:16 AM, luvfotography wrote:

 How do I find the host url where I'm ('myflexapp.swf') is loaded at?
 I tried BrowswerManager, but url, and base are null?

 Is there another way, or better way.

 ex:
 private var bm:IBrowserManager;
 bm = BrowserManager.getInstance();

 trace(bm.base); // output: null
 trace(bm.url); // output: null


  


Re: [flexcoders]Convert a Java object to an ActionScript object

2008-09-24 Thread Ryan Gravener
http://ryangravener.com/wordpress/?p=21

Ryan Gravener
http://twitter.com/ryangravener


On Wed, Sep 24, 2008 at 5:18 PM, Eduardo Souza [EMAIL PROTECTED]wrote:

   Hi everyone, I have another question. How can I convert a Java object to
 an ActionScript object without using LiveCycle?

  



Re: [flexcoders] Capture last edit date for a record - Flex,Hibernate, mySQL

2008-09-16 Thread Ryan Gravener
I have a project out there which does exactly this (so long as your using
annotations).

http://code.google.com/p/wicket-flex-blazeds/source/browse/trunk/myproject-core/src/main/java/org/myproject/persistence/audit/PersistentEntityAuditor.java
it is somewhat complicated and triggers would definitely be easier.

On Tue, Sep 16, 2008 at 12:33 PM, Tracy Spratt [EMAIL PROTECTED]wrote:

I do not use those technologies, so ignore this if it is not relevant.



 I use SQL Server  and prefer to do timestamps using database triggers.
 Does MySQL have those?



 If not, why not just inject the current date time when you invoke send()?



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *headjoog
 *Sent:* Tuesday, September 16, 2008 11:36 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Capture last edit date for a record -
 Flex,Hibernate, mySQL



 Hello -

 I am using Flex, Hibernate, and mySQL and have a simple entry form set
 up with one field. I have the standard Java and ActionScript classes
 set up and all seems to be working well.

 However, I'm not quite clear on how to go about capturing the last
 edit date for a record. Does anyone have an example of this using
 Hibernate with Flex? I can force it to save if I display the date on
 the form and then modify it manually, but am having problems
 automatically capturing it.

 Thanks,
 Joe

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Components are disappearing from the screen on popups

2008-09-04 Thread Ryan Gravener
just the icons are moving.

On Wed, Sep 3, 2008 at 5:56 PM, Alex Harui [EMAIL PROTECTED] wrote:

Can you tell if the icons are moving or the whole control bar is
 moving?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 2:35 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Components are disappearing from the screen on
 popups



 http://eugeneciurana.com/pastebin/pastebin.php?show=33170

 On Wed, Sep 3, 2008 at 5:29 PM, Alex Harui [EMAIL PROTECTED] wrote:

 And what might that MXML look like?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 2:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Components are disappearing from the screen on
 popups



 It is just mxml.

 Correction:

 When ever firefox has scrollbars then the positioning works fine.

 On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED] wrote:

 What kind of code positions the icons?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 1:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Components are disappearing from the screen on
 popups



 If I have a Menu pop up or a modal window pop up and the browser is in full
 mode, the icons disappear by moving to the right about 100px.  I can't
 figure out a way to fix this problem.

 screencast:

 http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b

 paste:
 http://eugeneciurana.com/pastebin/pastebin.php?show=33170

 Thanks,
 Ryan Gravener
 http://twitter.com/ryangravener




 --

 Ryan Gravener
 http://twitter.com/ryangravener




 --
 Ryan Gravener
 http://twitter.com/ryangravener

   




-- 
Ryan Gravener
http://twitter.com/ryangravener


[flexcoders] Components are disappearing from the screen on popups

2008-09-03 Thread Ryan Gravener
If I have a Menu pop up or a modal window pop up and the browser is in full
mode, the icons disappear by moving to the right about 100px.  I can't
figure out a way to fix this problem.

screencast:
http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b

paste:
http://eugeneciurana.com/pastebin/pastebin.php?show=33170

Thanks,
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Components are disappearing from the screen on popups

2008-09-03 Thread Ryan Gravener
It is just mxml.

Correction:

When ever firefox has scrollbars then the positioning works fine.

On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED] wrote:

What kind of code positions the icons?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 1:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Components are disappearing from the screen on
 popups



 If I have a Menu pop up or a modal window pop up and the browser is in full
 mode, the icons disappear by moving to the right about 100px.  I can't
 figure out a way to fix this problem.

 screencast:

 http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b

 paste:
 http://eugeneciurana.com/pastebin/pastebin.php?show=33170

 Thanks,
 Ryan Gravener
 http://twitter.com/ryangravener

   




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Components are disappearing from the screen on popups

2008-09-03 Thread Ryan Gravener
http://eugeneciurana.com/pastebin/pastebin.php?show=33170

On Wed, Sep 3, 2008 at 5:29 PM, Alex Harui [EMAIL PROTECTED] wrote:

And what might that MXML look like?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 2:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Components are disappearing from the screen on
 popups



 It is just mxml.

 Correction:

 When ever firefox has scrollbars then the positioning works fine.

 On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED] wrote:

 What kind of code positions the icons?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Wednesday, September 03, 2008 1:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Components are disappearing from the screen on
 popups



 If I have a Menu pop up or a modal window pop up and the browser is in full
 mode, the icons disappear by moving to the right about 100px.  I can't
 figure out a way to fix this problem.

 screencast:

 http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b

 paste:
 http://eugeneciurana.com/pastebin/pastebin.php?show=33170

 Thanks,
 Ryan Gravener
 http://twitter.com/ryangravener




 --
 Ryan Gravener
 http://twitter.com/ryangravener

   




-- 
Ryan Gravener
http://twitter.com/ryangravener


[flexcoders] Drag/Move inside self

2008-08-15 Thread Ryan Gravener
I have extended Tree and overridden the methods:

dragOverHandler and dragDropHandler.

For the mxml I set the drag/drop booleans:

dragEnabled=true
dropEnabled=true
dragMoveEnabled=true

When I drag and move within my Tree, the item I have selected and started
dragging drags, but the dropFeedback which should show for DragManager.MOVE
does not show.  Now when I drag this item into a different instance of this
tree, the feedback shows.

Thanks,
Ryan Gravener
http://ryangravener.com/flex


Re: [flexcoders] Drag/Move inside self

2008-08-15 Thread Ryan Gravener
It needs to be subclassed.  I've been playing around with examples that work
and have incorporated them with my tree, and they still work.  So the
culprit is still to be found...

On Fri, Aug 15, 2008 at 4:49 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

You understand that you do not need to extend Tree just to do this?
 You can simply implement your own handlers, and call event.preventDefault.
 Subclassing has its own set of headaches, so don't do it if you don't need
 to.



 If you need to subclass for other purposes, ok.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Friday, August 15, 2008 3:39 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Drag/Move inside self



 I have extended Tree and overridden the methods:

 dragOverHandler and dragDropHandler.

 For the mxml I set the drag/drop booleans:

 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true

 When I drag and move within my Tree, the item I have selected and started
 dragging drags, but the dropFeedback which should show for DragManager.MOVE
 does not show.  Now when I drag this item into a different instance of this
 tree, the feedback shows.

 Thanks,
 Ryan Gravener
 http://ryangravener.com/flex

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Drag/Move inside self

2008-08-15 Thread Ryan Gravener
I figured it out, a while ago I set a custom dropIndicatorSkin in the css
and forgot about it.

Thanks for the help.

On Fri, Aug 15, 2008 at 4:52 PM, Ryan Gravener [EMAIL PROTECTED]wrote:

 It needs to be subclassed.  I've been playing around with examples that
 work and have incorporated them with my tree, and they still work.  So the
 culprit is still to be found...


 On Fri, Aug 15, 2008 at 4:49 PM, Tracy Spratt [EMAIL PROTECTED]wrote:

You understand that you do not need to extend Tree just to do this?
 You can simply implement your own handlers, and call event.preventDefault.
 Subclassing has its own set of headaches, so don't do it if you don't need
 to.



 If you need to subclass for other purposes, ok.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Gravener
 *Sent:* Friday, August 15, 2008 3:39 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Drag/Move inside self



 I have extended Tree and overridden the methods:

 dragOverHandler and dragDropHandler.

 For the mxml I set the drag/drop booleans:

 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true

 When I drag and move within my Tree, the item I have selected and started
 dragging drags, but the dropFeedback which should show for DragManager.MOVE
 does not show.  Now when I drag this item into a different instance of this
 tree, the feedback shows.

 Thanks,
 Ryan Gravener
 http://ryangravener.com/flex

  




 --
 Ryan Gravener
 http://twitter.com/ryangravener




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Re: Tree problem

2008-08-13 Thread Ryan Gravener
Also look at treedatadescriptor, that gives you a lot of control.

On 8/13/08, guillaumeracine [EMAIL PROTECTED] wrote:

 If you want your tree to be displayed correctly populate it with custom
 value object that follows this structure:

 public class GroupItemVO{
public var name:String;
public var children:Array;

public function addChildren(item:GroupItem):void{
  this.children.addItem(item);
}
 }

 and then the dataProvider of the tree must be a collection containing a
 single GroupItemVO (root) that contains sub GroupItemVO in its children
 property...and so on

 The flex tree will know how to display the nodes correctly by recusivly
 inspecting the children attribute.

 I hope this will help you.
 --- In flexcoders@yahoogroups.com, venkat eswar [EMAIL PROTECTED] wrote:

 i have one doubt.i have to create a tree(group like chat application).
 actually i am using an array and that values has to be displayed as
 children.Here it is groupArr.also the groupName has to be kept as root
 and the array values has to be the children of the root (ie groupName).




 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;  width=448
 height=454

 mx:Script
  ![CDATA[
   import mx.controls.Alert;

   import mx.controls.CheckBox;
   import mx.collections.ArrayCollection;
  import mx.events.CollectionEvent;
  import com.screencasterlive.model.DataManager;
  import org.igniterealtime.xiff.data.im.RosterItem;
  import com.screencasterlive.events.JabberEvent;



  public var obj:Object = new Object();


  [Bindable]
   private var dataManager:DataManager=DataManager.getInstance();


   private function saveGroup(evt:Event):void
   {


var idx:int;

var len:int = dataManager.userGroup.length;

for (idx=0; idxlen; idx++)
{
  if (groupCheck[idx].selected)
  {
  dataManager.groupArr.push(groupCheck[idx].label);
  }

}

dataManager.groupName = GroupNameText.text;

Alert.show(dataManager.groupArr.toString());

obj.groupArr = dataManager.groupArr;
obj.groupName = dataManager.groupName;
trace(obj.groupName);
trace(obj.groupArr);
groupListBox.visible = false;
formName.visible = false;
treeGroupBox.visible = true;

tree.dataProvider = dataManager.groupArr;



   }



  ]]
 /mx:Script


  mx:TitleWindow x=61 y=10 width=316 height=399
 layout=absolute showCloseButton=true
  mx:Form width=296 id=formName verticalScrollPolicy=off
 horizontalScrollPolicy=off
 mx:FormItem label=Group Name  width=265
 mx:TextInput id=GroupNameText width=176/
 /mx:FormItem
 /mx:Form

 mx:VBox y=62 x=26 id=groupListBox
mx:Repeater id=r dataProvider={dataManager.userGroup}
 mx:CheckBox id=groupCheck
 label={r.currentItem.toString()} /
/mx:Repeater
 /mx:VBox

 mx:VBox id=treeGroupBox visible=false  x=10 y=122
 height=107 width=226 verticalScrollPolicy=off
 horizontalScrollPolicy=off
  mx:Tree id=tree   height=190 verticalScrollPolicy=off
 horizontalScrollPolicy=off width=251

  /mx:Tree
 /mx:VBox
  mx:Button x=74 y=327 label=Save emphasized=true
 click=saveGroup(event);/
  mx:Button x=147 y=327 label=Cancel /

  /mx:TitleWindow


 /mx:Canvas





-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Re: Embedded Jetty6 or 7 server

2008-08-12 Thread Ryan Gravener
I wrote a quickstart on combining blazeds, flex, jetty, spring, wicket, and
hibernate:

http://ryangravener.com/wordpress/?p=21

as for embedded jetty server:
http://wicket-flex-blazeds.googlecode.com/svn/trunk/myproject-core/src/test/java/org/myproject/Start.java

Hope this helps.

On Tue, Aug 12, 2008 at 10:48 AM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   Robin,   There are 2 ways this can be done - none is pretty.
 1.You can navigateToFile - based on the mime type OS will open
 appropriate programe (Word for doc, etc and hopefully java for class).
 Needless to say it is error prone and configuration dependent.
 2. You need binary component that would be used in conjunction with AIR.
 Unfortunately, you can not distribute automatically executable binary
 components automatically with AIR, so special program needs to be preloaded
 and invoked on the client machine. We had few C++ implementations on Windows
 that communicate with Flash runtime via LocalConnection, not sure what your
 platforms might be. That component would go into the AIR file and extract
 jetty server/run it. All-in-all,for Windows platform and to follow strict
 rules of security (only signed/trusted AIR files can distribute code)  it is
 probably a 2 weeks project,with probably another week for each subsequent
 platform.
 Sorry,
 Anatole Tartakovsky


 On Tue, Aug 12, 2008 at 4:53 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   Well, you'd have to figure out a way to have either your Java app or
 your AIR app not appear in the task bar or dock, but besides that I imagine
 you could just use java.lang.System.exec()

 That's about all the help I can be with this though, I haven't done it :)

 -Josh

 On Tue, Aug 12, 2008 at 6:11 PM, robin bakkerus [EMAIL PROTECTED]
  wrote:

 Hi Josh,

 Ok, the other way around, but do you have an example how to that.
 thanks in advance

 robin

 --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] 
 wrote:
 
  Air can't listen to sockets, nor can it spawn external programs.
 You'd have
  to have a Java program with embedded Jetty which then loads your AIR
 app.
 
  -Josh
 
  On Tue, Aug 12, 2008 at 3:07 PM, robin bakkerus
 [EMAIL PROTECTED]wrote:
 
   Hi Anatole,
  
   But that is not an embedded server!
   What i want is to make an AIR application that can easily communicate
   with (existing) Java code (hence BlazeDS), but without the need to
   start a server. Well you start a server but automatically 'under
   water'. But then i how to start this server?, what is the jetty.xml
   looks like?
  
   gr Robin
  
   --- In flexcoders@yahoogroups.com, Anatole Tartakovsky
   anatole.tartakovsky@ wrote:
   
Robin,   You just unpack jetty, then unpack BlazeDS into
 webapps/BlazeDS
subfolder. Then go to the /bin subfolder of jetty and run either
exe(windows) or ./jetty.sh run on Mac/Linux
Finally go to the browser and check http://localhost:8080 to see
   jetty start
page.
   
HTH,
Anatole
   
   
On Mon, Aug 11, 2008 at 6:10 AM, robin bakkerus
   robin.bakkerus@wrote:
   
   Hi there,

 Does anyone has an example of an embedded Jetty6 or Jetty7 server
 including BlazeDs plus example how to start this server?

 thank you in advance



   
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
   Links
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]


  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Re: Datagrid selected item highlight behavior changes based on dataprovider object

2008-08-12 Thread Ryan Gravener
Have your typed objects implement IUID.

Read this entry for a better explanation:
http://ryangravener.com/wordpress/?p=36

On Tue, Aug 12, 2008 at 3:54 PM, Alex Harui [EMAIL PROTECTED] wrote:

Post an example if it is small.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Andrew Longley
 *Sent:* Tuesday, August 12, 2008 12:37 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Datagrid selected item highlight behavior
 changes based on dataprovider object



 Tim thanks for your response. I have a very simple datagrid
 implementation and yes, simply changing the objects in the datagrid
 from untyped to typed alters the behavior of the datagrid with respect
 to the look of the selected row. Doesn't matter if I use the objects
 returned from the server or just manufacture a collection of typed
 objects.

 So far I'm using the work-around of manufacturing untyped objects.

 Andrew

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
 Hoff [EMAIL PROTECTED] wrote:
 
  Hmm, strongly typed objects or not, the DataGrid should behave the
  same; as long as you're not using selectable=false. Are you sure
  it's not something else? Are you doing something on the change
  event?
 
  -TH
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Andrew Longley alongley@
  wrote:
  
   I expect that when I click on a row in a datagrid, the item gains
  the
   selected row highlight. I'm developing an Air app and my datagrid
   does not act this way. After much messing around I discovered that,
   everything else being the same, if I changed the dataProvider of the
   datagrid the behavior of the datagrid changed.
  
   1. if the dataProvider is an ArrayCollection of untyped objects,
  i.e.,
   {name:blah,phone:1231231234}, it performs as expected, i.e.,
  when
   you click on a row it gains the selected row highlight
  
   2. if the dataProvider is an ArrayCollection of typed objects, i.e.,
   User objects with name and phone attributes, it performs
  differently.
   While the datagrid knows that a row is selected, the selected row
   looks as if it is unselected.
  
   Now it is slightly more complicated in that the User object extends
   another base class and both use the Bindable metadata tag and are
   RemoteClassed to Java objects on the server, and have another 30
   attributes.. but I'm still stymied. Anyone have a suggestion for a
   work-around besides creating untyped objects for every object at
   runtime? What would the code look like to force a selected style to
   show up for the selected row?
  
   Thanks.
   Andrew
  
 

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] CRC

2008-08-06 Thread Ryan Gravener
I just keep a string of the version they are using, then compare that with
the server's version.  If they don't match, make them run the updater (air).

On Wed, Aug 6, 2008 at 10:45 AM, Scott [EMAIL PROTECTED] wrote:

Does anyone know of a way to collect a CRC from a flex or air
 application file?  I would like to verify that they are running the most
 current version and the code I wrote as they hit my remote components.



 Thanks

   Scott
  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] LCDS2.6 + Hibernate3 + Heirarchial objects - ds.deleteItem fails

2008-08-05 Thread Ryan Gravener
You need to cascade delete.
http://java.sun.com/javaee/5/docs/api/javax/persistence/OneToMany.html
http://java.sun.com/javaee/5/docs/api/javax/persistence/ManyToOne.html

On Mon, Aug 4, 2008 at 10:26 PM, Manu [EMAIL PROTECTED] wrote:

Hi,

 Am new to flex coding and have been able to get basic hibernate3 + lcds
 examples to work. However, am unable to progress with a delete operation on
 a non-trivial object graph with one-to-many and many-to-one relationship. Is
 there a tutorial that explains this. I have searched the internet and the
 examples I find do not go into heirarchial data with Hibernate. Any
 example/tutorial that you can point me to will be very helpful.

 Eg..

 Country has Regions (ArrayCollection). I have 2 datagrids, one displaying
 countries and the other displaying regions. On change of country, I update
 the region datagrid using the following call

 ds_region.fill(regionAC,
 *region-by-country*,{countryId:selectedCountry.countryId});

 When I try to delete a selectedRegion with

 ds_region.deleteItem(dg_region.selectedItem
 *as* StRegion);

 I get a conflict from the server. I looked at the stacktrace and it
 indicates that the region I am trying to delete is still in the graph of the
 Country object on the server. How do I get this to work?

 Thanks
  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Downloading a file from a server in AIR

2008-08-03 Thread Ryan Gravener
Try something like this:

var req:URLRequest = new URLRequest(url);
stream = new URLStream();
stream.addEventListener(Event.COMPLETE, writeAirFile);
stream.load(req);

private function writeAirFile(evt:Event):void {
var data:ByteArray = new ByteArray();
stream.readBytes(fileData,0,stream.bytesAvailable);
var file:File = File.applicationStorageDirectory.resolvePath(app.air);
var fileStream:FileStream = new FileStream();
fileStream.open(file, FileMode.WRITE);
fileStream.writeBytes(fileData,0,fileData.length);
fileStream.close();
}


2008/8/3 Dimitrios Gianninas [EMAIL PROTECTED]

I've used the code below in my AIR app to download a file from Java
 servlet on the server, but I get a Error #2044: Unhandled IOErrorEvent:.
 text=Error #2038: File I/O Error. error...what am I doing wrong?


 var req:URLRequest = new URLRequest( http://localhost:8080/orion/pdfdown;);
 req.method = URLRequestMethod.POST;
 *//var f:FileReference = new FileReference();*
 *//f.download( req );*
 *var* f:File = *new* File(); f.download( req,
 *bla.pdf* );

 *Dimitrios Gianninas*
 *RIA Developer and Team Lead*
 *Optimal Payments Inc.*


 *AVIS IMPORTANT*

 *WARNING*

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

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




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Combobox - How to display 'Click to Select...'

2008-08-01 Thread Ryan Gravener
Set the prompt property.

On Fri, Aug 1, 2008 at 9:39 AM, cox.blair [EMAIL PROTECTED] wrote:

   I have a dynamically populated combobox that I would like to provide
 an initial label instead of the first item in the array. It would be
 impossible to create an item in the array to show, it would need to
 part of the combobox control.

 So on initial load of the application, the combobox would display
 something like 'Click to Select...'.

 Any thoughts?

 Thanks,

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Flex (w/ LCDS or BlazeDS) Hosting options...

2008-07-29 Thread Ryan Gravener
Slicehost, full control for $20 a month

http://www.slicehost.com


On Tue, Jul 29, 2008 at 2:48 PM, henryhokinhang [EMAIL PROTECTED] wrote:

   Where do you host your Flex app that requires LiveCycle DS or Blaze DS?

 When a hosting company claims they support CF8, does it usually
 include the embed LCDS?

 Is dedicated server the only way to go?

 Is RMTP channel practical for flex on Internet? or just for Intranet?

 Thank you.

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] on the fly form validation

2008-07-28 Thread Ryan Gravener
Here is how I do form validation in flex:

http://ryangravener.com/wordpress/?p=6

On Mon, Jul 28, 2008 at 9:47 AM, Fidel Viegas [EMAIL PROTECTED]wrote:

   On Mon, Jul 28, 2008 at 2:26 PM, Scott [EMAIL 
 PROTECTED]halo%40netprof.us
 wrote:
  In thinking about forms and flex events, how hard is it to validate a
 form
  as a user tabs through it? Without creating a ton of event handlers, is
  there an easy way to accomplish this?

 Hi Scott,

 Have a look at validators. Check here
 http://www.adobe.com/devnet/flex/quickstart/validating_data/

 Fidel.
  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Re: What files should be in the WEB-INF/flex directory to dynamically compile

2008-07-16 Thread Ryan Gravener
Why not just compile the flex app when you compile your webapp?

On Wed, Jul 16, 2008 at 11:50 AM, Andrew Longley [EMAIL PROTECTED]
wrote:

   Thanks Tom. The phrase web-tier compiler was what I needed. I
 found the Flex compiler module for J2EE application servers after much
 searching at the page
 http://opensource.adobe.com/wiki/display/flexsdk/Downloads. What a
 brutal search for something so simple! The result of this is
 webtier.war, which can be deployed to any web app server. I can then
 add my Flex app and it dynamically recompiles, and it's the Flex 3
 version.

 Thanks again.
 Andrew

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 Chiverton [EMAIL PROTECTED]
 wrote:

 
  On Tuesday 15 Jul 2008, Andrew Longley wrote:
   I'm trying to migrate the app to Flex 3 and I need to understand what
   files need to go where for the app to dynamically recompile.
 
  There's a 'web tier compiler' in the Flex 3 SDK, and plenty of docs
 on the
  web. Don't try and figure this out blind.
 
   Bottom line, I'm looking for a Flex 3 project that compiles
   dynamically when deployed under a web app server, or information
   towards that end. Thanks for any help.
 
  Why ?
  Almost always off-line compilation is what is best.
 
  --
  Tom Chiverton

  




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] Re: What hosting compagny are you using for Flex + (Blaze || LCDS)

2008-04-14 Thread Ryan Gravener
I use slicehost.  They give you total control and it is pretty cheap.

https://manage.slicehost.com/customers/new?referrer=261011680

On Sun, Apr 13, 2008 at 10:23 PM, Dmitri Girski [EMAIL PROTECTED] wrote:






 co-location. Servers are cheap in these days.

  Cheers,
  Dmitri.

  --- In flexcoders@yahoogroups.com, guillaumeracine

  [EMAIL PROTECTED] wrote:
  
   I just created a new Flex+BlazeDS app.
   I did not notice any memory problem during development because i was
   using -xms:1024.
  
   When i copied the my webapp in the tomcat dir of my host, i noticed an
   out of memory error after 15min...
  
   My actual host allow me only 160mo of heap space for tomcat.
  
   I searched the net a bit but did not find any Java hosting compagny
   that offers enought memory for a Flex app with BlazeDS or LCDS...
   (I read in Adobe docs that we must use at least 512mo of heap space
   for blazeDS or LCDS).
  
   What compagny are you using guys?
   I'm sure i'm not the only one seeking for a nice java host...
  
   Thank you.
  



  



-- 
Ryan Gravener
http://ryangravener.com