This content has been marked as final.
Show 3 replies
-
1. Re: content assist for seam tag library in eclipse
pmuir Dec 17, 2007 5:24 AM (in response to gothmog)It "just works" if you use JBoss Tools :)
-
2. Re: content assist for seam tag library in eclipse
jkirsht Jan 17, 2008 3:16 PM (in response to gothmog)Using eclipse, code complete does not work for xhtml pages. just rename all your xhtml pages to jspx and change the jsf default suffix in your web.xml to reflect that:
<context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.jspx</param-value> <!-- .xhtml --> </context-param>
You may also need to wrap your jspx page content in a <jsp:root> tag, mine looks like this:<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a="http://richfaces.org/a4j" xmlns:s="http://jboss.com/products/seam/taglib" version="2.0"> <html> ..... </html> </jsp:root>
And to get code complete to work, just add the s.tld file into the WEB-INF and you'll also need the jsf-ui.tld (in the WEB-INF as well) for code assist with the facelet tag library. -
3. Re: content assist for seam tag library in eclipse
pmuir Jan 17, 2008 6:20 PM (in response to gothmog)Or, as I said, use JBoss Tools plugins for Eclipse in which code completion for tags (and much more like EL completion into Seam components) just works!