1.2.Xから1.3.Xへの移行の時の注意

1.2.9で開発した手元のアプリを1.3.5で動かそうとした時に,ちょっと気になる非互換な修正があったのでメモ.

XHTMLモードで

 <html:form action="fooAction" styleId="foo">

のように,にstyleIdを指定すると,1.2.9では特に問題ないが,1.3.5では例外が発生し,
以下のようなエラーメッセージが表示される.

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