[jboss-user] [JBoss Seam] - Re: s:selectItems changes in 2.0.0BETA1?
jimk1723
do-not-reply at jboss.com
Mon Jul 9 18:39:27 EDT 2007
"pete.muir at jboss.org" wrote : It sounds like a reasonable use case, but I'm not aware of it in an example - I want to rework the UI example, and I'll see if I can get something like this in. I'm not sure what your problem is exactly as I don't quite understand your explanation.
Here's an example of my UI working under Seam 1.2:
http://video.google.com/videoplay?docid=-2142860533872781220&hl=en
The quality is miserable, but you can clearly see that selecting items from the left list and clicking the command button moves the items to the other list.
Here are the logs from the "add" request - note that getAvailableThings is called during Process Validations and Render Response.
| 15:04:07,895 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RESTORE_VIEW(1)
| 15:04:07,895 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RESTORE_VIEW(1)
| 15:04:07,911 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RESTORE_VIEW(1)
| 15:04:07,927 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RESTORE_VIEW(1)
| 15:04:07,942 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE APPLY_REQUEST_VALUES(2)
| 15:04:07,942 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE APPLY_REQUEST_VALUES(2)
| 15:04:07,958 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER APPLY_REQUEST_VALUES(2)
| 15:04:07,958 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER APPLY_REQUEST_VALUES(2)
| 15:04:07,958 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE PROCESS_VALIDATIONS(3)
| 15:04:07,958 ERROR [STDERR] Jul 9, 2007 3:04:07 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE PROCESS_VALIDATIONS(3)
| 15:04:07,989 INFO [BucketHome] in getAvailableThings
| 15:04:07,989 INFO [STDOUT] Hibernate: select thing0_.id as id11_, thing0_.name as name11_, thing0_.version as version11_ from test.Thing thing0_
| 15:04:08,005 INFO [BucketHome] in getThingsToAdd
| 15:04:08,020 INFO [BucketHome] in getThingsToRemove
| 15:04:08,083 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER PROCESS_VALIDATIONS(3)
| 15:04:08,083 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER PROCESS_VALIDATIONS(3)
| 15:04:08,083 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE UPDATE_MODEL_VALUES(4)
| 15:04:08,099 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE UPDATE_MODEL_VALUES(4)
| 15:04:08,099 INFO [BucketHome] in setThingsToAdd
| 15:04:08,114 INFO [BucketHome] in setThingsToRemove
| 15:04:08,130 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER UPDATE_MODEL_VALUES(4)
| 15:04:08,130 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER UPDATE_MODEL_VALUES(4)
| 15:04:08,130 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE INVOKE_APPLICATION(5)
| 15:04:08,130 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE INVOKE_APPLICATION(5)
| 15:04:08,130 INFO [BucketHome] in addThings
| 15:04:08,145 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER INVOKE_APPLICATION(5)
| 15:04:08,145 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER INVOKE_APPLICATION(5)
| 15:04:08,145 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RENDER_RESPONSE(6)
| 15:04:08,161 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RENDER_RESPONSE(6)
| 15:04:08,208 INFO [BucketHome] in getAvailableThings
| 15:04:08,208 INFO [STDOUT] Hibernate: select thing0_.id as id11_, thing0_.name as name11_, thing0_.version as version11_ from test.Thing thing0_ where thing0_.id not in (? , ?)
| 15:04:08,224 INFO [BucketHome] in getThingsToAdd
| 15:04:08,239 INFO [BucketHome] in getThingsToRemove
| 15:04:08,349 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RENDER_RESPONSE(6)
| 15:04:08,364 ERROR [STDERR] Jul 9, 2007 3:04:08 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RENDER_RESPONSE(6)
|
Here is an example of the same code running under Seam 2.0.0BETA - note how after the postback the left hand list still contains the old items.
http://video.google.com/videoplay?docid=-4098366542019750853&hl=en
And again, here are the logs - getAvailableThings is not called during render response so the left hand listbox still reflects the state of the UI as it was before the Invoke Application.
15:24:50,113 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RESTORE_VIEW 1
| 15:24:50,113 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RESTORE_VIEW 1
| 15:24:50,145 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE APPLY_REQUEST_VALUES 2
| 15:24:50,176 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER APPLY_REQUEST_VALUES 2
| 15:24:50,176 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE PROCESS_VALIDATIONS 3
| 15:24:50,238 INFO [BucketHome] in getAvailableThings
| 15:24:50,238 INFO [STDOUT] Hibernate: select thing0_.id as id53_, thing0_.name as name53_, thing0_.version as version53_ from test.Thing thing0_
| 15:24:50,254 INFO [BucketHome] in getThingsToAdd
| 15:24:50,270 INFO [BucketHome] in getThingsToRemove
| 15:24:50,363 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER PROCESS_VALIDATIONS 3
| 15:24:50,379 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE UPDATE_MODEL_VALUES 4
| 15:24:50,395 INFO [BucketHome] in setThingsToAdd
| 15:24:50,410 INFO [BucketHome] in setThingsToRemove
| 15:24:50,442 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER UPDATE_MODEL_VALUES 4
| 15:24:50,457 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE INVOKE_APPLICATION 5
| 15:24:50,457 INFO [BucketHome] in addThings
| 15:24:50,457 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER INVOKE_APPLICATION 5
| 15:24:50,473 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker beforePhase
| INFO: BEFORE RENDER_RESPONSE 6
| 15:24:50,660 INFO [BucketHome] in getThingsToAdd
| 15:24:50,676 INFO [BucketHome] in getThingsToAdd
| 15:24:50,691 INFO [BucketHome] in getThingsToAdd
| 15:24:50,707 INFO [BucketHome] in getThingsToRemove
| 15:24:50,723 INFO [BucketHome] in getThingsToRemove
| 15:24:50,863 ERROR [STDERR] Jul 9, 2007 3:24:50 PM org.exadel.jsf.PhaseTracker afterPhase
| INFO: AFTER RENDER_RESPONSE 6
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062177#4062177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062177
More information about the jboss-user
mailing list