You can get 2-way binding in MXML using the mx:binding tag. I'm not
sure if that would be cleaner / better than your current approach, though.
Rodrigo Pereira Fraga wrote:
> Hi,
>
> I'm looking for a better solution for it.
> I have two solutions:
>
> 1- With a model declared with a DTO(MXML)
> <user:User id="user" login="{inputLogin.text}"
> password="{inputPassword.text}"/>
>
>
> 2- With custom components, like it:
> <apolloti:TextInputBindable
> text="{model.user.login}"
> entity="{model.user}" attribute="login"/>
>
> But I'm not happy. Does anybody has an another solution?
> The problem is that the [Bindable] doesn't have a bind bi-direcional, like
> Seam....
>
> Thanks
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>
--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust