0
我想使用primefaces dataExporter導出一些數據,並且我有一列有一個人名和名稱是一個鏈接到外部網站。試圖讓primefaces dataExporter顯示鏈接而不是url的值
本來我有以下的代碼,然後我發現this線程它說,H:commandLink現在由dataExporter
<p:dataTable var="inv" value="#{personBacker.investigators}" id="tbl" rows="50" effect="true">
<p:column filterBy="#{inv.name}" headerText="Investigator" filterMatchMode="contains">
<h:outputLink value="http://example.com/">
<h:outputText value="#{inv.name}" />
</h:outputLink>
</p:column>
</p:dataTable>
然後支持我改變了我的代碼,這一點,但現在鏈接不走我到example.com。從我在interwebs上發現的內容來看,commandLink只能使用我認爲的EL表達式。
<p:dataTable var="inv" value="#{personBacker.investigators}" id="tbl" rows="50" effect="true">
<p:column filterBy="#{inv.name}" headerText="Investigator" filterMatchMode="contains">
<p:commandLink action="http://example.com" value="#{inv.name}" />
</p:column>
</p:dataTable>
我如何鏈接到使用H外部站點:commandLink或號碼:commandLink標籤?
我試着直接在html中設置url,但dataExporter沒有正確處理。我會給你第一個建議一個鏡頭。 – Catfish 2012-03-23 13:10:47