I have a simple TextArea in a simple Form that looks something like this:

public class MyForm extends Form {
        TextArea message
        TextField to;
        TextField subject;
        
        public EditorForm(String id) {
                super(id);

                message = new TextArea("textArea");
                to = new TextField("textArea");
                subject = new TextField("textArea");
                
                add(to);
                add(subject);
                add(message);
                add(new Button("submit"));
        }
        
        protected void onSubmit() {
                System.out.println("To:" + [WHAT EVER THE 'TO' TEXTFIELD HAS] )
                System.out.println("Subject:" + [WHAT EVER THE 'SUBJECT' 
TEXTFIELD HAS] )
                System.out.println("Message:" + [WHAT EVER THE 'MESSAGE' 
TEXTAREA HAS] )
        }
}


How do I retrieve and simply print out what ever the user has inputted into
the text fields and text area on submit? It seems like a simple thing, am I
missing something?

Thank you.
-- 
View this message in context: 
http://www.nabble.com/Retrieving-TextField-and-TextArea-text-on-submit-tp14395591p14395591.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to