Hi,

please use " (double quotes) for attributes in your markup, "listItems" should do fine.

Have you added the listItems to your page?

    this.add(listItems)

Have fun
Sven


Am 07.05.2018 um 18:50 schrieb athag...@csd.auth.gr:
I am simply trying to implement an existing example of The RepeatingView Component as it is displayed in the documentation.
The .html file:

<html>
        <head>
                <meta charset="utf-8" />
                <title>Apache Wicket HelloWorld</title>
        </head>
        <body>

                <div wicket:id=':listItems'>
                [Label's message goes here]
                </div>
        </body>
</html>

(NOTE: If I use "listItems" instead of ':listItems' as it is in the tutorials, I get another error specifically telling me that ':listItems' was expected instead...)

and in the Java file I am only adding initializing & components:
    RepeatingView listItems = new RepeatingView("listItems");

listItems.add(new Label(listItems.newChildId(), "green"));
listItems.add(new Label(listItems.newChildId(), "blue"));
listItems.add(new Label(listItems.newChildId(), "red"));
    }
}

Instead of the components being displayed, the server either denies me access or returns me this error: Last cause: This container is already dequeing: [Page class = com.thesis.HomePage, id = 0, render count = 0]

Any ideas, anyone?

Thanks in advance!!








---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  • Odd Error athageor
    • Re: Odd Error Sven Meier

Reply via email to