Hi all,
I am having some irritating problems with intake and torque (possibly).
Here's my config:
Turbine 2.1
Torque (I think this came with the TDK)
Velocity 1.2-dev
Running on Mac OSX (but I don't think it makes a difference)
Here is what I am doing:
I have a form in which there is a drop-down select box, I have a java class
which builds a vector here is a snippet of code:
public SelectListHelper(String name, String value) {
setName(name);
setValue(value);
}
Which gets set through another class and placed into a Vector. This Vector
is then passed onto the Velocity context where I can get at it.
Now the select list is a list of possible values for a foreign key field
(integer). The values in the select list are the primary keys to be placed.
Originally I had my intake looking like this on one screen:
<field name="ProjectId" key="projId" type="NumberKey">
<rule name="mask" value="[0-9]+">Invalid Id</rule>
<rule name="required" value="true">No Project was selected</rule>
</field>
Which, when I attempted to submit the form, returned an exception "Argument
type mismatch". What puzzled me at the time was the fact that using the same
setup in another program it worked wonderfully - no problems.
So, I changed the type to String and it finally submitted without any
errors.
Unfortunately on a different form I am now getting the same exact problem
just a different class and the old fix isn't working for the new form (it
still works on the old form).
Any ideas would be greatly appreciated.
-warner
+warner onstine+
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>