Grails/Groovy taglib handling parsing dynamically inserted tags.
Posted
by Dan Guy
on Stack Overflow
See other posts from Stack Overflow
or by Dan Guy
Published on 2010-02-28T02:47:15Z
Indexed on
2010/05/09
7:08 UTC
Read the original article
Hit count: 441
Is there a way to have a custom taglib operate on data loaded in a .gsp file such that it picks up any tags embedded in the data stored in the database. For instance, let's say I'm doing:
<g:each in="${activities}">
<li>${it.payload}</li>
</g:each>
And inside the payload, which is coming from the database, is text like
"Person a did event <company:event id="15124124">Event Description</company:event>"
Can you have a taglib that handles company:event tags on the fly?
© Stack Overflow or respective owner