データベースに保存されたデータを表示する html ページ (editprofile.xhtml) があります。私が直面している問題は、画面内のデータを編集して更新ボタンをクリックすると、編集されたデータが Bean に送られず、null であるためエラーが発生することです。
<h:form id="editProfileForm">
<f:facet name="label">
<h:outputText value="Edit User Profile" />
</f:facet>
<rich:panel header="Edit User Profile" style="font-size:10pt" >
<rich:simpleTogglePanel switchType="client" opened="true">
<f:facet name="header">Registration Details</f:facet>
<table>
<tbody>
<tr>
<td>Login Name</td>
<td>
<h:inputText size="15" id="loginName" required="true"
value="#{EditUserProfileBean.loginName}">
<rich:ajaxValidator event="onblur" />
</h:inputText>
</td>
<td></td>
<td>Password</td>
<td><h:inputSecret size="12" id="password" required="true"
value="#{EditUserProfileBean.password}" >
<rich:ajaxValidator event="onblur" />
</h:inputSecret>
</td>
<td>Confirm Password</td>
<td><h:inputSecret size="12" id="confirmpassword" required="true"
value="#{EditUserProfileBean.confirmpassword}" >
<rich:ajaxValidator event="onblur" />
</h:inputSecret>
</td>
</tr>
</rich:simpleTogglePanel>
<h:commandButton id="editProfile" action="#{EditUserProfileBean.saveEditProfileAction}" immediate="true" value="Update Profile" />
</rich:panel>
</h:form>
上記のページにはロード時に既存のデータが入力されていますが、編集して更新すると値が null になります