powered by Jive Software

FormField setter request

Any chance I can request a change org.jivesoftware.smackx.FormField to expose the setter: setVariable?

Since FormField.setType() is allowed and can be called after using a FormField() constructor, its not guaranteed to remain FormField.TYPE_FIXED.

Not exposing the setter caused me to dig through the code, which I discovered alternate constructor FormField(“variableValue”)

FormField formField1 = new FormField();

formField1.setType(FormField.TYPE_HIDDEN); /* may not always want the TYPE_FIXED */

formField1.setVariable(“whatever”); /* would have been nice to have */

Thank you,

Gary Tessman