[
https://jira.jboss.org/jira/browse/RF-7476?page=com.atlassian.jira.plugin...
]
Javier Quirante reopened RF-7476:
---------------------------------
I probably didn´t explain what I mean.
I have attached three files. For undestand the error, replace the a:commandLink in the
jiraHome.xhtml
to an h:commandLink and click the button.
With Seam version 2.1.1 GA and rich-faces-3.3.1 they doesn´t have the same behavior.
The h:commandLink writes "Javier" in the input text. The a:commandLink doesn´t.
Please check it is something it happening only to me.
Thanks in advance
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
Assignee: Tsikhon Kuprevich
Fix For: 3.3.2.CR1
Attachments: JiraHome.java, jiraHome.page.xml, jiraHome.xhtml
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