Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1638

f:param values are reused in links and accumulate parameters

    Details

      Description

      Given the following Facelet view markup:

      <ul>
      	<ui:repeat value="#{modelManagedBean.items}" var="item">
      		<li>
      		<h:link value="#{item.name}">
      			<f:param name="itemId" value="#{item.itemId}" />
      		</h:link>
      		</li>
      	</ui:repeat>
      </ul>
      

      If the bug still exists, then each anchor link will be the same for each item returned by ModelManagedBean.getItems(). Otherwise, if the bug is fixed, then there will be a different value for the "itemId" parameter in each URL.

      Also, the following use-case causes a similar problem, such that parameters from links URLs generated during the ui:repeat also appear in subsequent links during the iteration:

      <ui:repeat value="#{facesTestBean.items}" var="item">
      	<br />
      	<h:link outcome="/views/view" value="#{item.title}">
      		<f:param name="#{item.name}" value="#{item.itemId}" />
      	</h:link>
      </ui:repeat>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  liferay-faces-2.1.3-ga4
                  liferay-faces-3.0.3-legacy-ga4
                  liferay-faces-3.0.3-ga4
                  liferay-faces-3.1.3-ga4