Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the input values from the dataTable Tag in JSF

843844Sep 3 2007 — edited Sep 3 2007
Hi,
I'm new to JSF, I want top know how can I get the input values from the dataTable . My senario like this,
I have tha dataTable in that I'm displaying the some values ffrom database and some input fields to all rows. My problem is how can I get the all values from the dataTable.
My code is like this,
<h:dataTable value="#{courseControl.courseDetails}" var="process" >
                  	  	<h:column>
                  	  	  <f:facet name="header">
                  	  	  	<h:outputText value="Task Name " style="font-weight: bold"></h:outputText>
                  	  	  </f:facet>
                  	  		<h:inputText readonly="true" value="#{process.taskID}">
                  	  		
                  	  		</h:inputText>
                  	  	</h:column>
                  	  	               	  	
                  	  	<h:column>
                  	  	  <f:facet name="header">
                  	  	  	<h:outputText value="Assigned To " style="font-weight: bold"></h:outputText>
                  	  	  </f:facet>
                  	  	  
                  	  		<h:selectOneMenu value="#{process.assignTo}">
        							 <f:selectItems  value="#{courseControl.data}" />
        					</h:selectOneMenu>
                  	  	</h:column>
                  	  	
                  	  	<h:column>
                  	  	  <f:facet name="header">
                  	  	  	<h:outputText value="Est. Start Date" style="font-weight: bold"></h:outputText>
                  	  	  </f:facet>
                  	  		<h:inputText  value="#{process.startDate}">
                  	  			
                  	  		</h:inputText>
                  	  	</h:column>
                  	  	<h:column>
                  	  	  <f:facet name="header">
                  	  	  	<h:outputText value="Est. End Date " style="font-weight: bold"></h:outputText>
                  	  	  </f:facet>
                  	  		<h:inputText  value="#{process.endDate}">
                  	  			
                  	  		</h:inputText>
                  	  	</h:column>  	  	
                  	  
                  	  </h:dataTable>  
Please help me on this...
give me the some sample codes....

Thanks in advance to all,

Regards,
BR
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2007
Added on Sep 3 2007
1 comment
211 views