[
https://issues.jboss.org/browse/RF-12071?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-12071:
------------------------------------
c:if is perfectly valid JSF, it just executes at a different stage of the lifecycle. If a
component is excluded with _c:_ tag, it is omitted from the component tree, as opposed to
just not being rendered. This means they should be avoided in cases where the exclusion
logic can change throughout the request lifecycle.
In fact, appropriate use of _c:_ tags can be a real performance benefit.
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ı
Labels: waiting_on_user
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