Sheila's Blog

Software Development

Sheila's Blog header image 5

Entries from March 11th, 2009

Passing a parameter to a page fragment in Seam

March 11th, 2009 No Comments

In the main .xhtml page within the ui:include tag you pass in a ui:param value:
<ui:include src=”#{fragmentPage}”>
<ui:param name=”location” value=”1″ />
</ui:include>
In the frament page you can reference the location value in the normal way:
<ice:outputText value=”#{manager.getLocation( ‘#{location}’)}” />
And can use that value to pass to a backing bean method called from the fragment.

Tags: