PracticalRichfaces_chap2要点

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 [color=red]not work[/color] because the literal value (alert('up')) takes precedence:
<h:inputText value="#{userBean.name}" οnkeyup="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> [color=red]is used only[/color] 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的详解
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值