Re: Exception with T5 checkbox
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
Re: Exception with T5 checkbox
Another question is how to traduce : input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} checked=checked/ to tapestry component ? --- En date de : Ven 9.4.10, jaques robert mondes_englou...@yahoo.fr a écrit : De: jaques robert mondes_englou...@yahoo.fr Objet: Re: Exception with T5 checkbox À: Tapestry users users@tapestry.apache.org Date: Vendredi 9 avril 2010, 9h34 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
Re: Exception with T5 checkbox
On Fri, 09 Apr 2010 04:34:45 -0300, jaques robert mondes_englou...@yahoo.fr wrote: I've already tried that but IE FF when meeting checked= or checked=checked are considerating that the checkbox are checked :( ... Please try again, but checked= means not checked as per the HTML standard. 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) Please post the exception here again. 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 Yes. -- 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
Re: Exception with T5 checkbox
On Fri, 09 Apr 2010 04:57:13 -0300, jaques robert mondes_englou...@yahoo.fr wrote: Another question is how to traduce : input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} checked=checked/ input type=checkbox t:type=checkbox value=documentField.documentFieldDN/ documentField.documentFieldDN should be a boolean property If documentField.documentFieldDN is true, the checkbox will be rendered 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
Re: Exception with T5 checkbox
On Thu, 08 Apr 2010 13:42:28 -0300, jaques robert mondes_englou...@yahoo.fr wrote: Hi, Hi! I'm using the following html code inside my tml file : input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} ${documentField.checked}/ Why aren't you using the Checkbox component? Are the lines above the ones in row 37? -- 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
Re: Exception with T5 checkbox
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