Announcement

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

    Auto Suggest Form Item has no right border

    Hi,

    I have a custom widget which I use to provide auto suggest text fields. I've had this widget for years but at some point over last year years the right border has disapeared. So My code looks like this, pretty simple...

    Code:
    /**
     * Form item to provide an auto suggest text box
     *
     * @author dale.ellis
     * @since 30/06/11
     */
    public class AutoSuggestItem extends ComboBoxItem {
    
        public AutoSuggestItem() {
            setup();
        }
    
        public AutoSuggestItem(String name, String title) {
            super(name, title);
            setup();
        }
    
        private void setup() {
            setType("comboBox");
            setShowPickerIcon(false);
            setCompleteOnTab(true);
            setHideEmptyPickList(true);
    
            setOptionCriteria(new Criteria());
    
            setDisplayField(AutoSuggestValueDto.VALUE);
            setValueField(AutoSuggestValueDto.VALUE);
        }
    
        public void addCriteria(String name, Object value) {
            getOptionCriteria().addCriteria(name, value);
        }
    
    }
    I think I posted on this forum at the time and got guidance that the way to provide a auto suggest widget is to basically have a combobox with the picket icon. The trouble is, without the picker icon, the widget has no right border...

    Click image for larger version

Name:	SmartGWT AutoSuggest Border Issue.png
Views:	21
Size:	4.0 KB
ID:	241379

    I don't believe this has always been the case, I think this used to work once, but it's not a newly introduced issue. Is there a problem with my code, is there a different/better way to d this now or is it an issue?

    #2
    Hi ellisd5,

    I had the same problem. See this thread for resolution.

    Best regards
    Blama

    Comment


      #3
      Awesome, that's worked

      Comment

      Working...
      X