2013-02-14 45 views
0

我正在JSF上工作。我有這樣的要求。當我點擊一個鏈接時,它應該在新標籤中打開目標。但目標頁面不在我的項目中。這是一個單獨的應用程序。點擊鏈接重定向到新標籤頁

我試過一個href,h:link沒有任何工作。 這是我最後嘗試的。但它一次又一次地在新標籤中打開相同的頁面。

<h:commandLink value="#{item.title}" target="http://localhost:89/kordil_edms/documents.php" /> 

回答

2

試試這個 -

<a href="http://localhost:89/kordil_edms/documents.php" target="_blank"> Open </a> 
+0

日Thnx!從默認用戶名更改您的用戶名。 – 2013-02-14 06:30:29

+0

肯定會改變,thx – 2013-02-15 09:10:22