关于由于session 和 request设置在dialog中初始化的问题.
2009-05-24 12:19
429 查看
代码如下:
<af:commandButton text="display">
<af:showPopupBehavior popupId="popupId" triggerType="action"/>
</af:commandButton>
<af:popup id="popupId" contentDelivery="lazyUncached"
binding="#{switchFacet.deletePopup}">
<af:dialog title="Delete report set" type="okCancel"
closeIconVisible="true"
inlineStyle="width:400px; height:200px; margin:auto; padding:inherit;"
visible="true" dialogListener="#{switchFacet.initialize}" >
<af:panelGroupLayout layout="vertical" partialTriggers="hhh">
<af:panelGroupLayout partialTriggers="hhh">
<af:switcher defaultFacet="three"
facetName="#{switchFacet.facetName}">
<f:facet name="one">
<af:group>
<af:outputText value="This is facet:one 1 1 1 1 1 1 1 1 1"/>
<af:outputText value="[#{ switchFacet.facetName},]"/>
<af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
label="Label 1"/>
</af:group>
</f:facet>
<f:facet name="two">
<af:outputText value="This is facet:two 2 2 2 2 2 2 2"/>
</f:facet>
</af:switcher>
</af:panelGroupLayout>
<af:spacer width="10" height="10"/>
<af:panelGroupLayout>
<af:commandButton text="yes" partialSubmit="true" id="hhh"
action="#{switchFacet.setFacet}"
visible="#{switchFacet.isDisplay}"/>
<af:commandButton text="ok" visible="#{switchFacet.isOkDisplay}"
action="#{switchFacet.initializeState}"/>
<af:commandButton text="no"
visible="#{switchFacet.isNoDisplay}"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
scope为session时似乎switchFacet.initialize不会被执行,dialog关闭后也不会初始化,request时可以初始话
<af:commandButton text="display">
<af:showPopupBehavior popupId="popupId" triggerType="action"/>
</af:commandButton>
<af:popup id="popupId" contentDelivery="lazyUncached"
binding="#{switchFacet.deletePopup}">
<af:dialog title="Delete report set" type="okCancel"
closeIconVisible="true"
inlineStyle="width:400px; height:200px; margin:auto; padding:inherit;"
visible="true" dialogListener="#{switchFacet.initialize}" >
<af:panelGroupLayout layout="vertical" partialTriggers="hhh">
<af:panelGroupLayout partialTriggers="hhh">
<af:switcher defaultFacet="three"
facetName="#{switchFacet.facetName}">
<f:facet name="one">
<af:group>
<af:outputText value="This is facet:one 1 1 1 1 1 1 1 1 1"/>
<af:outputText value="[#{ switchFacet.facetName},]"/>
<af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
label="Label 1"/>
</af:group>
</f:facet>
<f:facet name="two">
<af:outputText value="This is facet:two 2 2 2 2 2 2 2"/>
</f:facet>
</af:switcher>
</af:panelGroupLayout>
<af:spacer width="10" height="10"/>
<af:panelGroupLayout>
<af:commandButton text="yes" partialSubmit="true" id="hhh"
action="#{switchFacet.setFacet}"
visible="#{switchFacet.isDisplay}"/>
<af:commandButton text="ok" visible="#{switchFacet.isOkDisplay}"
action="#{switchFacet.initializeState}"/>
<af:commandButton text="no"
visible="#{switchFacet.isNoDisplay}"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
scope为session时似乎switchFacet.initialize不会被执行,dialog关闭后也不会初始化,request时可以初始话
相关文章推荐
- FolderBrowserDialog 关于设置为单线程单元(STA)模式的问题
- 有关于request,session的几个问题[总结网络搜集的一些资料]
- 关于Spring与Velocity结合的问题(获得request,session)
- JAVA JTable 关于表格初始化设置、表格事件监听及数据更新问题
- srping关于重新设置request参数问题
- 关于问题由于 web 服务器上的“isapi 和 cgi 限制”列表设置,无法提供您请求的页面的解决方案
- 关于Volley中JsonObjectRequest使用Post设置参数的问题
- 关于为什么需要设置request.setCharacterEncoding以及适用范围问题
- 关于自定义dialog动态设置宽度没有效果问题
- session和request的getAttribute和setAttribute 关于String和int的问题
- 关于扩展 Laravel 默认 Session 中间件导致的 Session 写入失效问题分析
- 关于asp.net Session丢失问题的总结
- 关于Session为null的问题。。。
- 关于ARM开发板与PC主机的网络设置问题
- 关于java的JDK环境变量设置方法及相关问题解决方案
- 关于select函数中timeval和fd_set重新设置的问题
- 关于浏览器关闭后session是否被删除的问题
- android关于控件中setTag(key,Object)的设置的相关问题
- 关于IE7.0的设置问题
- 小结几个小问题,关于数据库乱码,dialog