Re: [flexcoders] Flex validator in action script

2010-08-16 Thread Geoffrey Moussiere
Hey,

I'm not sure but you should definately have an eye on BindigUtils.

Adnan a écrit :
>
> Hello,
>
> How can I represent the following validator in action script;
>
>  required="true"
> source="{myText}"
> />
> 
>
> I am starting with this;
>
> var textInput:TextInput = new TextInput();
> textInput.id = "myText";
>
> var val:Validator = new Validator();
> val.source = ;// problem how to define it to be bindable ?
> val.required = true;
>
> Any ideas?
>
> 





--
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:
flexcoders-dig...@yahoogroups.com 
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] Re: "Bookmark no longer valid" when moving items in AdvancedDataGrid

2010-07-30 Thread Geoffrey Moussiere
Hi,

I had a bookmark error once. I was removing item in a ArrawyCollection 
during a for each loop, something like that :

for each(var myEntry:Entry in _entries)
{
...
_entries.removeItemAt(_entries.getItemIndex(myEntry));
...
}

Maybe you have something similar somewhere.


Matthew a écrit :
>
> Does anyone have any ideas on how I can resolve or troubleshoot further?
>
> 





--
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:
flexcoders-dig...@yahoogroups.com 
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/



[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-30 Thread Geoffrey
Hi Alex,

Fair enough. I submitted it (I think), although I got this message:

"You have successfully created the issue (FB-23715), however you do not have 
the permission to view the created issue.

This is probably because you entered a bug report that details a potential 
security vulnerability - or is related to a non-public component in a 
commercial product."

I do not feel experienced enough to know which categories to submit the bug 
under, but I included source code to reproduce the bug.

Alex, thank you for your continual help to the community.

--Geoff

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Please file a bug with a small test case.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Friday, October 30, 2009 1:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: SharedObject problem/bug? Cannot store a subclass 
> of ByteArray.
> 
> 
> 
> 
> Hi Sean,
> 
> Thank you for the link; still no luck. I had tried implementing 
> IExternalizable before, but after reading your article I decided to try 
> again. I have figured out a little more:
> 
> --I can extend, say, a Sprite, and it works fine.
> --When I save the SharedObject, if I use the Sprite-based class, there are 
> two calls to writeExternal(). But for the ByteArray-based class, there is no 
> call to writeExternal().
> --When I load the SO, the constructor for the Sprite-based class gets called. 
> The constructor for the ByteArray-based class does not get called.
> 
> I suspect that Adobe's serialization/deserialization code has something that 
> checks for type ByteArray (e.g., if (x is ByteArray)). On the write-side, it 
> would then call something like writeBytes(), and only call writeExternal() if 
> not a ByteArray. On the read-side, it may do something similar when type 
> casting.
> 
> At this point, I will probably try a workaround for my situation. (E.g., 
> encapsulating the ByteArray) But if anyone gets this to work, I would be 
> interested to know.
> 
> --Geoff
> 
> --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
> "seanmcmonahan"  wrote:
> >
> > I'm having a similar problem with a subclass of Dictionary. Unfortunately I 
> > haven't has an opportunity to try this fix yet, but maybe you'll find it 
> > useful: 
> > http://stackoverflow.com/questions/850466/properly-serializing-flash-utils-dictionary-to-a-sharedobject
> >
> > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
> > "Geoffrey"  wrote:
> > >
> > >
> > >
> > > Muzak, thank you for your help. However, I have already tried 
> > > [RemoteClass] (which I mentioned in the original post). I also looked at 
> > > the link that you provided and decided to try more combinations, but none 
> > > worked. I have tried [RemoteClass] with and w/o [Bindable], 
> > > [RemoteClass(alias="ByteArrayPlus")], and I made sure to use my class 
> > > beforehand. In all cases I can get a custom class to retain its type, but 
> > > ByteArrayPlus always gets read as ByteArray from the SharedObject.
> > >
> > > I believe this may be a problem peculiar to ByteArray, but I don't know 
> > > exactly why that would be so.
> > >
> > > Again, the challenge is this: make any class that extends ByteArray, 
> > > write it to a SharedObject (to the disk), read it from the SharedObject, 
> > > and have it retain its class. I know it sounds straightforward, but I 
> > > cannot get it to work.
> > >
> > > --Geoff
> > >
> > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
> > > "Muzak"  wrote:
> > > >
> > > > Add a RemoteClass metadata tag to the custom class:
> > > >
> > > > Example at the bottom of the article
> > > > http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Geoffrey" 
> > > > To: mailto:flexcoders%40yahoogroups.com>>
> > > > Sent: Wednesday, October 28, 2009 12:45 PM
> > > > Subject: [flexcoders] SharedObject problem/bug? Cannot store a subclass 
> > > > of ByteArray.
> > > >
> > > >
> > > > > Hi,
> > > > >

[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-30 Thread Geoffrey


Hi Sean,

Thank you for the link; still no luck. I had tried implementing IExternalizable 
before, but after reading your article I decided to try again. I have figured 
out a little more:

--I can extend, say, a Sprite, and it works fine.
--When I save the SharedObject, if I use the Sprite-based class, there are two 
calls to writeExternal(). But for the ByteArray-based class, there is no call 
to writeExternal().
--When I load the SO, the constructor for the Sprite-based class gets called. 
The constructor for the ByteArray-based class does not get called.

I suspect that Adobe's serialization/deserialization code has something that 
checks for type ByteArray (e.g., if (x is ByteArray)). On the write-side, it 
would then call something like writeBytes(), and only call writeExternal() if 
not a ByteArray. On the read-side, it may do something similar when type 
casting.

At this point, I will probably try a workaround for my situation. (E.g., 
encapsulating the ByteArray) But if anyone gets this to work, I would be 
interested to know.

--Geoff

--- In flexcoders@yahoogroups.com, "seanmcmonahan"  wrote:
>
> I'm having a similar problem with a subclass of Dictionary.  Unfortunately I 
> haven't has an opportunity to try this fix yet, but maybe you'll find it 
> useful: 
> http://stackoverflow.com/questions/850466/properly-serializing-flash-utils-dictionary-to-a-sharedobject
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > 
> > 
> > Muzak, thank you for your help. However, I have already tried [RemoteClass] 
> > (which I mentioned in the original post). I also looked at the link that 
> > you provided and decided to try more combinations, but none worked. I have 
> > tried [RemoteClass] with and w/o [Bindable], 
> > [RemoteClass(alias="ByteArrayPlus")], and I made sure to use my class 
> > beforehand. In all cases I can get a custom class to retain its type, but 
> > ByteArrayPlus always gets read as ByteArray from the SharedObject.
> > 
> > I believe this may be a problem peculiar to ByteArray, but I don't know 
> > exactly why that would be so. 
> > 
> > Again, the challenge is this: make any class that extends ByteArray, write 
> > it to a SharedObject (to the disk), read it from the SharedObject, and have 
> > it retain its class. I know it sounds straightforward, but I cannot get it 
> > to work.
> > 
> > --Geoff
> > 
> > --- In flexcoders@yahoogroups.com, "Muzak"  wrote:
> > >
> > > Add a RemoteClass metadata tag to the custom class:
> > > 
> > > Example at the bottom of the article
> > > http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html
> > > 
> > > 
> > > - Original Message - 
> > > From: "Geoffrey" 
> > > To: 
> > > Sent: Wednesday, October 28, 2009 12:45 PM
> > > Subject: [flexcoders] SharedObject problem/bug? Cannot store a subclass 
> > > of ByteArray.
> > > 
> > > 
> > > > Hi,
> > > >
> > > > I have a subclass of ByteArray (let's call it ByteArrayPlus), which I 
> > > > want to write to a SharedObject. I can store it fine, but 
> > > > when I read it back, it says it's of type ByteArray, not ByteArrayPlus. 
> > > > Does anyone have an idea what may be wrong? Has anyone 
> > > > gotten this to work?
> > > >
> > > > FYI, I am already using registerClassAlias(). And it works fine with a 
> > > > custom class, and with a custom class extending another 
> > > > custom class. I also tried implementing IExternalizable, but that did 
> > > > not help. I also tried [RemoteClass] and 
> > > > [RemoteClass(alias="ByteArrayPlus")].
> > > >
> > > > Also, ByteArrayPlus is really simple: I only added a String (name) to 
> > > > it.
> > > >
> > > > This is my first post to FlexCoders.
> > > >
> > > > Any help appreciated.
> > > >
> > > > --Geoff
> > > >
> > >
> >
>




[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-29 Thread Geoffrey


Muzak, thank you for your help. However, I have already tried [RemoteClass] 
(which I mentioned in the original post). I also looked at the link that you 
provided and decided to try more combinations, but none worked. I have tried 
[RemoteClass] with and w/o [Bindable], [RemoteClass(alias="ByteArrayPlus")], 
and I made sure to use my class beforehand. In all cases I can get a custom 
class to retain its type, but ByteArrayPlus always gets read as ByteArray from 
the SharedObject.

I believe this may be a problem peculiar to ByteArray, but I don't know exactly 
why that would be so. 

Again, the challenge is this: make any class that extends ByteArray, write it 
to a SharedObject (to the disk), read it from the SharedObject, and have it 
retain its class. I know it sounds straightforward, but I cannot get it to work.

--Geoff

--- In flexcoders@yahoogroups.com, "Muzak"  wrote:
>
> Add a RemoteClass metadata tag to the custom class:
> 
> Example at the bottom of the article
> http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html
> 
> 
> - Original Message - 
> From: "Geoffrey" 
> To: 
> Sent: Wednesday, October 28, 2009 12:45 PM
> Subject: [flexcoders] SharedObject problem/bug? Cannot store a subclass of 
> ByteArray.
> 
> 
> > Hi,
> >
> > I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want 
> > to write to a SharedObject. I can store it fine, but 
> > when I read it back, it says it's of type ByteArray, not ByteArrayPlus. 
> > Does anyone have an idea what may be wrong? Has anyone 
> > gotten this to work?
> >
> > FYI, I am already using registerClassAlias(). And it works fine with a 
> > custom class, and with a custom class extending another 
> > custom class. I also tried implementing IExternalizable, but that did not 
> > help. I also tried [RemoteClass] and 
> > [RemoteClass(alias="ByteArrayPlus")].
> >
> > Also, ByteArrayPlus is really simple: I only added a String (name) to it.
> >
> > This is my first post to FlexCoders.
> >
> > Any help appreciated.
> >
> > --Geoff
> >
>




[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-28 Thread Geoffrey


I forgot to mention what versions I am using: Flex SDK 3.4 (via Flex Builder 
3), targeting Flash Player 10.

--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> Hi,
> 
> I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want to 
> write to a SharedObject. I can store it fine, but when I read it back, it 
> says it's of type ByteArray, not ByteArrayPlus. Does anyone have an idea what 
> may be wrong? Has anyone gotten this to work?
> 
> FYI, I am already using registerClassAlias(). And it works fine with a custom 
> class, and with a custom class extending another custom class. I also tried 
> implementing IExternalizable, but that did not help. I also tried 
> [RemoteClass] and [RemoteClass(alias="ByteArrayPlus")].
> 
> Also, ByteArrayPlus is really simple: I only added a String (name) to it.
> 
> This is my first post to FlexCoders. 
> 
> Any help appreciated.
> 
> --Geoff
>




[flexcoders] SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-28 Thread Geoffrey
Hi,

I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want to 
write to a SharedObject. I can store it fine, but when I read it back, it says 
it's of type ByteArray, not ByteArrayPlus. Does anyone have an idea what may be 
wrong? Has anyone gotten this to work?

FYI, I am already using registerClassAlias(). And it works fine with a custom 
class, and with a custom class extending another custom class. I also tried 
implementing IExternalizable, but that did not help. I also tried [RemoteClass] 
and [RemoteClass(alias="ByteArrayPlus")].

Also, ByteArrayPlus is really simple: I only added a String (name) to it.

This is my first post to FlexCoders. 

Any help appreciated.

--Geoff



[flexcoders] Re: any tool can create Java entities from as 3 VOs?

2009-08-13 Thread Geoffrey
This is the plugin I used.  
http://docs.codehaus.org/display/XDOCLET/Actionscript+plugin

Maybe someone made a plugin that goes the other way, AS to Java.

Geoff
--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> I've used XDoclet to create VOs from Java Beans, so I'd imagine the process 
> can work in reverse.  Here's the xml XDoclet uses:
> 
> 
>  value="C:/eclipse/xdoclet-plugins-dist-1.0.4"/>
> 
> 
> 
> 
> 
>  location="${xdoclet.plugin.install.dir}/lib/xdoclet-plugin-actionscript-1.0.4.jar"/>
> 
> 
>  classpathref="xdoclet.task.classpath"/>
> 
> 
> 
> 
>  dir="C:/workspace/beans/target/generated-sources/xjc/com/gdais/emtk/beans">
> 
>
> 
> 
>  destdir="C:/workspace/flex-value-objects/generated-VOs"/>
> 
> 
> 
> 
> HTH,
> Geoff
> 
> --- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
> >
> > Hi
> > 
> > I have build many AS3 VOs (about 150),may I use some tool to create java 
> > VOs from the AS 3 VOs.
> > 
> > 
> > 
> > Thanks
> > 
> > 
> > 
> > Mark
> > 
> > (PS:VO:Value Object(Properties and get/set mothods))
> >
>




[flexcoders] Re: any tool can create Java entities from as 3 VOs?

2009-08-13 Thread Geoffrey
I've used XDoclet to create VOs from Java Beans, so I'd imagine the process can 
work in reverse.  Here's the xml XDoclet uses:


















 







HTH,
Geoff

--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi
> 
> I have build many AS3 VOs (about 150),may I use some tool to create java VOs 
> from the AS 3 VOs.
> 
> 
> 
> Thanks
> 
> 
> 
> Mark
> 
> (PS:VO:Value Object(Properties and get/set mothods))
>




[flexcoders] Re: RegExpValidator Not working with code-behind

2009-08-13 Thread Geoffrey
Didn't seem to help.

I changed the String to a RegExp, escaped and didn't escape the {} characters, 
and also tried with and without the [Bindable] metadata tag.  As long as the 
regular expression is in the actionscript file, it just doesn't work properly.  
Actually, in this instance, nothing ever validates as a valid IP address.

Geoff

--- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>
> Geoff,
>Try:
> 
> public var validIPExpression:RegExp =
> /^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$/;
> 
> instead.
> 
> Could be because by directly specifying the expression, the MXML->AS
> parser correctly decides to treat it as a RegExp. But when directly
> binding to the value, binding sees it just as a String.
> 
> HTH,
>Ian
> 
> On Thu, Aug 13, 2009 at 5:17 PM, Geoffrey wrote:
> >
> >
> > We use the code-behind technique to attach AS to MXML. Doing this has caused
> > an interesting issue with RegExpValidator. If the regular expression is
> > defined in the AS file and contains a quantifier, it causes validation to
> > act funky.
> >
> > In the following example, if you type about 20 zeroes into the IP field it
> > goes from invalid, to valid, and back to invalid. Obviously it should be
> > invalid after the first zero is typed and stay that way unless a proper IP
> > is entered. However, if you take the same regExp string and put it in the
> > MXML file it works as expected. Note that escaping or not escaping the { or
> > } characters while the string is in the AS file has no effect on the
> > validation.
> >
> > Test.mxml
> > -
> > http://www.adobe.com/2006/mxml";
> > xmlns:local="*"
> > minWidth="800" minHeight="600">
> >
> > 
> >
> > 
> >
> > MyComp.mxml
> > ---
> > 
> > http://www.adobe.com/2006/mxml";
> > xmlns:custom="*">
> >
> >  > label="IP Address: "
> > required="true">
> > 
> > 
> >
> >  > expression="{validIPExpression}"
> > source="{tiIPAddress}"
> > property="text"
> > trigger="{tiIPAddress}"
> > triggerEvent="change"
> > noMatchError="Invalid IP Address Format."/>
> >
> > 
> >
> > 
> >
> > MyCompScript.as
> > ---
> > package
> > {
> > import mx.containers.Form;
> >
> > public class MyCompScript extends Form
> > {
> > [Bindable]
> > public var validIPExpression:String =
> > "^(([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.){3}([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])$";
> > //public var validIPExpression:String =
> > "^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$";
> > // Neither of the above work
> >
> > public function MyCompScript()
> > {
> > super();
> > }
> > }
> > }
> >
> > Does this seem like a bug, or just a limitation introduced by using the
> > code-behind technique?
> >
> > Thanks,
> > Geoff
> >
> > p.s. Don't know what code-behind is?
> > http://learn.adobe.com/wiki/display/Flex/Code+Behind
> >
> >
>




[flexcoders] RegExpValidator Not working with code-behind

2009-08-13 Thread Geoffrey
We use the code-behind technique to attach AS to MXML.  Doing this has caused 
an interesting issue with RegExpValidator.  If the regular expression is 
defined in the AS file and contains a quantifier, it causes validation to act 
funky.

In the following example, if you type about 20 zeroes into the IP field it goes 
from invalid, to valid, and back to invalid.  Obviously it should be invalid 
after the first zero is typed and stay that way unless a proper IP is entered.  
However, if you take the same regExp string and put it in the MXML file it 
works as expected.  Note that escaping or not escaping the { or } characters 
while the string is in the AS file has no effect on the validation.


Test.mxml
-
http://www.adobe.com/2006/mxml";
xmlns:local="*"
minWidth="800" minHeight="600">





MyComp.mxml
---

http://www.adobe.com/2006/mxml";
xmlns:custom="*">


   








MyCompScript.as
---
package
{
import mx.containers.Form;

public class MyCompScript extends Form
{
[Bindable]
public var validIPExpression:String = 
"^(([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.){3}([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])$";
//public var validIPExpression:String = 
"^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$";
// Neither of the above work

public function MyCompScript()
{
super();
}
}
}

Does this seem like a bug, or just a limitation introduced by using the 
code-behind technique?

Thanks,
 Geoff

p.s.  Don't know what code-behind is?  
http://learn.adobe.com/wiki/display/Flex/Code+Behind



[flexcoders] Re: Instantiation of State Objects

2009-08-10 Thread Geoffrey
I'm getting a clearer picture of why I'm seeing state-related issue.

In my setup, state B is a custom component.  This component has event listeners 
for creationComplete and remove.  I noticed that going from state A to state B, 
the creationComplete handler is called.  however, going back to state A, the 
remove event handler is called.  This handler does various things to cleanup 
after itself and one of them is 'this.removeAllChildren()'.  When I go back to 
state B, the UI is blank and the creationComplete handler is not called.

This all seems to make sense given the Flex 3 state model, except for the 
calling of the remove handler.  Does removing it from the displayList generate 
the remove event?  If that's the case, then is seems like it's intention is to 
trash that state, allowing for garbage collection.  It should then create a new 
instance of state B when it's accessed the second time.

Perhaps we're using the remove event incorrectly.  We use it to clean up.  This 
could involve resetting a  model, removing event handlers, closing stray 
popups, removing all children, etc.  Since this is being called, all of the 
contents of state B are being removed, but are never recreated since it doesn't 
re-instantiate the component in state B.

Any ideas?

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> Great, that's exactly what I wanted to know.  For Flex 3, is there any way to 
> free the children for garbage collection, hack or otherwise?
> 
> --- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
> >
> > In the Flex 3 states model, if you start in state A, go to state B which 
> > creates and adds a child, and return to state A, the child is removed from 
> > the display list but kept around. When you return to state B, it doesn't 
> > have to be recreated and can just be re-added.
> > 
> > In the Flex 4 states model, the default behavior is the same, but you can 
> > use destructon policies to say that the child should not only be removed 
> > from the display list but also freed for garbage collection.
> > 
> > Gordon Smith
> > Adobe Flex SDK Team
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Geoffrey
> > Sent: Thursday, August 06, 2009 2:43 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Instantiation of State Objects
> > 
> > 
> > 
> > Are the objects for a state recreated every time a state is entered, or if 
> > the object was created once, is it reused?
> > 
> > Basically, I want to know if I swap between states, are the objects defined 
> > by AddChild new instances every time I enter that state.
> >
>




[flexcoders] Re: Instantiation of State Objects

2009-08-07 Thread Geoffrey
Great, that's exactly what I wanted to know.  For Flex 3, is there any way to 
free the children for garbage collection, hack or otherwise?

--- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
>
> In the Flex 3 states model, if you start in state A, go to state B which 
> creates and adds a child, and return to state A, the child is removed from 
> the display list but kept around. When you return to state B, it doesn't have 
> to be recreated and can just be re-added.
> 
> In the Flex 4 states model, the default behavior is the same, but you can use 
> destructon policies to say that the child should not only be removed from the 
> display list but also freed for garbage collection.
> 
> Gordon Smith
> Adobe Flex SDK Team
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, August 06, 2009 2:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Instantiation of State Objects
> 
> 
> 
> Are the objects for a state recreated every time a state is entered, or if 
> the object was created once, is it reused?
> 
> Basically, I want to know if I swap between states, are the objects defined 
> by AddChild new instances every time I enter that state.
>




[flexcoders] Instantiation of State Objects

2009-08-06 Thread Geoffrey
Are the objects for a state recreated every time a state is entered, or if the 
object was created once, is it reused?

Basically, I want to know if I swap between states, are the objects defined by 
AddChild new instances every time I enter that state.



[flexcoders] Re: Eclipse Crashing

2009-05-14 Thread Geoffrey
So I tried a few things and it seems a little better now.

1. I combined a couple projects, so now I have one main project, and 25 library 
projects.

2. I removed as many unneeded Flex Library SWCs from the SDK entry in the 
Library Path tab of each project.  This included all the automation stuff for 
every project, and rpc, datavisualization, utilities, and fds stuff for most of 
the other projects.

3. I updated the eclipse.ini to the following:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1G
-Xmx1G
-XX:PermSize=128M
-XX:MaxPermSize=256M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true

* Setting PermSize/MaxPermSize to 256M/512M did not seem to help or hinder.  
Anyone know why I can't set -Xmx to a value larger than 1G?  Eclipse won't even 
start.

In general it seems to be fairly stable.  Changes to our ValueObject project 
(used by almost every other project) take 2:30 to compile, but has not crashed 
as of yet.

Thanks for the suggestions!
~Geoff


--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> I'll certainly try everyone's suggestions when I get back from vacation. :D
> 
> Thanks for everyone's help/advise.
> 
> --- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
> >
> > Oh. I thought you can get past the module dependency by linking the SWC and
> > binding the source to the swc in the home project allowing you to close the
> > library projects.
> > 
> >  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Kevin F. Benz
> > Sent: Thursday, April 30, 2009 3:23 PM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Eclipse Crashing
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > Here are few things I have found.  They may help, they may not.
> > 
> >  
> > 
> > Ultimately I find that projects under version control have been my issues.
> > Let me explain. I have found (at least through SDK 3.0 and 3.1) that an
> > upgrade to the SDK causes the local project file to go through some update
> > but when a later SCM update occurs, you get an old versions project files
> > and crasho. The new SDK is expecting a known project file and gets
> > hair-balled by what came in from source control. I have tried cutting and
> > pasting another copy, reverting, trying to fix by hand, etc but in the end,
> > I find that I have had to create a new blank project and copy all the files
> > (except for the project files) and reconfigure the library path, and the
> > rest of the goo. You will need the new library properties, and other . (dot)
> > files as well from the new project. Bring in the old ones and you die. I'll
> > bet you can close each of your projects and the crashes will stop when the
> > offending project(s) is closed. 
> > 
> >  
> > 
> > The list of source files to be compiled can be corrupted.  I believe this is
> > the real issue with reverting project files but don't have a good handle on
> > why - but you should try disabling incremental compilation.  Add
> > "-incremental=false" to the compiler settings in the Flex Compiler tab of
> > the Properties.  This will effectively ignore the .cache files.  Compile
> > times will be longer - but hopefully that is offset by having a stable
> > environment. Flex uses cache files to persist previously compiled objects.
> > And a clean build doesn't necessarily refresh the cache files.  It is benign
> > to backup and remove those .cache files. They live in a few places so you
> > will need to find the
> > .metadata/.plugins/org.eclipse.core.resources/.projects directory and within
> > that directory, you will find one for every Flex project. For example
> > ./metadata/.plugins/org.eclipse.core.resoures/.projects/MYPROJECT/com.adobe.
> > flexbuilder.project/MyProject.cache. For each release, I like to clean these
> > out regardless.
> > 
> > K
> > 
> >  
> > 
> >  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Geoffrey
> > Sent: Thursday, April 30, 2009 11:30 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Eclipse Crashing
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> > for solutions, have tried many, but none seem to do the trick.

[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
I'll certainly try everyone's suggestions when I get back from vacation. :D

Thanks for everyone's help/advise.

--- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
>
> Oh. I thought you can get past the module dependency by linking the SWC and
> binding the source to the swc in the home project allowing you to close the
> library projects.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Kevin F. Benz
> Sent: Thursday, April 30, 2009 3:23 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Eclipse Crashing
> 
>  
> 
> 
> 
> 
> 
> 
> Here are few things I have found.  They may help, they may not.
> 
>  
> 
> Ultimately I find that projects under version control have been my issues.
> Let me explain. I have found (at least through SDK 3.0 and 3.1) that an
> upgrade to the SDK causes the local project file to go through some update
> but when a later SCM update occurs, you get an old versions project files
> and crasho. The new SDK is expecting a known project file and gets
> hair-balled by what came in from source control. I have tried cutting and
> pasting another copy, reverting, trying to fix by hand, etc but in the end,
> I find that I have had to create a new blank project and copy all the files
> (except for the project files) and reconfigure the library path, and the
> rest of the goo. You will need the new library properties, and other . (dot)
> files as well from the new project. Bring in the old ones and you die. I'll
> bet you can close each of your projects and the crashes will stop when the
> offending project(s) is closed. 
> 
>  
> 
> The list of source files to be compiled can be corrupted.  I believe this is
> the real issue with reverting project files but don't have a good handle on
> why - but you should try disabling incremental compilation.  Add
> "-incremental=false" to the compiler settings in the Flex Compiler tab of
> the Properties.  This will effectively ignore the .cache files.  Compile
> times will be longer - but hopefully that is offset by having a stable
> environment. Flex uses cache files to persist previously compiled objects.
> And a clean build doesn't necessarily refresh the cache files.  It is benign
> to backup and remove those .cache files. They live in a few places so you
> will need to find the
> .metadata/.plugins/org.eclipse.core.resources/.projects directory and within
> that directory, you will find one for every Flex project. For example
> ./metadata/.plugins/org.eclipse.core.resoures/.projects/MYPROJECT/com.adobe.
> flexbuilder.project/MyProject.cache. For each release, I like to clean these
> out regardless.
> 
> K
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 11:30 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Eclipse Crashing
> 
>  
> 
> 
> 
> 
> 
> 
> 
> Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> for solutions, have tried many, but none seem to do the trick.
> 
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
> 
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
> 
> Our Flex application is a collection of 30 projects (one main one and 29
> flex library projects). All have to be open at the same time or else you get
> build(dependency) errors.
> 
> There's a few projects that are linked to many of the other projects. For
> example, we have a project that holds all of the VOs. Making changes to that
> project always took a long time to build (several minutes), but now it
> crashes with OutOfMemory errors.
> 
> I've run jconsole to watch the JVM performance statistics. I don't fully
> understand all the numbers, but I can see that my PS Old Gen pool gets 100%
> full, and that's when I usually expect a crash to happen soon.
> 
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
> seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.
> 
> Anyone have any suggestions?
> 
> Thanks,
> ~Geoff
>




[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
Gotcha.  Will try that to see if it makes a difference.

--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> Ah - for the second part, go into each of the Flex Library projects' 
> properties panels, look at the "Flex Build Path" section, then select the 
> "Library path" tab. Expand the "Flex 3" node and look at the *.swc files that 
> are listed (which is effectively your library path for compilation). For 
> example, a Flex project would need playerglobal.swc and framework.swc at a 
> minimum, but other swcs may not be needed so you could try reducing the list 
> to the bare minimum to save memory.
> 
> Pete
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 4:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Eclipse Crashing
> 
> Yes, there are AIR and Flex projects in the same workspace, but at the 
> moment, the AIR projects are closed.
> 
> I'm not sure what you mean by the second response.  Could you give me an 
> example?
> 
> --- In flexcoders@yahoogroups.com, Peter Farland  wrote:
> >
> > 
> > Are you mixing AIR and Flex library projects in the same workspace?
> > 
> > Have you tried excluding all of the Flex SDK swcs from the project library 
> > path that are not needed by each project?
> > 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Geoffrey
> > Sent: Thursday, April 30, 2009 2:30 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Eclipse Crashing
> > 
> > Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
> > for solutions, have tried many, but none seem to do the trick.
> > 
> > My current setup is:
> > Eclipse 3.4.2 (M20090211-1700)
> > FB 3.0.2.214193
> > Flex SDK 3.3
> > JDK 1.6.0_13
> > 
> > My eclipse.ini is:
> > -showsplash
> > org.eclipse.platform
> > -framework
> > plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> > -vm
> > C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> > -vmargs
> > -Xms1024M
> > -Xmx1024M
> > -XX:PermSize=256M
> > -XX:MaxPermSize=512M
> > -XX:+UseParallelGC
> > -Dosgi.requiredJavaVersion=1.5
> > -Djava.net.preferIPv4Stack=true
> > -Dcom.sun.management.jmxremote
> > 
> > Our Flex application is a collection of 30 projects (one main one and 29 
> > flex library projects).  All have to be open at the same time or else you 
> > get build(dependency) errors.
> > 
> > There's a few projects that are linked to many of the other projects.  For 
> > example, we have a project that holds all of the VOs.  Making changes to 
> > that project always took a long time to build (several minutes), but now it 
> > crashes with OutOfMemory errors.
> > 
> > I've run jconsole to watch the JVM performance statistics.  I don't fully 
> > understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
> > full, and that's when I usually expect a crash to happen soon.
> > 
> > My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
> > seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
> > 
> > Anyone have any suggestions?
> > 
> > Thanks,
> >  ~Geoff
> > 
> > 
> > 
> > 
> > 
> > --
> > 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
>




[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
I probably don't REALLY need all these projects, but that's the way it was 
originally set up.  It's a very large project.  Hundreds of thousands of lines 
of code.  So that's how it evolved into the beast it is today.

We use Maven to build our production builds, but all the developers build via 
the IDE.

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Do you REALLY need all those projects?
> 
> If they are not different modules (and even if they are) you should try to
> divide them in packages instead of Projects.
> 
> If this is REALLY necessary, I suggest you to build your project using maven
> instead of using your IDE to do it.
> 
> Even to manage this caothic scenario it will help you.
> 
> If you want to try maven, take a look at m2eclipse and flex-mojos
> 
> Regards
> 
> On Thu, Apr 30, 2009 at 4:52 PM, Peter Farland  wrote:
> 
> >
> >
> >
> > Are you mixing AIR and Flex library projects in the same workspace?
> >
> > Have you tried excluding all of the Flex SDK swcs from the project library
> > path that are not needed by each project?
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com  [mailto:
> > flexcoders@yahoogroups.com ] On Behalf Of
> > Geoffrey
> > Sent: Thursday, April 30, 2009 2:30 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Eclipse Crashing
> >
> > Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> > for solutions, have tried many, but none seem to do the trick.
> >
> > My current setup is:
> > Eclipse 3.4.2 (M20090211-1700)
> > FB 3.0.2.214193
> > Flex SDK 3.3
> > JDK 1.6.0_13
> >
> > My eclipse.ini is:
> > -showsplash
> > org.eclipse.platform
> > -framework
> > plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> > -vm
> > C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> > -vmargs
> > -Xms1024M
> > -Xmx1024M
> > -XX:PermSize=256M
> > -XX:MaxPermSize=512M
> > -XX:+UseParallelGC
> > -Dosgi.requiredJavaVersion=1.5
> > -Djava.net.preferIPv4Stack=true
> > -Dcom.sun.management.jmxremote
> >
> > Our Flex application is a collection of 30 projects (one main one and 29
> > flex library projects). All have to be open at the same time or else you get
> > build(dependency) errors.
> >
> > There's a few projects that are linked to many of the other projects. For
> > example, we have a project that holds all of the VOs. Making changes to that
> > project always took a long time to build (several minutes), but now it
> > crashes with OutOfMemory errors.
> >
> > I've run jconsole to watch the JVM performance statistics. I don't fully
> > understand all the numbers, but I can see that my PS Old Gen pool gets 100%
> > full, and that's when I usually expect a crash to happen soon.
> >
> > My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
> > seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.
> >
> > Anyone have any suggestions?
> >
> > Thanks,
> > ~Geoff
> >
> > 
> >
> > --
> > 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
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
Yes, there are AIR and Flex projects in the same workspace, but at the moment, 
the AIR projects are closed.

I'm not sure what you mean by the second response.  Could you give me an 
example?

--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> 
> Are you mixing AIR and Flex library projects in the same workspace?
> 
> Have you tried excluding all of the Flex SDK swcs from the project library 
> path that are not needed by each project?
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Eclipse Crashing
> 
> Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
> for solutions, have tried many, but none seem to do the trick.
> 
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
> 
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
> 
> Our Flex application is a collection of 30 projects (one main one and 29 flex 
> library projects).  All have to be open at the same time or else you get 
> build(dependency) errors.
> 
> There's a few projects that are linked to many of the other projects.  For 
> example, we have a project that holds all of the VOs.  Making changes to that 
> project always took a long time to build (several minutes), but now it 
> crashes with OutOfMemory errors.
> 
> I've run jconsole to watch the JVM performance statistics.  I don't fully 
> understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
> full, and that's when I usually expect a crash to happen soon.
> 
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
> seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
> 
> Anyone have any suggestions?
> 
> Thanks,
>  ~Geoff
> 
> 
> 
> 
> 
> --
> 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] Eclipse Crashing

2009-04-30 Thread Geoffrey
Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place for 
solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29 flex 
library projects).  All have to be open at the same time or else you get 
build(dependency) errors.

There's a few projects that are linked to many of the other projects.  For 
example, we have a project that holds all of the VOs.  Making changes to that 
project always took a long time to build (several minutes), but now it crashes 
with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics.  I don't fully 
understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
 ~Geoff



[flexcoders] Creating PDFs with embedded Flex apps from Flex

2009-04-14 Thread Geoffrey
I've read that you can create PDFs from your Flex application, and that you can 
embed Flex applications into PDFs using Acrobat.  Do you think it's possible to 
create a PDF from a Flex application that has an embedded Flex app inside it?

Here's a possible scenario.  You have some sort of custom report builder for a 
company that allows a user to generate their own custom reports from a 
template.  They could drag and drop components (DataGrids, TextAreas, custom 
components, etc) onto the template and then 'publish' the final report as a PDF 
so it can be passed around.  Ideally it would be a 'live' report that could 
retrieve the latest data from a server or something.

Creating a static PDF looks to be fairly straight-forward, but a 'live' PDF 
looks harder.  I was thinking if you could build a SWF from the report, it 
could be sent to the server and embedded into a PDF.  Since the SWF is a 
stand-alone app, it would have all the stuff required to retrieve data from a 
server, or perhaps from LCDS, so that it's truely a 'live' document.

Any thought's or ideals?  Seems like it would be a really cool/useful 
application.

Thanks!



[flexcoders] Re: LCDS data management - original data on the client

2009-03-13 Thread Geoffrey
I'm interested in somehow showing that an item from a managed collection in a 
datagrid has pending changes, whatever they may be.  Change the color of the 
row, bold the text, add another column with a status symbol, etc  Something 
that let's the user know that this particular item has pending changes that 
need to be saved (we have autoCommit=false, but would also be good for off-line 
conops).

I looked up the DataService.getPendingOperation(item) method, but I'm not sure 
how to implement this in a manner that will update the visualization of the 
pending change in real time.  Any suggestions?  Is there a better way of doing 
what I'm trying to achieve?

Thanks,
 ~Geoff

--- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
>
> Unfortunately we currently only expose the 
> DataService.getPendingOperation(item) method.  We don’t let you get at the 
> original version of the item, list of changes, set of newly created or 
> deleted items yet.  This is something we’d like to offer but it is just not 
> there yet.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Zdenek Mikan
> Sent: Tuesday, July 22, 2008 10:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS data management - original data on the client
> 
> 
> I am using LCDS data management with Hibernate assembler. My dataservice
> is configured with autoSyncEnabled set to false and in my Flex
> application it is possible to make various changes to data in
> ArrayCollection resulting from fill operation. Then before commiting the
> dataservice I would like to inspect these changes. Are the old values of
> data (which were originally read by fill operation) accessible anywhere
> on the client?
> 
> Zdenek M
>




[flexcoders] Re: MouseOver Event Not Firing - SOLVED

2009-02-03 Thread Geoffrey
Thanks for the reply Ryan.  I had already tried what you suggested, 
and that's how I determined that the Button wasn't registering that 
the mouse pointer was over it.  I figured something was blocking or 
intercepting the mouse position, I just couldn't figure out what.

It ended up being a style sheet issue.  The root Panel had a style 
that set header-height to 30.  Once I set that to 0 my button worked.  
BTW, if I set it to something like 10, only the lower 1/2 of the 
button would register that the mouse was over it.

I would have never figured that out if it weren't for the fact that I 
saw this happen on another UI, but I could moseOver the bottom few 
pixels of the Button because it hadn't been positioned correctly.

So, lesson learned.  Don't set a header-height if you're going to 
stick buttons up in the header area.

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, "Ryan Graham"  
wrote:
>
> 
> You need to define handlers for those components in the HBox if you 
want
> them to listen for those specific mouse events. Right now the button 
in
> the HBox is only listening for click events. Try writing handler
> functions for those additional events to start debugging:
> 
>  
> 
>  mouseOver="onMouseOver(event)" mouseOut="onMouseOut(event)" 
width="24"
> height="20"/>
> 
>  
> 
> ...
> 
>  
> 
> private function onMouseOver(event:MouseEvent):void
> 
> {
> 
>  
> trace("mouseOver");
> 
> }
> 
> 
> 
> private function
> onMouseOut(event:MouseEvent):void
> 
> {
> 
>  
> trace("mouseOut");
> 
> }
> 
> 
> 
> HTH, 
> 
> Ryan
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of Geoffrey
> Sent: Monday, February 02, 2009 3:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] MouseOver Event Not Firing
> 
>  
> 
> I have a Button that doesn't seem to know the mouse is over it. It 
> doesn't dispatch MouseOver/Out/click events.
> 
> I have a Panel that has an HBox(Label/Spacer/Button) and a Canvas. 
> the Canvas gets stuff added to it dynamically via Actionscript.
> 
> 
> http://www.adobe.com/2006/mxml"; width="100%" 
> height="100%">
> 
>  height="24">
> 
> 
>  height="20"/>
> 
> 
> 
> 
> 
> 
> 
> This component is displayed after a transition effect that 'swishes' 
> it in from the right. I've done some debugging and it seems that 
> everything is getting mouseOver events except everything within the 
> HBox.
> 
> Any ideas? Because I have run out of ideas.
> 
> Thanks,
> Geoff
> 
>  
> 
> 
> 
> This message is private and confidential. If you have received it in 
error, please notify the sender and remove it from your system.
>





[flexcoders] MouseOver Event Not Firing

2009-02-02 Thread Geoffrey
I have a Button that doesn't seem to know the mouse is over it.  It 
doesn't dispatch MouseOver/Out/click events.

I have a Panel that has an HBox(Label/Spacer/Button) and a Canvas.  
the Canvas gets stuff added to it dynamically via Actionscript.


http://www.adobe.com/2006/mxml"; width="100%" 
height="100%">

  



  

  




This component is displayed after a transition effect that 'swishes' 
it in from the right.  I've done some debugging and it seems that 
everything is getting mouseOver events except everything within the 
HBox.

Any ideas?  Because I have run out of ideas.

Thanks,
Geoff



[flexcoders] Re: SocetMonitor not working as expected

2008-12-10 Thread Geoffrey
Seems like this should be a no-brainer according to the docs and the 
examples I'm seeing online, but it just doesn't seem to work.  I am 
running my client in a VM session(so I can easily enable/disable the 
network interface), but I don't think that is the issue since it does 
work if I don't specify a pollInterval.

My onNetworkStatusChange() method has a Alert statement in it which 
isn't popping up, and it also sets a boolean property that something 
else is bound to to swap a status icon.  Neither of these actions 
happen after the initial start() status event.

Any one else experience this issue?

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Trying out the SocketMonitor and what I'm experiencing is not what 
I'm 
> expecting to happen.  Here's a code snippet:
> 
> __sm = new SocketMonitor(HOSTNAME, PORT_NUMBER);
> __sm.addEventListener(StatusEvent.STATUS, onNetworkStatusChange);
> __sm.start();
> 
> The onNetworkStatusChange() method gets called when start() is 
called.  
> I expect that.  It also get's called about 30 seconds after the 
> network interface is disabled.  I'm guessing it uses some sort of 
> polling, so I guess I expect that.  I really expected it to happen 
as 
> soon as the interface goes down, so to speed up the network status 
recognition I set __sm.pollInterval = 1000.
> 
> Once I do that, the only time onNetworkStatusChange() is called is 
> when start() is called.  It never gets a StatusEvent... no matter 
how 
> many times I enable/disable the network interface.
> 
> Any ideas on why I'm seeing this?
> 
> Thanks,
>  Geoff
>





[flexcoders] SocetMonitor not working as expected

2008-12-09 Thread Geoffrey
Trying out the SocketMonitor and what I'm experiencing is not what I'm 
expecting to happen.  Here's a code snippet:

__sm = new SocketMonitor(HOSTNAME, PORT_NUMBER);
__sm.addEventListener(StatusEvent.STATUS, onNetworkStatusChange);
__sm.start();

The onNetworkStatusChange() method gets called when start() is called.  
I expect that.  It also get's called about 30 seconds after the 
network interface is disabled.  I'm guessing it uses some sort of 
polling, so I guess I expect that.  I really expected it to happen as 
soon as the interface goes down, so to speed up the network status recognition 
I set __sm.pollInterval = 1000.

Once I do that, the only time onNetworkStatusChange() is called is 
when start() is called.  It never gets a StatusEvent... no matter how 
many times I enable/disable the network interface.

Any ideas on why I'm seeing this?

Thanks,
 Geoff



[flexcoders] LCDS: DataService.fill() not filling

2008-11-18 Thread Geoffrey
Does anyone know what would prevent a DataService.fill() call to not 
populate it's managed collection?

I have an ArrayCollection that is the dataProvider for a DataGrid.  I 
see that data is coming back from the fill() call, but it doesn't 
appear to be passing that data to the ArrayCollection.  If I inspect 
that variable after the fill() completes, it's empty.

I double checked that the ArrayCollection that I'm passing to the 
fill() method is indeed the one that is used as the dataProvider.

Any thoughts would be appreciated.
 ~Geoff



[flexcoders] saveCache() - Couldn't acquire lock error.

2008-11-11 Thread Geoffrey
I'm getting an error when trying to save fill results to the local cache.  
Here's the error spew:
  onSaveCacheFault(): ERROR: (mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = ""
  destination = ""
  extendedData = (null)
  faultCode = "Client.Save.Failed"
  faultDetail = "Couldn't acquire lock. Operation failed."
  faultString = "Could not save local cache: Error: Couldn't acquire lock. 
Operation failed.
at 
LSODBStore/acquireLock()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data
\LSODatabase.as:659]
at 
LSODBStore/begin()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\LSODa
tabase.as:422]
at 
mx.data::LSODatabase/begin()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\
data\LSODatabase.as:142]
at 
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::saveCache()[C:\depot\flex\branches\enterp
rise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2636]
at 
()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDa
taService.as:1771]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AsyncDispatcher/timerEventHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()"
  headers = (Object)#2
  messageId = "9F56BAD2-667A-6A94-F8A7-8DF33BE3B59E"
  rootCause = (null)
  timestamp = 0
  timeToLive = 0

The command I use to save to cache is:
__ds.saveCache();

This is quite perplexing as it was working fine until I loaded a new workspace 
for some other work.  
Ever since I've come back to the Flex workspace, it's failed to save to the 
local cache.

Any ideas would be appreciated.
 ~Geoff



[flexcoders] Re: Resource Bundle Missing in AIR - Solved

2008-10-20 Thread Geoffrey
RTFM


[ResourceBundle("Resource_file_name")]


Forgot this part

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Still have not found a fix for this.  Any one else run into an issue
> like this?
> 
> Thanks,
> Geoff
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I'm using localization on a flex project for a slightly different use.
> >  We have 2 projects that share the same code base, but we want to
> > change some UI text that's displayed.  So, we're using localization to
> > swap certain text strings to be project specific.
> > 
> > Everything works fine for the web version, but if I try to take that
> > same localization setup and use it in our AIR version, it cannot find
> > the required resource bundles.
> > 
> > I've looked and they(web/AIR) appear to be set up identically.  My
> > locales are: en_US_ProjA and en_US_ProjB.
> > 
> > The AIR compiler argument is "-locale=en_US,en_US_ProjA".  I only put
> > the one project in to test getting the proper resource.
> > 
> > My directories are:
> >  projRoot.src.locale.en_US.*
> >  projRoot.src.locale.en_US_ProjA.*
> >  projRoot.src.locale.en_US_ProjB.*
> > 
> > When I debug a piece of localization code I see that the localeMap has
> > 2 entries, en_US and en_US_ProjA.  Both contain the same entries, but
> > the properties files are pointing to different Obects.  For example:
> > en_US_ProjA$CairngormMessages_properties (@c3547b9).  I should be
> > seeing a UI_Text property file in the list of resource bundle objects,
> > but it's missing.
> > 
> > I'm stumped as to why it works just fine from a browser, but pukes
> in AIR.
> > 
> > Thanks,
> > Geoff
> >
>




[flexcoders] Re: Resource Bundle Missing in AIR

2008-10-20 Thread Geoffrey
Still have not found a fix for this.  Any one else run into an issue
like this?

Thanks,
Geoff
--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I'm using localization on a flex project for a slightly different use.
>  We have 2 projects that share the same code base, but we want to
> change some UI text that's displayed.  So, we're using localization to
> swap certain text strings to be project specific.
> 
> Everything works fine for the web version, but if I try to take that
> same localization setup and use it in our AIR version, it cannot find
> the required resource bundles.
> 
> I've looked and they(web/AIR) appear to be set up identically.  My
> locales are: en_US_ProjA and en_US_ProjB.
> 
> The AIR compiler argument is "-locale=en_US,en_US_ProjA".  I only put
> the one project in to test getting the proper resource.
> 
> My directories are:
>  projRoot.src.locale.en_US.*
>  projRoot.src.locale.en_US_ProjA.*
>  projRoot.src.locale.en_US_ProjB.*
> 
> When I debug a piece of localization code I see that the localeMap has
> 2 entries, en_US and en_US_ProjA.  Both contain the same entries, but
> the properties files are pointing to different Obects.  For example:
> en_US_ProjA$CairngormMessages_properties (@c3547b9).  I should be
> seeing a UI_Text property file in the list of resource bundle objects,
> but it's missing.
> 
> I'm stumped as to why it works just fine from a browser, but pukes
in AIR.
> 
> Thanks,
> Geoff
>




[flexcoders] Resource Bundle Missing in AIR

2008-10-13 Thread Geoffrey
I'm using localization on a flex project for a slightly different use.
 We have 2 projects that share the same code base, but we want to
change some UI text that's displayed.  So, we're using localization to
swap certain text strings to be project specific.

Everything works fine for the web version, but if I try to take that
same localization setup and use it in our AIR version, it cannot find
the required resource bundles.

I've looked and they(web/AIR) appear to be set up identically.  My
locales are: en_US_ProjA and en_US_ProjB.

The AIR compiler argument is "-locale=en_US,en_US_ProjA".  I only put
the one project in to test getting the proper resource.

My directories are:
 projRoot.src.locale.en_US.*
 projRoot.src.locale.en_US_ProjA.*
 projRoot.src.locale.en_US_ProjB.*

When I debug a piece of localization code I see that the localeMap has
2 entries, en_US and en_US_ProjA.  Both contain the same entries, but
the properties files are pointing to different Obects.  For example:
en_US_ProjA$CairngormMessages_properties (@c3547b9).  I should be
seeing a UI_Text property file in the list of resource bundle objects,
but it's missing.

I'm stumped as to why it works just fine from a browser, but pukes in AIR.

Thanks,
Geoff



[flexcoders] TextInput with Prompt

2008-10-07 Thread Geoffrey
If you don't have a lot of space for a label next to a TextInput, then
you may want to try using my TextInputPrompted class.

You use this class just like you would any other TextInput, but
there's an extra prompt property. Whatever you set prompt to is
displayed in the TextInput in light grey. Once you start typing
something in the TextInput, the prompt will go away, and the text
turns dark.

Here's a blog about it
 .


[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-26 Thread Geoffrey
As it turns out, there appears to be a bug in DataServices.  To be more 
specific, the 
DataStore object that sits between the DataService and the server does not 
dispatch a 
result or fault event when the second DataService connects via the 
DataService.connect() 
call.

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Adobe support thought that it might be that too, but it doesn't look 
> like that's the issue since it didn't really do anything different 
> when I commented that out.
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I'll try using the TraceTarget class.
> > 
> > Our config uses port 2040 for RTMP.  I tried filtering on 
> "tcp.port==2040", but that didn't 
> > seem to get anything.  I also tried "rtmp.port==2040" and 
> "rtmpt.port==2040".  Those 
> > didn't seem to work either.  By 'work' I mean that when the filter 
> was applied, there were 
> > no network activity listed in the Wiresshark top panel.
> > 
> > Any other ideas on filtering?
> > 
> > --- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
> > >
> > > Have you tried enabling the client side debug logging with 
> ? You 
> > get the highest level client side tracing that way... just make sure 
> you use the debug 
> > player, then look in the flashlog.txt.
> > > 
> > > For wireshark, I think you can probably filter based on the server 
> port used to establish 
> > the connection.   Look at your RTMP configuration but typically it 
> is 2038 or 1935 or 
> > something like that.
> > > 
> > > Jeff
> > > 
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Geoffrey
> > > Sent: Friday, September 19, 2008 7:35 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] LCDS: Debug RTMP Traffic
> > > 
> > > 
> > > I'm having some issues with 2 DataServices running over RTMP. The
> > > first DataService loads on application startup and work fine (I 
> get
> > > data). The second load later on in the application, but this one
> > > get's no data. It doesn't appear that it even makes the connect
> > > request because my result and fault handlers don't get hit.
> > > 
> > > Is there a tool (like Charles, ServiceCapture, or Wireshark) that 
> can
> > > be used to verify that something over an RTMP channel is being 
> sent
> > > from the client? Like I said, nothing seems to happen when I issue
> > > the DataService.connect() call.
> > > 
> > > I've enabled a bunch of logging on the server(via the
> > > services-config.xml file), but if that traffic isn't reaching the
> > > server, all the logging in the world won't help.
> > > 
> > > BTW, if you say that Wireshark can be used, then please post the
> > > filter you use because I couldn't figure out one that only showed 
> RTMP
> > > traffic. As a matter of fact, I couldn't find anything that looked
> > > like RTMP traffic in the log session.
> > > 
> > > I don't know if it's important or not, but the server and the 
> client
> > > are all running locally.
> > > 
> > > Env:
> > > Tomcat 6.0.16
> > > LCDS 2.6
> > > Flex 3
> > > 
> > > Thanks,
> > > ~Geoff
> > >
> >
>





[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-25 Thread Geoffrey
Adobe support thought that it might be that too, but it doesn't look 
like that's the issue since it didn't really do anything different 
when I commented that out.

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I'll try using the TraceTarget class.
> 
> Our config uses port 2040 for RTMP.  I tried filtering on 
"tcp.port==2040", but that didn't 
> seem to get anything.  I also tried "rtmp.port==2040" and 
"rtmpt.port==2040".  Those 
> didn't seem to work either.  By 'work' I mean that when the filter 
was applied, there were 
> no network activity listed in the Wiresshark top panel.
> 
> Any other ideas on filtering?
> 
> --- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
> >
> > Have you tried enabling the client side debug logging with 
? You 
> get the highest level client side tracing that way... just make sure 
you use the debug 
> player, then look in the flashlog.txt.
> > 
> > For wireshark, I think you can probably filter based on the server 
port used to establish 
> the connection.   Look at your RTMP configuration but typically it 
is 2038 or 1935 or 
> something like that.
> > 
> > Jeff
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
> Geoffrey
> > Sent: Friday, September 19, 2008 7:35 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] LCDS: Debug RTMP Traffic
> > 
> > 
> > I'm having some issues with 2 DataServices running over RTMP. The
> > first DataService loads on application startup and work fine (I 
get
> > data). The second load later on in the application, but this one
> > get's no data. It doesn't appear that it even makes the connect
> > request because my result and fault handlers don't get hit.
> > 
> > Is there a tool (like Charles, ServiceCapture, or Wireshark) that 
can
> > be used to verify that something over an RTMP channel is being 
sent
> > from the client? Like I said, nothing seems to happen when I issue
> > the DataService.connect() call.
> > 
> > I've enabled a bunch of logging on the server(via the
> > services-config.xml file), but if that traffic isn't reaching the
> > server, all the logging in the world won't help.
> > 
> > BTW, if you say that Wireshark can be used, then please post the
> > filter you use because I couldn't figure out one that only showed 
RTMP
> > traffic. As a matter of fact, I couldn't find anything that looked
> > like RTMP traffic in the log session.
> > 
> > I don't know if it's important or not, but the server and the 
client
> > are all running locally.
> > 
> > Env:
> > Tomcat 6.0.16
> > LCDS 2.6
> > Flex 3
> > 
> > Thanks,
> > ~Geoff
> >
>





[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-21 Thread Geoffrey
Our endpoints are created in the services-config.xml, and the
destinations for DataServices are configured in
data-management-config.xml.

the RTMP endpoint config is as such:

  
  
30
  


A DataService destination looks like:

  


  
  
true
blah.blah.blah.TasksDelegate
application
false

  


  0
  

  


The two destinations are identical, except for the  class.

I am using the compiler argument [-services
"C:\workspace\flex\src\main\webapp\WEB-INF\flex\services-config.xml"],
which points to the correct services-config.xml file.

The task DataService is created in ActionScript like so:
// Create a datasource
__ds = new DataService("tasks");
__ds.cacheID = "ExpTasks";
__ds.autoSaveCache = false;
__ds.autoConnect = false;
__ds.autoCommit = false; 
__ds.addEventListener(DataConflictEvent.CONFLICT, onDataConflict,
false, 0, true);
__ds.addEventListener(DataServiceFaultEvent.FAULT, onDataServiceFault,
false, 0, true);

// Connect to datasource
connect();

The connect() method just registers some event listeners and then
calls __ds.connect().

The whole point to this is that we intend to replace our 30 Java
delegates and 130+ remote methods with DataServices so our application
can run in offline mode (assuming there's cached data).  If there's a
better way to do this, I'm open to suggestions.

Thanks,
  Geoff


--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> Yeah, it looks like somehow you are getting a DataService trying to
use a "DirectHTTPChannel".That only works for for HTTPService, and
WebService.  DataService needs a channelSet which supports AMF
(AMFChannel, or RTMPChannel).I'm confused how you are getting into
this situation though... those get created on the client via the
"endpoint" property on some services or you can define one explicitly
in ActionScript or MXML.Can you show how this "tasks" destination
is getting defined in ActionScript? How is its channelSet
specified - on the client via the channelSet property or on the
server?   If it is on the server, make sure you are compiling against
the services-config.mxml file (it is a project/compiler option).
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Geoffrey
> Sent: Sunday, September 21, 2008 5:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic
> 
> 
> TraceTarget reported the following when the UI with the second
> DataService loads:
> 
> 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to
> 'DefaultHTTP'.
> 'direct_http_channel' channel endpoint set to
http://localhost:8080/main/
> 'cds-consumer-tasks-null' consumer set destination to 'tasks'.
> Configuration for destination='tasks':
> 
> 
> 
> 
> 
> 
> 
> 
> true
> 
> New DataService for destination: tasks
> '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to
> 'tasks'.
> Creating a new independent data store for destination: tasks
> Adding data service: tasks to the data store: null initialized: false
> LSODatabase close(): null
> TaskDS.as: Connecting to DataService.
> 'ds-producer-tasks' producer connected.
> 'ds-producer-tasks' producer acknowledge of
> '1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'.
> 
> This is the last thing it reports related to DataServices. It looks
> like the DataService attempts to connect, but I'm missing all the
> connection jazz that I get from the first DataService connection
> (namely RTMP stuff. Am I reading this right? Looks like it's trying
> to connect over an HTTP channel). Here's what a successful connection
> looks like:
> 
> ConfigDS.as: Connecting to DataService.
> 'my-rtmp' channel endpoint set to rtmp://localhost:2039
> 'my-rtmp' channel settings are:
> 
> 
> 
> 
> 'my-rtmp' channel got connect attempt status. (Object)#0
> code = "NetConnection.Connect.Success"
> description = "Connection succeeded."
> details = (null)
> DSMessagingVersion = 1
> id = "A66F4650-DB1E-E678-DB08-C1CD3BF2591A"
> level = "status"
> objectEncoding = 3
> 'my-rtmp' channel is connected.
> 'ds-producer-configurationData' producer acknowledge of
> '0ADAF447-0616-0F7B-376A-8758AC3385D9'.
> 'ds-producer-configurationData' producer connected.
> ConfigDS.as: Connection to DataService success.
> 
> --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>,
"Geoffrey"  wrote:
> >
> > I'll t

[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-21 Thread Geoffrey
TraceTarget reported the following when the UI with the second
DataService loads:

'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to
'DefaultHTTP'.
'direct_http_channel' channel endpoint set to http://localhost:8080/main/
'cds-consumer-tasks-null' consumer set destination to 'tasks'.
Configuration for destination='tasks':

 
  

  
  

  
  true

New DataService for destination: tasks
'19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to
'tasks'.
Creating a new independent data store for destination: tasks
Adding data service: tasks to the data store: null initialized: false
LSODatabase close(): null
TaskDS.as: Connecting to DataService.
'ds-producer-tasks' producer connected.
'ds-producer-tasks' producer acknowledge of
'1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'.

This is the last thing it reports related to DataServices.  It looks
like the DataService attempts to connect, but I'm missing all the
connection jazz that I get from the first DataService connection
(namely RTMP stuff.  Am I reading this right?  Looks like it's trying
to connect over an HTTP channel).  Here's what a successful connection
looks like:

ConfigDS.as: Connecting to DataService.
'my-rtmp' channel endpoint set to rtmp://localhost:2039
'my-rtmp' channel settings are:

  
  

'my-rtmp' channel got connect attempt status. (Object)#0
  code = "NetConnection.Connect.Success"
  description = "Connection succeeded."
  details = (null)
  DSMessagingVersion = 1
  id = "A66F4650-DB1E-E678-DB08-C1CD3BF2591A"
  level = "status"
  objectEncoding = 3
'my-rtmp' channel is connected.
'ds-producer-configurationData' producer acknowledge of
'0ADAF447-0616-0F7B-376A-8758AC3385D9'.
'ds-producer-configurationData' producer connected.
ConfigDS.as: Connection to DataService success.


--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I'll try using the TraceTarget class.
> 
> Our config uses port 2039 for RTMP.  I tried filtering on
"tcp.port==2039", but that didn't 
> seem to get anything.  I also tried "rtmp.port==2039" and
"rtmpt.port==2039".  Those 
> didn't seem to work either.  By 'work' I mean that when the filter
was applied, there were 
> no network activity listed in the Wiresshark top panel.
> 
> Any other ideas on filtering?
> 
> --- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
> >
> > Have you tried enabling the client side debug logging with
? You 
> get the highest level client side tracing that way... just make sure
you use the debug 
> player, then look in the flashlog.txt.
> > 
> > For wireshark, I think you can probably filter based on the server
port used to establish 
> the connection.   Look at your RTMP configuration but typically it
is 2038 or 1935 or 
> something like that.
> > 
> > Jeff
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of 
> Geoffrey
> > Sent: Friday, September 19, 2008 7:35 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] LCDS: Debug RTMP Traffic
> > 
> > 
> > I'm having some issues with 2 DataServices running over RTMP. The
> > first DataService loads on application startup and work fine (I get
> > data). The second load later on in the application, but this one
> > get's no data. It doesn't appear that it even makes the connect
> > request because my result and fault handlers don't get hit.
> > 
> > Is there a tool (like Charles, ServiceCapture, or Wireshark) that can
> > be used to verify that something over an RTMP channel is being sent
> > from the client? Like I said, nothing seems to happen when I issue
> > the DataService.connect() call.
> > 
> > I've enabled a bunch of logging on the server(via the
> > services-config.xml file), but if that traffic isn't reaching the
> > server, all the logging in the world won't help.
> > 
> > BTW, if you say that Wireshark can be used, then please post the
> > filter you use because I couldn't figure out one that only showed RTMP
> > traffic. As a matter of fact, I couldn't find anything that looked
> > like RTMP traffic in the log session.
> > 
> > I don't know if it's important or not, but the server and the client
> > are all running locally.
> > 
> > Env:
> > Tomcat 6.0.16
> > LCDS 2.6
> > Flex 3
> > 
> > Thanks,
> > ~Geoff
> >
>




[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-21 Thread Geoffrey
I'll try using the TraceTarget class.

Our config uses port 2040 for RTMP.  I tried filtering on "tcp.port==2040", but 
that didn't 
seem to get anything.  I also tried "rtmp.port==2040" and "rtmpt.port==2040".  
Those 
didn't seem to work either.  By 'work' I mean that when the filter was applied, 
there were 
no network activity listed in the Wiresshark top panel.

Any other ideas on filtering?

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> Have you tried enabling the client side debug logging with ? 
> You 
get the highest level client side tracing that way... just make sure you use 
the debug 
player, then look in the flashlog.txt.
> 
> For wireshark, I think you can probably filter based on the server port used 
> to establish 
the connection.   Look at your RTMP configuration but typically it is 2038 or 
1935 or 
something like that.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Geoffrey
> Sent: Friday, September 19, 2008 7:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS: Debug RTMP Traffic
> 
> 
> I'm having some issues with 2 DataServices running over RTMP. The
> first DataService loads on application startup and work fine (I get
> data). The second load later on in the application, but this one
> get's no data. It doesn't appear that it even makes the connect
> request because my result and fault handlers don't get hit.
> 
> Is there a tool (like Charles, ServiceCapture, or Wireshark) that can
> be used to verify that something over an RTMP channel is being sent
> from the client? Like I said, nothing seems to happen when I issue
> the DataService.connect() call.
> 
> I've enabled a bunch of logging on the server(via the
> services-config.xml file), but if that traffic isn't reaching the
> server, all the logging in the world won't help.
> 
> BTW, if you say that Wireshark can be used, then please post the
> filter you use because I couldn't figure out one that only showed RTMP
> traffic. As a matter of fact, I couldn't find anything that looked
> like RTMP traffic in the log session.
> 
> I don't know if it's important or not, but the server and the client
> are all running locally.
> 
> Env:
> Tomcat 6.0.16
> LCDS 2.6
> Flex 3
> 
> Thanks,
> ~Geoff
>





[flexcoders] LCDS: Debug RTMP Traffic

2008-09-19 Thread Geoffrey
I'm having some issues with 2 DataServices running over RTMP.  The
first DataService loads on application startup and work fine (I get
data).  The second load later on in the application, but this one
get's no data.  It doesn't appear that it even makes the connect
request because my result and fault handlers don't get hit.

Is there a tool (like Charles, ServiceCapture, or Wireshark) that can
be used to verify that something over an RTMP channel is being sent
from the client?  Like I said, nothing seems to happen when I issue
the DataService.connect() call.

I've enabled a bunch of logging on the server(via the
services-config.xml file), but if that traffic isn't reaching the
server, all the logging in the world won't help.

BTW, if you say that Wireshark can be used, then please post the
filter you use because I couldn't figure out one that only showed RTMP
traffic.  As a matter of fact, I couldn't find anything that looked
like RTMP traffic in the log session.

I don't know if it's important or not, but the server and the client
are all running locally.

Env:
Tomcat 6.0.16
LCDS 2.6
Flex 3

Thanks,
 ~Geoff



[flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-08-25 Thread Geoffrey
I was wondering if anyone knows exactly when the AcegiLoginCommand
class gets processes.  Does it get processed once when you create a
DataService object, or does it get processed every time an RTMP
request is made?

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> One last thing I had to do to get it to work.  I added
> "-Dacegi.security.strategy=MODE_INHERITABLETHREADLOCAL" to my Tomcat
> JVM arguments.  Otherwise, setting and getting the Authentication
> object was accessing different instances of some security object.
> 
>  ~Geoff
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I seem to have got it working.  Thanks for your help jahhaj12345!
> > 
> > What I ended up doing was to create a custom LoginCommand class.  I
> > used the one from here:
> > http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds.  I made
> > two changes shown below:
> > 
> > //The name of our Acegi configuration file.
> > private static String[] CONFIG_LOCATIONS =
> > {"classpath:security-context.xml"};
> > 
> > //"ldapAuthenticationProvider" is from our Acegi config file, and it
> > the name of the bean that is used for authentication via LDAP.
> > authenticationProvider =
> >
>
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");
> > 
> > 
> > I then updated services-config.xml and added:
> > 
> >> server="Tomcat"/>
> > 
> >   Basic
> > 
> >   ROLE_MANAGERS
> >   ROLE_USERS
> >  
> > 
> > 
> > //The roles came from the Acegi config file.
> > 
> > 
> > After that, I had to add the [managed] metadata tag to one of my
> > ValueObjects and it all seemed to work.
> > 
> > I'll be honest, I don't really understand why this works, it just
> > does.  What I mean by 'works' is that the managed collection on the
> > client gets filled with data successfully.  I haven't yet tested
> > pushing new entries to that managed collection after the initial fill.
> > 
> > 
> > I hope this post helps someone else.
> > 
> >  ~Geoff
> > 
> > --- In flexcoders@yahoogroups.com, "jahhaj12345"  wrote:
> > >
> > > I don't know of a way to just authenticate the client.  From
> everything
> > > I've read, you have to authenticate the HTTP and RTMP sessions
> > > individually.  For my application, I had to create my own
LoginCommand
> > > to handle the flex RTMP authentication.
> > > 
> > > Here's my understanding of how it's working for me:
> > > 
> > > 1. On my client, I get the channelset to use and then call
> > > channelSet.login(username, password).  You could also call the
> > > setCredentials on the actual DataService the same way, but my
services
> > > are all created at runtime on the server instead of being statically
> > > defined in services-config.xml.
> > > 
> > > 2. That channelSet (or dataservice) from above authenticates
> through the
> > > login-command configured in services-config.xml.  This is where the
> > > custom LoginCommand I created is configured.  The doAuthentication
> > > function of LoginCommand is as follows:
> > > 
> > >  public Principal doAuthentication(String username, Object
> > > credentials) {
> > >  Authentication auth =
authenticationProvider.authenticate(new
> > > UsernamePasswordAuthenticationToken(username, credentials)); //
> > > authenticationProvider is a spring security
DaoAuthenticationProvider
> > > 
> > >  SecurityContextHolder.getContext().setAuthentication(auth);
> > >  return auth;
> > >  }
> > > 
> > > This should authenticate the RTMP session.  I don't know if this
> is the
> > > best way, but it seems to work.
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> > > >
> > > > I'm guessing that we don't implement security the correct way
> (or the
> > > > best way) right now.  Currently, I have a login State that
takes the
> > > > username and password and makes an HTTPService call to the JSP
page
> > > > that does user authentication.  If that comes back successfully,
> then
> > > > I change State to the main application.
> > > >
> > > > That seems to

[flexcoders] Re: LCDS ds-console WAR

2008-08-25 Thread Geoffrey
Thanks for the reply, but I was running it that way.

--- In flexcoders@yahoogroups.com, "zdenekmikan" <[EMAIL PROTECTED]> wrote:
>
> You have to run it through http access (e.g.
> http://localhost:8400/ds-console/), not by double-clicking on html
> file in deployed folder.
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > Does anyone use it?  What does it do?  I deployed it, and can run it, 
> > but I'm getting NPE errors when I select the other tabs.  Also, there 
> > are no Applications listed in my ComboBox.  I have a LCDS application 
> > up and running on my server, so I'd expect to see something listed.
> > 
> > Here's the error I get:
> > 
> > TypeError: Error #1009: Cannot access a property or method of a null 
> > object reference.
> > at console::ConsoleManager/activateListener()
> > at console/setCurrentTab()
> > at console/__consoleNavigator_change()
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at mx.core::UIComponent/dispatchEvent()
> > at mx.containers::ViewStack/dispatchChangeEvent()
> > at mx.containers::ViewStack/commitProperties()
> > at mx.containers::TabNavigator/commitProperties()
> > at mx.core::UIComponent/validateProperties()
> > at mx.managers::LayoutManager/validateProperties()
> > at mx.managers::LayoutManager/doPhasedInstantiation()
> > at Function/http://adobe.com/AS3/2006/builtin::apply()
> > at mx.core::UIComponent/callLaterDispatcher2()
> > at mx.core::UIComponent/callLaterDispatcher()
> >
>




[flexcoders] Re: FDS (or LCDS) and refreshFill() from Java

2008-08-21 Thread Geoffrey
I'm having the same issues that Dimitrios had below(changes to
properties of items in managed collections not "showing up").

I was wondering if Jeff Vroom's advice is still the preferred method
for LCDS2.6.


To update those properties, you need to call "dts.updateItem" for each
item where the properties have changed.


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Ah, thank you very much for the enlightment Jeff, that explains things.
>  
> Perhaps in a future release there can be a method called
refreshFillFromDB() (or something like that) that will cause LCDS to
make the same call to retrieve the items from the DB - as the first
call to fill() - and push those changes out to affected clients only -
rather than rely on updateItem for each item. This will probably be
more performant in my case as in some cases only the properties of a
batch of items change.
>  
> Dimitrios Gianninas
> Developer
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Jeff Vroom
> Sent: Monday, June 18, 2007 9:27 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] FDS (or LCDS) and refreshFill() from Java
> 
> 
> 
> That is the right code to refresh a fill from server side code that
is not part of your assembler methods.  It could be the case that for
some reason the fill parameters are not matching the fill parameters
used by your clients or that when FDMS calls the "fill" method on the
assembler, it sees the same item ids returned that are already on the
client.  Turning on the server debug logging for the pattern
"DataService.*" (in 2.0.1) and "Service.Data.*" (in 2.5) would provide
more diagnostics about what is happening.
> 
> One other problem with refreshFill is that if the properties of the
items have changed but the identities of the items in the filled
collection have not, the refreshFill won't pick it up.  RefreshFill is
just about refreshing the membership of the objects in the filled
collection - i.e. which items are in that list.  It is not about
updating the properties of the items in the filled collection.  To
update those properties, you need to call "dts.updateItem" for each
item where the properties have changed.  
> 
> If bandwidth/performance is not too much of a problem, you can
simply call updateItem for each item id in the list where you just
pass in null for the "previous item" and null for the list of
properties that have changed.  This is similar in performance to just
having the clients re-execute the fill since they will be pushed all
of the items in the collection and will update their local copies of
all of the items with these changes.
> 
> Part of the rationale for this behavior is that we don't want to
necessarily cache a copy of every managed item on the server.  That is
really the only way we can know whether an item has changed (by
comparing the old and new versions) and is somewhat expensive.  That
said, if you do have the cache-items setting turned on, we should be
able to do a better job of this even if it takes a few CPU cycles.  I
think we already have an enhancement filed for this feature but I'll
check and if not file one.
> 
> Jeff
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Dimitrios Gianninas
> Sent: Monday, June 18, 2007 6:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FDS (or LCDS) and refreshFill() from Java
> 
> Hi,
> 
> Basically I have a requirement to refresh a list which all clients
pull in via FDS from the Java side. I thought the code below would
cause all clients to refresh but it doesn't. Any ideas of what is
missing or what is incorrect?
> 
> List x = new ArrayList();
> 
> x.add( new Integer(16) );
> 
> x.add( InboxConstants.INBOX_DISPLAY_ACTIVE );
> 
> DataServiceTransaction dts = DataServiceTransaction.begin( false );
> 
> dts.setSendMessagesToPeers( true ); // notify other nodes in a cluster
> 
> dts.refreshFill( "inboxDS", x );
> 
> dts.commit();
> 
> Dimitrios Gianninas
> 
> Developer
> 
> Optimal Payments Inc.
> 
> AVIS IMPORTANT
> 
> WARNING
> 
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé. L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation. Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux. Si vous avez reçu ce courrier électroniq

[flexcoders] LCDS ds-console WAR

2008-08-19 Thread Geoffrey
Does anyone use it?  What does it do?  I deployed it, and can run it, 
but I'm getting NPE errors when I select the other tabs.  Also, there 
are no Applications listed in my ComboBox.  I have a LCDS application 
up and running on my server, so I'd expect to see something listed.

Here's the error I get:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at console::ConsoleManager/activateListener()
at console/setCurrentTab()
at console/__consoleNavigator_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.containers::ViewStack/dispatchChangeEvent()
at mx.containers::ViewStack/commitProperties()
at mx.containers::TabNavigator/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()



[flexcoders] Re: DataServiceException

2008-08-12 Thread Geoffrey
What version of LCDS was this written for?  I can't seem to resolve
"seq.getItemInfo()" with my 2.5.1 jars.


--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> Yeah, it should be calling any fill methods which are still actively
managed by clients in that "refreshFill" call - as long as you have
autoSync=true.  There are a couple of ways to track this down:
> 
> 
> 1)  Put in this printSeq.jsp file (enclosed below) and request
it.  It will show you all active fills, etc.  If that is empty,
somehow the client's fill is not auto-sync'd.
> 
> 2)  If you turn on the Service.* debug target it should at least
indicate which fills it is trying to refresh.
> 
> Jeff
> 
> - printSeqs.jsp:
> <%@ page import="flex.data.SequenceManager" %>
> <%@ page import="flex.messaging.MessageBroker"%>
> <%@ page import="flex.data.DataService"%>
> <%@ page import="flex.data.DataDestination"%>
> <%@ page import="java.util.Map"%>
> <%@ page import="java.util.List"%>
> <%@ page import="java.util.Iterator"%>
> 
> 
> 
> <%
>  MessageBroker mb = MessageBroker.getMessageBroker(null);
> 
>  DataService ds = (DataService)
mb.getServiceByType("flex.data.DataService");
>  if (ds == null)
> out.print("no data service");
>  else
>  {
>  Map dests = ds.getDestinations();
> 
>  for (Iterator it = dests.entrySet().iterator(); it.hasNext(); )
>  {
>  Map.Entry ent = (Map.Entry) it.next();
> 
>  String destName = (String) ent.getKey();
> 
>  DataDestination dest = (DataDestination) ent.getValue();
>  SequenceManager seq = dest.getSequenceManager();
> 
>  out.print("Destination: " + destName + "");
>  out.print("SequenceInfo:");
>  out.print(seq.getSequenceInfo());
> 
>  out.print("ItemInfo:");
>  out.print(seq.getItemInfo());
>  out.print("");
> 
>  out.print("");
>  }
>   }
> 
> %>
> 
> done
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Geoffrey
> Sent: Wednesday, August 06, 2008 2:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: DataServiceException
> 
> 
> I pass false to my begin() method and that stops the
> DataServiceException from happening, but now nothing seems to happen
> after I commit(). Here's a current code snippet:
> 
> DataServiceTransaction dst = DataServiceTransaction.begin(false);
> dst.refreshFill("myTasks", null);
> dst.commit();
> 
> The destination parameter for refreshFill(), is that the same string
> as the parameter I pass to the DataService constructor in ActionScript
> and the name of the  I set up in
data-management-config.xml?
> (i.e.
> __ds = new DataService("myTasks");
> 
> )
> 
> I would expect to get a hit on the fill() method in my Assembler after
> the commit() is called, but I ain't gettin' nut'in.
> 
> Ideas?
> 
> Thanks,
> Geoff
> 
> --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Jeff
Vroom  wrote:
> >
> > Yeah, I wish this stuff was easier to install and configure. Too
> bad this JTA stuff hasn't been picked up by servlet containers as part
> of the core.
> >
> > To help debug this problem, here's the source for a .jsp file which
> does the same thing we do. Usually once this works,
> DataServiceTransaction.begin(true) will work too:
> >
> > <%@ page import="javax.transaction.UserTransaction" %>
> > <%@ page import="javax.naming.InitialContext" %>
> > <%@ page import="javax.naming.Context" %>
> > 
> >
> > start
> > <%
> > try
> > {
> > Context ctx = new InitialContext();
> >
> > String userTransactionJndi = "java:comp/UserTransaction";
> > String userSpecified = System.getProperty("UserTxJndiName");
> > if (userSpecified != null)
> > {
> > userTransactionJndi = userSpecified;
> > }
> > UserTransaction userTransaction = (UserTransaction)
> ctx.lookup(userTransactionJndi);
> > if (userTransaction != null)
> > {
> > userTransaction.begin();
> > out.println("begin ok!");
> > userTransaction.commit();
> > out.println("commit ok!");
> > }
> > else
&

[flexcoders] Re: DataServiceException

2008-08-06 Thread Geoffrey
I pass false to my begin() method and that stops the
DataServiceException from happening, but now nothing seems to happen
after I commit().  Here's a current code snippet:

  DataServiceTransaction dst = DataServiceTransaction.begin(false);
  dst.refreshFill("myTasks", null);
  dst.commit();

The destination parameter for refreshFill(), is that the same string
as the parameter I pass to the DataService constructor in ActionScript
and the name of the  I set up in data-management-config.xml?
(i.e.
  __ds = new DataService("myTasks");
  
)

I would expect to get a hit on the fill() method in my Assembler after
the commit() is called, but I ain't gettin' nut'in.

Ideas?

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> Yeah, I wish this stuff was easier to install and configure.   Too
bad this JTA stuff hasn't been picked up by servlet containers as part
of the core.
> 
> To help debug this problem, here's the source for a .jsp file which
does the same thing we do.  Usually once this works,
DataServiceTransaction.begin(true) will work too:
> 
> <%@ page import="javax.transaction.UserTransaction" %>
> <%@ page import="javax.naming.InitialContext" %>
> <%@ page import="javax.naming.Context" %>
> 
> 
> start
> <%
> try
> {
> Context ctx = new InitialContext();
> 
> String userTransactionJndi = "java:comp/UserTransaction";
> String userSpecified = System.getProperty("UserTxJndiName");
> if (userSpecified != null)
> {
> userTransactionJndi = userSpecified;
> }
> UserTransaction userTransaction = (UserTransaction)
ctx.lookup(userTransactionJndi);
> if (userTransaction != null)
> {
> userTransaction.begin();
> out.println("begin ok!");
> userTransaction.commit();
> out.println("commit ok!");
> }
> else
> {
> out.println("returned null");
> }
> }
> catch (Exception ne)
> {
> out.println(ne.toString());
> }
> %>
> 
> done
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Geoffrey
> Sent: Monday, August 04, 2008 2:51 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: DataServiceException
> 
> 
> I just went through installing/configuring JTA using JOTM(which was
> not as straight forward as the docs say) with Tomcat.
> 
> The bummer is that I can't debug into the DataServiceTransaction
> class... no source.
> 
> I guess I could try passing "false" to the begin method, but I should
> be able to use JOTM.
> 
> BTW, thanks for your help on that other LCDS issue.
> 
> --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Jeff
Vroom  wrote:
> >
> > When you create a DataServiceTransaction, especially with "true" so
> it needs to start a JTA transaction, it is look in the JNDI namespace
> for the standard UserTransaction object i.e. new
> InitialContext().lookup("java:comp/UserTransaction"). That call is
> not working... if you are not in a JEE container or Tomcat with JOTM
> installed that would explain it. You can try passing "false" to
> begin and that would avoid use of the JTA transaction manager.
> >
> > Jeff
> >
> > From:
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>]
> On Behalf Of Geoffrey
> > Sent: Monday, August 04, 2008 1:31 PM
> > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] DataServiceException
> >
> >
> > I'm trying to create a DataServiceTransaction to push an update out to
> > my DataService clients. I'm getting the below error when it tries to
> > create the DataServiceTransaction.
> >
> > flex.data.DataServiceException: Unable to access UserTransaction in
> > DataService.
> > at
> >
>
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:855)
> > at
> >
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807)
> > at
> >
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:270)
> > at
> >
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:283)
> > ...
> >
> > My code is:
> > DataServiceTransaction dst = DataServiceTransaction.begin(true);
> > dst.refreshFill("myTasks", null);
> > dst.commit();
> >
> > Any ideas?
> > Geoff
> >
>




[flexcoders] Re: DataServiceException

2008-08-04 Thread Geoffrey
I just went through installing/configuring JTA using JOTM(which was
not as straight forward as the docs say) with Tomcat.

The bummer is that I can't debug into the DataServiceTransaction
class... no source.

I guess I could try passing "false" to the begin method, but I should
be able to use JOTM.

BTW, thanks for your help on that other LCDS issue.

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> When you create a DataServiceTransaction, especially with "true" so
it needs to start a JTA transaction, it is look in the JNDI namespace
for the standard UserTransaction object i.e.  new
InitialContext().lookup("java:comp/UserTransaction").  That call is
not working...  if you are not in a JEE container or Tomcat with JOTM
installed that would explain it.You can try passing "false" to
begin and that would avoid use of the JTA transaction manager.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Geoffrey
> Sent: Monday, August 04, 2008 1:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataServiceException
> 
> 
> I'm trying to create a DataServiceTransaction to push an update out to
> my DataService clients. I'm getting the below error when it tries to
> create the DataServiceTransaction.
> 
> flex.data.DataServiceException: Unable to access UserTransaction in
> DataService.
> at
>
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:855)
> at
> flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807)
> at
> flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:270)
> at
> flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:283)
> ...
> 
> My code is:
> DataServiceTransaction dst = DataServiceTransaction.begin(true);
> dst.refreshFill("myTasks", null);
> dst.commit();
> 
> Any ideas?
> Geoff
>




[flexcoders] DataServiceException

2008-08-04 Thread Geoffrey
I'm trying to create a DataServiceTransaction to push an update out to
my DataService clients.  I'm getting the below error when it tries to
create the DataServiceTransaction.

flex.data.DataServiceException: Unable to access UserTransaction in
DataService.
  at
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:855)
  at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807)
  at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:270)
  at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:283)
...


My code is:
DataServiceTransaction dst = DataServiceTransaction.begin(true);
dst.refreshFill("myTasks", null);
dst.commit();


Any ideas?
 Geoff



[flexcoders] Multiple AIR Instances

2008-08-04 Thread Geoffrey
Did I miss something?  Can you only run one instance of an AIR app?



[flexcoders] How do you auto-refresh LCDS?

2008-07-31 Thread Geoffrey
I'm not sure how you refresh clients when there's a change on the
server.  After I perform a _ds.fill(), the user can delete 1+ of the
items from the managed collection.  The ActionScript looks like:

private function deleteItems():void
{
  var selectedTasks:Array = taskList.getSelectedTasks();
  for each (var task:ExploitationTaskVO in selectedTasks)
  {
_ds.deleteItem(task);
  }

  // Commit the deletes to the server if needed
  if (__ds.commitRequired)
  {
__ds.commit();
  }
}

_ds.commit() has to be called to propagate changes to the server
because I have _ds.autoCommit = false.

The LCDS JavaDocs state that changes from a createItem() or
updateItem() call will propigate to all clients if auto-refresh=true.
 Is that true for deleteItem() calls too?  And where is this
auto-refresh property?  I don't see it under Java AbstractAssembler or
ActionScript DataService classes.

Also, what if I create, update, or delete a task on the server without
doing it through the DataService(like through a java delegate).  Can I
force the DataService to refresh it's clients on the java side?  Is
this what the DataServiceTransaction.refreshFill() method is for?

Thanks,
Geoff





[flexcoders] LCDS - Tomcat - JOTM Integration

2008-07-31 Thread Geoffrey
After a couple days of fussing around, I was able to successfully
integrate JOTM into our webapp, and thought that I'd share what I did.
 Hopefully it will be useful to someone else.


Environment:
Eclipse 3.3.1.1
Tomcat 6.0.16
LCDS 2.5.1
JOTM 2.0.10


Installation:
1) Download JOTM 2.0.10 from http://forge.objectweb.org/projects/jotm/
if you don't already have it.
2) Unzip to c:\
3) Link those jars to Tomcat
a. Double-click Tomcat definition in the Servers tab of Eclipse.
b. Click "Open launch configuration".
c. Select the Classpath tab.
d. Select "User Entries", and then "Add External JARs".
e. Navigate to C:\jotm-2.0.10\lib.
f. Select all classes except commons-logging.jar and log4j.jar.
g. Apply the changes and exit Tomcat properties.
h. (optional) test JOTM installation by starting the server and
accessing the below JSP file*.  Success will be obvious.
4) Edit your META-INF\context.xml to include the following line:



You should now be able to perform create, delete, and update
operations on a managed collection of a DataService.


* Optional JSP file(I got this from someone in this forum, but can't
remember who)
<%@ page import="javax.transaction.UserTransaction" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="javax.naming.Context" %>
<[EMAIL PROTECTED] import="javax.naming.NamingException"%>

start
<%
try
{
Context ctx = new InitialContext();
 
String userTransactionJndi = "java:comp/UserTransaction";
String userSpecified = System.getProperty("UserTxJndiName");
if (userSpecified != null)
{
userTransactionJndi = userSpecified;
}
UserTransaction userTransaction = (UserTransaction)
ctx.lookup(userTransactionJndi);
if (userTransaction != null)
{
userTransaction.begin();
out.println("begin ok!");
userTransaction.commit();
out.println("commit ok!");
}
else
{
out.println("Context returned null userTransaction");
}
}
catch (NamingException ne)
{
out.println(ne.toString());
}
catch (Exception e)
{
out.println(e.toString());
}
%>
done




[flexcoders] Re: LCDS Memory Usage

2008-07-24 Thread Geoffrey
I saw that you can turn cache-items to false and it will only store
the IDs in memory, but at the expense of paging, or at least more
efficient paging.  Is this true?  I thought the docs said that to do
paging it would have to grab all the objects again, then grab the
subset of data you want.

In our particular instance, we have very large objects that are
relatively unique across clients.  Some objects will be shared, but
most won't.  Just trying to forecast how it will effect the server.

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> That is basically how it works but only if you have auto-sync
enabled=true and cache-items=true on your destination settings.   The
auto-sync feature requires that we maintain at least the identities of
all objects managed on every client so that we know where to push
changes.   The goal here is that you don't have to worry about
tracking that and can still easily keep clients in sync.   Also, if
two clients fetch an object with the same id, only one copy is cached.
 If you turn cache-items=false, we cache only the ids, not the items
so we keep a lot less state around (though we do have to go back to
the assembler more often so that is more load on the database).
> 
> If you turn auto-sync off, the server maintains no state but the
synchronization functionality would then only work if you enable
"manual sync" - i.e. where your clients specify subscriptions they
want to listen to and also can specify meta-data that is attached to
all changes made.  That meta-data is used to route changes to the
right subscribed clients.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Geoffrey
> Sent: Wednesday, July 23, 2008 5:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS Memory Usage
> 
> 
> Looking in the LiveCycle Data Services ES Developer's Guide, page 190,
> it states:
> "By default, the Data Management Service caches items returned
> from fill() and getItem() calls and uses cached items to implement
> paging and to build object graphs on the server when implementing lazy
> associations. This causes a complete copy of the managed state of all
> active clients to be kept in each server's memory."
> 
> Here's what I think that means. If I have 100 clients, and each
> client has one managed collection that contains 100 items in it, then
> there would be 10,000 copies residing in memory on the server(100
> objects for 100 users).
> 
> Am I understanding this correctly? Does this seem inefficient? What
> if those objects happened to be really big objects... I mean really
> big. Seems like that would take up a lot of memory on the server.
> 
> Has anyone come up against this in practice?
> 
> Thanks,
> Geoff
>




[flexcoders] LCDS Memory Usage

2008-07-23 Thread Geoffrey
Looking in the LiveCycle Data Services ES Developer's Guide, page 190,
it states:
 "By default, the Data Management Service caches items returned
from fill() and getItem() calls and uses cached items to implement
paging and to build object graphs on the server when implementing lazy
associations. This causes a complete copy of the managed state of all
active clients to be kept in each server's memory."

Here's what I think that means.  If I have 100 clients, and each
client has one managed collection that contains 100 items in it, then
there would be 10,000 copies residing in memory on the server(100
objects for 100 users).

Am I understanding this correctly?  Does this seem inefficient?  What
if those objects happened to be really big objects... I mean really
big.  Seems like that would take up a lot of memory on the server.

Has anyone come up against this in practice?

Thanks,
 Geoff



[flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-07-16 Thread Geoffrey
One last thing I had to do to get it to work.  I added
"-Dacegi.security.strategy=MODE_INHERITABLETHREADLOCAL" to my Tomcat
JVM arguments.  Otherwise, setting and getting the Authentication
object was accessing different instances of some security object.

 ~Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I seem to have got it working.  Thanks for your help jahhaj12345!
> 
> What I ended up doing was to create a custom LoginCommand class.  I
> used the one from here:
> http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds.  I made
> two changes shown below:
> 
> //The name of our Acegi configuration file.
> private static String[] CONFIG_LOCATIONS =
> {"classpath:security-context.xml"};
> 
> //"ldapAuthenticationProvider" is from our Acegi config file, and it
> the name of the bean that is used for authentication via LDAP.
> authenticationProvider =
>
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");
> 
> 
> I then updated services-config.xml and added:
> 
>server="Tomcat"/>
> 
>   Basic
> 
>   ROLE_MANAGERS
>   ROLE_USERS
>  
> 
> 
> //The roles came from the Acegi config file.
> 
> 
> After that, I had to add the [managed] metadata tag to one of my
> ValueObjects and it all seemed to work.
> 
> I'll be honest, I don't really understand why this works, it just
> does.  What I mean by 'works' is that the managed collection on the
> client gets filled with data successfully.  I haven't yet tested
> pushing new entries to that managed collection after the initial fill.
> 
> 
> I hope this post helps someone else.
> 
>  ~Geoff
> 
> --- In flexcoders@yahoogroups.com, "jahhaj12345"  wrote:
> >
> > I don't know of a way to just authenticate the client.  From
everything
> > I've read, you have to authenticate the HTTP and RTMP sessions
> > individually.  For my application, I had to create my own LoginCommand
> > to handle the flex RTMP authentication.
> > 
> > Here's my understanding of how it's working for me:
> > 
> > 1. On my client, I get the channelset to use and then call
> > channelSet.login(username, password).  You could also call the
> > setCredentials on the actual DataService the same way, but my services
> > are all created at runtime on the server instead of being statically
> > defined in services-config.xml.
> > 
> > 2. That channelSet (or dataservice) from above authenticates
through the
> > login-command configured in services-config.xml.  This is where the
> > custom LoginCommand I created is configured.  The doAuthentication
> > function of LoginCommand is as follows:
> > 
> >  public Principal doAuthentication(String username, Object
> > credentials) {
> >  Authentication auth = authenticationProvider.authenticate(new
> > UsernamePasswordAuthenticationToken(username, credentials)); //
> > authenticationProvider is a spring security DaoAuthenticationProvider
> > 
> >  SecurityContextHolder.getContext().setAuthentication(auth);
> >  return auth;
> >  }
> > 
> > This should authenticate the RTMP session.  I don't know if this
is the
> > best way, but it seems to work.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> > >
> > > I'm guessing that we don't implement security the correct way
(or the
> > > best way) right now.  Currently, I have a login State that takes the
> > > username and password and makes an HTTPService call to the JSP page
> > > that does user authentication.  If that comes back successfully,
then
> > > I change State to the main application.
> > >
> > > That seems to take care of all of the HTTP requests, but the RTMP
> > > requests obviously fail (or else I wouldn't be here ;-)).
> > >
> > > I read the docs about using LoginCommand, but I didn't see how that
> > > ties into Acegi.
> > >
> > > I'm wondering if you can authenticate the Flex client, and not just
> > > the session.  If so, wouldn't the sessions (HTTP and RTMP) also be
> > > authenticated since they fall under the FlexClient object?  Just a
> > > thought.
> > >
> > > Geoff
> > >
> > > --- In flexcoders@yahoogroups.com, "jahhaj12345" halvorsonj@ wrote:
> > > >
> > > > I'm having the same problems you are.  I'v

[flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-07-15 Thread Geoffrey
I seem to have got it working.  Thanks for your help jahhaj12345!

What I ended up doing was to create a custom LoginCommand class.  I
used the one from here:
http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds.  I made
two changes shown below:

//The name of our Acegi configuration file.
private static String[] CONFIG_LOCATIONS =
{"classpath:security-context.xml"};

//"ldapAuthenticationProvider" is from our Acegi config file, and it
the name of the bean that is used for authentication via LDAP.
authenticationProvider =
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");


I then updated services-config.xml and added:

  

  Basic

  ROLE_MANAGERS
  ROLE_USERS
 


//The roles came from the Acegi config file.


After that, I had to add the [managed] metadata tag to one of my
ValueObjects and it all seemed to work.

I'll be honest, I don't really understand why this works, it just
does.  What I mean by 'works' is that the managed collection on the
client gets filled with data successfully.  I haven't yet tested
pushing new entries to that managed collection after the initial fill.


I hope this post helps someone else.

 ~Geoff

--- In flexcoders@yahoogroups.com, "jahhaj12345" <[EMAIL PROTECTED]> wrote:
>
> I don't know of a way to just authenticate the client.  From everything
> I've read, you have to authenticate the HTTP and RTMP sessions
> individually.  For my application, I had to create my own LoginCommand
> to handle the flex RTMP authentication.
> 
> Here's my understanding of how it's working for me:
> 
> 1. On my client, I get the channelset to use and then call
> channelSet.login(username, password).  You could also call the
> setCredentials on the actual DataService the same way, but my services
> are all created at runtime on the server instead of being statically
> defined in services-config.xml.
> 
> 2. That channelSet (or dataservice) from above authenticates through the
> login-command configured in services-config.xml.  This is where the
> custom LoginCommand I created is configured.  The doAuthentication
> function of LoginCommand is as follows:
> 
>  public Principal doAuthentication(String username, Object
> credentials) {
>  Authentication auth = authenticationProvider.authenticate(new
> UsernamePasswordAuthenticationToken(username, credentials)); //
> authenticationProvider is a spring security DaoAuthenticationProvider
> 
>  SecurityContextHolder.getContext().setAuthentication(auth);
>  return auth;
>  }
> 
> This should authenticate the RTMP session.  I don't know if this is the
> best way, but it seems to work.
> 
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I'm guessing that we don't implement security the correct way (or the
> > best way) right now.  Currently, I have a login State that takes the
> > username and password and makes an HTTPService call to the JSP page
> > that does user authentication.  If that comes back successfully, then
> > I change State to the main application.
> >
> > That seems to take care of all of the HTTP requests, but the RTMP
> > requests obviously fail (or else I wouldn't be here ;-)).
> >
> > I read the docs about using LoginCommand, but I didn't see how that
> > ties into Acegi.
> >
> > I'm wondering if you can authenticate the Flex client, and not just
> > the session.  If so, wouldn't the sessions (HTTP and RTMP) also be
> > authenticated since they fall under the FlexClient object?  Just a
> > thought.
> >
> > Geoff
> >
> > --- In flexcoders@yahoogroups.com, "jahhaj12345" halvorsonj@ wrote:
> > >
> > > I'm having the same problems you are.  I've been through several
> > > options but haven't found one that's acceptable from a security
> point
> > > of view if you are trying to use the rememberme functionality.
> > >
> > > To get it working without rememberme, provide a login form from your
> > > flex application and once authenticated using form login, use that
> > > username/password combination for the RTMP's ChannelSet login.  And
> > > depending on how you handle authentication on your end, you may need
> > > to provide your own LoginCommand and UserDetailsService.  I've done
> > > both of these and it works.
> > >
> > > Does anyone out there have a way to get rememberme working for RTMP?
> > > I know the problem is cause by the RTMPFlexSession being outside the
> > > HTTPSe

[flexcoders] Re: RTMP and Spring Security(Acegi) Issues

2008-07-14 Thread Geoffrey
I'm guessing that we don't implement security the correct way (or the
best way) right now.  Currently, I have a login State that takes the
username and password and makes an HTTPService call to the JSP page
that does user authentication.  If that comes back successfully, then
I change State to the main application.

That seems to take care of all of the HTTP requests, but the RTMP
requests obviously fail (or else I wouldn't be here ;-)).

I read the docs about using LoginCommand, but I didn't see how that
ties into Acegi.

I'm wondering if you can authenticate the Flex client, and not just
the session.  If so, wouldn't the sessions (HTTP and RTMP) also be
authenticated since they fall under the FlexClient object?  Just a
thought.

Geoff

--- In flexcoders@yahoogroups.com, "jahhaj12345" <[EMAIL PROTECTED]> wrote:
>
> I'm having the same problems you are.  I've been through several
> options but haven't found one that's acceptable from a security point
> of view if you are trying to use the rememberme functionality.  
> 
> To get it working without rememberme, provide a login form from your
> flex application and once authenticated using form login, use that
> username/password combination for the RTMP's ChannelSet login.  And
> depending on how you handle authentication on your end, you may need
> to provide your own LoginCommand and UserDetailsService.  I've done
> both of these and it works.
> 
> Does anyone out there have a way to get rememberme working for RTMP? 
> I know the problem is cause by the RTMPFlexSession being outside the
> HTTPSession.  Is there anyway to sync these up?  Or is there anyway to
> do a single sign-on with RTMP?
> 
> Jason
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I've looked around the net and haven't found anything helpful.  Any
> suggestions would be 
> > great.
> > 
> > Thanks,
> >  Geoff
> > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> > >
> > > I'm wondering if anyone out there has implemented LiveCycle Data
> > > Services using Spring Security as their security layer?
> > > 
> > > I'm having issues with RTMP communications between server/client,
> > > meaning I'm not getting any.  I've modified our existing Java
delegate
> > > to ast as the Assembler for a managed collection.  When the
> > > Assembler's fill() method gets called, it tries to retrieve the
> > > desired information from our Service class.  I get an
> > > AuthenticationCredentialsNotFoundException as seen below:
> > > 
> > > 
> > > org.acegisecurity.AuthenticationCredentialsNotFoundException: An
> > > Authentication object was not found in the SecurityContext
> > >   at
> > > 
> >
>
org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecuri
> > tyInterceptor.java:339)
> > >   at
> > > 
> >
>
org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityIn
> > terceptor.java:254)
> > >   at
> > > 
> >
>
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodS
> > ecurityInterceptor.java:63)
> > >   at
> > > 
> >
>
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMetho
> > dInvocation.java:161)
> > >   at
> > > 
> >
>
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercep
> > t(Cglib2AopProxy.java:630)
> > > ...
> > > 
> > > 
> > > I think it's because the HTTPFlexSession is authenticated, but the
> > > RTMPFlexSession operates outside the context.  I don't know how to
> > > make it authenticated, or to authenticate the client so that all
> > > sessions have valid credentials.
> > > 
> > > Any suggestions would be appreciated.
> > > 
> > > ~Geoff
> > >
> >
>




[flexcoders] Re: RTMP and Spring Security(Acegi) Issues

2008-07-11 Thread Geoffrey
I've looked around the net and haven't found anything helpful.  Any suggestions 
would be 
great.

Thanks,
 Geoff
--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I'm wondering if anyone out there has implemented LiveCycle Data
> Services using Spring Security as their security layer?
> 
> I'm having issues with RTMP communications between server/client,
> meaning I'm not getting any.  I've modified our existing Java delegate
> to ast as the Assembler for a managed collection.  When the
> Assembler's fill() method gets called, it tries to retrieve the
> desired information from our Service class.  I get an
> AuthenticationCredentialsNotFoundException as seen below:
> 
> 
> org.acegisecurity.AuthenticationCredentialsNotFoundException: An
> Authentication object was not found in the SecurityContext
>   at
> 
org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecuri
tyInterceptor.java:339)
>   at
> 
org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityIn
terceptor.java:254)
>   at
> 
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodS
ecurityInterceptor.java:63)
>   at
> 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMetho
dInvocation.java:161)
>   at
> 
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercep
t(Cglib2AopProxy.java:630)
> ...
> 
> 
> I think it's because the HTTPFlexSession is authenticated, but the
> RTMPFlexSession operates outside the context.  I don't know how to
> make it authenticated, or to authenticate the client so that all
> sessions have valid credentials.
> 
> Any suggestions would be appreciated.
> 
> ~Geoff
>





[flexcoders] RTMP and Spring Security(Acegi) Issues

2008-07-10 Thread Geoffrey
I'm wondering if anyone out there has implemented LiveCycle Data
Services using Spring Security as their security layer?

I'm having issues with RTMP communications between server/client,
meaning I'm not getting any.  I've modified our existing Java delegate
to ast as the Assembler for a managed collection.  When the
Assembler's fill() method gets called, it tries to retrieve the
desired information from our Service class.  I get an
AuthenticationCredentialsNotFoundException as seen below:


org.acegisecurity.AuthenticationCredentialsNotFoundException: An
Authentication object was not found in the SecurityContext
at
org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339)
at
org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:254)
at
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:63)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630)
...


I think it's because the HTTPFlexSession is authenticated, but the
RTMPFlexSession operates outside the context.  I don't know how to
make it authenticated, or to authenticate the client so that all
sessions have valid credentials.

Any suggestions would be appreciated.

~Geoff



[flexcoders] Re: Missing AsnDecoder Class - SOLVED

2008-07-07 Thread Geoffrey
I was missing the flex-messaging-req.jar.

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Odd, the AsnDecoder class isn't listed in the online LCDS Java API. 
> Maybe they didn't release this class.
> 
> I can't seem to find any info about this class online.
> 
> Jeeze, what the heck did I do?
> 
> Geoff
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I seem to have the wrong version of the flex-messaging jar because
> > when I start my server I get the spew below.  I looked at all the
> > flex-messaging jars on my system and I don't see it anywhere.  All
> > copies have the same manifest of:
> >   Manifest-Version: 1.0
> >   Ant-Version: Apache Ant 1.6.2
> >   Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
> >   Sealed: false
> >   Implementation-Title: LiveCycle Data Services 2.5.1
> >   Implementation-Version: 2.5.1.173666
> >   Implementation-Vendor: Adobe Systems Inc.
> > 
> > Any ideas?
> > 
> > Jul 2, 2008 10:32:27 AM
org.apache.catalina.core.ApplicationContext log
> > SEVERE: StandardWrapper.Throwable
> > java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
> > at
> flex.messaging.license.StandardLicense.(StandardLicense.java:50)
> > at
> >
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
> > at
> >
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
> > at
> >
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
> > at
> >
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
> > at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> > at
> >
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> > at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> > at
> >
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > at
> >
org.apache.catalina.core.StandardService.start(StandardService.java:516)
> > at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> > Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
> > loadOnStartup
> > SEVERE: Servlet /air-lcds threw load() exception
> > java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
> > at
> flex.messaging.license.StandardLicense.(StandardLicense.java:50)
> > at
> >
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
> > at
> >
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
> > at
> >
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
> > at
> >
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
> > at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> > at
> >
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> > at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> > at
> >
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at
> org.apache.catalina.core.StandardEngine

[flexcoders] Re: Missing AsnDecoder Class

2008-07-02 Thread Geoffrey
Odd, the AsnDecoder class isn't listed in the online LCDS Java API. 
Maybe they didn't release this class.

I can't seem to find any info about this class online.

Jeeze, what the heck did I do?

Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I seem to have the wrong version of the flex-messaging jar because
> when I start my server I get the spew below.  I looked at all the
> flex-messaging jars on my system and I don't see it anywhere.  All
> copies have the same manifest of:
>   Manifest-Version: 1.0
>   Ant-Version: Apache Ant 1.6.2
>   Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
>   Sealed: false
>   Implementation-Title: LiveCycle Data Services 2.5.1
>   Implementation-Version: 2.5.1.173666
>   Implementation-Vendor: Adobe Systems Inc.
> 
> Any ideas?
> 
> Jul 2, 2008 10:32:27 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
>   at
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
>   at
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
>   at
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
>   at
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
>   at
> flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>   at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>   at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
>   at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>   at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /air-lcds threw load() exception
> java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
>   at
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
>   at
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
>   at
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
>   at
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
>   at
> flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>   at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>   at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
>   at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>   at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Met

[flexcoders] Missing AsnDecoder Class

2008-07-02 Thread Geoffrey
I seem to have the wrong version of the flex-messaging jar because
when I start my server I get the spew below.  I looked at all the
flex-messaging jars on my system and I don't see it anywhere.  All
copies have the same manifest of:
  Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.6.2
  Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
  Sealed: false
  Implementation-Title: LiveCycle Data Services 2.5.1
  Implementation-Version: 2.5.1.173666
  Implementation-Vendor: Adobe Systems Inc.

Any ideas?

Jul 2, 2008 10:32:27 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
at 
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
at
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
at
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
at
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /air-lcds threw load() exception
java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
at 
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
at
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
at
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
at
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 2, 2008 10:32:27 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 2, 2008 10:32:27 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-843
Jul 2, 2008 10:32:27 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 2, 2008 10:32:27 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Jul 2, 2008 10:32:27 AM org.apache.catali

[flexcoders] Re: Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Geoffrey
Just what I was looking for.  Thanks!

 Geoff

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Geoffrey,
> 
> Good info here: http://www.flexlive.net/?p=102
> <http://www.flexlive.net/?p=102>
> 
> For long polling, looks like you can change the value for
>  in WEB-INF/flex/services-config.xml.  For
> streaming it's .  After the limits are met, new
> connections fall back to simple polling.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I know there is a hardware imposed limitation to the number of BlazeDS
> > real-time streaming connections that you can establish. I've heard
> > it's in the hundreds, so I'm trying to see how many I can connect to
> > my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
> >
> > Oddly enough after the 10th client logs in, all subsequent logins
> > revert to a polling connection. Is there some limit on the number of
> > streaming connections you can have before they fall back to polling?
> > Something else I'm missing?
> >
> > BTW, even with polling I can establish 200 connections and the server
> > barely blinks except for an increase in CPU usage due to all of that
> > polling.
> >
> > Thanks,
> > Geoff
> >
>




[flexcoders] Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Geoffrey
I know there is a hardware imposed limitation to the number of BlazeDS
real-time streaming connections that you can establish.  I've heard
it's in the hundreds, so I'm trying to see how many I can connect to
my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).

Oddly enough after the 10th client logs in, all subsequent logins
revert to a polling connection.  Is there some limit on the number of
streaming connections you can have before they fall back to polling? 
Something else I'm missing?

BTW, even with polling I can establish 200 connections and the server
barely blinks except for an increase in CPU usage due to all of that
polling.

Thanks,
 Geoff



[flexcoders] Re: Automation libraries kill my app

2008-05-27 Thread Geoffrey
I added a mouseevent handlers to teh stage and this is what I see when
I click on a textarea:

The MouseEvent's currentTarget is the application root.  The target is
a VBox.  I'm not really sure where this VBox is comming from.  Is it
something automation adds in there?  The TextArea is inside a
FormItem, Form, CustomCanvas, CustomPanel, Canvas, Canvas, Application.

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, "Sangavi G" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> This happens if there is an invisible container on the top of these
> controls.
> 
> The solution you can try is to add a mouseClick event listener to the
> application stage and find out the container which is overlapping these
> controls. (or you can find this out even in the design view)
> 
> Once you get the container you can try adding the mouseEnabled=false for
> that container.
> 
> Regards,
> Sangavi
> 
> 
> On Sat, May 24, 2008 at 12:08 AM, Geoffrey <[EMAIL PROTECTED]> wrote:
> 
> >   I'm trying to use FunFX(http://funfx.rubyforge.org/) to do some
> > automated testing of our GUI. I noticed that after I add the
> > automation libraries to the compiler options of my main project, I can
> > no longer interact with various parts of the UI using the mouse. This
> > includes textinput, textarea, buttons, numericstepper, etc.
> >
> > I can tab to these controls, but I can not click on them to bring
> > focus to it. Very odd.
> >
> > I've added the libraries in the main project's Additional Compiler
> > Arguments property under Flex Compiler like so:
> > -include-libraries "C:\flex-sdk\frameworks\libs\automation.swc"
> > "C:\flex-sdk\frameworks\libs\automation_agent.swc"
> >
> > Any thought?
> >
> > Geoff
> >
> >  
> >
>




[flexcoders] Automation libraries kill my app

2008-05-23 Thread Geoffrey
I'm trying to use FunFX(http://funfx.rubyforge.org/) to do some
automated testing of our GUI.  I noticed that after I add the
automation libraries to the compiler options of my main project, I can
no longer interact with various parts of the UI using the mouse.  This
includes textinput, textarea, buttons, numericstepper, etc.

I can tab to these controls, but I can not click on them to bring
focus to it.  Very odd.

I've added the libraries in the main project's Additional Compiler
Arguments property under Flex Compiler like so:
-include-libraries "C:\flex-sdk\frameworks\libs\automation.swc"
"C:\flex-sdk\frameworks\libs\automation_agent.swc"

Any thought?

 Geoff



[flexcoders] Stress Testing a BlazeDS Application

2008-05-19 Thread Geoffrey
Is there a FREE way to stress test a real-time messaging BlazeDS
application?

I tried using JMeter, but I can't capture all of the http request data
to set up the test because you need to use a proxy for that, and
BlazeDS falls back to a polling channel if a proxy is used.

I looked in flexunit, but that doesn't seem like it's appropriate for
this type of test.  I want to establish 100, 200, 300,... clients
until it breaks the server.

All that needs to happen is a login(via acegi security) and a Consumer
subscription request.  Unfortunately, acegi requires a jsessionid for
each http request to validate, and that's what I'm having difficulty
with.  Basically, any requests to the server are interrupted by acegi
and the jsessionid is validated.  If the validation is successful, the
web asset is fetched.  If validation fails, the login JSP page is
returned.

This is also causing issues with an AIR app that I have that has a
flex login interface.  The jesssionid doesn't seem to get cached
within the AIR http request headers.

Thanks for any help.
 ~Geoff~



[flexcoders] Re: Can AIR app get Workstation Credentials?

2008-05-15 Thread Geoffrey
I've decided to create a login panel to allow the user to login first,
but I've run into a snag.  We're using acegi as our security layer,
and it intercepts all requests checking for state.

I thought that I could just call the j_acegi_security_check.jsp
directly supplying it with user and password, but it returns the
acegilogin.jsp page.  I noticed that my initial request to the
j_acegi_security_check.jsp page had no jsessionid associated with it,
so I thought that was the problem.  To test that idea I created
another HTTPSession request that gets spit out upon
applicationComplete to a bogus page on the server.  Now my AIR session
seems to have the JSESSIONID cookie set because when I send the real
'logon' request, I see the same JSESSIONID in the header.

Unfortunately, this didn't work either because I still get the
acegilogin.jsp page returned to me.

The only real difference I see between the web and AIR requests is
that the 'Referer' is different in the header.  From AIR, the referer
is "app:/AirMain.swf", from the web version of our app it's
"acegilogin.jsp;jsessionid=098CEB40890309539C7E50EF410B54DE".

Does anyone have experience integrating AIR and acegi?


--- In flexcoders@yahoogroups.com, "Kevin Aebig" <[EMAIL PROTECTED]> wrote:
>
> Isn't this a perfect usage of the EncryptedStore feature? Why not
save the
> login credentials when the person first logs in, than save them via the
> EncryptedStore for the remaining usage.
> 
>  
> 
> !k
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, May 14, 2008 3:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can AIR app get Workstation Credentials?
> 
>  
> 
> Our flex app requires a login(HTML page) before launching the main
> app(the SWF does not handle the logging in). 
> 
> Converting to an AIR app and I was wondering if I could get the logged
> in user's credentials from the workstation so we don't require a login
> screen.
>




[flexcoders] Re: insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread Geoffrey
I believe you mean WindowedApplication, not nativeWindow.


--- In flexcoders@yahoogroups.com, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>
> Is it the status bar? If so, set the nativeWindow's showStatusBar =
> false.
>  
> This one got me! (I felt stupid :-( )
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jhno
> Sent: 15 May 2008 13:52
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] insidious gray bar in FULLSCREEN with OS X Air app
>  
> Greetings FC's, 
> 
> Running a Flex 3 AIR application in FULLSCREEN mode results in a gray
> bar at the bottom of the screen that I can not, for the life of me,
> get rid of. 
> 
> The bar is clearly the bottom component of an OS X window. I have
> tried adjusting the window settings in x-app.xml, to no avail. The
> problem occurs even with a maximally simple Flex app.
> 
> I have seen this on several different systems and all monitor
> resolutions: it is very consistent. These are OS X 10.5 systems, the
> most recent Flex and AIR downloads from Adobe. 
> 
> Has anybody else seen this problem?
> 
> Thanks big foaming heaps, 
> sudsminimal
>  
> 
> __
> This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
> __
>




[flexcoders] Re: Can AIR app get Workstation Credentials?

2008-05-14 Thread Geoffrey
Yea, I guess, it would be nice to not require a login.  You know, a
single sign-on approach.


--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> I don't think is possible. And wouldn't it be a security problem if it
> was?
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, May 14, 2008 2:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can AIR app get Workstation Credentials?
> 
>  
> 
> Our flex app requires a login(HTML page) before launching the main
> app(the SWF does not handle the logging in). 
> 
> Converting to an AIR app and I was wondering if I could get the logged
> in user's credentials from the workstation so we don't require a login
> screen.
>




[flexcoders] Can AIR app get Workstation Credentials?

2008-05-14 Thread Geoffrey
Our flex app requires a login(HTML page) before launching the main
app(the SWF does not handle the logging in). 

Converting to an AIR app and I was wondering if I could get the logged
in user's credentials from the workstation so we don't require a login
screen.



[flexcoders] Re: Convert Flex App to AIR App

2008-05-07 Thread Geoffrey
Thanks Robert, looks interesting!

The Ant idea was interesting too, but I have a feeling that in the 
future we'd want to use some AIR-specific APIs, and I don't think an 
Ant task could accomplish that.  The pattern that article outlines 
sounds just right for the job.

~Geoff

--- In flexcoders@yahoogroups.com, "Robert Cadena" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Geoff,
> 
> Here's a link that should be helpful:
> 
http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html
> 
> Some time ago I dealt with the same issue on Flex 2 beta.  
Basically, the
> way I dealt with it was to extract all the functionality into a 
Library
> Project,  then create an AIR and a Flex project that is simply 
a "shell"
> that brings in the library project.
> 
> I did this when I was too lazy to make an ant build file that 
could generate
> both Flex and AIR from the same project and because it was easier 
for
> developers not used to ant to pick up and use in Flex Builder.  If 
I had the
> time I would make an ant file but separating into a library is 
quick and
> easy.
> 
> best of luck
> 
> /r
> http://www.searchcoders.com/
> 
> 
> On Wed, May 7, 2008 at 10:18 AM, Geoffrey <[EMAIL PROTECTED]> wrote:
> 
> > I have an existing Flex app... a pretty complex one.  Multiple
> > projects, J2EE backend, RemoteObject calls, BlazeDS messaging 
with
> > JMS, etc, etc.
> >
> > What's the best way to convert this existing app to an AIR app?  
Would
> > it be possible to just reference the SWF from the "main" Flex 
app?
> > I'd rather not copy the entire "main" flex project into the newly
> > created AIR package.  That would be a lot of duplicate code.
> >
> > Thanks,
> > Geoff
> >
> >
> > 
> >
> > --
> > 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] Convert Flex App to AIR App

2008-05-07 Thread Geoffrey
I have an existing Flex app... a pretty complex one.  Multiple 
projects, J2EE backend, RemoteObject calls, BlazeDS messaging with 
JMS, etc, etc.

What's the best way to convert this existing app to an AIR app?  Would 
it be possible to just reference the SWF from the "main" Flex app?  
I'd rather not copy the entire "main" flex project into the newly 
created AIR package.  That would be a lot of duplicate code.

Thanks,
Geoff



[flexcoders] Re: Can't connect to JMS with BlazeDS

2008-04-21 Thread Geoffrey
This is all I see:

[BlazeDS] [Service.Message.JMS] JMS consumer for JMS destination
'MyTopic' is being removed from the JMS adapter due to the following
error: MyTopic
[BlazeDS] [Service.Message.JMS] JMS consumer for JMS destination
'MyTopic' is stopping.
[BlazeDS] [Service.Message.JMS] The corresponding MessageClient for
JMS consumer for JMS destination 'MyTopic' is being invalidated
[BlazeDS] [Service.Message] Warning: could not find MessageClient for
clientId in pushMessageToClients: 219F9B21-7B1A-57EA-730F-0051B4FBD6F1
for destination: flex-jms-topic
[BlazeDS] [Service.Message] Warning: could not find MessageClient for
clientId in pushMessageToClients: 219F9B21-7B1A-57EA-730F-0051B4FBD6F1
for destination: flex-jms-topic


--- In flexcoders@yahoogroups.com, "meteatamel" <[EMAIL PROTECTED]> wrote:
>
> Can you enable server side logging for JMSAdapter and let us know what
> you are seeing? To enable server side logging, go to
> services-config.xml and under logging section, make sure you have
> debug level and under patterns, have Service.Message.JMS.
> 
> -Mete
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I'm trying to connect to our JMS service (Apache ActiveMQ), but am not
> > having much luck.  Here are some config files.
> > 
> > message-config.xml
> > 
> >   
> >   
> >
> > true
> > .
> >
> >
> > Topic
> > javax.jms.TextMessage
> > TopicConnectionFactory
> > MyTopic
> > NON_PERSISTENT
> > DEFAULT_PRIORITY
> > "true"
> > AUTO_ACKNOWLEDGE
> > 1
> > 
> >  
> >   Context.SECURITY_PRINCIPAL
> >   userA
> >  
> >  
> >   Context.SECURITY_CREDENTIALS
> >   pw123
> >  
> >  
> >   Context.PROVIDER_URL
> >   tcp://localhost:61616
> >  
> >  
> >   Context.INITIAL_CONTEXT_FACTORY
> >   org.apache.activemq.jndi.
> >  ActiveMQInitialContextFactory
> >  
> > 
> >
> >   
> > 
> > 
> > 
> > I subscribe to this topic in my Application's creationComplete
handler.
> > // Subscribe to JMS topic
> > __jmsTopicConsumer = new Consumer();
> > __jmsTopicConsumer.destination = "flex-jms-topic";
> > __jmsTopicConsumer.subtopic = "data.*";
> > __jmsTopicConsumer.addEventListener(MessageEvent.MESSAGE,
> > onJMSMessageResult);
> > __jmsTopicConsumer.addEventListener(MessageFaultEvent.FAULT,
> > onJMSMessageFault);
> > __jmsTopicConsumer.subscribe();
> > 
> > 
> > Here's my ActiveMQ configuration, which is mostly the default
settings.
> > activemq.xml
> > http://www.springframework.org/schema/beans";
> >xmlns:amq="http://activemq.org/config/1.0";
> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >xsi:schemaLocation="http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >http://activemq.org/config/1.0
> > http://activemq.apache.org/schema/activemq-core.xsd
> >http://activemq.apache.org/camel/schema/spring
> > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>
> > 
> >  >
>
class="org.springframework.beans.factory.config.PropertyPlaceholderConfi\
> > gurer"/>
> >   http://activemq.org/config/1.0";
> >   brokerName="localhost"
> >   dataDirectory="${activemq.base}/data">
> >
> > 
> >  
> > >producerFlowControl="false"
> >memoryLimit="1mb">
> >
> > 
> >
> >
> > 
> >
> >   
> >  
> > 
> >
> >
> >  > uri="tcp://localhost:61616"
> > discoveryUri="multicast://default"/>
> >  > uri="ssl://localhost:61617"/>
> >  > uri="stomp://localhost:61613"/>
> >  > uri="xmpp://localhost:61222"/>
> >
> >
> >  > uri="static://tcp://localhost:61616"/>
> >
> >   
> >   
> >   
> > 
> > 
> > 
> > I even configured a static topic.
> > jndi.properties
> > java.naming.factory.initial =
> > org.apache.activemq.jndi.ActiveMQInitialContextFactory
> > java.naming.provider.url = vm://localhost
> > topic.MyTopic = FOO.MyTopic
> > 
> > 
> > I know the static topic is created because I can go to the
ActiveMQ web
> > console and see the topic 'MyTopic' listed.
> > 
> > Any help would be appreciated as I've been at this for a few days now.
> > 
> > Thanks,
> >Geoff
> >
>




[flexcoders] Can't connect to JMS with BlazeDS

2008-04-21 Thread Geoffrey
I'm trying to connect to our JMS service (Apache ActiveMQ), but am not
having much luck.  Here are some config files.

message-config.xml

  
  
   
true
.
   
   
Topic
javax.jms.TextMessage
TopicConnectionFactory
GTBTopic
NON_PERSISTENT
DEFAULT_PRIORITY
"true"
AUTO_ACKNOWLEDGE
1

 
  Context.SECURITY_PRINCIPAL
  userA
 
 
  Context.SECURITY_CREDENTIALS
  pw123
 
 
  Context.PROVIDER_URL
  tcp://localhost:61616
 
 
  Context.INITIAL_CONTEXT_FACTORY
  org.apache.activemq.jndi.
 ActiveMQInitialContextFactory
 

   
  



I subscribe to this topic in my Application's creationComplete handler.
// Subscribe to JMS topic
__jmsTopicConsumer = new Consumer();
__jmsTopicConsumer.destination = "flex-jms-topic";
__jmsTopicConsumer.subtopic = "data.*";
__jmsTopicConsumer.addEventListener(MessageEvent.MESSAGE,
onJMSMessageResult);
__jmsTopicConsumer.addEventListener(MessageFaultEvent.FAULT,
onJMSMessageFault);
__jmsTopicConsumer.subscribe();


Here's my ActiveMQ configuration, which is mostly the default settings.
activemq.xml
http://www.springframework.org/schema/beans";
   xmlns:amq="http://activemq.org/config/1.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
   http://activemq.org/config/1.0
http://activemq.apache.org/schema/activemq-core.xsd
   http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>


  http://activemq.org/config/1.0";
  brokerName="localhost"
  dataDirectory="${activemq.base}/data">
   

 
   
   

   
   

   
  
 

   
   




   
   

   
  
  
  



I even configured a static topic.
jndi.properties
java.naming.factory.initial =
org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url = vm://localhost
topic.MyTopic = FOO.MyTopic


I know the static topic is created because I can go to the ActiveMQ web
console and see the topic 'MyTopic' listed.

Any help would be appreciated as I've been at this for a few days now.

Thanks,
   Geoff



[flexcoders] Re: Can't Get Socket Policy File

2008-03-24 Thread Geoffrey
No ideas?

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> A few points of clarrification.
> 
> The "OK: Policy file accepted" status was there because I tried
> manually loading the policy file by doing:
> flash.system.Security.loadPolicyFile
("http://:843/crossdomain.xml");
> When I removed that line, I no longer get the OK status.
> 
> My crossdomain.xml file looks like this:
> 
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> 
xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/Polic
yFileSocket.xsd">
> 
> 
> 
> 
> I'm also seeing this error:
> Error: Request for resource at xmlsocket://: by 
requestor
> from http://:8080/flex/bin/Main.swf is denied due to lack 
of
> policy file permissions.
> 
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > Downloaded the latest Flash Player and parts of our app that 
rely on
> > XML socket connection broke.  I see that you need to explicitly 
allow
> > socket connections now via a crossdomain.xml file.  Best 
practice is
> > to host it on port 843.  I think I've done that, but my FP 
doesn't
> > seem to register it.
> > 
> > I'm getting the following status reported in my policyfiles.txt 
file:
> > 
> >   OK: Policy file accepted: http://:843/crossdomain.xml
> >   Warning: Timeout on xmlsocket://:843 (at 3 seconds) 
while
> > waiting for socket policy file.  This should not cause any 
problems,
> > but see http://www.adobe.com/go/strict_policy_files for an 
explanation.
> > 
> > Well, it does cause a problem, and these two messages seem to 
conflict
> > each other.  Why does the error state a URL 
of "xmlsocket://.". 
> > What's "xmlsocket"?  Never heard of that.  Is my Tomcat config
> > incorrect?  I added a new connector to the server.xml file like 
so:
> > 
> > 
> > If I point my browser to http://localhost:843/crossdomain.xml, I 
can
> > fetch the file, so this has me scratching my head!
> > 
> > Any thought appreciated.
> >   Geoff
> >
>




[flexcoders] Re: BlazeDS Subtopics from Java - SOLVED

2008-03-12 Thread Geoffrey
Trial and error solved this since I couldn't find any examples or 
documentation.

The AsyncMessage object in the Java class needs to be set up like 
this:
...
msg.setDestination("siteMessages");
msg.setHeader("DSSubtopic", "siteData.userSummary");
...

"siteMessages" is the name of the destination set up in messaging-
config.xml.  You also need to specify a DSSubtopic in the 
AsyncMessage header.

The Consumer(from AS or MXML) needs to have:
siteMessagesConsumer.subtopic = "siteData.*";

I found out that you can't just specify "userSummary" in the 
DSSubtopic and set "siteMessagesConsumer.subtopic = '*'".  This 
resulted in an error when trying to actually publish a message.  The 
subtopic must be nested, "siteData.*".

Hope this helps someone else.
  Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I see plenty of examples of how to do subtopics all from MXML/AS 
> code, but how to you create a message in Java that has a subtopic?
> 
> Here are some code snippets:
> 
> 
> :::messaging-config.xml:::
> 
> 
> 
> 1000
> true
> .
> 
> 
> 
> 
> 
> 
> 
> :::main.mxml:::
> 
> public function onCreationComplete():void {   
>   siteMessagesConsumer.destination = "siteMessages";
>   siteMessagesConsumer.subtopic = "*";
>   siteMessagesConsumer.subscribe();
> }
> 
> public function onSiteMessages( event:MessageEvent ):void {   
>   trace("Got it!");
> }
> 
> 
>id="siteMessagesConsumer"
>   message="onSiteMessages(event)"/>
> 
> 
> :::MyDelegate.java:::
> private void sendFlexMessage() throws MyException {
>   MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
>   String clientID = UUIDUtils.createUUID();
> 
>   // Generate a message
>   AsyncMessage msg = new AsyncMessage();
>   msg.setDestination("siteMessages.allUsers");
>   msg.setClientId(clientID);
>   msg.setMessageId(UUIDUtils.createUUID());
>   msg.setTimestamp(System.currentTimeMillis());
>   msg.setBody(getSomeObject());
> 
>   // Send a message
>   msgBroker.routeMessageToService(msg, null);
> }
> 
> The sendFlexMessage() method is called from somewhere else.  This 
> worked when my destination was just "siteMessages".  But I want to 
> send subtopics 
> like "siteMessages.allUsers", "siteMessages.allTeams", etc.  I 
> looked at the Java API for this stuff and saw nothing that jumped 
> out like a setSubTopic() method, so I assumed that it was as 
simple 
> as setting the destination to "something.something".  That seems 
to 
> be the way they did it in the MXML/AS examples I saw, but when I 
try 
> to send the message I get an error saying that there is 
> no "siteMessages.allUsers" destination.
> 
> Any suggestions would be appreciated.
>




[flexcoders] Re: Can Flex 2.01 work with blazeds?

2008-03-11 Thread Geoffrey
In Flex 2.0.1, the attribute is "uri" not "url".  You would probably
also need to add the 'messageTypes' attribute to the service tag for:
proxy-config.xml
messaging-config.xml
remoteingConfig.xml

You'll see the values required in your Flex 2.0.1 config files. 

Geoff

--- In flexcoders@yahoogroups.com, "candysmate" <[EMAIL PROTECTED]> wrote:
>
> I tried hooking up Flex 2.01 with the blazeds turnkey download and got
> 
> "unexpected attribute 'url' found in 'endpoint' from file: services-
> config.xml"
> 
> so .. er 
>




[flexcoders] Re: Setting Chart Origin

2008-03-03 Thread Geoffrey
I've created a JIRA issue(Feature Request) for this.  If anyone 
thinks this would be a useful feature, please vote for it.

Issue number: FLEXDMV-1671
https://bugs.adobe.com/jira/browse/FLEXDMV-1671


Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I do use the minimum property, but that doesn't mean it's the 
> origin.  I have a linear axis on the y axis and that has values 
that 
> range from a negative to a positive and the origin line was drawn 
at 
> 0 (zero).  That wasn't my doing.
> 
> I think you should be able to set the origin, especially if you 
have 
> a non-zero based axis.
> 
>   Geoff
> 
> --- In flexcoders@yahoogroups.com, "Sunil Bannur"  
> wrote:
> >
> > Use the minimum property of the Axis
> >  
> > Thanks
> > -Sunil
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Geoffrey
> > Sent: Friday, February 29, 2008 9:37 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Setting Chart Origin
> > 
> > 
> > 
> > I've looked at every property/method of PlotChart, DateTimeAxis, 
> and a
> > few other classes, 
> > and I don't see anything about setting the origin. Maybe it 
can't 
> be
> > done
> > 
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Geoffrey"  wrote:
> > >
> > > I removed a horizontal origin by doing this:
> > > 
> > > 
> > > 
> > > 
> > > But now I want to show the vertical origin, and set it to a 
> specific
> > > date (since my horizontal axis is using a DateTimeAxis). Can 
> this be
> > > done?
> > > 
> > > Thanks,
> > > Geoff
> > >
> >
>




[flexcoders] Re: DateTimeAxis does not work correctly when "minField" set?

2008-02-29 Thread Geoffrey
Try setting labelUnits="months" on your DateTimeAxis.  If that 
doesn't work, then I'm not sure what the answer is.

  Geoff

--- In flexcoders@yahoogroups.com, "Nate Pearson" <[EMAIL PROTECTED]> 
wrote:
>
> Thanks for the reply!
> 
> That worked, now it says 2008 and 2009. 
> 
> I set my dataUnits to months on my datetimeaxis.  I still only see
> years though
> 
> Is there a way to custom render the tick marks on that axis?
> 
> Thanks!
> 
> Nate
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I thought that I read somewhere that Flex assumes 2 digit dates 
are 
> > based off of 1900.  Try setting the dates in your xml file to 4 
> > character dates(2007, 2008, and 2009).
> > 
> >   Geoff
> > 
> > --- In flexcoders@yahoogroups.com, "Nate Pearson"  
> > wrote:
> > >
> > > Bump again.  Someone has to have run into this before.
> > > 
> > > I appreciate any help.
> > > 
> > > -Nate
> > > 
> > > --- In flexcoders@yahoogroups.com, "Nate Pearson" 
 
> > wrote:
> > > >
> > > > Anyone?
> > > > 
> > > > Bump.
> > > > 
> > > > 
> > > > 
> > > > --- n flexcoders@yahoogroups.com, "Nate Pearson" 
 
> > wrote:
> > > > >
> > > > > hey, I'm trying to make some floating bars with dates.  If 
> > minField is
> > > > > set under my bar series the dates come up at 1908 and 
1909.  
> > If i
> > > > > remove minField the dates work correctly. Any ideas?
> > > > > 
> > > > > Code below.  Place the xml file in date/SampleData.xml.  
Try 
> > it once
> > > > > the way it is and once without the "minField"
> > > > > 
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute">
> > > > >   
> > > > >   
> > > > >   
> > > > >> > > dataProvider="{dataSet.Sample}">
> > > > >   
> > > > >> minField="start"/>
> > > > >   
> > > > >   
> > > > >> dataUnits="days"  />
> > > >  
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > > 
> > > > > 
> > > > > 
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > > 
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: DateTimeAxis does not work correctly when "minField" set?

2008-02-29 Thread Geoffrey
I thought that I read somewhere that Flex assumes 2 digit dates are 
based off of 1900.  Try setting the dates in your xml file to 4 
character dates(2007, 2008, and 2009).

  Geoff

--- In flexcoders@yahoogroups.com, "Nate Pearson" <[EMAIL PROTECTED]> 
wrote:
>
> Bump again.  Someone has to have run into this before.
> 
> I appreciate any help.
> 
> -Nate
> 
> --- In flexcoders@yahoogroups.com, "Nate Pearson"  
wrote:
> >
> > Anyone?
> > 
> > Bump.
> > 
> > 
> > 
> > --- n flexcoders@yahoogroups.com, "Nate Pearson"  
wrote:
> > >
> > > hey, I'm trying to make some floating bars with dates.  If 
minField is
> > > set under my bar series the dates come up at 1908 and 1909.  
If i
> > > remove minField the dates work correctly. Any ideas?
> > > 
> > > Code below.  Place the xml file in date/SampleData.xml.  Try 
it once
> > > the way it is and once without the "minField"
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute">
> > >   
> > >   
> > >   
> > >> dataProvider="{dataSet.Sample}">
> > >   
> > >   
> > >   
> > >   
> > >   
> >  
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > > 
> > > 
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > > 
> > >
> >
>




[flexcoders] Re: Setting Chart Origin

2008-02-29 Thread Geoffrey
I do use the minimum property, but that doesn't mean it's the 
origin.  I have a linear axis on the y axis and that has values that 
range from a negative to a positive and the origin line was drawn at 
0 (zero).  That wasn't my doing.

I think you should be able to set the origin, especially if you have 
a non-zero based axis.

  Geoff

--- In flexcoders@yahoogroups.com, "Sunil Bannur" <[EMAIL PROTECTED]> 
wrote:
>
> Use the minimum property of the Axis
>  
> Thanks
> -Sunil
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Friday, February 29, 2008 9:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Setting Chart Origin
> 
> 
> 
> I've looked at every property/method of PlotChart, DateTimeAxis, 
and a
> few other classes, 
> and I don't see anything about setting the origin. Maybe it can't 
be
> done
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "Geoffrey"  wrote:
> >
> > I removed a horizontal origin by doing this:
> > 
> > 
> > 
> > 
> > But now I want to show the vertical origin, and set it to a 
specific
> > date (since my horizontal axis is using a DateTimeAxis). Can 
this be
> > done?
> > 
> > Thanks,
> > Geoff
> >
>




[flexcoders] Re: Best practices for setting up large applications?

2008-02-29 Thread Geoffrey
Yes, we use Maven to handle dependencies.  We also use Cruiseconrol 
for automated builds, SVN for version control, and WTP for pushing 
all the stuff to our web server.

So far, the "all in one" project sounds the best.


--- In flexcoders@yahoogroups.com, VELO <[EMAIL PROTECTED]> wrote:
>
> U can use maven to help you to handle dependencies.
> http://code.google.com/p/israfil-mojo/
> 
> VELO
> 
> On Fri, Feb 29, 2008 at 9:38 AM, Gregor Kiddie <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > We have 52 modules / libraries split roughly 1/3 to 2/3s, and a 
single main
> > application.
> >
> >
> >
> > Dozens of views, and dozens of custom components.
> >
> >
> >
> > Our biggest problem is dependency management between the 
libraries and
> > modules. There is frequent refactoring of a module to pull code 
out into a
> > library when its identified as being needed.
> >
> >
> >
> > Full build, including generating vos, compiling java code, 
compiling flex
> > code, and deploying to the server is roughly 16 minutes.
> >
> >
> >
> > Gk.
> >
> >
> > Gregor Kiddie
> >  Senior Developer
> >  INPS
> >
> > Tel:   01382 564343
> >
> > Registered address: The Bread Factory, 1a Broughton Street, 
London SW8 3QJ
> >
> > Registered Number: 1788577
> >
> > Registered in the UK
> >
> > Visit our Internet Web site at www.inps.co.uk
> >
> > The information in this internet email is confidential and is 
intended
> > solely for the addressee. Access, copying or re-use of 
information in it by
> > anyone else is not authorised. Any views or opinions presented 
are solely
> > those of the author and do not necessarily represent those of 
INPS or any of
> > its affiliates. If you are not the intended recipient please 
contact
> > [EMAIL PROTECTED]
> >
> >  
> >
> >
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of tomeuchre
> >  Sent: 28 February 2008 23:03
> >  To: flexcoders@yahoogroups.com
> >  Subject: [flexcoders] Re: Best practices for setting up large 
applications?
> >
> >
> >
> >
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >  >
> >  > We currently have a master project that links in 25 other 
projects
> >  to
> >  > build our overall application. The problem with this is that 
there
> >  > seems to be a lot of inner dependencies b/w the projects 
(i.e. one
> >  > project is a collection of utilities, and several other 
projects use
> >  > these utilities). Builds also seem to take forever when you 
change
> >  a
> >  > project that is linked to many other projects.
> >  >
> >  > We initially thought that this would be a good way to set up 
our
> >  > application so we could take out certain parts to customize 
our
> >  > offerings to customers. Just not sure that it's really giving 
the
> >  > advantages we initially thought.
> >  >
> >  > Any thought on this?
> >  >
> >  I am looking for something similar:
> >
> >  I want to get an idea of what some of the largest Flex apps ever
> >  built (and utilized on a routine basis) are. I have one with 11
> >  different views, and about 35 components, and it is about 1.5mb 
to
> >  load.
> >  Anybody have examples of larger ones? If so, what kind of 
issues do
> >  you run into?
> >
> >
>




[flexcoders] Re: "Zero line" drawn on plot chart

2008-02-26 Thread Geoffrey
Yea, that was it!  I'm sure you could color that line something other
than blue for that other post.

Thanks!
 Geoff

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> I see what you mean.  At least I think I do.  Try this in your 
>  declaration:
> 
> 
>   
> 
> 
> There are other options with the GridLines class that you may want or 
> need to set as well.
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > That property actually removes the thick light blue line that is 
> drawn
> > between the chart body and the actual axis labels.  This is not the
> > "zero line".
> > 
> > I'm using a PlotChart, so I've checked all of its properties and 
> those
> > of LinearAxis and DateTimeAxis.  Nothing stands out.
> > 
> >  ~Geoff
> > 
> > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> wrote:
> > >
> > > Check out the showLine style of AxisRenderer.  Seems like 
> > > showLine="false" ought to do what you want.
> > > 
> > > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> > > >
> > > > Is there a way to turn off the line that gets drawn to show 
> where 0
> > > > (zero) is along the y axis?  My y axis is a LinearAxis with a 
> minimum
> > > > less than 0 (zero).  I have baseAtZero set to false, and 
> autoAdjust
> > > > set to false.
> > > > 
> > > > Thanks,
> > > >   Geoff
> > > >
> > >
> >
>




[flexcoders] Re: "Zero line" drawn on plot chart

2008-02-26 Thread Geoffrey
That property actually removes the thick light blue line that is drawn
between the chart body and the actual axis labels.  This is not the
"zero line".

I'm using a PlotChart, so I've checked all of its properties and those
of LinearAxis and DateTimeAxis.  Nothing stands out.

 ~Geoff

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Check out the showLine style of AxisRenderer.  Seems like 
> showLine="false" ought to do what you want.
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > Is there a way to turn off the line that gets drawn to show where 0
> > (zero) is along the y axis?  My y axis is a LinearAxis with a minimum
> > less than 0 (zero).  I have baseAtZero set to false, and autoAdjust
> > set to false.
> > 
> > Thanks,
> >   Geoff
> >
>




[flexcoders] Re: Colouring the zero line on a chart axis

2008-02-26 Thread Geoffrey
Yea, and I want to turn it off (or set it to the same color as the
background).

--- In flexcoders@yahoogroups.com, "leonpidgeon" <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> i have a chart with where the y-axis is -200 to 200 and want to know if 
> there is a way to change the look of the zero axis which runs across 
> the middle of the chart. basically i want to make it red. does anyone 
> have any ideas how this can be done. i have looked through rendering 
> options and can't seem to find anything.
> 
> thanks
>




[flexcoders] "Zero line" drawn on plot chart

2008-02-26 Thread Geoffrey
Is there a way to turn off the line that gets drawn to show where 0
(zero) is along the y axis?  My y axis is a LinearAxis with a minimum
less than 0 (zero).  I have baseAtZero set to false, and autoAdjust
set to false.

Thanks,
  Geoff



[flexcoders] Plot Graph and One Plot Point

2008-02-25 Thread Geoffrey
I have a PlotChart that uses a DateTimeAxis for the x, and a 
LinearAxis for the y.  I get something strange when there is only 
one point to plot.  The point renders fine on the chart, but the 
horizontal axis renderer only shows one date (1/1/70), and that's 
not the date of the plot point.  I would imagine that it should be 
the same date as the plot point.

Here's my horizontal axis renderer code:

  


  


Any ideas?

Thanks,
  Geoff



[flexcoders] BlazeDS Subtopics from Java

2008-02-20 Thread Geoffrey
I see plenty of examples of how to do subtopics all from MXML/AS 
code, but how to you create a message in Java that has a subtopic?

Here are some code snippets:


:::messaging-config.xml:::



1000
true
.







:::main.mxml:::

public function onCreationComplete():void { 
  siteMessagesConsumer.destination = "siteMessages";
  siteMessagesConsumer.subtopic = "*";
  siteMessagesConsumer.subscribe();
}

public function onSiteMessages( event:MessageEvent ):void { 
  trace("Got it!");
}





:::MyDelegate.java:::
private void sendFlexMessage() throws MyException {
  MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
  String clientID = UUIDUtils.createUUID();

  // Generate a message
  AsyncMessage msg = new AsyncMessage();
  msg.setDestination("siteMessages.allUsers");
  msg.setClientId(clientID);
  msg.setMessageId(UUIDUtils.createUUID());
  msg.setTimestamp(System.currentTimeMillis());
  msg.setBody(getSomeObject());

  // Send a message
  msgBroker.routeMessageToService(msg, null);
}

The sendFlexMessage() method is called from somewhere else.  This 
worked when my destination was just "siteMessages".  But I want to 
send subtopics 
like "siteMessages.allUsers", "siteMessages.allTeams", etc.  I 
looked at the Java API for this stuff and saw nothing that jumped 
out like a setSubTopic() method, so I assumed that it was as simple 
as setting the destination to "something.something".  That seems to 
be the way they did it in the MXML/AS examples I saw, but when I try 
to send the message I get an error saying that there is 
no "siteMessages.allUsers" destination.

Any suggestions would be appreciated.



[flexcoders] Re: BlazeDS - Unknown destination error - SOLVED

2008-02-20 Thread Geoffrey
I honestly don't know how I fixed it.  I reinstalled Apache, and the 
Flex 3 Eclipse plugin.  Then ripped out every instance of Flex 2 I 
could find except for the flex-bootstrap-2.0.1.jar file (if I did 
that, nothing worked).

Now I can receive a message published from our J2EE server.

Thanks to Jeff for the help.

Geoff
--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I'm less than thrilled with BlazeDS right now.  running their 
canned 
> examples is no problem, but try to integrate it into your app and 
> it's a bitch!  Our environment is Eclipse 3.2.2, Apache Tomcat 
> 5.5.20, Flex Builder 3 Plug-in, Maven 2.0.5, WST 1.something.
> 
> Regarding Point 1 below, I fixed my compiler argument.  For the 
main 
> Flex application, I navigated to the Flex Compiler properties and 
> entered "-services "C:\workspace-blazeDS\flex\src\main\webapp\WEB-
> INF\flex\services-config.xml" -locale en_US" for my Additional 
> Compiler Arguments.  Previously, I had it pointing to a different 
> workspace.
> 
> On that same screen I see a warning: "Project is being compiled 
with 
> Flex 3.0, but server has Flex 2.0.1".  How do I check what version 
> of Flex the server is using?  I've gone through and removed all 
Flex 
> 2.0.1 related jars, but I seem to need the flex-bootstrap-
2.0.1.jar 
> or else I get a bunch of errors upon server startup.  Is this why 
> I'm getting the warning message above?  Is this why I can't seem 
to 
> pass messages with BlazeDS?  Is there a flex-bootstrap-3.0.jar?  
Not 
> in the flex 3 distribution that I have.
> 
> It was real nice of Adobe to clue us into the fact that BlazeDS 
> requires Flex3.  The only reason that I know this is because 
someone 
> else had some problems and Jesse Warden found out from one of the 
> Flex engineers that Flex 2.0.1 does not support BlazeDS.  What 
other 
> requirements are there that we don't know about?
> 
> Sorry if I'm being harsh, but I've been screwing around with this 
> for the last WEEK and can't get it to work.  It shouldn't be this 
> difficult.
> 
> 
> --- In flexcoders@yahoogroups.com, "Jeff Vroom"  wrote:
> >
> > Sorry for the terse description - it's been a little busy here!
> > 
> >  
> > 
> > For Point 1, the stuff you have there looks like the server 
itself 
> is
> > starting up fine.   The issue is that when you compile your SWF, 
> the
> > tool you use to compile your SWF also should refer to the
> > services-config.xml file.  If you are using flex builder, there 
is 
> a
> > setting for that in your project properties.   If you are 
> requesting the
> > MXML file directly from the browser (where the server compiles 
the 
> mxml
> > file to produce the SWF), this is in your flex-config.xml file.  
> If you
> > are compiling using ant or the command line compiler there is a
> > -services option to the compiler.   
> > 
> >  
> > 
> > For Point 2, since you do not set the "channelSet" property on 
your
> > Consumer component, you need to follow the step in point 1.  
There 
> is
> > another option where the client downloads the configuration for 
> your
> > destination from the server when it connects.  But for that to 
> work, you
> > need to specify the URL to the server so it can connect in the 
> first
> > place.  You do that with the channelSet property.  
> > 
> >  
> > 
> > For Point 3, you can see this by adding the MXML tag:
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > If you are using the debug player, you'll see some diagnostics 
in 
> the
> > flashlog.txt file.  That gets buried in the user's home 
directory 
> on
> > windows under application data/macromedia/flash player/logs.  
Make 
> sure
> > you have the debug player though since the release player 
doesn't 
> output
> > trace information.  You can also get to this property directly in
> > actionscript with:
> > 
> >  
> > 
> >import flex.messaging.config.ServerConfig;
> > 
> >  
> > 
> >  
> > 
> >
> > 
> >  
> > 
> >trace(ServerConfig.xml);
> > 
> >  
> > 
> > Jeff
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Geoffrey
> > Sent: Thursday, February 14, 2008 1:37 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: BlazeDS - Unknown

[flexcoders] Re: BlazeDS - Unknown destination error

2008-02-14 Thread Geoffrey
I hate to say it, but I don't know how to do any of that.

-- Point 1 --
"[point] your compiler at the services-config.xml which defines those
destinations"
Here are a couple lines of debug output from the console.  I think I'm
pointing to the correct config files.
  [Flex] [Configuration] BlazeDS - Community Edition: 3.0.0.353
  [Flex] [Configuration] Endpoint my-streaming-amf created with
security: None
  [Flex] [Startup.Destination] Destination with id 'userTopic' is
ready (startup time: '0' ms)
  [Flex] [Startup.Service] Service with id 'message-service' is ready
(startup time: '0' ms)
  [Flex] [Startup.MessageBroker] MessageBroker with id '__default__'
is ready (startup time: '407' ms)
So to me, that part of the configuration is correct.


-- Point 2 --
"define a channel set on the client and set the channelSet property on
your service"

This is my code in main.mxml to define my consumer:
  

And the corresponding code in AS to subscribe to the destination.
public function onCreationComplete():void
{   
  // Subscribe to destination
  userConsumer.subscribe();
}

Am I doing something wrong here?  I basically took this from one of
the BlazeDS samples.


-- Point 3 --
"You can see what destinations are getting compiled into your app via
the static variable:  flex.messaging.config.ServerConfig.xml"
I don't know how to access this variable.  Is this a Java variable?


Thanks for the help, and sorry for me being so dense.
Geoff


--- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> Make sure that either you are pointing your compiler at the
> services-config.xml which defines those destinations or you need to
> define a channel set on the client and set the channelSet property on
> your service.  
> 
>  
> 
> You can see what destinations are getting compiled into your app via the
> static variable:  flex.messaging.config.ServerConfig.xml.   That should
> be a subset of the info from services-config.xml if you are compiling
> stuff in.
> 
>  
> 
> Jeff
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Thursday, February 14, 2008 11:28 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] BlazeDS - Unknown destination error
> 
>  
> 
> I'm trying to get BlazeDS working with our existing Flex application.
> When the application starts and tried to subscribe to a publisher, I
> get the following error:
> 
> [MessagingError message='Unknown destination 'userTopic'.']
> at mx.messaging.config::ServerConfig$/getChannelSet()
> [C:\dev\enterprise_bali\frameworks\mx\messaging\config\ServerConfig.as:2
> 24]
> ...
> 
> I have the topic defined in my messaging-config.xml file like this:
> 
> 
> Not really sure what the deal is. I've converted our app to use the
> Flex 3 plugin for Eclipse, and that seems OK (not sure if I really
> needed to do this). The only thing I see is that the properties of
> the main flex project say "Project is being compiled with Flex 3.0,
> but server has Flex 2.0.1" in the Flex Compiler section. Ummm, say what?
> 
> Any help would be appreciated.
>




[flexcoders] BlazeDS - Unknown destination error

2008-02-14 Thread Geoffrey
I'm trying to get BlazeDS working with our existing Flex application.
 When the application starts and tried to subscribe to a publisher, I
get the following error:

[MessagingError message='Unknown destination 'userTopic'.']
at mx.messaging.config::ServerConfig$/getChannelSet()
[C:\dev\enterprise_bali\frameworks\mx\messaging\config\ServerConfig.as:224]
...

I have the topic defined in my messaging-config.xml file like this:


Not really sure what the deal is.  I've converted our app to use the
Flex 3 plugin for Eclipse, and that seems OK (not sure if I really
needed to do this).  The only thing I see is that the properties of
the main flex project say "Project is being compiled with Flex 3.0,
but server has Flex 2.0.1" in the Flex Compiler section.  Ummm, say what?

Any help would be appreciated.



[flexcoders] Re: Item Renderer Not Updating - Fixed

2007-11-14 Thread Geoffrey
It's working!

I think the key was to NOT use 'selected' as a property in the model,
and I also added userList.invalidateList() before the section of code
that sets all the CheckBoxes back to being deselected.

Thanks for all teh help!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Ok, next thing to see is if collectionChange events fire when the values
> are reset to false.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, November 14, 2007 12:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Item Renderer Not Updating
> 
>  
> 
> I need to correct my previous post with some changes I've made.
> 
> I changed the model property to 'isSelected', and am binding that to
> the 'selected' property of the CheckBox like so:
>  selected="{data.isSelected}"
> label="{data.label}"
> x="0" y="0"
> height="20" width="100%"/>
> 
> Now if I set some of the values to true in the command class listed
> below, it picks it up. So that is working, but if do the user gesture
> that is suppose to reset all values to false, that doesn't happen
> (even though the model is set correctly).
> 
> Thanks for the help!
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Geoffrey"  wrote:
> >
> > It's not picking it up.
> > 
> > I did the following in my command class:
> > for (var i:uint = 0; i < data.result.length; i++) {
> > // Get the current result and create a ResourceItemModel from it
> > userSummaryVO = UserSummaryVO(data.result[i]);
> > item = new ResourceItemModel();
> > item.firstName = userSummaryVO.firstName;
> > item.lastName = userSummaryVO.lastName;
> > item.username = userSummaryVO.username;
> > item.selected = true;
> > 
> > // Add the item to the model
> > __model.userSummaries.addItem(item);
> > }
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Alex Harui"  wrote:
> > >
> > > Set some selected props to true before assigning the dp to see if
> it is
> > > picking it up.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > > Behalf Of Geoffrey
> > > Sent: Wednesday, November 14, 2007 9:27 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> 
> > > Subject: [flexcoders] Re: Item Renderer Not Updating
> > > 
> > > 
> > > 
> > > I went and created a component as the itemRenderer, like this:
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> 
> > > <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> > "
> width="100%"
> > > height="20">
> > > 
> > >  > > selectedField="selected"
> > > label="{data.label}"
> > > x="0" y="0"
> > > height="20" width="100%"/>
> > > 
> > > 
> > > 
> > > 
> > > As you can see I've set the selectedField property to "selected",
> but
> > > that still doesn't seem to effect anything. If some of the
> CheckBoxes
> > > are selected, and the user does the correct gesture, I have a loop
> > > that sets the 'selected' property of the model to false. I expect
> > > that to deselect all of the CheckBoxes. Yea not happening.
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > Oh, maybe you need to set selectedField="selected"
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> <

[flexcoders] Re: Item Renderer Not Updating

2007-11-14 Thread Geoffrey
I need to correct my previous post with some changes I've made.

I changed the model property to 'isSelected', and am binding that to
the 'selected' property of the CheckBox like so:


Now if I set some of the values to true in the command class listed
below, it picks it up.  So that is working, but if do the user gesture
that is suppose to reset all values to false, that doesn't happen
(even though the model is set correctly).

Thanks for the help!

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> It's not picking it up.
> 
> I did the following in my command class:
> for (var i:uint = 0; i < data.result.length; i++) {
> // Get the current result and create a ResourceItemModel from it
> userSummaryVO = UserSummaryVO(data.result[i]);
> item = new ResourceItemModel();
> item.firstName = userSummaryVO.firstName;
> item.lastName = userSummaryVO.lastName;
> item.username = userSummaryVO.username;
> item.selected = true;
> 
> // Add the item to the model
> __model.userSummaries.addItem(item);
> }
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Set some selected props to true before assigning the dp to see if
it is
> > picking it up.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Geoffrey
> > Sent: Wednesday, November 14, 2007 9:27 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Item Renderer Not Updating
> > 
> >  
> > 
> > I went and created a component as the itemRenderer, like this:
> > 
> > 
> > http://www.adobe.com/2006/mxml
> > <http://www.adobe.com/2006/mxml> " width="100%"
> > height="20">
> > 
> >  > selectedField="selected"
> > label="{data.label}"
> > x="0" y="0"
> > height="20" width="100%"/>
> > 
> > 
> > 
> > 
> > As you can see I've set the selectedField property to "selected", but
> > that still doesn't seem to effect anything. If some of the CheckBoxes
> > are selected, and the user does the correct gesture, I have a loop
> > that sets the 'selected' property of the model to false. I expect
> > that to deselect all of the CheckBoxes. Yea not happening.
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Oh, maybe you need to set selectedField="selected"
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of Geoffrey
> > > Sent: Wednesday, November 14, 2007 8:37 AM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Item Renderer Not Updating
> > > 
> > > 
> > > 
> > > The ResourceModel and ResourceItemModel classes are [Bindable]. Is
> > > that what you're talking about?
> > > 
> > > Also, I was thinking that the 'selected' property of
ResourceItemModel
> > > is not used for the 'selected' property of the CheckBox in the
> > > itemRenderer. The 'label' property of the model seems to work,
but is
> > > 'selected' not the appropriate variable to use? Should it be
> > > something like 'data' perhapse?
> > > 
> > > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" 
wrote:
> > > > >
> > > > > Unless the data object is [bindable], modifications to data
> > > objects must
> > > > > be accompanied by a call to itemUpdated on the collection.
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > From: flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> 
> > > [mailto:flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> >

[flexcoders] Re: Item Renderer Not Updating

2007-11-14 Thread Geoffrey
It's not picking it up.

I did the following in my command class:
for (var i:uint = 0; i < data.result.length; i++) {
// Get the current result and create a ResourceItemModel from it
userSummaryVO = UserSummaryVO(data.result[i]);
item = new ResourceItemModel();
item.firstName = userSummaryVO.firstName;
item.lastName = userSummaryVO.lastName;
item.username = userSummaryVO.username;
item.selected = true;

// Add the item to the model
__model.userSummaries.addItem(item);
}

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Set some selected props to true before assigning the dp to see if it is
> picking it up.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, November 14, 2007 9:27 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Item Renderer Not Updating
> 
>  
> 
> I went and created a component as the itemRenderer, like this:
> 
> 
> http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> " width="100%"
> height="20">
> 
>  selectedField="selected"
> label="{data.label}"
> x="0" y="0"
> height="20" width="100%"/>
> 
> 
> 
> 
> As you can see I've set the selectedField property to "selected", but
> that still doesn't seem to effect anything. If some of the CheckBoxes
> are selected, and the user does the correct gesture, I have a loop
> that sets the 'selected' property of the model to false. I expect
> that to deselect all of the CheckBoxes. Yea not happening.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Oh, maybe you need to set selectedField="selected"
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Geoffrey
> > Sent: Wednesday, November 14, 2007 8:37 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Item Renderer Not Updating
> > 
> > 
> > 
> > The ResourceModel and ResourceItemModel classes are [Bindable]. Is
> > that what you're talking about?
> > 
> > Also, I was thinking that the 'selected' property of ResourceItemModel
> > is not used for the 'selected' property of the CheckBox in the
> > itemRenderer. The 'label' property of the model seems to work, but is
> > 'selected' not the appropriate variable to use? Should it be
> > something like 'data' perhapse?
> > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui"  wrote:
> > > >
> > > > Unless the data object is [bindable], modifications to data
> > objects must
> > > > be accompanied by a call to itemUpdated on the collection.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > > Behalf Of Geoffrey
> > > > Sent: Tuesday, November 13, 2007 8:40 PM
> > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > 
> > > > Subject: [flexcoders] Re: Item Renderer Not Updating
> > > > 
> > > > 
> > > > 
> > > > I know there's got to be something simple that I'm overlooking,
> and
> > I
> > > > thought that I read 
> > > > something pertaining to this in the docs, but for the life of me I
> > can't
> > > > find it.
> > > > 
> > > > Thanks for any suggestions,
> > > > Geoff
> > > > 
> > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com>
> > > &g

[flexcoders] Re: Item Renderer Not Updating

2007-11-14 Thread Geoffrey
I went and created a component as the itemRenderer, like this:


http://www.adobe.com/2006/mxml"; width="100%"
height="20">






As you can see I've set the selectedField property to "selected", but
that still doesn't seem to effect anything.  If some of the CheckBoxes
are selected, and the user does the correct gesture, I have a loop
that sets the 'selected' property of the model to false.  I expect
that to deselect all of the CheckBoxes.  Yea not happening.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Oh, maybe you need to set selectedField="selected"
> 
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, November 14, 2007 8:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Item Renderer Not Updating
> 
>  
> 
> The ResourceModel and ResourceItemModel classes are [Bindable]. Is
> that what you're talking about?
> 
> Also, I was thinking that the 'selected' property of ResourceItemModel
> is not used for the 'selected' property of the CheckBox in the
> itemRenderer. The 'label' property of the model seems to work, but is
> 'selected' not the appropriate variable to use? Should it be
> something like 'data' perhapse?
> 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Alex Harui"  wrote:
> > >
> > > Unless the data object is [bindable], modifications to data
> objects must
> > > be accompanied by a call to itemUpdated on the collection.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > > Behalf Of Geoffrey
> > > Sent: Tuesday, November 13, 2007 8:40 PM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> 
> > > Subject: [flexcoders] Re: Item Renderer Not Updating
> > > 
> > > 
> > > 
> > > I know there's got to be something simple that I'm overlooking, and
> I
> > > thought that I read 
> > > something pertaining to this in the docs, but for the life of me I
> can't
> > > find it.
> > > 
> > > Thanks for any suggestions,
> > > Geoff
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> > > , "Geoffrey"  wrote:
> > > >
> > > > I have a List that is bound to an ArrayCollection. If I
> programaticly
> > > > update the ArrayCollection, the itemRenderer fails to update as
> well.
> > > > 
> > > >  > > > dataProvider="{__resourceModel.userSummaries}"
> > > > selectable="false"
> > > > itemClick="onItemClick(event)"
> > > > itemRenderer="mx.controls.CheckBox"
> > > > width="100%" height="100%"/>
> > > > 
> > > > 
> > > > __resourceModel.userSummaries is an ArrayCollection of
> > > > ResourceItemModels which looks like:
> > > > public class ResourceItemModel implements ModelLocator
> > > > {
> > > > public var username:String;
> > > > public var firstName:String;
> > > > public var lastName:String;
> > > > // These are used by an itemRenderer
> > > > public var label:String;
> > > > public var selected:Boolean;
> > > > 
> > > > }
> > > > 
> > > > 
> > > > The List is a list of CheckBoxes with the username as the label.
> When
> > > > someone selects one of the CheckBoxes, it go off and sets the
> > > > 'selected' property of the specific ResourceItemModel to true.
> This
> > > > part works just fine.
> > > > 
> > > > After a certain user gesture, I want to set all selections back to
> > > > false, then reselect any CheckBox selections that may have
> existed. 
> > > > This information comes from another model. The resetting of the
> > > > CheckBoxes is in a loop that does:
> > > > ResourceItemModel(userSummaries[i]).selected = false;
> > > > 
> > > > This properly sets the models selected property to false, but
> the view
> > > > does not update (ie. the CheckBox is still selected).
> > > > 
> > > > 
> > > > How do I update the itemRender after I programmaticly update the
> > > > dataProvider?
> > > > 
> > > > Thanks,
> > > > Geoff
> > > >
> > >
> >
>




[flexcoders] Re: Item Renderer Not Updating

2007-11-14 Thread Geoffrey
The ResourceModel and ResourceItemModel classes are [Bindable].  Is
that what you're talking about?

Also, I was thinking that the 'selected' property of ResourceItemModel
is not used for the 'selected' property of the CheckBox in the
itemRenderer.  The 'label' property of the model seems to work, but is
'selected' not the appropriate variable to use?  Should it be
something like 'data' perhapse?

> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Unless the data object is [bindable], modifications to data
objects must
> > be accompanied by a call to itemUpdated on the collection.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Geoffrey
> > Sent: Tuesday, November 13, 2007 8:40 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Item Renderer Not Updating
> > 
> >  
> > 
> > I know there's got to be something simple that I'm overlooking, and I
> > thought that I read 
> > something pertaining to this in the docs, but for the life of me I
can't
> > find it.
> > 
> > Thanks for any suggestions,
> > Geoff
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > , "Geoffrey"  wrote:
> > >
> > > I have a List that is bound to an ArrayCollection. If I
programaticly
> > > update the ArrayCollection, the itemRenderer fails to update as
well.
> > > 
> > >  > > dataProvider="{__resourceModel.userSummaries}"
> > > selectable="false"
> > > itemClick="onItemClick(event)"
> > > itemRenderer="mx.controls.CheckBox"
> > > width="100%" height="100%"/>
> > > 
> > > 
> > > __resourceModel.userSummaries is an ArrayCollection of
> > > ResourceItemModels which looks like:
> > > public class ResourceItemModel implements ModelLocator
> > > {
> > > public var username:String;
> > > public var firstName:String;
> > > public var lastName:String;
> > > // These are used by an itemRenderer
> > > public var label:String;
> > > public var selected:Boolean;
> > > 
> > > }
> > > 
> > > 
> > > The List is a list of CheckBoxes with the username as the label.
When
> > > someone selects one of the CheckBoxes, it go off and sets the
> > > 'selected' property of the specific ResourceItemModel to true. This
> > > part works just fine.
> > > 
> > > After a certain user gesture, I want to set all selections back to
> > > false, then reselect any CheckBox selections that may have existed. 
> > > This information comes from another model. The resetting of the
> > > CheckBoxes is in a loop that does:
> > > ResourceItemModel(userSummaries[i]).selected = false;
> > > 
> > > This properly sets the models selected property to false, but
the view
> > > does not update (ie. the CheckBox is still selected).
> > > 
> > > 
> > > How do I update the itemRender after I programmaticly update the
> > > dataProvider?
> > > 
> > > Thanks,
> > > Geoff
> > >
> >
>




[flexcoders] Re: Item Renderer Not Updating

2007-11-14 Thread Geoffrey
The ResourceModel class is [Bindable].  Is that what you're talking about?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Unless the data object is [bindable], modifications to data objects must
> be accompanied by a call to itemUpdated on the collection.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Tuesday, November 13, 2007 8:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Item Renderer Not Updating
> 
>  
> 
> I know there's got to be something simple that I'm overlooking, and I
> thought that I read 
> something pertaining to this in the docs, but for the life of me I can't
> find it.
> 
> Thanks for any suggestions,
> Geoff
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Geoffrey"  wrote:
> >
> > I have a List that is bound to an ArrayCollection. If I programaticly
> > update the ArrayCollection, the itemRenderer fails to update as well.
> > 
> >  > dataProvider="{__resourceModel.userSummaries}"
> > selectable="false"
> > itemClick="onItemClick(event)"
> > itemRenderer="mx.controls.CheckBox"
> > width="100%" height="100%"/>
> > 
> > 
> > __resourceModel.userSummaries is an ArrayCollection of
> > ResourceItemModels which looks like:
> > public class ResourceItemModel implements ModelLocator
> > {
> > public var username:String;
> > public var firstName:String;
> > public var lastName:String;
> > // These are used by an itemRenderer
> > public var label:String;
> > public var selected:Boolean;
> > 
> > }
> > 
> > 
> > The List is a list of CheckBoxes with the username as the label. When
> > someone selects one of the CheckBoxes, it go off and sets the
> > 'selected' property of the specific ResourceItemModel to true. This
> > part works just fine.
> > 
> > After a certain user gesture, I want to set all selections back to
> > false, then reselect any CheckBox selections that may have existed. 
> > This information comes from another model. The resetting of the
> > CheckBoxes is in a loop that does:
> > ResourceItemModel(userSummaries[i]).selected = false;
> > 
> > This properly sets the models selected property to false, but the view
> > does not update (ie. the CheckBox is still selected).
> > 
> > 
> > How do I update the itemRender after I programmaticly update the
> > dataProvider?
> > 
> > Thanks,
> > Geoff
> >
>




[flexcoders] Re: Item Renderer Not Updating

2007-11-13 Thread Geoffrey
I know there's got to be something simple that I'm overlooking, and I thought 
that I read 
something pertaining to this in the docs, but for the life of me I can't find 
it.

Thanks for any suggestions,
Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I have a List that is bound to an ArrayCollection.  If I programaticly
> update the ArrayCollection, the itemRenderer fails to update as well.
> 
>  dataProvider="{__resourceModel.userSummaries}"
> selectable="false"
> itemClick="onItemClick(event)"
> itemRenderer="mx.controls.CheckBox"
> width="100%" height="100%"/>
> 
> 
> __resourceModel.userSummaries is an ArrayCollection of
> ResourceItemModels which looks like:
> public class ResourceItemModel implements ModelLocator
> {
> public var username:String;
> public var firstName:String;
> public var lastName:String;
> // These are used by an itemRenderer
> public var label:String;
> public var selected:Boolean;
> 
> }
> 
> 
> The List is a list of CheckBoxes with the username as the label.  When
> someone selects one of the CheckBoxes, it go off and sets the
> 'selected' property of the specific ResourceItemModel to true.  This
> part works just fine.
> 
> After a certain user gesture, I want to set all selections back to
> false, then reselect any CheckBox selections that may have existed. 
> This information comes from another model.  The resetting of the
> CheckBoxes is in a loop that does:
> ResourceItemModel(userSummaries[i]).selected = false;
> 
> This properly sets the models selected property to false, but the view
> does not update (ie. the CheckBox is still selected).
> 
> 
> How do I update the itemRender after I programmaticly update the
> dataProvider?
> 
> Thanks,
> Geoff
>




[flexcoders] Item Renderer Not Updating

2007-11-13 Thread Geoffrey
I have a List that is bound to an ArrayCollection.  If I programaticly
update the ArrayCollection, the itemRenderer fails to update as well.




__resourceModel.userSummaries is an ArrayCollection of
ResourceItemModels which looks like:
public class ResourceItemModel implements ModelLocator
{
public var username:String;
public var firstName:String;
public var lastName:String;
// These are used by an itemRenderer
public var label:String;
public var selected:Boolean;

}


The List is a list of CheckBoxes with the username as the label.  When
someone selects one of the CheckBoxes, it go off and sets the
'selected' property of the specific ResourceItemModel to true.  This
part works just fine.

After a certain user gesture, I want to set all selections back to
false, then reselect any CheckBox selections that may have existed. 
This information comes from another model.  The resetting of the
CheckBoxes is in a loop that does:
ResourceItemModel(userSummaries[i]).selected = false;

This properly sets the models selected property to false, but the view
does not update (ie. the CheckBox is still selected).


How do I update the itemRender after I programmaticly update the
dataProvider?

Thanks,
Geoff




[flexcoders] Re: Nested classes picking up CSS

2007-06-07 Thread Geoffrey
I guess it's imposibble

Is there a good CSS reference in the Flex docs somewhere?  I can't
seem to find it.

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Here's the basic setup.  On display 1 there is Panel A, on display 2
> there is Panel B.  Both Panels contain 'CommonPanel'.
> 
> Using an external CSS file, how can I get CommonPanel to have
> different styles?
> 
> I tried something like:
> 
> Display_1.mxml
> 
>
> 
> 
> 
> Display_2.mxml
> 
>
> 
> 
> CSS file
> .level1.Panel{
>border-color: #FF;
> }
> 
> .level2.Panel{
>border-color: #00;
> }
> 
> 
> This is a very simplified version of the real code, where in the real
> code the "CommonPanel" is nested a few layers down.
> 
> My basic goal is to have common components take on a different style
> depending on the parent it's contained within.  I would like to set
> the parents style via styleName and have that propagate down through
> the children through something like:
> .styleA{}
> .styleA.Panel{}
> .styleA.DataGrid{}
> .styleA.CustomClass{}
> ...etc...
> 
> Thanks in advance,
> Geoff
>




[flexcoders] Nested classes picking up CSS

2007-06-06 Thread Geoffrey
Here's the basic setup.  On display 1 there is Panel A, on display 2
there is Panel B.  Both Panels contain 'CommonPanel'.

Using an external CSS file, how can I get CommonPanel to have
different styles?

I tried something like:

Display_1.mxml

   



Display_2.mxml

   


CSS file
.level1.Panel{
   border-color: #FF;
}

.level2.Panel{
   border-color: #00;
}


This is a very simplified version of the real code, where in the real
code the "CommonPanel" is nested a few layers down.

My basic goal is to have common components take on a different style
depending on the parent it's contained within.  I would like to set
the parents style via styleName and have that propagate down through
the children through something like:
.styleA{}
.styleA.Panel{}
.styleA.DataGrid{}
.styleA.CustomClass{}
...etc...

Thanks in advance,
Geoff



[flexcoders] Re: Does Drag & Drop Only Update the DataProvider?

2007-05-21 Thread Geoffrey
I read (Migrating Applications to Flex 2 by Adobe, page 108) that if
you have private variables with getter/setter, you can omit the event
name as the compiler would automatically generate an event named
"propertyChanged".  What that example shows that I didn't do is it put
the [Bindable] metadata tag before the getter method, not the variable
declaration.  I'll change that in the future.

Regarding your last statement, I would like to think that the bound
ArrayCollection would update if you specifically update the
dataProvider of the DataGrid, but according to what I'm seeing in the
debugger, that isn't the case.  I wish it were... It would've made my
life a lot easier.

BTW, thanks for your help.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Binding just converts a variable into a property by wrapping in function
> get/set.  The best practice to dispatch an event from the setter and
> declare the event name in the [Bindable] metadata.
> 
>  
> 
> I thought there was a warning for binding to private, but maybe we got
> around it somehow.
> 
>  
> 
> Binding is one way, but if the dg is bound to employees, the underlying
> array that got passed into the ArrayCollection should get modified when
> you drop into the dg.
> 
>  
> 
> -Alex
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Monday, May 21, 2007 2:41 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Does Drag & Drop Only Update the DataProvider?
> 
>  
> 
> Why is binding to private variables not recommended? Should I bind to
> the employees pseudo property?
> 
> I figured out why it wasn't working. Binding is one way. I'm binging
> the DataGrids dataProvider to the ArrayCollection, so only changes to
> the ArrayCollection would effect the dataProvider. It doesn't work
> the other way around (changes to the DataProvider updating the
> ArrayCollection). Somehow I seemed to have forgotten that fact.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > collectionChange is dispatched from the collection and not the
> DataGrid.
> > 
> > 
> > 
> > Binding to private variables is not recommended, but not the problem
> > either.
> > 
> > 
> > 
> > Can you fit an entire example in two screens of text? If so, post it.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Geoffrey
> > Sent: Monday, May 21, 2007 9:56 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Does Drag & Drop Only Update the
> DataProvider?
> > 
> > 
> > 
> > collectionChange doesn't appear to be a valid DataGrid event, but I
> > tried dataChanged, added, add, valueCommit, and updateComplete. None
> > of these did what I wanted, and actually, I have verified that the
> > __employees ArrayCollection does not update after a D&D event.
> > 
> > Looking through everything in debug mode, I'm seeing that the
> > dataProvider of the DataGrid is updated after D&D, but not the bound
> > variable __employees.
> > I wonder if it's how I declared the variable? I did it like so:
> > 
> > [Bindable]
> > private var __employees:ArrayCollection;
> > 
> > public function get employees():ArrayCollection {
> > return __employees;
> > }
> > 
> > public function set employees( employees:ArrayCollection ):void {
> > if (employees != null) {
> > __employees = employees;
> > }
> > }
> > 
> > 
> > Maybe I should just make it public? Nope, that didn't work.
> > 
> > I'm also wondering if the "event.preventDefault();" is messing
> > something up. Nope, that just prevents the the base class ListBase
> > from doing it's D&D handling. Since this doesn't check for
> > duplicates, I don't want to use it.
> > 
> > I'm not sure what to do
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Mx:DataGrid's change event is for when selection changes, not when
> the
> > > 

  1   2   >