[richfaces-issues] [JBoss JIRA] (RF-12071) a4j:outputPanel h:inputText render problem

Abdullah İlhanlı (JIRA) jira-events at lists.jboss.org
Wed Mar 21 07:59:47 EDT 2012


Abdullah İlhanlı created RF-12071:
-------------------------------------

             Summary: a4j:outputPanel h:inputText render problem
                 Key: RF-12071
                 URL: https://issues.jboss.org/browse/RF-12071
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Abdullah İlhanlı


Create dynamic screen with JSF is so hard and painfull.
I used a4j:outputPanel so many times.

Today i am trying to create dynamic screen based on combo selected value. When value is for example option1 it generate inputText, otherwise comboBox.
But i face to rendered problem son many times.  Problem is on submited object value.
My problem code like  these:

<h:panelGrid columns="2" id="conditionKeyGrid">
      <h:outputLabel value="#{msg['key.type.form']}" />
      <h:selectOneMenu value="#{conditionKeyBean.conditionKey.compType}"                        valueChangeListener="#{conditionKeyBean.compTypeChanged}">
              <f:selectItems value="#{conditionKeyBean.compTypeItem}" />
              <a4j:ajax event="change" execute="@this"
                        render="checkableLabel,checkableField" />
            </h:selectOneMenu>

            <a4j:outputPanel id="checkableLabel">
                  <h:outputLabel value="#{msg['key.caption.form']}"
                        rendered="#{conditionKeyBean.checkable}" />
            </a4j:outputPanel>
            <a4j:outputPanel id="checkableField">
                  <h:panelGrid rendered="#{conditionKeyBean.checkable}">
                        <h:inputText value="#{conditionKeyBean.captionValue}" />
                  </h:panelGrid>
            </a4j:outputPanel>
<h:panelGrid/>

Problem detail:
Captionvalue is unique in database.
When exception is throwed from back end(JPA uniquness error). I pops up error to user. Then user edit captionValue and try to resubmit. But captionValue is not change, even user changed it. When i remove  rendered="#{conditionKeyBean.checkable}" problem is solved. rendered is not working correctly i think.
How can i solve this problem?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list