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: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" />   

I tried out this...
But now I am getting following exception
javax.servlet.ServletException: Base is null: .optionalCover
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

  • How can I display an image from a shared-network folder?

    Hi Does anyone know how I can display images from within APEX that are found outside the database? What configuration have I missed? Within Windows-Internet-Explore I can access the following image using the below URLs, BUT I cannot access it from wi

  • Download photos from facebook

    how do i download photos from facebook

  • Oracle connection works in VB debug mode but not in EXE

    I have a small VB 6 app that writes to an oracle database on a unix server. Oracle 10g is installed on my pc. System DSN is set up in ODBC and corresponds to an entry in the tnsnames.ora file (to the best of my limited oracle knowledge..) The connect

  • Weblogic.jar not found

    Hi, Going throu' a strange problem. I am calling an applet method from javascript. This applet method in turn access certain ejb methods which needs the class files of weblogic.jar. I have this weblogic.jar in the classpath, applet archive and both a

  • Ipod nano 3rd gen. osx??

    So heres the thang. I was given a new nano for my birthday and as I am running 10.3.9 it ain't working! Do I really need 10.4.8 or above and if so does 10.4 even exist anymore??? If I must go 10.5 will it work well on my ibook??? thank you so much fo