0

gwt-2.4 と smart-gwt 2.4 を使用しています。gwt.xml から standard.css ファイルのタグをコメントアウトしました。テーマは使用していません。

DynamicForm で項目をプログラムで無効にする実験を行っています。Internet Explorer 8 で TextItem フィールドを無効に設定すると、アイテムの上に小さな赤い十字が表示されます。ファイル \sc\skins\standard\images\blank.gif を探しているようです。

私のコンソールでは、次のエラーが表示されます。[警告] 404 - GET /detectfiles/sc/skins/standard/images/blank.gif (127.0.0.1) 1432 バイト

私のgwt xmlファイルは次のとおりです。

<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.widgetideas.WidgetIdeas' /> 
<inherits name='com.google.gwt.libideas.LibIdeas' />
<inherits name="com.smartgwt.SmartGwt"/>  
<inherits name='com.renault.commonparts.commonparts' />
<entry-point class='foo.bar.myentrypointclassname'/>    

私のhtmlファイルは次のとおりです。

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

    <link type="text/css" rel="stylesheet" href="css\detectfiles.css">
       <link type="text/css" rel="stylesheet" href="css\corp.css">
       <link rel="stylesheet" type="text/css" href="css\print.css" media="print" />

       <title>Detect Files</title>

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

          <body>

       <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'     style="position:absolute;width:0;height:0;border:0"></iframe>

        <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color:   red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
           Your web browser must have JavaScript enabled
            in order for this application to display correctly.
          </div>
         </noscript>

 <table width="100%"><tbody><tr><td>

    <!-- Page Header -->
        <div>somecode</div>
    <!-- /Page Header -->

<div>
<table align="center" class="table" border="0">
 <tr>
     <td>

       <table>
        <tr></tr><tr></tr>
        <tr>
          <td id="dfPage">
          </td>
        </tr>
      </table>
     </td>
    </tr>
          </table>
       <br/>

       </div>
   </td>
     </tr>
    </tbody>
        </table>
  </body>
</html>

私のコードには、次の行があります。

final DynamicForm startForm = new DynamicForm();
startForm.disable();
4

1 に答える 1

0

わかった。通常使用する SmartGWT 要素を無効にしたい場合 ( disable との違いがあるかどうかはわかりません:

startForm.setDisabled(true);

問題があるかどうかはわかりませんが、HTML タグには注意する必要があります (末尾のスラッシュを忘れないでください)。

<link type="text/css" rel="stylesheet" href="css\detectfiles.css" />
<link type="text/css" rel="stylesheet" href="css\corp.css" />
于 2012-06-06T13:41:57.917 に答える