[richfaces-issues] [JBoss JIRA] Work started: (RF-1032) Immediate mode tabPanel makes all form submissions operate in immediate mode
Anton Belevich (JIRA)
jira-events at lists.jboss.org
Mon Oct 1 07:02:42 EDT 2007
[ http://jira.jboss.com/jira/browse/RF-1032?page=all ]
Work on RF-1032 started by Anton Belevich.
> Immediate mode tabPanel makes all form submissions operate in immediate mode
> ----------------------------------------------------------------------------
>
> Key: RF-1032
> URL: http://jira.jboss.com/jira/browse/RF-1032
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: Glassfish v2
> Reporter: Mike Hanafey
> Assigned To: Anton Belevich
> Fix For: 3.2.0
>
>
> Setting the "immediate" attribute true on a "tabPanel" has a strange effect -- if the page is submitted by a "commandButton" which is not "immediate='true'", and which is not even a child of the tabPanel, it nevertheless behaves as though it was immediate because the validation phase is skipped. In addition ajax submission also ends up behaving as it too is "immediate".
> In the small example below, no error is generated for the empty field, and the "echoField" component is not updated as the user types in "in0" while "in1" is empty. No error is reported if the command button is pushed while "in1" is empty either.
> If the tabPanel is made non-immediate, the expected behaviour returns.
> Example:
> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <html>
> <head>
> <title>repeater</title>
> </head>
> <body>
> <f:view>
> <h:form id="form">
> <rich:panel header="Errors">
> <rich:messages/>
> </rich:panel>
> <rich:panel header="Simple Echo">
> <h:inputText id="in0" size="50" value="#{bean.text}">
> <a4j:support event="onkeyup" reRender="rep"/>
> </h:inputText>
> <h:outputText id="echoField" value="#{bean.text}" id="rep"/>
> </rich:panel>
>
> <rich:panel header="Simple Echoless">
> <h:inputText id="in1" size="50" value="#{bean.junk}" required="true"/><br/>
> <rich:message for="in1"/><br/>
> <h:outputText value="#{bean.junk}" id="nonrep"/>
> <h:commandButton value="Submit"/>
> </rich:panel>
>
> <rich:tabPanel id="tabPanel" selectedTab="t2" switchType="server" immediate="true">
> <rich:tab id="t1" label="TabOne">
> <h:outputText value="Content1"/>
> </rich:tab>
> <rich:tab id="t2" label="TabTwo">
> <h:outputText value="Content2"/>
> </rich:tab>
> </rich:tabPanel>
> </h:form>
> </f:view>
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list