1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    8
    Vote Rating
    0
    vishesh is on a distinguished road

      0  

    Default Advanced Combobox with Localhost

    Advanced Combobox with Localhost


    Hi I'm trying the advanced combobox for ExtJS but id doesn't seem to help me.
    Below is what I'm trying to do. The jsp on localhost returns the same jason string as the one from extjs.com. But when I type in the combobox it does not return any result.
    I'm not sure what I'm doing wrong or if it is even possible this way. I want to use this combobox for other lookup from the server on my localhost say for example user name search.
    Any help or suggestions will be much appreciated.
    Thanks
    Vishesh
    Code:
    //String url = "http://extjs.com/forum/topics-remote.php";
    String url = "http://localhost:9090/mobiledoc/jsp/get-remote.jsp";
    ScriptTagProxy<Object, PagingLoadResult<ModelData>> proxy = new ScriptTagProxy<Object, PagingLoadResult<ModelData>>(url);
    ModelType type = new ModelType();
    type.root = "topics";
    type.totalName = "totalCount"; type.addField("title", "topic_title");
    type.addField("topicId", "topic_id"); type.addField("author", "author"); type.addField("excerpt", "post_text");
    DataField date = new DataField("lastPost", "post_time");
    date.type = Date.class;
    date.format = "timestamp";
    type.addField(date);
    JsonReader<PagingLoadConfig> reader = new JsonReader<PagingLoadConfig>(type) { @Override
    protected ListLoadResult newLoadResult(PagingLoadConfig loadConfig, List<ModelData> models) { PagingLoadResult result = new BasePagingLoadResult(models, loadConfig.getOffset(),loadConfig.getLimit());
    return result; } };
    PagingLoader loader = new BasePagingLoader(proxy, reader); ListStore<ModelData> store = new ListStore<ModelData>(loader);
    ComboBox<ModelData> combo = new ComboBox<ModelData>();
    combo.setWidth(580);
    combo.setDisplayField("title"); combo.setItemSelector("div.search-item");
    combo.setTemplate(getTemplate()); combo.setStore(store); combo.setHideTrigger(true); combo.setPageSize(10);
    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(10); vp.add(combo);

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    This looks like GXT/GWT code???

  3. #3
    Ext User
    Join Date
    Feb 2009
    Posts
    8
    Vote Rating
    0
    vishesh is on a distinguished road

      0  

    Default


    Quote Originally Posted by tryanDLS View Post
    This looks like GXT/GWT code???
    Its EXT GWT code, complete the same at http://extjs.com/explorer/#advancedcombobox
    I'm just trying to alter it with localhost.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar