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

<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:

	<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" />
  1. and may i know what is smartgwtNoscript? do i still need to inherit com.smartgwt.smartgwt ? or both are essential?

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

then what do i put under gwt.xml?

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

am i right?

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

yup thanks.

i put :

&lt;inherits name="com.smartgwt.SmartGwt" /&gt;
&lt;inherits name="com.smartgwt.SmartGwtNoScript" /&gt;
&lt;inherits name="com.smartclient.theme.enterprise.Enterprise" /&gt; 

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

&lt;inherits name="com.smartgwt.SmartGwtNoScript" /&gt;
&lt;inherits name="com.smartclient.theme.enterprise.EnterpriseResources" /&gt; 

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

Sanjiv

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!

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.