xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

Timebox refresh #99

Open kazukishirou opened 11 years ago

kazukishirou commented 11 years ago

Hi xiaochong. I have a question about timebox in zkui i have a grid and a timebox. Inside my grid rows i put a radiobutton with onClick event like this : button1.setRadiogroup(rGroup) button1.addEventListener('onClick'){ def dateBox=self.getFellow('dateBox') def timeBox=self.getFellow('timeBox')

                    dateBox.setValue(resultDate)
                    print timeBox.getValue()
                    resultDate.setHours(hour)
                    print resultDate
                    timeBox.setValue(resultDate)
                    print timeBox.getValue()
                }
                row.appendChild(button1)
                rowDateGrid.appendChild(row);

The print resultDate and such works OK, But the problem is the displayed value in the timebox isn't same with what is displayed in print timeBox.getValue(). It looks like the timebox is not refreshing. However, if have 5 rows of radiobutton, and i click on the last one first and then click on any rows after that, it can refresh. So i have to click on the last one before clicking any other row to get correct result. Has anyone found a solution for this issue? Thanks

xiaochong commented 11 years ago

It's a problem of zk not zkui.