[richfaces-issues] [JBoss JIRA] (RF-12071) a4j:outputPanel h:inputText render problem
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Tue Apr 10 08:27:47 EDT 2012
[ https://issues.jboss.org/browse/RF-12071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem resolved RF-12071.
--------------------------------
Labels: (was: waiting_on_user)
Resolution: Rejected
> 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)
> Components: component-panels-layout-themes
> 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:
> {code}
> <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/>
> {code}
> 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