`
lmbb1945
  • 浏览: 12554 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
社区版块
存档分类
最新评论

PracticalRichfaces_chap2要点

UP 
阅读更多
chap2
1.<a4j:outputPanel> has a special attribute called ajaxRendered, and when set to true, it will indicate that all components inside will always be rerendered.

chap3
1.Because <a4j:support> attaches to the parent event handler, the following will not work because the literal value (alert('up')) takes precedence:
<h:inputText value="#{userBean.name}" onkeyup="alert('up')">
          <a4j:support event="onkeyup" reRender="echo"/>
</h:inputText>
这里的aj4:support不执行

2.The <a4j:region> tag lets you specify which components will be processed (processed includes decoding, conversion, validation, and model updating) on the server. Keep in mind that the full form is still submitted. But, only components inside this region will be processed
If you don’t specify a region, the whole page becomes a region, which means the full form will be processed.
3. 常见问题<a4j:region> is used only to indicate which components will be processed. Partial-page updating is still done with reRender or with <a4j:outputPanel ajaxRendered="true">.
注:<a4j:region>只是指定那些组件将被处理.而那些更新仍然是<a4j:outputPan...>或者reRender来决定

而ajaxSingle则是指定单个(包括单个a4j:commandButton或者a4j:commandLink也有ajaxSingle属性)的组件提交后是否处理,(a4j:region是指定一个区域的),单个在进行类型校验的地方非常有用.

process属性将能够指定region或者ajaxSingle以外的某些组件也被处理见PDF55的详解

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics