<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 *一凡* 閱讀(159) 評(píng)論(0)  編輯  收藏 所屬分類: JSF
    主站蜘蛛池模板: 国产在线观看麻豆91精品免费| 久久免费香蕉视频| 久草视频在线免费| 久久国产亚洲高清观看| 人妻丰满熟妇无码区免费| 亚洲综合国产精品| 最近高清中文字幕无吗免费看| 亚洲美女免费视频| 日本妇人成熟免费中文字幕| 亚洲精品视频免费看| 日韩免费一区二区三区在线| 亚洲人成电影网站免费| 国产日产成人免费视频在线观看| 亚洲AV综合色区无码一二三区| 日本久久久免费高清| 曰批免费视频播放在线看片二| 亚洲人午夜射精精品日韩| 你好老叔电影观看免费| 亚洲美女人黄网成人女| 成人毛片免费观看视频| 男女交性无遮挡免费视频| 国产亚洲综合网曝门系列| 在线a免费观看最新网站| 亚洲www77777| 亚洲国产日韩在线观频| 中文字幕乱码一区二区免费| 亚洲大片免费观看| 又粗又大又硬又爽的免费视频 | 一本久久免费视频| 亚洲AV永久青草无码精品| 日本免费网站视频www区| 亚洲国产美女精品久久久| 在线观看亚洲精品福利片| 亚洲精品视频在线免费| 亚洲AV无码一区二区三区鸳鸯影院| 亚洲电影日韩精品| 黄色免费网站网址| 一区二区三区免费视频网站| 亚洲高清美女一区二区三区| 国产一区二区三区在线免费| 一级毛片在线免费看|