Sheila's Blog

Software Development

Sheila's Blog header image 2

Passing a parameter to a page fragment in Seam

March 11th, 2009 by Sheila

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:   No Comments

Leave a Comment

0 responses so far ↓

There are no comments yet...Kick things off by filling out the form below.