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>

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

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


JDBC接続設定メモ [seasar]


この本を買って、seasarのScaffold機能の凄さを知ったので、

Seasar2によるスーパーアジャイルなWeb開発 (WEB+DB PRESS plusシリーズ)

Seasar2によるスーパーアジャイルなWeb開発 (WEB+DB PRESS plusシリーズ)

postgresでscaffoldをしようと思ったら、できねー、できねー。

やっとこできました。

ドライバ設定して、最後に改めて下記の「検索」を押さないと駄目なんですね。

f:id:hahatetenabe:20090617000144g:image

下記のサイトが参考になりました。

http://d.hatena.ne.jp/rts/20070420/1177045545

http://inray.cocolog-nifty.com/blog/2009/03/seasar2postgres.html

http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1020193780


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