1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    42
    Vote Rating
    0
    ramgovind is on a distinguished road

      0  

    Default How to bind children proxy into text field as the parent is different in the editor

    How to bind children proxy into text field as the parent is different in the editor


    I got a scenario which is needed to refer children proxy as editable in the editor has parent proxy. Lets say an example.

    class ParentEditor implements Editor<ParentProxy>
    {

    @UiField
    TextField parentId;

    @UiField
    TextField childrenName; //This is coming from Child proxy of ParentProxy

    ...
    }

    interface ParentProxy extends EntityProxy{

    String getParentId();

    ChildrenProxy getChildren();
    ...
    }

    }

    [ERROR] [ipde] - Could not find a getter for path childrenName in proxy type com..shared.model.proxy.ParentProxy

    Please throw some light on this.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    The @Path annotation can be used here as in the PropertyAccess types.

    Code:
    @UiField
    @Path("children.name")
    TextField childrenName;
    See https://developers.google.com/web-to...ditor_contract for more details - this is the same document I linked in your other post (http://www.sencha.com/forum/showthre...ltiple-editors).

Thread Participants: 1