Tiles and Unless/If

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Tiles and Unless/If

dharrigan
Hi,

It appears that this doesn't work:

<div th:if="${someCondition}" tiles:substituteBy="someInclude"></div>

Is it mixing tiles and th together a supported function? :-)

-=david=-

Reply | Threaded
Open this post in threaded view
|

Re: Tiles and Unless/If

Zemi
Administrator
Sometime you could bypass attribute precedence nesting elements, like

    <div th:if="${someCondition}">
        <div tiles:substituteBy="someInclude"></div>
    </div>

(I'm not sure if this is your case, as I haven't ever used tiles).

If you want to get rid of the extra div, you could also use
      th:remove="tag"
Reply | Threaded
Open this post in threaded view
|

Re: Tiles and Unless/If

dharrigan
Hi,

Yes, that's something like I've ended up with. :-)

-=david=-