<Node id="login/login_other_addressbooks.xhtml" x="650" y="450" zoom="true"/>
<Node id="user/lost_passwd.xhtml" x="900" y="300" zoom="true"/>
<Node id="*" x="650" y="150" zoom="true"/>
- <Node id="terms.xhtml" x="150" y="600" zoom="true"/>
<Node id="login/login_own_addressbooks.xhtml" x="400" y="150" zoom="true"/>
+ <Node id="terms.xhtml" x="150" y="600" zoom="true"/>
<Node id="user/register_done.xhtml" x="1150" y="300" zoom="true"/>
<Node id="bye.xhtml" x="650" y="300" zoom="true"/>
<Node id="user/login_error.xhtml" x="1400" y="150" zoom="true"/>
*/
private String addressbookName;
+ /**
+ * Address book id number (from URL for example)
+ */
+ private Long addressbookId;
+
/**
* Login controller
*/
return this.allEntries(addressbook).size();
}
+ @Override
+ public Long getAddressbookId () {
+ return this.addressbookId;
+ }
+
+ @Override
+ public void setAddressbookId (final Long addressbookId) {
+ this.addressbookId = addressbookId;
+ }
+
@Override
public String getAddressbookName () {
return this.addressbookName;
* @return Size of the entries in address book
*/
public int allEntriesSize (final Addressbook addressbook);
+
+ /**
+ * Getter for address book id number
+ * <p>
+ * @return Address book id number
+ */
+ public Long getAddressbookId ();
+
+ /**
+ * Setter for address book id number
+ * <p>
+ * @param addressbookId Address book id number
+ */
+ public void setAddressbookId (final Long addressbookId);
}
PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Adressbucheintr\u00e4ge zeigen
CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Alle Adressbuchentr\u00e4ge anzeigen:
ADDRESSBOOK_TOTAL_ENTRIES_TITLE=Eintr\u00e4ge im Adressbuch
+PARAMETER_ADDRESSBOOK_ID_MISSING=Bitte diese Seite mit Id-Nummer aufrufen.
+PARAMERER_ADDRESSBOOK_ID_INVALID=Id-Nummer f\u00fcr Adressbuch ung\u00fcltig. Bitte links weiter navigieren.
+ENTERED_HOUSE_NUMBER_INVALID=Die eingegebene Hausnummer ist ung\u00fcltig.
+ENTERED_ZIP_CODE_INVALID=Die eingegebene Postleitzahl ist ung\u00fcltig.
+PARAMETER_ADDRESSBOOK_ID_NOT_FOUND=Der angeklickte Link ist nicht mehr g\u00fcltig: Adressbuch mit der Id-Nummer nicht gefunden.
MENU_USER_TITLE=User
ENTER_USER_NAME=User name:
BUTTON_USER_LOGIN=Login
-BUTTON_CONTINUE_STEP_2=Weiter zu Schritt 2
+BUTTON_CONTINUE_STEP_2=Continue to step 2
GUEST_REGISTRATION_ENTER_USER_NAME=Enter user name:
GUEST_REGISTRATION_USER_NAME_NOTICE=The user name must only exist once.
LINK_GUEST_RESENT_CONFIRMATION_LINK=Resend again the confirmation link?
PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show address book entries
CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show all address book entries:
ADDRESSBOOK_TOTAL_ENTRIES_TITLE=Entries in address book
+PARAMETER_ADDRESSBOOK_ID_MISSING=Please call this web page with id number.
+PARAMERER_ADDRESSBOOK_ID_INVALID=Id number for address book invalid. Please continue navigating on left menu.
+ENTERED_HOUSE_NUMBER_INVALID=The entered house number is invalid.
+ENTERED_ZIP_CODE_INVALID=The entered ZIP code is invalid.
+PARAMETER_ADDRESSBOOK_ID_NOT_FOUND=The clicked link is no longer valid: Address book with entered id number does not exist (anymore).
<validator-id>PhoneNumberValidator</validator-id>
<validator-class>org.mxchange.jphone.validators.PhoneNumberValidator</validator-class>
</validator>
+ <validator>
+ <validator-id>AddressbookIdValidator</validator-id>
+ <validator-class>org.mxchange.addressbook.validator.addressbook.AddressbookIdValidator</validator-class>
+ </validator>
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>login_show_addressbook</from-outcome>
<to-view-id>/login/login_show_addressbook.xhtml</to-view-id>
</navigation-case>
- <navigation-case>
- <from-outcome>login_show_addressbook_entries</from-outcome>
- <to-view-id>/login/login_show_addressbook_entries.xhtml</to-view-id>
- </navigation-case>
+ <navigation-case>
+ <from-outcome>login_show_addressbook_entries</from-outcome>
+ <to-view-id>/login/login_show_addressbook_entries.xhtml</to-view-id>
+ </navigation-case>
</navigation-rule>
<application>
<locale-config>
</div>
<div class="table_right">
- <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true">
- <f:validateLongRange minimum="1" maximum="500" />
+ <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
+ <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
</h:inputText>
</div>
</div>
<div class="table_right">
- <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" />
+ <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
+ <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
+ </h:inputText>
</div>
<div class="clear"></div>
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
+ <f:metadata>
+ <f:viewParam id="addressbookId" name="addressbook_id" value="#{addressbookController.addressbookId}" required="true" requiredMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_MISSING}" converterMessage="#{msg.PARAMERER_ADDRESSBOOK_ID_INVALID}" validatorMessage="#{PARAMETER_ADDRESSBOOK_ID_NOT_FOUND}">
+ <f:convertNumber for="addressbookId" type="long" minIntegerDigits="1" maxIntegerDigits="20" />
+ <f:validator for="addressbookId" validatorId="AddressbookIdValidator" />
+ </f:viewParam>
+ </f:metadata>
+
<ui:composition template="/WEB-INF/templates/login/login_base.tpl">
<ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK}</ui:define>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <h:panelGrid headerClass="table_header" footerClass="table_footer" class="table" columns="3">
+ </h:panelGrid>
</ui:define>
</ui:composition>
</html>