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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -