2017-10-04 5 views
0

helly everyone smartgwtバージョン6.1で利用可能な新しい 'Tahoe'テーマをサンプルgwtプロジェクト(挨拶サービス)に設定しようとしています。 誰かが私に有用なヒントを教えてくれることを願っています。 私の問題は、私は新しいテーマを使用するために、すべての設定が、私は私のブラウザ内でプロジェクトを開くと、新しい皮膚が機能していないこと、です。新しいSmartGWTテーマの設定に関する問題 'Tahoe'

マイコード: test.gwt.xml

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN" 
    "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd"> 
<module rename-to='gwtclientserverexample'> 

    <!-- Inherit the core Web Toolkit stuff.      --> 
    <inherits name='com.google.gwt.user.User'/> 
    <inherits name="com.smartgwt.SmartGwtNoScript" /> 

    <inherits name="com.smartclient.theme.tahoe.Tahoe" /> 

    <!-- Specify the app entry point class.       --> 
    <entry-point class='com.sample.gwt.client.GWTClientServerExample'/> 

    <!-- Specify the paths for translatable code     --> 
    <source path='client'/> 
    <source path='shared'/> 

    <!-- allow Super Dev Mode --> 
    <add-linker name="xsiframe"/> 
</module> 

index.htmlを

<!doctype html> 
<!-- The DOCTYPE declaration above will set the  --> 
<!-- browser's rendering engine into    --> 
<!-- "Standards Mode". Replacing this declaration --> 
<!-- with a "Quirks Mode" doctype is not supported. --> 

<html> 
    <head> 
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 

    <title>Web Application Starter Project</title> 

    </head> 
    <body> 

    <script type="text/javascript"> 
     var isomorphicDir = "gwtclientserverexample/sc/"; 
    </script> 

    <script src="gwtclientserverexample/sc/modules/ISC_Core.js?isc_version=10.1.js"></script> 

    <!--include SmartClient --> 
    <script src="gwtclientserverexample/sc/modules/ISC_Foundation.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_Containers.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_Grids.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_Forms.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_RichTextEditor.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_Calendar.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_DataBinding.js?isc_version=10.1.js"></script> 
    <script src="gwtclientserverexample/sc/modules/ISC_Drawing.js?isc_version=10.1.js"></script> 

    <!--load skin--> 
    <script src="gwtclientserverexample/sc/skins/Tahoe/load_skin.js?isc_version=9.1.js"></script> 

    <script type="text/javascript" language="javascript" src="gwtclientserverexample/gwtclientserverexample.nocache.js"></script> 


    <h1>Web Application Starter Project</h1> 

    <table align="center"> 
     <tr> 
     <td colspan="2" style="font-weight:bold;">Please enter your name:</td>   
     </tr> 
     <tr> 
     <td id="nameFieldContainer"></td> 
     <td id="sendButtonContainer"></td> 
     </tr> 
     <tr> 
     <td colspan="2" style="color:red;" id="errorLabelContainer"></td> 
     </tr> 
    </table> 
    </body> 
</html> 

私は私のブラウザを開くと、プロジェクトがそうなります enter image description here

答えて

2

あなたがこれを使用する場合タグ

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

それはあなただけで、デフォルトのテーマを切り替えたい場合は、LGPL版のために使用する正しいタグが

である(あなたのタホテーマload_skin.js含む)

をあなたのindex.htmlファイルからロードされている任意のスクリプトを停止します。

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

あなたは

+1

おかげで、私は含まれている場合、<継承名= "com.smartgwtee.SmartGwtEENoTheme" /> Iました次のエラー:あなたのクラスパスに 'COM/smartgwtee/SmartGwtEENoTheme.gwt.xml' を見つけることができません[ERROR] ;タイプミスの可能性があります。あるいは、クラスパスのエントリをソースに含めるのを忘れていた可能性もあります。私はSmartGWTのLPGL-Versionを使っています。 –

+0

本当に?申し訳ありませんが、私はそれがすべてのバージョンの「com.smartgwtee.SmartGwtEENoThemeだと思った。私は私の答えを更新します。 – Alan

0

「のテーマを切り替える」私は@Alanからの助けを借りて、私の問題を解決したの下で、79ページのクイックスタートガイドhttps://www.smartclient.com/releases/SmartGWT_Quick_Start_Guide.pdfにこれに関連する情報を見つけることができます。

私は含めるために必要な:

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

及びません:その後

<inherits name="com.smartgwtee.SmartGwtEENoTheme"/> 

私は新しいタホ・スキンを含めることができます

<inherits name="com.smartclient.theme.tahoe.Tahoe" /> 

マイ*の.gwt.xml今になります

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
    When updating your version of GWT, you should also update this DTD reference, 
    so that your app can take advantage of the latest GWT module capabilities. 
--> 
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN" 
    "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd"> 
<module rename-to='gwtclientserverexample'> 

    <inherits name="com.smartgwt.SmartGwtNoTheme" /> 
    <inherits name="com.smartclient.theme.tahoe.Tahoe" /> 

    <!-- Specify the app entry point class.       --> 
    <entry-point class='com.sample.gwt.client.GWTClientServerExample'/> 

    <!-- Specify the paths for translatable code     --> 
    <source path='client'/> 
    <source path='shared'/> 

    <!-- allow Super Dev Mode --> 
    <add-linker name="xsiframe"/> 
</module> 
あなたの答えのためのの
関連する問題