Hi Simon,

Nope, just one form tag.

Here's my current web.xml. Maybe it's missing something?

    Mike

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>
  <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
</filter>
  <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
</filter-mapping>
 </web-app>




Simon Kitching wrote:
Matthias Kahlau wrote:
Hi all!


I have an non-immediate inputText in my form, and an immediate commandButton
to delete some selected rows in a table. When the user enters some text in
the inputText and deletes some rows after that, the same JSF page is
redisplayed, but the inputText is empty again. Why isn't the submitted value
of the inputText rendered?

It will be in the usual case.

Perhaps your button is inside a different form from the one containing your input text? HTML only supports submitting one form, so all components in other forms will see their input as missing, ie will have their submitted value reset..

Regards,

Simon



Reply via email to