easydoor wrote:


I added an onchange attribute on the intervSelect to update the rowList

    public void buildSelects() {

        intervSelect.bindRequestValue();

        if (StringUtils.isEmpty(intervSelect.getValue())) {
            // No Intervenant Cible selected, exit early
            return;
        }
        updateRowList();
    }
But the intervSelect contains always no value !


From what you describe above, this should work.

If you use FireBug, check under the "Net" panel that the Select onchange submit does in fact post the Select value and other Form fields to the server.



That's my first question and the second one is :

If I've several lines, what is the meaning to access of the value of the
intervSelect on the line 1 and 2, and 3 ...


Not sure I understand the question above.



Could you give me an help with example code, it's urgent because my customer needs this function.

The FormTable seems not to be very clear for me on these points :

1/Do not populate the FormTable rowList in the Page's onRender() method.


FormTable rowList must be populated during the Page onInit event (which occurs *before* onProcess) because those values are needed in the onProcess event, in order to set the Field values.

If you only set the FormTable rowList in the onRender event (which occurs *after* onProcess) then the Field values won't be known.


2/ table.setRenderSubmittedValues(false), what does it means ?


This specifies whether the values submitted in the browser should be displayed or not. Usually you want to display them. Sometimes however, you want to have a "Cancel" button which does not apply the submitted values. For this case you do not want to display the submitted values, but rather the values as they are in the database.

kind regards

bob

Reply via email to