I think that the problem is due to the evaluation of the if, as 
stated in a previous message.

Can you change the code as follows:

 <jsp:element name="fo:table-column">
   <jsp:attribute name="column-width">
     <jsp:expression>widths[i]</jsp:expression>
   </jsp:attribute>
   <jsp:scriptlet>
     if (bgColors[i] = null) {
            bgColors[i] = <a default value>
     }
   </jsp:scriptlet>
   <jsp:attribute name="background-color">
     <jsp:expression>bgColors[i]</jsp:expression>
   </jsp:attribute>
 </jsp:element>
 
where <default value> can be the background color of the page...

Another way (more complicated) is to use a bean and a tag :-)

Bye

G

--

Giuseppe Briotti
[EMAIL PROTECTED]

"Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius."
                         (Orazio)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to