Can I use FormItem.setAutoChildConstructor to use my DateChooser? How? (missing documentation? example?)
I did try but got an error about my class not being loaded. I think I don't understand how to define the class to be loadable or how to specify the class to load or something.
1. the *complete* SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console), for example, \"v8.2p_2012-04-18/PowerEdition Deployment\"
SmartGWT4.0p
SmartClient Version: v9.0p_2013-11-17/LGPL Development Only (built 2013-11-17)
2. browser(s) and version(s) involved
FireFox/Mac
5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)
19:37:28.513:TMR1:WARN:DateItem:isc_DateItem_1[requestedDueDate]:Date Item pickerConstructor class 'com.lstreetc.pi.client.ui.ProjectResultsLG.InnerDateChooser' is not loaded. This property may have been modified incorrectly or a required module may not be loaded. Suppressing the pickerIcon.
6. sample code if applicable
dateItem.setAutoChildConstructor( "picker", "com.lstreetc.pi.client.ui.ProjectResultsLG.InnerDateChooser" );
...
I saw a suggested way to implement my own picker (via a FieldItemIcon), but I wanted to have it show up near the field like the existing DateItem field in the normal flow, just use MY picker, and skip figuring out how to make all that happen properly myself.
I did try but got an error about my class not being loaded. I think I don't understand how to define the class to be loadable or how to specify the class to load or something.
1. the *complete* SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console), for example, \"v8.2p_2012-04-18/PowerEdition Deployment\"
SmartGWT4.0p
SmartClient Version: v9.0p_2013-11-17/LGPL Development Only (built 2013-11-17)
2. browser(s) and version(s) involved
FireFox/Mac
5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)
19:37:28.513:TMR1:WARN:DateItem:isc_DateItem_1[requestedDueDate]:Date Item pickerConstructor class 'com.lstreetc.pi.client.ui.ProjectResultsLG.InnerDateChooser' is not loaded. This property may have been modified incorrectly or a required module may not be loaded. Suppressing the pickerIcon.
6. sample code if applicable
dateItem.setAutoChildConstructor( "picker", "com.lstreetc.pi.client.ui.ProjectResultsLG.InnerDateChooser" );
...
I saw a suggested way to implement my own picker (via a FieldItemIcon), but I wanted to have it show up near the field like the existing DateItem field in the normal flow, just use MY picker, and skip figuring out how to make all that happen properly myself.
Comment