Announcement

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

    I need help!how to get UUID?我需要帮助怎么获得UUID

    I use there

    TextItem UUID = new TextItem();
    String UU
    UUID.setValue(UU.getValue(UUID.randomUUID().toString());

    then Errors in 'XXXXXXXXXX'
    line 248:No Source code is available for type java.util.UUID; did you forget to inherit a required module?

    我用的代码在下面
    TextItem UUID = new TextItem();
    String UU
    UUID.setValue(UU.getValue(UUID.randomUUID().toString());
    使用之后报错第一次可以获取到UUID但是第二次就获取不到了,报错如下
    Errors in 'XXXXXXXXXX'
    line 248:No Source code is available for type java.util.UUID; did you forget to inherit a required module?

    #2
    java.util.UUID is not available for client-side coding in GWT. Check out the http://code.google.com/webtoolkit/do...atibility.html GWT documentation for an overview of available Java classes and extensions in GWT.

    Comment


      #3
      There is an implementation available for use with GWT.
      It differs from the original implementation of java.util.UUID but is quite useful.

      http://www.2ality.com/2009/01/uuids-for-gwt.html

      Comment

      Working...
      X