1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default Page refresh

    Page refresh


    Hello,

    I have a strange issue. I need to dynamically load the date of a layout container using a user entered value in a different layout container. As per example,

    First Layout container has A,B(Text) on display. Once you click A , another layoutcontainer with M,N,Y (Text) will be displayed. If you click B, then it would be X,Y. With A I have a selection listener to load the second layout. If i click on A/B, the 2nd layout gets displayed without data, if I maximize the screen, then the display with M,N,Y or X,Y come. Can you please help me to get rid of this?

    Regards
    Arup

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    If you post your code, that would help us to see what is wrong with it.

  3. #3
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    see the code in below .It is calling a RPC while loading it

    package
    com.ambernet.sep.ucare.oc.client.widgets.forms;


    import
    java.util.Iterator;

    import
    java.util.List;


    import
    com.ambernet.sep.ucare.oc.client.controller.helper.ApplicationInstanceConstants;

    import
    com.ambernet.sep.ucare.oc.client.controller.helper.LabelMapper;

    import
    com.ambernet.sep.ucare.oc.client.controller.helper.ServiceRegister;

    import
    com.ambernet.sep.ucare.oc.client.model.ProductCategory;

    import
    com.ambernet.sep.ucare.oc.client.serviceinterfaces.ProductServiceAsync;

    import
    com.extjs.gxt.ui.client.Events;

    import
    com.extjs.gxt.ui.client.Registry;

    import
    com.extjs.gxt.ui.client.event.BaseEvent;

    import
    com.extjs.gxt.ui.client.event.Listener;

    import
    com.extjs.gxt.ui.client.widget.LayoutContainer;

    import
    com.extjs.gxt.ui.client.widget.MessageBox;

    import
    com.extjs.gxt.ui.client.widget.Text;

    import
    com.extjs.gxt.ui.client.widget.form.FormPanel;

    import
    com.extjs.gxt.ui.client.widget.layout.FitLayout;

    import
    com.google.gwt.core.client.GWT;

    import
    com.google.gwt.user.client.Event;

    import
    com.google.gwt.user.client.rpc.AsyncCallback;


    /**
    *@authorarup.sarkar

    *
    */

    public
    class BrowseProductCategory extends LayoutContainer {

    private FormPanel fp;
    private ProductServiceAsync productService;
    privateintproductCategoryId;



    public BrowseProductCategory() {
    Registry.register(ApplicationInstanceConstants.
    BROWSE_PRODUCT_CATEGORY, this);
    this.setLayout(new FitLayout());

    fp = new FormPanel();
    fp.setHeading(LabelMapper.getInstance().getMnemonic(
    "BROWSEPRODUCT_BROWSECATEGORY"));
    fp.setFrame(true);

    // productCategoryId = 1;


    if (Registry.get(ApplicationInstanceConstants.SELECTED_PRODUCTSEGMENT_ID) != null)
    productCategoryId = Integer.parseInt((String) (Registry
    .get(ApplicationInstanceConstants.
    SELECTED_PRODUCTSEGMENT_ID)));
    else

    return;

    productService = Registry.get(ServiceRegister.PRODUCTSERVICE);

    productService.getProductCategory(productCategoryId,
    new AsyncCallback<List<ProductCategory>>() {

    publicvoid onFailure(Throwable caught) {
    MessageBox.confirm(
    "Test", "RPC failed.", null);

    }

    publicvoid onSuccess(
    List<ProductCategory> productCategories) {
    Iterator productCategoriesIterator = productCategories
    .iterator();
    while (productCategoriesIterator.hasNext()) {
    // GWT.log("yes", null);

    ProductCategory productCategory = (ProductCategory) productCategoriesIterator
    .next();
    final Text productNameText = new Text();
    productNameText.setText(productCategory.getName());
    final Text productCategoryShortDescription = new Text();
    productCategoryShortDescription
    .setText(productCategory
    .getShortDescription());
    finalint id = productCategory.getId();
    fp.add(productNameText);
    fp.add(productCategoryShortDescription);

    productCategoryShortDescription.setTagName(
    "span");
    productCategoryShortDescription.setStyleAttribute(
    "cursor", "pointer");
    productCategoryShortDescription
    .sinkEvents(Event.
    ONCLICK);
    productCategoryShortDescription
    .sinkEvents(Event.
    MOUSEEVENTS);

    productCategoryShortDescription.addListener(
    Events.
    OnClick, new Listener<BaseEvent>() {
    publicvoid handleEvent(BaseEvent be) {

    Registry
    .register(
    ApplicationInstanceConstants.
    SELECTED_PRODUCTCATEGORY_ID,
    Integer
    .toBinaryString(id));
    BrowseProductCategory.
    this.hide();
    }
    });
    productCategoryShortDescription.addListener(
    Events.
    OnMouseOver,
    new Listener<BaseEvent>() {
    publicvoid handleEvent(BaseEvent be) {
    productCategoryShortDescription
    .setStyleAttribute(
    "color",
    "blue");
    }
    });
    productCategoryShortDescription.addListener(
    Events.
    OnMouseOut,
    new Listener<BaseEvent>() {
    publicvoid handleEvent(BaseEvent be) {
    productCategoryShortDescription
    .setStyleAttribute(
    "color",
    "black");
    }

    });


    }

    }

    });

    add(
    fp);
    }

    }


  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You need to call layout.

  5. #5
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    Thanks it works

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi