The following two files may be helpful in understanding how to go about generating a GUI from the FileThis "complex" question data, and in constructing an answer string from what the user enters:
These are taken from the FileThis Flex web client. Both files define classes that mediate between passive presentation views and data models.
The first manages a user dialog view whose content will contain one of several view/mediator pairs, depending on the type of question that has been posed. See the onRegister method of the QuestionDialogMediator class.
The second class is a mediator that manages the more interesting of these question types, the "complex" question. Note that the constructor accepts value objects for connection and question records. The generateGui method is invoked in the constructor. It parses the complex question data and instantiates views for each question part --things like radio buttons, and text entry fields. When the user clicks the button to commit his answer, the QuestionDialogMediator will call the ComplexQuestionMediator's answer method, which is responsible for extracting the answer data from the UI controls and for building a string which has a format that the FileThis service expects.