[richfaces-issues] [JBoss JIRA] Commented: (RF-5592) User is unable to update the text in the input field, if this field is inside of <a4j:repeat> and <a4j:support> is used to re-Render that field
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Tue Jan 13 11:22:04 EST 2009
[ https://jira.jboss.org/jira/browse/RF-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12447625#action_12447625 ]
Nick Belaevski commented on RF-5592:
------------------------------------
Igor,
Exactly the same problem is reproduced with h:dataTable.
> User is unable to update the text in the input field, if this field is inside of <a4j:repeat> and <a4j:support> is used to re-Render that field
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RF-5592
> URL: https://jira.jboss.org/jira/browse/RF-5592
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.2
> Reporter: Igor Dikhtyaruk
> Assignee: Tsikhon Kuprevich
>
> example:
> xhtml:
> <a4j:repeat value="#{myBean.texts}" rowKeyVar="index">
> <h:inputText id="text" value="#{myBean.texts[index]}">
> <a4j:support
> ajaxSingle="true"
> event="onchange"
> reRender="text"
> bypassUpdates="true"/>
> </h:inputText>
> </a4j:repeat>
> Java bean:
> package au.gov.austrac;
> import java.util.Arrays;
> import java.util.Date;
> import java.util.List;
> import org.jboss.seam.ScopeType;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.annotations.Scope;
> @Name("myBean")
> @Scope(ScopeType.SESSION)
> public class MyBean {
> private List<String> texts = Arrays.asList(new String[]{"First"});
> public List<String> getTexts() {
> return texts;
> }
> public void setTexts(List<String> texts) {
> this.texts = texts;
> }
> }
> BTW,
> the following works well:
> <ui:repeat value="#{myBean.texts}">
> <h:inputText id="text" value="#{myBean.texts[0]}">
> <a4j:support
> ajaxSingle="true"
> event="onchange"
> reRender="text"
> bypassUpdates="true"/>
> </h:inputText>
> </ui:repeat>
--
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