Announcement

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

    I can't find com.smartgwt.client.widgets.notify.* package


    I'm trying to use com.smartgwt.client.widgets.notify.* classes to implement notifications, but I cannot find this package included in smartgwt.jar. Can you help me?

    "originally posted by jvespi "

    #2

    Notify is a relatively recent feature, you are probably on an older version that doesn't have it.

    Comment


      #3

      I'm using v.12.1p just downloaded today.

      "originally posted by jvespi "

      Comment


        #4

        Yes, it's part of 13.0d - look here: smartclient.com/builds.

        Comment


          #5

          Thanks, now it's compiling.

          I don't see in javadoc how to make notifications persistent and avoid being dismissed, for example when a communications error is raised.

          "originally posted by jvespi "

          Comment


            #6

            You can use NotifySettings to configure notification behaviors. Setting duration to zero via setDuration(0); will prevent a notification being auto-dismissed. setCanDismiss(...); allows you to configure whether a user can dismiss a notificiation.

            In addition to the notifications subsystem, SmartGWT also support APIs such as showPrompt(), warn(), confirm() and ask() on the SC util class: https://www.smartclient.com/smartgwt...t/util/SC.html

            And if you haven't already looked it over, you may also find the documentation on error handling under the special "com.smartgwt.client.docs" pseudo-package useful: https://www.smartclient.com/smartgwtee-latest/javadoc/index.html?com/smartgwt/client/docs/ErrorHandling.htm

            Comment

            Working...
            X