Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    is SelectItem has bug or I am missing something?

    I have created simple selectitem object:

    Code:
            queueDropdown = new SelectItem(GridRecord.QUEUE, "Queue", 15);
            queueDropdown.setValueMap(new LinkedHashMap<String, String>(language.wwjbQueues()));
            queueDropdown.setDefaultValue("QBATCH");
            queueDropdown.setTitleOrientation(TitleOrientation.LEFT);
    values come from here:

    Code:
        @DefaultStringMapValue({"QBATCH", "QBATCH", "QSYSNOMAX", "QSYSNOMAX", "ECOMMERCE", "ECOMMERCE", "QINTER", "QINTER", "ASYNC", "ASYNC", "PICKGEN", "PICKGEN", "AUTODEP", "AUTODEP"})
        Map<String, String> wwjbQueues();

    So it looks good, but why I cannot get selected value?
    queueDropdown.getValue() is null while queueDropdown.getValues() has one value.

    this is a screenshot of values(when QSYSNOMAX is selected) while I am debugging:

    Click image for larger version

Name:	smart-gwt-bug.jpg
Views:	26
Size:	18.1 KB
ID:	234830

    What is going on here, am I missing something, this has one job to do and it is failing?

    Thanks.

    #2
    This is only partial code, so we can't see where your error is. Aside from providing complete, runnable code, you should check the actual runtime value of the valueMap you're providing. Either via a GWT issue or a bad properties file, it might have scrambled values.

    Comment

    Working...
    X