[flexcoders] installing WTP in Flash Builder 4.6 standalone

2012-03-28 Thread Greg Morphis
I'm trying to install WTP in the standalone version of FB 4.6, I add
the site: http://download.eclipse.org/webtools/updates
and I choose WTP 3.1.1 and I keep getting errors. At first it says:
Your original request has been modified.
  Eclipse XML Editors and Tools will be ignored because a newer
version is already installed.
Cannot complete the install because one or more required items could
not be found.

Okay, no problem, I uncheck that and hit next..  I get a bunch of
Cannot satisfy dependency: errors.

How do I install this in the standalone version?

Thanks in advance


[flexcoders] send failed

2012-01-20 Thread Greg Morphis
We have an older flex app written in Flex 2 with ColdFusion as middle ware.
I haven't messed with this app or Flex in well over a year.
The app partially loads up and then we get a couple Send Failed when
hitting the page.
Is there a place to check for logs, that error doesn't tell us anything at
all. I checked the ColdFusion logs and there's nothing in there either.

Like I said, it's been a long time since I've looked at Flex so please be
gentle :)

Thanks


[flexcoders] Implementation of project not found...

2010-01-11 Thread Greg Morphis
Ever since I reinstalled Eclipse3.2, FB2, FDS to fix my environment to
build and compile a CF/Flex project I've been getting this error on an
old Java/Flex project that was compiling fine with no warnings or
errors.
Implementation of project facet.flex.enterprise could not be found.
Functionality will be limited.

It appears, however, that my project is compiling even with this warning.
Does anyone know the impact of this warning? Can I just ignore it?

Thanks


Re: [flexcoders] Re: Help, please

2009-12-11 Thread Greg Morphis
Thanks... I finally just reinstalled Eclipse 3.2, FDS2.0.1 and Flex
Builder 2.0.1 and I can compile Flex apps from within FB2.

On Fri, Dec 4, 2009 at 2:09 PM, invertedspear invertedsp...@yahoo.com wrote:
 You might try the adobe forums themselves, but you're using an old version of 
 Flex as a plugin to eclipse so they might nor really have an answer for you. 
 stackoverflow.com has a good community of people that might be able to help 
 you, they're pretty much all developers so someone may have more experience 
 with your setup.


 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 So no one has any ideas what could be the cause of this? Any Adobe
 people out there? Where else can I post my problem to get some kind of
 help?

 On Thu, Dec 3, 2009 at 7:43 AM, Greg Morphis gmorp...@... wrote:
  Should I try uninstalled Flex Builder 2 and reinstalling it? Has no
  one ran into anything like this?
 
  On Wed, Dec 2, 2009 at 1:05 PM, Greg Morphis gmorp...@... wrote:
  I need help when trying to compile a Flex 2 app with SSL using Ant I
  keep getting an error. I've Googled Error: Unable to locate specified
  base class 'mx.core.Application' for component class 'index'
  with not much help. I'm using Eclipse with Flex builder 2 lugin. Please 
  help.
 
  Buildfile:
  C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml
 
  compileSSL:
  [java] Loading configuration file C:\Program Files\Adobe\Flex Builder
  2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
  [java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
  specified base class 'mx.core.Application' for component class
  'index'.
  BUILD FAILED
 
  C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml:85: Java returned: 1
 
  Total time: 3 seconds
 
  Here's from the build file
 
  !-- compile the actual project for SSL --
  target name=compileSSL depends= 
  java jar=${mxmlcjar}
  fork=true
  failonerror=true
  maxmemory=128m
  dir=${flexsdk}\frameworks
  arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
  arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
  arg value=-services=${flexservices}\ssl-services-config.xml /
  arg value=-include-libraries=${lib}\cairngorm.swc /
  arg value=-include-libraries+=${lib}\RRTUtilities.swc /
  arg value=-context-root=/ /
  arg value=-output=${bin}\${flex.ouput_file} /
  arg value=-file-specs=${src}\${flex.src_file}/
  /java
  /target
 
 





 

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






[flexcoders] Compile Flex app for SSL

2009-12-04 Thread Greg Morphis
I have a Flex 2 app that needs to be compiled for our https server. It
compiles and runs locally and on the dev server just fine, but when I
push the code to production I get an error that says:
faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Failed: url: 'http://myserver.com/flex2gateway;
But that needs to be https. How can I have Flex Builder compile it for https?

Thanks


[flexcoders] Re: Help, please

2009-12-04 Thread Greg Morphis
So no one has any ideas what could be the cause of this? Any Adobe
people out there? Where else can I post my problem to get some kind of
help?

On Thu, Dec 3, 2009 at 7:43 AM, Greg Morphis gmorp...@gmail.com wrote:
 Should I try uninstalled Flex Builder 2 and reinstalling it? Has no
 one ran into anything like this?

 On Wed, Dec 2, 2009 at 1:05 PM, Greg Morphis gmorp...@gmail.com wrote:
 I need help when trying to compile a Flex 2 app with SSL using Ant I
 keep getting an error. I've Googled Error: Unable to locate specified
 base class 'mx.core.Application' for component class 'index'
 with not much help. I'm using Eclipse with Flex builder 2 lugin. Please help.

 Buildfile:
 C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml

 compileSSL:
 [java] Loading configuration file C:\Program Files\Adobe\Flex Builder
 2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
 [java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
 specified base class 'mx.core.Application' for component class
 'index'.
 BUILD FAILED

 C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml:85: Java returned: 1

 Total time: 3 seconds

 Here's from the build file

 !-- compile the actual project for SSL --
 target name=compileSSL depends= 
 java jar=${mxmlcjar}
 fork=true
 failonerror=true
 maxmemory=128m
 dir=${flexsdk}\frameworks
 arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
 arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
 arg value=-services=${flexservices}\ssl-services-config.xml /
 arg value=-include-libraries=${lib}\cairngorm.swc /
 arg value=-include-libraries+=${lib}\RRTUtilities.swc /
 arg value=-context-root=/ /
 arg value=-output=${bin}\${flex.ouput_file} /
 arg value=-file-specs=${src}\${flex.src_file}/
 /java
 /target




[flexcoders] Re: Help, please

2009-12-03 Thread Greg Morphis
Should I try uninstalled Flex Builder 2 and reinstalling it? Has no
one ran into anything like this?

On Wed, Dec 2, 2009 at 1:05 PM, Greg Morphis gmorp...@gmail.com wrote:
 I need help when trying to compile a Flex 2 app with SSL using Ant I
 keep getting an error. I've Googled Error: Unable to locate specified
 base class 'mx.core.Application' for component class 'index'
 with not much help. I'm using Eclipse with Flex builder 2 lugin. Please help.

 Buildfile:
 C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml

 compileSSL:
 [java] Loading configuration file C:\Program Files\Adobe\Flex Builder
 2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
 [java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
 specified base class 'mx.core.Application' for component class
 'index'.
 BUILD FAILED

 C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml:85: Java returned: 1

 Total time: 3 seconds

 Here's from the build file

 !-- compile the actual project for SSL --
 target name=compileSSL depends= 
 java jar=${mxmlcjar}
 fork=true
 failonerror=true
 maxmemory=128m
 dir=${flexsdk}\frameworks
 arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
 arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
 arg value=-services=${flexservices}\ssl-services-config.xml /
 arg value=-include-libraries=${lib}\cairngorm.swc /
 arg value=-include-libraries+=${lib}\RRTUtilities.swc /
 arg value=-context-root=/ /
 arg value=-output=${bin}\${flex.ouput_file} /
 arg value=-file-specs=${src}\${flex.src_file}/
 /java
 /target



[flexcoders] Help, please

2009-12-02 Thread Greg Morphis
I need help when trying to compile a Flex 2 app with SSL using Ant I
keep getting an error. I've Googled Error: Unable to locate specified
base class 'mx.core.Application' for component class 'index'
with not much help. I'm using Eclipse with Flex builder 2 lugin. Please help.

Buildfile:
C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml

compileSSL:
[java] Loading configuration file C:\Program Files\Adobe\Flex Builder
2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
[java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
specified base class 'mx.core.Application' for component class
'index'.
BUILD FAILED

C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml:85: Java returned: 1

Total time: 3 seconds

Here's from the build file

!-- compile the actual project for SSL --
target name=compileSSL depends= 
java jar=${mxmlcjar}
fork=true
failonerror=true
maxmemory=128m
dir=${flexsdk}\frameworks
arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
arg value=-services=${flexservices}\ssl-services-config.xml /
arg value=-include-libraries=${lib}\cairngorm.swc /
arg value=-include-libraries+=${lib}\RRTUtilities.swc /
arg value=-context-root=/ /
arg value=-output=${bin}\${flex.ouput_file} /
arg value=-file-specs=${src}\${flex.src_file}/
/java
/target


[flexcoders] Re: error compiling flex project

2009-10-30 Thread Greg Morphis
Anyone have an idea why this isn't working?

On Thu, Oct 29, 2009 at 3:55 PM, Greg Morphis gmorp...@gmail.com wrote:
 I have an ANT script which compiles a Flex 2 project and it's giving
 me an error:

 compile:
 [java] Loading configuration file C:\Program Files\Adobe\Flex Builder
 2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
 [java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
 specified base class 'mx.core.Application' for component class
 'index'.

 Here's my ANT script

 target name=compile depends= 
 java jar=${mxmlcjar}
 fork=true
 failonerror=true
 maxmemory=128m
 dir=${flexsdk}\frameworks
    arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
    arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
    arg value=-services=${flexservices}\services-config.xml /
    arg value=-include-libraries=${lib}\cairngorm.swc /
    arg value=-include-libraries+=${lib}\RRTUtilities.swc /
    arg value=-context-root=/ /
    arg value=-output=${bin}\${flex.ouput_file} /
    arg value=-file-specs=${src}\${flex.src_file}/
 /java
 /target

 Can you tell me what's wrong with it? Thanks!



[flexcoders] error compiling flex project

2009-10-29 Thread Greg Morphis
I have an ANT script which compiles a Flex 2 project and it's giving
me an error:

compile:
[java] Loading configuration file C:\Program Files\Adobe\Flex Builder
2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
[java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
specified base class 'mx.core.Application' for component class
'index'.

Here's my ANT script

target name=compile depends= 
java jar=${mxmlcjar}
fork=true
failonerror=true
maxmemory=128m
dir=${flexsdk}\frameworks
arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
arg value=-services=${flexservices}\services-config.xml /
arg value=-include-libraries=${lib}\cairngorm.swc /
arg value=-include-libraries+=${lib}\RRTUtilities.swc /
arg value=-context-root=/ /
arg value=-output=${bin}\${flex.ouput_file} /
arg value=-file-specs=${src}\${flex.src_file}/
/java
/target

Can you tell me what's wrong with it? Thanks!


[flexcoders] custom title for panel

2009-05-08 Thread Greg Morphis
I'm trying to write a custom title for a Panel and I thought something
like this would work but nothing's showing. There's no errors but no
title either.
I'm using Flex 3, what am I missing?
Thanks!

I've pasted the code here so it'll look a little nicer:
http://rafb.net/p/8bs3Ln82.html


Re: [flexcoders] Re: custom title for panel

2009-05-08 Thread Greg Morphis
Thanks Tim, worked beautifully!

On Fri, May 8, 2009 at 12:03 PM, Tim Hoff timh...@aol.com wrote:

 Hi Greg,

 You need to use setActualSize for firstWord and secondWord.  Or, just
 set their width and height explicitly.

 -TH

 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 I'm trying to write a custom title for a Panel and I thought something
 like this would work but nothing's showing. There's no errors but no
 title either.
 I'm using Flex 3, what am I missing?
 Thanks!

 I've pasted the code here so it'll look a little nicer:
 http://rafb.net/p/8bs3Ln82.html






 

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






[flexcoders] Help with Tomcat / Flex issue

2009-05-04 Thread Greg Morphis
We have an app running on a Apache Tomcat server. I was asked to added
some updates to it, everything went well in developing it.
I created a .war locally using jar -cfv *.* myapp.war

I placed the file locally in my tomcat directory and started up
tomcat, it worked fine.
It expanded the files and I was able to log into it using a dev login
and saw dev data.
I moved this WAR to our prod server and forgot to change the dev data
to prod (in the meta-inf/context.xml)
Now it looks like it's loading up into development, production login
doesnt work, only dev and it looks like it's dev data.

I deleted the .war, I deleted the directory it created (I had renamed
it to ROOT.war because that's what it is on the prod server...
D:\Tomcat5.5\webapps\ROOT\
I moved the copied directory back into the tomcat/webapps folder and
restarted tomcat. So everything should have been back the way it was.
It's still only allowing the dev logins.
Any ideas, I desperately need help. I checked the context.xml file in
root/META-INF/context.xml and only the production info is uncommented.
Strange thing is I renamed the file to context.xml_ (notice the
underspace). Restarted the server and it's still only allowing dev
logins and dev data.
It's almost as if it's not even using that context.xml file for it.
Where else is this stored at? I'm begging! Please help!


[flexcoders] Re: Help with Tomcat / Flex issue

2009-05-04 Thread Greg Morphis
Never mind I think I found it.. it created an xml file in the Catalina
directory. I saw in there the dev info and commented it out.
Whew!! dodged a bullet there...

Thanks

On Mon, May 4, 2009 at 10:46 PM, Greg Morphis gmorp...@gmail.com wrote:
 We have an app running on a Apache Tomcat server. I was asked to added
 some updates to it, everything went well in developing it.
 I created a .war locally using jar -cfv *.* myapp.war

 I placed the file locally in my tomcat directory and started up
 tomcat, it worked fine.
 It expanded the files and I was able to log into it using a dev login
 and saw dev data.
 I moved this WAR to our prod server and forgot to change the dev data
 to prod (in the meta-inf/context.xml)
 Now it looks like it's loading up into development, production login
 doesnt work, only dev and it looks like it's dev data.

 I deleted the .war, I deleted the directory it created (I had renamed
 it to ROOT.war because that's what it is on the prod server...
 D:\Tomcat5.5\webapps\ROOT\
 I moved the copied directory back into the tomcat/webapps folder and
 restarted tomcat. So everything should have been back the way it was.
 It's still only allowing the dev logins.
 Any ideas, I desperately need help. I checked the context.xml file in
 root/META-INF/context.xml and only the production info is uncommented.
 Strange thing is I renamed the file to context.xml_ (notice the
 underspace). Restarted the server and it's still only allowing dev
 logins and dev data.
 It's almost as if it's not even using that context.xml file for it.
 Where else is this stored at? I'm begging! Please help!



[flexcoders] employees.xml

2009-04-15 Thread Greg Morphis
Anyone know where I can get a copy of the employees.xml that Flex in a
Week training uses?
I like the vidoes but I learn easier playing around.

Thanks


Re: [flexcoders] employees.xml

2009-04-15 Thread Greg Morphis
it has roomlist.xml in it..

rooms
room
nameColorado Room/name
roomsize20x20/roomsize
cateringserviceYes/cateringservice
restroomlocationWestside near elevator/restroomlocation
capacity150/capacitywindowsSouth wall all glass, garden 
view/windows
wheelchair_accessibleYes/wheelchair_accessible

publictelephone_locationEntry level: North
wall/publictelephone_locationeventtypeseventWedding/event
eventSeminar/event
eventConference/event
eventDinner Party/event
eventDance/event
eventMeeting/event/eventtypes
maxroundtables15/maxroundtables
maxsquaretables10/maxsquaretables
roomimagecolorado.jpg/roomimage/room
room
nameMile High Room/name
roomsize25x30/roomsize
cateringserviceYes/cateringservice
restroomlocationWestside near elevator/restroomlocation
capacity100/capacity
windowsOne window, north wall/windows
wheelchair_accessibleYes/wheelchair_accessible
publictelephone_locationEntry level: North 
wall/publictelephone_location
eventtypeseventWedding/event
eventSeminar/event
eventDinner Party/event
eventDance/event
eventMeeting/event/eventtypes
maxroundtables10/maxroundtables
maxsquaretables8/maxsquaretables
roomimagemilehigh.jpg/roomimage/room
room
...
...


But no employees.xml



On Wed, Apr 15, 2009 at 11:14 AM, Paul Andrews p...@ipauland.com wrote:
 Isn't there a download for the assets for that lesson?

 Paul


[flexcoders] Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

2009-04-09 Thread Greg Morphis
I'm trying to create a Flex project (Flex 3). On the New Flex Project
page I keep getting this error.
Invalid root. The WEB-INF/flex folder must contain either
flex-config.xml or services-config.xml.

I have CF installed to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
My settings on the New Flex Project page are
Server location:
Standalone
Use default location for local CF server is UNCHECKED
ColdFusion root folder: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
Use built-in CF web server is also UNCHECKED
Web root: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
Root URL: http://localhost:8300/

I checked and I do have a WEB-INF/flex in
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war with
services-config.xml in it.

Google search hasnt helped much


[flexcoders] Re: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

2009-04-09 Thread Greg Morphis
If I choose Use built-in ColdFusion web server I still get the same error.
Why is this so jacked up?

On Thu, Apr 9, 2009 at 9:59 AM, Greg Morphis gmorp...@gmail.com wrote:
 I'm trying to create a Flex project (Flex 3). On the New Flex Project
 page I keep getting this error.
 Invalid root. The WEB-INF/flex folder must contain either
 flex-config.xml or services-config.xml.

 I have CF installed to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 My settings on the New Flex Project page are
 Server location:
 Standalone
 Use default location for local CF server is UNCHECKED
 ColdFusion root folder: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 Use built-in CF web server is also UNCHECKED
 Web root: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 Root URL: http://localhost:8300/

 I checked and I do have a WEB-INF/flex in
 C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war with
 services-config.xml in it.

 Google search hasnt helped much



[flexcoders] Re: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

2009-04-09 Thread Greg Morphis
never mind

On Thu, Apr 9, 2009 at 11:46 AM, Greg Morphis gmorp...@gmail.com wrote:
 If I choose Use built-in ColdFusion web server I still get the same error.
 Why is this so jacked up?

 On Thu, Apr 9, 2009 at 9:59 AM, Greg Morphis gmorp...@gmail.com wrote:
 I'm trying to create a Flex project (Flex 3). On the New Flex Project
 page I keep getting this error.
 Invalid root. The WEB-INF/flex folder must contain either
 flex-config.xml or services-config.xml.

 I have CF installed to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 My settings on the New Flex Project page are
 Server location:
 Standalone
 Use default location for local CF server is UNCHECKED
 ColdFusion root folder: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 Use built-in CF web server is also UNCHECKED
 Web root: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war
 Root URL: http://localhost:8300/

 I checked and I do have a WEB-INF/flex in
 C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war with
 services-config.xml in it.

 Google search hasnt helped much




Re: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Greg Morphis
Still having a problem with this..
I changed the assignment code to
currVO = headlineVO(event.target.selectedItem);
note: I also changed the name of the VO incase somewhere it was being
set to null.
Anyways I started the debugger and when I selected a row in the debugger I see
Type Coercion failed: cannot convert obj...@9bef331 to
com.comp.MyApp.vo.headlineVO

However when I explode [+]this and scroll down in the debugger
this.currVO shows that it's a com.comp.MyApp.vo.headlineVO...
WTH am I missing?

On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@yahoo.com wrote:
 Please try
 public function result(event:Object) :void
 {
   var dummy :headlineVO; // add this line

   MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result);
 }


 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 In the command result I have
 public function result(event:Object) : void {
 MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
 }

 adminARCHeadlines is an ArrayCollection in MyModel.as

 How do I tell it that it's an ArrayCollection of VOs?

 On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongt...@... wrote:
  Actually, when u get the data from cfc, did u map it to your headlineVO?
 
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  I have a vo headlineVO that has the following variables
  headline_id:Number
  headline:String
  effdate:Date
  endeffdate:Date
  actionuser:String
  actiondate:Date
  I have a cfc that returns an ArrayCollection of beans, each bean has
  the above variables too.
  I can populate a datagrid with this data and it shows fine.
  I'm trying to populate a new vo (currentVO) when the user selects a
  row and hits edit.
  The new VO shows as being null in the debugger.
  This is what my code looks like
 
  mx:DataGrid id=headlinesDG
  dataProvider={MyModel.getInstance().adminARCHeadlines}
  click=selectedHeadline ...
  ...
  /mx:DataGrid
 
  above I have a function
  private function selectedHeadline():void {
  currentVO = headlinesDG.selectedItem as headlineVO;
  }
 
  and for the editButton.click I have another function that just Alert
  the currentVO.headline;
 
  I get a null object reference when I click on the edit Button.
  If I put a breakpoint above the Alert I can see that currentVO is
  null, how can I assign that selected row to my vo?
  Can anyone offer suggestions or things I should check?
 
  Thanks in advance!
 
 
 
 
 
  
 
  --
  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
 
 
 
 





 

 --
 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] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Greg Morphis
I tried changing that to ResultEvent but seemed to conflict with the
IResponder import..
Was getting an errors highlighting the below line
MyModel.getInstance().adminARCHeadlines
Implicit coercion of a value with static type object to possible
unrelated tye arrsy
and
interface method result in namespace mx.rpc.IResponder is implemented
with an incompatible signature in class 

 interface method result in namespace mx.rpc:Iresponder

On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@aol.com wrote:
 The result from your cfc call isn't being cast correctly; it's nesting the
 result inside an object.

 public function result(event:Object) : void {
     MyModel.getInstance().adminARCHeadlines = new ArrayCollection
 (event.result);
 }

 Either loop through the result object and addItem; one at a time.  Or try
 changing the result format.

 -TH

 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 Still having a problem with this..
 I changed the assignment code to
 currVO = headlineVO(event.target.selectedItem);
 note: I also changed the name of the VO incase somewhere it was being
 set to null.
 Anyways I started the debugger and when I selected a row in the debugger I
 see
 Type Coercion failed: cannot convert obj...@9bef331 to
 com.comp.MyApp.vo.headlineVO

 However when I explode [+]this and scroll down in the debugger
 this.currVO shows that it's a com.comp.MyApp.vo.headlineVO...
 WTH am I missing?

 On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@... wrote:
  Please try
  public function result(event:Object) :void
  {
    var dummy :headlineVO; // add this line
 
    MyModel.getInstance().adminARCHeadlines = new
  ArrayCollection(event.result);
  }
 
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  In the command result I have
  public function result(event:Object) : void {
  MyModel.getInstance().adminARCHeadlines = new ArrayCollection
  (event.result);
  }
 
  adminARCHeadlines is an ArrayCollection in MyModel.as
 
  How do I tell it that it's an ArrayCollection of VOs?
 
  On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote:
   Actually, when u get the data from cfc, did u map it to your
   headlineVO?
  
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   I have a vo headlineVO that has the following variables
   headline_id:Number
   headline:String
   effdate:Date
   endeffdate:Date
   actionuser:String
   actiondate:Date
   I have a cfc that returns an ArrayCollection of beans, each bean has
   the above variables too.
   I can populate a datagrid with this data and it shows fine.
   I'm trying to populate a new vo (currentVO) when the user selects a
   row and hits edit.
   The new VO shows as being null in the debugger.
   This is what my code looks like
  
   mx:DataGrid id=headlinesDG
   dataProvider={MyModel.getInstance().adminARCHeadlines}
   click=selectedHeadline ...
   ...
   /mx:DataGrid
  
   above I have a function
   private function selectedHeadline():void {
   currentVO = headlinesDG.selectedItem as headlineVO;
   }
  
   and for the editButton.click I have another function that just Alert
   the currentVO.headline;
  
   I get a null object reference when I click on the edit Button.
   If I put a breakpoint above the Alert I can see that currentVO is
   null, how can I assign that selected row to my vo?
   Can anyone offer suggestions or things I should check?
  
   Thanks in advance!
  
  
  
  
  
   
  
   --
   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
  
  
  
  
 
 
 
 
 
  
 
  --
  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] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Greg Morphis
if it's event.target.selectedItem as headlineVO then currVO is always null..


On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorp...@gmail.com wrote:
 I tried changing that to ResultEvent but seemed to conflict with the
 IResponder import..
 Was getting an errors highlighting the below line
 MyModel.getInstance().adminARCHeadlines
 Implicit coercion of a value with static type object to possible
 unrelated tye arrsy
 and
 interface method result in namespace mx.rpc.IResponder is implemented
 with an incompatible signature in class 

  interface method result in namespace mx.rpc:Iresponder

 On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@aol.com wrote:
 The result from your cfc call isn't being cast correctly; it's nesting the
 result inside an object.

 public function result(event:Object) : void {
     MyModel.getInstance().adminARCHeadlines = new ArrayCollection
 (event.result);
 }

 Either loop through the result object and addItem; one at a time.  Or try
 changing the result format.

 -TH

 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 Still having a problem with this..
 I changed the assignment code to
 currVO = headlineVO(event.target.selectedItem);
 note: I also changed the name of the VO incase somewhere it was being
 set to null.
 Anyways I started the debugger and when I selected a row in the debugger I
 see
 Type Coercion failed: cannot convert obj...@9bef331 to
 com.comp.MyApp.vo.headlineVO

 However when I explode [+]this and scroll down in the debugger
 this.currVO shows that it's a com.comp.MyApp.vo.headlineVO...
 WTH am I missing?

 On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@... wrote:
  Please try
  public function result(event:Object) :void
  {
    var dummy :headlineVO; // add this line
 
    MyModel.getInstance().adminARCHeadlines = new
  ArrayCollection(event.result);
  }
 
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  In the command result I have
  public function result(event:Object) : void {
  MyModel.getInstance().adminARCHeadlines = new ArrayCollection
  (event.result);
  }
 
  adminARCHeadlines is an ArrayCollection in MyModel.as
 
  How do I tell it that it's an ArrayCollection of VOs?
 
  On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote:
   Actually, when u get the data from cfc, did u map it to your
   headlineVO?
  
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   I have a vo headlineVO that has the following variables
   headline_id:Number
   headline:String
   effdate:Date
   endeffdate:Date
   actionuser:String
   actiondate:Date
   I have a cfc that returns an ArrayCollection of beans, each bean has
   the above variables too.
   I can populate a datagrid with this data and it shows fine.
   I'm trying to populate a new vo (currentVO) when the user selects a
   row and hits edit.
   The new VO shows as being null in the debugger.
   This is what my code looks like
  
   mx:DataGrid id=headlinesDG
   dataProvider={MyModel.getInstance().adminARCHeadlines}
   click=selectedHeadline ...
   ...
   /mx:DataGrid
  
   above I have a function
   private function selectedHeadline():void {
   currentVO = headlinesDG.selectedItem as headlineVO;
   }
  
   and for the editButton.click I have another function that just Alert
   the currentVO.headline;
  
   I get a null object reference when I click on the edit Button.
   If I put a breakpoint above the Alert I can see that currentVO is
   null, how can I assign that selected row to my vo?
   Can anyone offer suggestions or things I should check?
  
   Thanks in advance!
  
  
  
  
  
   
  
   --
   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
  
  
  
  
 
 
 
 
 
  
 
  --
  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] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Greg Morphis
in Services.mxml no I'm not..
just
?xml version=1.0 encoding=utf-8?
cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:cairngorm=com.adobe.cairngorm.business.*
mx:RemoteObject id=MainService destination=ColdFusion
showBusyCursor=true
source=myApp.remote.mainFacade
/mx:RemoteObject
mx:RemoteObject id=AdminService destination=ColdFusion
showBusyCursor=true
source=myApp.remote.adminFacade
/mx:RemoteObject
/cairngorm:ServiceLocator

as far as I can tell it looks okay I'm even looking at another .mxml
file in the same directory that is doing the exact same thing and it
works there.. I just dont know what I'm doing wrong here.. the
datagrid populates fine and I can even do
Alert.show(event.target.selectedItem.headline); and bam.. headline alerts.
but if I do currVO = event.target.selectedItem;

and put a debug stopper afterwards this.currVO is null
On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff timh...@aol.com wrote:

 What does your service tag code look like Greg?   Are you for reason
 setting makeObjectsBindable to false?

 -TH

 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 if it's event.target.selectedItem as headlineVO then currVO is always
 null..


 On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorp...@... wrote:
  I tried changing that to ResultEvent but seemed to conflict with the
  IResponder import..
  Was getting an errors highlighting the below line
  MyModel.getInstance().adminARCHeadlines
  Implicit coercion of a value with static type object to possible
  unrelated tye arrsy
  and
  interface method result in namespace mx.rpc.IResponder is
 implemented
  with an incompatible signature in class 
 
   interface method result in namespace mx.rpc:Iresponder
 
  On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@... wrote:
  The result from your cfc call isn't being cast correctly; it's
 nesting the
  result inside an object.
 
  public function result(event:Object) : void {
      MyModel.getInstance().adminARCHeadlines = new ArrayCollection
  (event.result);
  }
 
  Either loop through the result object and addItem; one at a time.
 Or try
  changing the result format.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Still having a problem with this..
  I changed the assignment code to
  currVO = headlineVO(event.target.selectedItem);
  note: I also changed the name of the VO incase somewhere it was
 being
  set to null.
  Anyways I started the debugger and when I selected a row in the
 debugger I
  see
  Type Coercion failed: cannot convert obj...@9bef331 to
  com.comp.MyApp.vo.headlineVO
 
  However when I explode [+]this and scroll down in the debugger
  this.currVO shows that it's a com.comp.MyApp.vo.headlineVO...
  WTH am I missing?
 
  On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote:
   Please try
   public function result(event:Object) :void
   {
     var dummy :headlineVO; // add this line
  
     MyModel.getInstance().adminARCHeadlines = new
   ArrayCollection(event.result);
   }
  
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   In the command result I have
   public function result(event:Object) : void {
   MyModel.getInstance().adminARCHeadlines = new ArrayCollection
   (event.result);
   }
  
   adminARCHeadlines is an ArrayCollection in MyModel.as
  
   How do I tell it that it's an ArrayCollection of VOs?
  
   On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote:
Actually, when u get the data from cfc, did u map it to your
headlineVO?
   
   
--- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
 wrote:
   
I have a vo headlineVO that has the following variables
headline_id:Number
headline:String
effdate:Date
endeffdate:Date
actionuser:String
actiondate:Date
I have a cfc that returns an ArrayCollection of beans, each
 bean has
the above variables too.
I can populate a datagrid with this data and it shows fine.
I'm trying to populate a new vo (currentVO) when the user
 selects a
row and hits edit.
The new VO shows as being null in the debugger.
This is what my code looks like
   
mx:DataGrid id=headlinesDG
dataProvider={MyModel.getInstance().adminARCHeadlines}
click=selectedHeadline ...
...
/mx:DataGrid
   
above I have a function
private function selectedHeadline():void {
currentVO = headlinesDG.selectedItem as headlineVO;
}
   
and for the editButton.click I have another function that
 just Alert
the currentVO.headline;
   
I get a null object reference when I click on the edit
 Button.
If I put a breakpoint above the Alert I can see that
 currentVO is
null, how can I assign that selected row to my vo?
Can anyone offer suggestions or things I should check?
   
Thanks in advance!
   
   
   
   
   

   
--
Flexcoders Mailing List
FAQ:
 http://groups.yahoo.com/group

Re: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Greg Morphis
It's working now..
here's what I changed.. someone tell me what it most likely was
my headlineVO.as had 1 thing out of order
nothing was mispelled but actionuser was at the bottom of the .as and
in the middle of my CFC
The bean was set up using dates, numerics and string.. I changed it
all to be strings, so headline_id = string, actiondate = string now,
etc
and lastly I did what Panhathai suggested and I added
[ArrayElementType] to MyModel.as
it says the [Bindable] is reundant..
But something here fixed the issue and currVO in debugger is showing
as com.comp.MyApp.vo.headlineVO

and I thank all of you for your time.. after only killed about 3 days
worth of work I can move forward finally!

Thanks

On Mon, Mar 16, 2009 at 11:14 AM, ppongtong ppongt...@yahoo.com wrote:
 In your Model,

 [Bindable]
 [ArrayElementType(fully qualify name of headlineVO)]
 public var adminARCHeadlines :ArrayCollection;


 --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 Yeah, servic looks fine.  The problem is that the ArrayCollection
 contains Objects; instead of headlineVO's.  The Alert and DataGrid don't
 care about that.  but, when you try to cast one of the Objects to a
 headlineVO, it's choking silently.  I'd go back to the VO class and make
 sure that you have all of the fields correct and that the spelling is
 all the same.  There has to be an inconsistency somewhere along the way.

 -TH

 --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  in Services.mxml no I'm not..
  just
  ?xml version=1.0 encoding=utf-8?
  cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml;
  xmlns:cairngorm=com.adobe.cairngorm.business.*
  mx:RemoteObject id=MainService destination=ColdFusion
  showBusyCursor=true
  source=myApp.remote.mainFacade
  /mx:RemoteObject
  mx:RemoteObject id=AdminService destination=ColdFusion
  showBusyCursor=true
  source=myApp.remote.adminFacade
  /mx:RemoteObject
  /cairngorm:ServiceLocator
 
  as far as I can tell it looks okay I'm even looking at another .mxml
  file in the same directory that is doing the exact same thing and it
  works there.. I just dont know what I'm doing wrong here.. the
  datagrid populates fine and I can even do
  Alert.show(event.target.selectedItem.headline); and bam.. headline
 alerts.
  but if I do currVO = event.target.selectedItem;
 
  and put a debug stopper afterwards this.currVO is null
  On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff TimHoff@ wrote:
  
   What does your service tag code look like Greg?   Are you for reason
   setting makeObjectsBindable to false?
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   if it's event.target.selectedItem as headlineVO then currVO is
 always
   null..
  
  
   On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorphis@ wrote:
I tried changing that to ResultEvent but seemed to conflict with
 the
IResponder import..
Was getting an errors highlighting the below line
MyModel.getInstance().adminARCHeadlines
Implicit coercion of a value with static type object to possible
unrelated tye arrsy
and
interface method result in namespace mx.rpc.IResponder is
   implemented
with an incompatible signature in class 
   
 interface method result in namespace mx.rpc:Iresponder
   
On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff TimHoff@ wrote:
The result from your cfc call isn't being cast correctly; it's
   nesting the
result inside an object.
   
public function result(event:Object) : void {
    MyModel.getInstance().adminARCHeadlines = new
 ArrayCollection
(event.result);
}
   
Either loop through the result object and addItem; one at a
 time.
   Or try
changing the result format.
   
-TH
   
--- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
   
Still having a problem with this..
I changed the assignment code to
currVO = headlineVO(event.target.selectedItem);
note: I also changed the name of the VO incase somewhere it was
   being
set to null.
Anyways I started the debugger and when I selected a row in the
   debugger I
see
Type Coercion failed: cannot convert obj...@9bef331 to
com.comp.MyApp.vo.headlineVO
   
However when I explode [+]this and scroll down in the debugger
this.currVO shows that it's a com.comp.MyApp.vo.headlineVO...
WTH am I missing?
   
On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote:
 Please try
 public function result(event:Object) :void
 {
   var dummy :headlineVO; // add this line

   MyModel.getInstance().adminARCHeadlines = new
 ArrayCollection(event.result);
 }


 --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
 wrote:

 In the command result I have
 public function result(event:Object) : void {
 MyModel.getInstance().adminARCHeadlines = new
 ArrayCollection
 (event.result);
 }

 adminARCHeadlines

[flexcoders] datefield issue

2009-03-16 Thread Greg Morphis
out of the pan and into the fire

I have a datefield and I choose for example April 1, the date saves as 3/31.
If I choose 3/31, it saves 3/30..
Is this a timezone issue with Flex? is this easy to fix?
When I Alert the value I see
Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st)
So why isnt it staying on March 31st?

Thanks!


[flexcoders] Re: datefield issue

2009-03-16 Thread Greg Morphis
I feel like I hacked it but I added a .sethours(12,0,0,0)
at the top of the code before it saves dispatches the event..
Is there a less hacky-feeling fix for this? this works fine but leaves
a bad taste in my mouth

On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.com wrote:
 out of the pan and into the fire

 I have a datefield and I choose for example April 1, the date saves as 3/31.
 If I choose 3/31, it saves 3/30..
 Is this a timezone issue with Flex? is this easy to fix?
 When I Alert the value I see
 Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st)
 So why isnt it staying on March 31st?

 Thanks!



[flexcoders] datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
I have a vo headlineVO that has the following variables
headline_id:Number
headline:String
effdate:Date
endeffdate:Date
actionuser:String
actiondate:Date
I have a cfc that returns an ArrayCollection of beans, each bean has
the above variables too.
I can populate a datagrid with this data and it shows fine.
I'm trying to populate a new vo (currentVO) when the user selects a
row and hits edit.
The new VO shows as being null in the debugger.
This is what my code looks like

mx:DataGrid id=headlinesDG
dataProvider={MyModel.getInstance().adminARCHeadlines}
click=selectedHeadline ...
...
/mx:DataGrid

above I have a function
private function selectedHeadline():void {
currentVO = headlinesDG.selectedItem as headlineVO;
}

and for the editButton.click I have another function that just Alert
the currentVO.headline;

I get a null object reference when I click on the edit Button.
If I put a breakpoint above the Alert I can see that currentVO is
null, how can I assign that selected row to my vo?
Can anyone offer suggestions or things I should check?

Thanks in advance!


Re: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
event.target.selectedItem says it's Object (@b3063a9) but lists all of
the variables: actiondate, actionuser, effdate, endeffdate, headline,
headline_id of my VO it also has a mx_internal_id

but I check 'this.currentVO' and it shows null after the assignment:
currentVO = event.target.selectedItem as headlineVO;

currentVO is declared as a headlineVO as the top of the mxml page..

[Bindable]
private var currentVO:headlineVO = new headlineVO();

In my headlineVO.as I'm linking to my bean
[RemoteClass(alias=Arc.model.Headlines.headline)]

I'm missing something... currentVO shouldnt be null



On Fri, Mar 13, 2009 at 3:18 PM, ppongtong ppongt...@yahoo.com wrote:
 Please try
 mx:DataGrid itemClick=selectedHeadline()...


 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 I have a vo headlineVO that has the following variables
 headline_id:Number
 headline:String
 effdate:Date
 endeffdate:Date
 actionuser:String
 actiondate:Date
 I have a cfc that returns an ArrayCollection of beans, each bean has
 the above variables too.
 I can populate a datagrid with this data and it shows fine.
 I'm trying to populate a new vo (currentVO) when the user selects a
 row and hits edit.
 The new VO shows as being null in the debugger.
 This is what my code looks like

 mx:DataGrid id=headlinesDG
 dataProvider={MyModel.getInstance().adminARCHeadlines}
 click=selectedHeadline ...
 ...
 /mx:DataGrid

 above I have a function
 private function selectedHeadline():void {
 currentVO = headlinesDG.selectedItem as headlineVO;
 }

 and for the editButton.click I have another function that just Alert
 the currentVO.headline;

 I get a null object reference when I click on the edit Button.
 If I put a breakpoint above the Alert I can see that currentVO is
 null, how can I assign that selected row to my vo?
 Can anyone offer suggestions or things I should check?

 Thanks in advance!





 

 --
 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] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
In the command result I have
public function result(event:Object) : void {
MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
}

adminARCHeadlines is an ArrayCollection in MyModel.as

How do I tell it that it's an ArrayCollection of VOs?

On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongt...@yahoo.com wrote:
 Actually, when u get the data from cfc, did u map it to your headlineVO?


 --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote:

 I have a vo headlineVO that has the following variables
 headline_id:Number
 headline:String
 effdate:Date
 endeffdate:Date
 actionuser:String
 actiondate:Date
 I have a cfc that returns an ArrayCollection of beans, each bean has
 the above variables too.
 I can populate a datagrid with this data and it shows fine.
 I'm trying to populate a new vo (currentVO) when the user selects a
 row and hits edit.
 The new VO shows as being null in the debugger.
 This is what my code looks like

 mx:DataGrid id=headlinesDG
 dataProvider={MyModel.getInstance().adminARCHeadlines}
 click=selectedHeadline ...
 ...
 /mx:DataGrid

 above I have a function
 private function selectedHeadline():void {
 currentVO = headlinesDG.selectedItem as headlineVO;
 }

 and for the editButton.click I have another function that just Alert
 the currentVO.headline;

 I get a null object reference when I click on the edit Button.
 If I put a breakpoint above the Alert I can see that currentVO is
 null, how can I assign that selected row to my vo?
 Can anyone offer suggestions or things I should check?

 Thanks in advance!





 

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






[flexcoders] hiding an applicationcontrolbar button

2009-03-06 Thread Greg Morphis
I'm trying to hide or destroy a button that's showing in an
ApplicationControlBar.
Basically when the user logs into the tool their information is
checked and one button or another will show.

The code currently looks like

mx:VBox... 
mx:ApplicationControlBar ... 
  mx:ToggleButtonBar id=adminMenu  dataProvider={adminVS}
/mx:ApplicationControlBar


mx:ViewStack ... id=adminVS ... 
AdminVW:AdminUser id=aUser ... /
AdminVW:AdminSecurity id=securityBox ... /
AdminVW:AdminMenu id=aMenu ... /
AdminVW:AdminNews id=aNews ... /
AdminVW:AdminTopAgentsid=aUser ... /
AdminVW:AdminHeadlines id=aHeadlines ... /
...

What if I only wanted to show the AdminHeadlines button if when they
log in thier access is 99.
The access is stored in MyModel.getInstance().currentUser.useraccess

I've tried using a function and setting the visiable and
includeInLayout to the return value, I.E.:
private function showHeadlines ():Boolean {
  return (MyModel.getInstance().currentUser.useraccess == 99)
}

But that's not working.. Ideas?

Thanks!


Re: [flexcoders] hiding an applicationcontrolbar button

2009-03-06 Thread Greg Morphis
I tried that in the creationComplete function and the show function.
Neither hid the tab/button

On Fri, Mar 6, 2009 at 9:16 AM, Adrian Williams
adri...@familytreedna.com wrote:
 Hi Greg,

     does this not work for you?

 if (MyModel.getInstance().currentUser.useraccess == 99)
 {
     aHeadlines.visible = true;
 }
 else
 {
     aHeadlines.visible = false;
 }



 Greg Morphis wrote:

 I'm trying to hide or destroy a button that's showing in an
 ApplicationControlBar.
 Basically when the user logs into the tool their information is
 checked and one button or another will show.

 The code currently looks like

 mx:VBox... 
 mx:ApplicationControlBar ... 
 mx:ToggleButtonBar id=adminMenu  dataProvider={adminVS}
 /mx:ApplicationControlBar

 mx:ViewStack ... id=adminVS ... 
 AdminVW:AdminUser id=aUser ... /
 AdminVW:AdminSecurity id=securityBox ... /
 AdminVW:AdminMenu id=aMenu ... /
 AdminVW:AdminNews id=aNews ... /
 AdminVW:AdminTopAgentsid=aUser ... /
 AdminVW:AdminHeadlines id=aHeadlines ... /
 ...

 What if I only wanted to show the AdminHeadlines button if when they
 log in thier access is 99.
 The access is stored in MyModel.getInstance().currentUser.useraccess

 I've tried using a function and setting the visiable and
 includeInLayout to the return value, I.E.:
 private function showHeadlines ():Boolean {
 return (MyModel.getInstance().currentUser.useraccess == 99)
 }

 But that's not working.. Ideas?

 Thanks!


 


[flexcoders] list control multiple lines?

2009-03-03 Thread Greg Morphis
I'm working on an enhancement for an existing app and currently
there's a list control being populated.
The problem is that if there's too much text entered in the admin
section then it's just running off to the side and being hidden.
I looked at the List properties (this is Flex 2 btw) and nothing stands out.
Will this require a custom item renderer and does anyone have examples if so?
Also gmail is blocked from the my work laptop and accessing it via
home PC so this is the best I can do for code:

basically it looks like this currently...
mx:VBox width=100% height=100% id=Headlines
mx:Label...
mx:List width=100% id=lstHeadlines
dataProvider={MyModel.getInstance().myHeadlines}
labelfield=headline/
..
/mx:VBox

Any help is appreciated,

Thanks


Re: [flexcoders] list control multiple lines?

2009-03-03 Thread Greg Morphis
I dont see either of those listed on the language reference site.
http://livedocs.adobe.com/flex/2/langref/mx/controls/List.html

Where would I find those properties?


On Tue, Mar 3, 2009 at 1:19 PM, Alex Harui aha...@adobe.com wrote:
 And wordWrap=true



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc.

 Blog: http://blogs.adobe.com/aharui



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Tracy Spratt
 Sent: Tuesday, March 03, 2009 10:44 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] list control multiple lines?



 Set variableRowHeight=”true”



 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Greg Morphis
 Sent: Tuesday, March 03, 2009 1:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] list control multiple lines?



 I'm working on an enhancement for an existing app and currently
 there's a list control being populated.
 The problem is that if there's too much text entered in the admin
 section then it's just running off to the side and being hidden.
 I looked at the List properties (this is Flex 2 btw) and nothing stands out.
 Will this require a custom item renderer and does anyone have examples if
 so?
 Also gmail is blocked from the my work laptop and accessing it via
 home PC so this is the best I can do for code:

 basically it looks like this currently...
 mx:VBox width=100% height=100% id=Headlines
 mx:Label...
 mx:List width=100% id=lstHeadlines
 dataProvider={MyModel.getInstance().myHeadlines}
 labelfield=headline/
 ..
 /mx:VBox

 Any help is appreciated,

 Thanks

 




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
Still null

The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
event.target.selectedItem
as ArrayCollection;
Alert.show(event.target.selectedItem.amount.toString());

Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


 }

I just don't get it.. the first Alert works and I see the amount of
the selectedItem, but the second gives a null error..
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
[EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com
 wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC? Using setters or getters?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow: ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent( event:Event) :void
 {
 MyModel.getInstance ().mySelectedRow = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt(
 0).amount) ;
 var evt:CairngormEvent = new
 CairngormEvent( MyControl. EVENT_GET_ DATA_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance ().FooVO;
 myVO.amount = MyModel.getInstance ().SelectedBudge tAC.getItemAt(
 0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks

Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
This is F'ed up...

I changed my code to this...

public function handleChangeEvent(event:Event):void
{
var myVO:BudgetVO = new BudgetVO();
myVO.actiondate = event.target.selectedItem.actiondate;
myVO.amount = event.target.selectedItem.amount;
myVO.id = event.target.selectedItem.id;
...

var evt:BudgetEvent = new BudgetEvent(myVO, MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


}

public class GetBudgetDetailsCommand implements ICommand, IResponder
{

private var currentSelectedVO:BudgetVO = null;

public function execute(event:CairngormEvent):void {

MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
as ArrayCollection;

/* If I Alert the (event as BudgetEvent).budget.amount.toString() I
get the amount

But if I Alert 
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
I get a null error.. matter of fact if I Alert
MyModel.getInstance().SelectedBudgetAC.toString()
I get a null error.. so where the hell is my data going? MyModel.as is
being imported into the command.

import com.model.MyModel

Again, inside MyModel.as I have the global vars..

public var SelectedBudgetAC:ArrayCollection;

to check to make sure the MyModel was loading properly I added another
var to it..

public var fooVar:Number = 0;

And if I alert that value in the execute() function, it Alerts 0 as
it should..
I'm lost
*/  
Alert.show(MyModel.getInstance().fooVar.toString());

}




On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 Still null

 The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
 dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


 Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
 event.target.selectedItem
 as ArrayCollection;

 Alert.show(event.target.selectedItem.amount.toString());

 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 I just don't get it.. the first Alert works and I see the amount of
 the selectedItem, but the second gives a null error..
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




 On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
 [EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com
 wrote:
 Does

Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
I changed it to using a VO and it works..

MyModel.getInstance().SelectedBudgetVO = (event as 
BudgetEvent).budget;


//Alert.show(MyModel.getInstance().Budget.amount.toString());

I have no idea why it wont work with an ArrayCollection, but it works
as a VO.. not sure if this is best practice or not

On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 This is F'ed up...

 I changed my code to this...

 public function handleChangeEvent(event:Event):void
 {
 var myVO:BudgetVO = new BudgetVO();
 myVO.actiondate = event.target.selectedItem.actiondate;
 myVO.amount = event.target.selectedItem.amount;
 myVO.id = event.target.selectedItem.id;
 ...

 var evt:BudgetEvent = new BudgetEvent(myVO, 
 MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 public class GetBudgetDetailsCommand implements ICommand, IResponder
 {

 private var currentSelectedVO:BudgetVO = null;

 public function execute(event:CairngormEvent):void {

 MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
 as ArrayCollection;

 /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
 get the amount

 But if I Alert 
 MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
 I get a null error.. matter of fact if I Alert
 MyModel.getInstance().SelectedBudgetAC.toString()
 I get a null error.. so where the hell is my data going? MyModel.as is
 being imported into the command.

 import com.model.MyModel

 Again, inside MyModel.as I have the global vars..

public var SelectedBudgetAC:ArrayCollection;

 to check to make sure the MyModel was loading properly I added another
 var to it..

public var fooVar:Number = 0;

 And if I alert that value in the execute() function, it Alerts 0 as
 it should..
 I'm lost
 */
 Alert.show(MyModel.getInstance().fooVar.toString());

 }
 



 On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 Still null

 The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
 dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


 Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
 event.target.selectedItem
 as ArrayCollection;

 Alert.show(event.target.selectedItem.amount.toString());

 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 I just don't get it.. the first Alert works and I see the amount of
 the selectedItem, but the second gives a null error..
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




 On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
 [EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
I don't think something is firing..
I had it working with the other code.. creating the empty VO and
assigning the values one by one and then passing the VO to the command
to populate the MyModel SelectedVO..
When I chose a row a form I had started populating using this:
{MyModel.getInstance().SelectedBudgetVO.amount.toString()}

but when I changed the changeHandler to just
MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as BudgetVO;

They stopped populating


On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 I have no idea why it wont work with an ArrayCollection

 Because your ArrayCollection is a collection of VO's, not a collection of
 ArrayCollections; although there may be ArrayCollections as properties of
 the VO.  Can you not just do this?

 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
 BudgetVO;

 -TH

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

 I changed it to using a VO and it works..

 MyModel.getInstance().SelectedBudgetVO = (event as BudgetEvent).budget;

 //Alert.show(MyModel.getInstance().Budget.amount.toString());

 I have no idea why it wont work with an ArrayCollection, but it works
 as a VO.. not sure if this is best practice or not

 On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  This is F'ed up...
 
  I changed my code to this...
 
  public function handleChangeEvent(event:Event):void
  {
  var myVO:BudgetVO = new BudgetVO();
  myVO.actiondate = event.target.selectedItem.actiondate;
  myVO.amount = event.target.selectedItem.amount;
  myVO.id = event.target.selectedItem.id;
  ...
 
  var evt:BudgetEvent = new BudgetEvent(myVO,
  MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  public class GetBudgetDetailsCommand implements ICommand, IResponder
  {
 
  private var currentSelectedVO:BudgetVO = null;
 
  public function execute(event:CairngormEvent):void {
 
  MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
  as ArrayCollection;
 
  /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
  get the amount
 
  But if I Alert
  MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
  I get a null error.. matter of fact if I Alert
  MyModel.getInstance().SelectedBudgetAC.toString()
  I get a null error.. so where the hell is my data going? MyModel.as is
  being imported into the command.
 
  import com.model.MyModel
 
  Again, inside MyModel.as I have the global vars..
 
  public var SelectedBudgetAC:ArrayCollection;
 
  to check to make sure the MyModel was loading properly I added another
  var to it..
 
  public var fooVar:Number = 0;
 
  And if I alert that value in the execute() function, it Alerts 0 as
  it should..
  I'm lost
  */
  Alert.show(MyModel.getInstance().fooVar.toString());
 
  }
  
 
 
 
  On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  Still null
 
  The DataGrid looks like
  mx:DataGrid id=dg width=100%
  height=100% dataProvider={MyModel.getInstance().BudgetAC}
  click=clickHandler(event);
  change=handleChangeEvent(event as DataGridEvent);
 
 
  Data loads fine in the grid.. cool.. The change event fires and
 
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
  as ArrayCollection;
  Alert.show(event.target.selectedItem.amount.toString());
 
  Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
 
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  I just don't get it.. the first Alert works and I see the amount of
  the selectedItem, but the second gives a null error..
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  at com.view::budgetBook/handleChangeEvent()
  at com.view::budgetBook/__dg_change()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.controls.listClasses::ListBase/mouseUpHandler()
  at mx.controls::DataGrid/mouseUpHandler()
 
 
 
 
  On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
  [EMAIL PROTECTED] wrote:
  Use event.target.selectedItems instead of event.target.selectedItem
 
  Thanks,
 
  with Regards,
  Jitendra Jain
 
 
  - Original Message 
  From: Greg Morphis [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 7 October, 2008 7:22:23 AM
  Subject: Re: [flexcoders] handling data within a datagrid
 
  That was a typo instead of copying and pasting..
  mySelectedRow is an ArrayCollection
  I'm assignin the event.target. selectedItem which is a datagrid row to
  it..
  I want to knmow why it's not working the way it should...
 
  To learn I'm creating a budgetbook of sorts.. so here's what I have
  copied and pasted..
 
  public function handleChangeEvent

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Also this returns null

Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());

(trying it right after assigned the event.target.selectedItem to the
SelectedBudgetVO)

On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I don't think something is firing..
 I had it working with the other code.. creating the empty VO and
 assigning the values one by one and then passing the VO to the command
 to populate the MyModel SelectedVO..
 When I chose a row a form I had started populating using this:
 {MyModel.getInstance().SelectedBudgetVO.amount.toString()}

 but when I changed the changeHandler to just
 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as 
 BudgetVO;

 They stopped populating


 On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 I have no idea why it wont work with an ArrayCollection

 Because your ArrayCollection is a collection of VO's, not a collection of
 ArrayCollections; although there may be ArrayCollections as properties of
 the VO.  Can you not just do this?

 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
 BudgetVO;

 -TH

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

 I changed it to using a VO and it works..

 MyModel.getInstance().SelectedBudgetVO = (event as BudgetEvent).budget;

 //Alert.show(MyModel.getInstance().Budget.amount.toString());

 I have no idea why it wont work with an ArrayCollection, but it works
 as a VO.. not sure if this is best practice or not

 On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  This is F'ed up...
 
  I changed my code to this...
 
  public function handleChangeEvent(event:Event):void
  {
  var myVO:BudgetVO = new BudgetVO();
  myVO.actiondate = event.target.selectedItem.actiondate;
  myVO.amount = event.target.selectedItem.amount;
  myVO.id = event.target.selectedItem.id;
  ...
 
  var evt:BudgetEvent = new BudgetEvent(myVO,
  MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  public class GetBudgetDetailsCommand implements ICommand, IResponder
  {
 
  private var currentSelectedVO:BudgetVO = null;
 
  public function execute(event:CairngormEvent):void {
 
  MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
  as ArrayCollection;
 
  /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
  get the amount
 
  But if I Alert
  MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
  I get a null error.. matter of fact if I Alert
  MyModel.getInstance().SelectedBudgetAC.toString()
  I get a null error.. so where the hell is my data going? MyModel.as is
  being imported into the command.
 
  import com.model.MyModel
 
  Again, inside MyModel.as I have the global vars..
 
  public var SelectedBudgetAC:ArrayCollection;
 
  to check to make sure the MyModel was loading properly I added another
  var to it..
 
  public var fooVar:Number = 0;
 
  And if I alert that value in the execute() function, it Alerts 0 as
  it should..
  I'm lost
  */
  Alert.show(MyModel.getInstance().fooVar.toString());
 
  }
  
 
 
 
  On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  Still null
 
  The DataGrid looks like
  mx:DataGrid id=dg width=100%
  height=100% dataProvider={MyModel.getInstance().BudgetAC}
  click=clickHandler(event);
  change=handleChangeEvent(event as DataGridEvent);
 
 
  Data loads fine in the grid.. cool.. The change event fires and
 
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
  as ArrayCollection;
  Alert.show(event.target.selectedItem.amount.toString());
 
  Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
 
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  I just don't get it.. the first Alert works and I see the amount of
  the selectedItem, but the second gives a null error..
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  at com.view::budgetBook/handleChangeEvent()
  at com.view::budgetBook/__dg_change()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.controls.listClasses::ListBase/mouseUpHandler()
  at mx.controls::DataGrid/mouseUpHandler()
 
 
 
 
  On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
  [EMAIL PROTECTED] wrote:
  Use event.target.selectedItems instead of event.target.selectedItem
 
  Thanks,
 
  with Regards,
  Jitendra Jain
 
 
  - Original Message 
  From: Greg Morphis [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 7 October, 2008 7:22:23 AM
  Subject: Re: [flexcoders] handling data within a datagrid
 
  That was a typo instead of copying and pasting..
  mySelectedRow is an ArrayCollection
  I'm

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Thanks Tim, I appreciate the help. I want to learn but yeah I want to
learn the right way to do things.
Again, I appreciate your time and patience with me..

Thanks!

On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 Well, it's better practice to update the model with an event/command
 anyway.  No idea why the selectedItem isn't working through the event.
 Another approach would be:

 MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
 BudgetVO;

 -TH

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

 Also this returns null

 Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());

 (trying it right after assigned the event.target.selectedItem to the
 SelectedBudgetVO)

 On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  I don't think something is firing..
  I had it working with the other code.. creating the empty VO and
  assigning the values one by one and then passing the VO to the command
  to populate the MyModel SelectedVO..
  When I chose a row a form I had started populating using this:
  {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
 
  but when I changed the changeHandler to just
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
  BudgetVO;
 
  They stopped populating
 
 
  On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  I have no idea why it wont work with an ArrayCollection
 
  Because your ArrayCollection is a collection of VO's, not a collection
  of
  ArrayCollections; although there may be ArrayCollections as properties
  of
  the VO. Can you not just do this?
 
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  I changed it to using a VO and it works..
 
  MyModel.getInstance().SelectedBudgetVO = (event as
  BudgetEvent).budget;
 
  //Alert.show(MyModel.getInstance().Budget.amount.toString());
 
  I have no idea why it wont work with an ArrayCollection, but it works
  as a VO.. not sure if this is best practice or not
 
  On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
   This is F'ed up...
  
   I changed my code to this...
  
   public function handleChangeEvent(event:Event):void
   {
   var myVO:BudgetVO = new BudgetVO();
   myVO.actiondate = event.target.selectedItem.actiondate;
   myVO.amount = event.target.selectedItem.amount;
   myVO.id = event.target.selectedItem.id;
   ...
  
   var evt:BudgetEvent = new BudgetEvent(myVO,
   MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   public class GetBudgetDetailsCommand implements ICommand, IResponder
   {
  
   private var currentSelectedVO:BudgetVO = null;
  
   public function execute(event:CairngormEvent):void {
  
   MyModel.getInstance().SelectedBudgetAC = (event as
   BudgetEvent).budget
   as ArrayCollection;
  
   /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
   get the amount
  
   But if I Alert
  
   MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
   I get a null error.. matter of fact if I Alert
   MyModel.getInstance().SelectedBudgetAC.toString()
   I get a null error.. so where the hell is my data going? MyModel.as
   is
   being imported into the command.
  
   import com.model.MyModel
  
   Again, inside MyModel.as I have the global vars..
  
   public var SelectedBudgetAC:ArrayCollection;
  
   to check to make sure the MyModel was loading properly I added
   another
   var to it..
  
   public var fooVar:Number = 0;
  
   And if I alert that value in the execute() function, it Alerts 0
   as
   it should..
   I'm lost
   */
   Alert.show(MyModel.getInstance().fooVar.toString());
  
   }
   
  
  
  
   On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
   Still null
  
   The DataGrid looks like
   mx:DataGrid id=dg width=100%
   height=100% dataProvider={MyModel.getInstance().BudgetAC}
   click=clickHandler(event);
   change=handleChangeEvent(event as DataGridEvent);
  
  
   Data loads fine in the grid.. cool.. The change event fires and
  
   public function handleChangeEvent(event:Event):void
   {
   MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
   as ArrayCollection;
   Alert.show(event.target.selectedItem.amount.toString());
  
  
   Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
  
   var evt:CairngormEvent = new
   CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   I just don't get it.. the first Alert works and I see the amount of
   the selectedItem, but the second gives a null error..
   TypeError: Error #1009: Cannot access a property or method of a
   null
   object reference.
   at com.view::budgetBook/handleChangeEvent()
   at com.view::budgetBook/__dg_change()
   at flash.events

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Nah I tried this too..

var evt:BudgetEvent = new 
BudgetEvent(BudgetVO(dg.selectedItem) as
BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  

(added the wrapper BudgetVO around the dg) and got this error message
TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to com.vo.BudgetVO



On Tue, Oct 7, 2008 at 11:47 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 Hey, no worries Greg.  Just passing it on.   Once the VO is setup, you
 really shouldn't have to cast the individual properties.  To reduce some of
 the code, does this work?

 var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
 BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 -TH

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

 Thanks Tim, I appreciate the help. I want to learn but yeah I want to
 learn the right way to do things.
 Again, I appreciate your time and patience with me..

 Thanks!

 On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Well, it's better practice to update the model with an event/command
  anyway. No idea why the selectedItem isn't working through the event.
  Another approach would be:
 
  MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Also this returns null
 
  Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
 
  (trying it right after assigned the event.target.selectedItem to the
  SelectedBudgetVO)
 
  On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
   I don't think something is firing..
   I had it working with the other code.. creating the empty VO and
   assigning the values one by one and then passing the VO to the
   command
   to populate the MyModel SelectedVO..
   When I chose a row a form I had started populating using this:
   {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
  
   but when I changed the changeHandler to just
   MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
   BudgetVO;
  
   They stopped populating
  
  
   On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
   I have no idea why it wont work with an ArrayCollection
  
   Because your ArrayCollection is a collection of VO's, not a
   collection
   of
   ArrayCollections; although there may be ArrayCollections as
   properties
   of
   the VO. Can you not just do this?
  
   MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
   as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   I changed it to using a VO and it works..
  
   MyModel.getInstance().SelectedBudgetVO = (event as
   BudgetEvent).budget;
  
   //Alert.show(MyModel.getInstance().Budget.amount.toString());
  
   I have no idea why it wont work with an ArrayCollection, but it
   works
   as a VO.. not sure if this is best practice or not
  
   On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
This is F'ed up...
   
I changed my code to this...
   
public function handleChangeEvent(event:Event):void
{
var myVO:BudgetVO = new BudgetVO();
myVO.actiondate = event.target.selectedItem.actiondate;
myVO.amount = event.target.selectedItem.amount;
myVO.id = event.target.selectedItem.id;
...
   
var evt:BudgetEvent = new BudgetEvent(myVO,
MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);
   
}
   
public class GetBudgetDetailsCommand implements ICommand,
IResponder
{
   
private var currentSelectedVO:BudgetVO = null;
   
public function execute(event:CairngormEvent):void {
   
MyModel.getInstance().SelectedBudgetAC = (event as
BudgetEvent).budget
as ArrayCollection;
   
/* If I Alert the (event as BudgetEvent).budget.amount.toString()
I
get the amount
   
But if I Alert
   
   
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
I get a null error.. matter of fact if I Alert
MyModel.getInstance().SelectedBudgetAC.toString()
I get a null error.. so where the hell is my data going?
MyModel.as
is
being imported into the command.
   
import com.model.MyModel
   
Again, inside MyModel.as I have the global vars..
   
public var SelectedBudgetAC:ArrayCollection;
   
to check to make sure the MyModel was loading properly I added
another
var to it..
   
public var fooVar:Number = 0;
   
And if I alert that value in the execute() function, it Alerts
0
as
it should..
I'm lost
*/
Alert.show(MyModel.getInstance().fooVar.toString());
   
}

   
   
   
On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
Still null

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
BudgetAC is an array of beans coming from a CFC..
However in the result() method of that command I convert it to an
ArrayCollection..

public function result(event:Object):void {
MyModel.getInstance().BudgetAC = new 
ArrayCollection(event.result
as Array);
}



On Tue, Oct 7, 2008 at 1:10 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 What the heck?   Using dg.selectedItem as BudgetVO should work.  You can
 also go to the dataProvider:

 var budgetVO:BudgetVO = new BudgetVO();
 budgetVO = MyModel.getInstance().BudgetAC.getItemAt(dg.selectedIndex) as
 BudgetVO;

 var evt:BudgetEvent = new
 BudgetEvent(budgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 However, this is no different than the other way.  Is BudgetAC an
 ArrayCollection of BudgetVOs?  Also, it's also conventional to use camel
 case (lower case first letter) for all of your variables.  That way it's
 easy to distinguish them from classes.

 -TH

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

 Nah I tried this too..

 var evt:BudgetEvent = new BudgetEvent(BudgetVO(dg.selectedItem) as
 BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 (added the wrapper BudgetVO around the dg) and got this error message
 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.vo.BudgetVO



 On Tue, Oct 7, 2008 at 11:47 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Hey, no worries Greg. Just passing it on. Once the VO is setup, you
  really shouldn't have to cast the individual properties. To reduce some
  of
  the code, does this work?
 
  var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
  BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Thanks Tim, I appreciate the help. I want to learn but yeah I want to
  learn the right way to do things.
  Again, I appreciate your time and patience with me..
 
  Thanks!
 
  On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff TimHoff@ wrote:
   Well, it's better practice to update the model with an event/command
   anyway. No idea why the selectedItem isn't working through the event.
   Another approach would be:
  
   MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   Also this returns null
  
  
   Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
  
   (trying it right after assigned the event.target.selectedItem to the
   SelectedBudgetVO)
  
   On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
I don't think something is firing..
I had it working with the other code.. creating the empty VO and
assigning the values one by one and then passing the VO to the
command
to populate the MyModel SelectedVO..
When I chose a row a form I had started populating using this:
{MyModel.getInstance().SelectedBudgetVO.amount.toString()}
   
but when I changed the changeHandler to just
MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
as
BudgetVO;
   
They stopped populating
   
   
On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
I have no idea why it wont work with an ArrayCollection
   
Because your ArrayCollection is a collection of VO's, not a
collection
of
ArrayCollections; although there may be ArrayCollections as
properties
of
the VO. Can you not just do this?
   
MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem
as
BudgetVO;
   
-TH
   
--- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
wrote:
   
I changed it to using a VO and it works..
   
MyModel.getInstance().SelectedBudgetVO = (event as
BudgetEvent).budget;
   
//Alert.show(MyModel.getInstance().Budget.amount.toString());
   
I have no idea why it wont work with an ArrayCollection, but it
works
as a VO.. not sure if this is best practice or not
   
On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
 This is F'ed up...

 I changed my code to this...

 public function handleChangeEvent(event:Event):void
 {
 var myVO:BudgetVO = new BudgetVO();
 myVO.actiondate = event.target.selectedItem.actiondate;
 myVO.amount = event.target.selectedItem.amount;
 myVO.id = event.target.selectedItem.id;
 ...

 var evt:BudgetEvent = new BudgetEvent(myVO,
 MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 public class GetBudgetDetailsCommand implements ICommand,
 IResponder
 {

 private var currentSelectedVO:BudgetVO = null;

 public function

[flexcoders] faultHandler is not a function?

2008-10-06 Thread Greg Morphis
I installed the debugger and am seeing this error

TypeError: Error #1006: faultHandler is not a function.
at com.business::Services/__MyMainService_fault()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()
at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
at 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()

It doesnt stop the app from running and data from returning but how
can I get rid of this error??
I look in the services.mxml
and I see
fault=event.token.faultHandler( event )

Google search didnt help much on this error.. Thanks

Thanks


[flexcoders] Re: faultHandler is not a function?

2008-10-06 Thread Greg Morphis
I got it..
I'm looking at 2 different example code bases, one uses IResponder,
one uses Responder.. the resonder allows the faultHandler, IResponder
doesnt have that.. I'm reading the docs on these..



On Mon, Oct 6, 2008 at 10:47 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I installed the debugger and am seeing this error

 TypeError: Error #1006: faultHandler is not a function.
at com.business::Services/__MyMainService_fault()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()
at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
at 
 mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()

 It doesnt stop the app from running and data from returning but how
 can I get rid of this error??
 I look in the services.mxml
 and I see
 fault=event.token.faultHandler( event )

 Google search didnt help much on this error.. Thanks

 Thanks



[flexcoders] FlexBuilder issue

2008-10-06 Thread Greg Morphis
I recently uninstalled the flex builder 2 plugin and reinstalled it.
I'm having problems with autocomplete in mxml files and when I go to
create a new MXML Component there's Canvas in the dropdown but nothing
else.
I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?


[flexcoders] Re: FlexBuilder issue

2008-10-06 Thread Greg Morphis
to complicate matters.. when I go to import a contol, for example
Alert.. I type import mx.
controls inst an option, collections and core others but no mx.controls..

reinstall in order?

On Mon, Oct 6, 2008 at 11:53 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I recently uninstalled the flex builder 2 plugin and reinstalled it.
 I'm having problems with autocomplete in mxml files and when I go to
 create a new MXML Component there's Canvas in the dropdown but nothing
 else.
 I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?



[flexcoders] datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
I'm trying to use a dataGrid itemRenderer and not sure I'm using it right.
I get an error 1009 null error on data.*any_column*


My data is coming back fine from the database, the column I'm trying
to reference is amount

mx:DataGrid id=dg width=100% height=100%
dataProvider={MyModel.getInstance().FooAC}
click=clickHandler(event); dataTipFunction=buildToolTip
  mx:DataGridColumn dataField=amount
headerText=Amount:
textAlign=right
headerStyleName=centered
labelFunction=price_labelFunc
sortCompareFunction=price_sortCompareFunc
itemRenderer=com.renderers.PriceLabel /  


The PriceLabel.as file exists in foo.com.renderers
and looks like :
package com.renderers {
import mx.controls.Label;
import mx.controls.listClasses.*;
import mx.controls.Alert;

public class PriceLabel extends Label {


override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
//Alert.show(data.toString());

}
}
}


What am I doing wrong?

Thanks


[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
by the way, I'm using RemoteObject to access my CFC, is it possible
that the itemRenderer is firing before the data is back?
How would I make the data populate the ArrayCollection fooAC first
before rendering the datagrid? If this is the case anyways...

On Mon, Oct 6, 2008 at 1:37 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 I'm trying to use a dataGrid itemRenderer and not sure I'm using it right.
 I get an error 1009 null error on data.*any_column*


 My data is coming back fine from the database, the column I'm trying
 to reference is amount

 mx:DataGrid id=dg width=100% height=100%
 dataProvider={MyModel.getInstance().FooAC}
 click=clickHandler(event); dataTipFunction=buildToolTip
  mx:DataGridColumn dataField=amount
headerText=Amount:
textAlign=right
headerStyleName=centered
labelFunction=price_labelFunc
sortCompareFunction=price_sortCompareFunc
itemRenderer=com.renderers.PriceLabel /


 The PriceLabel.as file exists in foo.com.renderers
 and looks like :
 package com.renderers {
import mx.controls.Label;
import mx.controls.listClasses.*;
import mx.controls.Alert;

public class PriceLabel extends Label {


override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
//Alert.show(data.toString());

}
}
 }


 What am I doing wrong?

 Thanks



Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
What do you mean?
The collection shows in the dataGrid just fine, it's the custom
itemRenderer that isn't working?
Is there something else I can provide to check this?

Thanks

On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:

 Correct.  Perhaps the collection isn't bound to the dataProvider
 correctly.

 -TH

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

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  You might try adding this Greg:
 
  override public function set data( value : Object ) : void
  {
  if (value != null) super.data = value;
  }
 
  The data property will be null until the service call has returned
 and
  populated the collection.

 Label already implements IDropInListItemRenderer and IDataRenderer.
 Presumably correctly...





 

 --
 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] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
I changed the PriceLabel.as file to this..

package com.renderers {
import mx.controls.Label;
import mx.controls.listClasses.*;
import mx.controls.Alert;

public class PriceLabel extends Label {

override public function set data( value : Object ) : void
{
if (value != null)   super.data = value;
}


override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
//super.updateDisplayList(unscaledWidth, unscaledHeight);
//Alert.show(data.toString());


}
}
}


I added a breakpoint after the commented out alert and still this.data
shows null...
Any other ideas? I'm out of them


On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 What do you mean?
 The collection shows in the dataGrid just fine, it's the custom
 itemRenderer that isn't working?
 Is there something else I can provide to check this?

 Thanks

 On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:

 Correct.  Perhaps the collection isn't bound to the dataProvider
 correctly.

 -TH

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

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  You might try adding this Greg:
 
  override public function set data( value : Object ) : void
  {
  if (value != null) super.data = value;
  }
 
  The data property will be null until the service call has returned
 and
  populated the collection.

 Label already implements IDropInListItemRenderer and IDataRenderer.
 Presumably correctly...





 

 --
 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] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
Tim, you nailed it..
so set data keeps running until datagrid is full?
I have to read up on this tonight.. but you saved my sanity! Thanks!

On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 data is probably null the first time that updateDisplayList is called.  You
 can either put your conditional logic in the commitProperties() or set
 data() methods.

 Override public function set data( value : Object ) : void
 {
 if (value != null)
 {
  super.data = value;
  this.text = data.myField;  // might want to debug this line to
 see the data
 {
 }

 -TH

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

 I changed the PriceLabel.as file to this..

 package com.renderers {
 import mx.controls.Label;
 import mx.controls.listClasses.*;
 import mx.controls.Alert;

 public class PriceLabel extends Label {

 override public function set data( value : Object ) : void
 {
 if (value != null) super.data = value;
 }


 override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 //super.updateDisplayList(unscaledWidth, unscaledHeight);
 //Alert.show(data.toString());


 }
 }
 }


 I added a breakpoint after the commented out alert and still this.data
 shows null...
 Any other ideas? I'm out of them


 On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis [EMAIL PROTECTED] wrote:
  What do you mean?
  The collection shows in the dataGrid just fine, it's the custom
  itemRenderer that isn't working?
  Is there something else I can provide to check this?
 
  Thanks
 
  On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 
  Correct. Perhaps the collection isn't bound to the dataProvider
  correctly.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
 
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
  
   You might try adding this Greg:
  
   override public function set data( value : Object ) : void
   {
   if (value != null) super.data = value;
   }
  
   The data property will be null until the service call has returned
  and
   populated the collection.
 
  Label already implements IDropInListItemRenderer and IDataRenderer.
  Presumably correctly...
 
 
 
 
 
  
 
  --
  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
 
 
 
 
 


 


[flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
I've got my datagrid populating but I need to see that data in aother
location within my app.
In my MyModel.as
I have a global variable
public var mySelectedRow:ArrayCollection;


I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().mySelectedRow = 
event.target.selectedItem as
ArrayCollection;

Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
var evt:CairngormEvent = new
CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


 }


The Alert returns a null error.. but it looks like it should be working?
What I'm trying to do is I have a VO I need to populate.. I was going
to do that within a command (is that best practice? -- to seperate
display from logic)
So anywho I'm trying to populate that arraycollection and then in the
command do all the fun stuff...
var myVO:FootVO = MyModel.getInstance().FooVO;
myVO.amount = 
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;

but I'm getting a null error.. is this the proper way to load a VO
from a selected DataGrid row?

Thanks


Re: [flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
No, just global variables



On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC?  Using setters or getters?

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow:ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent(event:Event):void
 {
 MyModel.getInstance().mySelectedRow = event.target.selectedItem as
 ArrayCollection;
 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
 var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance().FooVO;
 myVO.amount = MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks

 


Re: [flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
That was a typo instead of copying and pasting..
mySelectedRow is an ArrayCollection
I'm assignin the event.target.selectedItem which is a datagrid row to it..
I want to knmow why it's not working the way it should...

To learn I'm creating a budgetbook of sorts.. so here's what I have
copied and pasted..

public function handleChangeEvent(event:DataGridEvent):void
{
MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem as
ArrayCollection;
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).payee);
var evt:CairngormEvent = new CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


}


public var Budget:BudgetVO;
public var BudgetAC:ArrayCollection;
public var budgetID:Number;
public var SelectedBudgetAC:ArrayCollection;

sorry about that..





On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC? Using setters or getters?

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow:ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent(event:Event):void
 {
 MyModel.getInstance().mySelectedRow = event.target.selectedItem as
 ArrayCollection;
 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
 var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance().FooVO;
 myVO.amount = MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks



 


[flexcoders] simple?? question

2008-10-03 Thread Greg Morphis
I've got a VO, fooVO, it's located here root - com - vo - fooVO.as

When I enter
public var foo:   fooVO shows up and I chose it..
why does FlexBuilder import com.vo.fooVO.fooVO?

shouldn't it be com.vo.fooVO?


Re: [flexcoders] simple?? question

2008-10-03 Thread Greg Morphis
Here's the package code... thanks


package MyApp.com.vo.fooVO
{
[RemoteClass(alias=MyApp.model.MyApp.foo)]

[Bindable]
public class fooVO
{

public var id:Number = 0;
public var is_cleared:Number = 0;
public var actiondate:Date = null;
public var amount:Number = 0;
public var label:String = ;

public function fooVO()
{

}

}
}

On Fri, Oct 3, 2008 at 12:05 PM, Scott Melby [EMAIL PROTECTED] wrote:
 Guessing wildly... Maybe your package statement in the vo file is
 incorrect???

 hth
 Scott

 Greg Morphis wrote:
 I've got a VO, fooVO, it's located here root - com - vo - fooVO.as

 When I enter
 public var foo:   fooVO shows up and I chose it..
 why does FlexBuilder import com.vo.fooVO.fooVO?

 shouldn't it be com.vo.fooVO?



 --
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.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] simple?? question

2008-10-03 Thread Greg Morphis
I was thinking Flex was pointing to the constructor? I don't know, I'm
just asking for my own curiousity..



On Fri, Oct 3, 2008 at 12:09 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 Here's the package code... thanks


 package MyApp.com.vo.fooVO
 {
[RemoteClass(alias=MyApp.model.MyApp.foo)]

[Bindable]
public class fooVO
{

public var id:Number = 0;
public var is_cleared:Number = 0;
public var actiondate:Date = null;
public var amount:Number = 0;
public var label:String = ;

public function fooVO()
{

}

}
 }

 On Fri, Oct 3, 2008 at 12:05 PM, Scott Melby [EMAIL PROTECTED] wrote:
 Guessing wildly... Maybe your package statement in the vo file is
 incorrect???

 hth
 Scott

 Greg Morphis wrote:
 I've got a VO, fooVO, it's located here root - com - vo - fooVO.as

 When I enter
 public var foo:   fooVO shows up and I chose it..
 why does FlexBuilder import com.vo.fooVO.fooVO?

 shouldn't it be com.vo.fooVO?



 --
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.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] simple?? question

2008-10-03 Thread Greg Morphis
Ahhh yes I do.. thanks for pointing that out!

On Fri, Oct 3, 2008 at 12:29 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 So do you see the problem?  Package should just be the path.

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Friday, October 03, 2008 1:11 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] simple?? question



 I was thinking Flex was pointing to the constructor? I don't know, I'm
 just asking for my own curiousity..

 On Fri, Oct 3, 2008 at 12:09 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 Here's the package code... thanks


 package MyApp.com.vo.fooVO
 {
 [RemoteClass(alias=MyApp.model.MyApp.foo)]

 [Bindable]
 public class fooVO
 {

 public var id:Number = 0;
 public var is_cleared:Number = 0;
 public var actiondate:Date = null;
 public var amount:Number = 0;
 public var label:String = ;

 public function fooVO()
 {

 }

 }
 }

 On Fri, Oct 3, 2008 at 12:05 PM, Scott Melby [EMAIL PROTECTED]
 wrote:
 Guessing wildly... Maybe your package statement in the vo file is
 incorrect???

 hth
 Scott

 Greg Morphis wrote:
 I've got a VO, fooVO, it's located here root - com - vo - fooVO.as

 When I enter
 public var foo: fooVO shows up and I chose it..
 why does FlexBuilder import com.vo.fooVO.fooVO?

 shouldn't it be com.vo.fooVO?



 --
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.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






 


[flexcoders] unable to load SWC?

2008-10-03 Thread Greg Morphis
I'm trying to build my project and I keep getting an error
unable to load SWC FlexUtilities.swc: multiple points

amoung a few others..
Anyone know what this is referring to?
In the Library tab under build path I have
${FRAMEWORKS}\libs\FlexUtilities.swc

and the file exists in
C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\libs


[flexcoders] Re: unable to load SWC?

2008-10-03 Thread Greg Morphis
I removed it, it gave me a ton of errors like
Unable to resolve a class for ResourceBundle: collections.

Anyways I goolged that error and found some post saying to add this to
the Library Path
${FRAMEWORKS}/locale/{locale}

That seems to work, no errors on build..


On Fri, Oct 3, 2008 at 3:40 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 I'm trying to build my project and I keep getting an error
 unable to load SWC FlexUtilities.swc: multiple points

 amoung a few others..
 Anyone know what this is referring to?
 In the Library tab under build path I have
 ${FRAMEWORKS}\libs\FlexUtilities.swc

 and the file exists in
 C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\libs



[flexcoders] flow?

2008-10-03 Thread Greg Morphis
in my application.mxml I have a creationcomplete function initMe()
which is suppose to create an event and send it to Cairngorm but it's
not returning data, no errors though either, I don't know where to
check for data to see if it's making it to a certain point..

The initMe looks like...

import com.control.MyControl;

public function initMe():void {
var evt:CairngormEvent = new CairngormEvent( MyControl.EVENT_LOAD_DATA 
);
Alert.show(evt as String); // returns a null Alert
CairngormEventDispatcher.getInstance().dispatchEvent(evt);  
}

in MyControl.as I have
public function MyControl()
{
addCommand(MyControl.EVENT_LOAD_DATA,LoadDataCommand );
... other events

}

//cairngorm event names
public static const EVENT_LOAD_DATA:String = 'loadData';
... others

}

the loadcommand.as looks like

public function execute(event:CairngormEvent):void {
Alert.show('here');
var del:MyDelegate = new MyDelegate(this);
del.loadData();

}

But the Alerts aren't firing... The one in initMe() is but it's empty..
Perhaps I'm not following the flow correctly?
Could someone assist me in where to look and how (Alerts?) for data
hitting an .as file or the back end?


Re: [flexcoders] flow?

2008-10-03 Thread Greg Morphis
I was expecting something more than null, you can convert an Object to
s String, you get [Object] or something displayed.. I was hoping for
that or something.. Anyways that was starting to become a decent read
until We're sorry, the site area you've requested is unavailable due
to scheduled maintenance. Please try again later. 
I'll check again later.. I also noticed that the post is for Flex 3
and Carnigorm 2.3, I wouldnt think me being on Flex 2 would hinder
much.. I also intend on googling some Cairngorm examples.. until

Thanks Scott

On Fri, Oct 3, 2008 at 6:07 PM, Scott Melby [EMAIL PROTECTED] wrote:
 Greg -

 I suspect that your Alert in initMe() is showing null because evt as
 String cannot simply convert a CairngormEvent to a String.  Beyond that, it
 appears to me that you could benefit from a quick read through of this
 excellent set of articles on Cairngorm in order to better understand the
 flow.  It does a really great job of describing how to setup your
 ModelController, how to bind your views to it, and how to use the
 FrontController to map CairngormEvents to Command classes that handle them
 in order to update the model.

 hth
 Scott

 Greg Morphis wrote:

 in my application. mxml I have a creationcomplete function initMe()
 which is suppose to create an event and send it to Cairngorm but it's
 not returning data, no errors though either, I don't know where to
 check for data to see if it's making it to a certain point..

 The initMe looks like...

 import com.control. MyControl;

 public function initMe():void {
 var evt:CairngormEvent = new CairngormEvent( MyControl.EVENT_ LOAD_DATA );
 Alert.show(evt as String); // returns a null Alert
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);
 }

 in MyControl.as I have
 public function MyControl()
 {
 addCommand(MyContro l.EVENT_LOAD_ DATA,LoadDataCom mand );
 ... other events

 }

 //cairngorm event names
 public static const EVENT_LOAD_DATA: String = 'loadData';
 ... others

 }

 the loadcommand. as looks like
 
 public function execute(event: CairngormEvent) :void {
 Alert.show(' here');
 var del:MyDelegate = new MyDelegate(this) ;
 del.loadData( );

 }

 But the Alerts aren't firing... The one in initMe() is but it's empty..
 Perhaps I'm not following the flow correctly?
 Could someone assist me in where to look and how (Alerts?) for data
 hitting an .as file or the back end?

 


[flexcoders] where to download flex data services 2.0.1?

2008-09-18 Thread Greg Morphis
Where can I find FDS 2.0.1.. I checked Adobe's website and can't find it there.

Thanks


[flexcoders] tomcat in eclipse

2008-09-18 Thread Greg Morphis
I got a new laptop and am trying to set it up. On my previous laptop I
had Eclipse 3.2, FB 2.0.1 and it was set up to run Tomcat5.5.
I copied my Eclipse folder and moved it to my new laptop.. I installed
Tomcat5.5 and when I try to start the server I get an error message
It states it could not delete a file..
C:/eclipseworkspace/flexdev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/myApp/WEB-INF/flex
It says it might be locked but it isnt.
It also states that it could not load the Tomcat server config at
\Servers\Tomcat v5.5 Server @ localhost (2)-config.
It says it may be corrupt or incomplete.
However I copied everything from my old laptop and everything is java
with Eclipse so the config should be fine..
Is there anything I can look at, instructions online I can follow to
get Tomcat working within Eclipse?

Thanks


[flexcoders] Re: where to download flex data services 2.0.1?

2008-09-18 Thread Greg Morphis
never mind, I had an install

On Thu, Sep 18, 2008 at 12:17 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 Where can I find FDS 2.0.1.. I checked Adobe's website and can't find it 
 there.

 Thanks



[flexcoders] Re: tomcat in eclipse

2008-09-18 Thread Greg Morphis
never mind. I removed the server and readded it.. it starts.. now onto
checking the building of the application.. Thanks

On Thu, Sep 18, 2008 at 12:40 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 I got a new laptop and am trying to set it up. On my previous laptop I
 had Eclipse 3.2, FB 2.0.1 and it was set up to run Tomcat5.5.
 I copied my Eclipse folder and moved it to my new laptop.. I installed
 Tomcat5.5 and when I try to start the server I get an error message
 It states it could not delete a file..
 C:/eclipseworkspace/flexdev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/myApp/WEB-INF/flex
 It says it might be locked but it isnt.
 It also states that it could not load the Tomcat server config at
 \Servers\Tomcat v5.5 Server @ localhost (2)-config.
 It says it may be corrupt or incomplete.
 However I copied everything from my old laptop and everything is java
 with Eclipse so the config should be fine..
 Is there anything I can look at, instructions online I can follow to
 get Tomcat working within Eclipse?

 Thanks



[flexcoders] Tomcat giving 404 error within Eclipse? Help

2008-09-18 Thread Greg Morphis
I've got a new laptop and trying to set up all my goodies on it.. I
believe I have everything set up properly however I'm getting a 404
error when I view my flex site.
I start Tomcat server from within Eclipse, and I've cleaned and rebuilt the app.
I see the .swf files in the WebContent folder but when I visit
http://localhost:8080/myApp/ I get a 404 error.

Root Folder shows : C:\eclipseworkspace\flexdev\myApp\WebContent
Root URL: http://localhost:8080/myApp/
Context root: /myApp

I'm not getting this error on my old laptop.. I've checked the
properties tab and the only difference is
under Properties  Java Build Path  Libraries
the old laptop had files listed under Web App Libraries
This one has the same files but they aren't under any folder..
Could this be causing the problem and if so, how do I add them under
the Web App Libraries folder?

What else can I check?

HTTP Status 404 - /myApp/index.html



type Status report

message /myApp/index.html

description The requested resource (/myApp/index.html) is not available.




Apache Tomcat/5.5.20


[flexcoders] Re: Tomcat giving 404 error within Eclipse? Help

2008-09-18 Thread Greg Morphis
Got it.. I deleted and rechecked the project out. There were still a
few things I had to tweak but I got it!

On Thu, Sep 18, 2008 at 2:01 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 I've got a new laptop and trying to set up all my goodies on it.. I
 believe I have everything set up properly however I'm getting a 404
 error when I view my flex site.
 I start Tomcat server from within Eclipse, and I've cleaned and rebuilt the 
 app.
 I see the .swf files in the WebContent folder but when I visit
 http://localhost:8080/myApp/ I get a 404 error.

 Root Folder shows : C:\eclipseworkspace\flexdev\myApp\WebContent
 Root URL: http://localhost:8080/myApp/
 Context root: /myApp

 I'm not getting this error on my old laptop.. I've checked the
 properties tab and the only difference is
 under Properties  Java Build Path  Libraries
 the old laptop had files listed under Web App Libraries
 This one has the same files but they aren't under any folder..
 Could this be causing the problem and if so, how do I add them under
 the Web App Libraries folder?

 What else can I check?

 HTTP Status 404 - /myApp/index.html

 

 type Status report

 message /myApp/index.html

 description The requested resource (/myApp/index.html) is not available.


 

 Apache Tomcat/5.5.20



Re: [flexcoders] Re: reordering a list when clicked??

2008-08-12 Thread Greg Morphis
I really appreciate your offering to help but I think I'm just going
to cut my losses and scrap doing it in Flex.
I just altered the SQL and bam, no problems what-so-ever...
I'm not sure why Flex has to tweak on me.. If I have time in the
future I may revisit this...

Anways, thanks again Alex!

On Mon, Aug 11, 2008 at 4:01 PM, Alex Harui [EMAIL PROTECTED] wrote:
 Hard to say what's going on.  I'm pretty busy, but if you post a test case I
 might get a chance to look at it.  Please strip all Cairngorm out and use a
 small app with baked in data.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Monday, August 11, 2008 11:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: reordering a list when clicked??



 I chnaged the code to

 dataProvider={ MyModel.getInstance().activities }

 it works, doesnt reorder anything however it doesnt hide the tree
 nodes I want hidden..
 I'm considering dumping the Flex idea and just cutting out those
 activities in the DB with a simple 'isactive = 1'

 But I would love to know why Flex is reordering the nodes and also if
 I open the tree node and drag one of the childs the bottom node
 vanishes.. it's there but it's not.. nothing displays..

 On Mon, Aug 11, 2008 at 11:42 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I have a view AddActivityView.mxml and in that view is code to display
 a list of activies.
 I recently added code to hide (isvisible = false) some of the nodes of
 the Tree generated by data coming into this view.

 The code looks like this...

 private function filterInvisibleNode(item:Object):Boolean {

 if( item != null  [EMAIL PROTECTED] == 1){
 return true;
 } else {
 return false;
 }
 }

 private function get filteredCollection():XMLListCollection {
 var col:XMLListCollection = new XMLListCollection(
 MyModel.getInstance().activities );
 //Alert.show(col.toXMLString());
 col.filterFunction = filterInvisibleNode;
 col.refresh();
 return col;
 }


 And the Tree :

 mx:Tree height=100% id=actTree
 width=100%
 dataProvider={ filteredCollection }
 showRoot=false
 labelField=@label
 borderStyle=none
 dragEnabled=true
 dragMoveEnabled=false
 itemRenderer=com.renderers.ActivityTreeRenderer
 toolTip= /


 This seems to work fine for hiding the nodes. However what I'm running
 into it this:
 the Activities reorder themselves when I click on 1.
 For example on load the activies show
 Work
 Work + 60
 Work + 45
 Work + 30
 Training

 If I click on Work it goes to the forth item in the list and looks like
 Work + 60
 Work + 45
 Work + 30
 Work
 Training

 Then if I click on Training, that goes to the 4th item in the list..
 Work + 60
 Work + 45
 Work + 30
 Training
 Work

 If I click on Work + 45 it too goes to the 4th item in the list
 Work + 60
 Work + 30
 Training
 Work + 45
 Work

 This is not ideal behavior heh..
 What would cause something like this to happen when I click on it?
 MyModel.getInstance().activities is populated during the LoginCommand
 onResult and looks like

 if (MyModel.getInstance().employee.isEditor())
 {
 var meEvt:CairngormEvent = new
 CairngormEvent(MyController.EVENT_GETACTIVITIES);
 CairngormEventDispatcher.getInstance().dispatchEvent(meEvt);
 }


 Please help me out here! Thanks again!


 


[flexcoders] reordering a list when clicked??

2008-08-11 Thread Greg Morphis
I have a view AddActivityView.mxml and in that view is code to display
a list of activies.
I recently added code to hide (isvisible = false) some of the nodes of
the Tree generated by data coming into this view.

The code looks like this...

private function 
filterInvisibleNode(item:Object):Boolean {

if( item != null  [EMAIL PROTECTED] == 1){
   return true;
} else {
   return false;
}
}

private function get 
filteredCollection():XMLListCollection {
var col:XMLListCollection = new 
XMLListCollection(
MyModel.getInstance().activities );
//Alert.show(col.toXMLString());
col.filterFunction = filterInvisibleNode;
col.refresh();
return col;
}


And the Tree :

mx:Tree height=100% id=actTree
width=100%
dataProvider={ filteredCollection }
showRoot=false
labelField=@label
borderStyle=none
dragEnabled=true
dragMoveEnabled=false
itemRenderer=com.renderers.ActivityTreeRenderer
toolTip= /


This seems to work fine for hiding the nodes. However what I'm running
into it this:
the Activities reorder themselves when I click on 1.
For example on load the activies show
Work
Work + 60
Work + 45
Work + 30
Training

If I click on Work it goes to the forth item in the list and looks like
Work + 60
Work + 45
Work + 30
Work
Training

Then if I click on Training, that goes to the 4th item in the list..
Work + 60
Work + 45
Work + 30
Training
Work

If I click on Work + 45 it too goes to the 4th item in the list
Work + 60
Work + 30
Training
Work + 45
Work

This is not ideal behavior heh..
What would cause something like this to happen when I click on it?
MyModel.getInstance().activities is populated during the LoginCommand
onResult and looks like

if (MyModel.getInstance().employee.isEditor())
{
var meEvt:CairngormEvent = new
CairngormEvent(MyController.EVENT_GETACTIVITIES);

CairngormEventDispatcher.getInstance().dispatchEvent(meEvt);
}


Please help me out here! Thanks again!


[flexcoders] Re: reordering a list when clicked??

2008-08-11 Thread Greg Morphis
I chnaged the code to

dataProvider={ MyModel.getInstance().activities }

it works, doesnt reorder anything however it doesnt hide the tree
nodes I want hidden..
I'm considering dumping the Flex idea and just cutting out those
activities in the DB with a simple 'isactive = 1'

But I would love to know why Flex is reordering the nodes and also if
I open the tree node and drag one of the childs the bottom node
vanishes.. it's there but it's not.. nothing displays..



On Mon, Aug 11, 2008 at 11:42 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I have a view AddActivityView.mxml and in that view is code to display
 a list of activies.
 I recently added code to hide (isvisible = false) some of the nodes of
 the Tree generated by data coming into this view.

 The code looks like this...

private function 
 filterInvisibleNode(item:Object):Boolean {

if( item != null  [EMAIL PROTECTED] == 1){
   return true;
} else {
   return false;
}
}

private function get 
 filteredCollection():XMLListCollection {
var col:XMLListCollection = new 
 XMLListCollection(
 MyModel.getInstance().activities );
//Alert.show(col.toXMLString());
col.filterFunction = filterInvisibleNode;
col.refresh();
return col;
}


 And the Tree :

mx:Tree height=100% id=actTree
width=100%
dataProvider={ filteredCollection }
showRoot=false
labelField=@label
borderStyle=none
dragEnabled=true
dragMoveEnabled=false
itemRenderer=com.renderers.ActivityTreeRenderer
toolTip= /


 This seems to work fine for hiding the nodes. However what I'm running
 into it this:
 the Activities reorder themselves when I click on 1.
 For example on load the activies show
 Work
 Work + 60
 Work + 45
 Work + 30
 Training

 If I click on Work it goes to the forth item in the list and looks like
 Work + 60
 Work + 45
 Work + 30
 Work
 Training

 Then if I click on Training, that goes to the 4th item in the list..
 Work + 60
 Work + 45
 Work + 30
 Training
 Work

 If I click on Work + 45 it too goes to the 4th item in the list
 Work + 60
 Work + 30
 Training
 Work + 45
 Work

 This is not ideal behavior heh..
 What would cause something like this to happen when I click on it?
 MyModel.getInstance().activities is populated during the LoginCommand
 onResult and looks like

if (MyModel.getInstance().employee.isEditor())
{
var meEvt:CairngormEvent = new
 CairngormEvent(MyController.EVENT_GETACTIVITIES);

 CairngormEventDispatcher.getInstance().dispatchEvent(meEvt);
}


 Please help me out here! Thanks again!



Re: [flexcoders] How long to build a Flex app....

2008-07-29 Thread Greg Morphis
My professional opinion is an eternity..
;)

On Mon, Jul 28, 2008 at 11:07 PM, Alan [EMAIL PROTECTED] wrote:
 I know this is a pretty broad question...

 I'm new to Flex, and having fun with it, but I'd like to get an idea
 how long these things take to make.

 Instead of me trying to pitch a hypothetical situation, maybe anyone
 interested in answering could very breifly describe an app they made
 and how long it took and maybe even some juicy gossip about crazy
 clients.

 Thanks,

 Alan

 

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






[flexcoders] First AIR app using Flex 3 SDK

2008-07-25 Thread Greg Morphis
I'm running through the  Creating your first AIR application with the Flex SDK
And I get all the way to the end, everything is working okay until I
get here : Create the AIR installation file

I create the sampleCert.pfx
and I go to compile the .air file and this is what I get...

C:\Flex3-SDK\binadt -package -storetype pkcs12 -keystore
../HelloWorld/sampleCert.pfx ../HelloWorld
/HelloWorld.air ../HelloWorld/HelloWorld-app.xml ../HelloWorld/HelloWorld.swf
password: yep
absolute path: C:\Flex3-SDK\HelloWorld\HelloWorld.swf
usage:
  adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS
  adt -prepare airi-file app-desc FILE_ARGS
  adt -sign SIGNING_OPTIONS airi-file air-file
  adt -checkstore SIGNING_OPTIONS
  adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? (
-c country )? key-type p
fx-file password
  adt -help


(I created the PATH variable but I believe I need to reboot in order
for that to take which is why you see the ../ stuff).
Anyways, there's no error there, but there's no HelloWorld.air file in
the HelloWorld directory..
I've followed the instructions, I can run the debugger and see the
window, the files are there (the .xml, .swf), just no .air..
What's up with this?


Thanks


[flexcoders] Re: First AIR app using Flex 3 SDK

2008-07-25 Thread Greg Morphis
It has something to do with the ../'s. I came home, same set up,
changed the PATH variable, same code and it worked.. I

On Fri, Jul 25, 2008 at 12:58 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 I'm running through the  Creating your first AIR application with the Flex 
 SDK
 And I get all the way to the end, everything is working okay until I
 get here : Create the AIR installation file

 I create the sampleCert.pfx
 and I go to compile the .air file and this is what I get...

 C:\Flex3-SDK\binadt -package -storetype pkcs12 -keystore
 ../HelloWorld/sampleCert.pfx ../HelloWorld
 /HelloWorld.air ../HelloWorld/HelloWorld-app.xml ../HelloWorld/HelloWorld.swf
 password: yep
 absolute path: C:\Flex3-SDK\HelloWorld\HelloWorld.swf
 usage:
  adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS
  adt -prepare airi-file app-desc FILE_ARGS
  adt -sign SIGNING_OPTIONS airi-file air-file
  adt -checkstore SIGNING_OPTIONS
  adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? (
 -c country )? key-type p
 fx-file password
  adt -help


 (I created the PATH variable but I believe I need to reboot in order
 for that to take which is why you see the ../ stuff).
 Anyways, there's no error there, but there's no HelloWorld.air file in
 the HelloWorld directory..
 I've followed the instructions, I can run the debugger and see the
 window, the files are there (the .xml, .swf), just no .air..
 What's up with this?


 Thanks



Re: [flexcoders] Re: setting a tree node visible=false? SOLVED

2008-04-14 Thread Greg Morphis
So I resolved this issue.. The problem was that
MyModel.getInstance().activies = the XMLList() was getting populated
in the creationComplete event of the VBox container.
I moved the call that populated that out and in the login onResult function.
This worked like a charm.

Thanks Steve! I appreciate your help.





On Thu, Apr 10, 2008 at 3:00 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 Not sure why it's not working for me, we seem to be doing the exact
  same thing... I'll try again a little later.

  Thanks Steve



  On Thu, Apr 10, 2008 at 11:08 AM, Steve Ashton [EMAIL PROTECTED] wrote:
   Hi Greg,
  
In my example I am using an XMLList as well, but the 'get
filteredCollection()' function wraps the XMLList in an
XMLListCollection, as well as setting the filter function.  Here's
all the code I was using as my example.  Note, to make nodes appear
and disappear, select them in the 2nd tree, then click either Hide or
Show to affect the visibily of the nodes in the first list.
  
  
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:local=*
   
  
   mx:HBox width=100%
   mx:Tree id=tree1
dataProvider={filteredCollection} labelField=@label /
   mx:VBox width=50% 
   mx:Tree id=tree2 dataProvider={myxml}
labelField=@label /
   mx:HBox
   mx:Button label=Hide Node
click=[EMAIL PROTECTED] = 'false' /
   mx:Button label=Show Node
click=[EMAIL PROTECTED] = 'true' /
   /mx:HBox
   /mx:VBox
   /mx:HBox
  
  
   mx:Script
   ![CDATA[
   import mx.collections.XMLListCollection;
  
  
  
private function filterInvisibleNode(item:Object):Boolean {
if( item != null  [EMAIL PROTECTED] == 'true'){
   return true;
}
else {
   return false;
}
}
  
private function get filteredCollection():XMLListCollection {
var col:XMLListCollection = new XMLListCollection( myxml );
col.filterFunction = filterInvisibleNode;
col.refresh();
return col;
}
  
   ]]
   /mx:Script
  
  
  
  
   mx:XMLList id=myxml 
   node label=Parent 1 isvisible=true  
   node label=Child 1-A isvisible=true 
   node label=Grandchild 1-A-a
isvisible=true /
   node label=Grandchild 1-A-b
isvisible=true /
   /node
   /node
   node label=Parent 2 isvisible=true 
   node label=Child 2-A isvisible=true 
   node label=Grandchild 2-A-a
isvisible=true /
   node label=Grandchild 2-A-b
isvisible=true /
   /node
   /node
   node label=Parent 3  isvisible=true
   node label=Child 3-A isvisible=true 
   node label=Grandchild 3-A-a
isvisible=true /
   node label=Grandchild 3-A-b
isvisible=true /
   /node
   /node
   /mx:XMLList
  
  
  
/mx:Application
  
  
  
  
  
  
  
  
  
  
--- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED]
wrote:

  
I believe it's due to the XML object being an XMLList rather than
 XMLListCollection..
 I read some lastnight on those but couldnt find a way to convert
the two.
 Just a bunch of postings about how the datagrid object seemlessly
 converts the two.

 The XML looks like
 node label=acts
 node label=work isvisible=1
  node label=opener isvisible=1
  
  /node
  node label=vacation isvisible=0
node label=personal_holiday isvisible=0
...
   /node
 /node

 I'll hit the sites again this AM and see if I can make some more
headway.

 Thanks


 On Thu, Apr 10, 2008 at 8:05 AM, Douglas Knudsen
  
[EMAIL PROTECTED] wrote:
  I'm with Steve on this, I would think you should have been able
to use a
  filter function on the dataProvider.  Setting the visible
property on a tree
  node renderer would leave a gap there if it worked at all I would
think.
 
  DK
 
 
 
  On Thu, Apr 10, 2008 at 8:59 AM, Greg Morphis [EMAIL PROTECTED]
  
   wrote:
  
  
  
  
  
  
   I modified the SQL that generates the XML to exclude the ones I
wanted
   to not be visible but as proof of concept I wanted to try to do
it in
   Flex/AS.
   It's been a while since I've had a chance to play

[flexcoders] What is up with this????

2008-04-04 Thread Greg Morphis
Okay.. if I have Eclipse up (no server running, both Servers and the
Project as closed) and I make a war file of my flex app, I place it in
Tomcat webapps folder (server off) I turn the server on, Tomcat unwars
the file.. all LOOKS well.. when I run the app.. nothing happens it
just freezes.. I check logs and see
[Flex] RTMP-Server failed to start up: java.net.BindException: Address
already in use: bind
Exception in thread RTMP-Server
flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
encountered a fatal exception starting up: Address already in use:
bind
at 
flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
at java.lang.Thread.run(Unknown Source)

I close Eclipse, still get the error. I restart Tomcat, still get the error.
The only way to not get the error, I have to kill Eclipse, open cmd
and cd to my folder and make the war file, if I do this (again,
without Eclipse even open). It works..


So what gives? This is Flex 2, Tomcat5.5 and Eclipse 3.2..


[flexcoders] path of code?

2008-03-27 Thread Greg Morphis
I have this app that is used to schedule employees, for a while we
we're using timestamps to record start and end times of shifts.
We started having issues with daylight savings and the client's
time/server's time being different.
Anyways we recently changed that to numbers so for example 5pm = 17,
such-and-so-forth.
Everything is working fine with that.
But, I was informed of an error, if you try to schedule someone at one
location when they are scheduled another during the same time it's
suppose to warn the user and reload the schedule. However the
application just hangs..

We generate the error in Oracle and bubble it up..

Looks like this:
 --first we will validate that this record can be inserted.
validation involves checking for time overlaps
 FOR cr_row IN c_rowcheck LOOP
  BEGIN
   IF( (v_starttime BETWEEN cr_row.starttime_num AND
cr_row.endtime_num)
OR  (v_endtime BETWEEN cr_row.starttime_num AND
cr_row.endtime_num )
  OR (v_starttime  cr_row.starttime_num AND v_endtime
 cr_row.endtime_num) ) THEN
--the start42 and end42 are for the UI
errDay := 
to_char(getDateFromNum(cr_row.day,cr_row.week,cr_row.year),
'Day');
errMsg := 'START42 Employee ' || emplName || ' is
already on the schedule on ' || errDay || ' from ' ||
militaryToStandardTime(cr_row.starttime_num) || ' to ' ||
militaryToStandardTime(cr_row.endtime_num) || ' at location ' ||
cr_row.descr || ', ' || cr_row.city || ', ' || cr_row.state ||
'END42';
RAISE_APPLICATION_ERROR(-20002,errMsg );
  END IF;
  END;
 END LOOP;

I believe this part of the code to be working fine. I can run this
manually, plug in some variables in Oracle and bam, I get an error
message if the user is elsewhere.
The problem I'm having is when you do this in Flex.. you get the error message

Mar 26, 2008 5:07:32 PM com.dao.WeeklyScheduleDAO updateWeeklySchedule
SEVERE: WeeklyScheduleDAO.updateWeeklySchedule () failed
java.sql.SQLException: ORA-20002: START42 Employee Bob Hope is already
on the schedule on Sundayfrom 10:45 to 7:45 at location 1234 ST,
Sumcity, ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

The user sees the error message they click okay and we have a popup
Processing... when it should load the schedule.. It hangs there..
With Processing... stuck on the screen, the user never regains
control of the screen and has to reload the page.
I do not see where the error is coming from.
So I'm trying to follow the code up to Flex and see where this is bombing..
So where does the code go from the DAO? The BO? Then to the Delegate?
Then off to Flex? I tried to google a few times but was getting no
where.
If someone can explain the path of code using Cairngorm I'd appreciate it.

The logs stop dead at:

[Flex] 03/27/2008 09:15:31.438 Serializing AMF/HTTP response
Version: 3
  (Message #0 targetURI=/7/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
  rootCause = (Typed Object #1 'java.lang.Exception')
localizedMessage = java.sql.SQLException: ORA-20002: START42
Employee Bob Hope is already on the schedule on Sundayfrom 10:45
to 7:45 at location 1234 ST, City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

message = java.sql.SQLException: ORA-20002: START42 Employee
Bob Hope is already on the schedule on Sundayfrom 10:45 to 7:45 at
location 1234 ST, City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

cause = (Typed Object #2 'java.sql.SQLException')
  localizedMessage = ORA-20002: START42 Employee Bob Hope is
already on the schedule on Sundayfrom 10:45 to 7:45 at location
1234 ST, City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

  message = ORA-20002: START42 Employee Bob Hope is already
on the schedule on Sundayfrom 10:45 to 7:45 at location 1234 ST,
City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

  SQLState = 72000
  nextException = null
  cause = null
  errorCode = 20002
  destination = SchedulerServiceRO
  headers = (Object #3)
  correlationId = E75EC4AF-451B-1518-E773-F097DB89D3B8
  faultString = java.lang.Exception : java.sql.SQLException:
ORA-20002: START42 Employee Bob Hope is already on the schedule on
Sundayfrom 10:45 to 7:45 at location 1234 ST, City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1

  messageId = E362EA84-EF08-E524-E1CF-49EA11BB63DE
  faultCode = Server.Processing
  timeToLive = 0.0
  extendedData = null
  faultDetail = null
  clientId = null
  timestamp = 1.206627331423E12
  body = null




Thanks


[flexcoders] Re: path of code?

2008-03-27 Thread Greg Morphis
BTW the end of the updateSchedule() function looks like this

} catch (SQLException e) {
log.error(WeeklyScheduleDAO.updateWeeklySchedule () 
failed, e);
connection.rollback();
throw new Exception(e);
} catch (Exception e) {
log.error(WeeklyScheduleDAO.updateWeeklySchedule () 
failed, e);
connection.rollback();
throw new Exception(e);
} finally {
try { csDelete.close(); } catch (Exception e) {};
try { csInsert.close(); } catch (Exception e) {};
try { csNote.close(); } catch (Exception e) {};
releaseConnection(connection);  
}
}




On Thu, Mar 27, 2008 at 9:21 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I have this app that is used to schedule employees, for a while we
  we're using timestamps to record start and end times of shifts.
  We started having issues with daylight savings and the client's
  time/server's time being different.
  Anyways we recently changed that to numbers so for example 5pm = 17,
  such-and-so-forth.
  Everything is working fine with that.
  But, I was informed of an error, if you try to schedule someone at one
  location when they are scheduled another during the same time it's
  suppose to warn the user and reload the schedule. However the
  application just hangs..

  We generate the error in Oracle and bubble it up..

  Looks like this:
  --first we will validate that this record can be inserted.
  validation involves checking for time overlaps
  FOR cr_row IN c_rowcheck LOOP
   BEGIN
IF( (v_starttime BETWEEN cr_row.starttime_num AND
  cr_row.endtime_num)
 OR  (v_endtime BETWEEN cr_row.starttime_num AND
  cr_row.endtime_num )
   OR (v_starttime  cr_row.starttime_num AND v_endtime
   cr_row.endtime_num) ) THEN
 --the start42 and end42 are for the UI
 errDay := 
 to_char(getDateFromNum(cr_row.day,cr_row.week,cr_row.year),
  'Day');
 errMsg := 'START42 Employee ' || emplName || ' is
  already on the schedule on ' || errDay || ' from ' ||
  militaryToStandardTime(cr_row.starttime_num) || ' to ' ||
  militaryToStandardTime(cr_row.endtime_num) || ' at location ' ||
  cr_row.descr || ', ' || cr_row.city || ', ' || cr_row.state ||
  'END42';
 RAISE_APPLICATION_ERROR(-20002,errMsg );
   END IF;
   END;
  END LOOP;

  I believe this part of the code to be working fine. I can run this
  manually, plug in some variables in Oracle and bam, I get an error
  message if the user is elsewhere.
  The problem I'm having is when you do this in Flex.. you get the error 
 message

  Mar 26, 2008 5:07:32 PM com.dao.WeeklyScheduleDAO updateWeeklySchedule
  SEVERE: WeeklyScheduleDAO.updateWeeklySchedule () failed
  java.sql.SQLException: ORA-20002: START42 Employee Bob Hope is already
  on the schedule on Sundayfrom 10:45 to 7:45 at location 1234 ST,
  Sumcity, ALEND42
  ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
  ORA-06512: at line 1

  The user sees the error message they click okay and we have a popup
  Processing... when it should load the schedule.. It hangs there..
  With Processing... stuck on the screen, the user never regains
  control of the screen and has to reload the page.
  I do not see where the error is coming from.
  So I'm trying to follow the code up to Flex and see where this is bombing..
  So where does the code go from the DAO? The BO? Then to the Delegate?
  Then off to Flex? I tried to google a few times but was getting no
  where.
  If someone can explain the path of code using Cairngorm I'd appreciate it.

  The logs stop dead at:

  [Flex] 03/27/2008 09:15:31.438 Serializing AMF/HTTP response
  Version: 3
   (Message #0 targetURI=/7/onStatus, responseURI=)
 (Typed Object #0 'flex.messaging.messages.ErrorMessage')
   rootCause = (Typed Object #1 'java.lang.Exception')
 localizedMessage = java.sql.SQLException: ORA-20002: START42
  Employee Bob Hope is already on the schedule on Sundayfrom 10:45
  to 7:45 at location 1234 ST, City ALEND42
  ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
  ORA-06512: at line 1
  
 message = java.sql.SQLException: ORA-20002: START42 Employee
  Bob Hope is already on the schedule on Sundayfrom 10:45 to 7:45 at
  location 1234 ST, City ALEND42
  ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
  ORA-06512: at line 1
  
 cause = (Typed Object #2 'java.sql.SQLException')
   localizedMessage = ORA-20002: START42 Employee Bob Hope is
  already on the schedule on Sundayfrom 10:45 to 7:45 at location
  1234 ST, City ALEND42
  ORA-06512

[flexcoders] Re: path of code?

2008-03-27 Thread Greg Morphis
It never makes it back to Flex.. I put an Alert() in the onResult() of
the command that sends to Java..
There's log.debug()'s all over the place but I can't seem to find
them. They do not appear in the console..
Is there some way I can force an Alert or something in Java?
I want to find where this craps out..

thanks

On Thu, Mar 27, 2008 at 9:39 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 BTW the end of the updateSchedule() function looks like this

 } catch (SQLException e) {
 log.error(WeeklyScheduleDAO.updateWeeklySchedule () 
 failed, e);
 connection.rollback();
 throw new Exception(e);
 } catch (Exception e) {
 log.error(WeeklyScheduleDAO.updateWeeklySchedule () 
 failed, e);
 connection.rollback();
 throw new Exception(e);
 } finally {
 try { csDelete.close(); } catch (Exception e) {};
 try { csInsert.close(); } catch (Exception e) {};
 try { csNote.close(); } catch (Exception e) {};
 releaseConnection(connection);


 }
 }




  On Thu, Mar 27, 2008 at 9:21 AM, Greg Morphis [EMAIL PROTECTED] wrote:
   I have this app that is used to schedule employees, for a while we
we're using timestamps to record start and end times of shifts.
We started having issues with daylight savings and the client's
time/server's time being different.
Anyways we recently changed that to numbers so for example 5pm = 17,
such-and-so-forth.
Everything is working fine with that.
But, I was informed of an error, if you try to schedule someone at one
location when they are scheduled another during the same time it's
suppose to warn the user and reload the schedule. However the
application just hangs..
  
We generate the error in Oracle and bubble it up..
  
Looks like this:
--first we will validate that this record can be inserted.
validation involves checking for time overlaps
FOR cr_row IN c_rowcheck LOOP
 BEGIN
  IF( (v_starttime BETWEEN cr_row.starttime_num AND
cr_row.endtime_num)
   OR  (v_endtime BETWEEN cr_row.starttime_num AND
cr_row.endtime_num )
 OR (v_starttime  cr_row.starttime_num AND v_endtime
 cr_row.endtime_num) ) THEN
   --the start42 and end42 are for the UI
   errDay := 
 to_char(getDateFromNum(cr_row.day,cr_row.week,cr_row.year),
'Day');
   errMsg := 'START42 Employee ' || emplName || ' is
already on the schedule on ' || errDay || ' from ' ||
militaryToStandardTime(cr_row.starttime_num) || ' to ' ||
militaryToStandardTime(cr_row.endtime_num) || ' at location ' ||
cr_row.descr || ', ' || cr_row.city || ', ' || cr_row.state ||
'END42';
   RAISE_APPLICATION_ERROR(-20002,errMsg );
 END IF;
 END;
END LOOP;
  
I believe this part of the code to be working fine. I can run this
manually, plug in some variables in Oracle and bam, I get an error
message if the user is elsewhere.
The problem I'm having is when you do this in Flex.. you get the error 
 message
  
Mar 26, 2008 5:07:32 PM com.dao.WeeklyScheduleDAO updateWeeklySchedule
SEVERE: WeeklyScheduleDAO.updateWeeklySchedule () failed
java.sql.SQLException: ORA-20002: START42 Employee Bob Hope is already
on the schedule on Sundayfrom 10:45 to 7:45 at location 1234 ST,
Sumcity, ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
ORA-06512: at line 1
  
The user sees the error message they click okay and we have a popup
Processing... when it should load the schedule.. It hangs there..
With Processing... stuck on the screen, the user never regains
control of the screen and has to reload the page.
I do not see where the error is coming from.
So I'm trying to follow the code up to Flex and see where this is 
 bombing..
So where does the code go from the DAO? The BO? Then to the Delegate?
Then off to Flex? I tried to google a few times but was getting no
where.
If someone can explain the path of code using Cairngorm I'd appreciate it.
  
The logs stop dead at:
  
[Flex] 03/27/2008 09:15:31.438 Serializing AMF/HTTP response
Version: 3
 (Message #0 targetURI=/7/onStatus, responseURI=)
   (Typed Object #0 'flex.messaging.messages.ErrorMessage')
 rootCause = (Typed Object #1 'java.lang.Exception')
   localizedMessage = java.sql.SQLException: ORA-20002: START42
Employee Bob Hope is already on the schedule on Sundayfrom 10:45
to 7:45 at location 1234 ST, City ALEND42
ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW

[flexcoders] Re: path of code?

2008-03-27 Thread Greg Morphis
Application works fine if the user isnt scheduled at another location
during the same time frame.
So the problem HAS to be in the way it's suppose to exit on the Oracle
error and return control to the user.
Has anyone else done anything like that?

Any examples, etc would be great



On Thu, Mar 27, 2008 at 12:38 PM, Greg Morphis [EMAIL PROTECTED] wrote:
 It never makes it back to Flex.. I put an Alert() in the onResult() of
  the command that sends to Java..
  There's log.debug()'s all over the place but I can't seem to find
  them. They do not appear in the console..
  Is there some way I can force an Alert or something in Java?
  I want to find where this craps out..

  thanks



  On Thu, Mar 27, 2008 at 9:39 AM, Greg Morphis [EMAIL PROTECTED] wrote:
   BTW the end of the updateSchedule() function looks like this
  
   } catch (SQLException e) {
   log.error(WeeklyScheduleDAO.updateWeeklySchedule 
 () failed, e);
   connection.rollback();
   throw new Exception(e);
   } catch (Exception e) {
   log.error(WeeklyScheduleDAO.updateWeeklySchedule 
 () failed, e);
   connection.rollback();
   throw new Exception(e);
   } finally {
   try { csDelete.close(); } catch (Exception e) {};
   try { csInsert.close(); } catch (Exception e) {};
   try { csNote.close(); } catch (Exception e) {};
   releaseConnection(connection);
  
  
   }
   }
  
  
  
  
On Thu, Mar 27, 2008 at 9:21 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I have this app that is used to schedule employees, for a while we
  we're using timestamps to record start and end times of shifts.
  We started having issues with daylight savings and the client's
  time/server's time being different.
  Anyways we recently changed that to numbers so for example 5pm = 17,
  such-and-so-forth.
  Everything is working fine with that.
  But, I was informed of an error, if you try to schedule someone at one
  location when they are scheduled another during the same time it's
  suppose to warn the user and reload the schedule. However the
  application just hangs..

  We generate the error in Oracle and bubble it up..

  Looks like this:
  --first we will validate that this record can be inserted.
  validation involves checking for time overlaps
  FOR cr_row IN c_rowcheck LOOP
   BEGIN
IF( (v_starttime BETWEEN cr_row.starttime_num AND
  cr_row.endtime_num)
 OR  (v_endtime BETWEEN cr_row.starttime_num AND
  cr_row.endtime_num )
   OR (v_starttime  cr_row.starttime_num AND v_endtime
   cr_row.endtime_num) ) THEN
 --the start42 and end42 are for the UI
 errDay := 
 to_char(getDateFromNum(cr_row.day,cr_row.week,cr_row.year),
  'Day');
 errMsg := 'START42 Employee ' || emplName || ' is
  already on the schedule on ' || errDay || ' from ' ||
  militaryToStandardTime(cr_row.starttime_num) || ' to ' ||
  militaryToStandardTime(cr_row.endtime_num) || ' at location ' ||
  cr_row.descr || ', ' || cr_row.city || ', ' || cr_row.state ||
  'END42';
 RAISE_APPLICATION_ERROR(-20002,errMsg );
   END IF;
   END;
  END LOOP;

  I believe this part of the code to be working fine. I can run this
  manually, plug in some variables in Oracle and bam, I get an error
  message if the user is elsewhere.
  The problem I'm having is when you do this in Flex.. you get the error 
 message

  Mar 26, 2008 5:07:32 PM com.dao.WeeklyScheduleDAO updateWeeklySchedule
  SEVERE: WeeklyScheduleDAO.updateWeeklySchedule () failed
  java.sql.SQLException: ORA-20002: START42 Employee Bob Hope is already
  on the schedule on Sundayfrom 10:45 to 7:45 at location 1234 ST,
  Sumcity, ALEND42
  ORA-06512: at AOPSCHEDULE.INSERTSCHEDULEENTRY_NEW, line 38
  ORA-06512: at line 1

  The user sees the error message they click okay and we have a popup
  Processing... when it should load the schedule.. It hangs there..
  With Processing... stuck on the screen, the user never regains
  control of the screen and has to reload the page.
  I do not see where the error is coming from.
  So I'm trying to follow the code up to Flex and see where this is 
 bombing..
  So where does the code go from the DAO? The BO? Then to the Delegate?
  Then off to Flex? I tried to google a few times but was getting no
  where.
  If someone can explain the path of code using Cairngorm I'd

[flexcoders] compiling flex app on Tomcat 5.5 urgent

2008-02-29 Thread Greg Morphis
This is my first time modifying our production code since taking over
a flex project and on the prod server the .java files are .class'
files.
Please someone tell me how to compile my project so I can deploy it on
the production server


[flexcoders] Re: compiling flex app on Tomcat 5.5 urgent

2008-02-29 Thread Greg Morphis
I had the .class files locally from dropping the files into Tomcat to
test (outside of Eclipse). I moved those out and everything seems to
be working okay.


On Sat, Mar 1, 2008 at 12:57 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 This is my first time modifying our production code since taking over
  a flex project and on the prod server the .java files are .class'
  files.
  Please someone tell me how to compile my project so I can deploy it on
  the production server



[flexcoders] does something like this exist?

2007-10-22 Thread Greg Morphis
I'm looking for an actionscript tester.. for example, I dont want to
have to build, and run my app every time just to check what 6 % 2 is
(for example). So does something exist that allows you to throw simple
AS code at it and return a value?

Thanks..


Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-18 Thread Greg Morphis
I've checked the services-config.xml file and I have the level=Debug and
Endpoint.* in there...

logging
target class=flex.messaging.log.ConsoleTarget level=Debug
properties
prefix[Flex] /prefix
includeDatetrue/includeDate
includeTimetrue/includeTime
includeLevelfalse/includeLevel
includeCategoryfalse/includeCategory
/properties
filters
patternEndpoint.*/pattern
patternService.*/pattern
patternConfiguration/pattern
/filters
/target
/logging

This is what I see in the console in regards to Endpoint...
[Flex] 10/18/2007 09:07:09.248 Starting Adobe Flex Data Services 2
Enterprise
[Flex] 10/18/2007 09:07:09.248 Adobe Flex Data Services Build: 155539
[Flex] 10/18/2007 09:07:09.435 Endpoint my-amf created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/amf
[Flex] 10/18/2007 09:07:09.435 Endpoint my-polling-amf created with
security: None
at URI: http://{server.name}:{server.port}/{context.root
}/messagebroker/amfpolling
[Flex] 10/18/2007 09:07:09.435 Endpoint my-http created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/http
[Flex] 10/18/2007 09:07:09.435 Endpoint my-secure-amf created with security:
None
at URI: https://{server.name}:{server.port}/{context.root
}/messagebroker/amfsecure
[Flex] 10/18/2007 09:07:09.498 Endpoint my-rtmp created with security: None
at URI: rtmp://{server.name}:2038
[Flex] 10/18/2007 09:07:09.498 Endpoint my-secure-http created with
security: None
at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
[Flex] 10/18/2007 09:07:10.140 RTMP-Server listening on port:2038


I log in, I get nothing in the console but still see this error
[FaultEvent fault=[RPC Fault faultString=[MessagingError message='Unknown
destination 'EmployeeServiceRO'.'] faultCode=InvokeFailed
faultDetail=Couldn't establish a connection to 'EmployeeServiceRO']
messageId=395B4A39-05C2-B5EE-6E7E-B37436E1A204 type=fault bubbles=false
cancelable=true eventPhase=2]

This is in the onFault of the LoginCommand.as file.

I added the TraceTarget to the index.mxml file,

mx:TraceTarget id=logTarget includeDate=true includeTime=true
includeCategory=true includeLevel=true
mx:filters
mx:Array
mx:Stringmx.messaging.*/mx:String
/mx:Array
/mx:filters
!-- 0 is represents the LogEventLevel.ALL constant. --
mx:level0/mx:level
/mx:TraceTarget

But where should I see this information? (The console is the same)

I apologize but I did not understand this The last thing I'll mention
quickly just to be sure you is that if you are using HTTP based channels,
the player is using the same HTTP session on the server as any jsp files
running in that same web application.

And no, things don't work with pre-authenticated session..  The
/seurity/index.jsp  works and displays which role you log in as, but if I
backed up and removed the security/index.jsp I'd get the same error.
Thanks for the help guys..













On 10/17/07, Jeff Vroom [EMAIL PROTECTED] wrote:

  I'm not sure what is going on but one good way to diagnose these problems
 is to turn on the debug logging on the client and server.  In this case,
 since it seems to be a problem with the basic connections, you should use
 the Endpoint.* target on the server.  In WEB-INF/flex/services-
 config.xml, find level=  change that to Debug and make sure Endpoint.* is
 in the targets below.



 On the client, I'd also turn on mx:TraceTarget/.



 The other thing I find that is helpful is to look at the configuration
 which is getting compiled into your SWF.  When you compile your app, you
 point it at the server's configuration and it copies a subset of that config
 into the variable:



 mx.messaging.config.ServerConfig.xml



 you can print that out at startup (actually, this is done automatically by
 mx:TraceTarget).



 The last thing I'll mention quickly just to be sure you is that if you are
 using HTTP based channels, the player is using the same HTTP session on the
 server as any jsp files running in that same web application.  It sounds
 like things may work when you are dealing with a pre-authenticated session
 but fail when the session is not in place.  It is relatively common that
 people will put a security filter into the web.xml file to enforce
 security.  If one of these filters runs before the MessageBrokerServlet
 (also in web.xml) it may prevent flex from contacting the server in the
 case where the filter aborts or redirects the request because the
 authentication has failed.



 Jeff


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Greg Morphis
 *Sent:* Wednesday, October 17, 2007 9:43 AM
 *To:* flexcoders@yahoogroups.com

[flexcoders] Address in use error?

2007-10-18 Thread Greg Morphis
I deleted the project I was getting a Fault error on (see other post
for more information).
I uninstalled and reinstalled FDS2.0.1, I checked the project back out from CVS.
When I load the program I get
[Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
java.net.BindException: Address already in use: bind
Exception in thread RTMP-Server
flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
encountered a fatal exception starting up: Address already in use:
bind
at 
flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
at java.lang.Thread.run(Unknown Source)

How do I correct this error? Thanks


[flexcoders] Re: Address in use error?

2007-10-18 Thread Greg Morphis
I changed the port from 2038 to 2039 in the services-config.xml and
rebooted my computer, getting same error..

channel-definition id=my-rtmp
class=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:2039
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
client-to-server-maxbps100K/client-to-server-maxbps
server-to-client-maxbps100K/server-to-client-maxbps
!-- for deployment on WebSphere, must be mapped to a
WorkManager available in the web application's jndi context.

websphere-workmanager-jndi-namejava:comp/env/wm/MessagingWorkManager/websphere-workmanager-jndi-name
--
/properties
/channel-definition


On 10/18/07, Greg Morphis [EMAIL PROTECTED] wrote:
 I deleted the project I was getting a Fault error on (see other post
 for more information).
 I uninstalled and reinstalled FDS2.0.1, I checked the project back out from 
 CVS.
 When I load the program I get
 [Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
 java.net.BindException: Address already in use: bind
 Exception in thread RTMP-Server
 flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
 encountered a fatal exception starting up: Address already in use:
 bind
 at 
 flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
 at java.lang.Thread.run(Unknown Source)

 How do I correct this error? Thanks



[flexcoders] Re: Address in use error? [SOLVED]

2007-10-18 Thread Greg Morphis
This is solved

On 10/18/07, Greg Morphis [EMAIL PROTECTED] wrote:
 I changed the port from 2038 to 2039 in the services-config.xml and
 rebooted my computer, getting same error..

 channel-definition id=my-rtmp
 class=mx.messaging.channels.RTMPChannel
 endpoint uri=rtmp://{server.name}:2039
 class=flex.messaging.endpoints.RTMPEndpoint/
 properties
 idle-timeout-minutes20/idle-timeout-minutes
 client-to-server-maxbps100K/client-to-server-maxbps
 server-to-client-maxbps100K/server-to-client-maxbps
 !-- for deployment on WebSphere, must be mapped to a
 WorkManager available in the web application's jndi context.

 websphere-workmanager-jndi-namejava:comp/env/wm/MessagingWorkManager/websphere-workmanager-jndi-name
 --
 /properties
 /channel-definition


 On 10/18/07, Greg Morphis [EMAIL PROTECTED] wrote:
  I deleted the project I was getting a Fault error on (see other post
  for more information).
  I uninstalled and reinstalled FDS2.0.1, I checked the project back out from 
  CVS.
  When I load the program I get
  [Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
  java.net.BindException: Address already in use: bind
  Exception in thread RTMP-Server
  flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
  encountered a fatal exception starting up: Address already in use:
  bind
  at 
  flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
  at java.lang.Thread.run(Unknown Source)
 
  How do I correct this error? Thanks
 



Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO [SOLVED]

2007-10-18 Thread Greg Morphis
Thanks guys for the help.. I believe I have everything working now.. I think
the problem was connected to my other post Address in use


On 10/18/07, Greg Morphis [EMAIL PROTECTED] wrote:

 I've checked the services-config.xml file and I have the level=Debug and
 Endpoint.* in there...

 logging
 target class=flex.messaging.log.ConsoleTarget level=Debug
 properties
 prefix[Flex] /prefix
 includeDatetrue/includeDate
 includeTimetrue/includeTime
 includeLevelfalse/includeLevel
 includeCategoryfalse/includeCategory
 /properties
 filters
 patternEndpoint.*/pattern
 patternService.*/pattern
 patternConfiguration/pattern
 /filters
 /target
 /logging

 This is what I see in the console in regards to Endpoint...
 [Flex] 10/18/2007 09:07: 09.248 Starting Adobe Flex Data Services 2
 Enterprise
 [Flex] 10/18/2007 09:07:09.248 Adobe Flex Data Services Build: 155539
 [Flex] 10/18/2007 09:07:09.435 Endpoint my-amf created with security: None
 at URI: http://{ server.name}:{server.port}/{context.root
 }/messagebroker/amf
 [Flex] 10/18/2007 09:07:09.435 Endpoint my-polling-amf created with
 security: None
 at URI: http://{ server.name}:{server.port}/{context.root
 }/messagebroker/amfpolling
 [Flex] 10/18/2007 09:07:09.435 Endpoint my-http created with security:
 None
 at URI: http://{server.name}:{server.port }/{context.root
 }/messagebroker/http
 [Flex] 10/18/2007 09:07:09.435 Endpoint my-secure-amf created with
 security: None
 at URI: 
 https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

 [Flex] 10/18/2007 09:07:09.498 Endpoint my-rtmp created with security:
 None
 at URI: rtmp://{server.name}:2038
 [Flex] 10/18/2007 09:07:09.498 Endpoint my-secure-http created with
 security: None
 at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
 [Flex] 10/18/2007 09:07:10.140 RTMP-Server listening on port:2038


 I log in, I get nothing in the console but still see this error
 [FaultEvent fault=[RPC Fault faultString=[MessagingError message='Unknown
 destination 'EmployeeServiceRO'.'] faultCode=InvokeFailed
 faultDetail=Couldn't establish a connection to 'EmployeeServiceRO']
 messageId=395B4A39-05C2-B5EE-6E7E-B37436E1A204 type=fault bubbles=false
 cancelable=true eventPhase=2]

 This is in the onFault of the LoginCommand.as file.

 I added the TraceTarget to the index.mxml file,

 mx:TraceTarget id=logTarget includeDate=true includeTime=true
 includeCategory=true includeLevel=true
 mx:filters
 mx:Array
 mx:Stringmx.messaging.*/mx:String
 /mx:Array
 /mx:filters
 !-- 0 is represents the LogEventLevel.ALL constant. --
 mx:level0/mx:level
 /mx:TraceTarget

 But where should I see this information? (The console is the same)

 I apologize but I did not understand this  The last thing I'll mention
 quickly just to be sure you is that if you are using HTTP based channels,
 the player is using the same HTTP session on the server as any jsp files
 running in that same web application.

 And no, things don't work with pre-authenticated session..  The
 /seurity/index.jsp  works and displays which role you log in as, but if I
 backed up and removed the security/index.jsp I'd get the same error.
 Thanks for the help guys..













 On 10/17/07, Jeff Vroom [EMAIL PROTECTED]  wrote:
 
   I'm not sure what is going on but one good way to diagnose these
  problems is to turn on the debug logging on the client and server.  In this
  case, since it seems to be a problem with the basic connections, you should
  use the Endpoint.* target on the server.  In WEB-INF/flex/services-
  config.xml, find level=  change that to Debug and make sure Endpoint.*
  is in the targets below.
 
 
 
  On the client, I'd also turn on mx:TraceTarget/.
 
 
 
  The other thing I find that is helpful is to look at the configuration
  which is getting compiled into your SWF.  When you compile your app, you
  point it at the server's configuration and it copies a subset of that config
  into the variable:
 
 
 
  mx.messaging.config.ServerConfig.xml
 
 
 
  you can print that out at startup (actually, this is done automatically
  by mx:TraceTarget).
 
 
 
  The last thing I'll mention quickly just to be sure you is that if you
  are using HTTP based channels, the player is using the same HTTP session on
  the server as any jsp files running in that same web application.  It sounds
  like things may work when you are dealing with a pre-authenticated session
  but fail when the session is not in place.  It is relatively common that
  people will put a security filter into the web.xml file to enforce
  security.  If one of these filters runs before the MessageBrokerServlet
  (also in web.xml) it may prevent flex from contacting the server

Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-17 Thread Greg Morphis
Still havent found anything with this. One thing I didnt mention yesterday
is that there is a folder with a security check..
Just a simple check...


psecurity test for app/p
%
  if (request.getUserPrincipal() != null) {
%
Your user principal name is
b%= request.getUserPrincipal().getName() %/bbrbr
%
  } else {
%
No user principal could be identified.brbr
%
  }
%
%
if (request.isUserInRole(AOPScheduler-BASICINQ)) {
%
  You have been granted role AOPScheduler-BASICINQbrbr
%
}
if (request.isUserInRole(AOPScheduler-BASICAM)){
%
You have been granted role AOPScheduler-BASICAMbrbr
%
}
%

I can hit the url which is protected, I'm prompted to log in. I log in and
it works...

security test for app

Your user principal name is 1234567

You have been granted role AOPScheduler-BASICAM


So the roles seem to be working.. If I take change the url and take off the
/security/ (to the root folder) I get the same error..
Anything else anyone can throw out there to check? Please? I'm getting
frustrated with this







On 10/16/07, Greg Morphis [EMAIL PROTECTED] wrote:

 So I copied the folder down from dev to my local machine.
 I was able to run the app from there.. But I cannot build my copy in
 Eclipse and run it. WTF?!?!?!
 This is pissing me off

 On 10/16/07, Greg Morphis [EMAIL PROTECTED] wrote:
 
  I copied the tomcat folder from our dev server down to my local machine,
  since both of the installations are in the same place
  C:\Tomcat5.5
  The server started fine, I cleaned and rebuilt the app.. same error. I
  don't think it's a tomcat config issue..
 
  On 10/16/07, Greg Morphis  [EMAIL PROTECTED] wrote:
  
   I'll give that a try in a little bit, I'll have to modify the main
   view and security login page to ignore the current way of loading. I think
   the answer will be no, no destination is being found
  
   Thanks
  
   On 10/16/07, Anatole Tartakovsky  [EMAIL PROTECTED]
   wrote:
   
 Is it the only destination not being found? Can you create another
destination,  and debug in something like this:
   
mb = MessageBroker.getMessageBroker(null);
srv = (RemotingService)mb.getServiceByType(
flex.messaging.services.RemotingService);
RemotingDestination remotingDestination =
(RemotingDestination)srv.getDestination(destinationName);// debug in
   
Regards,
Anatole
   
   
On 10/16/07, Dimitrios Gianninas [EMAIL PROTECTED]
wrote:

Hmm not sure if this is the problem but dont create roles names
 with any special characters, dashes ( - ) in your case. I know 
 Weblogic has
 a problem with this when we named our roles with underscores in them. 
 In WL
 we also need to define them in the WEB-NF/weblogic.xml, not sure if 
 this is
 the case for Tomcat.

 As for not being able to connect, hmmm..is there any more errors
 before this one?

 *Dimitrios Gianninas*
 *Development Team Lead*
 *Optimal Payments Inc.*


  --
 *From:* flexcoders@yahoogroups.com [mailto: flexcoders@
 yahoogroups.com] *On Behalf Of *Greg Morphis
 *Sent:* Tuesday, October 16, 2007 9:53 AM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] Re: Unknown destination 'EmployeeServiceRO



 Anyone? Has no one seen this error before? Does everything look
 correct?
 This is with Flex 2 / LCDS on Tomcat with Java middleware.

 Thanks

 On 10/15/07, Greg Morphis  [EMAIL PROTECTED]gmorphis%40gmail.com
 wrote:
  I'm condensing my previous posts..
  
  getting this error on a flex app..
 
  [FaultEvent fault=[RPC Fault faultString=[MessagingError
  message='Unknown destination 'EmployeeServiceRO'.']
  faultCode=InvokeFailed faultDetail=Couldn't establish a
 connection
  to 'EmployeeServiceRO']
  messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
  type=fault
  bubbles=false
  cancelable=true eventPhase=2]
 
  I've checked the remoting-config.xml
 
  destination id=EmployeeServiceRO
  properties
  sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate
 /source
  scopeapplication/scope
  /properties
  security
  security-constraint
  auth-methodBasic/auth-method
  roles
  roleAOPScheduler-BASICAM/role
  roleAOPScheduler-BASICINQ/role
 
  /roles
  /security-constraint
  /security
 
  /destination
 
  I installed log4j and I see this when I log in..
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - Username e0087890 has role
  AOPScheduler-BASICINQ
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - No role found:
  AOPScheduler-BASICINQ
 
  But I have the roles defined

[flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-16 Thread Greg Morphis
Anyone? Has no one seen this error before? Does everything look correct?
This is with Flex 2 / LCDS on Tomcat with Java middleware.

Thanks

On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
 I'm condensing my previous posts..
 
 getting this error on a flex app..

 [FaultEvent fault=[RPC Fault faultString=[MessagingError
 message='Unknown destination 'EmployeeServiceRO'.']
 faultCode=InvokeFailed faultDetail=Couldn't establish a connection
 to 'EmployeeServiceRO']
 messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
 type=fault
 bubbles=false
 cancelable=true eventPhase=2]

 I've checked the remoting-config.xml

destination id=EmployeeServiceRO
properties

 sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
scopeapplication/scope
/properties
security
security-constraint
auth-methodBasic/auth-method
roles
roleAOPScheduler-BASICAM/role
roleAOPScheduler-BASICINQ/role

/roles
/security-constraint
/security

/destination

 I installed log4j and I see this when I log in..
 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - Username e0087890 has role
 AOPScheduler-BASICINQ
 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - No role found:
 AOPScheduler-BASICINQ

 But I have the roles defined:
 In the web.xml file
auth-constraint
role-nameAOPScheduler-BASICAM/role-name
role-nameAOPScheduler-BASICINQ/role-name
/auth-constraint
/security-constraint

 and
security-role
  description
The role that is required to log in to the Manager Application
  /description
  role-nameAOPScheduler-BASICAM/role-name
  /security-role
security-role
  description
The role that is required to log in to the Reader Application
  /description
  role-nameAOPScheduler-BASICINQ/role-name
  /security-role


 So to me everything looks okay, what am I missing?
 The odd thing is that we store the code in CVS, I've checked out a
 fresh copy of the code and everything looks good. The only thing I can
 think of is something not configured right in Tomcat?



Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-16 Thread Greg Morphis
I don't think it's the roles because this is working in production, and even
dev.. just not locally.
The only thing that I might have different is some Tomcat setting.. maybe
something changed after I was pulled from the project to work on other
database related items.
As far as more errors.. thats the only one right now thats preventing me
from running the app.. when this one is solved, it might open another can of
worms so-to-speak.
Anyways, I appreciate the couple replies.. I, myself, am getting no where.

On 10/16/07, Dimitrios Gianninas [EMAIL PROTECTED]
wrote:

  Hmm not sure if this is the problem but dont create roles names with any
 special characters, dashes ( - ) in your case. I know Weblogic has a problem
 with this when we named our roles with underscores in them. In WL we also
 need to define them in the WEB-NF/weblogic.xml, not sure if this is the case
 for Tomcat.

 As for not being able to connect, hmmm..is there any more errors before
 this one?

 *Dimitrios Gianninas*
 *Development Team Lead*
 *Optimal Payments Inc.*


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Greg Morphis
 *Sent:* Tuesday, October 16, 2007 9:53 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Unknown destination 'EmployeeServiceRO

  Anyone? Has no one seen this error before? Does everything look correct?
 This is with Flex 2 / LCDS on Tomcat with Java middleware.

 Thanks

 On 10/15/07, Greg Morphis [EMAIL PROTECTED] gmorphis%40gmail.com
 wrote:
  I'm condensing my previous posts..
  
  getting this error on a flex app..
 
  [FaultEvent fault=[RPC Fault faultString=[MessagingError
  message='Unknown destination 'EmployeeServiceRO'.']
  faultCode=InvokeFailed faultDetail=Couldn't establish a connection
  to 'EmployeeServiceRO']
  messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
  type=fault
  bubbles=false
  cancelable=true eventPhase=2]
 
  I've checked the remoting-config.xml
 
  destination id=EmployeeServiceRO
  properties
  sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
  scopeapplication/scope
  /properties
  security
  security-constraint
  auth-methodBasic/auth-method
  roles
  roleAOPScheduler-BASICAM/role
  roleAOPScheduler-BASICINQ/role
 
  /roles
  /security-constraint
  /security
 
  /destination
 
  I installed log4j and I see this when I log in..
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - Username e0087890 has role
  AOPScheduler-BASICINQ
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - No role found:
  AOPScheduler-BASICINQ
 
  But I have the roles defined:
  In the web.xml file
  auth-constraint
  role-nameAOPScheduler-BASICAM/role-name
  role-nameAOPScheduler-BASICINQ/role-name
  /auth-constraint
  /security-constraint
 
  and
  security-role
  description
  The role that is required to log in to the Manager Application
  /description
  role-nameAOPScheduler-BASICAM/role-name
  /security-role
  security-role
  description
  The role that is required to log in to the Reader Application
  /description
  role-nameAOPScheduler-BASICINQ/role-name
  /security-role
 
 
  So to me everything looks okay, what am I missing?
  The odd thing is that we store the code in CVS, I've checked out a
  fresh copy of the code and everything looks good. The only thing I can
  think of is something not configured right in Tomcat?
 

 *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

Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-16 Thread Greg Morphis
I'll give that a try in a little bit, I'll have to modify the main view and
security login page to ignore the current way of loading. I think the answer
will be no, no destination is being found

Thanks

On 10/16/07, Anatole Tartakovsky [EMAIL PROTECTED] wrote:

  Is it the only destination not being found? Can you create another
 destination,  and debug in something like this:

 mb = MessageBroker.getMessageBroker(null);
 srv = (RemotingService)mb.getServiceByType(
 flex.messaging.services.RemotingService);
 RemotingDestination remotingDestination =
 (RemotingDestination)srv.getDestination(destinationName);// debug in

 Regards,
 Anatole


 On 10/16/07, Dimitrios Gianninas [EMAIL PROTECTED]
 wrote:
 
 Hmm not sure if this is the problem but dont create roles names with
  any special characters, dashes ( - ) in your case. I know Weblogic has a
  problem with this when we named our roles with underscores in them. In WL we
  also need to define them in the WEB-NF/weblogic.xml, not sure if this is the
  case for Tomcat.
 
  As for not being able to connect, hmmm..is there any more errors before
  this one?
 
  *Dimitrios Gianninas*
  *Development Team Lead*
  *Optimal Payments Inc.*
 
 
   --
  *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
  *On Behalf Of *Greg Morphis
  *Sent:* Tuesday, October 16, 2007 9:53 AM
  *To:* [EMAIL PROTECTED] ups.com
  *Subject:* [flexcoders] Re: Unknown destination 'EmployeeServiceRO
 
 
 
  Anyone? Has no one seen this error before? Does everything look correct?
  This is with Flex 2 / LCDS on Tomcat with Java middleware.
 
  Thanks
 
  On 10/15/07, Greg Morphis  [EMAIL PROTECTED] gmorphis%40gmail.com
  wrote:
   I'm condensing my previous posts..
   
   getting this error on a flex app..
  
   [FaultEvent fault=[RPC Fault faultString=[MessagingError
   message='Unknown destination 'EmployeeServiceRO'.']
   faultCode=InvokeFailed faultDetail=Couldn't establish a connection
   to 'EmployeeServiceRO']
   messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
   type=fault
   bubbles=false
   cancelable=true eventPhase=2]
  
   I've checked the remoting-config.xml
  
   destination id=EmployeeServiceRO
   properties
   sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate
  /source
   scopeapplication/scope
   /properties
   security
   security-constraint
   auth-methodBasic/auth-method
   roles
   roleAOPScheduler-BASICAM/role
   roleAOPScheduler-BASICINQ/role
  
   /roles
   /security-constraint
   /security
  
   /destination
  
   I installed log4j and I see this when I log in..
   2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
   org.apache.catalina.realm.RealmBase - Username e0087890 has role
   AOPScheduler-BASICINQ
   2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
   org.apache.catalina.realm.RealmBase - No role found:
   AOPScheduler-BASICINQ
  
   But I have the roles defined:
   In the web.xml file
   auth-constraint
   role-nameAOPScheduler-BASICAM/role-name
   role-nameAOPScheduler-BASICINQ/role-name
   /auth-constraint
   /security-constraint
  
   and
   security-role
   description
   The role that is required to log in to the Manager Application
   /description
   role-nameAOPScheduler-BASICAM/role-name
   /security-role
   security-role
   description
   The role that is required to log in to the Reader Application
   /description
   role-nameAOPScheduler-BASICINQ/role-name
   /security-role
  
  
   So to me everything looks okay, what am I missing?
   The odd thing is that we store the code in CVS, I've checked out a
   fresh copy of the code and everything looks good. The only thing I can
   think of is something not configured right in Tomcat?
  
 
  *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

Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-16 Thread Greg Morphis
I copied the tomcat folder from our dev server down to my local machine,
since both of the installations are in the same place
C:\Tomcat5.5
The server started fine, I cleaned and rebuilt the app.. same error. I don't
think it's a tomcat config issue..

On 10/16/07, Greg Morphis [EMAIL PROTECTED] wrote:

 I'll give that a try in a little bit, I'll have to modify the main view
 and security login page to ignore the current way of loading. I think the
 answer will be no, no destination is being found

 Thanks

 On 10/16/07, Anatole Tartakovsky [EMAIL PROTECTED] wrote:
 
   Is it the only destination not being found? Can you create another
  destination,  and debug in something like this:
 
  mb = MessageBroker.getMessageBroker(null);
  srv = (RemotingService)mb.getServiceByType(
  flex.messaging.services.RemotingService);
  RemotingDestination remotingDestination =
  (RemotingDestination)srv.getDestination(destinationName);// debug in
 
  Regards,
  Anatole
 
 
  On 10/16/07, Dimitrios Gianninas [EMAIL PROTECTED]
  wrote:
  
  Hmm not sure if this is the problem but dont create roles names
   with any special characters, dashes ( - ) in your case. I know Weblogic 
   has
   a problem with this when we named our roles with underscores in them. In 
   WL
   we also need to define them in the WEB-NF/weblogic.xml, not sure if this 
   is
   the case for Tomcat.
  
   As for not being able to connect, hmmm..is there any more errors
   before this one?
  
   *Dimitrios Gianninas*
   *Development Team Lead*
   *Optimal Payments Inc.*
  
  
--
   *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
   *On Behalf Of *Greg Morphis
   *Sent:* Tuesday, October 16, 2007 9:53 AM
   *To:* [EMAIL PROTECTED] ups.com
   *Subject:* [flexcoders] Re: Unknown destination 'EmployeeServiceRO
  
  
  
   Anyone? Has no one seen this error before? Does everything look
   correct?
   This is with Flex 2 / LCDS on Tomcat with Java middleware.
  
   Thanks
  
   On 10/15/07, Greg Morphis  [EMAIL PROTECTED] gmorphis%40gmail.com
   wrote:
I'm condensing my previous posts..

getting this error on a flex app..
   
[FaultEvent fault=[RPC Fault faultString=[MessagingError
message='Unknown destination 'EmployeeServiceRO'.']
faultCode=InvokeFailed faultDetail=Couldn't establish a
   connection
to 'EmployeeServiceRO']
messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
type=fault
bubbles=false
cancelable=true eventPhase=2]
   
I've checked the remoting-config.xml
   
destination id=EmployeeServiceRO
properties
sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate
   /source
scopeapplication/scope
/properties
security
security-constraint
auth-methodBasic/auth-method
roles
roleAOPScheduler-BASICAM/role
roleAOPScheduler-BASICINQ/role
   
/roles
/security-constraint
/security
   
/destination
   
I installed log4j and I see this when I log in..
2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - Username e0087890 has role
AOPScheduler-BASICINQ
2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - No role found:
AOPScheduler-BASICINQ
   
But I have the roles defined:
In the web.xml file
auth-constraint
role-nameAOPScheduler-BASICAM/role-name
role-nameAOPScheduler-BASICINQ/role-name
/auth-constraint
/security-constraint
   
and
security-role
description
The role that is required to log in to the Manager Application
/description
role-nameAOPScheduler-BASICAM/role-name
/security-role
security-role
description
The role that is required to log in to the Reader Application
/description
role-nameAOPScheduler-BASICINQ/role-name
/security-role
   
   
So to me everything looks okay, what am I missing?
The odd thing is that we store the code in CVS, I've checked out a
fresh copy of the code and everything looks good. The only thing I
   can
think of is something not configured right in Tomcat?
   
  
   *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

Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-16 Thread Greg Morphis
So I copied the folder down from dev to my local machine.
I was able to run the app from there.. But I cannot build my copy in Eclipse
and run it. WTF?!?!?!
This is pissing me off

On 10/16/07, Greg Morphis [EMAIL PROTECTED] wrote:

 I copied the tomcat folder from our dev server down to my local machine,
 since both of the installations are in the same place
 C:\Tomcat5.5
 The server started fine, I cleaned and rebuilt the app.. same error. I
 don't think it's a tomcat config issue..

 On 10/16/07, Greg Morphis [EMAIL PROTECTED] wrote:
 
  I'll give that a try in a little bit, I'll have to modify the main view
  and security login page to ignore the current way of loading. I think the
  answer will be no, no destination is being found
 
  Thanks
 
  On 10/16/07, Anatole Tartakovsky  [EMAIL PROTECTED] wrote:
  
Is it the only destination not being found? Can you create another
   destination,  and debug in something like this:
  
   mb = MessageBroker.getMessageBroker(null);
   srv = (RemotingService)mb.getServiceByType(
   flex.messaging.services.RemotingService);
   RemotingDestination remotingDestination =
   (RemotingDestination)srv.getDestination(destinationName);// debug in
  
   Regards,
   Anatole
  
  
   On 10/16/07, Dimitrios Gianninas [EMAIL PROTECTED]
   wrote:
   
   Hmm not sure if this is the problem but dont create roles names
with any special characters, dashes ( - ) in your case. I know Weblogic 
has
a problem with this when we named our roles with underscores in them. 
In WL
we also need to define them in the WEB-NF/weblogic.xml, not sure if 
this is
the case for Tomcat.
   
As for not being able to connect, hmmm..is there any more errors
before this one?
   
*Dimitrios Gianninas*
*Development Team Lead*
*Optimal Payments Inc.*
   
   
 --
*From:* flexcoders@yahoogroups.com [mailto: flexcoders@
yahoogroups.com] *On Behalf Of *Greg Morphis
*Sent:* Tuesday, October 16, 2007 9:53 AM
*To:* [EMAIL PROTECTED] ups.com
*Subject:* [flexcoders] Re: Unknown destination 'EmployeeServiceRO
   
   
   
Anyone? Has no one seen this error before? Does everything look
correct?
This is with Flex 2 / LCDS on Tomcat with Java middleware.
   
Thanks
   
On 10/15/07, Greg Morphis  [EMAIL PROTECTED]gmorphis%40gmail.com
wrote:
 I'm condensing my previous posts..
 
 getting this error on a flex app..

 [FaultEvent fault=[RPC Fault faultString=[MessagingError
 message='Unknown destination 'EmployeeServiceRO'.']
 faultCode=InvokeFailed faultDetail=Couldn't establish a
connection
 to 'EmployeeServiceRO']
 messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
 type=fault
 bubbles=false
 cancelable=true eventPhase=2]

 I've checked the remoting-config.xml

 destination id=EmployeeServiceRO
 properties
 sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate
/source
 scopeapplication/scope
 /properties
 security
 security-constraint
 auth-methodBasic/auth-method
 roles
 roleAOPScheduler-BASICAM/role
 roleAOPScheduler-BASICINQ/role

 /roles
 /security-constraint
 /security

 /destination

 I installed log4j and I see this when I log in..
 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - Username e0087890 has role
 AOPScheduler-BASICINQ
 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - No role found:
 AOPScheduler-BASICINQ

 But I have the roles defined:
 In the web.xml file
 auth-constraint
 role-nameAOPScheduler-BASICAM/role-name
 role-nameAOPScheduler-BASICINQ/role-name
 /auth-constraint
 /security-constraint

 and
 security-role
 description
 The role that is required to log in to the Manager Application
 /description
 role-nameAOPScheduler-BASICAM/role-name
 /security-role
 security-role
 description
 The role that is required to log in to the Reader Application
 /description
 role-nameAOPScheduler-BASICINQ/role-name
 /security-role


 So to me everything looks okay, what am I missing?
 The odd thing is that we store the code in CVS, I've checked out a
   
 fresh copy of the code and everything looks good. The only thing I
can
 think of is something not configured right in Tomcat?

   
*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

[flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
So I've inherited a flex app. It's been months since I've looked at
Flex and Cairngorm.
The time change coming up is starting to rear it's ugly head and I'm
trying to get this going and fixed before Nov 4th.
I've got the app all set up, checked it out through CVS and there's an
error, right on login..

I Alert the event in the onFault function and it states

[FaultEvent fault=[RPC Fault faultString=[MessagingError
message='Unknown destination 'EmployeeServiceRO'.']
faultCode=InvokeFailed faultDetail=Couldn't establish a connection
to 'EmployeeServiceRO']
messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
type=fault
bubbles=false
cancelable=true eventPhase=2]

Not sure where to go next for this error. Any help would be appreciated.
Thanks


Re: [flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
mx:RemoteObject id=employeeService
destination=EmployeeServiceRO
result=event.token.resultHandler( event )
fault=event.token.faultHandler( event )
showBusyCursor=true /


Where? I havent looked at this code since March? And even then it wasnt me
who set this up.
Where can I check the configuration? Thanks



On 10/15/07, Anatole Tartakovsky [EMAIL PROTECTED] wrote:

  'Unknown destination 'EmployeeServiceRO' - please check you remoting
 configurations



 On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:

So I've inherited a flex app. It's been months since I've looked at
  Flex and Cairngorm.
  The time change coming up is starting to rear it's ugly head and I'm
  trying to get this going and fixed before Nov 4th.
  I've got the app all set up, checked it out through CVS and there's an
  error, right on login..
 
  I Alert the event in the onFault function and it states
 
  [FaultEvent fault=[RPC Fault faultString=[MessagingError
  message='Unknown destination 'EmployeeServiceRO'.']
  faultCode=InvokeFailed faultDetail=Couldn't establish a connection
  to 'EmployeeServiceRO']
  messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
  type=fault
  bubbles=false
  cancelable=true eventPhase=2]
 
  Not sure where to go next for this error. Any help would be appreciated.
  Thanks
 

 



Re: [flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
I think it has to do with Tomcat...
I installed the log4j logger and watching the stuff in the Eclipse IDE..
In the flex-remoting file I have :

destination id=EmployeeServiceRO
properties
sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate
/source
scopeapplication/scope
/properties
security
security-constraint
auth-methodBasic/auth-method
roles
roleAOPScheduler-BASICAM/role
roleAOPScheduler-BASICINQ/role

/roles
/security-constraint
/security

/destination

Which looks good.. but in the debugger I'm seeing..

2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - Username e0087890 has role
AOPScheduler-BASICINQ
2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - No role found:  AOPScheduler-BASICINQ

The no role found look wierd.. I'm thinking Tomcat is the problem







On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:

 mx:RemoteObject id=employeeService
 destination=EmployeeServiceRO
 result=event.token.resultHandler( event )
 fault=event.token.faultHandler( event )
 showBusyCursor=true /


 Where? I havent looked at this code since March? And even then it wasnt me
 who set this up.
 Where can I check the configuration? Thanks



 On 10/15/07, Anatole Tartakovsky [EMAIL PROTECTED] wrote:
 
   'Unknown destination 'EmployeeServiceRO' - please check you remoting
  configurations
 
 
 
  On 10/15/07, Greg Morphis  [EMAIL PROTECTED] wrote:
 
 So I've inherited a flex app. It's been months since I've looked at
   Flex and Cairngorm.
   The time change coming up is starting to rear it's ugly head and I'm
   trying to get this going and fixed before Nov 4th.
   I've got the app all set up, checked it out through CVS and there's an
   error, right on login..
  
   I Alert the event in the onFault function and it states
  
   [FaultEvent fault=[RPC Fault faultString=[MessagingError
   message='Unknown destination 'EmployeeServiceRO'.']
   faultCode=InvokeFailed faultDetail=Couldn't establish a connection
   to 'EmployeeServiceRO']
   messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
   type=fault
   bubbles=false
   cancelable=true eventPhase=2]
  
   Not sure where to go next for this error. Any help would be
   appreciated.
   Thanks
  
 
  
 




Re: [flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
I checked the WEB-INF/web.xml and have the roles defined there
auth-constraint
role-nameAOPScheduler-BASICAM/role-name
role-nameAOPScheduler-BASICINQ/role-name
  /auth-constraint


security-role
  description
The role that is required to log in to the Manager Application
  /description
  role-nameAOPScheduler-BASICAM/role-name
  /security-role
security-role
  description
The role that is required to log in to the Reader Application
  /description
  role-nameAOPScheduler-BASICINQ/role-name
  /security-role




I'm not sure where else I should be checking.. Anyone have any ideas?

Thanks




On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:

 I think it has to do with Tomcat...
 I installed the log4j logger and watching the stuff in the Eclipse IDE..
 In the flex-remoting file I have :

 destination id=EmployeeServiceRO
 properties
 source
 com.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
 scopeapplication/scope
 /properties
 security
 security-constraint
 auth-methodBasic/auth-method
 roles
 roleAOPScheduler-BASICAM/role
 roleAOPScheduler-BASICINQ/role

 /roles
 /security-constraint
 /security

 /destination

 Which looks good.. but in the debugger I'm seeing..

 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - Username e0087890 has role
 AOPScheduler-BASICINQ
 2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
 org.apache.catalina.realm.RealmBase - No role found:
 AOPScheduler-BASICINQ

 The no role found look wierd.. I'm thinking Tomcat is the problem







 On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
 
  mx:RemoteObject id=employeeService
  destination=EmployeeServiceRO
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler ( event )
  showBusyCursor=true /
 
 
  Where? I havent looked at this code since March? And even then it wasnt
  me who set this up.
  Where can I check the configuration? Thanks
 
 
 
  On 10/15/07, Anatole Tartakovsky [EMAIL PROTECTED]  wrote:
  
'Unknown destination 'EmployeeServiceRO' - please check you remoting
   configurations
  
  
  
   On 10/15/07, Greg Morphis  [EMAIL PROTECTED] wrote:
  
  So I've inherited a flex app. It's been months since I've looked
at
Flex and Cairngorm.
The time change coming up is starting to rear it's ugly head and I'm
trying to get this going and fixed before Nov 4th.
I've got the app all set up, checked it out through CVS and there's
an
error, right on login..
   
I Alert the event in the onFault function and it states
   
[FaultEvent fault=[RPC Fault faultString=[MessagingError
message='Unknown destination 'EmployeeServiceRO'.']
faultCode=InvokeFailed faultDetail=Couldn't establish a
connection
to 'EmployeeServiceRO']
messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
type=fault
bubbles=false
cancelable=true eventPhase=2]
   
Not sure where to go next for this error. Any help would be
appreciated.
Thanks
   
  
   
  
 
 



Re: [flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
Am I looking in the right area?
Am I completely off target? Is there anything I can check?
Thanks



On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:

 I checked the WEB-INF/web.xml and have the roles defined there
 auth-constraint
 role-nameAOPScheduler-BASICAM/role-name
 role-nameAOPScheduler-BASICINQ/role-name
   /auth-constraint


 security-role
   description
 The role that is required to log in to the Manager Application
   /description
   role-nameAOPScheduler-BASICAM/role-name
   /security-role
 security-role
   description
 The role that is required to log in to the Reader Application
   /description
   role-nameAOPScheduler-BASICINQ/role-name
   /security-role




 I'm not sure where else I should be checking.. Anyone have any ideas?

 Thanks




 On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
 
  I think it has to do with Tomcat...
  I installed the log4j logger and watching the stuff in the Eclipse IDE..
  In the flex-remoting file I have :
 
  destination id=EmployeeServiceRO
  properties
  source
  com.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
  scopeapplication/scope
  /properties
  security
  security-constraint
  auth-methodBasic/auth-method
  roles
  roleAOPScheduler-BASICAM/role
  roleAOPScheduler-BASICINQ/role
 
  /roles
  /security-constraint
  /security
 
  /destination
 
  Which looks good.. but in the debugger I'm seeing..
 
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - Username e0087890 has role
  AOPScheduler-BASICINQ
  2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
  org.apache.catalina.realm.RealmBase - No role found:
  AOPScheduler-BASICINQ
 
  The no role found look wierd.. I'm thinking Tomcat is the problem
 
 
 
 
 
 
 
  On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
  
   mx:RemoteObject id=employeeService
   destination=EmployeeServiceRO
   result=event.token.resultHandler( event )
   fault=event.token.faultHandler ( event )
   showBusyCursor=true /
  
  
   Where? I havent looked at this code since March? And even then it
   wasnt me who set this up.
   Where can I check the configuration? Thanks
  
  
  
   On 10/15/07, Anatole Tartakovsky [EMAIL PROTECTED] 
   wrote:
   
 'Unknown destination 'EmployeeServiceRO' - please check you
remoting configurations
   
   
   
On 10/15/07, Greg Morphis  [EMAIL PROTECTED] wrote:
   
   So I've inherited a flex app. It's been months since I've looked
 at
 Flex and Cairngorm.
 The time change coming up is starting to rear it's ugly head and
 I'm
 trying to get this going and fixed before Nov 4th.
 I've got the app all set up, checked it out through CVS and
 there's an
 error, right on login..

 I Alert the event in the onFault function and it states

 [FaultEvent fault=[RPC Fault faultString=[MessagingError
 message='Unknown destination 'EmployeeServiceRO'.']
 faultCode=InvokeFailed faultDetail=Couldn't establish a
 connection
 to 'EmployeeServiceRO']
 messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
 type=fault
 bubbles=false
 cancelable=true eventPhase=2]

 Not sure where to go next for this error. Any help would be
 appreciated.
 Thanks

   

   
  
  
 



Re: [flexcoders] trying to track down an error..

2007-10-15 Thread Greg Morphis
Still nada. I compared the files I thought were suspect to the files we have
on our dev server (which is working fine).
Does this look like a tomcat issue or somewhere else.


On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:

 Am I looking in the right area?
 Am I completely off target? Is there anything I can check?
 Thanks



 On 10/15/07, Greg Morphis  [EMAIL PROTECTED] wrote:
 
  I checked the WEB-INF/web.xml and have the roles defined there
  auth-constraint
  role-nameAOPScheduler-BASICAM/role-name
  role-nameAOPScheduler-BASICINQ/role-name
/auth-constraint
 
 
  security-role
description
  The role that is required to log in to the Manager Application
/description
role-nameAOPScheduler-BASICAM/role-name
/security-role
  security-role
description
  The role that is required to log in to the Reader Application
/description
role-nameAOPScheduler-BASICINQ/role-name
/security-role
 
 
 
 
  I'm not sure where else I should be checking.. Anyone have any ideas?
 
  Thanks
 
 
 
 
  On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
  
   I think it has to do with Tomcat...
   I installed the log4j logger and watching the stuff in the Eclipse
   IDE..
   In the flex-remoting file I have :
  
   destination id=EmployeeServiceRO
   properties
   source
   com.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
   scopeapplication/scope
   /properties
   security
   security-constraint
   auth-methodBasic/auth-method
   roles
   roleAOPScheduler-BASICAM/role
   roleAOPScheduler-BASICINQ/role
  
   /roles
   /security-constraint
   /security
  
   /destination
  
   Which looks good.. but in the debugger I'm seeing..
  
   2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
   org.apache.catalina.realm.RealmBase - Username e0087890 has role
   AOPScheduler-BASICINQ
   2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
   org.apache.catalina.realm.RealmBase - No role found:
   AOPScheduler-BASICINQ
  
   The no role found look wierd.. I'm thinking Tomcat is the problem
  
  
  
  
  
  
  
   On 10/15/07, Greg Morphis [EMAIL PROTECTED] wrote:
   
mx:RemoteObject id=employeeService
destination=EmployeeServiceRO
result=event.token.resultHandler( event )
fault=event.token.faultHandler ( event )
showBusyCursor=true /
   
   
Where? I havent looked at this code since March? And even then it
wasnt me who set this up.
Where can I check the configuration? Thanks
   
   
   
On 10/15/07, Anatole Tartakovsky [EMAIL PROTECTED] 
wrote:

  'Unknown destination 'EmployeeServiceRO' - please check you
 remoting configurations



 On 10/15/07, Greg Morphis  [EMAIL PROTECTED] wrote:

So I've inherited a flex app. It's been months since I've
  looked at
  Flex and Cairngorm.
  The time change coming up is starting to rear it's ugly head and
  I'm
  trying to get this going and fixed before Nov 4th.
  I've got the app all set up, checked it out through CVS and
  there's an
  error, right on login..
 
  I Alert the event in the onFault function and it states
 
  [FaultEvent fault=[RPC Fault faultString=[MessagingError
  message='Unknown destination 'EmployeeServiceRO'.']
  faultCode=InvokeFailed faultDetail=Couldn't establish a
  connection
  to 'EmployeeServiceRO']
  messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
  type=fault
  bubbles=false
  cancelable=true eventPhase=2]
 
  Not sure where to go next for this error. Any help would be
  appreciated.
  Thanks
 

 

   
   
  
 



[flexcoders] Unknown destination 'EmployeeServiceRO

2007-10-15 Thread Greg Morphis
I'm condensing my previous posts..

getting this error on a flex app..

[FaultEvent fault=[RPC Fault faultString=[MessagingError
message='Unknown destination 'EmployeeServiceRO'.']
faultCode=InvokeFailed faultDetail=Couldn't establish a connection
to 'EmployeeServiceRO']
messageId=47E7A8FA-EB41-1E60-A96D-A474ECC048D1
type=fault
bubbles=false
cancelable=true eventPhase=2]

I've checked the remoting-config.xml

destination id=EmployeeServiceRO
properties

sourcecom.alltel.rapid.aopscheduler.business.EmployeeDelegate/source
scopeapplication/scope
/properties
security
security-constraint
auth-methodBasic/auth-method
roles
roleAOPScheduler-BASICAM/role
roleAOPScheduler-BASICINQ/role

/roles
/security-constraint
/security

/destination

I installed log4j and I see this when I log in..
2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - Username e0087890 has role
AOPScheduler-BASICINQ
2007-10-15 11:59:48,812 [http-8080-Processor24] DEBUG
org.apache.catalina.realm.RealmBase - No role found:
AOPScheduler-BASICINQ

But I have the roles defined:
In the web.xml file
auth-constraint
role-nameAOPScheduler-BASICAM/role-name
role-nameAOPScheduler-BASICINQ/role-name
/auth-constraint
/security-constraint

and
security-role
  description
The role that is required to log in to the Manager Application
  /description
  role-nameAOPScheduler-BASICAM/role-name
  /security-role
security-role
  description
The role that is required to log in to the Reader Application
  /description
  role-nameAOPScheduler-BASICINQ/role-name
  /security-role


So to me everything looks okay, what am I missing?
The odd thing is that we store the code in CVS, I've checked out a
fresh copy of the code and everything looks good. The only thing I can
think of is something not configured right in Tomcat?


  1   2   >