The button/link/text component needs to have a Form....

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
marcelocaser
Posts: 122
Joined: 13 Dec 2011, 15:07

18 Apr 2017, 17:18

Hello,
I'm using the theme "Poseidon" and I'm putting the following code in the file "template.xhtml"

Code: Select all


.....

<h:body styleClass="main-body">

        <div class="layout-wrapper #{guestPreferences.menuLayout}">
            <ui:include src="./topbar.xhtml" />
            <ui:include src="./menu.xhtml" />

            <div class="layout-main">
            
            <p:growl id="growl" showDetail="true" showSummary="true" sticky="false" autoUpdate="true" />
            
            ....
            
</h:body>

But you always get the error message:
The button/link/text component needs to have a Form in its ancestry. Please add <h:form>.
I already put inside a <h: form> tag but it did not solve! I need <p: grow /> to be in my entire layout!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 Apr 2017, 08:36

Please add the following context-param or change it in web.xml;

Code: Select all

<context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Production</param-value>
</context-param>

marcelocaser
Posts: 122
Joined: 13 Dec 2011, 15:07

24 Apr 2017, 03:08

Hi!
Thank you! It worked!!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

25 Apr 2017, 07:08

Glad to hear, thanks for the update!

Post Reply

Return to “Poseidon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests