Coldfusion together with smack MUC

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

dnelson wrote:

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.

– Dan and I emailed about this offlist, but I believe this should work:

AJ

AJ,

Your awesome! That worked like a charm! Thank you!

//set the max number of users that can join this room

myMax = createObject(“java”, “java.util.ArrayList”).init();

myMax.add(JavaCast(“string”, “50”)); //0 equals unlimited

answerForm.setAnswer(“muc##roomconfig_maxusers”,myMax);

Now I can get the ball rolling…

-Dan