This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a JSF page where I'm outputting some text into a dataList (Tomohawk) i.e. a result from a form submission. I want to be able to format the the output i.e. use the <br>, <a href...> or <p> html tag inside the dataList. However JSF doesn't seem to be recognising the html tags.
Hence I've used the <f:verbatim> to insert the <br> tag, see below
Is the method correct, it seems to work. What I dont want is for it to have repurcussions later on when my app becomes much more complex.
Why not instead of <a href="" /> use <h:commandLink />?
Joined: Mar 31, 2005
Ahh yes John that was an oversight. <a:href .... shouldn't have been there. My main issue was the <br>, if put that there without the <f:verbatim> tags, it is ignored. Hence my question in essence is <f:verbatim> really neccasary if I just want to put need a <br> or <p>?
I hope that makes sense, essentially I have a loop and after each iteration I need a gap between what is output hence <br> or <p>.
Thanks for your thoughts Zein
Joined: Jan 25, 2006
ah ok. have you tried <br /> and <p />? [ June 08, 2007: Message edited by: John Bartlett ]