Announcement Announcement Module
No announcement yet.
<table:column> tag for property of referenced entity Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • <table:column> tag for property of referenced entity

    I've got a two classes (pupil, class) and their scaffolded views.

    pupil and class have a 1:1 relationship

    In the list.jspx of pupil I'd like to display a column for a property of class.

    I don't know the correct attributes to give to the table:column-tag.
    This following example gives the error:

    SpelEvaluationException: EL1027Epos 4): Indexing into type 'com.pupil' is not supported
    <table:table data="${pupil}" duplicate="true" id="l_com_pupil" path="/admin/pupil" z="user-managed">
        <table:column id="c_com_pupil_pupilName" property="pupilName" z="user-managed"/>
        <!-- I'd like to display the attribute teacher_name of the class 'class' here but it doesn't work -->
        <table:column id="c_com_pupil_class_teacherName" property="teacherName"  z="user-managed"/>