Saturday, February 25, 2012

Date box pop up seems to ignore default css

Hi All,

I have a ui:binder and am using date box as follows

<d:DateBox width="16em" ui:field="agPacValidityTo" ></d:DateBox>

Java:
DateTimeFormat df = DateTimeFormat.getFormat("EEE, MMM d, yyyy");
Format f  = new DateBox.DefaultFormat(df);
agPacValidityFrom.setTitle("Validity date");
agPacValidityFrom.setFormat(f);
agPacValidityFrom.addValueChangeHandler(new ValueChangeHandler<Date>() {

@Override
public void onValueChange(ValueChangeEvent<Date> event) {
Date date = event.getValue();
       String dateString = DateTimeFormat.getMediumDateFormat().format(date);
agPacValidityHiddenFrom.setText(dateString);
}
});


The problem i am getting is that the date popup is not shown properly. The pop up appears without any css applied to it. So the look n feel of pop up is totally disturbed.

Am i missing something here ?

Thanks 
Deepak Singh

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment