Forums: 公開ディスカッション (Thread #36377)

マスカットのEclipse プレビュが表示されない (2015-01-15 09:55 by tatmatsuda #75247)

お世話になります。
マスカットで画面を生成していますが,プレビュが全画面において表示されません。
例えば以下のログイン画面のソースを転記します。
Eclips 3.4.1
マスカット 2.2.0.v20100928

login.controller.xmlでワーニング
Parent bean 'blogicXmlRequestCastorViewController' not found
がでています。
----------------------------
Login.xml

<?xml version="1.0" encoding="UTF-8"?>
<layoutDef>
<layout name="Login">
<divHtml name="divHtml" top="114" left="0"><![CDATA[
<h2>一貫原価管理システム</h2>]]></divHtml>
<label name="lblNew" top="236" left="366" text="ユーザID" className="libelle1"/>
<label name="lblNew1" top="267" left="366" text="パスワード" className="libelle1"/>
<text name="txtUid" top="234" left="447" width="178" tabIndex="0" datatype="NA" nbchar="10"/>
<text name="txtPwd" top="264" left="447" width="178" tabIndex="1" datatype="P" nbchar="10"/>
<button name="btnLogin" top="301" left="396" width="130" tabIndex="2" title="ログイン" adaptToText="false"/>
<button name="btnClose" top="301" left="541" width="88" tabIndex="2" title="終了" adaptToText="false"/>
<label name="Login_lblZoomAlert" top="350" left="320" text="ブラウザの拡大率が100%になっていない為,正しく表示されない場合があります。&lt;br&gt;拡大率100%での利用を推奨します。" className="libelle1"/>
</layout>
</layoutDef>

----------------------------
index.html

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AAAシステム</title>
<script type="text/javascript" src="./resource/js/login_open.js"></script>
</head>
<body onload="WinOpen()" bgcolor="#f5f5f5">
<div id="divMaskat" ></div>
</body>
</html>
------------------------------
login_open.js

function WinOpen(){


wx = 1014 * screen.logicalXDPI/screen.deviceXDPI;
wy = 690 * screen.logicalXDPI/screen.deviceXDPI;

x = (screen.width - wx) / 2;
y = (screen.height - wy) / 3;
//マテコンシステムOPEN
subWin = window.open("./main.html","PwbsMainWindow","left="+x+",top="+y+",width="+wx+",height="+wy);
//自ウィンドウをクローズする。
(window.open('','_self').opener=window).close();

}
-----------------------------
login.controller.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--=====================================================-->
<!-- Generated by TERASOLUNA IDE for Rich Client -->
<!-- Date: 2012/09/12 19:08:50 -->
<!--=====================================================-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">

<!-- 01.ログイン -->
<bean name="/Login_LoginCheckController" parent="blogicXmlRequestCastorViewController"
scope="singleton">
<property name="blogic" ref="Login_LoginCheckBLogic" />
</bean>
<bean name="/Login_OnloadController" parent="blogicXmlRequestCastorViewController"
scope="singleton">
<property name="blogic" ref="Login_OnloadBLogic"></property>
</bean>
<!-- 01.ログアウト -->
<bean name="/Common_LogoutController" parent="blogicXmlRequestCastorViewController"
scope="prototype">
<property name="blogic" ref="Common_LogoutBLogic" />
</bean>

<!-- 01. ログイン(出図通知メールから起動時図面ダウンロード) -->
<bean name="/Login_DownloadDrawingsController" parent="blogicXmlRequestCastorViewController"
scope="singleton">
<property name="blogic" ref="Login_DownloadDrawingsBLogic"></property>
</bean>
</beans>

-----------------------------
以上

Répondre à 75247×

You can not use Wiki syntax
Vous n'êtes pas connecté. Pour distinguer vos messages en provenance du reste, vous devez choisir un surnom. (L'unicité du surnom est pas réservé. Il est possible que quelqu'un d'autre pourrait utiliser exactement le même surnom. Si vous voulez l'assurance de votre identité, nous vous recommandons de vous connecter avant de poster.) Connexion

Re: マスカットのEclipse プレビュが表示されない (2015-01-20 11:34 by futamuraa #75292)

レイアウト定義XML(Login.xml)での以下の行が問題ではないかと思います。
<text name="txtUid" top="234" left="447" width="178" tabIndex="0" datatype="NA" nbchar="10"/>

Rialtoのtext部品でのdatatype属性に、"NA"は設定できません。
http://maskat.sourceforge.jp/index.php?Rialto%2FText

このため、エラーが発生してプレビューが表示されなかったものと思われます。
datatype属性を"N"に変更した場合は、プレビュー表示されました。

ひとまず上記の内容で修正し、プレビュー表示されるかご確認ください。

また、index.html上でmaskat.jsもしくはmaskat.js.uncompressedのロード記述が見当たりません。
マスカットIDEのプレビュー表示では影響しませんが、Webサーバ等で動かす際には必須となります。

なお、こちらでの確認手順は以下のように確認しました。
Eclipse 3.4.2 (Pleiades All in One 3.4.2)
maskat-ide: 2.2.0

確認手順:
マスカットプロジェクトを作成
マスカットアプリケーションを作成
レイアウトxmlをマスカットエディターで開き、ソースタブでLogin.xmlの内容に書き換えて保存。
プレビュータブを開く
この手順で試すと、properties.jsonの"log.default.level"項目で"INFO"や"ERROR"を
設定しておくと、エラーメッセージが表示されます。

XML の読み込みに失敗しました: layout.xml Caused by: text 要素の属性 datatype の読み込みに失敗しました。

Caused by: データ型の変換に失敗しました。データ型: enum, 値: NA
url: file:///C:/maskat/pleiades-j3.4/workspace/faqTest/maskat/core/maskat.js
line: 1

レイアウトタブやソースタブで問題の箇所を修正すると、プレビュー表示できました。

以上、宜しくお願い致します。
Répondre à #75247

Répondre à 75292×

You can not use Wiki syntax
Vous n'êtes pas connecté. Pour distinguer vos messages en provenance du reste, vous devez choisir un surnom. (L'unicité du surnom est pas réservé. Il est possible que quelqu'un d'autre pourrait utiliser exactement le même surnom. Si vous voulez l'assurance de votre identité, nous vous recommandons de vous connecter avant de poster.) Connexion

Re: マスカットのEclipse プレビュが表示されない (2015-01-29 17:40 by tatmatsuda #75335)

[メッセージ #75292 への返信]
手順の詳細情報まで記載していただき
ありがとうございます。
まずは単純にソースを以下で書き替えましたが,
ご指摘のdatatype="NA"をdatatype="A"にしましたが
やはり,表示されません。
手順通りでやってみてエラーをみてみようと思います。
よろしくお願いします。
Répondre à #75292

Répondre à 75335×

You can not use Wiki syntax
Vous n'êtes pas connecté. Pour distinguer vos messages en provenance du reste, vous devez choisir un surnom. (L'unicité du surnom est pas réservé. Il est possible que quelqu'un d'autre pourrait utiliser exactement le même surnom. Si vous voulez l'assurance de votre identité, nous vous recommandons de vous connecter avant de poster.) Connexion