Results 1 to 2 of 2

Thread: Best way to send String value in PageConfig object of a grid with remote paging

  1. #1

    Exclamation Best way to send String value in PageConfig object of a grid with remote paging

    I need to send a string value inside PageConfig object to the server side . I tried overriding

    PagingLoadConfig


    public interface ExtPagingLoadConfig extends PagingLoadConfig, IsSerializable{

    /*public void setSearchString(String searchString);

    public String getSearchString();*/

    public void setValue(String value);

    public String getValue();
    }

    BasePagingLoadConfig

    public class ExtBasePagingLoadConfig extends BasePagingLoadConfig implements
    ExtPagingLoadConfig, Serializable {

    private static final long serialVersionUID = 1L;
    protected String value = null;

    public ExtBasePagingLoadConfig() {
    }

    public ExtBasePagingLoadConfig(int offset, int limit, String value) {
    setOffset(offset);
    setLimit(limit);
    setValue(value);
    }

    public String getValue() {
    return value;
    }

    public void setValue(String value) {
    this.value = value;
    }

    }

    It works but the PagingToolBar throws class cast exceptions. Possibly because of there subclassing.

    In server side
    @Override
    public BasePagingLoadResult<Article> getArticles(ExtPagingLoadConfig pageConfig) {


    }

    i need the pageconfig object to have the string attribute.

    Is there any easy way to send values in pageconfig object without breaking the oaging toolbar.

    -avinash

  2. #2

    Default

    the exception is

    java.lang.ClassCastException: com.extjs.gxt.ui.client.data.BasePagingLoadConfig cannot be cast to com.publiture.tools.client.extend.ExtPagingLoadConfig

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •