This content has been marked as final.
Show 3 replies
-
1. Re: How to include text from a txt file? <c:import> does not work
lvdberg Oct 27, 2009 8:26 PM (in response to gturek)Try using s:formattedText for Wiki-style text or otherwise use
<rich:insert src="../yourFile" highlight="yourLanguage" />
and have your text also formatted if necessary. See the Seam and Rich:faces docs for more information.
Leo
-
2. Re: How to include text from a txt file? <c:import> does not work
cash1981 Oct 29, 2009 10:42 PM (in response to gturek)ui:include should work just fine. If it doesnt work its probably something wrong in your code. Try also renaming the file to xhtml and include that which only contains text. Should be a valid workaround for you.
-
3. Re: How to include text from a txt file? <c:import> does not work
gturek Oct 30, 2009 1:09 AM (in response to gturek)Both methods work, but <ui:include> specifically expects a structured document, while I don't want/need any tags in my import. so <rich:insert> is a better solution for this case.
Thanx!