日期:2014-05-18  浏览次数:20651 次

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的组件都支持事件