20040711 Sunday July 11, 2004

[ANN] Struts 1.2.1 Beta Released Read the Release Notes or Download. AppFuse has been running a nightly build of Struts from December 2003 - so most of the upgrading has already been done. I haven't upgraded to a recent version because of this functionality change. It probably still exists, but it's about time I upgraded. All tests pass in AppFuse - although I did have to change the core taglib URIs from http://jakarta.apache.org/struts/* to http://struts.apache.org/*. The EL Tag URIs still use http://jakarta.apache.org/struts. Unfortunately, it looks like XDoclet may need to be modified to support the new DTD. Tip o' the hat to Nick. Posted in Java at Jul 11 2004, 10:29:38 PM MDT 2 Comments

Comments:

Has anyone had any luck using the new validwhen rule in combination with other validator rules? I can't seem do something simple like this: The emailAddress field is only required if the sendNewsletter field is not null, but it must be a valid email address. <field property="emailAddress" depends="validwhen, email"> <arg0 key="userinfo.emailAddress.label"/> <var> <var-name>test</var-name> <var-value>((sendNewsletter == null) or (*this* != null))</var-value> </var> </field>

Posted by Matt Van Horn on July 19, 2004 at 09:50 PM MDT #

argh. screwed up the XML...
<field property="emailAddress" depends="validwhen, email">
      <arg0 key="userinfo.emailAddress.label"/>
      <var>
            <var-name>test</var-name>
            <var-value>((sendNewsletter == null) or (*this* != null))</var-value>
      </var>
</field>

Posted by Matt Van Horn on July 19, 2004 at 09:54 PM MDT #

Post a Comment:
Comments are closed for this entry.