Announcement

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

    questions on using smartgwt-skins.jar

    hi all,

    1) now the skin is placed in separate jar, what should i put in my gwt.xml under inherited name? and how can i use activate the enterprise theme?

    do i also need to update with the latest smartgwt jar?

    by the way, i have tried inheriting
    Code:
    <inherits name="com.smartclient.theme.enterprise.EnterpriseResources"/>
    2 )but i do not have a smartclient jar. how can i use the above inheritance?

    i am now using the treefrog theme with the following configuration:

    Code:
    	<inherits name="com.smartgwt.SmartGwtNoScript" />
          <script src="js/sc/initsc.js"/>
          <script src="js/sc/modules/ISC_Core.js"/>
          <script src="js/sc/modules/ISC_Foundation.js"/>
          <script src="js/sc/modules/ISC_Containers.js"/>
          <script src="js/sc/modules/ISC_Grids.js"/>
          <script src="js/sc/modules/ISC_Forms.js"/>
          <script src="js/sc/modules/ISC_RichTextEditor.js"/>
          <script src="js/sc/modules/ISC_Calendar.js"/>
          <script src="js/sc/modules/ISC_DataBinding.js"/>
          <script src="js/sc/skins/TreeFrog/load_skin.js" />
    3) and may i know what is smartgwtNoscript? do i still need to inherit com.smartgwt.smartgwt ? or both are essential?

    #2
    Hello,

    you just have to add both skin.jar and smartgwt.jar to your classpath

    then to use the enterprise skin just add

    <inherits name="com.smartclient.theme.enterprise.Enterprise"/>

    in your gwt.xml file

    inherit the smartgwtnoscript is better (and u on't have to inherit the smartgwt)

    Regards

    Comment


      #3
      then what do i put under gwt.xml?

      Code:
      <inherits name="com.smartgwt.SmartGwt" />
      	<inherits name="com.smartgwt.SmartGwt-skin" />
      am i right?

      Comment


        #4
        no, just put what I said :

        the <inherits name="com.smartgwt.SmartGwtNoScript" />
        and the <inherits name="com.smartclient.theme.enterprise.Enterprise" />

        (maybe there is also a Default something (I don't remember the exact line) to put too)

        Regards

        Comment


          #5
          yup thanks.

          i put :

          <inherits name="com.smartgwt.SmartGwt" />
          <inherits name="com.smartgwt.SmartGwtNoScript" />
          <inherits name="com.smartclient.theme.enterprise.Enterprise" />

          and it's working well now. thank you!

          Comment


            #6
            Originally posted by ytbryan
            yup thanks.

            i put :

            <inherits name="com.smartgwt.SmartGwt" />
            <inherits name="com.smartgwt.SmartGwtNoScript" />
            <inherits name="com.smartclient.theme.enterprise.Enterprise" />

            and it's working well now. thank you!

            You don't need all 3.

            <inherits name="com.smartgwt.SmartGwt" />

            injects all the SmartClient scripts and the Enterprise theme.


            If you want to include the JS in your host html file, like the Showcase does, the you can inherit

            <inherits name="com.smartgwt.SmartGwtNoScript" />
            <inherits name="com.smartclient.theme.enterprise.EnterpriseResources" />

            and add the appropriate entries in your host html file. View the source of Showcase.html from the distribution.

            Sanjiv

            Comment


              #7
              hi sanjiv

              may i know which part of the showcase.html must i copy?

              i got [ERROR] Unable to load module entry point class com.tribling.gwt.test.mysqlconn.client.MySQLConn (see associated exception for details)

              after i remove com.smartgwt.Smartgwt.

              thank you and thanks for your effort in smartgwt..smartgwt is great!

              Comment


                #8
                Everything from Showcase.html except the showcase GWT module JS file!

                Or if you're just getting started, keep it simple and inherit

                com.smartgwt.Smartgwt

                and you will not need to add anything to your host html file.

                Comment

                Working...
                X