Announcement

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

    Style Issue SmartGWT 2.2

    Hi,

    I've just downloaded the smartgwt 2.2, and I have replaced 'smartgwt.jar', 'smartgwt-skins.jar', and 'Showcase.css' in my project folder. However, none of the style has been applied to Grid and FilterBuilder components.

    I was using smartgwt 2.1, and the style was shown properly by replacing the same files that are mentioned above. Please let me know if I forgot to replace some of the files for v2.2. Any help will be appreciated.

    GWT: 1.5.3

    Thanks

    #2
    Which SmartGWT module are you inheriting? If you're using GWT 1.5.3 and inheriting SmartGwt.gwt.xml (as opposed to SmartGwtNoScript.gwt.xml) you'll have the add

    Code:
    <script> var isomorphicDir = "sc/"; </script>
    in the head section of your host html file and also add

    Code:
        <script src="sc/initsc.js"/>
    if your module xml file.

    In the process of eliminating the need for setting isomorphicDir with GWT 2.x, the use of SmartGwt.gwt.xml with GWT 1.5.3 without setting isomorphicDir broke so you'll have to make the above changes. This will be fixed in the next release but note that Smart GWT 2.3 is likely going to be the last release that supports GWT 1.5.3 and you will need to upgrade to GWT 2.x.

    Sanjiv

    Comment


      #3
      Thank you for your reply. It works now.

      Comment


        #4
        This issue is also reproducible with GWT 2.0.3

        Sanjiv,

        I was using SmartGWT 2.1 together with GWT 2.0.3.
        After I migrated to SmartGWT 2.2 I faced the very same issue with "styles" as KHH did.

        The fix that you suggested above worked, but I would like to inform you that this issue is not specific to GWT 1.5.3

        Regards,
        Iurii

        Comment


          #5
          I've just found the issue with SelectItems in SmartGWT 2.2

          Sanjiv,

          I've played SmartGWT 2.2 a bit more and found out that hovered items of a SelectItem are no longer highlighted in IE.

          The code to reproduce it is:
          Code:
          public class AnotherSample implements EntryPoint {
          
              public void onModuleLoad() {
                  DynamicForm form = new DynamicForm();
                  form.setTitleOrientation(TitleOrientation.TOP);
                  SelectItem selectItem = new SelectItem("selectItem", "Select Item");
                  selectItem.setValueMap("Hello", "World");
                  form.setFields(selectItem);
                  
                  form.show();
              }
          
          }
          To reproduce the problem open the drop-down list and hover the mouse over "Hello" item. You'll notice that the item is not highlighted (see the attached 22issue.png). The expected behavior is that the item is highlighted (see attached 22noissue.png)

          The environment that I use to reproduce the issue:
          - Operating system: Windows XP
          - Browser: IE 7 (both normal browser and GWT development mode)
          - SmartGWT version: 2.2
          - GWT version: 2.0.3

          The additional information is:
          - This issue goes away if I revert my environment back to SmartGWT 2.1
          - This issue is not reproducible on Firefox (I use version 3.6.3)
          Attached Files

          Comment


            #6
            Originally posted by iurii
            Sanjiv,

            I was using SmartGWT 2.1 together with GWT 2.0.3.
            After I migrated to SmartGWT 2.2 I faced the very same issue with "styles" as KHH did.

            The fix that you suggested above worked, but I would like to inform you that this issue is not specific to GWT 1.5.3

            Regards,
            Iurii
            You probably have your host html file under the "public" directory instead of the standard "war" directory.

            Sanjiv

            Comment


              #7
              Originally posted by iurii
              Sanjiv,

              I've played SmartGWT 2.2 a bit more and found out that hovered items of a SelectItem are no longer highlighted in IE.

              The code to reproduce it is:
              Code:
              public class AnotherSample implements EntryPoint {
              
                  public void onModuleLoad() {
                      DynamicForm form = new DynamicForm();
                      form.setTitleOrientation(TitleOrientation.TOP);
                      SelectItem selectItem = new SelectItem("selectItem", "Select Item");
                      selectItem.setValueMap("Hello", "World");
                      form.setFields(selectItem);
                      
                      form.show();
                  }
              
              }
              To reproduce the problem open the drop-down list and hover the mouse over "Hello" item. You'll notice that the item is not highlighted (see the attached 22issue.png). The expected behavior is that the item is highlighted (see attached 22noissue.png)

              The environment that I use to reproduce the issue:
              - Operating system: Windows XP
              - Browser: IE 7 (both normal browser and GWT development mode)
              - SmartGWT version: 2.2
              - GWT version: 2.0.3

              The additional information is:
              - This issue goes away if I revert my environment back to SmartGWT 2.1
              - This issue is not reproducible on Firefox (I use version 3.6.3)
              I'm able to reproduce this and will look into it. Feel free to file an issue with a link to this thread.

              Sanjiv

              Comment


                #8
                I've created the respective issue

                Sanjiv,

                I've created the respective issue in the issue tracker: http://code.google.com/p/smartgwt/issues/detail?id=464

                Regards,
                Iurii Volchyn

                Comment


                  #9
                  This should be fixed in the latest nightly.

                  Sanjiv

                  Comment

                  Working...
                  X