- added template for showing "add_contact_cellphone" form or show contact's cellphone data
- added form template for above thing
- fixed some XML name spaces (to .org)
- fixed error message output in some templates
<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<!-- Put your stuff here //-->
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+
+ <ui:fragment rendered="#{empty cellphoneNumber and not empty user}">
+ <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_cellphone.tpl">
+ <ui:param name="contact" value="#{user.userContact}" />
+ </ui:include>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{not empty cellphoneNumber}">
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl">
+ <ui:param name="cellphoneNumber" value="#{cellphoneNumber}" />
+ <ui:param name="user" value="#{user}" />
+ </ui:include>
+ </ui:fragment>
+</ui:composition>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:outputText styleClass="errors" value="#{ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
<h:panelGrid id="cellphone_data" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_CELLPHONE_DATA}" headerClass="table_header_column" styleClass="table_big" columns="2" rendered="#{not empty cellphoneNumber}">
<f:facet name="header">
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:outputText styleClass="errors" value="#{ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
<ui:fragment id="cellphoneLinks" rendered="#{not empty cellphoneNumber}">
<ul class="mini_nav">
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+
+ <h:form id="add_contact_cellphone">
+ </h:form>
+</ui:composition>
<ui:param name="user" value="#{user}" />
</ui:include>
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl">
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">
<ui:param name="cellphoneNumber" value="#{user.userContact.contactCellphoneNumber}" />
<ui:param name="user" value="#{user}" />
</ui:include>