当前位置: 代码迷 >> Java Web开发 >> jsf 超级链接怎么实现window.showModalDialog
  详细解决方案

jsf 超级链接怎么实现window.showModalDialog

热度:592   发布时间:2016-04-17 01:20:29.0
jsf 超级链接怎样实现window.showModalDialog
<h:commandLink action="#{unBudgetMainView.viewStockplan}"> 
  <h:outputText value="#{plan.skednumber}"></h:outputText>
  <f:param value="#{plan.id}" name="id"/>
</h:commandLink>

使用commandLink 可以重新弹出窗口吗?好象除了action没有其他的属性了。但是如果使用
outputLink 直接链到页面又不能处理要展现的数据,应该有其他的办法,哪位高手愿意告诉我?

------解决方案--------------------
<h:commandLink action="#{unBudgetMainView.viewStockplan}" onclick="return confirm('')">
<h:outputText value="#{plan.skednumber}"> </h:outputText> 
<f:param value="#{plan.id}" name="id"/> 
</h:commandLink> 
你可以试一下。
JSF的组件都支持事件
  相关解决方案