Issue with pretty:link within forEach / dataList loop

Splash Forums PrettyFaces Users Issue with pretty:link within forEach / dataList loop

This topic contains 1 reply, has 2 voices, and was last updated by  domdorn 7 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17747

    Anonymous

    When using the pretty:link within either a JSTL Core forEach loop or a Tomahawk dataList there is an issue in accessing the content in the declared ‘var’ variable.

    For example:

    <c:forEach items=”#{ObjectBean.objectList}” var=”object”>

    <div class=”object-link”>

    <pretty:link mappingId=”object-list” title=”#{object.title}”>

    <core:param value=”#{object.URL}” />

    <html:graphicImage styleClass=”object-image” url=”#{object.accessURL}” alt=”#{object.alt}” />

    </pretty:link>

    </div>

    </c:forEach>

    The title within the pretty:link (object.title) does not resolve and the actual text ‘#{object.title}’ is rendered.

    All other tags are fine it is just that particular one that does not work.

    Is there something I am missing or not doing to make this work?

    Thanks

    Paul.

    #19971

    domdorn
    Participant

    try using ui:repeat instead of c:forEach

    There were some problems with c:forEach with JSF2/facelets, maybe they are making problems here too.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.