How to handle RegistrationFieldsEvent.REG_FIELDS?

Hello there,

I’m trying xiff to connect to my jabber server and I have a little question.

After connecting anonymously to my server, I receive a message from it as this :





Enter a username and password to register with this server.

I figured then that a RegistrationFieldsEvent was fired but not.

Does someone have a small example to show me how to handle RegistrationFieldsEvent.REG_FIELDS and more generally IQ messages?

thanks

Stef