[richfaces-issues] [JBoss JIRA] Created: (RF-7476) a4j commandLink doesnt work properly when using f:params and disabled condition, The link doesnt reRenders the value the first time the condition its not fullfilled
Javier Quirante (JIRA)
jira-events at lists.jboss.org
Thu Jul 2 04:41:51 EDT 2009
a4j commandLink doesnt work properly when using f:params and disabled condition, The link doesnt reRenders the value the first time the condition its not fullfilled
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-7476
URL: https://jira.jboss.org/jira/browse/RF-7476
Project: RichFaces
Issue Type: Bug
Components: component-a4j-core
Affects Versions: 3.3.1
Environment: JBoss Seam 2.1.1 GA, OC4j Server
Reporter: Javier Quirante
When we have an a4j commandLink that pass parameter via f:parameter, if the parameter passed , is on the disabled condition of the a4j commandLink, the button doesnt reRender the first time its fullfill the disable condition
For instance if we have the button
------------------
<a4j:commandLink value="Hello J" reRender="block" bypassUpdates="false" disabled="#{jiraHome.disabled}">
<f:param name="firstName" value="Javier"/>
</a4j:commandLink>
--------------
with pages.xml
-------------
<param name="firstName" value="#{jiraHome.firstName}"/>
-------------
that reRenders the panelGrid "block" whith an h:inputText
--------------
<h:panelGrid columns="1" id="block">
<h:inputText id="value"
value="#{jiraHome.firstName}"/>
</h:panelGrid>
----------------
And in the backup bean the condition is
-----------
public boolean getDisabled(){
return firstName!=null && "Javier".equals(firstName);
}
-----------------
(if the parameter passed is "Javier" --> disable the commandLink)
If you click the button its never write "Javier" in the input Text. But the first time you click, when the commandLink is enabled, it shouds
reRender the inputText with the text "Javier" becuase its not still disabled.
Next times is would be ok the commandLink doesnt work because is disabled because of the condition.
If you try with h:commandLink its works like that.
I try with scopes REQUEST and CONVERSATION on the Bean and doesnt work neither
Thanks in advance
--
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