ADF 弹出窗口未出现
我正在尝试找出 ADF,但遇到问题。 我正在尝试创建一个简单的对话框弹出窗口,但它拒绝出现。我已将它绑定到命令按钮以尝试强制它出现,但没有运气。
这是代码:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" version="1.2"
version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Manager">
<af:popup id="popupDialog">
<af:dialog title="Manager" id="dialog1" type="yesNoCancel">
<af:panelGroupLayout layout="horizontal">
<af:outputText value="This is a test" />
</af:panelGroupLayout>
</af:dialog>
</af:popup>
</af:document>
<af:commandButton text="click me" id="btn">
<af:showPopupBehavior popupId="popupDialog" />
</af:commandButton>
</f:view>
</jsp:root>
有人可以帮忙吗?
I'm trying to figure out ADF but having an issue.
I'm trying to create a simple dialog popup, but it refuses to appear. I've tied it to a command button to try to force it to appear, but without luck.
Here is the code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" version="1.2"
version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Manager">
<af:popup id="popupDialog">
<af:dialog title="Manager" id="dialog1" type="yesNoCancel">
<af:panelGroupLayout layout="horizontal">
<af:outputText value="This is a test" />
</af:panelGroupLayout>
</af:dialog>
</af:popup>
</af:document>
<af:commandButton text="click me" id="btn">
<af:showPopupBehavior popupId="popupDialog" />
</af:commandButton>
</f:view>
</jsp:root>
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你应该像下面这样写:
这样就可以了
You should write it like the following:
That will do the trick
你的页面层次结构搞砸了。
尝试类似的方法:
Your page hierarchy is screwed up.
Try something like:
我认为你需要将partialSubmit =“true”放在af:commandButton上
i think u need to put partialSubmit="true" on af:commandButton