#@TODO Please fix German umlauts!
ADMIN_LINK_EDIT_DELETE_COUNTRY_TITLE=Aendern oder loeschen der Laenderdaten
COUNTRY_GERMANY=Deutschland
+ERROR_TARGET_CONTROLLER_PARAMETER_NOT_SET=Fehler: Der Parameter 'targetController' ist nicht gesetzt.
ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME=Country:
ADMIN_LINK_EDIT_DELETE_COUNTRY_TITLE=Edit or delete country
COUNTRY_GERMANY=Germany
+ERROR_TARGET_CONTROLLER_PARAMETER_NOT_SET=Error: The parameter 'targetController' is not set.
</div>
<div class="table_right">
- <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl" />
+ <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
+ <ui:param name="targetController" value="#{adminUserController}" />
+ </ui:include>
</div>
<div class="clear"></div>
</div>
<div class="table_right">
- <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl" />
+ <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
+ <ui:param name="targetController" value="#{userController}" />
+ </ui:include>
</div>
<div class="clear"></div>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:selectOneMenu class="select" id="gender" value="#{customerController.gender}">
- <f:selectItems value="#{genderController.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
- </h:selectOneMenu>
+ <ui:fragment rendered="#{not empty targetController}">
+ <h:selectOneMenu class="select" id="gender" value="#{targetController.gender}">
+ <f:selectItems value="#{genderController.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
+ </h:selectOneMenu>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty targetController}">
+ <h:outputText class="errors" value="#{msg.ERROR_TARGET_CONTROLLER_PARAMETER_NOT_SET}" />
+ </ui:fragment>
</ui:composition>