[JBoss Seam] - Facelet TagHandler in seam.
by brentgfox
I've been working on developing a facelet tag to simplify my content display, and am encountering a NoClassDefFoundError: com/sun/facelets/tag/TagHandler. I have the jsf-taglib.jar within my war files /lib folder, and am using the SeamFaceletViewHandler, with no issues untill I add my custom tag.
My tag handler class, DisplayComponentHandler extends TagHandler, compiles without issue, and deploys without error. When rendering a page, however, I get the exception.
Here is the taglib declaration.
| <?xml version="1.0" encoding="ISO-8859-1" ?>
|
| <!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/jsf/html</namespace>
| <tag>
| <tag-name>displayContent</tag-name>
| <handler-class>com.test.ui.DisplayComponentHandler</handler-class>
| </tag>
| </facelet-taglib>
|
and the entry within the web.xml file
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tld/displaycomponent.taglib.xml</param-value>
| </context-param>
|
Any ideas why the classloader wouldn't be able to find the class definition for the TagHandler class? Or have I missed something obvious?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016079#4016079
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016079
19Â years, 2Â months
[JBoss Seam] - Re: seam-gen enhancement
by gavin.kingï¼ jboss.com
"awhitford" wrote : Good work Kent! I can't wait to try this...
|
| I can't stress how important this feature is because the reverse engineering approach makes a lot of incorrect assumptions. The Entity bean provides much richer information for CRUD generation.
|
| Some problems that I have run into with reverse engineering include:
| | * I have run into problems dealing with Dates because the database (SQL Server) only has one date type (datetime) for dates, times, and timestamps. However, if you look at my Entity bean, it clearly has the field tagged with a Temporal annotation (@Temporal(TemporalType.DATE)).
| |
| | * I have run into problems with Enumerated types. To the database, I often store enum values as Strings, so the reverse engineering makes the field a String rather than an enum. My Entity bean has an enum annotated (@Enumerated(EnumType.STRING)).
| |
| | * I rarely override the columnDefinition (for an enum code or iso code, for example). The reverse engineering translates char(n) columns to be varchar(n), then deployment fails because Hibernate does some validation.
| |
| |
All these things can be customized visually in the existing eclipse GUI for Hibernate Tools. Max is right now working frantically on getting seam-gen integrated into this GUI. So the above problems are really temporary issues.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016078#4016078
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016078
19Â years, 2Â months