cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

One column in table display not displaying

avillanueva
22-Sapphire II

One column in table display not displaying

From my previous post, I have a bean class being passed back to the
table that has an attribute 'vote'. The getters and setters are correct
for this attribute. My table calls it out correctly, I think.

<jca:describetable var="tableDescriptor" id="goodrich.ecapprovals.table"&lt;br"/>label="EC Approvals" configurable="false" >

<jca:describecolumn id="role" label="Role"/>

<jca:describecolumn id="fullname" label="Name"/>

<jca:describecolumn id="completedDate" label="Date"/>

<jca:describecolumn id="vote" label="Vote"/>

</jca:describetable>



From my logs, I can see that it is properly setting the vote value:

DEBUG : <my class="> - Processing signature:QUALITY ENGINEER:Reject

DEBUG : <my class="> - Match

DEBUG : <my class="> - User is avillanueva

DEBUG : <my class="> - Recording CCB Review signature

DEBUG : <my class="> - Approval:Antonio Villanueva|QUALITY ENGINEER|Reject

DEBUG : <my class="> - adding approval to list



From the code:

logger.debug("Approval:"+approval.getFullname()+"|"+approval.getRole()+"
|"+approval.getVote());

logger.debug("adding approval to list");

approvals.add(approval); //add approval to list



So, I get my table below but where did Vote go? It doesn't appear to be
different than that other attributes (some Strings and a Date).



I guess I can try changing the variable name. Maybe that will uncover a
typo some where but if there is something I am missing, please reply.

1 REPLY 1
avillanueva
22-Sapphire II
(To:avillanueva)

Plot thickens:

Just for testing, added another attribute to my bean, and set the vote
to it:

approval.setVote(link.getVote());

approval.setJunk(link.getVote());



So, now the table description is:

<jca:describetable var="tableDescriptor" id="goodrich.ecapprovals.table"&lt;br"/>label="EC Approvals" configurable="false" >

<jca:describecolumn id="role" label="Role"/>

<jca:describecolumn id="fullname" label="Name"/>

<jca:describecolumn id="vote" label="Vote"/>

<jca:describecolumn id="junk" label="Junk"/>

<jca:describecolumn id="completedDate" label="Date"/>

</jca:describetable>



And I get this:





So is 'vote' a special word? Need to look into this more.


Announcements


Top Tags