- This topic has 4 replies, 4 voices, and was last updated 16 years, 4 months ago by amir55.
-
AuthorPosts
-
Ufuk COBANMemberi use html table and jsf input text for a struts-tile. it causes hsf code render first and and html codes later. that means order of the result is wrong. how can i correct this without using verbatim? i use jsp design editor.
could you offer an tutorial for tiles and jsf integration that tiles use jsf not simple html?
features say myeclipse has tiles support. is it just adding libraries or more?
<%@ taglib uri=”http://java.sun.com/jsf/html” prefix=”h”%>
<%@ taglib uri=”http://java.sun.com/jsf/core” prefix=”f”%>
<%@ taglib uri=”http://struts.apache.org/tags-html” prefix=”html”%>
<%@ page contentType=”text/html;charset=ISO-8859-9″ language=”java”%>
<table width=”644″ border=”0″>
<tr align=”center”>
<TD>
<TABLE align=”center”>
<TR>
<TD>Username</TD>
<TD><h:inputText rendered=”true” required=”false”
value=”#{userEditJSFBean.user.username}” /></TD>
</TR>
</TABLE></TR>
</table>
Riyad KallaMemberThe designer currently does not support Tiles, is this what you were asking?
Ufuk COBANMemberi think this “tiles” is different
MyEclipse 2.8 (May 2004)
Enhanced J2EE Project Structures
Flexible web project structure for web content folders, including linked resources
Compilation and deployment of dependent Java projects
Web Tools
JSP 2.0 preview
Smart JSP<->Java build dependency management
Smarter code completion
Graphical Struts editing with component editors
Tiles support
Ronald van KuijkMember@atmuc wrote:
i use html table and jsf input text for a struts-tile. it causes hsf code render first and and html codes later. that means order of the result is wrong. how can i correct this without using verbatim? i use jsp design editor.
could you offer an tutorial for tiles and jsf integration that tiles use jsf not simple html?
features say myeclipse has tiles support. is it just adding libraries or more?
<%@ taglib uri=”http://java.sun.com/jsf/html” prefix=”h”%>
<%@ taglib uri=”http://java.sun.com/jsf/core” prefix=”f”%>
<%@ taglib uri=”http://struts.apache.org/tags-html” prefix=”html”%>
<%@ page contentType=”text/html;charset=ISO-8859-9″ language=”java”%>
<table width=”644″ border=”0″>
<tr align=”center”>
<TD>
<TABLE align=”center”>
<TR>
<TD>Username</TD>
<TD><h:inputText rendered=”true” required=”false”
value=”#{userEditJSFBean.user.username}” /></TD>
</TR>
</TABLE></TR>
</table>afaik, you can’t. And did you try to use f:verbatim? It totally screws up my page. Not visually, but the nesting of tags is impossible to achieve if you use plain tables. I’m currently looking into using datatable to get rid of the plain html
amir55Participanthi dear all
I run my jsf tiles using struts successfully but error as in next when I import it to newer Myeclipse version surprise !1 by the way I use windows 2000, MyEclipse 6, java 6, mysql and jboss server.
***************
06:00:55,093 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryStacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
06:00:55,093 ERROR [[/e-beats]] Exception sending request destroyed lifecycle event to listener instance of class com.sun.faces.application.WebappLifecycleListener
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:78)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
06:00:55,093 ERROR [[/e-beats]] Exception thrown by attributes event listener
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
at com.sun.faces.application.WebappLifecycleListener.attributeReplaced(WebappLifecycleListener.java:144)
at org.apache.catalina.connector.Request.setAttribute(Request.java:1444)
at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:503)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:193)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
******************************one more question
Anyone knows an example to runjsf tiles using j2ee5 not 4.many thanks
Amir
-
AuthorPosts