|
...hey, wait a minute, I still win! You're
RTE DOES need to be modal. *whew*
----- Original Message -----
Sent: Sunday, July 30, 2006 4:49 PM
Subject: Re: [flexcoders] Cairngorm: Managing Popup
Windows
I stand corrected. A purist would argue that
you should figure out why the row heights aren't working, but I'm with you; if
it works, and gets done quickly, who cares?
----- Original Message -----
Sent: Sunday, July 30, 2006 4:38 PM
Subject: Re: [flexcoders] Cairngorm: Managing Popup
Windows
intersting to read this. we are working on a datagrid that
has complex data, two text fields, in one column. We used a custom
itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite
seem to get the row height to expand contract as needed. So, we went with
a modal popup.
DK
On 7/27/06, JesterXL
<[EMAIL PROTECTED]>
wrote:
Popups
were really valuble in Flex 1.5. Most didn't know about the depth
& scoping capabilites in Flash Player, nor needed to
care. Popups worked great for putting stuff "above everything"
and making it modal.
Nowadays, with states and the DisplayList, the
only valid reason I can see is modality.
Thus, I'd avoid 'em like
the plague unless you can answer yes to the following question: "Does the
form need to be modal?".
----- Original Message ----- From:
"Stefan Schmalhaus" <[EMAIL PROTECTED]> To:
<[email protected]
> Sent: Thursday, July 27, 2006 5:37 AM Subject: [flexcoders]
Cairngorm: Managing Popup Windows
I've done some research on this
list but haven't found any valid information on what's considered best
pratice in dealing with popup windows. The few Cairngorm sample apps that
are around don't seem to use the TitleWindow component at all.
Let's
say I have a simple DataGrid populated with some user data. If I click on a
row in the DataGrid a popup window opens with a form for editing the user
information. The popup window also has two buttons for deleting or saving
(updating) the user account.
I have done stuff like this several times
in Flash/AS2 but I've never used a framework approach so far. Now, if I
look at this rather simple task from a Cairngorm perspective it doesn't
seem to be that simple any more. (But I guess that's because I'm not yet
too familiar with Cairngorm.) I know how to establish databinding between
the data provider and { model.users} and all this basic Cairngorm
stuff.
But what happens when a row is clicked? I'm not even sure if
I'm supposed to treat this event as a single event ("selectUser"
or "openPopup"?) or as a chain of two events ("selectUser" ->
"openPopup"). Since my user information is organized as an array
of value objects it's easy to assign the selected user VO
to model.selectedUser:
model.selectedUser =
UserVO(userList.selectedItem );
But am I "allowed" to directly access
the ModelLocator from my view component? Or am I supposed to route this
simple action through the Cairngorm "command chain" (Cairngorm Event ->
Front Controller -> Command Class -> ModelLocator)?
Next
question, what about the popup itself? Can I simply
use PopUpManager.createPopUp( this, UserFormView , true)? Or am I
supposed to treat this as a Cairngorm Event, too?
I feel in "safe
Cairngorm terrain" again with the "updateUser" and "deleteUser" actions on
the buttons. But what about closing the popup window? Is this even worth a
Cairngorm event?
I guess these questions sound rather stupid to those
of you who are more experienced with frameworks. But at the moment these
questions are obstacles on my way to master Cairngorm (which I will
hopefully do one day). I apologize for my verbose post and my bad English,
but I hope that someone can shed some light on these
issues.
Stefan
-- Flexcoders
Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo!
Groups Links
-- Flexcoders Mailing
List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo!
Groups Links
<*> To visit your group on the web, go
to: http://groups.yahoo.com/group/flexcoders/
<*>
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*>
Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Douglas
Knudsen http://www.cubicleman.com this is my
signature, like it?
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___
|