List Info

Thread: Data Grid with null rows




Data Grid with null rows
user name
2007-07-11 10:46:30
I am using a netui-data:dataGrid tag to iterate over an
ArrayList object
which has some null elements in it.  This results in some of
the rows
printing "null" to the screen in its columns.  Is
there a way to tell
the dataGrid to ignore null elements when iterating?  I
could use the
renderRows="false" on the "rows" tag,
and then put an if around a "row"
tag inside, but this makes the odd even row counter get
messed up.  Is
there some other way?  Maybe filters?

 

Ben


************************************************************
********************************
This message, including any attachments, contains
confidential information intended 
for a specific individual and purpose, and is protected by
law. If you are not the intended 
recipient, please contact the sender immediately by reply
e-mail and destroy all copies.
You are hereby notified that any disclosure, copying, or
distribution of this message, or
the taking of any action based on it, is strictly
prohibited.

TIAA-CREF
************************************************************
********************************
RE: Data Grid with null rows
user name
2007-07-11 13:29:42
Ben,

If you are using BEA WebLogic, the weblogic.xml deployment
descriptor
has a setting to print null as the empty string.  Look for
"print-nulls"
under the following URL:

http://e-docs.bea.com/wls/docs100/webapp/web
logic_xml.html#wp1038491 

If not using WebLogic, you will likely need add logic to
check for null.

HTH,
Scott

-----Original Message-----
From: Burgess, Benjamin [mailto:BBurgesstiaa-cref.org] 
Sent: Wednesday, July 11, 2007 11:47 AM
To: userbeehive.apache.org
Subject: Data Grid with null rows

I am using a netui-data:dataGrid tag to iterate over an
ArrayList object
which has some null elements in it.  This results in some of
the rows
printing "null" to the screen in its columns.  Is
there a way to tell
the dataGrid to ignore null elements when iterating?  I
could use the
renderRows="false" on the "rows" tag,
and then put an if around a "row"
tag inside, but this makes the odd even row counter get
messed up.  Is
there some other way?  Maybe filters?

 

Ben


************************************************************
************
********************
This message, including any attachments, contains
confidential
information intended for a specific individual and purpose,
and is
protected by law. If you are not the intended recipient,
please contact
the sender immediately by reply e-mail and destroy all
copies.
You are hereby notified that any disclosure, copying, or
distribution of
this message, or the taking of any action based on it, is
strictly
prohibited.

TIAA-CREF
************************************************************
************
********************

Notice:  This email message, together with any attachments,
may contain information  of  BEA Systems,  Inc.,  its
subsidiaries  and  affiliated entities,  that may be
confidential,  proprietary,  copyrighted  and/or legally
privileged, and is intended solely for the use of the
individual or entity named in this message. If you are not
the intended recipient, and have received this message in
error, please immediately return this by email and then
delete it.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )