The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within

后端 未结 1 1755
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 18:12

I am getting the following error on my Facelet page, which simply consists of an IceFaces form with two fields and two buttons:

The form component ne

相关标签:
1条回答
  • 2020-12-03 18:19

    This is not an error. This is a warning. The code looks fine, all input components are inside a form, it seems that it should run and work fine. If it indeed works fine, just ignore the warning. This warning is displayed only when the context parameter javax.faces.PROJECT_STAGE is set to Development anyway .

    As to the false warning message itself, this check was introduced in Mojarra 2.1.1 as per issue 1663. However, as per issue 2147 it turns out to have some bugs and is been further improved in Mojarra 2.1.3. I'd imagine that the false warning is in your particular case caused by having an <ice:panelLayout> between the form and the input elements.

    If you aren't on Mojarra 2.1.3 yet, you may want to consider upgrading to see if it removes the false warning message.

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