Advertisement

04.27.2007 at 06:49AM PDT, ID: 22538359
[x]
Attachment Details

Jsf DataTable and Checkbox problems

Asked by aciang in Java Server Faces (JSF), Java Programming Language, J2EE

Tags: jsf, checkbox, datatable

Dear Experts,

I have jsf DataTable and checkbox problem
I have a List listCountries with fields: countryId & countryNm

            <h:dataTable value="#{pLM0001.listCountries}"
                              var="f0001"
                              binding="#{pLM0001.htmlDataTableCountry}"
                              border="1">
                  <h:column>
                        <h:outputText value="#{f0001.countryid}"></h:outputText>
                  </h:column>
                  <h:column>
                        <h:outputText value="#{f0001.countryNm}"></h:outputText>
                  </h:column>
                  <h:column>
                        <h:selectBooleanCheckbox value="#{pLM0001.bolSelected}">
                        </h:selectBooleanCheckbox>
                  </h:column>
            </h:dataTable>

End users can pick the countries they want to select.
The problem is, how can I get which countries are selected?

I am still a rookie in jsf and java environment, please kindly help :).

Thanks in advance.Start Free Trial
[+][-]04.27.2007 at 12:25PM PDT, ID: 18991641

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Server Faces (JSF), Java Programming Language, J2EE
Tags: jsf, checkbox, datatable
Sign Up Now!
Solution Provided By: bpmurray
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.01.2007 at 05:45AM PDT, ID: 19007625

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32