+ 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.