Issue with popupdatefield

Using vaadin version 6.2.3,

Trying to add a popupdatefield to a gridlayout within a vertical layout in a tabsheet.

The issue is that the popup does not appear, the datefield shows up as a textfield.

Code is as follows

private PopupDateField asOfDate;

asOfDate = new PopupDateField();
asOfDate.setCaption(“As of”);
asOfDate.setStyleName(“calendar”);
asOfDate.setValue(DateUtils.getCurrentDateInYYYYMMDD());
asOfDate.setResolution(PopupDateField.RESOLUTION_DAY);
asOfDate.setImmediate(true);
asOfDate.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
logger.info(“meow”);

		}
	});

Please see attached image.

Any help on getting this right ?

tia
-jv
11206.png

I tested the part of your code that you posted and the popup datefield works just as expected. Even putting it inside gridlayout within a vertical layout inside a tabsheet works fine. Posting a complete test case will allow others to more easily test it and spot the error or find the bug.

Hi!

I have the same problem.

How to reproduce:

  1. Create project
mvn archetype:generate 
-DarchetypeGroupId=com.vaadin 
-DarchetypeArtifactId=vaadin-archetype-clean 
-DarchetypeVersion=LATEST 
-DgroupId=kz.irbis.test 
-DartifactId=popupdate 
-Dversion=1.0 
-Dpackaging=war
  1. Add classes (see popupdate.zip)

  2. Execute

mvn package
  1. Deploy WAR to JBoss 4.2.3 GA

  2. Open http://localhost:8080/popupdate-1.0

  3. See attached images
    11285.zip (7.41 KB)
    11286.png
    11287.png

This looks like bug
#4582
which was fixed for 6.3.3.

You could try the
vaadin 6.3.3 nightly build
and check if the problem persists.

Yes! Fixed.
11288.png