Problem solved.  It was a bit murky, as it happened.  The key is the
addition of the uid attribute in the display:table tag.  In JSP 2.0, or
maybe it's in WebLogic 9.0, or maybe it's something to do with the change
of seasons, I dunno, id="xxx" no longer works to put the object xxx in the
page scope of the pageContext (which is the first place that ${xxx} looks
for the EL object).  I'm not sure if it puts it ANYWHERE in that case
(although the id attribute still works fine in JSP 1.1, WebLogic 6.1; I'm
going to cross-check tonight with JSP 2.0/Servlet 2.4/Tomcat 5.5 at home
tonight).

As soon as I switched over to using uid="lead", though, my ELs started
evaluating properly.  So this sort of notation works:

<display:table name="list" uid="item">
   <display:column title="ID">
      ${item.id}
   </display:column>
</display:table>

As another note on this, the way I ended up debugging the issue may be
helpful to some folks.  I created a dummy list with some objects in it and
displayed them.  In one of the columns, I added some code to display
request attributes, page context attributes, etc.  So it looked something
like this:

<display:table name="users" uid="user">
   <display:column title="Attributes">
      <%
         Enumeration names =
pageContext.getAttributeNamesInScope(PageContext.PAGE_SCOPE);
         out.write("PAGE_SCOPE<br/>\n");
         while (names.hasMoreElements())
         {
            out.write(names.nextElement() + "<br/>\n");
         }
      %>
   </display:column>
</display:table>

Rick Herrick said:
> I'm using JSP 2.0 with the built-in EL eval.  So I've got
> displaytag-12.tld set up and everything works fine, except that I can't
> address the implicit row object through EL.  EL is definitely functioning
> in this environment, so it's not a bigger issue.  It's specifically
> related to accessing the implicit row object in display tables.
>
> So I have something like this:
>
> <display:table name="model.leads" id="lead">
>    <display:column>
>       ${lead_rowNum}:
>       <c:choose>
>          <c:when test="${lead == null}">
>             LEAD IS NULL
>          </c:when>
>          <c:otherwise>
>             LEAD IS NOT NULL
>          </c:otherwise>
>       </c:choose>
>       ${lead.leadNumber}
>    </display:column>
>    <display:column property="leadName"/>
> </display:table>
>
> I know that this is finding my list of items because I get a display for
> the leadName column.  But for the lead_rowNum and any properties on the
> lead object, I get null.  So the resulting table looks like this:
>
> : LEAD IS NULL     Customer, Name
>
> I also know that EL is working in my pages, since I have a number of other
> bits of data displayed throughout the page using EL on maps and various
> beans.  Why can I not address the implicit objects directly through EL?
>
> Any help would be greatly appreciated!
>
>
> --
> Rick Herrick
> [EMAIL PROTECTED]
>
> I haven't got time for inner peace.
>
> "No reasonable definition of reality could be expected to permit
> this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to