0 Replies Latest reply on Mar 29, 2012 6:12 PM by curioususer

    rich:calendar problem

    curioususer Newbie

      Hi,

       

      We use rich:calendar in some of our web pages, we recently upgraded our richfaces libraries to 3.3.2 from 3.3.1. Ever since we upgraded our richfaces library all the pages that have rich:calendar when navigated to from the menu automatically are re-directing to our session timeout page. These pages were working fine before we upgraded our rich libraries. I am not able to understand what is going on here? I need help figuring out this issue, I appreciate anyone with any suggestions.

       

      We are using Facelets, JSF 1.2, myFaces and richFaces 3.3.2.

       

      Here is the xhtml code:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:ui="http://java.sun.com/jsf/facelets"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:a4j="http://richfaces.org/a4j"

          xmlns:rich="http://richfaces.org/rich">

      <body>

           

          

      <ui:composition template="/WEB-INF/layout/layout.xhtml">

           <ui:define name="title">

             NAMS - Address Block Registry

           </ui:define>       

          

           <ui:define name="content">    

               <a4j:region selfRendered="true">                            

                   <h:form id="addressRegistryForm">

                       <a4j:outputPanel ajaxRendered="true">

                            <ui:include src="messages.xhtml"/>   

                            <h:messages errorClass="error"

                                      infoClass="info"

                                      globalOnly="true"

                                      layout="table"

                                      showSummary="true"

                                      showDetail="false"

                                      tooltip="true"

                                      style="width:100%" />

                        </a4j:outputPanel>   

                        <div>

                            <div style="font: 15pt/16pt Georgia, serif;color: #555753">                       

                              <h1>Address Block Registry

                                  <rich:spacer height="35px" />

                                  <a4j:status >

                                      <f:facet name="start">

                                          <h:graphicImage value="/images/loading.gif" />

                                      </f:facet>

                                  </a4j:status>

                              </h1>

                          </div>   

                          <rich:panel>

                                   <f:facet name="header">

                                       Select Address Block

                                   </f:facet>

                                   <rich:spacer width="1" height="5" />                                                                                              

                     

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">     

                             <a4j:keepAlive beanName="addressRegistryBean" />

                                 <h:outputLabel>

                                     <h:outputText  value="IP Version" />

                                    <h:outputText style="color: #DD0707" value=" *  "/>

                                 </h:outputLabel>                                    

                              <h:selectOneRadio id="versionList"

                                                    value="#{addressRegistryBean.version}"

                                                    layout="pageDirection" >

                                    <f:selectItems   value="#{addressRegistryBean.versionList}" />

                                    <a4j:support action="#{addressRegistryBean.loadVersionDetails}"

                                                   event="onclick" ajaxSingle="true"

                                                   reRender="addressRegistryList,startAddr,size,status,netName,

                                                             comments,orgName,orgId,

                                                          addr1,addr2,city,state,pcode,country,RTechHandle,

                                                          RTechName,emailAddress,phone,orgAbuseHandle,

                                                          orgAbuseName,orgAbusePhone,orgAbuseEmail,

                                                          orgTechHandle,orgTechName,orgTechPhone,

                                                          orgTechEmail,expiration,createDate,lastUpdated,

                                                          company,btnDelete,changeUserPanelGrid,changeDatePanelGrid" />

                              </h:selectOneRadio>                                           

                              <h:message for="versionList" />

                          </h:panelGrid>               

                          <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                              <h:outputLabel>

                                  <h:outputText value="Address Block" />

                              </h:outputLabel>                                

                                <h:selectOneMenu id="addressRegistryList"

                                                  value="#{addressRegistryBean.selectedAddrRegistry}"

                                               converter="#{addressBlockRegistryConverter}">                                                    

                                    <f:selectItem itemValue="#{addressRegistryBean.defaultAbRegistry}" 

                                                   itemLabel="New"/>

                                    <f:selectItems value="#{addressRegistryBean.addressRegistryList}" />  

                                  <a4j:support action="#{addressRegistryBean.select}"

                                                event="onchange" ajaxSingle="true"

                                                reRender="addressRegistryDetails,startAddr,size,status,netName,comments,orgName,orgId,

                                                          addr1,addr2,city,state,pcode,country,RTechHandle,

                                                          RTechName,emailAddress,phone,orgAbuseHandle,

                                                          orgAbuseName,orgAbusePhone,orgAbuseEmail,

                                                          orgTechHandle,orgTechName,orgTechPhone,

                                                          orgTechEmail,expiration,createDate,lastUpdated,

                                                          company,btnDelete,changeUserPanelGrid,changeDatePanelGrid" />                                                           

                              </h:selectOneMenu>                          

                               <h:message for="addressRegistryList" />

                              

                          </h:panelGrid>

                      </rich:panel>

                      <rich:panel>

                               <f:facet name="header">

                                   Address Block Details

                               </f:facet>                                                                                            

                               <rich:spacer width="1" height="5" />                                   

                                     

                          <h:panelGrid id="addressRegistryDetails" columns="3" styleClass="detail" columnClasses="label">

                                 

                              <h:outputLabel>

                                  <h:outputText  value="Start Address" />

                                  <h:outputText style="color: #DD0707" value=" *  "/>

                              </h:outputLabel>

                              <h:inputText  id="startAddr"

                                            size="40"                                      

                                            maxlength="39"                                     

                                            required="true"

                                              value="#{addressRegistryBean.selectedAddrRegistry.startAddr}"

                                               disabled="#{securityBean.privMap['addressRegistryFormStartAddr']}" />                   

                              <h:message id="startAddrError" for="startAddr"  styleClass="errorMessage" />

                                                                 

                              <h:outputLabel>

                                  <h:outputText  value="Mask" />

                                  <h:outputText style="color: #DD0707" value=" *  "/>

                              </h:outputLabel>

                              <h:selectOneMenu id="size"

                                               value="#{addressRegistryBean.selectedAddrRegistry.mask}"

                                               required="true"

                                               disabled="#{securityBean.privMap['addressRegistryFormSize']}" >

                                  <f:selectItem itemLabel="" itemValue="" />

                                  <f:selectItems value="#{addressRegistryBean.maskList}" />                

                              </h:selectOneMenu>   

                              <h:message id="maskError" for="size"  styleClass="errorMessage" />

                         

                              <h:panelGroup>                           

                                  <h:outputLabel>

                                      <h:outputText  value="Status" />

                                      <h:outputText style="color: #DD0707" value=" *  "/>

                                  </h:outputLabel>

                              </h:panelGroup>

                              <h:selectOneMenu id="status"

                                                value="#{addressRegistryBean.selectedAddrRegistry.status}"

                                                required="true"

                                                disabled="#{securityBean.privMap['addressRegistryFormStatus']}" >                                

                                  <f:selectItems value="#{addressRegistryBean.statusList}" />                

                              </h:selectOneMenu>   

                              <h:message id="statusError" for="status"  styleClass="errorMessage" />

                                                

                              <h:outputLabel>

                                      <h:outputText value="Net Name" />

                                      <h:outputText style="color: #DD0707" value=" *  "/>

                              </h:outputLabel>

                              <h:inputText  id="netName"

                                            size="40"

                                            maxlength="100"                                     

                                              value="#{addressRegistryBean.selectedAddrRegistry.netname}"

                                              required="true"

                                              disabled="#{securityBean.privMap['addressRegistryFormNetName']}" />

                              <h:message id="netNameError" for="netName"  styleClass="errorMessage" />                   

                              <h:outputText value="Comments" />

                              <h:inputTextarea  id="comments"

                                                rows="5"

                                                cols="60"

                                                value="#{addressRegistryBean.selectedAddrRegistry.comments}"                                          

                                                disabled="#{securityBean.privMap['addressRegistryFormComments']}" >

                                    <f:validateLength maximum="4000" />                               

                              </h:inputTextarea>

                              <h:message id="commentsError" for="comments"  styleClass="errorMessage" />                       

                              </h:panelGrid>

                               <rich:spacer width="1" height="5" />                                           

                            

                             <h:panelGrid id="changeUserPanelGrid" columns="2" styleClass="detail" columnClasses="label">

                                 <h:outputLabel for="changeUser">

                                     <h:outputText value="Change User" />

                                 </h:outputLabel>

                                 <h:outputText id="changeUser" value="#{addressRegistryBean.changeUser}" />

                             </h:panelGrid>

                             <h:panelGrid id="changeDatePanelGrid" columns="2" styleClass="detail" columnClasses="label">

                                 <h:outputLabel for="changeDate">

                                     <h:outputText value="Change Date" />

                                 </h:outputLabel>

                                 <h:outputText id="changeDate" value="#{addressRegistryBean.changeDate}" />

                             </h:panelGrid>

                            </rich:panel>                      

                          <rich:panel>

                                   <f:facet name="header">

                                       Registrant

                                   </f:facet>                                                                                            

                                   <rich:spacer width="1" height="5" />                                                                                  

                   

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                     

                              <h:outputText value="Organization Name" />

                              <h:inputText  id="orgName"

                                            value="#{addressRegistryBean.selectedAddrRegistry.organization}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgName']}" />                                        

                              <h:message id="orgNameError" for="orgName"  styleClass="errorMessage" />

                     

                              <h:outputText  value="Org Id" />         

                               <h:inputText  id="orgId"

                                             value="#{addressRegistryBean.selectedAddrRegistry.orgId}" 

                                             size="40"

                                             maxlength="100"

                                             disabled="#{securityBean.privMap['addressRegistryFormOrgId']}" />

                               <h:message id="orgIdError" for="orgId"  styleClass="errorMessage" />

                            

                              <h:outputText value="Street Address1" />

                              <h:inputText  id="addr1"

                                            value="#{addressRegistryBean.selectedAddrRegistry.address1}"

                                            size="40"

                                            maxlength="50"

                                            disabled="#{securityBean.privMap['addressRegistryFormAddr1']}" />        

                              <h:message id="addr1Error" for="addr1"  styleClass="errorMessage" />

                     

                              <h:outputText  value="Street Address2" />         

                               <h:inputText  id="addr2"

                                             value="#{addressRegistryBean.selectedAddrRegistry.address2}" 

                                             size="40"

                                             maxlength="50"

                                             disabled="#{securityBean.privMap['addressRegistryFormAddr2']}" />

                              <h:message id="addr2Error" for="addr2"  styleClass="errorMessage" />

                     

                              <h:outputText value="City" />

                              <h:inputText  id="city"

                                            value="#{addressRegistryBean.selectedAddrRegistry.city}"

                                            size="40"

                                            maxlength="50"

                                            disabled="#{securityBean.privMap['addressRegistryFormCity']}" />        

                              <h:message id="cityError" for="city"  styleClass="errorMessage" />

                     

                              <h:outputText  value="State" />         

                               <h:inputText  id="state"

                                             value="#{addressRegistryBean.selectedAddrRegistry.state}" 

                                             size="40"

                                             maxlength="50"

                                             disabled="#{securityBean.privMap['addressRegistryFormState']}" />

                              <h:message id="stateError" for="state"  styleClass="errorMessage" />

                     

                              <h:outputText value="Postal Code" />

                              <h:inputText  id="pcode"

                                            value="#{addressRegistryBean.selectedAddrRegistry.postalCode}"

                                            size="10"

                                            maxlength="20"

                                            disabled="#{securityBean.privMap['addressRegistryFormPcode']}" />        

                              <h:message id="pcodeError" for="pcode"  styleClass="errorMessage" />

                     

                              <h:outputText  value="Country" />         

                               <h:inputText  id="country"

                                             value="#{addressRegistryBean.selectedAddrRegistry.country}" 

                                             size="40"

                                             maxlength="50"

                                             disabled="#{securityBean.privMap['addressRegistryFormCountry']}" />

                              <h:message id="countryError" for="country"  styleClass="errorMessage" />

                                             

                            </h:panelGrid>

                            </rich:panel>

                          <rich:panel>

                                   <f:facet name="header">

                                       Technical Contact

                                   </f:facet>                                                                                   

              

                                   <rich:spacer width="1" height="5" />                                                  

                      

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                                 <h:outputText value="RTechHandle" />

                              <h:inputText  id="RTechHandle"

                                            value="#{addressRegistryBean.selectedAddrRegistry.RTechHandle}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormRTechHandle']}" />    

                              <h:message id="RTechHandleError" for="RTechHandle"  styleClass="errorMessage" />

                     

                              <h:outputText value="RTechName" />

                              <h:inputText  id="RTechName"

                                            value="#{addressRegistryBean.selectedAddrRegistry.RTechName}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormRTechName']}" />    

                              <h:message id="RTechNameError" for="RTechName"  styleClass="errorMessage" />

                     

                              <h:outputText value="Email Address " />

                              <h:inputText  id="emailAddress"

                                            value="#{addressRegistryBean.selectedAddrRegistry.emailAddress}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormEmailAddress']}" />    

                              <h:message id="emailAddressError" for="emailAddress"  styleClass="errorMessage" />

                     

                              <h:outputText value="Phone Number" />

                              <h:inputText  id="phone"

                                            value="#{addressRegistryBean.selectedAddrRegistry.phone}"

                                            size="25"

                                            maxlength="25"

                                            disabled="#{securityBean.privMap['addressRegistryFormPhone']}" />

                              <h:message id="phoneError" for="phone"  styleClass="errorMessage" />

                         

                             </h:panelGrid>

                         </rich:panel>

                      <rich:panel>

                                   <f:facet name="header">

                                       Organization

                                   </f:facet>                                                                                   

              

                                   <rich:spacer width="1" height="5" />                                 

        

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                                 <h:outputText value="OrgAbuseHandle" />

                              <h:inputText  id="orgAbuseHandle"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgAbuseHandle}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgAbuseHandle']}" />

                              <h:message id="orgAbuseHandleError" for="orgAbuseHandle"  styleClass="errorMessage" />

                          

                              <h:outputText value="OrgAbuseName" />

                              <h:inputText  id="orgAbuseName"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgAbuseName}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgAbuseName']}" />

                              <h:message id="orgAbuseNameError" for="orgAbuseName"  styleClass="errorMessage" />

                         

                              <h:outputText value="OrgAbusePhone" />

                              <h:inputText  id="orgAbusePhone"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgAbusePhone}"

                                            size="40"

                                            maxlength="25"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgAbusePhone']}" />

                              <h:message id="orgAbusePhoneError" for="orgAbusePhone"  styleClass="errorMessage" />

                         

                              <h:outputText value="OrgAbuseEmail" />

                              <h:inputText  id="orgAbuseEmail"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgAbuseEmail}"

                                            size="40"

                                            maxlength="82"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgAbuseEmail']}" />

                              <h:message id="orgAbuseEmailError" for="orgAbuseEmail"  styleClass="errorMessage" />

                         

                              <h:outputText value="OrgTechHandle" />

                              <h:inputText  id="orgTechHandle"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgTechHandle}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgTechHandle']}" />

                              <h:message id="orgTechHandleError" for="orgTechHandle"  styleClass="errorMessage" />

                         

                              <h:outputText value="OrgTechName" />

                              <h:inputText  id="orgTechName"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgTechName}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgTechName']}" />

                              <h:message id="orgTechNameError" for="orgTechName"  styleClass="errorMessage" />

                          

                              <h:outputText value="OrgTechPhone" />

                              <h:inputText  id="orgTechPhone"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgTechPhone}"

                                            size="40"

                                            maxlength="25"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgTechPhone']}" />

                              <h:message id="orgTechPhoneError" for="orgTechPhone"  styleClass="errorMessage" />

                         

                              <h:outputText value="OrgTechEmail" />

                              <h:inputText  id="orgTechEmail"

                                            value="#{addressRegistryBean.selectedAddrRegistry.orgTechEmail}"

                                            size="40"

                                            maxlength="82"

                                            disabled="#{securityBean.privMap['addressRegistryFormOrgTechEmail']}" />

                              <h:message id="orgTechEmailError" for="orgTechEmail"  styleClass="errorMessage" />

                         

                             </h:panelGrid>

                         </rich:panel>

                      <rich:panel>

                               <f:facet name="header">

                                   Dates

                               </f:facet>                                                                                   

             

                              <rich:spacer width="1" height="5" />                                                         

        

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                                 <h:outputText value="Record Expires" />                       

                              <rich:calendar id="expiration"

                                             value="#{addressRegistryBean.selectedAddrRegistry.expiration}"

                                             locale="US"

                                             popup="true"

                                             datePattern="MM/dd/yyyy"

                                             showApplyButton="false"

                                             style="width:200px"

                                             disabled="#{securityBean.privMap['addressRegistryFormExpiration']}" />

                              <h:message id="expirationError" for="expiration"  styleClass="errorMessage" />

                          </h:panelGrid>                   

         

                          <h:panelGrid columns="3" styleClass="detail" columnClasses="label">    

                              <h:outputText value="Record Created" />                        

                              <rich:calendar id="createDate"

                                             value="#{addressRegistryBean.selectedAddrRegistry.createDate}"

                                             locale="US"

                                             popup="true"

                                             datePattern="MM/dd/yyyy"

                                             showApplyButton="false"

                                             style="width:200px"

                                             disabled="#{securityBean.privMap['addressRegistryFormCreateDate']}" />

                              <h:message id="createDateError" for="createDate"  styleClass="errorMessage" />

                          </h:panelGrid>

                          <h:panelGrid columns="3" styleClass="detail" columnClasses="label">   

                              <h:outputText value="Last Updated" />                       

                              <rich:calendar id="lastUpdated" 

                                             value="#{addressRegistryBean.selectedAddrRegistry.lastUpdated}"

                                             locale="US"

                                             popup="true"

                                             datePattern="MM/dd/yyyy"

                                             showApplyButton="false"

                                             style="width:200px"

                                             disabled="#{securityBean.privMap['addressRegistryFormLastUpdated']}" />

                              <h:message id="lastUpdatedError" for="lastUpdated"  styleClass="errorMessage" />    

                             </h:panelGrid>

                         </rich:panel>

                      <rich:panel>

                               <f:facet name="header">

                                   Registrar

                               </f:facet>                                                                                   

              

                               <rich:spacer width="1" height="5" />                                  

        

                             <h:panelGrid columns="3" styleClass="detail" columnClasses="label">

                                 <h:outputText value="Company" />

                              <h:inputText  id="company"

                                            value="#{addressRegistryBean.selectedAddrRegistry.company}"

                                            size="40"

                                            maxlength="100"

                                            disabled="#{securityBean.privMap['addressRegistryFormCompany']}" />

                              <h:message id="companyError" for="company"  styleClass="errorMessage" />    

                             </h:panelGrid>

                         </rich:panel>                                           

                             <div><h:panelGroup styleClass="buttonBar" >

                                <h:commandButton id="btnSave" value="Save" 

                                                 action="#{addressRegistryBean.update}"

                                                 styleClass="button"

                                                 disabled="#{securityBean.privMap['addressRegistryFormBtnSave']}" />

                                <h:commandButton id="btnDelete" value="Delete"

                                                 action="#{addressRegistryBean.delete}"

                                                 disabled="#{addressRegistryBean.deleteBtnMode}"

                                                 onclick="return confirmDelete('addressRegistryForm','startAddr');"

                                                 styleClass="button"    />                                                                 

                            </h:panelGroup></div>                 

                       </div>                                        

                  </h:form>

                  <script>                                   

                      setHighlight('${highlight}');

                      setFocus('${focus}');

                  </script> 

              </a4j:region>                                                                                     

          </ui:define>

      </ui:composition>

      </body>

      </html>

       

      Thanks,

       

      VVR