You need to sign in to do that
Don't have an account?
needhelp
How to create dynamic table at VF page
I try to generate HTML code in a controller and pass back to VF page to display. But,I can't think of a way to
display the HTML code correctly.
At my VF page,
- By using <script>document.write({!HTML})</script> --> the HTML code able to display as a table. But, this way is not working fine at IE7.
- By using <apex:outputText value="{!HTML}"></apex:outputText> --> this purely display the HTML code as text, not a table.
- Combine 1 & 2, <script>document.write()</script><apex:outputText value="{!HTML}"></apex:outputText> --> This way is working fine at IE7 and firefox, but this way looks a bit weird. Why with the <script> tag, the <apex:outputText> able to display HTML code correctly?
Kindly advise on this problem.
or is there any other idea on how to create a dynamic table at VF page based on the data being retrieve?
Thanks
found the solution at this post:
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=14700
use escape = false for <apex:outputText> :)