Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #61
    Error when asociated a canvasItem with dynamicform

    Originally posted by svjard View Post
    It should work. I modified the showcase example, http://www.smartclient.com/smartgwt/showcase/#layout_form_databinding and it works without problem for me.

    Code:
    public class MyItem extends CanvasItem {
    	public MyItem(String name) {
    		setName(name);
    		final DynamicForm f = new DynamicForm();
    		TextItem s = new TextItem("theNewItem");
    		s.addChangedHandler(new ChangedHandler() {
    			@Override
    			public void onChanged(ChangedEvent event) {
    				setValue(event.getValue().toString());
    			}
    		});
    		f.setItems(s);
    		setCanvas(f);
    	}
    
    	@Override
    	public void setValue(String value) {
    		super.setValue(value);
    	}
    	
    	@Override
    	public Object getValue() {
    		return super.getValue();
    	}
    };
    Hi.

    When asociated a canvasItem with dynamicForm, which has dataSource, i dont know why fire an error and its only in view, in that moment i dont retrieve data from server.

    I had an error similiar but i solved that using setCanEdit in onReveal (GWTP)

    Any help, please...

    Comment

    Working...
    X