icefaces - JSF and links: the target property doesn't work? -


i need render simple link in page open pdf file in new browser window. wrote following tag:

  <h:commandlink target="_blank"         action="showpdf"        title="show attached pdf"                   actionlistener="#{bean.doshowpdf}"                              value="show pdf">          <f:attribute name="path" value="#{bean.pdfpath}" />   </h:commandlink> 

the target attribute seems ignored. destination page appear on current.

i tried h:outputlink:

   <h:outputlink target="_blank"         title="show attached pdf"         value="/visattached.jspx">          <f:param name="path" value="#{bean.pdfpath}" />       show pdf    </h:outputlink> 

but same result. generated html , in both cases, has not target attribute.

where's fault? there better strategy in jsf show file in new browser window?

try ice: versions of them: ice:outputlink, or ice:commandlink. component showcase shows working example (layout panels/collapsible panels has lot of links, check source):

<ice:outputlink target="_blank" styleclass="navpnlclpsbllnks"                value="http://icefaces.org/main/home/index.jsp">     <ice:outputtext id="icefacesorglink" value="icefaces.org"/> </ice:outputlink> 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -