0

If I want to reuse code like

<p:inputText id="[id]"/>
<p:commandButton update="[id]"/>

with 'ui:include, e.g.

<ui:include src="[same source]"/>
<ui:include src="[same source]"/>

I need a unique id on the p:inputText which I could specify manually as f:param to ui:include. Is there a way to automate this - I imagine access to a unique value of an include context or something similar?

I read about declaring ids in ui:repeat and other similar structures/based on an iteration index, but in those cases it's clear in which context the reusage takes place.

Community
  • 1
  • 1
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177

0 Answers0