Re: [flexcoders] Experiences with XMLSocket?

2005-04-05 Thread Matthew Shirey
It should be pointed out that the server is what you are most interested in for this case. I have had good experiences using XMLSocket and Flash in many situations. I have however seen many horrible server implementations that result in poor performance that have nothing to do with the Flash

[flexcoders] Re: Tab navigator questions ANYONE ?

2005-04-05 Thread r0main
Thanks alot Manish for the Tab style, that's exactly what I was looking for... About the Icon: the following mxml app have three buttons, the first one changes the icon of the first tab in a binding way, the second in a direct way, and the third allows me to control the icon's value... While

[flexcoders] Re: Run MXML on PC, Calling to Java on Remote Server - Help

2005-04-05 Thread bhaq1972
just a few things you can do -install the samples application (samples.war) ..if you havent already. if your trying to access your java objects on websphere you probably need to use mx:RemoteObject tag with an endpoint attribute pointing to your java object e.g. mx:RemoteObject id=remote1

RE: [flexcoders] Run MXML on PC, Calling to Java on Remote Server - Help

2005-04-05 Thread Steven Webster
Libby, Chapter 20 of Developing Rich Clients with Macromedia Flex is a free download (I posted in an earlier message) and covers in great detail the use of the RemoteObject tag, to achieve just what you are trying to do. Steven -Original Message- From: Libby Chantel [mailto:[EMAIL

[flexcoders] Re: Problem with showBusyCursor on a popupWindow

2005-04-05 Thread joao_m_fernandes
Matt, With FB debugger I can catch this each time I try to close the titleWindow. The problem is that the method in question does not exist in my component. Remote Object Method: cfcs.core.tab_suport.substr Parameter 1: name : param1 type : number value : 0 Parameter 2: name : param2 type

[flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Aral Balkan
Hi all, Sorry I haven't had the chance to report this sooner but it appears that Flex issues incorrect warnings when you extend the core Application and/or Form classes and try to reference a component both in MXML and AS. Case in point: // ArpPizza.mxml pizzaView:Application

RE: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Alistair McLeod
Hi Aral, This doesn't look like a bug to me. You are effectively creating a sub-class with the same class members as its base class contains (set the keep-generated flag when you compile and you'll see that) and the Flex compiler is correctly warning you of that. Taking MXML out of the

Re: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Aral Balkan
Hi Ali, Actually, your email highlights the problem even better than mine :) The problem currently is exactly as you illustrate. I am being forced to write the equivalent of the code you provided (below) because Flex does not understand that orderForm already exists in the base class and

Re: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Manish Jethani
On Apr 5, 2005 6:15 PM, Aral Balkan [EMAIL PROTECTED] wrote: The problem currently is exactly as you illustrate. I am being forced to write the equivalent of the code you provided (below) because Flex does not understand that orderForm already exists in the base class and redeclares it while

RE: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Steven Webster
Manish, s/id=\([^]\+\)/initialize=\1 = event.target/g You're coding MXML in vi ? ;-) Steven :wq! -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.2 - Release Date: 05/04/2005 Yahoo! Groups Links * To visit your

[flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Jeff Krueger
All, I have a method on my app server called getAllUser() that returns UserVO[]. When I get that back in flex as an Array the items inside the array are of type object, instead of the actionScript UserVO that is associated with that java type being returned. My work around for this

Re: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Manish Jethani
On Apr 5, 2005 8:37 PM, Steven Webster [EMAIL PROTECTED] wrote: s/id=\([^]\+\)/initialize=\1 = event.target/g You're coding MXML in vi ? ;-) Totally, Steven! I use Vim. The secret of my energy. ;-) Excerpts from my vimrc file: autocmd BufRead *.mxml set filetype=xml

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Peter Farland
Are you using Object.registerClass() to register the UserVO type to map the fully qualified ActionScript class name to that returned by Java (rather than the old Flex 1.0 _remoteClass which I strongly discourage in Flex 1.5)? If so, then the next step is verify that the server sent back

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Simon Fifield
Hi Jeff, You don't mention if you are using the Cairngorm frameworkor not, but I do and I also use ValueObjects. I took the ViewHelper/ViewLocator pattern and created a ValueObject (or Model) Pattern so that finding ValueObjects from anywhere in your app is as easy as the ViewHelper

RE: [flexcoders] Run MXML on PC, Calling to Java on Remote Server - Help

2005-04-05 Thread Libby Chantel
I read your chapter but it didn't explain how to do what I am trying to do. I think my favorite part was on page 5, where it says: ... if you’re implementing an RIA interface on an existing J2EE infrastructure that has business logic contained in your Servlet tier, consult the Flex documentation

RE: [flexcoders] Run MXML on PC, Calling to Java on Remote Server - Help

2005-04-05 Thread Simon Fifield
Hi Libby, I'm no J2EE expert and I do not use servlets with Flex, but I do use RemoteObjects. Can't you instantiate your servlet from a Java RemoteObject and call the servlets methods from within the RemoteObject? Regards, Simon Fifield -Original Message- From: Libby Chantel

RE: [flexcoders] Run MXML on PC, Calling to Java on Remote Server - Help

2005-04-05 Thread Tracy Spratt
I'm still not sure how far you have gotten and where you are stuck. Have you run the RemoteObject example in the samples folder? I also posted a simple example that extends the example: http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI D=18 Now both those examples use a

[flexcoders] PopUp Help!

2005-04-05 Thread Jeff
Greetings All, I have been looking for some pop up example code online and have not found much so far. For example, I have a form item of airport code. The user should be able to initiate a popup search to look for said code by city, country, airport name, etc. Then select the apporpirate code

[flexcoders] Data Grid and cell renderer

2005-04-05 Thread Naidim
I'm using a simple DateField as the CellRenderer of a column in my DataGrid. Clicking in the cell with the mouse brings up the date picker ,allowing me to select a date, but tabbing through the grid brings up a textinput without the date information already entered by the date picker. Is there

[flexcoders] XMLNode CDATA

2005-04-05 Thread viraf_bankwalla
Hi, I am writing an XML decoder for my HTTPService, and noticed that the nodeValue is a null when I have a CDATA element. How do I get the CDATA value from the XMLNode? Thanks. - viraf Yahoo! Groups Links * To visit your group on the web, go to:

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Jeff Krueger
Simon, Hi I am using the Cairngorm framework. My problem is not in finding a value object in the code as much as getting an array of object back form the server. But thanks for the information. Jeff From: Simon Fifield [mailto:[EMAIL PROTECTED] Sent: Tuesday, April

RE: [flexcoders] Simple Cairngorm architecture question

2005-04-05 Thread Jeff Krueger
Maybe I don't fully understand the question. But it seems that you would broadcast the DeleteGroup event only once the click of ok was pressed. The broadcast will find the command to do the work and then notify the view helper when done. Jeff -Original Message- From: cazzaran

Re: [flexcoders] Re: Tab navigator questions ANYONE ?

2005-04-05 Thread Manish Jethani
On Apr 5, 2005 12:35 PM, r0main [EMAIL PROTECTED] wrote: While both binding direct way of changing value do update icon's property, there is no visual impact of the update onscreen... Any idea on what to trigger to force icon's visual-refresh ??? Seems like the tabs are updated only once

Re: [flexcoders] Re: PopUp Help!

2005-04-05 Thread Manish Jethani
On Apr 6, 2005 1:53 AM, Jeff [EMAIL PROTECTED] wrote: Sure, although there is not much to my code in terms of what I want to do with a popup. You want to use a TitleWindow. Search the arcihved for TitleWindow... there's tons of code examples:

[flexcoders] Re: XMLNode CDATA

2005-04-05 Thread viraf_bankwalla
Thanks - I will try this. Is there any documentation (except in the ActionScript manual describing the XML class) that defines the rules as to when to use nodeValue vs firstChild. - viraf --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Try firstChild.firstChild

RE: [flexcoders] Re: Simple Cairngorm architecture question

2005-04-05 Thread Omar Ramos
Why do you have to only have one click method? You can use the Delegate class to redirect each event to a difrent method. Omar Ramos Itacon Corporation Technology Manager From: cazzaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 4:34 PMTo:

[flexcoders] ViewStack children instance

2005-04-05 Thread Valy Sivec
I know this is a simple question that maybe has been posted many times, but I cound't find an answer so... I have a viewStack container and I want to prepopulate one view before displaying it. How can I do that? Thanks, Valy Do you Yahoo!? Better first dates. More second dates. Yahoo!

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Simon Fifield
Hi Jeff, I do exactly what you are doing in Test 2, I duplicated this pattern from the Login example of the Cairngorm framework files. If you find a better way, let me know because it does add unnecessary extra work to wrap an extra value object around your array when that's all you

[flexcoders] Re: Simple Cairngorm architecture question

2005-04-05 Thread cazzaran
If you looks at the mx.controls.Alert class, you can only give the show() method a listener object, and that object must implement a click() method. You can't specify which method the Alert may call, so I'm stuck giving it an object that has one click(). If this object happens to be the MXML,

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Jeff Krueger
I don't really do anything in my constructor. I use to set the _remoteClass. class net.crownmedia.flex.vo.user.UserVO { public static var SUCCESFULSTATUS:String = APPROVED; public function UserVO() { // _remoteClass = net.crownmedia.flex.user.vo.UserVO;

Re: [flexcoders] ViewStack children instance

2005-04-05 Thread Manish Jethani
On Apr 6, 2005 2:14 AM, Valy Sivec [EMAIL PROTECTED] wrote: I have a viewStack container and I want to prepopulate one view before displaying it. How can I do that? Quick answer: In the initialization phase (initialize handler), switch the selectedIndex to the index of that view which you

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Peter Farland
Just curious, what does: mx.core.Application.alert (Test with userVo + event.result[0].userName); do? 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] *

Re: [flexcoders] Bug report: Incorrect hidden member in ancestor class warnings

2005-04-05 Thread Manish Jethani
On Apr 6, 2005 2:55 AM, Aral Balkan [EMAIL PROTECTED] wrote: I do hope that the Flex team can get around to fixing this for the next release. Thanks for reporting this and giving your opinion as well, Aral. Manish Yahoo! Groups Links * To visit your group on the web, go to:

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Jeff Krueger
Hm, that worked! Here is the log, not sure if it shows anything. Any idea how I can get that to an object? Jeff Info: Completed 'net.crownmedia.flex.user.FlexUserDelegate.getAll' with reply me thod 'onResult' in 156ms Info: Serializing response (Message #0 targetURI=/2/onResult,

RE: [flexcoders] Remote object that returns an array of objects

2005-04-05 Thread Peter Farland
Perhaps there's something going wrong when casting to Array (or UserVO, though that doesn't effect the second test)? However, I've not heard of this issue before... has anyone else? -Original Message- From: Jeff Krueger [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 5:56

RE: [flexcoders] Re: Problem with showBusyCursor on a popupWindow

2005-04-05 Thread Matt Chotin
Well it looks like something is trying to call substr on your RemoteObject and Im not sure why because I dont think any of our code should be doing it on random components.  Do you have calls to substr in your code?  Do you have any event handlers calling your RemoteObject that may be

[flexcoders] Development Environment Setup Q's

2005-04-05 Thread temporal_illusion
I've been thinking recently on how to setup a good development environment for multiple developers on the same Flex application. Using CVS or Subversion would be the goal. Getting a production or test version out of CVS could be done with Ant, that seems simple enough. Where I run into

RE: [flexcoders] Re: Simple Cairngorm architecture question

2005-04-05 Thread Omar Ramos
Hi Josh, Here is a example of how you would do it. var alertListener:Function = Delegate.create(this,OnAlert_Click); Alert.show("This is a test of errors", "Error", Alert.OK | Alert.CANCEL, this, alertListener); function OnAlert_Click(){trace("CLICK");} or you could also do this.

[flexcoders] datagrid with a single-node dataprovider

2005-04-05 Thread John Daharsh
1) I have searched the flexcoders group for an answer 2) I don't find this documented anywhere, but every example of a datagrid has 2 or more nodes of data I have a datagrid with a dynamic datasource that contains from 0 to N elements (they are XML nodes) It works fine as long as there is more

Re: [flexcoders] datagrid with a single-node dataprovider

2005-04-05 Thread Jeff Tapper
Try wrapping it with mx.utils.ArrayUtil.toArray() A single node in XML isnt neccessarily interpretted as an array, while multiple nodes of the same name are. However, you can use the static toArray method to treat the node as a 1 element array: mx:DataGrid id=moduleDatagrid

Re: [flexcoders] How to get access to HttpSession in a stateful-c lass

2005-04-05 Thread Dan Tropp
Steven, Thanks for the reply. I realise my question wasn't quite clear - I wanted to access objects in the request object on the client. Or more specifically, pass a complex object that is available to the JSP into the Flex app. This page was what I was after...

[flexcoders] ActionScript Components

2005-04-05 Thread Matthew Shirey
Might someone point me in the direction of some good docs/examples of creating components using ActionScript. I have the RIA book and chapter 10 has some information, but its disappointingly sparse. Mostly I am interested in how to create a composite component. A component containing many other

Re: [flexcoders] datagrid with a single-node dataprovider

2005-04-05 Thread John Daharsh
Jeff, That worked like a charm and saved me from some ugly code. Thanks! On Apr 5, 2005 6:02 PM, Jeff Tapper [EMAIL PROTECTED] wrote: Try wrapping it with mx.utils.ArrayUtil.toArray() A single node in XML isnt neccessarily interpretted as an array, while multiple nodes of the same name

[flexcoders] Re: Development Environment Setup Q's

2005-04-05 Thread dan_tropp
Hi Jason, This interests me too. I'm also interested to know what development tools (IDEs) people are using for their Java, AS and Flex code. I'm currently using Eclipse and Flex Builder. I haven't played with the site definition aspect of Flex Builder yet, but it would be nice to have a

[flexcoders] Re: Simple Cairngorm architecture question

2005-04-05 Thread cazzaran
Omar, That really does help, I appreciate it. I was trying to figure out how to accomplish this... Again, thanks! -Josh --- In flexcoders@yahoogroups.com, Omar Ramos [EMAIL PROTECTED] wrote: Hi Josh, Here is a example of how you would do it. var alertListener:Function =

Re: [flexcoders] Development Environment Setup Q's

2005-04-05 Thread JesterXL
We use Subversion at work. I'd rather use Visual Source Safe because the lack of checkout ticks me off. Our folder structure is conf, for config files, typically XML for Java stuff, like Hibernate, various servletSettings that are project specific, etc. The lib folder houses all of those

[flexcoders] createChild dynamically via DB arguments..

2005-04-05 Thread Scott Barnes
Can I quickly confirm something? In order to use createChild(classPath) that initial classPath has to be included before runtime correct? in that you cannot instantiate a custom MXML component unless you either xmlns: / import it? In saying that, if you have a situation where you want to via an