3

I have a template in JSF, this template have a button whose action must be different for each page that will use this template. I wonder if there is any way to set only a part of that action. Eg In the template, I have the following attribute on the button:

disabled = "#{managedBeanTemplate.EditMode}"

However, for each page that will use this template, it should replace ONLY the part where it says managedBeanTemplate, thus:

disabled = "#{managedBeanProduct.EditMode}"
disabled = "#{managedBeanSales.EditMode}"

Is there any way to do this?

I know there is the ui:param to replace parts of the xhtml, but i can't nest in the template using something like this:

disabled = "#{#{managedBeanName}.EditMode}"

in the template, and then

<ui:param name="managedBeanName" value="managedBeanProduct"/>

in the page that uses the template.

4

2 に答える 2