- the contact phone controller becomes a generic phone controller (see jcontacts-business-core)
- marked contact-related stuff in it as deprecated
- renamed it's JSF name to adminPhoneController
- all phone instances are being set by beanHelper's copyUserToController() method
- private method setPhoneInstances() introduced
- rewrote all parameters that cannot be auto-completed by IDE to beanHelper and phone controller
- added missing i18n string(s)
Signed-off-by: Roland Häder <roland@mxchange.org>
PAGE_TITLE_ADMIN_LOCK_USER=Benutzeraccount sperren
CONTENT_TITLE_ADMIN_LOCK_USER=Benutzeraccount sperren:
ERROR_BEAN_HELPER_USER_NOT_SET=Fehler: Instanz 'user' im Bean-Helper nicht gesetzt.
+ERROR_BEAN_HELPER_CONTACT_NOT_SET=Fehler: Instanz 'contact' im Bean-Helper nicht gesetzt.
+ERROR_ADMIN_BEAN_CELLPHONE_NUMBER_NOT_SET=Fehler: Instanz 'cellPhone' in administrativer Bean nicht gesetzt.
PAGE_TITLE_ADMIN_LOCK_USER=Lock user account
CONTENT_TITLE_ADMIN_LOCK_USER=Lock user account:
ERROR_BEAN_HELPER_USER_NOT_SET=Error: Instance 'user' not set in bean helper.
+ERROR_BEAN_HELPER_CONTACT_NOT_SET=Error: Instance 'contact' not set in bean helper.
+ERROR_ADMIN_BEAN_CELLPHONE_NUMBER_NOT_SET=Error: Instance 'cellPhone' in administrative bean not set.
import javax.inject.Named;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcustomercore.model.customer.Customer;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jusercore.model.user.User;
import org.mxchange.pizzaapplication.beans.contact.PizzaAdminContactWebRequestController;
import org.mxchange.pizzaapplication.beans.customer.PizzaAdminCustomerWebRequestController;
import org.mxchange.pizzaapplication.beans.customer.PizzaCustomerWebSessionController;
+import org.mxchange.pizzaapplication.beans.phone.PizzaAdminContactPhoneWebRequestController;
import org.mxchange.pizzaapplication.beans.user.PizzaUserWebSessionController;
/**
private static final long serialVersionUID = 17_258_793_567_145_701L;
/**
- * Regular contact controller
+ * Administrative contact controller
*/
@Inject
private PizzaAdminContactWebRequestController adminContactController;
@Inject
private PizzaAdminCustomerWebRequestController adminCustomerController;
+ /**
+ * Administrative phone controller
+ */
+ @Inject
+ private PizzaAdminContactPhoneWebRequestController adminPhoneController;
+
/**
* Contact instance
*/
throw new IllegalStateException(MessageFormat.format("this.contact.contactId={0} is not valid.", this.getContact().getContactId())); //NOI18N
}
+ // Set all phone instances
+ this.setPhoneInstances(this.getContact());
+
// Set all fields: user
this.adminContactController.copyContactToController(this.getContact());
throw new IllegalStateException(MessageFormat.format("this.user.userId={0} is not valid.", this.getUser().getUserId())); //NOI18N
}
+ // Get contact
+ Contact userContact = this.getUser().getUserContact();
+
+ // Set contact here, too. This avoids parameters that cannot auto-complete in IDEs.
+ this.setContact(userContact);
+
+ // Set all phone instances
+ this.setPhoneInstances(userContact);
+
// Set all fields: user
this.userController.setUserName(this.getUser().getUserName());
this.user = user;
}
+ /**
+ * Set's all given contact's phone instances: land-line, cellphone and fax
+ * <p>
+ * @param contact Contact to set phone instances for
+ */
+ private void setPhoneInstances (final Contact contact) {
+ // The contact must be valid
+ if (null == contact) {
+ // Throw NPE
+ throw new NullPointerException("contact is null"); //NOI18N
+ } else if (contact.getContactId() == null) {
+ // Throw again ...
+ throw new NullPointerException("contact.contactId is null"); //NOI18N
+ } else if (contact.getContactId() < 1) {
+ // Not valid
+ throw new IllegalArgumentException(MessageFormat.format("contact.contactId={0} is not valid", contact.getContactId())); //NOI18N
+ }
+
+ // Is cellphone set?
+ if (contact.getContactCellphoneNumber() instanceof DialableCellphoneNumber) {
+ // Yes, then set it in admin controller
+ this.adminPhoneController.setCellPhone(contact.getContactCellphoneNumber());
+ }
+
+ // Is land-line set?
+ if (contact.getContactLandLineNumber() instanceof DialableLandLineNumber) {
+ // Yes, then set it in admin controller
+ this.adminPhoneController.setLandLine(contact.getContactLandLineNumber());
+ }
+
+ // Is fax set?
+ if (contact.getContactFaxNumber() instanceof DialableFaxNumber) {
+ // Yes, then set it in admin controller
+ this.adminPhoneController.setFax(contact.getContactFaxNumber());
+ }
+ }
+
}
import org.mxchange.pizzaapplication.beans.BasePizzaController;
/**
- * Administrative bean (controller) for contact's phone numbers
+ * Administrative bean (controller) for phone numbers
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-@Named ("adminContactPhoneController")
+@Named ("adminPhoneController")
@RequestScoped
public class PizzaAdminContactPhoneWebRequestBean extends BasePizzaController implements PizzaAdminContactPhoneWebRequestController {
/**
* Instance of linked contact account
+ * <p>
+ * @deprecated This is a generic phone controller, not just for contact data
*/
+ @Deprecated
private Contact contact;
/**
* "Cache" for contact lists, mostly only one is assigned. So this cache
* shouldn't grow beyond control.
+ * <p>
+ * @deprecated This is a generic phone controller, not just for contact data
*/
+ @Deprecated
private final Map<Long, List<Contact>> contacts;
/**
}
@Override
+ @Deprecated
public List<Contact> allCellphoneContacts () {
// Get id
Long phoneId = this.getCellPhone().getPhoneId();
}
@Override
+ @Deprecated
public Contact getContact () {
return this.contact;
}
@Override
+ @Deprecated
public void setContact (final Contact contact) {
this.contact = contact;
}
* <p>
* @return List of all linked contacts
*/
+ @Deprecated
List<Contact> allCellphoneContacts ();
/**
* <p>
* @return Linked contact account
*/
+ @Deprecated
Contact getContact ();
/**
* <p>
* @param contact Linked contact account
*/
+ @Deprecated
void setContact (final Contact contact);
}
<to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_show_contact_cellphone</from-outcome>
+ <from-outcome>admin_show_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_edit_contact_cellphone</from-outcome>
+ <from-outcome>admin_edit_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<to-view-id>/admin/cellphone/admin_contact_cellphone_unlink.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_delete_contact_cellphone</from-outcome>
+ <from-outcome>admin_delete_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_edit_contact_cellphone</from-outcome>
+ <from-outcome>admin_edit_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_delete_contact_cellphone</from-outcome>
+ <from-outcome>admin_delete_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<to-view-id>/admin/cellphone/admin_contact_cellphone_unlink.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_show_contact_cellphone</from-outcome>
+ <from-outcome>admin_show_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/admin/cellphone/admin_contact_cellphone_list.xhtml</from-view-id>
<navigation-case>
- <from-outcome>admin_show_contact_cellphone</from-outcome>
+ <from-outcome>admin_show_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_edit_contact_cellphone</from-outcome>
+ <from-outcome>admin_edit_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_delete_contact_cellphone</from-outcome>
+ <from-outcome>admin_delete_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_edit_contact_cellphone</from-outcome>
+ <from-outcome>admin_edit_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>admin_delete_contact_cellphone</from-outcome>
+ <from-outcome>admin_delete_cellphone</from-outcome>
<to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
</navigation-case>
<navigation-case>
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <ui:fragment rendered="#{empty cellphoneNumber and empty contact}">
- <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CELLPHONE_NUMBER_CONTACT_NOT_SET}" />
- </ui:fragment>
+ <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
- <ui:fragment rendered="#{empty cellphoneNumber and not empty contact}">
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_form_contact_cellphone.tpl">
- <ui:param name="contact" value="#{contact}" />
- </ui:include>
+ <ui:fragment rendered="#{empty beanHelper.contact.contactCellphoneNumber and not empty beanHelper.contact}">
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_form_contact_cellphone.tpl" />
</ui:fragment>
- <ui:fragment rendered="#{not empty cellphoneNumber and not empty contact}">
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl">
- <ui:param name="cellphoneNumber" value="#{cellphoneNumber}" />
- <ui:param name="contact" value="#{contact}" />
- </ui:include>
+ <ui:fragment rendered="#{not empty beanHelper.contact.contactCellphoneNumber and not empty beanHelper.contact}">
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl" />
</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="#{msg.ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_ADMIN_BEAN_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty adminPhoneController.cellPhone}" />
- <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}">
+ <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 adminPhoneController.cellPhone}">
<f:facet name="header">
<h:outputText value="#{msg.ADMIN_HEADER_SHOW_CELLPHONE_DATA}" />
</f:facet>
<h:column>
<h:outputLabel for="cellphoneId" styleClass="data_label" value="#{msg.ADMIN_SHOW_CELLPHONE_ID}" />
- <h:outputText id="cellphoneId" styleClass="data_field" value="#{cellphoneNumber.phoneId}" />
+ <h:outputText id="cellphoneId" styleClass="data_field" value="#{adminPhoneController.cellPhone.phoneId}" />
</h:column>
<h:column>
<h:outputLabel for="cellphoneProvider" styleClass="data_label" value="#{msg.ADMIN_SHOW_CELLPHONE_PROVIDER_NAME}" />
<h:link outcome="admin_show_mobile_provider">
- <f:param name="providerId" value="#{cellphoneNumber.cellphoneProvider.providerId}" />
- <h:outputText id="cellphoneProvider" styleClass="data_field" value="#{cellphoneNumber.cellphoneProvider.providerName}" />
+ <f:param name="providerId" value="#{adminPhoneController.cellPhone.cellphoneProvider.providerId}" />
+ <h:outputText id="cellphoneProvider" styleClass="data_field" value="#{adminPhoneController.cellPhone.cellphoneProvider.providerName}" />
</h:link>
</h:column>
<h:column>
<h:outputLabel for="cellphoneNumber" styleClass="data_label" value="#{msg.ADMIN_SHOW_CELLPHONE_NUMBER_COMPLETE}" />
- <h:outputText id="cellphoneNumber" styleClass="data_field" value="#{cellphoneNumber.cellphoneProvider.providerCountry.countryExternalDialPrefix}#{cellphoneNumber.cellphoneProvider.providerDialPrefix}-#{cellphoneNumber.phoneNumber}" />
+ <h:outputText id="cellphoneNumber" styleClass="data_field" value="#{adminPhoneController.cellPhone.cellphoneProvider.providerCountry.countryExternalDialPrefix}#{adminPhoneController.cellPhone.cellphoneProvider.providerDialPrefix}-#{adminPhoneController.cellPhone.phoneNumber}" />
</h:column>
<h:column>
<h:outputLabel styleClass="data_label" value="#{msg.ADMIN_SHOW_CELLPHONE_LINKS}" />
<div class="data_field">
- <ui:fragment rendered="#{not empty contact}">
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_links.tpl">
- <ui:param name="cellphoneNumber" value="#{cellphoneNumber}" />
- <ui:param name="contact" value="#{contact}" />
- <ui:param name="isShowPage" value="#{isShowPage}" />
- </ui:include>
- </ui:fragment>
-
- <ui:fragment rendered="#{empty contact}">
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_links.tpl">
- <ui:param name="cellphoneNumber" value="#{cellphoneNumber}" />
- <ui:param name="isShowPage" value="#{isShowPage}" />
- </ui:include>
- </ui:fragment>
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_links.tpl">
+ <ui:param name="isShowPage" value="#{isShowPage}" />
+ </ui:include>
</div>
</h:column>
</h:panelGrid>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty cellphoneNumber}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_ADMIN_BEAN_CELLPHONE_NUMBER_NOT_SET}" rendered="#{empty adminPhoneController.cellPhone}" />
- <ui:fragment rendered="#{not empty cellphoneNumber}">
+ <ui:fragment rendered="#{not empty adminPhoneController.cellPhone}">
<ul class="mini_nav">
<ui:fragment rendered="#{empty isShowPage or not isShowPage}">
<li class="mini_link">
- <h:link outcome="admin_show_contact_cellphone">
+ <h:link outcome="admin_show_cellphone">
<h:outputText value="#{msg.ADMIN_LINK_SHOW_SHORT}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{cellphoneNumber.phoneId}" />
+ <f:param name="phoneId" value="#{adminPhoneController.cellPhone.phoneId}" />
</h:link>
</li>
</ui:fragment>
<li class="mini_link">
- <h:link outcome="admin_edit_contact_cellphone">
+ <h:link outcome="admin_edit_cellphone">
<h:outputText value="#{msg.ADMIN_LINK_EDIT_SHORT}" title="#{msg.ADMIN_LINK_EDIT_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{cellphoneNumber.phoneId}" />
+ <f:param name="phoneId" value="#{adminPhoneController.cellPhone.phoneId}" />
</h:link>
</li>
- <ui:fragment rendered="#{not empty contact}">
+ <ui:fragment rendered="#{not empty beanHelper.contact}">
<li class="mini_link">
<h:link outcome="admin_unlink_contact_cellphone">
<h:outputText styleClass="unlink_link" value="#{msg.ADMIN_LINK_UNLINK_SHORT}" title="#{msg.ADMIN_LINK_UNLINK_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{cellphoneNumber.phoneId}" />
- <f:param name="contactId" value="#{contact.contactId}" />
+ <f:param name="phoneId" value="#{adminPhoneController.cellPhone.phoneId}" />
+ <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
</h:link>
</li>
</ui:fragment>
<li class="mini_link">
- <h:link outcome="admin_delete_contact_cellphone">
+ <h:link outcome="admin_delete_cellphone">
<h:outputText styleClass="delete_link" value="#{msg.ADMIN_LINK_DELETE_SHORT}" title="#{msg.ADMIN_LINK_DELETE_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{cellphoneNumber.phoneId}" />
+ <f:param name="phoneId" value="#{adminPhoneController.cellPhone.phoneId}" />
</h:link>
</li>
</ul>
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+ <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
+
<h:form id="form_add_contact_cellphone">
</h:form>
</ui:composition>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CONTACT_NOT_SET}" rendered="#{empty contact}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
- <ui:fragment rendered="#{not empty contact}">
+ <ui:fragment rendered="#{not empty beanHelper.contact}">
<div class="table">
<div class="table_header">
<h:outputText value="#{msg.ADMIN_LINKS_HEADER}" />
<ul>
<li>
<h:link outcome="admin_edit_contact" value="#{msg.ADMIN_LINK_EDIT_CONTACT}" title="#{msg.ADMIN_LINK_EDIT_CONTACT_TITLE}">
- <f:param name="contactId" value="#{contact.contactId}" />
+ <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
</h:link>
</li>
<li>
<h:link outcome="admin_delete_contact" title="#{msg.ADMIN_LINK_DELETE_CONTACT_TITLE}">
<h:outputText styleClass="delete_link" value="#{msg.ADMIN_LINK_DELETE_CONTACT}" />
- <f:param name="contactId" value="#{contact.contactId}" />
+ <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
</h:link>
</li>
</ul>
>
<f:metadata>
- <f:viewParam name="phoneId" value="#{adminContactPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
+ <f:viewParam name="phoneId" value="#{adminPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
>
<f:metadata>
- <f:viewParam name="phoneId" value="#{adminContactPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
+ <f:viewParam name="phoneId" value="#{adminPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
>
<f:metadata>
- <f:viewParam name="phoneId" value="#{adminContactPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
+ <f:viewParam name="phoneId" value="#{adminPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="content">
<ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl">
- <ui:param name="cellphoneNumber" value="#{adminContactPhoneController.cellPhone}" />
<ui:param name="isShowPage" value="#{true}" />
</ui:include>
- <h:dataTable id="contact_cellphone_link" var="contact" value="#{adminContactPhoneController.allCellphoneContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_CONTACT_CELLPHONE_LINKS}" headerClass="table_header_column" styleClass="table_medium">
+ <h:dataTable id="contact_cellphone_link" var="contact" value="#{adminPhoneController.allCellphoneContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_CONTACT_CELLPHONE_LINKS}" headerClass="table_header_column" styleClass="table_medium">
<f:facet name="header">
<h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_CONTACT_CELLPHONE_LINKS}">
- <f:param value="#{adminContactPhoneController.cellPhone.phoneId}" />
+ <f:param value="#{adminPhoneController.cellPhone.phoneId}" />
</h:outputFormat>
</f:facet>
<li class="mini_link">
<h:link outcome="admin_unlink_contact_cellphone">
<h:outputText styleClass="unlink_link" value="#{msg.ADMIN_LINK_UNLINK_SHORT}" title="#{msg.ADMIN_LINK_UNLINK_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{adminContactPhoneController.cellPhone.phoneId}" />
+ <f:param name="phoneId" value="#{adminPhoneController.cellPhone.phoneId}" />
<f:param name="contactId" value="#{contact.contactId}" />
</h:link>
</li>
>
<f:metadata>
- <f:viewParam name="phoneId" value="#{adminContactPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
- <f:viewParam name="contactId" value="#{adminContactPhoneController.contact}" converter="ContactConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}" />
+ <f:viewParam name="phoneId" value="#{adminPhoneController.cellPhone}" converter="CellphoneConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
+ <f:viewParam name="contactId" value="#{adminPhoneController.contact}" converter="ContactConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data.tpl" />
<div>
- <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_links.tpl">
- <ui:param name="contact" value="#{beanHelper.contact}" />
- </ui:include>
+ <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_links.tpl" />
</div>
<div>
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">
- <ui:param name="cellphoneNumber" value="#{beanHelper.contact.contactCellphoneNumber}" />
- <ui:param name="contact" value="#{beanHelper.contact}" />
- </ui:include>
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl" />
</div>
</ui:define>
</ui:composition>
</div>
<div>
- <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">
- <ui:param name="cellphoneNumber" value="#{beanHelper.user.userContact.contactCellphoneNumber}" />
- <ui:param name="contact" value="#{beanHelper.user.userContact}" />
- </ui:include>
+ <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl" />
</div>
</ui:define>
</ui:composition>