You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Deepak <de...@ltp.soft.net> on 2004/08/18 13:28:00 UTC

Insert a SimpleMenuItem with a tiles tag

Hi All,
    Is it possible to insert a SimpleMenuItem with a tiles tag instead of using html tags ?

For ex.

If I have items defined as 

    <definition name="/content/menu.body"
                path="/layout/tabsLayout.jsp">
      <putList name="tabList">
        <item value="Image Upload"
              link="/content/manageContentUpload.do"
              tooltip="Click to upload Images"
              icon="/images/logo.gif"/>
        <item value="HTML Upload"
              link="/content/manageHtmlUpload.do"
              tooltip="Click to upload HTML"
              icon="/images/plus.gif"/>
      </putList>
    </definition>

Now to display these items I can use
  <c:forEach var="tab" items="${tabList}" varStatus="status">

<a href="<c:url value="${tab.link}"/>" ><html-el:img page="${tab.icon}" alt="${tab.tooltip}"/><c:out value="${tab.value}"/></a>

  </c:forEach>  

Is there a "tiles way" to insert this tab ?

thanks n regards

Deepak