I am creating PDF page (in html page not working too), I have pageBlockTable in it. I need to display row number in first column. I found solution to use apex:variable
and increment it.
<apex:variable value="{!0}" var="index"/>
<apex:pageBlockTable value="{!salesOrderItems}" var="salesOrderItem" border="1px">
<apex:variable var="index" value="{!index + 1}"/>
<apex:column>
<apex:facet name="header">
<apex:outputLabel value="Number" />
</apex:facet>
<apex:outputLabel value="{!index}" />
</apex:column>
...
</apex:pageBlockTable>
But in every row I see 0. Increment is not working.