OK, so of course I posted that and then thought of one last possibility, which 
sort of kind of worked.  Declare HotelFactory.hotels as "@In ListDataModel 
hotels".  That gets past all the bijection issues.

Problem is it doesn't actually affect HotelListAction, because there, 
hotelIndex is declared as "@DataModelSelectionIndex hotelIndex".  So 
HotelFactory can outject hotelIndex all it wants, HotelListAction isn't 
injecting it.

Just changing the declaration to "@In(required=false) @DataModelSelectionIndex 
hotelIndex" in HotelListAction doesn't work either, because Seam tries to 
inject a null value for "hotelIndex", and of course you can't put a null into 
an int.

Perhaps all this exposing of hotelIndex outside of HotelListAction is just 
wrong and I should be reorganizing HotelListAction to look at the "hotel" 
component (which is set by the HotelFactory after all) and drive its indexing 
from that on every action.  I'll try that... next time I get to hack Seam... 
which is unfortunately only a couple of times a week right now :-(  Anyway, 
still curious for the official word on this entire structure.

Cheers,
Rob

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to