In my QxDataManager extension, I have implemented a uniform behaviour for
all widgets that enourmously simplifies form handling. Instead of the
diverse ways of getting and setting the form element values (label, value,
html, checked etc. etc.) and options (for those widgets which support
options), I have implemented getData/setData and a getOptions/setOptions
method. Each widget handles internally what to do with the data provided.
While I don't know how useful the approach is for others, I strongly
recommend normalizing/unifying the API for all form widgets since this, as
Dieter wrote, really simplifies form population / validation / data
retrieval.

Cheers,

Christian

> Yes the method should definitely return the value of the selected
> ListItem.
>
> And setValue should of course select the ListItem which has the given
> value.
>
> In general every ui.form widget should work like this so we can iterate
> through all ui.form widgets and get or set their value without having to
> distinguish between widgets which give values back or not.
>
> To achieve this I've created eg. a widget called RadioBox which is a
> container (HorizontalBox) for RadioButtons. This widget has a value
> property which enables the radiobox with the given value.
>
>
> Sebastian Werner schrieb:
>> I'm not sure. Maybe it's a good idea. Other opinions?
>>
>> Cheers,
>>
>> Sebastian
>>
>>
>>
>> dperez schrieb:
>>
>>> Hi,
>>>
>>> I think I have found a bug.
>>>
>>> If the TextField of a combo box is not editable, ComboBox.getValue()
>>> should
>>> return the value of the selected ListItem, instead of its label.
>>> Do you agree?
>>>
>>> Regards,
>>> David
>>>
>>>
>>>
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> --
> Mit freundlichen Grüßen
> Dietrich Streifert
> Visionet GmbH
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to