Hello, The thing is that antform is meant to be different from <input>. It allows user to override default values.
However, I missed the fact that you were using the unless attributes. What we may be able to do is skip the form display if no "widget" (antform sub-element) is to be displayed. Would that be ok for you? Patrick Quoting Hans Schwaebli <[EMAIL PROTECTED]>: > The thing I tried to suggest kindly is that Antform does not show any form if > all properties for the form have already been set. This is the default > behavior of Ant scripts comparing to Input tasks. It simply skips the Input > task if the property was set. The same behavior should apply to forms if all > properties for the form have been set before. That would enable automation. > > > > "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: > > i just had a quick look in the antform manual, > you're already using the unless attributes. > > so no need for the extra condition > > the script works as it should, showing only > the main screen but you're not able to > declare your own recipient,subject, body > as those properties are already set. > > my env here = ant 1.6.5, jdk1.4.2_05,Win2k > > Regards, Gilbert > > -----Original Message----- > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29, 2006 11:53 AM > To: Ant Users List > Subject: RE: AntForm question > > > Hi, > > use a condition to check whether those props are already set = > > > > > > > > > and in the target where AntForm comes in use unless = > > > > ... > > > so the target useAntForm is only executed if those props are not > already set. > > Regards, Gilbert > > > -----Original Message----- > From: Hans Schwaebli [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29, 2006 11:06 AM > To: Ant Users List > Subject: AntForm question > > When I run this, the form is shown, although all properties are already > set. If all properties are set, why does it show the form? More > important? How can I teach Antform not to show the form if all > properties are set? > > > > > > > > > > > > > > lookAndFeel="com.sun.java.swing.plaf.windows.WindowsLookAndFeel" > save="properties.txt" > image="doc/images/testlogo.jpg"> > To send a mail, use the following form. Pick a recipient, > type a subject and a body...the script will do the rest. > property="recipient" values="[EMAIL PROTECTED]; > [EMAIL PROTECTED]; [EMAIL PROTECTED]" separator=";"/> > property="subject" /> > property="body"/> > property="send"/> > > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]