ok so i get the problem a little more now. I found out the lifecycle
explanation and discovered my 'processRowSelection' is done in
the PROCESS_VALIDATIONS phase.

But then, during the UPDATE_MODEL_VALUES phase, my rowIndex is first set to
the correct value (i.e. the one i selected), and then set to 0. Why is that
so ?

On Mon, Jan 3, 2011 at 3:11 PM, Matthieu <[email protected]> wrote:

> Hello everyone,
>
> I'm trying to understand a very strange behavior. I'm using a webpage with
> a tomahawk selectOneRow and a form.
> The form input fields are supposed to be filled with values when the user
> selects one rows, so he can also change the values and submit them.
>
> well, it just won't work. When trying to select a row, the webpage comes
> back with the initial values. After a little inspection, i have a trace
> which shows me the values are correctly set when the user selects a row, but
> the JSF system set the values back to their initial values before showing
> the page back!
>
> Am i understanding JSF the wrong way?
>
17:44:13,735 INFO  [STDOUT] ------ BEFORE PHASE RESTORE_VIEW(1)
17:44:13,735 INFO  [STDOUT] ------ AFTER PHASE RESTORE_VIEW(1)
17:44:13,735 INFO  [STDOUT] ------ BEFORE PHASE APPLY_REQUEST_VALUES(2)
17:44:13,735 INFO  [TomcatAnnotationLifecycleProvider] Creating instance of 
com.xxx.ui.beans.ServiceModificationBean
17:44:13,735 INFO  [STDOUT] <getServiceList()
17:44:13,735 INFO  [STDOUT] <refreshServiceList()>
17:44:13,766 INFO  [STDOUT] 
<setServiceList(servicelist=[com.xxx.model.serv...@68742d, 
com.xxx.model.serv...@5d4162][2]) />
17:44:13,766 INFO  [STDOUT] < /refreshServiceList()>
17:44:13,766 INFO  [STDOUT] ></getServiceList()>
17:44:13,766 INFO  [STDOUT] <getSelectedServiceNbr() returns 0 />
17:44:13,766 INFO  [STDOUT] <rowSelected(row=1)>
17:44:13,766 INFO  [STDOUT] <setSelectedServiceNbr(selectedServiceNbr=1) />
17:44:13,766 INFO  [STDOUT] <getServiceList()
17:44:13,766 INFO  [STDOUT]  />
17:44:13,766 INFO  [STDOUT] <setMaxAttempts(maxAttempts=3) />
17:44:13,766 INFO  [STDOUT] <setPendingTimeout(pendingTimeout=2) />
17:44:13,766 INFO  [STDOUT] <setTimeoutPeriod(timeoutPeriod=1) />
17:44:13,766 INFO  [STDOUT] < /rowSelected()>
17:44:13,766 INFO  [STDOUT] ------ AFTER PHASE APPLY_REQUEST_VALUES(2)
17:44:13,766 INFO  [STDOUT] ------ BEFORE PHASE PROCESS_VALIDATIONS(3)
17:44:13,766 INFO  [STDOUT] <getSelectedServiceNbr() returns 1 />
17:44:13,766 INFO  [STDOUT] <getTimeoutPeriod() returns 1 />
17:44:13,766 INFO  [STDOUT] <getPendingTimeout() returns 2 />
17:44:13,766 INFO  [STDOUT] <getMaxAttempts() returns 3 />
17:44:13,766 INFO  [STDOUT] ------ AFTER PHASE PROCESS_VALIDATIONS(3)
17:44:13,766 INFO  [STDOUT] ------ BEFORE PHASE UPDATE_MODEL_VALUES(4)
17:44:13,766 INFO  [STDOUT] <setSelectedServiceNbr(selectedServiceNbr=1) /> 
<!-- YAY -->
17:44:13,766 INFO  [STDOUT] <setSelectedServiceNbr(selectedServiceNbr=0) /> 
<!-- WHAT? -->
17:44:13,766 INFO  [STDOUT] <setTimeoutPeriod(timeoutPeriod=0) />
17:44:13,766 INFO  [STDOUT] <setPendingTimeout(pendingTimeout=0) />
17:44:13,766 INFO  [STDOUT] <setMaxAttempts(maxAttempts=0) />
17:44:13,766 INFO  [STDOUT] ------ AFTER PHASE UPDATE_MODEL_VALUES(4)
17:44:13,766 INFO  [STDOUT] ------ BEFORE PHASE INVOKE_APPLICATION(5)
17:44:13,766 INFO  [STDOUT] ------ AFTER PHASE INVOKE_APPLICATION(5)
17:44:13,766 INFO  [STDOUT] ------ BEFORE PHASE RENDER_RESPONSE(6)
17:44:13,782 INFO  [STDOUT] <getServiceList()
17:44:13,782 INFO  [STDOUT]  />
17:44:13,782 INFO  [STDOUT] <getSelectedServiceNbr() returns 0 />
17:44:13,782 INFO  [STDOUT] <getSelectedServiceNbr() returns 0 />
17:44:13,782 INFO  [STDOUT] <getSelectedServiceNbr() returns 0 />
17:44:13,782 INFO  [STDOUT] <getTimeoutPeriod() returns 0 />
17:44:13,782 INFO  [STDOUT] <getTimeoutPeriod() returns 0 />
17:44:13,782 INFO  [STDOUT] <getPendingTimeout() returns 0 />
17:44:13,782 INFO  [STDOUT] <getPendingTimeout() returns 0 />
17:44:13,782 INFO  [STDOUT] <getMaxAttempts() returns 0 />
17:44:13,782 INFO  [STDOUT] <getMaxAttempts() returns 0 />
17:44:13,782 INFO  [STDOUT] ------ AFTER PHASE RENDER_RESPONSE(6)
17:44:13,782 INFO  [STDOUT] REQUEST END

Reply via email to