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@11be57f, com.jtp.app.domain.User@114e777,
com.jtp.app.domain.User@1a6c368, com.jtp.app.domain.User@e48e45,
com.jtp.app.domain.User@1e64a3b, com.jtp.app.domain.User@4f7537,
com.jtp.app.domain.User@7413e8, com.jtp.app.domain.User@1125fe1,
com.jtp.app.domain.User@14b43d, com.jtp.app.domain.User@199c55a,
com.jtp.app.domain.User@1ebf5c, com.jtp.app.domain.User@164d75,
com.jtp.app.domain.User@1224b90, com.jtp.app.domain.User@52ac68,
com.jtp.app.domain.User@a6a7d2, com.jtp.app.domain.User@10d0630,
com.jtp.app.domain.User@e1ed5b, com.jtp.app.domain.User@1a0353d,
com.jtp.app.domain.User@1a40fff, com.jtp.app.domain.User@1245e75,
com.jtp.app.domain.User@3c8db9, com.jtp.app.domain.User@1823918]
| toString() org.jboss.seam.jsf.ListDataModel@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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...