I have same problem but I think when U use dataTable component is submited x 
times (x is size of your collection).
I made some example

private String tagName;
private List tagList;

<h:dataTable var="answers" value="#{answerList}" >
    <h:column>
        <h:outputText id="a1" value="#{answers.answer}" escape="false"/>
        
        <h:inputText value="#{showDetailedQuestionAction.tagName}"/>
       <h:commandButton value="myButton" action="#{bbBean.action}"/>    
        </h:column>                                     
</h:dataTable>

and method implemented in setter & getter for tagName;
public String getTagName() { 
        System.out.println("Get: " + this.tagName);
        return tagName; 
}
public void setTagName(String tagName) { 
        System.out.println("SET: " + this.tagName);
        this.tagName = tagName; 
}

and Result:
09:19:15,187 INFO  [STDOUT] SET: null
09:19:15,203 INFO  [STDOUT] SET: 
09:19:15,203 INFO  [STDOUT] SET: 
09:19:15,203 INFO  [STDOUT] SET: myInsertedString
09:19:15,203 INFO  [STDOUT] Get: 
09:19:15,203 INFO  [STDOUT] Action method clicked
09:19:15,250 INFO  [STDOUT] Get: 
09:19:15,328 INFO  [STDOUT] Get: 
09:19:15,328 INFO  [STDOUT] Get: 
09:19:15,343 INFO  [STDOUT] Get: 
09:19:15,343 INFO  [STDOUT] Get: 


So, and on my final result I cant get my tagName, ony if I insert some string 
to last inputText.
Can anyone tell me how to get my tagName value?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991205#3991205

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991205
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to