RE: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664234.html Sent

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread Sven Meier
See https://issues.apache.org/jira/browse/WICKET-4219 Sven On 02/06/2014 12:51 PM, dpmihai wrote: In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context:

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
Thanks. I did the following: @Override public Component getHeader(final String id, final Component parent, final IWizard wizard) { Component c = super.getHeader(id, parent, wizard); c.get(summary).setEscapeModelStrings(false); return c; } -- View

Re: How to add line breaks in the summary text of Wizard properties file

2013-08-01 Thread shimin_q
That was it! How did I not think of this? :-) Thanks Sven! The only issue, as I found out quickly, is that I have to introduce the MultiLineHeader inner class in many of my classes that extend WizardStep. And since wicket id does not support different namespaces, I will have to use different

RE: How to add line breaks in the summary text of Wizard properties file

2013-08-01 Thread shimin_q
Thanks Paul! For now, creating a MultiLineHeader class to replace Header class, as Sven suggested, did the trick. But I will keep your point in mind for any future customization of the default Wizard. -- View this message in context:

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
You can have HTML in your language pack and then call Componenet.setEscapeModelString(false) to have it rendered. http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/Compone nt.html#setEscapeModelStrings(boolean) You can also add an attribute modifier to your panel to wrap it at

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Sven Meier
Hi, you're probably extending WizardStep? Override #getHeader() returning a custom header similar to WizardStep$Header but using a MultiLineLabel for the summary. Then you can use new lines in your properties. Sven On 07/31/2013 09:20 PM, shimin_q wrote: Hi, I am using wicket Wizard

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread shimin_q
Thanks for the suggestion! Yes, I am extending WizardStep. Here is what I did to my code following your suggestion (the Header class is a final class, so I had to create a new MultiLineHeader class extends Panel directly to add new MultiLineLabel instead of the default new Label line in Header

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Sven Meier
MultiLineHeader is a panel, so it needs its own markup file. Did you create MultiLineHeader.html? Sven On 07/31/2013 10:43 PM, shimin_q wrote: Thanks for the suggestion! Yes, I am extending WizardStep. Here is what I did to my code following your suggestion (the Header class is a final

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
The way I styled the wizard to fit my look-n-feel is by extending Wizard and creating MyOwnWizard and then overriding whatever I wanted to change in the Java code (such as the type of form to create) and also in the HTML. You can do this with any Component but keep in mind the more you customize

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
So in your case I would just change my CSS and add a wicketExtensionsWizardHeader with the width you want :) ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Wednesday, July 31, 2013 6:34 PM To: users@wicket.apache.org Subject: RE: How to add line