您的位置:首页 > 产品设计 > UI/UE

关于由于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时可以初始话
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: