[flexcoders] SingleForm seperated by TabNavigator
I have a form that is broken down into specific chunks using a TabNavigator. The problem I am having is selecting an item from a datagrid populates the form field, but if I Update without first selecting each Tab I get an error when my Validators are being processed. What can I do to correct this error?
[flexcoders] ColumnChart question
I need to display a chart that contains a value for total users and then break it down by user types, What I currently have is a columnchart that displays the bars for each user type. Can I set what I currently have infront of another single bar that discribes the total users?
[flexcoders] Re: Nested Repeater problem
Here is an example of the output returned in one instance: ( Object)#0 1 = (Object)#1 ANSWERS = (Object)#2 1 = 76-100% QUESTION = What percentage of yoru time is spent in the office? 2 = (Object)#3 ANSWERS = (Object)#4 1 = 0-25% QUESTION = What percentage of your time is spent in your vehicle/on the road? 3 = (Object)#5 ANSWERS = (Object)#6 1 = pens/pencils QUESTION = What promotional item could be provide for you that would help you? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What does your data look like in Flex? I don't read cf. You can ObjectUtil.toString() method to display the object. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bulldog65mustang Sent: Tuesday, January 30, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Nested Repeater problem I have modified the dataprovider to that of an Object. I have coldfusion returning a struct: cfset responses[#variables.loopIndex#] = StructNew() cfset responses[#variables.loopIndex#].question = #qry_questions.QuestionText# cfset responses[#variables.loopIndex#].answers = StructNew() I am still having problems extracting the data from the Object using a repeater. The following is only supposed to display the questions, but doesn't. What is my problem? mx:Repeater id=rp_question dataProvider={obj_responses} mx:VBox width=100% mx:Text id=qtext width=100% fontWeight=bold mx:text{rp_question.currentIndex + 1}.) {rp_question.currentItem.QUESTION.toString()}/mx:text /mx:Text /mx:VBox /mx:Repeater --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: The data for each item in the nested repeater must be nested in the dataProvider for the main repeater. You pass the appropriate part of the main dataProvider to the nested repeater using currentItem. Of course, you will need to use an AsyncToken when you call the answer RO, so that in its resultHandler you can associate the correct data with the correct item at the main repeater level. I'd use XML for this. Also, it would be better to build this data on the server, and pass the whole datqaProovider at once. If that is an option. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of bulldog65mustang Sent: Friday, January 26, 2007 1:20 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Nested Repeater problem I have a situation where I need to call a RemoteObject that returns a set of questions. I set the dataProvider of my Repeater to this ArrayCollection. The Result Handler of this RO loops through the ArrayCollection and calls another RO to retreive the answers( may have multiple answers per question). the problem I have is that each answer for the questions retreived are the answer of only the last question. I know why this is occuring, I have the same dataProvider being used for the inner Repeater. My question is how can I fix this. I have tried to insert the answer results from each question into an Array, but I cannot get the Repeater to work when I try this.
RE: [flexcoders] Rotate Items in HorizontalList
I need each item to rotate one after the other like 1,2,3,4,1,2,3,4,1, From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dustin Mercer Sent: Thursday, October 12, 2006 5:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList Do you need to only have one rotating at a time, rotating after one another and then starting again, or do they all need to rotate at once? What is the exact behavior you want to see? One thing you can try is setting the repeatCount on your sequence effect. That should make the sequence start again, but I am not sure if thats exactly what you are looking for. Dustin Mercer From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of bulldog65mustang Sent: Thursday, October 12, 2006 3:48 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Rotate Items in HorizontalList Is it possible to rotate the items in a HorizontalList? I have used the mx:Sequence and mx:AnimateProperty tag to move through the items one at a time, but once it reaches the end its done. I need to continually cycle the items in the List. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Rotate Items in HorizontalList
Setting repeatCount=0 gave me the effect I has hoping for. The other Issue I am having is that the items in my HorizontalList are Images and I want the Image to occupy 100% of the List having a columnCount=1. Right now I only get the Image to occupy about a quarter of the space I want. I have tried to create a custom itemRenderer like such: ?xml version=1.0? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml horizontalAlign=center verticalGap=0 borderStyle=none mx:Image id=image width=100% height=100% source={data.image}/ /mx:VBox but cannot get it to work when I supply the itemRenderer=MYITEMRENDERER property of the HorizontalList. Does the mxml file need to be complied? How do additional mxml files get compiled when running the main application? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Crane Sent: Thursday, October 12, 2006 6:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList I need each item to rotate one after the other like 1,2,3,4,1,2,3,4,1, From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dustin Mercer Sent: Thursday, October 12, 2006 5:59 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList Do you need to only have one rotating at a time, rotating after one another and then starting again, or do they all need to rotate at once? What is the exact behavior you want to see? One thing you can try is setting the repeatCount on your sequence effect. That should make the sequence start again, but I am not sure if thats exactly what you are looking for. Dustin Mercer From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of bulldog65mustang Sent: Thursday, October 12, 2006 3:48 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Rotate Items in HorizontalList Is it possible to rotate the items in a HorizontalList? I have used the mx:Sequence and mx:AnimateProperty tag to move through the items one at a time, but once it reaches the end its done. I need to continually cycle the items in the List. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Rotate Items in HorizontalList
Well I have created my custom ItemRenderer.mxml file set the itemRenderer property of the HorizontalList to that itemRenderer but when I compile the project only the main file is compiled into a swf. When I run the app nothing appears in the HorizontalList. I currently have itemRenderer=mx.controls.Image , but this is not filling up the list properly (to 100%). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dustin Mercer Sent: Thursday, October 12, 2006 7:28 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList You are on the right track here. The mxml will compile itself into the swf when referenced properly. Remember to add any package names to the reference to the itemRenderer. Here is an example Package: Com.blah.blah Class: ItemRenderer.mxml HorizontalList: mx:HorizontalList itemRenderer=com.blah.blah.ItemRenderer / P.S. from your example, remember to set the width=100%and height=100% on the vbox in the ItemRenderer file. You may not need to do this, but it definitely shouldnt hurt J Also the ItemRenderer=MYITEMRENDERER is case-sensitive. Unless your ItemRenderer.mxml file is all caps, that wont work. Dustin Mercer From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jeremy Crane Sent: Thursday, October 12, 2006 4:50 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList Setting repeatCount=0 gave me the effect I has hoping for. The other Issue I am having is that the items in my HorizontalList are Images and I want the Image to occupy 100% of the List having a columnCount=1. Right now I only get the Image to occupy about a quarter of the space I want. I have tried to create a custom itemRenderer like such: ?xml version=1.0? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml horizontalAlign=center verticalGap=0 borderStyle=none mx:Image id=image width=100% height=100% source={data.image}/ /mx:VBox but cannot get it to work when I supply the itemRenderer=MYITEMRENDERER property of the HorizontalList. Does the mxml file need to be complied? How do additional mxml files get compiled when running the main application? From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Thursday, October 12, 2006 6:37 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList I need each item to rotate one after the other like 1,2,3,4,1,2,3,4,1, From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dustin Mercer Sent: Thursday, October 12, 2006 5:59 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Rotate Items in HorizontalList Do you need to only have one rotating at a time, rotating after one another and then starting again, or do they all need to rotate at once? What is the exact behavior you want to see? One thing you can try is setting the repeatCount on your sequence effect. That should make the sequence start again, but I am not sure if thats exactly what you are looking for. Dustin Mercer From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of bulldog65mustang Sent: Thursday, October 12, 2006 3:48 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Rotate Items in HorizontalList Is it possible to rotate the items in a HorizontalList? I have used the mx:Sequence and mx:AnimateProperty tag to move through the items one at a time, but once it reaches the end its done. I need to continually cycle the items in the List. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] RemoteObject call to POJO on JRUN
Here is the mapping I have for the AMFGatewayServlet in my flex servers /WEB-INF/web.xml file: !-- Flash Remoting AMF Gateway URL -- servlet-mapping servlet-nameAMFGatewayServlet/servlet-name url-pattern/amfgateway/*/url-pattern /servlet-mapping As for using a sniffer, NO I havent tried using one. How might I go about it, what program should I use? Also, I have since installed Tomcat and copied the server I had setup on JRun onto it and magically it is working! Now, since we know it is not my code or the flex-config.xml configuration that it must be JRun and/or a conflict with coldfusion. Im not sure how to resolve this issue, and am pretty pissed and frustrated having found out that everything I needed to do to get my remote java classes to work was correct. I would like to still figure out what the issue is with JRun problem. Thanks, Jeremy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Farland Sent: Sunday, October 16, 2005 6:05 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RemoteObject call to POJO on JRUN Are you sure that /amfgateway is mapped to your Flex AMF GatewayServlet in /WEB-INF/web.xml and not a coldfusion one? Have you used a sniffer to try and watch where your SWF is trying to call - i.e. tracking down host names, ports, context roots, what have you... From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Friday, October 14, 2005 5:57 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RemoteObject call to POJO on JRUN One more thing that I should mention is that Flex and Coldfusion are installed on separate JRun server instances. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Friday, October 14, 2005 7:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject call to POJO on JRUN Ok, I have again resumed trying to figure out how to get a call to a Remote Java object working. I posted a previous message on this topic, but was not able to get a working answer. The PROBLEM: When calling a java class located in {contextroot}\classes\com\obc I get a response of Service threw an exception during method invocation: no service named com.obc.User known to Flash Remoting MX. BACKGROUND: Flex installed on a Coldfusion MX integrated JRun4 server. The remote-object section of the flex-config file contains the following remote-objects amf-gateway{context.root}/amfgateway/amf-gateway amf-https-gateway{context.root}/amfgateway/amf-https-gateway allow-url-overridefalse/allow-url-override whitelist !-- whitelist config for unnamed objects -- unnamed source*/source MORE BACKGROUND: I can make a successful call to a coldfusion component as a webservice using mx:RemoteObject It seems to me that somehow there is a conflict with the remoting gateway for coldfusion and the one for flex, but I really am not sure how to fix it if it is actually what is causing the problem. If anyone has experienced this problem, or knows of a solution I really appreciate your suggestions. Thanks, Jeremy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] RemoteObject call to POJO on JRUN
Ok, I have again resumed trying to figure out how to get a call to a Remote Java object working. I posted a previous message on this topic, but was not able to get a working answer. The PROBLEM: When calling a java class located in {contextroot}\classes\com\obc I get a response of Service threw an exception during method invocation: no service named com.obc.User known to Flash Remoting MX. BACKGROUND: Flex installed on a Coldfusion MX integrated JRun4 server. The remote-object section of the flex-config file contains the following remote-objects amf-gateway{context.root}/amfgateway/amf-gateway amf-https-gateway{context.root}/amfgateway/amf-https-gateway allow-url-overridefalse/allow-url-override whitelist !-- whitelist config for unnamed objects -- unnamed source*/source MORE BACKGROUND: I can make a successful call to a coldfusion component as a webservice using mx:RemoteObject It seems to me that somehow there is a conflict with the remoting gateway for coldfusion and the one for flex, but I really am not sure how to fix it if it is actually what is causing the problem. If anyone has experienced this problem, or knows of a solution I really appreciate your suggestions. Thanks, Jeremy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Disabling a stack in an accordion
Is it possible to disable a stack within an accordion until an event is fired? I tried setting the enabled property of the id from the Canvas to false, but this only disabled the canvas and not the Accordion stack item. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Tree selectedNode
I am having some trouble setting the selected Node in a Tree. Ive see the previous posts on this and am still not able to get this to work. What I am doing is as follows: I have a Tree that the nodes are draggable to a datagrid. Now I want to take the node from the datagrid , drag-and-drop into another component, and have my tree get updated to the proper node. I have taken some code that I found on another post related to opening the nodes in a tree and have come up with this. function updateSelNode(event){ var i:Number=0; var node:mx.controls.treeclasses.TreeNode=navCtrl.getTreeNodeAt(i); while (node != undefined){ if (node == event.selectedNode){ //mx.controls.Alert.show(Node Matched); navCtrl.selectedNode = event.selectedNode; node = undefined; } else{ node = navCtrl.getNodeDisplayedAt(i); } i++; } } When I drag my Node from the Datagrid, this event is fired, but the (node == event.selectedNode ) portion if statement is never met. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Passing arguments to a PopupManager
Does anyone see why I am having trouble passing arguments to a PopupManager when clicking on an image found in a Repeater? mx:Repeater id=videoRepeater dataProvider={array} mx:Image toolTip={videoRepeater.currentItem} source=@Embed('../images/videoicon.gif') width=21 height=18 mouseDown=mx.managers.PopUpManager.createPopUp(this,assets.components.pVideoPanel,true,{url:videoRepeater.currentItem})/ /mx:Repeater Using this code, the tooltip displays the name of the video as expected, however when I mouseDown on the image to create the popup, the value of url is not getting passed properly. I have defined url as an Object within the popup component. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Changing Stylesheets
Is it possibly to switch stylesheets within an application? I have an application where I want to load the appropriate stylesheet once the user has logged in to the system. So my login screen has a general appearance, that changes to a company specific appearance when logged in. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Images in datagrid
Is it possible to place an icon in a datagrid? I have a tree setup that is drag enabled so I can drag the node over to a datagrid ( sort of a favorites container), and I want to populate the datagrid with an icon next to the node name. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Problem accessing RemoteObjects
Since I am able to invoke my class, and receive a valid response from a JSP page, can you think of anything else I might try to get my RemoteObject call to work from within Flex? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Wednesday, September 07, 2005 9:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem accessing RemoteObjects I will try to load the class in a JSP later on today. Below is basically what I have my User class stripped down to right now. See any problems? Have any other suggestions? package com.obc; import java.sql.*; public class User { public User(){} public String qryUsers(){ return Hello, from Java RemoteObject; } } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Wednesday, September 07, 2005 9:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem accessing RemoteObjects The Creating Service message you see is from the client side, so it is a little misleading in that it makes it look like RemoteObject already found things, but it isn't an indication of how things are happening on the server side. The error message you are getting says that the class could not be found or could not be loaded on the server side. Can you try to load the class in a JSP page or a servlet, just to be really sure that it works? Do you have a no-argument constructor? What classes are you importing within com.obc.User? (And looking at the error message- ah, shoot, I thought we had gotten all the Flash Remoting MX references out of there. :) ) -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Wednesday, September 07, 2005 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem accessing RemoteObjects I am trying to access a RemoteObject that I created to retrieve information from a MSSQL database, and cannot get it to work. Any suggestions on this are greatly appreciated. Details to follow: When Debugging the app from within Flex Builder I get the following under the Output Tab: RemoteObject_AMF: Creating Service for com.obc.User RemoteObject_AMF: Creating gateway connection for http://localhost:/development/amfgateway RemoteObject_AMF: Successfully created Service. However, when I click on a button I created to invoke the RemoteObject method I receive this error: Service threw an exception during method invocation: No service named com.obc.User is known to Flash Remoting MX. I have the following in my flex-config.xml file under remote-objects unnamed source*/source I have also modified my RemoteObject to simply return a string, until I am able to get this to work. The java class files are being placed in the following location on the JRun Server: JRUN DIR\servers\SERVERNAME\development\WEB-INF\classes\com\obc -- 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 Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem accessing RemoteObjects
I am trying to access a RemoteObject that I created to retrieve information from a MSSQL database, and cannot get it to work. Any suggestions on this are greatly appreciated. Details to follow: When Debugging the app from within Flex Builder I get the following under the Output Tab: RemoteObject_AMF: Creating Service for com.obc.User RemoteObject_AMF: Creating gateway connection for http://localhost:/development/amfgateway RemoteObject_AMF: Successfully created Service. However, when I click on a button I created to invoke the RemoteObject method I receive this error: Service threw an exception during method invocation: No service named com.obc.User is known to Flash Remoting MX. I have the following in my flex-config.xml file under remote-objects unnamed source*/source I have also modified my RemoteObject to simply return a string, until I am able to get this to work. The java class files are being placed in the following location on the JRun Server: JRUN DIR\servers\SERVERNAME\development\WEB-INF\classes\com\obc -- 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 Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Problem accessing RemoteObjects
I will try to load the class in a JSP later on today. Below is basically what I have my User class stripped down to right now. See any problems? Have any other suggestions? package com.obc; import java.sql.*; public class User { public User(){} public String qryUsers(){ return Hello, from Java RemoteObject; } } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Wednesday, September 07, 2005 9:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem accessing RemoteObjects The Creating Service message you see is from the client side, so it is a little misleading in that it makes it look like RemoteObject already found things, but it isn't an indication of how things are happening on the server side. The error message you are getting says that the class could not be found or could not be loaded on the server side. Can you try to load the class in a JSP page or a servlet, just to be really sure that it works? Do you have a no-argument constructor? What classes are you importing within com.obc.User? (And looking at the error message- ah, shoot, I thought we had gotten all the Flash Remoting MX references out of there. :) ) -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Wednesday, September 07, 2005 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem accessing RemoteObjects I am trying to access a RemoteObject that I created to retrieve information from a MSSQL database, and cannot get it to work. Any suggestions on this are greatly appreciated. Details to follow: When Debugging the app from within Flex Builder I get the following under the Output Tab: RemoteObject_AMF: Creating Service for com.obc.User RemoteObject_AMF: Creating gateway connection for http://localhost:/development/amfgateway RemoteObject_AMF: Successfully created Service. However, when I click on a button I created to invoke the RemoteObject method I receive this error: Service threw an exception during method invocation: No service named com.obc.User is known to Flash Remoting MX. I have the following in my flex-config.xml file under remote-objects unnamed source*/source I have also modified my RemoteObject to simply return a string, until I am able to get this to work. The java class files are being placed in the following location on the JRun Server: JRUN DIR\servers\SERVERNAME\development\WEB-INF\classes\com\obc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Problem accessing RemoteObjects
I just created a simple JSP page and was able to successfully retrieve data from it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Wednesday, September 07, 2005 9:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem accessing RemoteObjects The Creating Service message you see is from the client side, so it is a little misleading in that it makes it look like RemoteObject already found things, but it isn't an indication of how things are happening on the server side. The error message you are getting says that the class could not be found or could not be loaded on the server side. Can you try to load the class in a JSP page or a servlet, just to be really sure that it works? Do you have a no-argument constructor? What classes are you importing within com.obc.User? (And looking at the error message- ah, shoot, I thought we had gotten all the Flash Remoting MX references out of there. :) ) -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane Sent: Wednesday, September 07, 2005 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem accessing RemoteObjects I am trying to access a RemoteObject that I created to retrieve information from a MSSQL database, and cannot get it to work. Any suggestions on this are greatly appreciated. Details to follow: When Debugging the app from within Flex Builder I get the following under the Output Tab: RemoteObject_AMF: Creating Service for com.obc.User RemoteObject_AMF: Creating gateway connection for http://localhost:/development/amfgateway RemoteObject_AMF: Successfully created Service. However, when I click on a button I created to invoke the RemoteObject method I receive this error: Service threw an exception during method invocation: No service named com.obc.User is known to Flash Remoting MX. I have the following in my flex-config.xml file under remote-objects unnamed source*/source I have also modified my RemoteObject to simply return a string, until I am able to get this to work. The java class files are being placed in the following location on the JRun Server: JRUN DIR\servers\SERVERNAME\development\WEB-INF\classes\com\obc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.