[jboss-user] [JBoss Seam] - DataModelSelection is null

neillane do-not-reply at jboss.com
Thu Aug 17 08:12:57 EDT 2006


Hi

I am getting a wiered NullPointer Exception when selecting an item from the @DataModelSelection

I Have the following:

anonymous wrote : @DataModel
  |     private List inboxEnvelopes;
  | 
  |     @DataModelSelection
  |     private Envelope selectedInboxEnvelope;
  | 

I am cloning the Bookings example and have returned and displayed the objects in a dataTable with an s;link to the method selectItem()

The SelectItem() method runs 

envelope = em.merge(inboxEnvelopeSearch.getSelectedInboxEnvelope());


I have set all the @Out to not be required and the @In for the class that performs the database search to return the DataModel List to also be required=false.  

@In(required = false)
  |     private InboxEnvelopeSearch inboxEnvelopeSearch;

Otherwise I get :

anonymous wrote :  In attribute requires value for component 

Any ideas

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965711



More information about the jboss-user mailing list