Is it true that you should not use any simple HTML in RichFaces? What for?

Can someone point to me or explain if this is true, you should not use simple simple HTML tags in JSF or JSF libraries like RichFaces?

We use JSF 1.2, RichFaces 3.3.3 and Facelets on the JBOSS server.

Someone told me that we should use only <rich:>either <f:>or <a4j:>and the components that they offer. The reason is that the JSF component tree will break and you may experience unwanted behavior. Or lose the structure of the JSF tree at some point and its related functions.

I tried to use a simple tag <h1>and they told him not to use it and instead use it <a4j:outputPanel>(which displays as <div>) and style it as a headline.

I find it hard to believe that.

+3
source share
3 answers

You are right not to believe in it. There is absolutely no problem using simple HTML tags.

Facelets UIComponenteven creates for static markup (i.e. non-JSF). That should be fair.

+5
source

jsf hthml jsf 1.0 1.1. <f:verbatim>, html. , , , html, .

+2

I confirm that you can easily mix and match the HTML and RichFaces tags.

0
source

Source: https://habr.com/ru/post/1768370/


All Articles