Inappropriate renderings  while dynamically including the same Page twice

Hi,
I am including same page twice with only one backing bean. It works fine when I execute the first included page or the second included page alone. But after executing the first included page and then if I clicked second included page which comes in a modal panel I am getting inappropriate rendering of components. i reckon the form is not initialized properly though the pages are using same backing bean and JSF code. Kindly give me some valuable inputs on this regarding.
Thanks in advance!!

I am very Sorry BaluC!!!
yes I am using h:messages and also reads appserver logs .My application is constant per session(per user). So I am using session scoped bean for all the pages. the page which I had mentioned here loaded twice
1. loaded individually by clicking the link from the left navigation,
2. Also loaded from an other page as a modal panel by clicking a button in that page.
I have used only one jsp code and backing bean which is included using <jsp:include>.
Here is an example code where the page is loaded from the left navigation
Page1:
<html>
<body>
<h:form>
<jsp:include page="sample.jsp" flush="true" />
</h:form>
</body>
</html>Here is an example code where the page is loaded from the modal panel of an other page
In Page2:
<html>
<body>
<h:form>
// Codes of Page2
*//Here I will set some values in the session and pass it to the included page(sample) on a button click and the included page is loaded in a modal panel.*
</h:form>
<rich:modalPanel>
<jsp:include page="sample.jsp"  flush="true"/>
</rich:modalPanel>
</body>
</html>This is the included page
sample.jsp:
<f:verbatim><html>
<body> </f:verbatim>
<f:subview id="samplePageId">
<h:form binding="#{SampleBean.initFom}">
// Codes of sample JSP
</h:form>
<f:verbatim>
</body>
</html>
</f:verbatim>In the initform(HtmlForm)
SampleBean.java
private HtmlForm initForm;
public HtmlForm getInitForm()
        assignPageAttributes(); // void method in the backing bean "SampleBean"
        return initForm;
private void assignPageAttributes()
  //code to get the session values which comes from page2.jsp
if(sessionValues != null)
    // Included page loaded in a modal panel from page2.jsp
else
// Included page loaded from the left navigation if the session values doesnt contains any session values
}In this way I am binding to the form of SampleBean.java. if I used the session scope the h:form component of the included page is shared . If I used request scope means the action is not performed properly. there are the problems i am facing right now.

Similar Messages

  • Display regions dynamically on the same page

    Hi
    I have 2 regions.Top is an interactive editable report.Bottom region is a read only report of the same(top region)
    But when i click search button(based on paramters 1&2, i am not able to see the same number of rows.
    Top region shows 5..But bottom region shows not the same.
    Is there any custom process i need to add ?
    Please advice
    thank
    kp

    >
    http://localhost
    ----------^^^^^^^^^
    uhhh....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "namtax" <[email protected]> wrote in
    message
    news:ej54sr$m7q$[email protected]..
    > im trying to code my tree menu so that when you click on
    the album name
    > the
    > song names would display dynamically on the same page..
    >
    > Heres my page at the moment
    >
    >
    http://localhost/music_explained/forta_explained/blah_7.cfm
    >
    > I have added a href field to the album section of the
    cftree, so that when
    > you
    > click on that a question mark appears after the URL.
    > I have set up a query that selects song names dependant
    to the record
    > which is
    > clicked on the cftree...but i am having
    difficulties...anyone know of a
    > tutorial or anything on this particular topic.
    >
    > Cheers
    >

  • How to make fields grow dynamically within the same page and in column wise

    Hi,
    Like the newspaper format: Where contents of news are shown columns wise.
    We need to make the fields in a page grow column wise within that same page.
    For example, in a page:
    Column 1 Column 2
    ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
    ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
    AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
    ASDFSDGFJASHDGFJKASHDGKFAS |
    ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
    ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
    If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
    If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
    Please suggest a better way to do this in the Adobe Output Designer.
    Thanks and regards,
    Gurunath V.
    E-Mail: [email protected]
    P.S: Please also mail to my e-mail ID.

    Hi Gurunath, if you steel need a solution on this problem, I think this could help:
    1- place two fields on the form (JF01, JF02), one under each other.
    2- Make two subform with them (Sline1, Sline2)
    3- Make the field JF02 expand on same subform.
    4- Modify the preamble in this way:
    ^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
    ^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
    ^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
    In the data file put all the text in JF01.
    -The first line say:
    When JF01 is called, save it's y position (\positionsave,"first_line")
    -The second line means:
    when the text overflow JF01 put it in JF02.
    (cause JF02 overflow on itself all the remaining data is overflowed in JF02)
    -The third line means:
    if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
    In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
    Take care that in this way JF02 cannot anymore go o a new page.
    Hope this help.
    Andrea

  • Link doesn't work on the same page Twice

    I have implemented a module in JSF where the page displays a datatable and one the columns is a command link which when clicked opens up a dialog box to save a CLOB from the DB as a csv on the local desktop.
    All this is working fine.
    The problem is that once the user clicks on one link in the datatable and then the user again clicks on any other link on the page or tries to use the Logout link the page is directed to the welcome page and in the logs the following exception is there.
    01/12 16:19:01 ERROR [com.common.jsf.lifecycle.FrameworkLifecycle] Exception handled for view: /restricted/reportSummary
    com.common.jsf.filter.postback.PostBackValidationException: The view id: /restricted/reportSummary does not match the previous post back view id as well as it is not in the postBackValidationExcludeList.
         at com.common.jsf.filter.postback.PostBackValidationPhaseListener.validatePostBackViewId(PostBackValidationPhaseListener.java:177)
         at com.common.jsf.filter.postback.PostBackValidationPhaseListener.afterPhase(PostBackValidationPhaseListener.java:146)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at com.common.jsf.lifecycle.FrameworkLifecycle.execute(FrameworkLifecycle.java:1123)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The jsf jsp is:
    <h:form>
        <tr:panelHeader styleClass="titleText" text="Report Summary"/>
        <tr:outputFormatted rendered="#{empty reportList}" styleClass="titleText"
                            value="No Match Found"/>
        <h:dataTable rows="31" rowClasses="oddRow,evenRow" styleClass="font_size"
                     binding="#{downloadBean.summaryBindingReport}" value="#{reportList}"
                     var="reportSummary" rendered="#{! empty reportList}">
            <h:column>
                <f:facet name="header">
                    <h:outputText styleClass="titleText" value="Date"/>
                </f:facet>
                <h:outputText value="#{reportSummary.reportDate}">
                    <f:converter converterId="customDateConverter"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText styleClass="titleText columnSpace"
                                  value="File Name"/>
                </f:facet>
                <h:commandLink value="#{reportSummary.reportName}"
                               action="#{downloadBean.downloadcsv}"/>
            </h:column>
        </h:dataTable>
    </h:form>The backing bean is :
    public void downloadcsv()
        throws IOException, ServiceLocatorException, ReportServiceException
        ReportSummary selectedReportId =
          (ReportSummary) summaryBindingReport.getRowData();
        ReportContent reportObj =
          getReportService().getReportContent(selectedReportId.getReportId());
        // Prepare.
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ExternalContext externalContext = facesContext.getExternalContext();
        HttpServletResponse response =
          (HttpServletResponse) externalContext.getResponse();
        BufferedInputStream input = null;
        BufferedOutputStream output = null;
        try
          // Init servlet response.
          response.reset();
          response.setContentType("plain/text");
          response.setHeader("Content-disposition",
                             "inline; filename=\"" + selectedReportId.getReportName() +
          output =
              new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
          char[] strReportContent = reportObj.getReportText();
          Utility.logMessage(Constants.SEVERITY_INFO,
                             "**** Report Content ****" +
                             String.valueOf(strReportContent), this);
          // Write the Report Content as Comma Separated values
          output.write(String.valueOf(strReportContent).getBytes(), 0,
                       strReportContent.length);
          // Finalize task.
          output.flush();
        finally
          // Close streams.
          close(output);
          close(input);
        // Inform JSF that it doesn't need to handle response.
        // This is very important, otherwise you will get the following exception in the logs:
        // java.lang.IllegalStateException: Cannot forward after response has been committed.
        facesContext.responseComplete();
      private static void close(Closeable resource)
        if (resource != null)
          try
            resource.close();
          catch (IOException e)
            e.printStackTrace();
      public void setSummaryBindingReport(HtmlDataTable summaryBinding)
        this.summaryBindingReport = summaryBinding;
      public HtmlDataTable getSummaryBindingReport()
        return summaryBindingReport;
      }

  • Avoid Math.random() from looping the same number twice?

    I'm trying to play a random gallary image by making it stops at different frame every few seconds, and the actions is completely random.
    The problem is, since there are only 5 different images(5 frames) I'm displaying, there is a high probability that it stays at the same frame, how do I avoid that? Like avoid staying at the same page twice, if not run the function again....?
    setInterval(createItems,throwItems);
    var RandomImg:randomImg =new randomImg();
    RandomImg.y=100;
    RandomImg.x=180;
    RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);//generate random value between 1-5
    addChild(RandomImg);
    Thanks

    How do I keep track of the random value, like what value should I put within the if to compare?
    I try modify it a little, and wrap it within an if(), and use preValue to track down the previous frame, am I doing it right?
    setInterval(createItems,throwItems);
    var preValue:Number;
    function createItems():void
         var RandomImg:randomImg =new randomImg();
         var randomFrame= Math.floor(Math.random()*(1+5-1))+1; //generate random value between 1-5
         RandomImg.y=100;
         RandomImg.x=180;
         RandomImg.gotoAndStop(randomFrame);
         if(preValue == randomFrame)
              RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);
              addChild(RandomImg);
              preValue = randomFrame;
         }else
                        addChild(RandomImg);
                        preValue = randomFrame;

  • Is there a way to automatically add another of the same page while a form is being filled?

    Is there a way to automatically add another of the same page while a form is being filled?
    I have a two-page form of which the second page is essentially a spreadsheet analog.  Often, there is need for for more lines than are available on the page.  Is there a way in which to add another or even multiple copies of the second page? 
    Thanks ahead...
    TG

    You can do that with a dynamic XFA form created in LiveCycle Designer, which comes with Acrobat Pro for Windows. For more information, you can ask over at the LiveCycle Designer forum.

  • Reusing the same jsp include multiple times on the same page

    If someone knows a way out of this
    I'd like to print out 2 records of the same data type I have a JSP include which does that.
    Now my issue is how to use the same include twice on the same page
    Ideally I would like to do the following:
    <%
    request.setAttribute("person", person1);
    %>
    <jsp:include page="./person.jsp"/>
    <%
    request.setAttribute("person", person2);
    %>
    <jsp:include page="./person.jsp"/>
    And in person.jsp
    I could have
    <h:inputText name=#{person.name}/>
    This fails in the updateModel phase - And I realize why it's failing. There really is no person managed bean.
    It's just that I am at a kind of loss as to what I need to do now -
    Am missing something or is it just impossible to use jsp:includes the way Ive tried to?

    I do not understand, have you created a backing bean named person? Have you defined it in your config file?
    Please copy/paster your backing bean code and config file.
    Normally, you can set directly the value of the bean by using some java code in your jsp instead of setting the request attribute.

  • I can no longer (since upgrading to the latest firefox) open up multiple tabs of the same page (something I need to be able to do when emailing and referencing multiple emails while writing one email). The only option it gives me is to 'switch to tab'.

    Question
    I can no longer (since upgrading to the latest firefox) open up multiple tabs of the same page (something I need to be able to do when emailing and referencing multiple emails while writing one email). The only option it gives me is to 'switch to tab'.

    I'll try to make this clear. I USED to be able to left click on a hyper link and the hyper link would open in a NEW tab. Now for some unknown reason the hyper link by default opens in the same tab (window). I have to right click the hyper link in order for it to open in a NEW tab. (Yes, my 'tools'> 'options'> 'tabs' are set to "open new windows in a new tab." (Please no answers telling me to get rid of the Ask toolbar because I don't have one.) Thank you.

  • Show another page in the same page

    Hello
    I have the following case :
    Trinidad Page it includes A trinidad table of urls and in the same page i have an iframe .when the user select a row from the table :
    - the screen is submitted and display the selected URL in the iframe.
    What is the best way to do that.
    Regards

    Hi, The following assumes that you are using 'single' as the selection strategy for the table.
    try the following:
    1. declare a global variable iframeSource with getter and setter methods.
    2. set the autoSubmit property of the table to true
    3. add a selectionListener method to the table; and in that write the following code
    RowKeySet keys = table.getSelectedRowKeys();
    Iterator iterator = keys.iterator();
    while(iterator.hasNext()){
    Your-RowObject-Containing-URL urlobject =(Your-RowObject-Containing-URL) iterator.next(); // may be the object is simple string in your case.
    iframeSource=urlobject.getURL();
    4. wrap your iframe in a trinidad's panelGroupLayout or any other container component to make use of PPR :
    &lt;tr:panelGroupLayout partialTriggers="table-id" &gt;
    &lt;iframe src="#{your-backing-bean.iframeSource}" .... .... .... /&gt;
    &lt;/tr:panelGroupLayout&gt;
    With that, when ever a row is clicked in the table the content of the iframe gets updated with the content from the selected url.
    Edited by: saasira on Feb 19, 2009 5:25 AM

  • Multiple (updatable) details in the same page.

    Hello,
    I tried to put two updatable details in the same page and got the error
    "Updatable SQL Query already exists on page 11. You can only add one updatable SQL query per page. Select a different page"
    So having more than one updatable detail is not allowed in apex ?
    I have a master table with three details. Should I create one page for each one of them ?
    Thanks in advance
    Bye
    Nicola

    What you want to use are called collections. Here is a simple collection example:
    The process goes in 4 steps: gather the data, display the data, update based on user input, then write the changes. Each step requires it's own piece of code, but you can extend this out as far as you want. I have a complex form that has no less than a master table and 4 children I write to based on user input, so this can get as complex as you need. Let me know if anything doesn't make sense.
    First, create the basic dataset you are going to work with. This usually includes existing data + empty rows for input. Create a Procedure that fires BEFORE HEADER or AFTER HEADER but definitely BEFORE the first region.
    DECLARE
      v_id     NUMBER;
      var1     NUMBER;
      var2     NUMBER;
      var3     VARCHAR2(10);
      var4     VARCHAR2(8);
      cursor c_prepop is
      select KEY, col1, col2, col3, to_char(col4,'MMDDYYYY')
        from table1
        where ...;
      i         NUMBER;
      cntr      NUMBER := 5;  --sets the number of blank rows
    BEGIN
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_id, var1, var2, var3, var4;
          EXIT WHEN c_prepop%NOTFOUND;
            APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => v_id,  --Primary Key
            p_c002 => var1, --Number placeholder
            p_c003 => var2, --Number placeholder
            p_c004 => var3, --text placeholder
            p_c005 => var4 --Date placeholder
        END LOOP;
      CLOSE c_prepop;
      for i in 1..cntr loop
        APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => 0, --designates this as a new record
            p_c002 => 0, --Number placeholder
            p_c003 => 0, --Number placeholder
            p_c004 => NULL, --text placeholder
            p_c005 => to_char(SYSDATE,'MMDDYYYY') --Date placeholder
      end loop;
    END;Now I have a collection populated with rows I can use. In this example I have 2 NUMBERS, a TEXT value, and a DATE value stored as text. Collections can't store DATE datatypes, so you have to cast it to text and play with it that way. The reason is because the user is going to see and manipulate text - not a DATE datatype. If you are using this as part of a master/detail form, make sure that your SQL to grab the detail is limited to just the related data.
    Now build the form/report region so your users can see/manipulate the data. Here is a sample query:
    SELECT rownum, apex_item.hidden(1, c001),  --Key ID
         apex_item.text(2, c002, 8, 8) VALUE1,
         apex_item.text(3, c003, 3, 3) VALUE2,
         apex_item.text(4, c004, 8, 8) VALUE3,
         apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_COLLECTION'This will be a report just like an SQL report - you're just pulling the data from the collection. You can still apply the nice formatting, naming, sorting, etc. of a standard report. In the report the user will have 3 "text" values and one Date with Date Picker. You can change the format, just make sure to change it in all four procedures.
    What is critical to note here are the numbers that come right before the column names. These numbers become identifiers in the array used to capture the data. What APEX does is creates an array of up to 50 items it designates as F01-F50. The F is static, but the number following it corresponds to the number in your report declaration above, ie, F01 will contain the primary key value, F02 will contain the first numeric value, etc. While not strictly necessary, it is good practice to assign these values so you don't have to guess.
    One more note: I try to align the c00x values from the columns in the collection with the F0X values in the array to keep myself straight, but they are separate values that do NOT have to match. If you have an application you think might get expanded on, you can leave gaps wherever you want. Keep in mind, however, that you only have 50 array columns to use for data input. That's the limit of the F0X array even though a collection may have up to 1000 values.
    Now you need a way to capture user input. I like to create this as a BEFORE COMPUTATIONS/VALIDATIONS procedure that way the user can see what they changed (even if it is wrong). Use the Validations to catch mistakes.
    declare
      j pls_integer := 0;
    begin
    for j1 in (
      select seq_id from apex_collections
      where collection_name = 'MY_COLLECTION'
      order by seq_id) loop
      j := j+1;
      --VAL1 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j));
      --VAL2 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j));
      --VAL3 (text)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j));
      --VAL4 (Date)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j));
    end loop;
    end;Clear as mud? Walk through it slowly. The syntax tells APEX which Collection (p_collection_name), then which row (p_seq), then which column/attribute (p_attr_number) to update with which value (wwv_flow.g_f0X(j)). The attribute number is the column number from the collection without the "c" in front (ie c004 in the collection = attribute 4).
    The last one is your procedure to write the changes to the Database. This one should be a procedure that fires AFTER COMPUTATIONS AND VALIDATIONS. It uses that hidden KEY value to determine whether the row exists and needs to be updated, or new and needs to be inserted.
    declare
    begin
      --Get records from Collection
      for y in (select TO_NUMBER(c001) x_key, TO_NUMBER(c002) x_1,
                 TO_NUMBER(c003) x_2,
                 c004 x_3,
                 TO_DATE(c005,'MMDDYYYY') x_dt
               FROM APEX_COLLECTIONS
               WHERE COLLECTION_NAME = 'MY_COLLECTION') loop
        if y.x_key = 0 then  --New record
            insert into MY_TABLE (KEY_ID, COL1,
                COL2, COL3, COL4, COL5)
              values (SEQ_MY_TABLE.nextval, y.x_1,
                  y.x_2, y.x_3, y.x_4, y.x_dt);
        elsif y.x_key > 0 then  --Existing record
            update MY_TABLE set COL1=y.x_1, COL2=y.x_2,
                 COL3=y.x_3, COL4=y.x_4, COL5=y.x_dt
             where KEY_ID = y.x_key;
        else
          --THROW ERROR CONDITION
        end if;
      end loop;
    end;Now I usually include something to distinguish the empty new rows from the full new rows, but for simplicity I'm not including it here.
    Anyway, this works very well and allows me complete control over what I display on the screen and where all the data goes. I suggest using the APEX forms where you can, but for complex situations, this works nicely. Let me know if you need further clarifications.

  • How do I combine text and photos on the same page in iPhoto using photobook

    How do I combine text and photos on the same page in iPhoto using photobook?

    You mean while creating a book in iPhoto?  Click on the layout button while viewing a page and select the layout that includes both text and photos.  Most themes will have those options.
    OT

  • PASSING DATA FROM FORM INTO REPORT (how to on the same page)

    Hello everybody
    yes, i know it is built in a two pages design where the first holds the form and the second the report, but I want it both on the same page so that one can see what he has on the report while adds his own row to the table. Well I could do creating a form and then editing the page and then add another region. Alright. But then i dont know how to relate them together so that the data pass from the form to the report.
    Besides, the Form for filling the data needs to pass them to two separate tables, because one table contains the particulars of the location and the other the comments about each store. Easy to do that on PHP and mysql but here I am lost.
    Second thing that is driving me nuts is that I created a table named location so as to street postcode for a store, and another one for evaluation so that customers or workers add a a row evaluating services etc.
    Well, I am trying to create that form i first talked about that would hold all the fields and I am doing it out of a SQL query that picks the definitions from both tables. My XE is completely empty from any leftovers of other applications etc. I make the equijoin alright
    select l.loc_id, l.company, l.postcode, l.street,l.town, e.eval_id, e.loc_id, e.locum_reg, e.date_booked, e.items, e.addicts, e.number_staff, e.attitude_staff, e.organisation, e.stock_filing, e.agency
    from location l, evaluation e
    where l.loc_id = e.loc_id
    and i get this annoying error all the time
    ORA-20001: Unable to create form on equijoin. ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" has same name as existing application-level item. ORA-0000: normal, successful completion
    well, if that form is made up of both tables, it will definitively have to have something in common with them! how is the item name suppose to have another name? it is made with the wizzard so supposedly the wizzard should know it but I have tried for two days 14 hours each day.
    any indication as to how solve this would be priceless for me
    thank you
    Alvaro

    This should be so:
    A person goes to work to place A
    At the end of the day, he or she goes into the web fills the form and clicks the botton. Then, he or she has added a row to the form. As simple as that. But bear in mind that that form is comprised of data about the address and the comments, which are completely different entities, and not all elements of each entity is to appear in the report. That is why they have to go to two tables on the background and then the report pick from each table what it wants to show publiclly.
    What I am actually trying to do is passing the values from the form into the two separate tables Location and Evaluation. Then I have already placed a select query under the report and I have seen that it updates itself as I manually filled the two tables so this process works fine. What I need is, instead of filling the tables manually as I am doing, fill them through the completion of the textfields of the form. This is so because not all the fields have to be shown on the report, for example, the person reporting will remain anonimous and that is something I am able to do by simply not including him in the select query of the report.
    I am like exploring now the edit page possibilities and indeed I have discovered that the button of the Form that says create is associated with a Insert request on the database. Also i have seen that the way this works is by something like this P3_POSTCODE, &P3_POSTCODE where P3 is the item and &P3 is the value that is in the textfield associated with that item name.
    Edited by: user12155340 on 14-Nov-2009 11:05

  • Display search results on the same page

    I have a text box with a submit button to the left. Once the user enter the a number in the search field my select query executes.
    My question is how can i display the reult on the same page? I have been able to display results on the same page but my table headers are also displayed at the same time while user is trying to enter the item number.
    i tried using <c:if> but its not wokring, Any help?
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <html>
    <head>
    <title>VDP QOH UPDATE</title>
    </head>
    <body>
    <spring:bind path="quantityOnHand">
      <FONT color="red">
        <B><c:out value="${status.errorMessage}"/></B>
      </FONT>
    </spring:bind>
    <P>
    <FORM name="quantityOnHandForm" method="POST" action = ''>
    <CENTER>
    <table BORDER=0  CELLSPACING=0 CELLPADDING=5 WIDTH=600>
        <tr>
              <td COLSPAN=2 BGCOLOR="#003366"><P ALIGN=CENTER><B><FONT COLOR="#FFFFFF" SIZE="2" FACE="Arial,Helvetica,Univers,Zurich BT">Query</FONT></B>
              </td>
         </tr>
         <tr>
              <td WIDTH=215 BGCOLOR="#336699"><P ALIGN=RIGHT>
                  <B>
                     <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">
                        Item No:
                      </FONT>
                   </B>
              </td>
              <td ALIGN=LEFT><spring:bind path="quantityOnHand.itemNumber">
                      <input type="text" maxlength="30" size="10" name='<c:out value="${status.expression}"/>' value='<c:out value="${status.
                             value}"/>'>
        <td><font color="red"><c:out value="${status.errorMessage}" /></font>    </td>
           </spring:bind>
              </td>
         </tr>
        <tr>
            <td BGCOLOR="#336699" WIDTH=215> </td>
            <td>
                <input type="submit" name="Submit" value="Submit" >
           </td>
       </tr>
    </table>
    </center>
    </form>This is basically all of my search jsp code. Now i've added my other code after </form> to display the results.
    </form>
    <table BORDER=0  CELLSPACING=0 CELLPADDING=5 WIDTH=600>
        <tr>
              <td COLSPAN=2 BGCOLOR="#003366"><P ALIGN=CENTER><B><FONT COLOR="#FFFFFF" SIZE="2" FACE="Arial,Helvetica,Univers,Zurich BT">Quantity On Hand Search Results</FONT></B>
              </td>
         </tr>
         </table>              
    <c:choose>
    <c:when test="${empty qohInfo}">
             <div align="left" style="color:#336699;"><b>No records Found.<br><br></b></div>
    </c:when>
    <c:otherwise>
         <table width="602" height="92">
              <tr>   
                   <th ALIGN=CENTER BGCOLOR="#336699" width="110" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Item Number</FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="115">
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Vendor Id </FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="120">
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> Inventory Date</FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="130" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Update Date Time </FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="100" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Quantity</FONT>
                       </B>
                   </th>
              </tr>
              <c:forEach var="qohInfo" items="${qohInfo}" varStatus="loop">
        <tr BGCOLOR="#99CCFF">
          <TD align="center"><c:out value="${qohInfo.itemNumber}"/></TD>
          <TD align="center"><c:out value="${qohInfo.vendorId}"/></TD>
          <TD align="center"><c:out value="${qohInfo.inventoryDate}"/></TD>
          <TD align="center"><c:out value="${qohInfo.updateDateTime}"/></TD>
          <TD align="center"><c:out value="${qohInfo.quantity}"/></TD>
        </TR>
      </c:forEach>
      </table>
      </c:otherwise>
      </c:choose>As you can see that the table headers are always shown but i would like to hide the table headers and everything until and unles user clicks on submit button. Any help is appreciated.

    Thanks balusc for your reply. I was curious how would you have used the c:if statement to display the table and hide the table if a user have not clicked the button.
    I wanted to stay away from javasscript

  • Two tabs for the same page

    Hello,
    I have been spending the whole morning trying to find a solution for this problem but did not find any either by myself or parsing the forum messages.
    I am building an application with a two level tab for the navigation.
    Everything is fine as long as the pages referenced by the tabs have a different number.
    My problem is that i use the same dynamic page (let say 40) to be accessed through two different tabs.
    e.g Parent tab is labelled "Parent"
    Two other tabs are created linked to parent tab "Parent" and those are labelled "Action1" and Action2"
    Selecting "Action1" will result in rendering the page 40 with a parameter (let say page_type) set to the value 1.
    Selecting "Action2" will result in rendering the *same* page 40 with a parameter (let say page_type) set to the value 2.
    For the parent tab "Parent" let say that the default is to select "Action1"
    Is there any solution to implement that kind of behaviour?
    I have tried to create redirecting pages (empty page and a single branch) to achieve this but i always get stucked when trying to have page 40 displaying the proper tabs and parent tab.
    Thanks in advance for any help.
    Daniel

    Hi Andy,
    Thanks for your answer!
    Whilst it is fairly straightforward to create multiple tabs for the same page (this can be done through Shared Components, Tabs and click Add on the standard >>tabs bar, enter in any page number you like), the functionality of tabs does not provide the means to set item values. Additionally, as both tabs would be >>"current" for your page 40, once you've clicked on one, you can not click on the other.Yes this is exactly what i discover once my page 40 has been built.
    There may be ways to do what you need, but as tabs are really there for navigation purposes only, this may become rather complicated. What is the difference >>between Action1 and Action2? Can this be achieved in another way? Have you considered switching to lists for navigation (where you can set item values)?In fact, i can still duplicate this page and have a few changes within each new page. But as a matter of code design as both pages have around half in common, i wanted to share most of the items (build a single page) and then play for a few additional items with conditions encompassing the page type i have set before rendering the page.=> Most items in common, a few others whose display is conditionnal. For the end user, it looks like two different pages because in their business process the "Action1" and "Action2" are clearly different.
    I use lists in this application on the home page to reach most of the application pages but while some users prefer to use the links on the home page and go back to home page, other would like to use the tabs and a number of them use both navigation mechanisms.
    Sorry if it is not quite clear (english is not my mother tongue).
    Regards,
    Daniel

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

Maybe you are looking for