[
https://jira.jboss.org/jira/browse/RF-7476?page=com.atlassian.jira.plugin...
]
Nick Belaevski commented on RF-7476:
------------------------------------
This example just proves that h:commandLink and a4j:commandLink behave just the same. As
the link is disabled, it doesn't re-render "block" component.
a4j:outputPanel just makes "block" re-rendered on each request, just as
h:commnadlink that reloads the whole page.
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