Monday, February 27, 2012

Re: Date box pop up seems to ignore default css

Any suggestion pls...

On Sun, Feb 26, 2012 at 1:06 AM, Deepak Singh <deepaksingh.kr@gmail.com> wrote:
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



--
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