You need to sign in to do that
Don't have an account?
AAlex11
Insert file txt in Visualforce page
Hi,
I'm creating a VF Page with a two columns table.
In the two columns I have to insert for each row a .txt file loaded from static resource.
That's my problem:
When I loaded the txt file in Visulaforce page with this line of code:
where Cond1 is the name of the txt file I loaded in static resources
My output in the page is
Where am I wrong?
There's a special visualforce tag to use?
Please help me to solve this issue.
I'm creating a VF Page with a two columns table.
In the two columns I have to insert for each row a .txt file loaded from static resource.
That's my problem:
When I loaded the txt file in Visulaforce page with this line of code:
<tr><b>{!$Resource.Cond1}</b></tr>
where Cond1 is the name of the txt file I loaded in static resources
My output in the page is
/resource/1469117262000/Cond1instead of the actual content of txt Cond1 file.
Where am I wrong?
There's a special visualforce tag to use?
Please help me to solve this issue.
Add a property to your controller that queries the static resource and returns its body assuming the body is text:
The page can then output the text using: