I'm relatively new to Yii (working with v1.1.2) and just came across jui (v2.4.2) as I've been trying to enhance both usability and visual components. I have have been able to find answers to just about all of my formatting and usability issues with the EDatePicker, but have one major issue that I can't resolve: the date selected is not being saved into the model (if a value exists in record, it's read into the widget just fine). Here's my current code. I do have to say in advance that I've a large number of combinations trying to get it to work.
<?php $this->widget('application.extensions.jui.EDatePicker', array(
'name'=>'birthday',
'model'=>$model,
'attribute'=>'birthday',
'compression'=>'none',
'fontSize'=>'0.9em',
'options'=>array('changeMonth'=>true, 'changeYear'=>true, 'yearRange'=>'1950:2010'),
'value'=>$model->birthday,
));
?>
I've tried putting the 'value' setting inside of 'htmlOptions', with and without the 'attribute' setting, etc. to no effect.
Any ideas?
The other minor, but potentially annoying issue is that when I click into the text field associated with this widget, the browser window flashes extreme quickly/briefly as the calendar starts to display.
Any ideas on either of these? Or is this a dead project (based on the lack of activity in this forum lately)?
TIA,
Henry