I've already tried that but IE & FF when meeting checked="" or checked="checked" are considerating that the checkbox are checked :( ...
I'm using this html component because if I use the T5 component, I've got type coercion error (see my other posts inside this ML) So the idea is to use a <IF> to display checked or not. However the test to use can be of that sort : <t:if test="documentField.checked"> ? </t:if> Regards, Mondes. --- En date de : Jeu 8.4.10, Thiago H. de Paula Figueiredo <thiag...@gmail.com> a écrit : De: Thiago H. de Paula Figueiredo <thiag...@gmail.com> Objet: Re: Exception with T5 & checkbox À: "Tapestry users" <users@tapestry.apache.org> Date: Jeudi 8 avril 2010, 19h00 On Thu, 08 Apr 2010 13:42:28 -0300, jaques robert <mondes_englou...@yahoo.fr> wrote: > <input type="checkbox" name="selectedDocumentFields" > value="${documentField.documentFieldDN}" ${documentField.checked}/> The ${documentField.checked} part is valid HTML but not valid XML, and Tapestry templates must be valid XML even when outputting HTML. If you really want not to use the Checkbox component, use checked="${checked}" and add this method to your class: public String getChecked() { return documentField.checked ? "checked" : ""; } --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org