easydoor <christophe.foiret <at> valdoise.fr> writes:

> 
> Hi all,
> 
> The problem was soon described on JIRA (CLK-582) but isn't solved, so i post 
> it
> again
> 
> When i generally built a page with a FormTable and another search Form (to
> select rows in the FormTable), the required fields not filled are not 
> displayed
> in yellow when you submit the TableForm.
> 
> It seems that the Form cancels the table.getForm.isValid() function
> 
> 
Hi Bob,

Refer to this page on http://elus-dev.cg95.fr/elus/img/TableForm.jpg
I put this page stateful and it solves the problem explained before. 

But I meet another difficulty, I'd like to apply the value filled 
in the bottom Field <Montant> (it's a default value) on ALL the 
lines <Montant> of the TableForm after clicking on 
the Button <Appliquer aux lignes>.

The TableForm is never refreshed with the new Montant 
and keeps the old values

I build this code in the method called by the button

//Get the row List in a List
List <LigneDotation> ligs = table.getRowList();                         
                
//Iteration in the List to modify the montant Value
int index=0;
for (Iterator iterator = lig.iterator(); iterator.hasNext();) {
      LigneDotation lig = (LigneDotation) iterator.next();
                                
      lig.setMontant(new Double(montantDef.getValue()));
      ligs.set(index,lig);
      index++;
}
//Set the row list to modify Montant value in the TableForm
table.setRowList(ligs); 

Thank you in advance




Reply via email to