salesforce - Dynamically assign rowClasses attribute on <apex:dataTable> component -
i have visualforce page renders pdf file following component declaration:
<apex:datatable value="{!somesobjectlist}" var="sobj" rowclasses="{!if( mod( pos, 2 ) == 0, "grey_box,white_box", "white_box,grey_box" )}"> . . [column declarations] . </apex:datatable>
however, cannot compile. attempting save prompts following error message:
save error: element type "apex:datatable" must terminated matching end-tag "</apex:datatable>".
how can accomplish (i.e. zebra patterning context-dependant first colour)?
thank in advance!
apparently, problem using double quotations define classes. awkward, once single class definitions work fine.
anyway, swaping double quotes inside if clausule single quotes seems fix problem, indicated @doug-b in sf stackexchange page.
Comments
Post a Comment