Is there any problem when I mix JSF with plain HTML?

前端 未结 1 1927
忘了有多久
忘了有多久 2021-01-15 19:56

I have the next code:

  • Inicio de Sesión

  • 1条回答
    •  孤街浪徒
      2021-01-15 20:23

      If you're using the ancient JSF 1.0/1.1 implementations, then you need to wrap HTML in tags like so:

    • Inicio de Sesión

      ...
    • Otherwise they will end up in the top of the generated document, before all JSF components.

      If you're using a JSF 1.2 implementation or newer, then you should be able to write plain HTML in template text without problems since they are automatically taken as verbatim in the component tree. The only cause for the form not being rendered would be that LoginController#isSession() returned true since that's what its rendered attribute is depending on.

      0 讨论(0)
    提交回复
    热议问题