[JBoss Seam] - Target Unreachable
by saeediqbal1
I am getting this exception
Exception during request processing: javax.servlet.ServletException: /createTicket.xhtml @29,71 value="#{createTicket.tickets.subject}": Target Unreachable, 'tickets' returned null
tickets is an entity bean as defined like this
@Entity
| @Name("tickets")
| @Table(name = "tickets", catalog = "test")
| public class Tickets implements java.io.Serializable {
and the JSF form has this value
<h:inputText id="subject" required="true"
| value="#{createTicket.tickets.subject}"/>
and my action object in java has this
@Stateful
| @Name("createTicket")
| public class CreateTicketBean implements CreateTicket {
|
| @In EntityManager entityManager;
|
| @In(required=false)
| @Out(required=false)
| private Tickets tickets;
|
How do i make sure the values get passed from JSF to the backing bean ? What am i missing here?
In regular generated code, we have forms that access entityhome using .instance, but i dont see that type of usage in examples so i am kind of confused.
please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088248#4088248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088248
18 years, 7 months
[JBoss and NetBeans] - Re: Netbeans + Seam Plugin = Success !!
by ybxiang.wolf
"ericcart" wrote :
| I didn't try sem-gen command line. I used all the others tools. For example Jboss IDE Beta, creating a JBoss IDE Project (EAR, WAR and EJB... and adding the libraries and files). I thought Seam was supported... It's very tricky to configure and the environment does not help.
|
| I just checked sem-gen command line... ant setup... ant new-project... etc... It's very far from I was looking for.... and seam documentation does not describe to use it as a fundamental thing to configure a project (may be, because It's not very handy to be running ant commands).
|
|
| The key with netbeans is that Seam Plugin uses sem-gen command line as a wizard (very easy to create all the project configuration).
|
| In a couple of hours, I migrated all the tests and I'm working with the final project at netbeans.
|
|
| Thanks,
| Anibal
~~~~~~~~~Does Your netbeans die frequently? In my pc, it dies whenever i open about 10 windows!!! And Netbeans' seamplugin for 6.0 cann't be found!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088244#4088244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088244
18 years, 7 months