playframework - Play! How to retrieve field value in a template tag having entity and the field name passed separately as parameters? -
i wanted create tag like:
#{some_tag entity:user, field:'name'}
and expect produce output user name in using expression like:
${_entity._field}
i know doesn't work that's why ask here. there simple way use field name passed parameter template tag field value?
i not aware of easy answer, possible. can create fast tag, , use reflection field after. can more info on fast tags here - can explain how use fasttags
however, wouldnt easier send specific field through tag?
Comments
Post a Comment