struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatermann_shoevarek <vaterm...@gmail.com>
Subject Re: Java templates <s:checkboxlist> tag and the significance of parameters.nameValue
Date Sat, 10 Sep 2011 13:38:24 GMT
Thank you Mauricio. I appreciate your help. If that is a bug though, is
there a possibility of using Java templetes engine for some tags or pages
and FM engine for others?
On Sep 9, 2011 5:21 PM, "Maurizio Cucchiara [via Struts]" <
ml-node+s1045723n4788357h85@n5.nabble.com> wrote:
>
>
> JT and FMT should behave at the same way.
> So my first guess is that it's a JT bug
> Unfortunately I cannot say more from my tablet, I will take a deeper look
> ASAP.
>
> Maurizio Cucchiara
>
> Il giorno 10/set/2011 00.59, "vatermann_shoevarek" <vatermann@gmail.com>
ha
> scritto:
> I am considering switching my application to using Java theme provided by
> Java templates plugin. The only problem I have is the <s:checkboxlist>
tag.
> My solution uses <s:checkboxlist> with name of the Long type property of
> element in list passed to "list" attribute as a "listKey" and collection
of
> Long instances as a selected keys in "value" attribute. After conversion
> generated drop down does not check options correctly.
>
> I have looked into FreeMarker template and CheckboxListHandler
> implementations and the difference I see is that where the FM probably
> compares current option key with parameters.nameValue using plain equal()
> method call, the Java templates handler implementation assumes that the
> nameValue is a boolean. That obviously is not the case so none of the
> options are checked.
>
> So here are my questions. What should I set to "value" attribute of that
tag
> and how parameters.nameValue is managed? That property is not exposed as a
> tag attribute??
>
> Thanks in advance for any help.
>
> Regards,
> Andrzej
>
> --
> View this message in context:
>
http://struts.1045723.n5.nabble.com/Java-templates-s-checkboxlist-tag-and-the-significance-of-parameters-nameValue-tp4788197p4788197.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion
below:
>
http://struts.1045723.n5.nabble.com/Java-templates-s-checkboxlist-tag-and-the-significance-of-parameters-nameValue-tp4788197p4788357.html
>
> To unsubscribe from Java templates <s:checkboxlist> tag and the
significance of parameters.nameValue, visit
http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4788197&code=dmF0ZXJtYW5uQGdtYWlsLmNvbXw0Nzg4MTk3fDE4MTI0NTM1Njk=


--
View this message in context: http://struts.1045723.n5.nabble.com/Java-templates-s-checkboxlist-tag-and-the-significance-of-parameters-nameValue-tp4788197p4789450.html
Sent from the Struts - User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message