<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 0,  comments - 0,  trackbacks - 0

    1.Let the life cycle proceed normally.

    2.Call FacesContext.renderResponse() to skip the rest of the life cycle up to Render Response.

    3.Call FacesContext.responseComplete() to skip the rest of the life cycle entirely.

    See "Immediate Components" on page 287 for an example of using FacesContext.renderResponse().

      private static final String US = "United States";
      
      
    public void countryChanged(ValueChangeEvent event) {
         FacesContext context 
    = FacesContext.getCurrentInstance();

         
    if (US.equals((String) event.getNewValue()))
            context.getViewRoot().setLocale(Locale.US);
         
    else
            context.getViewRoot().setLocale(Locale.CANADA);

         context.renderResponse();
      }

    The call to renderResponse() skips the rest of the life cycle—including validation of the rest of the input components in the form—up to Render Response. Thus, the other validations are skipped and the response is rendered normally (in this case, the current page is redisplayed).

    To summarize, you can skip validation when a value change event fires by doing the following:

    1. Adding an immediate attribute to your input tag

    2. Calling FacesContext.renderResponse() at the end of your listener


           

     上文引用:《core JavaServer™ Faces, Second Edition》
    posted on 2007-12-11 19:57 *一凡* 閱讀(165) 評論(0)  編輯  收藏 所屬分類: JSF
    主站蜘蛛池模板: 亚洲天天做日日做天天看| 亚洲免费网站观看视频| 疯狂做受xxxx高潮视频免费| 4399影视免费观看高清直播| 亚洲爆乳无码专区| 中国videos性高清免费| 国产zzjjzzjj视频全免费| 久久亚洲AV成人无码软件| 四虎精品视频在线永久免费观看| 亚洲色图.com| 亚洲大尺度无码无码专区| 国产亚洲一区二区三区在线| 国产亚洲综合久久| 阿v免费在线观看| 亚洲五月午夜免费在线视频| 巨胸喷奶水www永久免费| 97人妻精品全国免费视频 | 亚洲日本va午夜中文字幕一区| 国产成人麻豆亚洲综合无码精品| 国产一区二区免费视频| 在线观看亚洲AV日韩AV| 亚洲自偷自偷在线制服 | 足恋玩丝袜脚视频免费网站| 日韩在线不卡免费视频一区| 亚洲精品女同中文字幕| 精品亚洲综合久久中文字幕| 91精品国产亚洲爽啪在线影院| 亚洲黄色网站视频| 理论秋霞在线看免费| 成全视频免费观看在线看| 成人午夜免费福利视频| caoporn成人免费公开| 亚洲s码欧洲m码吹潮| 成全视频在线观看免费| 全免费一级午夜毛片| 麻豆精品成人免费国产片| 免费观看的a级毛片的网站| 亚洲永久无码3D动漫一区| 一级毛片直播亚洲| 成年女人色毛片免费看| 中文在线免费观看|