hm thank you for the quick reply Alex, i have the same line of code, and for
some reason it is not working! Here is the code so if anyone has any clue
what the problem might be...

@Basic(optional = false)
    @Validate("required")
    @Column(name = "KNJIGA_NAPOMENA")
    private String knjigaNapomena;
    
    @Basic(optional = false)
    @Validate("required")
    @Column(name = "KNJIGA_GOD_IZDANJA")
    @Temporal(TemporalType.DATE)
    private Date knjigaGodIzdanja;

 
    @JoinColumn(name = "OBLAST_ID", referencedColumnName = "OBLAST_ID")
    @ManyToOne
    private Autor oblastId;
    
    @JoinColumn(name = "JEZIK_ID", referencedColumnName = "JAZIK_ID")
    @ManyToOne
    private Jezik jezikId;

..... the rest of the entity class

and the tml :
<t:beaneditform t:id="knjigaN" exclude="knjigaZaduzena" submitLabel="Dodaj
Knjigu">
        <p:oblastId>
                <t:label for="oblastId"/>
                <t:select value="knjigaN.oblastId" model="oblastList"/>
        </p:oblastId>
        <p:jezikId>
                <t:label for="jezikId" />
                <t:selectobject t:id="jezikId" blankOption="never" 
list="jezikList"
value="jezici" labelfield="literal:jezikIme" />
        </p:jezikId>

... the rest of the form. This select object is a custom component i use for
lists, and it used to work just fine until i added @ManyToOne notations, and
changed the variable types to Autor/Jezik. If anyone has any ideas, thank
you in advance!

Best Regards,
Milos D.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Beaneditform-Troubles-tp5714511p5714520.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to