Is this a valid place to ask AntForm questions?

I've just discovered AntForm as a result of Gilbert Rebhan's reply to another question and I strongly prefer it to the core 'input' task, which is giving me grief lately. However, I have a few questions that aren't being answered by the documentation. The discussion forums for AntForm on SourceForge have only a single post that is 9 months old so I'm guessing that is not the way most people get help with AntForm....

Assuming it's okay, here are my questions.

'Focus' parameter within AntForm task
--------------------------------------------
How is the 'focus' parameter within AntForm supposed to work? I can't figure out how to identify which on the controls on my form are supposed to get the focus: none of the controls, like textProperty, seem to have a parameter like 'name' or 'id' so I don't know what value to give to the 'focus' parameter to make it put the focus on a specific one of my textProperty controls.

For instance, given this task:

<antform title="Upload to Siloo Server"

save="properties.txt"

stylesheet="${resume.xml.dir}\resume.style"

image="${resume.xml.dir}\Silo.gif"

focus="userid">

<label>Please supply the userid and password for the Silo server.</label>

<textProperty label="Userid: " property="userid" columns="15" required="true"/>

<textProperty label="Password: " property="password" columns="15" password="true" required="true"/>

<cancel label="Cancel"/>

</antform>

I'd like to set the focus on the Userid textProperty but when I set focus="userid" in the antform task, _none_ of the controls get the focus. If I press Tab, the focus is set to Userid then cycles to Password, Reset, OK, nothing again, Userid, Password, etc. Based on similar tools I've used in the past, I was expecting some kind of a name parameter for each control, e.g. name="Silo-userid", and then I would have set focus="Silo-userid" but there doesn't seem to be any comparable parameter for the various controls.

Cancel button within AntForm task
---------------------------------------
What is the Cancel button supposed to do when it is pressed? As you can see in the previous example, I have a Cancel button. It appears to the right of the OK button when I display the form and I move the focus to it by hitting Tab when I am on the OK button. So far so good.

But when I click on it, it proceeds to do the remaining tasks in the target, the first of which is an 'ftp' task to upload files to the server. Naturally, the 'ftp' fails because the AntForm has not obtained a userid and password from the user. Is that what's supposed to happen?

I had thought/hoped that I could somehow get antform to invoke a task that let me fail more gracefully. I wanted to make the build invoke a target that did a 'fail' with a specific message, like "Sorry, but you failed to provide a userid and password for the server so the build must end. Your other tasks completely successfully but the files were not uploaded."

Is that possible? If so, how do I do it?


Reset button within AntForm task
--------------------------------------
I'm really confused about the Reset button that shows up on the AntForm. Based on CGI forms, I had assumed that it would blank out textProperty controls, re-initialize Lists, etc. but it doesn't seem to do _anything_ at all. Is it suppose to reset controls to their initial states or not? If yes, how do I make it do so? If no, what _is_ it supposed to do?

Also, is it possible to omit the Reset button if I don't want it for a given form? If yes, how? If no, how do I make a feature request to this effect to the developers?

Also, is it possible to alter the placement of the Reset button? I'd like to have it to the right of the OK button, not the left. If that is possible, how do I do it?

Stylesheets within AntMenu/AntForm tasks in Eclipse
------------------------------------------------------------
Has anyone got AntForm/AntMenu stylesheets to work correctly? I'm finding that _some_ properties in my stylesheets are being obeyed but others are being ignored. I'm not sure why.

For example, given this stylesheet:

banner.background.color=#CCFF99

menu.color=#CCFF33

label.color=#33CC33

link.color=#FF33DD

textProperty.color=#00FF00

textProperty.background.color=#0000FF

background.color=#FFFFFF

color=#FF0000

the only properties that seem to be getting obeyed are banner.background.color and background.color; everything else continues to have a white background with black text on it. I thought perhaps I was misidentifying some of the properties but the spelling and case of the properties I'm using seems to mach exactly with the style.test file that comes with AntForm.

Does anyone know how I can get _all_ portions of my style sheet to be obeyed?

--

Both of my copies of Ant, the one in Eclipse and the one outside of Eclipse, are version 1.6.5. I am using AntForm 1.4.5. My OS is Windows XP Pro (SP2).

If anyone can help me with any of these questions, I'd love to hear from you!

---
Rhino


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date: 21/12/2005


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

Reply via email to