[jboss-user] [JBoss Seam] - Problem with <s:convertEntity/> inside <h:selectOneMenu

georges.goebel do-not-reply at jboss.com
Thu Jun 7 11:42:55 EDT 2007


Hi,

I have tried under jboss 4.0.5GA and JBoss 4.2 with seam 1.2.1GA and also the CVS snapshot from jboss-seam-CVS.20070607

I cannot use the tag <s:convertEntity/> inside a <h:selectOneMenu>. (selectedPaneau is a DataModel)


  | <h:selectOneMenu id="tailles" value="#{cart.taille}" >
  |                             <s:selectItems var="ta" value="#{selectedPaneau.tailles}" label="#{ta.tailleFormated}" />
  |                              <s:convertEntity/>    
  | </h:selectOneMenu>
  | 

I always get the exception :


  | org.apache.jasper.JasperException: /addCart.jsp(94,29) No tag "convertEntity" defined in tag library imported with prefix "s"
  | 	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
  | 	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
  | 	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
  | 	org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1213)
  | 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
  | 	org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
  | 	org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
  | 	org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
  | 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
  | 	org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
  | 	org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
  | 	org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
  | 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
  | 	org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
  | 	org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
  | 	org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
  | 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
  | 	org.apache.jasper.compiler.Parser.parse(Parser.java:133)
  | 	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
  | 	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
  | 	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
  | 	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
  | 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
  | 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
  | 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 

I package the jboss-seam-ui.jar inside my war and the jboss-seam.jar is inside the ear. In the jsp file i include the tag lib 

  | <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
  | 

I included the jboss-el.jar and jboss-el-api.jar in the jsf-libs from the jboss-web-depolyer
I also tried to implement my own converter but there I always get the exception

Do I have to confige something special for this tag or why can jboss not resolve this tag ?
Did I miss something with this tag ? I checked a lot of examples in the internet also the ui example, but it does not work

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052208#4052208

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052208



More information about the jboss-user mailing list