Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:The JSF way is like this:
For more complex construct, use one of the container tags. For example:
Use of raw HTML or free text in JSF View definitions is not good practice. In earlier versions of JSF, the output could be pretty awful-looking. In modern-day versions, the output will usually format better, but it's still bad practice.
Zhomart NoLastName wrote:I know that using html directly is bad practice, but some times I have no choice, because I need to optimize page for search engines.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:You're working with some really
-up search engines if they key in on <b> tags. What do they do when someone uses CSS to do their boldfacing, instead?
Tim Holloway wrote:If you absolutely must put explicit HTML into a JSF page, the recommended way to do it is with the use of the <verbatim> tag. Although in the case of wrapping tags, that can be a problem, since <verbatim></b></verbatim> is not a valid construct, for example. You could use the outputText tag with HTML escape turned off, however.
Tim Holloway wrote:JSF actually isn't intended to be HTML-only. By simply switching rendering engines, a JSF View should be renderable as WAP or PDF, for example. Except that neither of those forms handles HTML, and that's one reason why mixing in HTML isn't recommended.
Tim Holloway wrote:JSF is designed to provide a high-level abstract framework, not an element-by-element HTML page formatter. You can use constructs such as HTML-escaped outputText elements for small variances, but if the goal is to interact with an inflexible third party, JSF may be a bit like using a hammer to drive screws. For that kind of stuff, a straight servlet or JSP would be more appropriate.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Zhomart Sadyakas wrote:btw, what is the purpose of verbatim?
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Consider Paul's rocket mass heater. |