Sorry if this is a repeat, but I could not find any thread with correct answer.
here is my code segment.
I need the end_of_line character (whatever) be part of return value from getValue() method.
Thank you.
here is my code segment.
Code:
final DynamicForm form = new DynamicForm(); form.setNumCols(2); form.setColWidths("15%", "85%"); final TextAreaItem textarea = new TextAreaItem(); textarea.setTitle("Enter New License"); textarea.setRequired(true); textarea.setWrap(TextAreaWrap.HARD); textarea.setWidth("*"); textarea.setColSpan(2); textarea.setEndRow(true); ButtonItem save = new ButtonItem("Save"); save.setColSpan(2); save.setAlign(Alignment.CENTER); save.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub if (form.validate()) { Log.info("value="+textarea.getValue()); textarea.clearValue(); } } }); form.setFields(textarea, save);
Thank you.
Comment