-
1. Re: Setting the default propagation for <s:link>
swd847 Oct 7, 2007 10:06 PM (in response to dhinojosa)I do not think that there is a way to do this in seam. I think that you can work around it by creating your own taglib, although I am far from an expert on this. Something like:
mylink.xhtml:<composition xmlns="http://java.sun.com/jsf/facelet" xmlns:s="http://jboss.com/products/seam/taglib" > <s:link id="#{id}" value="#{value}" propagation="none" view="#{view}" rendered="#{rendered}" /> </composition>
mytaglib.taglib.xml:<?xml version="1.0"?> <!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "http://java.sun.com/dtd/facelet-taglib_1_0.dtd"> <facelet-taglib> <namespace>http://www.test.com/mynamespace</namespace> <tag> <tag-name>mylink</tag-name> <source>mylink.xhtml</source> </tag> </facelet-taglib>
-
2. Re: Setting the default propagation for <s:link>
dhinojosa Oct 7, 2007 10:34 PM (in response to dhinojosa)thanks....
-
3. Re: Setting the default propagation for <s:link>
swd847 Oct 7, 2007 11:02 PM (in response to dhinojosa)On second thoughts this is not a very good solution as f:param etc will not work.
A better solution would probably be to subclass UILink and then create a taglib for that, or possibly scan the component tree at the end of the RENDER_RESPONSE phase and for every UILink with propagation="default" set it to none.
I must admit though I am not sure if either of these is a particularly good solution.
Stuart -
4. Re: Setting the default propagation for <s:link>
christian.bauer Oct 8, 2007 1:27 AM (in response to dhinojosa)We actually talked about making propagation="none" the default of s:link/s:button. As this would break a lot of things, more discussion is needed. Please open a JIRA issue with the title "Consider changing s:link default to propagation=none".
-
5. Re: Setting the default propagation for <s:link>
christian.bauer Oct 8, 2007 1:27 AM (in response to dhinojosa)My main reason for wanting this change is that the foo?cid=123 links all over the place are confusing for search engine crawlers.