Hi all, i am using ibm portlet. we are using jsf pages. when i load my page i am disbling one of the input text on the page. this i m handling in the constructor. there is a edit button on the page , when i click on the button the field gets enabled. now when i change something in the input text box and do a submit the new value is not sent in the request and rather the old value only goes. also i am disabling the box after clicking on save. here the old value is seen again. please help me as to how i should retain the same value and send in the request.
attaching jsp the code below: please check the id id="inputTxtAnticiptdEndDate" and id="txtComments"
<f:view>
<f:loadBundle var="giamsBundle"
basename="com.ibm.endofassignmentportlet.nl.GIAMSResourceBundle" />
<f:subview id="subview1"><jsp:include
page="../common/LeftNavigationMenu.jsp" flush="false"></jsp:include></f:subview>
<hx:scriptCollector id="scriptCollector1"
preRender="#{pc_EOAValidation.onPageLoadBegin}">
<h:panelGrid columns="1" cellpadding="1" border="0" width="100%">
<h:form styleClass="form" id="form1" accept="">
<h:outputText id="titleEOA" styleClass="outputText"
value="#{giamsBundle['title.end.of.assignment']}" escape="false"></h:outputText>
<h:outputText id="titleValidation" styleClass="outputText"
value="#{giamsBundle['title.validation']}" escape="false"></h:outputText>
<%-- <h:outputText id="requiredFieldsMsg" styleClass="outputText"
value="#{giamsBundle['msg.required.fields']}" escape="false"></h:outputText>--%>
<giams:errorMessages></giams:errorMessages>
<h:outputText value="<br/>" escape="false" />
<h:panelGroup>
<h:outputText styleClass="outputText" id="txtInformationMssg"
value="John Holmes, Manager XYZ, #{giamsBundle['msg.submitted.request']}"></h:outputText>
<h:outputText value=" " escape="false" />
<h:outputText styleClass="outputText" id="txtAssigneeFirstName"
value="#{pc_Assignee.firstName}"></h:outputText>
<h:outputText value=" " escape="false" />
<h:outputText styleClass="outputText" id="txtAssigneeLastName"
value="#{pc_Assignee.lastName}"></h:outputText>
</h:panelGroup>
<h:outputText value="<br/>" escape="false" />
<h:outputText value="<br/>" escape="false" />
<hx:panelSection styleClass="panelSection"
id="pSectionMgrSubmittedData" initClosed="false"
style="border-width: thin; border-style: groove">
<hx:panelFormBox helpPosition="over" labelPosition="left"
styleClass="panelFormBox" id="frmBoxMgrSubmittedData">
<hx:formItem styleClass="formItem" id="frmItemRequestType"
label="#{giamsBundle['lbl.request.type']}">
<h:outputText styleClass="outputText" id="txtRequestType"
value="#{pc_EOAValidation.requestTypeValue}"></h:outputText>
</hx:formItem>
<hx:formItem styleClass="formItem" id="frmItemHomeCountry"
label="#{giamsBundle['lbl.home.country']}">
<%-- <h:outputText styleClass="outputText" id="txtHomeCountry"
value="#{pc_Assignee.homeCountry}"></h:outputText> --%>
<giams:referenceDataOutputText id="txtHomeCountry"
refdataCode="COUNTRY" refdataValue="#{pc_Assignee.homeCountry}">
</giams:referenceDataOutputText>
</hx:formItem>
<hx:formItem styleClass="formItem" id="frmItemHomeLocation"
label="#{giamsBundle['lbl.home.location']}">
<h:outputText styleClass="outputText" id="txtHomeLocation"
value="#{pc_Assignee.companyDetails.homeLocation}"></h:outputText>
<%--<giams:referenceDataOutputText id="txtHomeLocation"
refdataCode="IBM_LOCATION"
refdataValue="#{pc_Assignee.companyDetails.homeLocation}">
</giams:referenceDataOutputText>--%>
</hx:formItem>
<hx:formItem styleClass="formItem" id="frmItemCurrProjctdEndDate"
label="#{giamsBundle['lbl.validation.curr.projected.end.date']}">
<h:outputText styleClass="outputText" id="txtCurrProjctdEndDate"
value="#{pc_Assignee.assignment.plannedEndDate}">
<hx:convertDateTime pattern="#{pc_Formatter.dateFormat}" />
</h:outputText>
</hx:formItem>
<hx:formItem styleClass="formItem" id="frmItemAnticiptdEndDate"
label="#{giamsBundle['lbl.validation.screen.anticipated.end.date']}"
escape="false">
<h:inputText styleClass="inputText" id="inputTxtAnticiptdEndDate"
disabled="#{pc_EOAValidation.editable}"
value="#{pc_Assignee.assignment.anticipatedProjEndDate}">
<hx:convertDateTime pattern="#{pc_Formatter.dateFormat}" />
<hx:inputHelperDatePicker id="datePickerDepartureDate" />
<hx:inputHelperAssist errorClass="inputText_Error"
id="assistDepartureDate" />
</h:inputText>
<%-- <h:outputText styleClass="outputText" id="txtAnticiptdEndDate"
value="#{pc_Assignee.assignment.anticipatedProjEndDate}">
<hx:convertDateTime pattern="#{pc_Formatter.dateFormat}" />
</h:outputText> --%>
</hx:formItem>
<hx:formItem styleClass="formItem" id="frmItemComments"
label="#{giamsBundle['lbl.comments']}">
<h:inputText styleClass="inputText" id="txtComments"
value="#{pc_Assignee.assignment.eoaComments}">
</h:inputText>
<%-- <h:outputText styleClass="outputText" id="txtComments"
value="#{pc_Assignee.assignment.eoaComments}"></h:outputText> --%>
</hx:formItem>
<f:facet name="left">
<h:outputText value=" " escape="false" />
</f:facet>
</hx:panelFormBox>
<f:facet name="closed">
<hx:jspPanel id="jspPanel2">
<hx:graphicImageEx id="imageEx1" styleClass="graphicImageEx"
alt="#{giamsBundle['alt.expand.mgr.data']}" align="middle"
value="/theme/img/menu_bar.GIF" width="100%" height="10"></hx:graphicImageEx>
<hx:graphicImageEx id="imageExClosed1"
styleClass="graphicImageEx"
alt="#{giamsBundle['alt.expand.mgr.data']}" align="middle"
value="/theme/img/icon-link-expand-dark.gif"></hx:graphicImageEx>
<h:outputText id="text3" styleClass="outputText"
value="#{giamsBundle['lbl.manager.submitted.data']}"></h:outputText>
</hx:jspPanel>
</f:facet>
<f:facet name="opened">
<hx:jspPanel id="jspPanel1">
<hx:graphicImageEx id="imageEx2" styleClass="graphicImageEx"
alt="#{giamsBundle['alt.collapse.mgr.data']}" align="middle"
value="/theme/img/menu_bar.GIF" width="100%" height="10"></hx:graphicImageEx>
<hx:graphicImageEx id="imageExOpen1" styleClass="graphicImageEx"
alt="#{giamsBundle['alt.collapse.mgr.data']}" align="middle"
value="/theme/img/icon-list-close.gif"></hx:graphicImageEx>
<h:outputText id="text2" styleClass="outputText"
value="#{giamsBundle['lbl.manager.submitted.data']}"></h:outputText>
</hx:jspPanel>
</f:facet>
</hx:panelSection>
<hx:panelFormBox helpPosition="over" labelPosition="left"
styleClass="panelFormBox" id="frmBoxButtons">
<hx:formItem styleClass="formItem" id="frmItemButtons">
<hx:commandExButton type="submit"
value="#{giamsBundle['btn.edit']}" styleClass="commandExButton"
id="btnEdit" title="#{giamsBundle['hvr.edit.assignee']}"
action="#{pc_EOAValidation.doEditAction}"
rendered="#{pc_EOAValidation.releaseManagerData }"></hx:commandExButton>
<h:outputText value=" " escape="false" />
<hx:commandExButton type="submit"
value="#{giamsBundle['btn.save']}" styleClass="commandExButton"
id="btnSaveUpper" title="#{giamsBundle['hvr.save.assignee']}"
action="#{pc_EOAValidation.doSaveAction}"
rendered="#{pc_EOAValidation.releaseManagerData }"></hx:commandExButton>
<h:outputText value=" " escape="false" />
<hx:commandExButton type="submit"
value="#{giamsBundle['btn.release']}"
styleClass="commandExButton" id="btnReleaseMgrSubmittedData"
title="#{giamsBundle['hvr.release.assignee']}"
action="#{pc_EOAValidation.doReleaseMgrSubmittedDataAction}"
rendered="#{pc_EOAValidation.releaseManagerData }"></hx:commandExButton>
</hx:formItem>
</hx:panelFormBox>
</h:form>
</h:panelGrid>