SSブログ

popcalenderについて [seasar]


もう過去情報になってしまうのでしょうが。。。

・Dolteng Eclipseプラグイン 0.28.0

(Dolteng Chura Project Creator 0.27)

・DbLauncher Eclipseプラグイン 0.1.0

・Sysdeo/SQLI TomcatLauncher 3.2.1

の場合、churaをつくると、同梱されるjarファイルが「teeda-extension-1.0.12.jar」のためPopUpCalenderが上手く使えない(javascriptが展開されない)という事象があります。


そのため下記のjarファイルとjarファイルソースを全部なくし、

【jarファイル】(\src\main\webapp\WEB-INF\lib)

・teeda-ajax-1.0.12.jar

・teeda-core-1.0.12.jar

・teeda-extension-1.0.12.jar

・teeda-tiger-1.0.12.jar

【jarファイルソース】(\src\main\webapp\WEB-INF\lib\sources)

・teeda-ajax-1.0.12-sources.jar

・teeda-core-1.0.12-sources.jar

・teeda-extension-1.0.12-sources.jar

・teeda-tiger-1.0.12-sources.jar

下記のjarファイルを追加する必要があります。

【jarファイル】(\src\main\webapp\WEB-INF\lib)

・teeda-ajax-1.0.13-sp7.jar

・teeda-core-1.0.13-sp7.jar

・teeda-extension-1.0.13-sp7.jar

・teeda-tiger-1.0.13-sp7.jar

【jarファイルソース】(\src\main\webapp\WEB-INF\lib\sources)

・teeda-ajax-1.0.13-sp7-sources.jar

・teeda-core-1.0.13-sp7-sources.jar

・teeda-extension-1.0.13-sp7-sources.jar

・teeda-tiger-1.0.13-sp7-sources.jar

この四つのファイルはセットみたいで、一つ更新しても上手く動きません。

また、以前のバージョンのファイルが残っているとクラスパスに選択しなくても、読み込んでしまうみたいでファイル自体なくす必要があります。

そして、クラスファイルはソースファイルを見に行ってるので、ソースファイルもなきゃ駄目です。

(ちなみにs2-extension-2.4.36.jar、s2-framework-2.4.36.jar、s2-tiger-2.4.36.jarもセットみたいです。)


こうなれば、teeda-html-example-1.0.13-sp7.zipのソースの下記ファイルのセットで動くようになりました。

(一応転載)

〇popupCalendar.html

<html xmlns:te="http://www.seasar.org/teeda/extension">
	<head>
		<title>Calendar</title>
		<style>
		.onTeedaError {
			background-color: #FFCCCC;
		}
		</style>
	</head>
	<body>
		<form id="form">
			<span id="aaaa" class="T_popupCalendar" datePattern="yy/MM/dd" required="true"></span>
			<span id="aaaaMessage">dummy</span>
			<br />
			<span id="bbbb" class="T_popupCalendar"></span>
			<span id="bbbbMessage">dummy</span>
			<br />
			<input id="doShow" type="submit" value="show" />
			<input id="doShow2" type="submit" value="show2" />
		</form>
	</body>
</html>

〇PopupCalendarPage.java

/*
 * Copyright 2004-2009 the Seasar Foundation and the Others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package examples.teeda.web.calendar;

import java.sql.Timestamp;
import java.util.Date;

import org.seasar.teeda.extension.annotation.convert.TimestampConverter;
import org.seasar.teeda.extension.annotation.validator.Required;

public class PopupCalendarPage {

	public Date aaaa;

	@TimestampConverter(pattern="yyyy/MM/dd", target="doShow2")
	@Required
	public Timestamp bbbb;

	public Class doShow() {
		return null;
	}

	public Class doShow2() {
		return null;
	}

	public Class initialize() {
		return null;
	}

	public Class prerender() {
		return null;
	}

}

以上








ちなみに、たくさんログが出てくる方法は、web.xmlに下記を追加(コメントアウトされてると思うので、コメントアウトを外す)

    <filter>
        <filter-name>requestDumpFilter</filter-name>
        <filter-class>org.seasar.teeda.core.filter.RequestDumpFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>requestDumpFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

これがわかんなくて、昨日仕事で一日費やした。。。。涙

「教えて」みたいな掲示板とかまだ上手く使えないっす。


nice!(0)  コメント(3)  トラックバック(0) 

nice! 0

コメント 3

yone098

MLに投げて頂ければ、すぐ回答もらえますよー。<br>https://ml.seasar.org/mailman/listinfo/seasar-user
by yone098 (2009-06-24 16:19) 

hahatetenabe

そうでしたか。<br>参加はしてあるんですが、<br>開発系のMLって利用したことがなかったので…<br>今度なにかあれば聞いてみます。<br>ありがとうございました。
by hahatetenabe (2009-07-01 00:54) 

yone098

全然気軽にメール出してもらってOKですよー。<br>よろしくお願いします。
by yone098 (2009-07-01 19:38) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

JDBC接続設定メモphp5.2.10+apache2.2... ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。