6 Replies Latest reply on Mar 17, 2007 11:52 AM by Konstantin Kauz


    Konstantin Kauz Novice

      I don't now why this doesn't work:


       <h:selectOneMenu value="#{hmodel.selectedHersteller}" required="true">
       <s:selectItems value="#{kfzList}" var="her" label="#{her.bezeichnung}" noSelectionLabel="Bitte waehlen..."/>
       <s:convertEntity />

      public class HModel implements HModelInterface{
       private Hersteller hersteller;
       private KfzModel kfzmodel;
       private EntityManager em;
       private List<Hersteller> kfzList;
       private String herst;
       private FacesMessages facesMessages;
       private Hersteller selectedHersteller;
       public void setHerKfz(){
       List<Hersteller> lher= em.createQuery("from Hersteller where akzept=true")
       this.kfzList = lher;

      in the view i have a <s:messages and the message that has been show is invalid value.