[flexcoders] java class access issue with integrated flex 1.5/CFMX 7.0.1

2005-12-18 Thread sof4real03
I have created an integrated JRun4 instance of Flex 1.5 and Coldfusion
MX 7.0.1. I created a simple flex 1.5 application that accesses a
simple custom java class. For some reason the flex application (flash
remoting) can not find the java class. However the flex application is
able to locate and execute coldfusion objects (cfcs), but not pure
custom java classes. I've tried various solutions ranging from where
the class lives such as {context-root}/WEB-INF/classes. I have also
tried to play with the new coldfusion gateway-config.xml and naming
the service and enabling the java adaptors. The interesting thing is I
have another JRun4 server instance with only Flex 1.5 running and
under {context-root}/WEB-INF/classes is the same custom java class,
which works great. There has to be something that I'm missing.








 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] flex2 and simple form question

2005-12-18 Thread Raymond Camden
Ah, thats what I wanted to find - an example. Thanks.

On 12/17/05, Dekayd Media Inc. [EMAIL PROTECTED] wrote:
 There is a very simple way to do it.

 There is a really good example of it in the Flex explorer.






 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Raymond Camden
 Sent: Saturday, December 17, 2005 9:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flex2 and simple form question

 So I've got a form. Each field has a validator. These work fine if you
 click in the field and then leave it w/o entering data. I've marked
 the form items required, and a nice little * shows up. In general,
 everything works, but you can still hit the submit button and none of
 the validators run.

 It seems like there should be a simple way to say, on submit - check
 each field and run the validator, but I can' t seem to find an example
 on that.

 --
 ===
 Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

 Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda



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









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









--
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda


 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] flex2 and simple form question

2005-12-18 Thread Raymond Camden
Matt, I can understand the desire to give more control to users - but
considering how easy everything else is, it seems a bit odd that there
isn't a simpler way to do validation. It's like everything was done
for us (auto marking of required fields with *, nice validators out of
the box) except the final piece (auto validate on submit). I'm not
saying it makes it useless per se it was just surprising that
everything else was done _but_ that.


On 12/17/05, Matt Chotin [EMAIL PROTECTED] wrote:
 Validators in Flex 2 are faceless objects which means you can store them
 in an array and then go through that array and call validate on each
 one.  In 1.5 we have a validateStructure method, but that's been
 deprecated to give everyone more control over the validator
 infrastructure.

 So store your validators in an array, and then in the submit button go
 through and call validate() on each.  If all of the return values have a
 results property with length of 0 you're good to go, if any have a
 non-zero length it was invalid.

 Matt

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Raymond Camden
 Sent: Saturday, December 17, 2005 6:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flex2 and simple form question

 So I've got a form. Each field has a validator. These work fine if you
 click in the field and then leave it w/o entering data. I've marked
 the form items required, and a nice little * shows up. In general,
 everything works, but you can still hit the submit button and none of
 the validators run.

 It seems like there should be a simple way to say, on submit - check
 each field and run the validator, but I can' t seem to find an example
 on that.

 --
 ===
 Raymond Camden, Director of Development for Mindseye, Inc
 (www.mindseye.com)

 Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda



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









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









--
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] File - flexcodersFAQ.txt

2005-12-18 Thread flexcoders

 Flexcoders Frequently Asked Questions
  Last Updated: 30th May 2005

 Contributors:

Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper,
 Peter Farland, Abdul Qabiz, Tracy Spratt, Jesse Warden, Dan Harfleet,
  Manish Jethani, Dimitrios Gianninas


1. What is Flexcoders?
2. How does Flexcoders relate to the Macromedia Flex Forum on
   www.macromedia.com?
3. Who posts to Flexcoders?
4. Resources to check before asking a question
5. Guidelines for effective question-asking
6. FAQ


1. What is Flexcoders?

Flexcoders is a forum where developers can ask questions about Flex,
FlexBuilder, and Flex-related technologies (like Cairngorm, FlexUnit and
SynergyFLEX).  The community is made up of everyday Flex developers as
well as Macromedia employees. However, this is not an official
Macromedia-sponsored forum, it is actually moderated by the folks at
iteration::two, a consultancy responsible for authoring the book
Developing Rich Internet Applications with Macromedia Flex.


2. How does Flexcoders relate to the Macromedia Flex Forum on
   www.macromedia.com?

Both the Macromedia Flex Forum and Flexcoders provide help on issues
related to Flex, and neither is an official support mechanism.  Some
people monitor both forums, some only one.  It is up to you to decide
where you might have a better experience getting a question answered and
being able to subsequently help others.


3. Who posts to Flexcoders?

Everyone who has a question or an answer.  Many members of the Flex
development team read and respond to Flexcoders as well as other
Macromedia folks who monitor the community.

Some recurring Macromedia folks are:

David Mendels: EVP and GM, highest-level executive in charge of Flex.
Lucian Beebe: Sr. Product Manager, Flex. Matt Chotin, Manish Jethani,
Abdul Qabiz, Gordon Smith, Peter Farland and many more: Engineers on
Flex.

Active community members include:

Steven Webster (Technical Director at iteration::two and co-author of
Developing Rich Clients with Macromedia Flex), Alistair McLeod
(Development Director at iteration::two and co-author of Developing Rich
Clients with Macromedia Flex), Jesse Warden (JesterXL - Flash badass
playing with Flex), Tracy Spratt (long-time member, holder of all
knowledge related to 32K limits), Jeff Steiner (maintainer of
www.flexauthority.com), Tariq Ahmed (maintainer of www.cflex.net), Jimmy
Gianninas (long-time member, developer at Optimal Payments).

And so many more!


4. Resources to check before asking a question

The Flexcoders Mail Archive (better searching than YahooGroups):
http://www.mail-archive.com/flexcoders%40yahoogroups.com

http://www.cflex.net/showfaq.cfm
http://livedocs.macromedia.com/flex/15/asdocs_en/index.html
http://www.macromedia.com/go/flex15_java_livedocs
http://www.macromedia.com/cfusion/knowledgebase/index.cfm
http://www.cflex.net http://www.flexauthority.com
http://www.macromedia.com/devnet/flex http://coenraets.com
http://weblogs.macromedia.com/mxna/ http://www.google.com 

The Book Developing Rich Clients with Macromedia Flex (check your
favorite bookstore)



5. Guidelines to effective question-asking

Include a useful subject; this will help people find their own questions
and answers later.

Explain what you are trying to accomplish.

Explain the error (include compilation errors or a description of the
runtime behavior).

Be prepared to break your problem down into a simpler scenario in case
someone wants to try to debug the code themselves.  Remember, private
web services are inaccessible; you may need to create some dummy data to
emulate problems.

Phrases to avoid:

URGENT (we all have deadlines, no one is intentionally delaying a
response to you)

Please send code (this is very frustrating to read as it implies you
aren't interested in learning anything on your own.  Where code is
appropriate you can expect someone to provide it, but in many cases you
will learn more by doing it on your own with appropriate guidance.  It
may be that you're on a deadline and just want to finish, but many of
those who respond regularly would prefer to teach you to fish so that
you can answer your own questions next time and even help out others).


6. Mini-FAQ



Q: Can I mail Matt, Manish, Abdul, Pete, Gordon, iteration::two, or
anyone else for that matter off-line with my question?

A: Please don't!  If someone is capable of answering your question on-
list please believe that it will be done.  Everyone on the list has
full-time jobs doing their own work and often answer flexcoders on their
own time; mailing them off- list doesn’t endear you to them.  If no one
answers on-list in a reasonable amount of time (24 hours) you can try to
rephrase the question and perhaps include more detail (including a
version of the problem that someone can run without doing any setup on
their own 

RE: [flexcoders] flex2 and simple form question

2005-12-18 Thread Matt Chotin
I've forwarded this thread off to people who worked on validators for
2.0 so we'll see if I'm forgetting something and if not we can file some
enhancement requests.  Feel free to also file at
http://www.macromedia.com/go/wish.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Zach Stepek
Sent: Sunday, December 18, 2005 10:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex2 and simple form question

I agree with Ray that it seems odd with everything else that Flex makes 
it easy to do that validation is as complex as it is, even though it's 
not _that_ complex.  Personally, I think that the best thing to do would

be to offer the option of doing things either way.  That way, if you 
want to do more complex validations on a field, you can write your own 
custom validation function that parses the array, but if you just want 
to do simple validation, you could set a property, maybe 
autoValidate=true, on the mx:Form or the mx:Button control that would 
do simple validation automatically.  Honestly, I think things like Drag 
and Drop and History are considerably harder to hand-code, and we have 
managers for those that make it considerably easier.

- Zach

Raymond Camden wrote:
 Matt, I can understand the desire to give more control to users - but
 considering how easy everything else is, it seems a bit odd that there
 isn't a simpler way to do validation. It's like everything was done
 for us (auto marking of required fields with *, nice validators out of
 the box) except the final piece (auto validate on submit). I'm not
 saying it makes it useless per se it was just surprising that
 everything else was done _but_ that.


 On 12/17/05, Matt Chotin [EMAIL PROTECTED] wrote:
  Validators in Flex 2 are faceless objects which means you can store
them
  in an array and then go through that array and call validate on each
  one.  In 1.5 we have a validateStructure method, but that's been
  deprecated to give everyone more control over the validator
  infrastructure.
 
  So store your validators in an array, and then in the submit button
go
  through and call validate() on each.  If all of the return values
have a
  results property with length of 0 you're good to go, if any have a
  non-zero length it was invalid.
 
  Matt
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
  Behalf Of Raymond Camden
  Sent: Saturday, December 17, 2005 6:36 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] flex2 and simple form question
 
  So I've got a form. Each field has a validator. These work fine if
you
  click in the field and then leave it w/o entering data. I've marked
  the form items required, and a nice little * shows up. In general,
  everything works, but you can still hit the submit button and none
of
  the validators run.
 
  It seems like there should be a simple way to say, on submit - check
  each field and run the validator, but I can' t seem to find an
example
  on that.
 
  --
 
===
  Raymond Camden, Director of Development for Mindseye, Inc
  (www.mindseye.com)
 
  Member of Team Macromedia 
 (http://www.macromedia.com/go/teammacromedia) 
 http://www.macromedia.com/go/teammacromedia%29
 
  Email: [EMAIL PROTECTED]
  Blog : ray.camdenfamily.com
  Yahoo IM : cfjedimaster
 
  My ally is the Force, and a powerful ally it is. - Yoda
 
 
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 


 --

===
 Raymond Camden, Director of Development for Mindseye, Inc 
 (www.mindseye.com)

 Member of Team Macromedia 
 (http://www.macromedia.com/go/teammacromedia) 
 http://www.macromedia.com/go/teammacromedia%29

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda


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




 YAHOO! GROUPS LINKS

 *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders on the web.

 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]

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




RE: [flexcoders] flex2 and simple form question

2005-12-18 Thread Dekayd Media Inc.
I may have spoken too soon on that one.

It was morning so I wasn't really paying close attention and I missed the 2
after flex.

I was referring to Flex 1.


Sorry dude.





-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Raymond Camden
Sent: Sunday, December 18, 2005 10:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex2 and simple form question

Ah, thats what I wanted to find - an example. Thanks.

On 12/17/05, Dekayd Media Inc. [EMAIL PROTECTED] wrote:
 There is a very simple way to do it.

 There is a really good example of it in the Flex explorer.






 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Raymond Camden
 Sent: Saturday, December 17, 2005 9:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flex2 and simple form question

 So I've got a form. Each field has a validator. These work fine if you
 click in the field and then leave it w/o entering data. I've marked
 the form items required, and a nice little * shows up. In general,
 everything works, but you can still hit the submit button and none of
 the validators run.

 It seems like there should be a simple way to say, on submit - check
 each field and run the validator, but I can' t seem to find an example
 on that.

 --
 ===
 Raymond Camden, Director of Development for Mindseye, Inc
(www.mindseye.com)

 Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda



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









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









--
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda



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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Data Grid headers

2005-12-18 Thread yaagcur
Thanks Clint. I should have mentioned it was for 2.0 that I wanted
the answer anyways so will be interested to see what you come up with

I see from the flex2 examples that they have taken on board the column
locking that Steve Webster hacked for 1.5. Hopefully thsy can upgrade
for this also by the time the final 2.0 comes out. Seems strange that
what for HTML would just be one more th line is such a lot of work
in Flex. Also that alignment cannot vary between a column header and
its contents

Their samples also say they cover column header wrapping but their
example (and my experiments) only wraps the cell data  


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

 And o ya...  the most important part... the data.
 
data snipped as so big - see thread for details
 
 
 On 12/17/05, Clint Modien [EMAIL PROTECTED] wrote:
 
  Did this the other day... here's some code... with a warning
though.  The
  performance is horrible on my 1.7 GHz Pentium M laptop running the
7.xdebug player. It takes about 6 seconds to load what I would call a
very
  small subset of data (45KB).  Maybe someone from MM can have a
look at it
  and see if it can be optimized. Most of what I did was inspired by
the grid
  that Steven Webster had on his blog here:
 
  http://www.richinternetapps.com/archives/000101.html
 
  I'm in the process of converting it to a Flex 2.0 app.  *i hope it
runs
  faster there* I'll post that too once I'm finished.
 
  Here's the example...
 
   App.mxml ---
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx= http://www.macromedia.com/2003/mxml;
  creationComplete=this_creationComplete()
themeColor=haloBlue
  backgroundColor=#707070 xmlns=* 
  mx:Panel title=Panel1 label=Panel1 height=100%
width=100% 
  mx:Button id=loadTestDataButton label=Load
  click=loadTestDataButton_click() /
  MultiGrid height=100% width=100% dataProvider={
  ModelLocator.rootObj} /
  /mx:Panel
  mx:HTTPService id=testService showBusyCursor=true
  useProxy=false
  url=@ContextRoot()/test2.xml resultFormat=object
  result=ModelLocator.rootObj = event.result.root; /
  mx:Script source=App.as /
  /mx:Application
 
   MutiGrid.mxml ---
 
  ?xml version=1.0 encoding=utf-8?
  mx:HDividedBox xmlns:mx=http://www.macromedia.com/2003/mxml;
  marginTop=0 marginBottom=0
  mx:VBox height=100% width=33% marginTop=20
  mx:DataGrid id=leftGrid dataProvider={ModelLocator.data}
  height=100% width=100%
  selectedIndex={lowerGrid.selectedIndex} hScrollPolicy=on
  vScrollPolicy=off
  vPosition={lowerGrid.vPosition}
  mx:columns
  mx:Array
  mx:DataGridColumn headerText=Name
columnName=name
  /
  mx:DataGridColumn headerText=Group
  columnName=group /
  /mx:Array
  /mx:columns
  /mx:DataGrid
  /mx:VBox
  mx:Canvas height=100% width=66% verticalGap=-1
  mx:DataGrid id=upperGrid hPosition={lowerGrid.hPosition}
  textAlign=center
  hScrollPolicy=on  height=40 width=100%
  vScrollPolicy=on  /
  mx:DataGrid id=lowerGrid dataProvider={ModelLocator.data}
  height=100% width=100%
  vScrollPolicy=on hScrollPolicy=on y=19
selectedIndex={
  leftGrid.selectedIndex} /
  /mx:Canvas
  mx:Script source=MultiGrid.as/
  /mx:HDividedBox
 
   MutiGrid.as ---
 
  import mx.controls.gridclasses.DataGridColumn;
 
  public function set dataProvider(val:Object)
  {
  //make sure we're getting array's
  var data=
mx.utils.ArrayUtil.toArray(val.GridDataSet.GridData);
  var columns = mx.utils.ArrayUtil.toArray(val.Columns.Column);
  //format the grids first
  renderColumns(columns);
  //then bind the child props to the ModelLocator
  ModelLocator.data = data;
  }
 
  private function renderColumns(columns:Array)
  {
  upperGrid.removeAllColumns();
  lowerGrid.removeAllColumns();
  var columnNumber = 0;
  for (var i = 0; i  columns.length; i++)
  {
  // add columns to the uppergrid
  var columnWidth = 100;
  var column = columns[i];
  var subColumns:Array = mx.utils.ArrayUtil.toArray (
  column.SubColumn);
  var dc = new DataGridColumn();
  dc.headerText = column.ColumnName;
  dc.width = subColumns.length * columnWidth;
  dc.colNum = i;
  upperGrid.addColumn(dc);
  // add columns to the lower grid
  for (var j = 0; j  subColumns.length; j++)
  {
  var subColumn = subColumns[j];
  if(subColumn == undefined) subColumn = ;
  var dc2 = new DataGridColumn();
  dc2.colNum = 

[flexcoders] Why is editable=true necessary to allow cellPress events (2.0)

2005-12-18 Thread yaagcur
Or am I mistaken?

No big deal but what is the common functionality







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] HTTPService and XML

2005-12-18 Thread Jeff Houser
 ( I also posted this on the labs forums at Macromedia.com, so I
apologize if this is a cross post for anyone )

 I'm using Flex Builder 2 (Alpha, of course) and am having trouble
retrieving / accessing XML data.

 I'm completely new to Flex, but know web programming well. I
succesfully implemented the quick start demos without any problem. My
long term goal is to populate a combobox from an XML document. I know
there is another post on the lab forum on that, but I haven't gotten
far enough to be able to apply that post.

I set up this quick demo to demonstrate the problem:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
mx:HTTPService id=category
url=http://www.jeffryhouser.com/flex/getcategories.cfm;
useProxy=false/

mx:Canvas width=100% height=100%
mx:Label x=12 y=24 text={category.result} width=253/

/mx:Canvas
/mx:Application

 The label is blank. I would have expected it to return something like
object Object, which makes me think that the problem is in
retrieving the data. If I add a similar label to the BlogReader quick
start code, object Object is returned, like this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=* initialize=feedRequest.send() 
mx:HTTPService id=feedRequest
url=http://www.jeffryhouser.com/rss.cfm?mode=short; useProxy=false/
mx:Canvas width=100% height=100%
mx:Label x=20 y=10 text={feedRequest.result.rss.channel.title} /
mx:Label x=331 y=9 text={feedRequest.result} width=330/
mx:DataGrid x=20 y=40 id=dgPosts width=400
dataProvider={feedRequest.result.rss.channel.item}
mx:columns
mx:DataGridColumn headerText=Date columnName=pubDate width=150 /
mx:DataGridColumn headerText=Posts columnName=title/
/mx:columns
/mx:DataGrid
mx:TextArea x=20 y=204 width=400
htmlText={dgPosts.selectedItem.description} height=200/
mx:Link x=24 y=405 label=Read Full Post height=20
click=getURL(dgPosts.selectedItem.link); /
/mx:Canvas
/mx:Application


Now, If I take my first example and replace the HTTPService URL to
point to an RSS feed; nothing is returned; here is that code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
mx:HTTPService id=category
url=http://www.jeffryhouser.com/rss.cfm?mode=short; useProxy=false/
mx:Canvas width=100% height=100%
mx:Label x=12 y=24 text={category.result} width=253/
/mx:Canvas
/mx:Application

I do not see any differences, in technique, between the BlogReader and
the Test code; so I'm not sure why nothing appears to be getting returned.

Any thoughts or assistance would be welcome. 





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] dateChooser (2.0) start date

2005-12-18 Thread yaagcur
How would I go about extending back the earliest date the calendar can
access?
The default just goes back to 1900





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] DataGrid rowcount (2.0)

2005-12-18 Thread yaagcur
I have a datagrid which I want populated by data which I know has 20
records

If I set rowcount=20 , I get 19 showing with a scroll bar.
Scrolling down gives me the final row of data plus another empty row

Setting vScrollPolicy=off just gives 19 rows

Am I doing something wrong or is this a bug?








 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Failed to parse intrinsics for __Packages.mx.controls.TextArea

2005-12-18 Thread Dan
Dear all,

We are running our Flex1.5 application on Tomcat and it works and
compile perfectly. However the log of the tomcat shows the following
errors 

ERROR Swc Type: Failed to parse intrinsics for
__Packages.mx.controls.TextArea: Missing token on line 1: unexpected
end of statement

Anyone has any idea and can help? Or ever meet this situation before?

Dan






 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] How do you make an array of images

2005-12-18 Thread nostra72




Do you make an array of Objects or do you make an array of mx:image






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.