Simple FORM with TABLE

Hi. I'm trying to make a simple report using SmartForms. I'd like it to contain only a table with result of SELECT inside. The select is:
TABLES zpersonal.
SELECT * FROM zpersonal
WHERE stredisko BETWEEN '0035' AND '0141'.
ENDSELECT.
But I've a problem. I don't understand how should I configure my report in SmartForms. I  conclude, that I have to pass the <b>zpersonal</b> table to the form's function, but how to configure the report to capture my table and display it? I follow:
http://www.sap-img.com/smartforms/smartform-tutorial.htm
Could You explain me what should I really insert especially in
1. <u># ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2</u>
what are ITAB1 and ITAB2 tables?
2. What should I insert in <u>Form interface </u>?
3. What should I insert in <u>Global definitions </u>?
Could You help me or give me more details about the tutorial I use. Greetings. P.

Hi,
I understand that u r using trying to create a simple smartform which captures data from a table to an internal table and then displays it.
The driver program (the report program) need to be like this
tables: zpersonal.
data: itab like zpersonal occurs 0 with header line,
         fm_name type rs38l_fnam.
select * from zpersonal
where stredisko between '0035' and '0141'.
this will capture the data into the internal table.
Now since smartforms are function modules(FM), u need to pass the name to the report
call function 'SSF_FUNCTION_MODULE_NAME'
  exporting
    formname                 = "ur smart form name in quotes"
  importing
    fm_name                  = fm_name
Now u need to call the smart form function module
for that go to the smartform as click Environment->funtion module name
copy that name from ther
IN the report click pattern and paste it there
Now u have the function module in place
replace the FM name by fm_name
In the tables parameter give ur internal table name
Before developing ur report u need to design ur smartform
Once u have the internal table name defined in the smartform, it will come in the function call
Please come back for any queries
Reward if useful
regards,
Anoop

Similar Messages

  • Allow a simple form with "data" to be saved by the user.

    Back in version -x, it used to be so simple.  You created a form that could be read in a web browser.  Users could could fill out the form and save the form to their computers with their data.  Since that first version that allowed that, Acrobat has not progressed in logical fashion.  In a later version, you couldn't save the data.  Then in another version, you could again save the data.  Now you have some nice interactive features. I appreciate the new developments and see where they could be a godsend.  However, the simple thing that I used to be able to do in version -x, and the thing I most want to do,  I can no longer do and it is frustrating.
    Here's the situation:  we have an announcement on the web for Vacation Bible School.  We want to have a pdf with a form that people can fill out online and save to their disk (as their copy of the registration form) and then print out one copy of the form so that they can send it along with their check for the registration fee.  Why should that be so difficult?
    If it weren't for the fact that people have to send in checks, one of the fancy new options would work.  But it is not applicable in this situation.
    Here are my current options:
    I can "distribute" an emailable form (which I don't want to do) and then explain to the user that they should not hit the "submit" button but save the file to their disk.  (First rule of public relations - Don't confuse the public!)  It works in the last version of REader 8+ and in Reader 9.
    I can save the form without distributing it. But the user can't save it with the data!
    Please, PLEASE, PLEASE.  Allow a simple form with "data" to be saved by the user.
    Peace and blessings
    Barbara

    Thanks for a quick response.
    In Acrobat *8 or 9 Professional you can enable a form to be activated with the save feature.
    How do you do this.  When I saved the form without distributing it, and opened the form up in Acrobat Reader, the header said specifically that the data could not be saved in the form.  And when I went to save it, I got the message in a popup that said "Data in this form will not be saved. Reader can only save a blank copy of this form."  Then a second message (with a light bulb) said:  "Please print your completed form if you would like a copy for your records."
    So, if in fact I can have the form (without "distributing" it) so that the user can save the form with the data, how do I do that?  Are there commands I use, options?  Please let me know.  I will be eternally grateful.
    Also, if you edit form fields, you may remove the submit button.
    The edit form fields does not offer any access to the submit button.
    Best,
    Barbara

  • Query Form with Table - Table not stretching

    Gentlefolk
    I have a very simple JSF page.
    I have based this JSF page on Oracle quick start layout (stretched).
    I add a query component (including a table) to the page.
    When I run the page the Search Panel Re-sizes to fit the browser (stretches). The table below does not.
    p.s. the query component itself works fine. Its the table that returns the results that remains unstretchable.
    Any ideas appreciated
    Thx
    Darren Palmer

    Having the table in a stretchable component will stretch it (the panel group isn't such a component).
    So you can layout your page like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>
    <f:view>
      <af:document id="d1">
        <af:messages id="m1"/>
        <af:form id="f1">
          <af:panelStretchLayout id="psl1" topHeight="200px">
            <f:facet name="center">
                <af:table value="#{bindings.DepartmentsView1.collectionModel}"
                          var="row" rows="#{bindings.DepartmentsView1.rangeSize}"
                          emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.DepartmentsView1.rangeSize}"
                          rowBandingInterval="0"
                          filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                          queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                          filterVisible="true" varStatus="vs"
                          selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}"
                          rowSelection="single" id="resId1">
                  <af:column sortProperty="DepartmentId" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
                             id="resId1c1">
                    <af:outputText value="#{row.DepartmentId}" id="ot1">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
                    </af:outputText>
                  </af:column>
                  <af:column sortProperty="DepartmentName" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                             id="resId1c2">
                    <af:outputText value="#{row.DepartmentName}" id="ot2"/>
                  </af:column>
                  <af:column sortProperty="ManagerId" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.ManagerId.label}"
                             id="resId1c3">
                    <af:outputText value="#{row.ManagerId}" id="ot3">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.DepartmentsView1.hints.ManagerId.format}"/>
                    </af:outputText>
                  </af:column>
                  <af:column sortProperty="LocationId" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.LocationId.label}"
                             id="resId1c4">
                    <af:outputText value="#{row.LocationId}" id="ot4">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.DepartmentsView1.hints.LocationId.format}"/>
                    </af:outputText>
                  </af:column>
                </af:table>
              <!-- id="af_one_column_stretched"   -->
            </f:facet>
            <f:facet name="top">
              <af:panelHeader text="Departments" id="ph1">
                <af:query id="qryId1" headerText="Search" disclosed="true"
                          value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                          model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                          queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                          queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}"
                          resultComponentId="::resId1"/>
              </af:panelHeader>
            </f:facet>
          </af:panelStretchLayout>
        </af:form>
      </af:document>
    </f:view>Another option is to use a panel splitter - basically take the template you used - add a splitter (vertical) - drag the query with table to the top - then move the table to the bottom:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelStretchLayout id="psl1">
              <f:facet name="center">
                <af:panelSplitter id="ps1" orientation="vertical">
                  <f:facet name="first">
                    <af:panelGroupLayout layout="vertical" id="pgl1">
                      <af:panelHeader text="Departments" id="ph1">
                        <af:query id="qryId1" headerText="Search" disclosed="true"
                                  value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                  model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                  queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                  queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}"
                                  resultComponentId="::resId1"/>
                      </af:panelHeader>
                    </af:panelGroupLayout>
                  </f:facet>
                  <f:facet name="second">
                    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
                              var="row"
                              rows="#{bindings.DepartmentsView1.rangeSize}"
                              emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                              fetchSize="#{bindings.DepartmentsView1.rangeSize}"
                              rowBandingInterval="0"
                              filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                              queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                              filterVisible="true" varStatus="vs"
                              selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
                              selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}"
                              rowSelection="single" id="resId1">
                      <af:column sortProperty="DepartmentId" filterable="true"
                                 sortable="true"
                                 headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
                                 id="resId1c1">
                        <af:outputText value="#{row.DepartmentId}" id="ot2">
                          <af:convertNumber groupingUsed="false"
                                            pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
                        </af:outputText>
                      </af:column>
                      <af:column sortProperty="DepartmentName" filterable="true"
                                 sortable="true"
                                 headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                                 id="resId1c2">
                        <af:outputText value="#{row.DepartmentName}" id="ot4"/>
                      </af:column>
                      <af:column sortProperty="ManagerId" filterable="true"
                                 sortable="true"
                                 headerText="#{bindings.DepartmentsView1.hints.ManagerId.label}"
                                 id="resId1c3">
                        <af:outputText value="#{row.ManagerId}" id="ot1">
                          <af:convertNumber groupingUsed="false"
                                            pattern="#{bindings.DepartmentsView1.hints.ManagerId.format}"/>
                        </af:outputText>
                      </af:column>
                      <af:column sortProperty="LocationId" filterable="true"
                                 sortable="true"
                                 headerText="#{bindings.DepartmentsView1.hints.LocationId.label}"
                                 id="resId1c4">
                        <af:outputText value="#{row.LocationId}" id="ot3">
                          <af:convertNumber groupingUsed="false"
                                            pattern="#{bindings.DepartmentsView1.hints.LocationId.format}"/>
                        </af:outputText>
                      </af:column>
                    </af:table>
                  </f:facet>
                </af:panelSplitter>
                <!-- id="af_one_column_stretched"   -->
              </f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • How to do an interactive form with tables

    I've been asked to recreate an interactive form that was created using several tables. The tables are made up of cells that contain labels of what information is required, followed by blank cells where the user can put the information (text fields). A few of the cells are to contain drop down menus that will contain a list of answers to choose from (combo boxes). I kind of like the idea of doing it in a table just because it keeps everything lined up automatically.
    I am a Lynda.com subscriber, and I found a course on that site that shows how to create interactive forms with InDesign, but it just breezes past doing it with tables. It says you can do it, but doesn't show how. The problem is, one table can contain all three types of cells that I plan to use. I can select the whole table and then choose "Type" in the Buttons and Forms panel, but I would think that would turn the whole table into just one type of field. I can't seem to figure out how to select individual cells of the table to choose different types.
    Is there a way to do that?

    This is work around
    1- Draw a rectangle frame, and without release mouse use up and right arrow key to define rows and columns count and use Ctrld+ down arrow key to reduce space between rows and Ctrl+left arrow key to reduce space between column.
    2- Covert frames to Buttons.

  • How do I create simple form with issue result request

    How do I create the form, on which took seats GRID with result of the request from table Oracle. I do not use iAS.

    Thank you for this George, however a couple of sticking points.  When I copied and pasted the code over to my file it didn't work, even when I pointed the code to my combo and checked all settings and properties of the other objects.  The unusual thing was that I had to copy all the boxes over from your file with the script and it worked, it even hid and revealled my original objects which I wanted.  I then called the code from my original combo and deleted the one I had copied from your file and all was OK
    The second thing is that when I try and edit the combo box, I can only move between one or two of the options set in the box, although I can see all the other options, I cannot select them the cusor simply jumps to the top options.  I had to delete all the options and retype them all in assigning the 0,a,b,c, etc. Although this works, when I go to edit, it still only allows me to select up to the first four in the edit, but the form appears to be working fine.   Is there a special order which i need to folow, can I have labels in the combo with spaces e.g. "family appointment"?
    And finally, I added some background colours to the section_a_backgrounds (b,c,d) also, but these do not work, even though the text copies across into the section_background.  I'm confused with all these issues, should it not have worked as it was???
    I am using acrobat X pro, does this make a difference?

  • Possible Bug concerning JClient Forms with tables

    If I instantiate a JClient Frame first time a lot of empty rows appear in the table, if there is NO DATA in the database table.
    If there IS data in the database table, at the fist time everything is OK, but if I instantiate the JClient frame a second time, in the JClient table a lot of empty rows appear in addition to the expected ones.
    To reproduce this behaviour you can create a single JClient Table Form and then add a component to instantiate a new Form of the actual one e.g. I have reproduced it changing the standard About Menu so that <About> instantiates and sets visible the Form again.
    menuHelp.setMnemonic('H');
    itemHelpAbout.setText("About");
    itemHelpAbout.setMnemonic('A');
    itemHelpAbout.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    FrameView1 frame = new FrameView1(app);
    frame.setVisible(true);
    Is this a bug ?
    Is there a workaround for this behaviour ?

    If I instantiate a JClient Frame first time a lot of empty rows appear in the table, if there is NO DATA in the database table.
    If there IS data in the database table, at the fist time everything is OK, but if I instantiate the JClient frame a second time, in the JClient table a lot of empty rows appear in addition to the expected ones.This has been discussed on OTN at 10G JDBC Driver SQl Exception earlier.
    Please see if suggested workaround works for your case.

  • Adobe interactive form with table in webdynpro

    Hi Experts,
    My requirement is getting the data from adobe form table to my context node where I 've used 0..n cardinality to my table. what I did is when I use 0..1/1..1 cardinality to pass the data from adobe to context node am getting the data, as per my req. I 've to pass more than 1 record at a time so I set the cardinality to 0..n/1..n for the context node in this case am not getting the data to my context node. all the settings and the mappings are done properly. can anybody suggest me how to proceed in this case.

    What SP level is your NetWeaver system?  I've seen at least two other threads describing the same problem in the last few days.  I can not recreate the problem on my SP15 system, but I suspect since several people are having the same problem that there is a bug in the runtime at some SP level. I suggest that you enter a support ticket and/or search OSS for possible notes.

  • Adobe forms with table

    HI ,
    I NEW IN ADOBE FORMS I WAS CREATE ONE CUSTOM TABLE HAVEING 4 COLUMS IN THAT  4TH COLUMN IS AMONT FIELD. I WANT TO ADD TOTAL AMOUNT DISPLAY IN SEPRATE NUMERIC FILED. WHILE I ENTER DATA INTO IN THAT COLUMN AUTOMATICALLY ADD AMOUNT AND DISPLAY IN ANOTHER FIELD. PLZ HELP ME

    HI,
    You  search a  FP*  more number of  Standard Adobe Forms there...
    Regards,
    Ansari

  • Can't submit form with table of buttons

     

    [email protected] (Jeroen) wrote in message news:<[email protected]>...
              > When I click a Klaar button, the browser doesn't even go to klaar.jsp.
              >
              The reason: you close your first form too early. Put the </form> after
              your <input type='submit value-'Klaar' .....>
              Oh BTW, this is a shocker - too much Java inside your HTML! You should
              consider writing a custom tag. (My 2 cents)
              Cheers
              ry
              Consultant
              http://www.soft-trek.com.au
              

  • Open form with hidden table

    Hi All.
    I have simple form with CheckBox and Table. I show table when CheckBox is True. My code:
    form1.#subform[0].CheckBox1::change - (JavaScript, client)
    if (CheckBox1.rawValue == true)
        Table1.presence = "hidden";
    else
        Table1.presence = "visible";
    But I would like to hide Table in case when user open form and then when CheckBox is True show table. In case when CheckBox is False the Table is hidden. How it to do? I will appreaciate for sample.
    Thanks.

    Hi,
    this is not so difficult. You have to do the following steps:
    open a new form.
    insert a checkbox and a table into the form.
    mark the checkbox
    open the script editor (about window)
    select "click-event"
    write:
    if (CheckBox1.rawValue == 1)
        Table1.presence = "hidden";
    }else
        Table1.presence = "visible";
    And now you have to hide the table under "object" | "presence" | "hidden (exclude from layout)"
    Ready.
    Kind regards Mandy
    PS: Oh I haven't seen that the problem is solved.

  • Pdf form for data from another form with data, xml or pdf, tables not expanding

    Sir,
    I am using Adobe Acrobat 9 Pro and LifeCylce to do these forms. I have made several subforms for a Risk Assessment for the mission they fly. I have also made up another form with tables that would connect with each subform data. This form also will give me and others a % of the values received from the data to help us with seeing problem area towards Safety.
    I am able to connect the data to the form from the Risk Forms but when I go and add another group of data it over writes the data that was already in the data collection form. The tables are dynamic and able to expand with the generated data but when I compile several Risk Forms, xml. data into one single data group, the receiving tables will not except this data. To compile the data I am in Acrobat and using the form-manage form data-merge data to spreadsheet than enter as a report that is xml. Still not working. I also tried to save the form, with data already in the tables, and then opened it again and add data to it, it will over write the existing data in the form. This form does work great with the generated data in LiveCycle.
    Any suggestions???

    Thanks Paul
    Did as you said and for each subform binding tab made sure I have "Repeat subform for each data item" checkbox and still no change when I add the data.
    I even tried to combine the xml data and that file just has the main page and not the data pages. just another problem that is happening.
    Any other suggestions on this expanding tables and receive single forms one at a time.
    Bill

  • ADOBE Form Using Table with dynamic number of rows

    Hi All
    First some information about our infrastructure:
    - AdobeDesigner 7.1 in the Developerstudio
    - SAP-Portal 7.0 SP15
    I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
    To fill the tablecontext I use the following Code:
    IPrivateAnlegenBANFView.IPositionenElement position = null;
    IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
    int NUM_5_TIMES = 5;
    for (int i = 0; i < NUM_5_TIMES; i) {
    IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
    +posElement.setMaterial("" + i);+
    +posElement.setKurztext("Test" + i);+
    +posElement.setWarengruppe("Warengr" + i);+
    posNode.addElement(posElement);
    If i put this code in the wdDoInit method it  works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
    Can someone tell me what im doing wrong?
    Thanks for a answer and kind regards
    Pascal

    Hi All
    finally i found the solution for the problem.
    When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
    Add the following source to the viewCotroller
    Global Part of the Source:
    private static IWDInteractiveForm form = null;
    Method wdDoModify:
    if (firstTime) {
      form = (IWDInteractiveForm) view.getElement("InteractiveForm");
    When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
    Action:
    public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
      //@@begin onActionFillTab(ServerEvent)
         * Code to fill the Node for AdobeForm Table
        form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
      //@@end
    If you want to clear your table and show it directly use in the action the following code:
    wdContext.nodeTabelle().invalidate();
    form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
    Kind regards
    pascal

  • Autofill works for forms with autocomplete="off"

    From what I can grasp here:
    https://developer.mozilla.org/en-US/Firefox/Releases/30/Site_Compatibility#Security
    If a field or form has autocomplete="off" set, the password manager should prompt the user to save the password, but the password can not be auto-filled into the field.
    This is not what I'm experiencing. I have a simple form with email and password field. Both the form itself and the fields have autocomplete="off", but Firefox 30 will still let me store the details and auto-fill them.
    I cannot allow this, as it breaks Angular JS's binding causing things to not work.

    You can try to set the signon.autofillForms pref to false on the <b>about:config</b> page.
    Note that the signon.overrideAutocomplete pref controls the behavior with autocomplete=off
    You can open the <b>about:config</b> page via the location/address bar and you can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • WUC-015 (WEBUTIL inits in simple form, not busy form, except from button)

    A busy form always gets a WUC-015 when first touching a WEBUTIL function via a timer. It does not matter how long the timer is set for. A simple form with the WEBUTIL setup works when initialized from a timer. The busy form has no problems if the first time I touch the WEBUTIL functions is behind a button. I have tried shuffling the WEBUTIL block around but without effect. I even tried trapping the error and retrying with no joy.
    Is there a sure-fire way to initalize at startup without getting this error?
    Message was edited by:
    ow000412

    SOLVED!
    I had Form A doing a OPEN_FORM with NO_ACTIVATE on Form B. Form B had a WEBUTIL (first) reference in a timer (to allow (I read) Webutil beans to initialize). Although Form B's W-N-F-I fired, and the timers were lauched, WEBUTIL would not initialize completey unless it had focus! So changing the OPEN_FORM to be ACTIVATE seems to do the trick. [Duncan is this a bug?]

  • Clear a form with JSF?

    Hello,
    I have a simple form with a user name and two password fields:
    <h:form>
    <h:inputText value="#{NewUser.name}"
                   required="true"
                   id="newUserName"/>                              
    <h:inputSecret value="#{NewUser.password}"
                   required="true"
                   id="newUserPassword"/>                              
    <h:inputSecret value="#{NewUser.confirmPassword}"
                   required="true"
                   id="newUserConfirm"/>
    <h:commandButton value="#{Message.add_user_cmd}"
                        actionListener="#{NewUser.addNewUser}"/>                              
    <h:commandButton value="#{Message.add_user_clear}"
                        action="#{NewUser.init}"
                        immediate="true"/>                              
    </h:form>
    the init method in the bean just resets the values:
         public String init()
              setName("");
              setPassword("");
              setConfirmPassword("");
              return null;
    All seems fine, but it I enter a name value and hit clear, the value is not removed. I guess there is a simple solution to this as loads of people must need to do it, but I just can't see how?
    Thanks
    Neil

    The submitted value of the component is set to null after updating the corresponding
    managed bean. Because you specify immediate="true", the Update Model Values Phase
    is skipped and the HtmlInputText component still holds the submitted value which is
    used in the Render Response Phase.
    The most simple solution is here:
    <input type="reset" value="clear"/>

Maybe you are looking for