Can I have a form inside another form?

Hi!
Is it possible to have a form inside another form?
Regards,
Filipa

I think I'm messing up everything and i'm confused with how jsf works.
I've noticed now that my problem doen't have todo with if i'm usin one form or nested forms :(
The problem is (as i understood) that if the backing bean that I'm using for the chart part is a request chart, every time i submit the form a new instance of the bean is created and so the initialization of the selected checkboxes is redone.
How can I avoid this? I would like to have only the choosen checkboxes selected.
Here is the jsp code I'm using:
<h:form>
<h:panelGrid id="selectMenus" columns="2" style="margin-bottom:10px">
     <h:panelGroup style="margin-right:5px">
          <h:selectOneMenu id="projectSelectBox"
               value="#{chartTypesBean.selectedProject}" onchange="submit()">
               <f:selectItems value="#{chartTypesBean.projects}" />
          </h:selectOneMenu>
     </h:panelGroup>
     <h:panelGroup>
          <h:selectOneMenu id="chartSelectBox"
               value="#{chartTypesBean.selectedProjectChart}" onchange="submit()">
               <f:selectItems value="#{chartTypesBean.projectCharts}" />
          </h:selectOneMenu>
     </h:panelGroup>
</h:panelGrid>
<h:panelGrid id="calcByDay_grid" columns="2"
     rendered="#{chartTypesBean.lineRendered}">
     <h:panelGroup>
          <jd:barChart3d dataset="#{lineChartBean.lineDataset}" width="400"
               height="400" fileExt="png" chartTitle="Calc by Day"
               includeLegend="true" formatter="#{lineChartBean.formatter}"
               type="Line" plotColor="#D8D8D8" binding="#{lineChartBean.lineChart}" />
     </h:panelGroup>
     <h:panelGroup>
          <h:selectManyCheckbox id="lineSeries" layout="pageDirection"
               immediate="true" value="#{lineChartBean.lineSelectedSeries}">
               <f:selectItems value="#{lineChartBean.lineSeries}" />
          </h:selectManyCheckbox>
          <h:commandButton id="lineSubmit" value="Submit"
               action="submit()" />
     </h:panelGroup>
</h:panelGrid>
... (other charts) ...
</h:form>
here is the line chart backing bean code:
public class LineChartBean {
     private Logger logger = Logger.getLogger(LineChartBean.class
               .getSimpleName());
     private boolean firstTime = true;
     private final String[] lineCategories = { "27/07/05", "28/07/05",
               "29/07/05", "30/07/05", "31/07/05", "01/08/05", "02/08/05",
               "03/08/05", "04/08/05", "05/08/05", "06/08/05", "07/08/05",
               "08/08/05", "09/08/05", "10/08/05", "11/08/05", "12/08/05",
               "13/08/05", "14/08/05", "15/08/05", "16/08/05", "17/08/05",
               "18/08/05", "19/08/05", "20/08/05", "21/08/05", "22/08/05",
               "23/08/05", "24/08/05", "25/08/05", "26/08/05" };
     private final SelectItem[] lineSeries = { new SelectItem("Open", "Open"),
               new SelectItem("P1(Open)", "P1(Open)"),
               new SelectItem("P2(Open)", "P2(Open)"),
               new SelectItem("Active", "Active"), new SelectItem("Test", "Test"),
               new SelectItem("Evol", "Evol") };
     private final double[][] lineValues = { { 8, 1, 4, 6, 7, 11.60483871 },
               { 11, 1, 4, 7, 5, 11.62903226 }, { 11, 1, 4, 7, 5, 11.65322581 },
               { 11, 1, 4, 7, 5, 11.67741935 }, { 11, 1, 4, 7, 5, 11.7016129 },
               { 13, 2, 5, 7, 5, 11.72580645 }, { 14, 2, 5, 7, 5, 11.75 },
               { 12, 3, 4, 9, 5, 11.77419355 }, { 12, 3, 4, 9, 5, 11.7983871 },
               { 12, 3, 4, 9, 5, 11.82258065 }, { 12, 3, 4, 9, 5, 11.84677419 },
               { 12, 3, 4, 9, 5, 11.87096774 }, { 14, 3, 5, 10, 4, 11.89516129 },
               { 13, 2, 6, 12, 4, 11.91935484 }, { 13, 2, 6, 12, 4, 11.94354839 },
               { 13, 2, 6, 12, 4, 11.96774194 }, { 12, 2, 5, 4, 13, 11.99193548 },
               { 12, 2, 5, 4, 13, 12.01612903 }, { 12, 2, 5, 4, 13, 12.04032258 },
               { 12, 2, 5, 4, 13, 12.06451613 }, { 12, 2, 4, 4, 11, 12.08870968 },
               { 12, 2, 4, 3, 9, 12.11290323 }, { 14, 3, 5, 2, 4, 12.13709677 },
               { 11, 0, 5, 3, 5, 12.16129032 }, { 11, 0, 5, 3, 5, 12.18548387 },
               { 11, 0, 5, 3, 5, 12.20967742 }, { 12, 0, 6, 2, 5, 12.23387097 },
               { 12, 0, 6, 2, 4, 12.25806452 }, { 12, 0, 6, 2, 4, 12.28225806 },
               { 12, 0, 6, 2, 4, 12.30645161 }, { 12, 0, 6, 2, 4, 12.33064516 } };
     private DefaultCategoryDataset lineDataset;
     private String[] lineSelectedSeries;
     private NumberFormat formatter = new DecimalFormat("#,###.##");
     public CategoryDataset getLineDataset() {
          if(firstTime) {
               lineSelectedSeries = new String[lineSeries.length];
               for (int i = 0; i < lineSeries.length; i++) {
                    lineSelectedSeries[i] = (String) lineSeries.getValue();
               firstTime = false;
          lineDataset = new DefaultCategoryDataset();
          for (int serie = 0; serie < lineSeries.length; serie++) {
               String serieName = (String) lineSeries[serie].getValue();
               boolean isSelected = false;
               for (String selectedSerie : lineSelectedSeries) {
                    if (lineSeries[serie].getValue().equals(selectedSerie)) {
                         isSelected = true;
                         break;
               if (!isSelected) {
                    continue;
               } else {
                    for (int category = 0; category < lineCategories.length; category++) {
                         double y = lineValues[category][serie];
                         lineDataset
                                   .addValue(y, serieName, lineCategories[category]);
          return lineDataset;
     public NumberFormat getFormatter() {
          return formatter;
     * @return Returns the lineSelectedSeries.
     public String[] getLineSelectedSeries() {
          return lineSelectedSeries;
     * @return Returns the lineSeries.
     public SelectItem[] getLineSeries() {
          return lineSeries;
     * @param lineSelectedSeries
     * The lineSelectedSeries to set.
     public void setLineSelectedSeries(String[] lineSelectedSeries) {
          this.lineSelectedSeries = lineSelectedSeries;

Similar Messages

  • Can I have a JSP  inside another JSP??

    if so,
    say, I have a JSP inside another JSP then,
    how many servlets r generated by the JSP engine??

    Yes U can have JSP inside another JSP, ofcourse using jsp:include and in that case two servlets will be generated. Thats what i feel that happens.

  • Calling one form inside another form

    Hello every body,
    i plan to develop one webapplication in that i wrote
    <form> tag whole page.can i wrote one more form tag inside this form.
    like
    <form action=>..
    <form action> --- this form contains one combo box .it calls one servlet and fill the second combo box..
    </form>
    </form> when i fill all form data and press submit button
    specified servlet receiving null vaules.
    plz help ..
    if anybody having like this code plz forward me.
    regards,
    Anil.

    hi,
    <form> tag whole page.can i wrote one more form tag inside this form.my opinion
    its not a best approach to create a inner form,
    if you go like this and click the submit of inner or outer form, both the form value will pass, so its not good..
    contains one combo box .it calls one servlet and fill the second combo box..better you to store or fill your values onpage load itself,
    after loading your dynamic data, it will filled into that combo box,
    which you have in a single form and do normally

  • Is it possible to use a seperate form inside another form?

    Hello-
    Creating a new hire vibe process. This process has many components, most of which only new hires need to complete. But there are other areas where both new hires and existing employees may need to complete. Completing a dental insurance application is an example. I currently have a dental insurance form, and a new hire form. Is it possible to add the dental insurance form within the new hire form? Under Layout Options I see an option for Form. I added it to my new hire form but it did not work
    Thanks
    Craig

    Craigcia,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Can we have form inside a form?

    Hi All,
    Can we have form inside a form?
    Thanks
    kiran

    Can we have form inside a form? Yes. However you could find out that , regardless of which form gets submitted, all input fields of both forms would get submitted anyway.
    That would render nested forms quite useless.
    But as it has been said, why don't you try it and see for yourself?
    Keep in mind that, you may think you need nested forms, but you really do not need that, and there is a problem with your design.

  • How can we get data from One Form to Another Form

    Hi All,
    I have 2Forms.I'm calling one form from another form buy using next form button.
    If i press itis opening 2nd form,Simultaneously i have to get the data to the 2nd form.Can any one help me in this.
    Any triggers has to be fire tell me the solution
    Regards
    Siva

    you may have better success over here
    Forms

  • Frm-92101 happens when I open a form from another form and close it.

    Frm-92101 happens when I open a form from another form, check something, show a message to the user and exit the form to the previous form.
    Forms version: 10.1.2.0.2. Java: 1.6.0_23. Browser: IE6
    When I put before the "EXIT_FORM" two messages, everything is fine and the second form is closed and I repeat to the first form just as I wanted.
    In forms 9.0 it didn't happen.
    Does it have a connection with the fact I use JRE instead of JInitiator?
    Thank you.

    >
    There are numerous causes of the FRM-92101 error. I recommend you start your investigation by tracing your Forms session so you can see what your form is doing when the error occurs. Check out My Oracle Support document How to Use Forms Trace with Forms [ID 209372.1] for information on how to enable the trace. Also, take a look at My Oracle Support document Known Causes of FRM-92101 Error In Forms [ID 604633.1].
    Hope this helps,
    Craig
    >
    I have just found that there is a "Synchronize" command in one of the main attached libraries, and when I comment that command the application works well. But I don't want to comment it because it's a great library and I assume it has a part in the system.
    I have discovered that in the new Forms' help, the fact that the System.Current_Item mustn't be null so the command "Synchronize" will work, is mentioned. In the old Forms' help, that fact is not mentioned.
    So I tried to put it inside a condition that checks if the current item is not null, but the compiler doesn't recognize the "current_item". I don't know why. Because it's a library? So how can I check this? I can sent it as a parameter, but I don't want. Do you know something about it? Thank you.

  • Query a second form from another form by passing value

    Hi,
    I have two forms. I am trying to query a second form from another form. I have managed to display the query results in the second form by passing value from the first form. I did it according to the details in the Oracle 9ias Portal Technical FAQ html file.
    It works fine when there is already a row in the first form. When I insert a new row in the first form and query the second form which has key from the first form, there is no matching rows displayed which is correct but detail action mode is 'NONE' for all detail rows.
    According to the FAQ, it says the following:-
    "When the called form is started, it executes a query with the supplied condition (in this case, "where deptno=10"). If the query is successful, the matching rows are displayed in Update mode. If no matching rows are found, the form starts in Insert mode."
    It does not happen for me. I get NONE mode for no matching rows. Is this a BUG ? I am working on Portal version 3.0.9.8.0.
    Is there something wrong in the code I wrote ? I would like to have all the detail mode as Insert.
    Here is the following code I wrote on SUCCESSFUL SUBMISSION OF THE FORM.
    declare
    my_url varchar2(1000);
    v_deptno number;
    begin
    v_deptno := p_session.get_value_as_NUMBER(p_block_name => 'DEFAULT', p_attribute_name => 'A_DEPTNO');
    my_url := 'PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1268491962&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=deptno&p_arg_values='||LTRIM(TO_CHAR(v_deptno))||'&p_arg_names=_deptno_cond&p_arg_values=%3D';
    go(my_url);
    end;

    Hi,
    The behaviour is OK as in the MD form there are two states "Save" and "Query and Save" and when the form is in "Query and Save" mode that means you can use it for both Query aswell as Save which is decided by your "Master action" if that is None it is used for Query , for Insert you will have to select Insert ,this is the Insert Mode behavior.
    If you open a new MD form that is also in the "Query and Save" the same behaviour will be there.
    Hope this answers your query.
    rahul

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • What are the 3 ways to call a form from another form?

    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?

    Hi,
    1. Should be new_form, call_form and open_form
    2. The command is run_product
    3. There is a property 'Menu Module' in form, just change it to your menu file name
    Regards,
    George
    Can anyone help me with the following questions...
    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?
    Thanks for your time..
    Madhu

  • How to refer the trigger written in one form from another form ?

    How to refer the trigger written in one form from another form ?
    Thanks,
    Ravi Shankar

    Try to convert the PL/SQL code from Forms trigger into a PL/SQL library(.PLL),
    and then attach that PLL in your forms.
    Note that all Forms objects should be referenced indirectly, for example,
    you have to rewrite
    :B1.DEPT_CODE := :B2.DEPT_CODE;
    :B3.TOTAL_AMOUNT := 100;
    ==>
    copy('B2.DEPT_NO','B1.DEPT_NO');
    copy('100','B3.TOTAL_AMOUNT');
    This is the best way to share PL/SQL code among Oracle Forms.

  • HOW TO CALL A FORM FROM ANOTHER FORM

    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]

    Balraj wrote:
    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
    Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
    Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
    Your should seriously have a look at FAQ.
    http://wikis.sun.com/display/Forums/Forums+FAQ
    Also here.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Please read documentation for the initial questions.
    -Ammad

  • Open the form from another form...

    How can I open the form from another form with the PL/SQL code???
    The my form are create from OracleDesigner and developed with OracleBuilder.
    Regards
    Basilisco Giorgio

    You can read "About calling reports, displays, and other forms from generated forms" topic in the Designer on-line help. By the way in Forms there are CALL_FORM,OPEN_FORM and NEW_FORM built-ins.
    Helena

  • How can I have a recipient complete duplicate forms?

    I have to send a form to several entities with in my company.  Each entity needs to complete the same form for each of their accounts (ranging from 5-20 accounts per entity). How can i have them duplate the form easily.  I am using Adobe 9 standard.  The form is currently in excel.

    Just have them save it to a new name. It is not clear what you are doing with the form. They can simply be completed and submitted, requiring no saving (only data submitted). What do you mean by duplicate forms as such.

  • Urgent:Error While calling one form from another form

    Hi,
    i am using a form in which zoom functionality is enabled.From this form if i am clicking view->zoom it should open another form which should accept two parameters from the first form.But whenever i am clicking on zoom its giving the following error.
    FRM-47023:No such parameter named G_QUERY_FIND exists in form
    XX_EMPLOYEE_CONVERSION(Name of the form which i am calling from first form)
    When i am clicking 'ok' then it shows the error
    FRM-40105:Unable to resolve reference to item PARAMETER.G_QUERY_FIND
    Eventhough i have developed my form using template.fmb which uses the parameter G_QUERY_FIND why this error is coming?
    Can anyone suggest a solution for this.
    Thanks in advance

    PARAMETER.G_QUERY_FIND is one of he objects in the APPSTAND.fmb. You will need to Subclass all of the objects in APPSTAND.fmb in your custom form. If you do not have a copy of this file in your FORMS60_PATH, I suggest you put a copy there. If you don't have a FORMS60_PATH specified then I would highly suggest adding this entry to your Forms Home in the Registry. Also, you will want all of the libraries in the AU_TOP/Resources folder as well.
    I also suggest looking at the Oracle Applications Developer's Guide (http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115devg.pdf) as it outlines all of the required objects you must have in your form and reports.
    Hope this helps.
    Craig...

Maybe you are looking for

  • Hp g62 and windows 8.1- rebooting loop

    Hi, I have a hp g62-b16st. It's a remarketed product with Intel core i3 2,4, 500GB HDD, 4gb RAM, integrated Intel HD graphics and dedicated ATI Mobility Radeon card (5470 hd I believe). This setting worked pretty well with 64-bit Windows 7 but recent

  • Unable to launch X11 after 10.5.5 update

    Greetings, After updating to 10.5.5 yesterday, X11 refuses to launch. Maybe a font issue? The console message is as follows: 9/17/08 11:51:31 AM org.x.startx[3811] font_cache: Scanning user font directories to generate X11 font caches 9/17/08 11:51:3

  • Calendar gone in list mode with 4.1

    After updating to 4.1 on my 3G iPhone, the appointments are all blank in List mode. They appear briefly then go blank. Going to Day or Month and back to List restores them. Anyone else seeing this or know how to fix?

  • How do i know if phtoshop elements 11 is installed as 64 bit or 32 bit on windows 32

    I installed elements 11 upgrade as download purchased from adobe site windows 7 with quad 4 processor and 8 gb memory and 3 mhz speed plenty of power for 64 bits i was not given option on install as to 32 bit vs 64 bit install and i want 64 bit for t

  • Link and embedded fonts

    Hi, I'm using this to set the general format of my text flow: <TextFlow xmlns='http://ns.adobe.com/textLayout/2008' fontSize='16' textIndent='0' paragraphSpaceAfter='0' paddingTop='5' paddingLeft='0' paddingRight='0' lineHeight='100%' fontFamily='Roc