I am using smack with ColdFusion and everything has been going great development wise, but I am stumped now.
I am creating a MUC room and setting room properties on it such as:
//Is the room persistent
answerForm.setAnswer(“muc#roomconfig_persistentroom”,JavaCast(“boolean”,true)); //Field Type is boolean
//Set room description
answerForm.setAnswer(“muc#roomconfig_roomdesc”,JavaCast(“String”,“Cool Room”)); //Field Type is text-single
The above code works great, but now I am trying to set the max users property. I can’'t seem to get it to work. I keep getting an error back from Java telling me that this field is not of type String. I have tried an int also, but no luck. Below is what I am trying.
//Set max users
answerForm.setAnswer(“muc#roomconfig_maxusers”,JavaCast(“String”,“10”)); //Field Type is list-single
So, basically how do I represent the Field type list-single in ColdFusion or what data type would I use if I was developing this in a java application.
Thanks for any advice,
-Dan