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.
Click me to subscribe
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud