Author: echatellier Date: 2013-06-03 15:26:05 +0200 (Mon, 03 Jun 2013) New Revision: 236 Url: http://forge.codelutin.com/projects/cantharella/repository/revisions/236 Log: Fix multiline labels Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ReadMoleculePage.java Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ReadMoleculePage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ReadMoleculePage.java 2013-05-29 08:49:38 UTC (rev 235) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ReadMoleculePage.java 2013-06-03 13:26:05 UTC (rev 236) @@ -60,6 +60,7 @@ import org.apache.wicket.MarkupContainer; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.basic.Label; +import org.apache.wicket.markup.html.basic.MultiLineLabel; import org.apache.wicket.markup.html.form.Button; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.link.Link; @@ -135,11 +136,11 @@ .add(new ReplaceEmptyLabelBehavior())); nouvMoleculRefresh.add(new Label("Molecule.identifieePar", new PropertyModel<Personne>(moleculeModel, "identifieePar")).add(new ReplaceEmptyLabelBehavior())); - nouvMoleculRefresh.add(new Label("Molecule.publiOrigine", new PropertyModel<String>(moleculeModel, + nouvMoleculRefresh.add(new MultiLineLabel("Molecule.publiOrigine", new PropertyModel<String>(moleculeModel, "publiOrigine")).add(new ReplaceEmptyLabelBehavior())); add(nouvMoleculRefresh); - add(new Label("Molecule.complement", new PropertyModel<String>(moleculeModel, "complement")) + add(new MultiLineLabel("Molecule.complement", new PropertyModel<String>(moleculeModel, "complement")) .add(new ReplaceEmptyLabelBehavior())); add(new PropertyLabelLinkPanel<Personne>("Molecule.createur", new PropertyModel<Personne>(moleculeModel,