2014-10-27 46 views
0

我試圖顯示一個模式窗口,其鏈接指向我的登錄頁面,模式顯示正確,但鏈接不可點擊。無法在primefaces模式對話框中顯示可點擊的鏈接

<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="100" > 


           <h:outputText value="session Expired " /> 

           <h:link value="Login page" outcome="login" /> 

      </p:dialog> 
+0

嘗試把''裏面的鏈接 – 2014-10-27 16:10:16

回答

0

你需要把表單裏面的鏈接:

<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="100" > 

    <h:form> 
     <h:outputText value="session Expired " /> 

     <h:link value="Login page" outcome="login" /> 
    </h:form> 

</p:dialog> 

參考文獻:http://www.tutorialspoint.com/jsf/jsf_link_tag.htm