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

      0  

    Default Dyanamically rendering Panels

    Dyanamically rendering Panels


    Hello,

    I need to render dynamically a horizantal panel. It gets rendered properly, but does not get displayed initially. If I maximize/minimize the screen, then it gets displayed.

    public static void setUrherePanel() {
    String currentPage = Registry.get(ApplicationInstanceConstants.CURRENT_PAGE);
    GWT.log("Called", null);
    String userName = Registry.get(ApplicationInstanceConstants.USERNAME);
    HorizontalPanel urherePanel = Registry.get(ApplicationInstanceConstants.URHERE_PANEL);

    urherePanel.removeAll();
    String urhereTxt = "";
    String path = "";

    Text startTxt = new Text();
    Text mktSegPage = new Text(LabelMapper.getInstance().getMnemonic("BROWSEPRODUCT_BROWSESEGMENT"));
    Text proCatPage = new Text(LabelMapper.getInstance().getMnemonic("BROWSEPRODUCT_BROWSECATEGORY"));
    /*
    Text proPage = new Text(LabelMapper.getInstance().getMnemonic(""));
    Text myAccPage = new Text(LabelMapper.getInstance().getMnemonic(""));
    Text updateAccPage = new Text(LabelMapper.getInstance().getMnemonic(""));
    Text myCartPage = new Text(LabelMapper.getInstance().getMnemonic(""));
    */

    if (userName != null)
    urhereTxt = LabelMapper.getInstance().getMnemonic("WELCOMETEXT")
    + " " + userName + " , " + LabelMapper.getInstance().getMnemonic("YOU_ARE_HERE") + " ";
    else
    urhereTxt = LabelMapper.getInstance().getMnemonic("YOU_ARE_HERE") + " ";

    startTxt.setText(urhereTxt);
    urherePanel.add(startTxt);




    if (currentPage
    .equalsIgnoreCase(ApplicationInstanceConstants.MKT_SEG_PAGE)) {
    urherePanel.add(mktSegPage);
    GWT.log("mktseg", null);

    } else if (currentPage
    .equalsIgnoreCase(ApplicationInstanceConstants.PRO_CAT_PAGE)) {
    GWT.log("procat", null);
    urherePanel.add(mktSegPage);
    urherePanel.add(proCatPage);

    } else if (currentPage
    .equalsIgnoreCase(ApplicationInstanceConstants.MYACC_PAGE)) {

    }


    }

    Regards
    Arup


  2. #2
    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 after adding the panel.

Thread Participants: 1

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