How To Avoid Lazyinitializationexception When Using Manytomany Every Mo Value For Primefaces Selectcheckboxmenu

The stance is to allow the component subdivision know the type of information root collection.

Sample code:

<p:selectCheckboxMenu value="#{obj.students}" filter="true" filterMatchMode="startsWith"> <f:attribute name="collectionType" value="java.util.ArrayList" /> <f:selectItems value="#{elements}" var="elem" itemLabel="#{elem[valueLabelField]}" itemValue="#{elem}" /> </p:selectCheckboxMenu> 

Where elements is a listing of students.
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.