Thanks Gunna and Mind Bridge for the help!  Definitely clarified my
usage of the table component.  I have one more question about this...

If currentStatus (see my actual code at the bottom) sometimes returns
a null, the application throws a NullPointerException, which is
logical when attempting to access currentStatus.id when currentStatus
is null.  Is there any way to make this work?  As it is, very few of
my entites have status levels assigned so they are null. The important
parts of the code (as per MindBridge's suggestion):
   columns="name, !description, dateCreated, currentStatus:currentStatus.id"
Will NOT work if currentStatus is occasionally null.


The code WAS working using a custom ColumnEvaluator and using
=currentStatusColumn in the column definition but in that case there
is no way to specific a @Block replacement because as far as I can
tell =currentStatusColumn doesn't have an id.  For example:

<table class="mytable" jwcid="[EMAIL PROTECTED]:Table"
   source="ognl:allNotes"
   columns="name, !description, dateCreated, =currentStatusColumn" >
  <span jwcid="[EMAIL PROTECTED]">
   <span jwcid="@Insert"
value="ognl:components.table.tableRow.currentStatus.status.id" />
</span>

This DOESN'T work.  The @Block never gets referenced.  This would be
my preferred way to handle this situation, but I can't figure out how
to link the @Block up to the column.

Any further thoughts?

Thanks again,
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to