facebook

jsf error with commandbutton on jboss,myeclipse for spring

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #321030 Reply

    amir55
    Participant

    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 bean

    Note : 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&#8221; prefix=”h”%>
    <%@ taglib uri=”http://java.sun.com/jsf/core&#8221; 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&#8221; xmlns=”http://java.sun.com/xml/ns/javaee&#8221; xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#8221; xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#8221; 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>

    #321033

    amir55
    Participant

    hi 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

    #321036

    support-swapna
    Participant

    amir55 ,

    Glad that you got it working.
    Do let us know if you have any other issues.

    #321055

    amir55
    Participant

    hi 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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: jsf error with commandbutton on jboss,myeclipse for spring

You must be logged in to post in the forum log in