h:outputLink is only for literal URLs, so that won't work for page
navigation.  Use a h:commandLink with an action attribute.

Storm Spire wrote:
> from the jetspeed jpetstore demo, I can see struts demo works well with
> links, like the one inside /index.jsp, it writes
> <html:link href="shop/viewCart.shtml">
>     <html:img border="0" imageName="img_cart" src="images/cart.gif"/>
> </html:link>
> 
> inside the jsf-demo, the image link works ok as well, like:
> <h:graphicImage id="waveImg" url="/wave.med.gif" />
> 
> but it doesn't work with outputLink, if I add the following:
>     <h:outputLink id="treeTableLink2" value="treeTable.jsf">
>         <h:outputText value="Click Here for Tree Table"/>
>     </h:commandLink>
> 
> the portal generate the link without any portal context, just like
> http://127.0.0.1:8080/treeTable.jsf, but above image's URL is
> http://127.0.0.1:8080 /jsf-demo/wave.med.gif, quite strange behavior.
> 
> just wonder why graphicImage works perfectly with portlet, but
> outputLink doesn't.
> 
> if outputLink doesn't work, anyway to go to another page without going
> through bean and navigation rules?
> 
> 


-- 
Dave Brondsema
Software Developer
Cornerstone University

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to