I use Seam 2.0.0 . Then I changed to:
 
  |  <h:selectManyCheckbox value="#{selezione.fornitoriSelezionati}" 
layout="pageDirection" >
  |    <s:selectItems value="#{AutorizzatiFoManager.autorizzati}" 
var="fornitore" label="#{fornitore.nomeFornitore} - #{fornitore.messaggio}" /> 
  |    <s:convertEntity 
entityClass="org.jboss.seam.example.registration.Fornitore"/> 
  |  </h:selectManyCheckbox>    
  | 

components.xml             
  | <persistence:managed-persistence-context name="entityManager" 
auto-create="true"         
persistence-unit-jndi-name="java:/epEntityManagerFactory" />
  |  
    
Persistence.xml   
  |  <property name="jboss.entity.manager.factory.jndi.name"
  |                    value="java:/epEntityManagerFactory" /> 


in Selezione.java (the entity class named selezione in the context)

  | @OneToMany 
  |    private List<Fornitore> fornitoriSelezionati;
  |             

in AutorizzatiFoManager.java

  |    private List<Fornitore> autorizzati;
  |             

I still get the right list, but when i check one or more checkbox, i get a 
facesmessage:
        j_id96:j_id101: Validation Error: Value is not valid

the html generated code for the SelectManycheckbox is, for example for the 
third element of the list:

  | <input name="j_id96:j_id101" id="j_id96:j_id101:3" value="3" 
type="checkbox" checked="checked" /><label for="j_id96:j_id101:3">Third element 
....</label>
  | 
while before in the value field I had theClassPackage.Fornitore(a)[a coded id]

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

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

Reply via email to