I'm newbie in seam
I've designed an entity (movie) that has many one to one relationship with another
Entity (Member)
i have a register form that user selects a member and fill the movie attribute but
i can't bind movieAction.movie.producerId
i've got this exception
movie target unrechable
can any one help me how i can implement this form ?
I would appreciate if somebody suggest a better way
movieActionBean.java
@In @Out Movie movie; //getter/setter movie public void registerMovie(){ em.persist(movie); }
Movie.java
@OneToOne Member producerId; @OneToOne Member directorId; //getter / setter
movie.xhtml
there is a modalPanel that user selects member and set component member to movie registration form
<h:inputText value="#{movieAction.movie.producerId}" />
sorry i forgot to say, i set movieAction.movie.producerId in modalPanel
<f:setPropertyActionListener value="#{member}" target="@{movieAction.movie.producerId}" />
member comes from dataTable bind to members