Announcement

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

    Problem with disabled TextItem

    I am trying to disable TextItem and have noticed following problem:
    In Internet Explorer, as well as in hosted browser I am getting red X sign on every disabled field. Looking at log console, I can see what the problem is:

    [WARN] Resource not found: sc/skins/standard/images/blank.gif; (could a file be missing from the public path or a <servlet> tag misconfigured in module...

    Why this image is looked up in */standard/* folder instead of */SilverWave/* which is skin I use?

    Also, what should be behavior of setShowDisabled() method? I can't see any difference when setting it to true/false on both disabled and enabled item.
    I am using latest night build of SmartGWT (revision.248)

    #2
    This sounds like you might be creating components or calling certain methods before the skin is loaded. Can you show your .html file?

    Comment


      #3
      html file? I am using SmartGWT so my components are created in java classes. My html file is stadard file created by GWT - nothing special in it.

      Just to mention that all other stuff (images, css) are loaded normally.

      Comment


        #4
        Hm, I have looked at html file of Showcase application and I can see it loads a lot of scripts and that it sets skin. On the other hand, helloworld application loads only compiled module file. My application uses "helloworld" approach - it just loads module file.

        What is correct approach? I have tried using disabled property in Showcase application and it works there.

        Comment


          #5
          Please post what your module file looks like and also the build you are using.

          You can either inherit SmartGwtNoScript and manually include the required js files as the Showcase does, or for ease of development inherit SmartGwt which will pull in all the resources.

          Sanjiv

          Comment


            #6
            OK, my module file looks like this:
            Code:
            <module>
            
            
                  <inherits name='com.google.gwt.user.User'/>
            	  <inherits name="com.google.gwt.i18n.I18N"/>
            	  <inherits name="com.google.gwt.json.JSON"/>
            	  <inherits name="com.smartgwt.SmartGwt"/>
            	  
                      <entry-point class='com.mycompany.cam.gwt.client.AssetSearchApp'/>
                
                
                      <stylesheet src='AssetSearchApp.css' />
                 
            	
            </module>
            I am currently using revision.250.

            Comment


              #7
              Is there a solution yet to this issue? Disabled fields show up with the red X mark in IE, it works fine in FireFox. We are using a custom theme and not the standard or any SmartGWT theme.

              Our application GWT xml file has these:
              Code:
              	<inherits name='com.smartgwt.SmartGwtNoTheme' />
              	<inherits name='com.smartgwt.SmartGwtNoScript' />
              	<inherits name="com.smartgwt.DrawingNoScript"/>
                      <inherits name="com.ourapp.OurTheme"/>
              Our custom theme OurTheme.gwt.xml has this:
              Code:
              <module>
                  <script src="sc/skins/OurTheme/load_skin.js"/>
              </module>
              The load_skin.js in the custom theme has these:
              Code:
              isc.Page.setSkinDir("[ISOMORPHIC]/skins/OurTheme/")
              isc.Page.loadStyleSheet("[SKIN]/skin_styles.css", theWindow)
              In the deployed war, there's no standard skin, only our custom theme under sc/skins folder, so why is the disabled form field trying to access this?

              <app>/sc/skins/standard/images/blank.gif

              We are using GWT 2.3 and latest SmartGWT nightly for 3.0 (as of yesterday).

              Comment


                #8
                See this thread especially the summary in post 28.

                Comment

                Working...
                X