I want to use one property for firstname but save in one form 5 firstname .

how can I save 5 firstname in one h:form using one property
<h:form>
<h:inputText  id ="firstname" value ="#{bean.firstname}">
<h:inputText  id ="firstname1" value ="#{bean.firstname}">
<h:inputText  id ="firstname2" value ="#{bean.firstname}">
<h:inputText  id ="firstname3" value ="#{bean.firstname}">
<h:commandButton id="save" action="#{bean.save}" value="Save" />   

Hi,
I tried out this...
But now I am getting following exception
javax.servlet.ServletException: Base is null: .optionalCover
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
ManageBean code
public String[] getOptionalCover() {
public String getOptionalCover(int i) {
public void setOptionalCover(int coverId, String values) {
Jsp code
<h:inputText value="#{homeCoverViewBean.optionalCover[420]}" />
<h:inputText value="#{homeCoverViewBean.optionalCover[500]}" />
<h:commandButton value="Save" action="#{homeCoverViewBean.saveAndNext}" />
Please suggest.

Similar Messages

Maybe you are looking for

  • Video attachments not fully forwarding

    I am new to Mac, when I forward an email which has a video attachment I found it forwards like a sound bar but as I just tried to copy it to show you I found I can choose "view as icon" which shows the program icon and it can be opened properly, only

  • Custom Style & Skin

    My company has several different dashboards running in production. Not all of these dashboards are related e.g Accounting, HR, Marketing. Is it possible to create a custom style and skin at the dashboard level that does not affect other dashboards.

  • Installing SAP BPC 7.0 FOR MICROSOFT on VM (60 GB) Disk Space- Test

    All,        We are on SAP BPC 5.0 Sp10 and we are planning to upgrade SAP BPC 7.0 Microsoft in next year. We have one VM server which has 60 GB Disk. We are wondering that can we install SAP BPC 7.0 on it. As per SAP installation guide , it is clearl

  • Advanced IDOC Monitoring Tool (AIM)

    Dear all, what is the Transaction of  'Advanced IDOC Monitoring Tool (AIM)' ? It is mybe the WE02? regards

  • How set variable in Terminal (once)

    In a Termina lsession, I want to create a new variable, MLROOT, and assign it the value of a path: /Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAd ditions I've tried the following,and just get a "not a valid identifie