function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TShinchiTShinchi 

How to eval visualforce(apex tag) in Apex code?

Hello.

 

I want to know how to eval visualforce tag(ex apex:commandLink) in Apex code.

 

String target = '<apex:commandLink action="{!printAAA}" target="_blank">LinkText<apex:param value="{!name}" name="company" assignTo="{!strCompany}"/></apex:commandLink>'

String result = eval(target);

 It couldn't work.

I want to get parsed HTML string by eval. Plesae give me any idea.

 

Regards

osamanosaman

What your are trying to do could be acheived by rendering different panels instead of doing it. Eval is a .net thing.