Announcement

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

    Component Finding in smart gwt

    Hello all
    I am using smart gwt on windows OS with chrome browser.
    I am using smart gwt for my project and before using smart gwt I was using gwt ext.In the gwt ext there is a feature through which I can find ext-comopnents.

    Here is the code :

    Code:
     public static void setIdentifier(Object value,
        com.gwtext.client.widgets.Component field) {
    field.setId(getUIControlId(String.valueOf(value)));
    }
    
    public static String getUIControlId(String id) {
    return id + "UIControl";
    }
    Above code will set a Id to the field which append string UIControl.

    Now for searching the same particular field I used this.

    Code:
    String id = (String) UIControlFactory.getUIControlId(String
        .valueOf(((component).getId())));
    ExtElement element = Ext.get(id);
    if (element != null) {
        com.gwtext.client.widgets.Component field= Ext
            .getCmp(element);
        }
    By doing this I am able to get the same field for transaction part.

    Now I want to so the same thing in the smart gwt. Please help me out. Thanks in advance

    #2
    I just want to get the component again for the purpose of the getting value of the comonent.
    And it is possible only I have the component.
    So is there any way to get the component of the form (by settingof id or name or by any other way) ?

    Comment

    Working...
    X