tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Bliznak <bliz...@rogers.com>
Subject Problem importing attribute-list
Date Wed, 05 Aug 2009 23:39:27 GMT
translating this 4-5 years old code which was using Tiles1.something into 2.1 and run into
following problem.

here is basic (abbreviated) tiles structure:

<definition name="doc.mainLayout" template="/layout/classicLayout.jsp">
        <put-attribute name="heading" value="/include/Heading.jsp"/>

here is instance tile extending mainLayout

 <!-- ***********************************************
    *       MRInfo page
    ******************************************** -->
    <definition name="mnr.card" extends="doc.mainLayout">
        <put name="body" value="mnr.card.form"/>
        <put name="lowerbutton" value="/include/Lower-Mnr.jsp"/>
        <putList name="headingList">
            <add value="message.ministry.title"/>
            <add value="message.MNRInfo.title"/>

    <definition name="mnr.card.form" extends="doc.formLayout">
        <put name="formAction" value="/MNRInfoAction"/>
        <put name="formBody" value="/mnr/address/MNRInfo.jsp"/>
        <put name="formClearEnabled" value="false"/>
        <put name="formHelpEnabled" value="false"/>
        <put name="TopNavigationButtonEnabled" value="false"/>


Now inside Heading.jsp page I am trying to import "headingList" .....and that is causing error
- headingList not found.
Original code was not using import but <tiles:useAttribute name=headingList...................
tried that but that is causing null pointer exp.
Obviously I cannot even to the point where I would start iterating over that list.

This seems to be very simple scenario and it works in old version..but I have tried just'bout
anything here and no luck

Any help would be appreciated

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message