0 Replies Latest reply: Jul 12, 2012 3:18 PM by 732674 RSS

    Page doesn't submit properly with h:head

    732674
      I have a commandlink with target="_blank", which when I have just <head></head> at the top of the xhtml page it works fine it will open a new page or new tab, but when I have <h:head></h:head> when I click the link nothing happens on the page. But if I use just <head> I have issues with my templates. Thanks for the help.
      <?xml version="1.0" encoding="UTF-8"?>
      <!--
      To change this template, choose Tools | Templates
      and open the template in the editor.
      -->
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:ice="http://www.icesoft.com/icefaces/component">
          <h:head id="ClientAppraisalsHead">
              <h:outputStylesheet library="css" name="ClientAppraisalsStyle.css" />
              <h:outputStylesheet library="css" name="Templates.css" />
              <title>Client Appraisals</title>
          </h:head>
          <h:body>
              <ui:include src="/Templates/HeaderTemplate.xhtml">
                  <ui:param name="headerTitle" value="CLIENT REPORTS" />
              </ui:include>
              <h:form id="MainAppraisalForm">
                  <div class="centerBlock">
                      <div class="columnContainer" >
                          <div class="columnLeft">
                              Exclude From Monthly Summaries<br />
                              <h:selectOneListbox id="MonthlyExcludeListBox" value="1" size="10">
                                  <f:selectItems value="#{clientReportsController.monthlyExcludeList}" />
                              </h:selectOneListbox>
                          </div>
                          <div class="columnLeft">
                              Exclude From Invoice Appraisals<br />
                              <h:selectOneListbox id="InvoiceExcludeListBox" value="1" size="10">
                                  <f:selectItems value="#{clientReportsController.invoiceExcludeList}" />
                              </h:selectOneListbox>
                          </div>
                          <div class="columnRight">
                              Client Codes<br />
                              <h:selectOneMenu id="ClientCodeDropDown" style="width:95px"
                                               value="#{clientReportsController.clientCodeSelected}"
                                               immediate="true"
                                               onchange="this.form.submit();"
                                               valueChangeListener="#{clientReportsController.requery}">
                                  <f:selectItems value="#{clientReportsController.clientCodeList}" />
                              </h:selectOneMenu><br />
                              <div  style="padding-top: 7px;padding-bottom: 7px">
                                  <h:selectBooleanCheckbox id="AllClientsCheck" value="#{clientReportsController.allClientsValue}"></h:selectBooleanCheckbox>
                                  All Clients
                              </div>
                              Report Dates<br />
                              <h:selectOneMenu id="ReportDateDropDown" style="width:95px" value="#{clientReportsController.reportDateSelected}">
                                  <f:selectItems value="#{clientReportsController.reportDateList}" />
                              </h:selectOneMenu>
                              <br />
                              <div style="padding-top: 7px">
                                  <h:selectBooleanCheckbox id="MonthlySummaryCheck" value="#{clientReportsController.monthlySummaryCheckValue}"></h:selectBooleanCheckbox>
                                  Monthly Summary<br />
                                  <h:selectBooleanCheckbox id="InvoicesCheck" value="#{clientReportsController.invoiceCheckValue}"></h:selectBooleanCheckbox>
                                  Invoices<br />
                                  <h:selectBooleanCheckbox id="UnsupervisedAssetsCheck" value="#{clientReportsController.unsupervisedAssetsCheckValue}"></h:selectBooleanCheckbox>
                                  Unsupervised Assets<br />
                              </div>
                              <h:commandButton styleClass="commandButtons" action="#{clientReportsController.viewAllMailerTopSheets}" value="View Top Sheet" />
                              <br />
                              <h:commandLink value="test" target="_blank" />
                              <h:commandButton styleClass="commandButtons" action="#{clientReportsController.viewAppraisal}" value="View Report" />
                          </div>
                      </div>
                  </div>
              </h:form>
          </h:body>
      </html>