[richfaces-issues] [JBoss JIRA] Closed: (RF-6008) reRender doesn´t work after submitting a form with a required="true" empty inputText
Alexander Dubovsky (JIRA)
jira-events at lists.jboss.org
Fri Feb 20 11:23:59 EST 2009
[ https://jira.jboss.org/jira/browse/RF-6008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Dubovsky closed RF-6008.
----------------------------------
Assignee: Alexander Dubovsky (was: Ilya Shaikovsky)
> reRender doesn´t work after submitting a form with a required="true" empty inputText
> ------------------------------------------------------------------------------------
>
> Key: RF-6008
> URL: https://jira.jboss.org/jira/browse/RF-6008
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.3.0
> Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_04-b16-p02, RichFaces 3.3.0.GA, Facelets 1.1.14
> Reporter: Aimar Tellitu
> Assignee: Alexander Dubovsky
>
> The first time that the page is loaded it works fine. If you change the value of id="text1" inputText, the value of id="text3" inputText is updated.
> But after clicking the commandButton "Test" (with id="text2" empty), the reRender of the id="text3" inputText doesn't work anymore.
> This is the code of the page home.xhtml:
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:rich="http://richfaces.org/rich"
> xmlns:a4j="http://richfaces.org/a4j">
> <f:view>
> <head></head>
> <body>
> <a4j:form>
> <h:inputText id="text1" value="#{test.text1}">
> <a4j:support
> event="onchange"
> ajaxSingle="true"
> reRender="text3"
> actionListener="#{test.onText1Changed}" />
> </h:inputText>
> <h:inputText id="text2" value="#{test.text2}" required="true" />
> <h:inputText id="text3" value="#{test.text3}" />
> <a4j:commandButton value="Test" />
> <rich:messages/>
> </a4j:form>
> </body>
> </f:view>
> </html>
> This is the definition of the managed bean test:
> <managed-bean>
> <managed-bean-name>test</managed-bean-name>
> <managed-bean-class>
> com.code.aon.ui.finance.controller.Test
> </managed-bean-class>
> <managed-bean-scope>session</managed-bean-scope>
> </managed-bean>
> This is the code of the com.code.aon.ui.finance.controller.Test class:
> package com.code.aon.ui.finance.controller;
> import javax.faces.event.ActionEvent;
> public class Test {
> private String text1;
>
> private String text2;
>
> private String text3;
> public String getText1() {
> return text1;
> }
> public void setText1(String text1) {
> this.text1 = text1;
> }
> public String getText2() {
> return text2;
> }
> public void setText2(String text2) {
> this.text2 = text2;
> }
> public String getText3() {
> return text3;
> }
> public void setText3(String text3) {
> this.text3 = text3;
> }
>
> public void onText1Changed(ActionEvent event) {
> setText3( getText1() + "*" );
> }
>
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list