On 02/02/2010 08:46 AM, [email protected] wrote:
> 
>> Your container didn't know a member called "username"!
>> I guess you use a grid layout so it's easy to access the child widgets
>> of the container because you know what you want and where they are. Try
>> the following in your handler function:
>>
>> var username = this.__container.getCellWidget(0, 1);
>> alert(username.getValue());
>>
>> Please do not simple copy and paste code from the mailing list or demo
>> browser or somewhere else. Try to understand what this code does! This
>> way you learn more about javascript and qooxdoo.
>>    
> But i add the password field to the _container. Why i cant access it via 
> __container.password.getValue()

Because "adding" doesn't mean the container gets a new instance member
of that name, which holds the new widget. Rather, the child widget is
added to a special internal "children" array, from where you have to
retrieve it if you want to do something with it. So by "adding" a child
widget the container object does *not* get any new members, but only a
specific member (the child array) is altered.

HTH,

T.

> 
> 
> 
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to