You need to sign in to do that
Don't have an account?

is it possible to create a tag in visualforce using APEX code?
Hi,
I want know if is possible to create a tag using apex code.
for example
List<String> accounts
accounts.add(<tr><td>account.Field</td></tr>)
When the code is executed in the visualforce will appear
<table>
//TR and TD created by apex
<tr>
<td>Account Value</td>
</tr>
</table>
is it possible to do?
Best Regards
Rafael
I want know if is possible to create a tag using apex code.
for example
List<String> accounts
accounts.add(<tr><td>account.Field</td></tr>)
When the code is executed in the visualforce will appear
<table>
//TR and TD created by apex
<tr>
<td>Account Value</td>
</tr>
</table>
is it possible to do?
Best Regards
Rafael
Here is an example -
Apex Code Markup Also please note that you will have to do an escape=false , then only the text will be rendered as HTML tags.
is it work if I use a variable of type list?
The point is I must print each register separated by tags
But when I display the list, all the data fo account for example, are displayed all in only one cell.
So I need separate each data with TR and TD.
When I use your example with a simple variable String name, it works, but when I use the variable like LIST<String> name it occurs the follow error:
Failure Message: "System.NullPointerException: Attempt to de-reference a null object.