Re: Feedback panel title area
On 25/04/2014 18:30, Entropy wrote: I just tried putting some text inside the feedback panel's html like so: This is a test That didn't work. "This is a test" was overwritten when the feedback panel rendered. Which is exactly what I expected it to do. Hi, The text between the tags is called the body. When a Panel is rendered, the body of the tags to which the panel was bound ("This is a test" in your example) is ignored, and the associated markup is rendered instead. Associated markup is the markup provided by the Panel, that is shipped in an HTML file with the same name as the Panel's class, or super class. There is nothing preventing you from subclassing FeedbackPanel, and providing very similar associated markup, just including a wicket:id="myheading">. To override the associated markup provided by a Panel's parent (replace markup instead of extend it), you do this: here you must provide all the markup required by the Panel. ie. Use instead of . So, to get what you want, create a subclass of FeedbackPanel, called MyFeedbackPanel. Then, in MyFeedbackPanel.html, copy all the HTML from FeedbackPanel.html, and insert the label that you want to add. Then, in MyFeedbackPanel#onInitialize(), add the label as you normally would. Cheers, Jesse - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback panel title area
I just tried putting some text inside the feedback panel's html like so: This is a test That didn't work. "This is a test" was overwritten when the feedback panel rendered. Which is exactly what I expected it to do. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-title-area-tp4665580p4665583.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback panel title area
Hi, On Fri, Apr 25, 2014 at 5:10 PM, Entropy wrote: > Is it possible to put some HTML inside the feedback panel that isn't > messages? Possibly for some formatting or a title/instructions? The stuff > would become visible at the same time as the error panel, but is static > content otherwise outside the messages? I tried just sticking some HTML in > there, but wicket overwrote it as expected. > What did you try exactly ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-title-area-tp4665580.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Feedback panel title area
Is it possible to put some HTML inside the feedback panel that isn't messages? Possibly for some formatting or a title/instructions? The stuff would become visible at the same time as the error panel, but is static content otherwise outside the messages? I tried just sticking some HTML in there, but wicket overwrote it as expected. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-title-area-tp4665580.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org