[jboss-user] [JBoss Seam] - Re: @DataModel problems

fernando_jmt do-not-reply at jboss.com
Fri Mar 30 21:36:44 EDT 2007


Hi smithbstl,

Because I was wondering about the weird problem, I tried to reproduce your code in my SEAM application, using @DataModel and filling it after a search criteria is entered. And all works fine.

Also I check what debug page returns and I get:


  | 
  |  class	 class org.jboss.seam.jsf.ListDataModel
  | dataModelListeners	[]
  | rowAvailable	false
  | rowCount	22
  | rowData	          java.lang.IllegalArgumentException[row is unavailable]
  | rowIndex	-1
  | wrappedData	[com.jtp.app.domain.User at 11be57f, com.jtp.app.domain.User at 114e777, com.jtp.app.domain.User at 1a6c368, com.jtp.app.domain.User at e48e45, com.jtp.app.domain.User at 1e64a3b, com.jtp.app.domain.User at 4f7537, com.jtp.app.domain.User at 7413e8, com.jtp.app.domain.User at 1125fe1, com.jtp.app.domain.User at 14b43d, com.jtp.app.domain.User at 199c55a, com.jtp.app.domain.User at 1ebf5c, com.jtp.app.domain.User at 164d75, com.jtp.app.domain.User at 1224b90, com.jtp.app.domain.User at 52ac68, com.jtp.app.domain.User at a6a7d2, com.jtp.app.domain.User at 10d0630, com.jtp.app.domain.User at e1ed5b, com.jtp.app.domain.User at 1a0353d, com.jtp.app.domain.User at 1a40fff, com.jtp.app.domain.User at 1245e75, com.jtp.app.domain.User at 3c8db9, com.jtp.app.domain.User at 1823918]
  | toString()	org.jboss.seam.jsf.ListDataModel at 1cbc5cb
  | 
  | 

As you can see in the debug the line java.lang.IllegalArgumentException[row is unavailable] is also presented for me. But nonetheless all is working fine for me. Seems like your problem is not precisely with @DataModel outjection.

Maybe the problem is residing anywhere else.



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

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



More information about the jboss-user mailing list