1.2.Xから1.3.Xへの移行の時の注意
1.2.9で開発した手元のアプリを1.3.5で動かそうとした時に,ちょっと気になる非互換な修正があったのでメモ.
XHTMLモードで
<html:form action="fooAction" styleId="foo">
のように,
以下のようなエラーメッセージが表示される.
Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name
http://svn.apache.org/viewvc?view=rev&revision=191272によると,以下のようにコミットログに書かれている.
Changing rendering of the form name to use the 'id' attribute when in in XHTML strict mode. If an 'id' is already identified with the 'styleId' attribute, an exception is thrown.
いかにXHTMLに忠実に従うためとはいえ,例外が発生するようになるのはちょっといただけない.
参考URL
- http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 --- 一般的(?)な1.2.Xから1.3.Xへの移行の注意
- http://wiki.apache.org/struts/MigrationStrategy --- 1.Xから2.Xへの移行(まだ試してもいないけど...)
- http://wiki.apache.org/struts/MigrationTools