-
1. Re: <ui:insert /> stopped working in Seam 2.0 within source
gavin.king Jun 27, 2007 8:18 PM (in response to mgrouch)(1) "stopped working"?? Error? Or it just behaves differently now?
(2) ui:insert is a built-in facelets tag, so this can't be a Seam issue. -
2. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 27, 2007 8:23 PM (in response to mgrouch)No exception, but the content which is supposed to be rendered by <ui:insert /> is not rendered.
Seam 2.0 ships with own facelets version, could it be bug there? -
3. Re: <ui:insert /> stopped working in Seam 2.0 within source
gavin.king Jun 27, 2007 8:27 PM (in response to mgrouch)It is facelets 1.1.13a.
-
4. Re: <ui:insert /> stopped working in Seam 2.0 within source
gavin.king Jun 27, 2007 8:29 PM (in response to mgrouch)By the way, suffice to say I find this pretty difficult to believe, since ui:insert is used in many of the Seam examples, which are working great.
-
5. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 27, 2007 10:53 PM (in response to mgrouch)I've rolled back to facelets which were shipped with Seam 1.3.0.A
and everything works fine.
The problem is in 1.1.13a facelets and it seems it shows up only
in case of nested facelets source tags when content is passed
from outer tag into inner via <ui:insert> and rendered with <ui:insert/>
in inner tag. -
6. Re: <ui:insert /> stopped working in Seam 2.0 within source
pmuir Jun 28, 2007 5:01 AM (in response to mgrouch)As always, it's very hard to help you when you don't post code!
-
7. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 28, 2007 11:46 AM (in response to mgrouch)Here is the test case
tag1 <?xml version="1.0" encoding="iso-8859-1"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:fc="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:w="http://test.org/tags" xmlns:f="http://java.sun.com/jsf/core"> <s:div id="#{id}"> tag1 <w:tag2 id="#{id}_tag2"> <ui:insert></ui:insert> </w:tag2> tag1 </s:div> </ui:component> tag2 <?xml version="1.0" encoding="iso-8859-1"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:fc="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:w="http://test.org/tags" xmlns:f="http://java.sun.com/jsf/core"> <rich:panel id="#{id}"> tag2 <ui:insert></ui:insert> tag2 </rich:panel> </ui:component> <h:form id="testTags"> <w:tag1 id="tag1"> <s:div> Hello1 </s:div> </w:tag1> <w:tag2 id="tag2"> <s:div> Hello2 </s:div> </w:tag2> </h:form>
Hello1 is not rendered with facelets 1.1.13a.
Hello1 is rendered with facelets from Seam 1.3.0.A -
8. Re: <ui:insert /> stopped working in Seam 2.0 within source
pmuir Jun 28, 2007 6:17 PM (in response to mgrouch)Ah, so nested ui:inserts stopped working. Please take this to the facelets list, this is most certainly an issue for them to look at :)
-
9. Re: <ui:insert /> stopped working in Seam 2.0 within source
jpviragine Jun 28, 2007 6:35 PM (in response to mgrouch)I have the same issue with my app.
The pages don't render with jsf-facelets.jar ships with Seam 2.0
Just replacing jsf-facelets.jar with version shiped with Seam 1.3 all works fine
Regards,
Joao Paulo -
10. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 29, 2007 12:48 AM (in response to mgrouch)I've posted this on facelets mailing list
-
11. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 29, 2007 12:26 PM (in response to mgrouch)I've simplified test case to illustrate that the bug is actually in facelets library
tag1 <?xml version="1.0" encoding="iso-8859-1"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:fc="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:w="http://test.org/tags" xmlns:f="http://java.sun.com/jsf/core"> <div> tag1 <w:tag2> <ui:insert></ui:insert> </w:tag2> tag1 </div> </ui:component> tag2 <?xml version="1.0" encoding="iso-8859-1"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:fc="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:w="http://test.org/tags" xmlns:f="http://java.sun.com/jsf/core"> <div> tag2 <ui:insert></ui:insert> tag2 </div> </ui:component> <h:form id="testTags"> <w:tag1> <div> Hello1 </div> </w:tag1> <w:tag2> <div> Hello2 </div> </w:tag2> </h:form>
Hello1 is not rendered (as it should have) with facelets 1.1.13a (Seam 2.0.0.Beta1)
Hello1 is rendered with facelets from JBoss Seam 1.3.0.ALPHA
I hope this provides enough evidence for facelets developers to look at it... -
12. Re: <ui:insert /> stopped working in Seam 2.0 within source
pmuir Jun 29, 2007 12:31 PM (in response to mgrouch)Dude, this is the Seam forum. We can't fix facelets. Please take it there.
-
13. Re: <ui:insert /> stopped working in Seam 2.0 within source
mgrouch Jun 29, 2007 2:36 PM (in response to mgrouch)You do bundle facelets in Seam distro. You sould have some regression testing for that... Anyway, here is bug report
https://facelets.dev.java.net/issues/show_bug.cgi?id=234 -
14. Re: <ui:insert /> stopped working in Seam 2.0 within source
pmuir Jun 29, 2007 3:21 PM (in response to mgrouch)We'll certainly consider any patches you want to submit in this area.