Announcement

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

    IntegerItem, how to use it?

    SmartGWT 2.2

    In a Search form I need to use a text box to enter/display an integer value (not related to any field of the underlying data source). I thought to use an IntegerItem but from the documentation I do not see any method to retrieve its content as a Java int (or Integer), which I would expect. So I need to convert its content with
    Code:
     Integer.parseInt(intItem.getValue().toString()).
    Do I miss anything? What is IntegerItem intended for?

    Kind regards.

    #2
    We'll add a convenience IntergerItem.getValueAsInteger() API but you should also be able to to (Integer) intItem.getValue().

    Comment


      #3
      Added IntergerItem.getValueAsInteger() to SVN.

      Sanjiv

      Comment

      Working...
      X