gwtbootstrap / gwt-bootstrap

A GWT Library that provides the widgets of Bootstrap, from Twitter.
http://gwtbootstrap.github.com
406 stars 190 forks source link

DateBox inside DialogBox doesn't seem to work #413

Open syrinx2012 opened 11 years ago

syrinx2012 commented 11 years ago

I'm trying to convert an existing GWT application to use GWT Bootstrap components instead of "native" GWT components. For some reason, it looks like com.github.gwtbootstrap.datepicker.client.ui.DateBox won't work as a replacement for com.google.gwt.user.datepicker.client.DateBox inside a GWT DialogBox (The calendar is displayed but cannot select date or change month). However, if I replace my DialogBox with a Bootstrap Modal the com.github.gwtbootstrap.datepicker.client.ui.DateBox seems to work fine.

JulienOrain commented 11 years ago

Hi, I am having the exact same issue. However, I can't use the Bootstrap Modal in my application to be consistent. Is it any way to fix it ? Do you have some workaround ? Thanks in advance. Regards, Julien Orain

syrinx2012 commented 11 years ago

Hi Julien,

Sorry to disappoint you, but I decided not to use GWT Bootstrap for now. Although it seems like great idea to have GWT component library based on Bootstrap, i find that there is way too much bugs and not enough support. But still, if you find a solution to this one, I would appreciate if you could share the rest of us.

Thank you!

JulienOrain commented 11 years ago

It appears that it works if the Dialog box is not considered as modal (setModal(false)). The reason is that the dialog box captures also events outside of the box. In my case, I have a background div behind my dialog box to do not allow clicks on the mail panel.