You would have to have both set to "false", correct.  You don't actually
"run" the "isValid" method, the JSP translator will run that for you.

> -----Original Message-----
> From: Jeff Born [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:02 PM
> To: Tag Libraries Users List
> Subject: RE: attributes required but not both.
> 
> Cool thanks for the information.  One point of clarification after
looking
> at
> the sparse information I could find on the web is:
> 
> Is it best practices to have both attributes have a "false" required
> attribute and then run isValid() to check if one or the other was
> supplied?
> 
> Thanks,
> 
> jb
> 
>       -----Original Message-----
>       From: Karr, David [mailto:[EMAIL PROTECTED]
>       Sent: Tue 2/25/2003 4:33 PM
>       To: Tag Libraries Users List
>       Cc:
>       Subject: RE: attributes required but not both.
> 
> 
> 
>       Well, if you want to validate this at translation time, then I
guess
> a
>       "TagExtraInfo" class would do it.  This will have a "isValid()"
> method,
>       which takes a "TagData" object, which is basically a hashmap of
>       attributes and values.  You specify the presence of the TEI
class in
> the
>       TLD.
> 
>       > -----Original Message-----
>       > From: Jeff Born [mailto:[EMAIL PROTECTED]
>       > Sent: Tuesday, February 25, 2003 1:30 PM
>       > To: Tag Libraries Users List
>       > Subject: attributes required but not both.
>       >
>       > I have two attributes that one or the other is required, not
both.
>       >
>       > Where do I define this?  I know I read this is possible, but
> haven't
>       been
>       > able to figure out where I saw that information.
>       >
>       > Thanks in advance for any insight into this,
>       >
>       > Jeff Born
> 
>
--------------------------------------------------------------------
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>       For additional commands, e-mail: taglibs-user-
> [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to