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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -