hi,

i'm in the middle of whacking together a timetable-generating application for 
the institute i work at. and i'm banging my head against the wall because of 
some weird stuff that seam is doing.

i have a list of TimetableItems, each of which has a list of 1..n 
TimetableItemTimes. I have a stateful session bean, TimetableGenerator 
(@Name("timetable")) which queries the database (over which i have no control), 
mashes the data from the database into an ArrayList of TimetableItems 
(#{timetable.bscPracticals}) in the way i need it.

then i have this JSF snippet in my form where the user should be able to select 
a timeslot for the course he/she wants to take:


  | <h:dataTable id="bscPracticalList" var="bscPr"
  |     value="#{timetable.bscPracticals}"
  |     rendered="#{not empty timetable.bscPracticals}">
  |     <h:column>
  |         <f:facet name="header">Name</f:facet>
  |         #{bscPr.title} [#{bscPr.times.size} Groups] (#{bscPr.type})
  |     </h:column>
  |     <h:column>
  |       <f:facet name="header">Available Times</f:facet>
  |         #{bscPr.times}
  |     </h:column>
  |     <h:column>
  |       <f:facet name="header">Time slot selection</f:facet>
  |         <h:selectOneMenu value="#{bscPr.selected}">
  |         <s:selectItems value="#{bscPr.times}" var="n"
  |             label="#{n.group}" />
  |         </h:selectOneMenu>
  |     </h:column>
  | </h:dataTable>
  | 

the "Name" column is populated correctly, the "Available Times" column then 
correctly shows all the timeslots available for each course, BUT the "Time slot 
selection" selectOneMenus show the available timeslots for the first course in 
my listing in each row.

now, i'm thinking i'm probably doing something wrong. but i have ABSOLUTELY no 
clue as to what that might be.

seam version is 1.3.0-ALPHA (according to the readme.txt) checked out from CVS 
at the end of june. i'm thinking this issue might be fixed in the 2.0-BETA 
release, but am not too sure how to go about upgrading (is it just a matter of 
swapping out the jboss-seam*.jar libraries in my project?).

so, can anyone help me on this?

thanks in advance,
sb

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081044
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to