with a custom event type. Now
dispatch that event type when the length of dataProvider changes. Obviously,
your getter method for currentView has to contain the logic you described
for deciding which view to use.
Is that what you were looking for?
Cheers,
Lach
On 06/12/2006, at 5:27 AM, Steve
, that may be a good idea.
Matt
--
*From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups.com] *On
Behalf Of *Steve Hindle
*Sent:* Wednesday, December 06, 2006 11:42 PM
*To:* flexcoders@yahoogroups.com
*Subject: *Re: [flexcoders] Databinding eventlistner Toy
,
Lach
On 04/12/2006, at 4:31 PM, Steve Hindle wrote:
Sorry for reply to myself - but this is driving me _nuts_! I can't
find an example of bindSetter with a 'real' accessor function with
either yahoo or google. And the example on the 'bindUtils' page at
adobe.com (stuck in the comments
Hi All,
I have a base class I use for models (ModelBase, original eh?) that
contains a 'set' function. set(source:Model) - it simply copies
fields from the source model to 'this'. Works great, except I'm not
sure how to let everyone know the model changed.
The base class currently uses
Just a guess here - I just use vanilla Flex
Sounds like the field is not being assigned. Since the field starts out as
blank in your model,
and your selecting another model with a blank field - perhaps Flex is
'short-circuiting' the
assignment.
I've noticed that for an assignment like foo =
Ok - I think I'm making some headway now. Here's hoping this helps
someone else with similar problems.
For ages I've been plagued by 'odd' databinding problems. Things
would work most of the time - then fail for 'no reason'...
Playing around tonight, I noticed some behaviors that I think
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Steve Hindle
*Sent:* Wednesday, December 06, 2006 9:50 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Databinding eventlistner Toy, Unexplained errors
and insights... Adobe
Hi All,
I'm trying to create a component to use as an example or 'template'
of how to achieve a record list and detail view in flex. I'm starting
with a simple 'contact' record (model) that has name, address, phone,
email, etc. The list of records is held in _dataProvider, and the
specific
I don't think so...
I'm not sure how splitting this up would help...I'd just end up scattering
the stuff all over?
It also seems like it would be a P.I.T.A. to have to manually select the
correct view for
8 child components vs 1 call to an 'enhanced' state function that
could 'run' multiple
I've got to be missing something silly here:
_model:Model;
BindSetter(_model.title,... ? String to Function coercion error
BindSetter(_model.title()... ? Inaccessible method title error
I thought about _model.title as Function - but that seems like it
would interpret the title string as a
I didn't think you could do that (cast) - I thought you needed to create a
new ArrayCollection _based_ on the array? (ie var ac:ArrayCollection = new
ArrayCollection(myArray) )
On 12/3/06, lostinrecursion [EMAIL PROTECTED] wrote:
Hi all,
This is a best practice question really.
I use
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Steve Hindle
*Sent:* Sunday, December 03, 2006 1:56 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Re: Feature request? Ability to apply multiple
states or views at once..
I don't think so...
I'm
/refute this and save my sanity please!
Thanks
On 12/3/06, Steve Hindle [EMAIL PROTECTED] wrote:
I've got to be missing something silly here:
_model:Model;
BindSetter(_model.title,... ? String to Function coercion error
BindSetter(_model.title()... ? Inaccessible method title error
I
Hi All,
I've been working on some basic CRUD screens, where it would be
really useful to be able to apply either multiple states or multiple
views at once (I think states would be better...)
for instance, I have a 'show' state that goes thru and makes all my
text entry fields non-editable.
Hi Dustin,
It's 'based on' that actually 'teased' me with this...
As you start having more 'optional' things in the component
('noNotes','noSaveButton',etc), you end up with a 'states explosion'...
'based on' gets about half-way there, so I figured it could be enhanced to
handle the rest?
I
/30/06, Steve Hindle [EMAIL PROTECTED] wrote:
Hi All,
Anyone got any good design patterns for building components that can
be stacked inside other components and still look good visually? I'm
ending up in nested tabNavigator hell...
When you build components that can be used both stand-alone
This sort of thing drove me batty with Flex...
I finally ended up doing all init. in createComplete methods for each child
container (ie, when a child builds itself, it initializes itself)
This means I have to sprinkle if (child != null)... around the parent
container
though
Another problem I
Hi All,
Anyone got any good design patterns for building components that can
be stacked inside other components and still look good visually? I'm
ending up in nested tabNavigator hell...
When you build components that can be used both stand-alone (top
level) or included _inside_ another
I'd love an explanation too - I skipped them myself.
On 11/29/06, bghoward3 [EMAIL PROTECTED] wrote:
that is my main issue as well layout seems to be a hassle
please someone in the know add somthing here, my development is
stalled until i have a clear understanding of why to use or not use
Will 2.0.1 have Flex builder on a more recent eclipse?
I'd also love an eclipse 'quick fix' or whatever they call it for
changing a property from variable based to getter/setter based!
On 11/29/06, David Mendels [EMAIL PROTECTED] wrote:
Hi,
It may be worth adding however that we are of
I just spent _hours_ chasing this one down...
I have an mxml component that displays a model. Text fields are
editable to allow data entry. If I enter text in field 'a' and hit
tab to go to field 'b' - all text in field 'b' is now highlighted.
If I then load a new model into the component (I
Hi All,
Anyone know the performance implications of using databinding to
update a model vs an 'updateModel()' type call?
I can use basic databinding to bind a form to the model
(source={foo.customer_name}) and databinding calls to bind
foo.customer_name back to the form control (so your
.*
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Steve Hindle
*Sent:* Monday, November 13, 2006 9:31 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] multi-form data sharing
Hi All,
I have a couple of questions regarding flex and a 'typical
Hi All,
There was a discussion recently about how to detect when a component
becomes visible/active. It basically proposed 3 methods:
creationComplete(), show()/hide(), and UpdateDisplayList(). However,
these all seem to have problems:
creationComplete() - only fires when the component is
Hi Peter,
Could I suggest making a full table of contents available in an easy to
spot place on the website?
Also, does the book cover Flex and Rails login/auth systems (AAA, etc),
sessions, etc?
It appears 'iteration03' might cover some of this?
I'm currently building a rails app with a flex
for a reusable component ?
Am I missing something here? Surely other people have run across the same
situation ? Mostly I just want my component to reset its
tab navigator to the first tab each time its shown (I do other stuff too).
It really can't be this unusual can it ?
Steve
On 11/16/06, Steve Hindle
.
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Steve Hindle
*Sent:* Thursday, November 16, 2006 1:01 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Event fired _every_ time a component is made
visible/active
Hi All,
There was a discussion
transitions.
But - on the plus side, it will fire each time your component is made
visible, and it doesnt require knowing anything about your parent, or what
type of container you embedded in, etc.
Thanks All,
Steve
On 11/16/06, Steve Hindle [EMAIL PROTECTED] wrote:
well - show event doesn't appear
Works fine in FF 1.5.0.7 Win here...On 11/1/06, Jason [EMAIL PROTECTED]
wrote:
Can anyone out there can confirm that the example here:
http://blog.wrench.com.au/wp-content/uploads/Flex/converter2/Converter.html
actually works in Firefox (I'm using 1.5.0.7
29 matches
Mail list logo