For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 14 years, 9 months ago by
amir55.
-
AuthorPosts
-
AjaxRenderPhaseListener:101 – PhaseListener enter Before RenderView Phase with ViewId /layout/mainLayout.jsp and RenderKitId HTML_BASIC
hi all
I am using a commandbutton to deply on jboss 4.2.2 but I got this error. there is no harm in using commandLink
AjaxRenderPhaseListener:101 – PhaseListener enter Before RenderView Phase with ViewId /layout/mainLayout.jsp and RenderKitId HTML_BASIC
I use jaf 2 spring 2,0 hibernate 3.2 perfectly fine in all aspects and links
here is my jsf document and the errors
1 – if I add the commandLink inside the form it is inactive but works fine outside
2 – If I use commnadButton in form I get the above error and no parameeters passed to the beanNote : I am using the f:view here as I have it in the mainLayout.jsp for tiling so all others are imported inside
<%@ page contentType=”text/html;charset=UTF-8″ language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>
<%@ taglib uri=”http://java.sun.com/jsf/html” prefix=”h”%>
<%@ taglib uri=”http://java.sun.com/jsf/core” prefix=”f”%><html lang=”ar” dir=”rtl”>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″><head>
<title>User Login</title><link rel=”stylesheet” type=”text/css” href=”${pageContext.request.contextPath}/css/styles.css”>
</head><body >
<center>
<h:form id =”any” >
<h:panelGrid width=”75px” columns=”2″ border=”0″><h:outputText value=”User name” styleClass=”style2″/>
<h:inputText id=”input1″ value=”#{jsfHandler.user.name}” size=”27″ /><h:commandButton value=”save me” action=”layout”
actionListener=”#{jsfHandler.saveMe4}”>
<f:param name=”left” value=”/layout/left1″/>
<f:param name=”body” value=”/layout/body1″/>
</h:commandButton></h:panelGrid>
</h:form><br>
<h:commandLink
actionListener=”#{jsfHandler.navigate}”>
<f:param name=”left” value=”/layout/left1″/>
<f:param name=”body” value=”/write/second”/>
<h:outputText value=”second ” />
</h:commandLink></center>
</body>
</html>– my web,xm as next which fine only when I use bommandButton
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” version=”2.5″>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml,/WEB-INF/faces-config-navigation.xml</param-value>
</context-param><servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping><listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>November 13, 2011 at 1:22 pm #321033hi all
just to tell u I sorted out the problem in the link of myeclipse forum as commandButton
does not recognise f:param but f:attribute
sorry for bothering you
take care
November 13, 2011 at 11:16 pm #321036amir55 ,
Glad that you got it working.
Do let us know if you have any other issues.November 14, 2011 at 1:19 pm #321055hi sir
that is very kind of you to hlep
I have a simple question which is:
when I submit a form to a java bean, it would send its context to the bean. then when I do validate the data and add error messages to the context then
HOW to pass that context to the same jsp file or another jsp.
i.e how to pass a context to a jsp file i.e the other way round not from jsp to a bean which is automatic.
This way I avoid having the error messages to write on the console not as should be to the form.
I use tiles by the way
many thanks
Amir
-
AuthorPosts

