Author: echatellier Date: 2013-06-23 12:35:07 +0200 (Sun, 23 Jun 2013) New Revision: 247 Url: http://forge.codelutin.com/projects/cantharella/repository/revisions/247 Log: Add PersonneRenderer to DropDownChoice Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java 2013-06-21 09:30:49 UTC (rev 246) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java 2013-06-23 10:35:07 UTC (rev 247) @@ -40,6 +40,7 @@ import nc.ird.cantharella.web.config.WebContext; import nc.ird.cantharella.web.pages.TemplatePage; import nc.ird.cantharella.web.pages.domain.personne.ManagePersonnePage; +import nc.ird.cantharella.web.pages.renderers.PersonneRenderer; import nc.ird.cantharella.web.utils.CallerPage; import nc.ird.cantharella.web.utils.behaviors.JSConfirmationBehavior; import nc.ird.cantharella.web.utils.forms.AutoCompleteTextFieldString; @@ -196,7 +197,7 @@ formView.add(new TextField<String>("Document.titre", new PropertyModel<String>(documentModel, "titre"))); final DropDownChoice<Personne> createurInput = new DropDownChoice<Personne>("Document.createur", - new PropertyModel<Personne>(documentModel, "createur"), personnes); + new PropertyModel<Personne>(documentModel, "createur"), personnes, new PersonneRenderer()); createurInput.setOutputMarkupId(true); createurInput.setNullValid(false); formView.add(createurInput);
participants (1)
-
echatellier@users.forge.codelutin.com