Component rendering order?

I have components, that depends one on another and so they are sensitive to the order they rendered in.
I have a dataTable, which gets data and sets paging properties in the backed bean.
The paging panelGroup should be rendered or not depending on value in the bean's properties, but what I get is that paging is rendered before dataTable get's value, so property in the bean are not defined yet.
How can I solve that?

May be you should change architecture of your application? Do you remeber about model-view-controller nature of JSF? dataTable is responsible for rendering the table and setting the state is not of its job. I think you should prepare all paging properties, state values, data etc in your backing bean first and then your UI components just render the view using this information from your backing bean.

Similar Messages

  • Changing the component rendering order

    Hi
    I am using jdeveloper 11.1.1.6.0 and i have 3 task flows in my jspx page with one gloabal select one choice. When i change the selection in global select choice, all 3 taskflows need to refetch data and refresh. The task flows are added in the order of T1,T2, T3 in my jspx page.. If , at run time, i got to know that T1 takes 10 seconds, t2 takes 5 and t3 takes 2 seconds, then , can i change the rendering order to t3,t2, t1 programatically? Basically can i do addPartialTarget programatically to render the components in the order i wanted..
    Thanks in advance

    Hi,
    you can't change the rendering order, but the refresh order as you pointed out.
    Frank

  • Customizing ADF component rendering

    Hi,
    I'm trying to override some ADF component rendering in order to provide some clients with a simple application appearance. To do so, in faces-config.xml:
    <pre>
    <render-kit>
    <render-kit-id>oracle.adf.core</render-kit-id>
    <renderer>
    <component-family>oracle.adf.Panel</component-family>
    <renderer-type>oracle.adf.Page</renderer-type>
    <renderer-class>com.mycompany.web.faces.renderer.MyPanelPage</renderer-class>
    </renderer>
    </render-kit>
    </pre>
    I define MyPanelPage class that extends javax.faces.render.Renderer class. I override encodeBegin, encodeEnd, encodeChildren and getRendersChildren methods and it works fine. However, I run into a problem when I want to make the renderer work "in default mode" (the way it ussually works) under certain condition. I suppose that there might be a special render class used by "oracle.adf.core" render kit to render panelPage component, which determines the location of every facet. Anybody know which is this class.
    Thanks in advance.
    Luis Serrano.

    Hi,
    check PageLayoutRenderer
    Frank

  • How to get jsp PageContext in custom component renderer

    Hi,
    How to find PageContext(javax.servlet.jsp.PageContext) form within the custom component renderer class?
    Please help?
    Thanx & Regards
    Milind

    Strictly you're looking which URL has invoked the new request? With other words, you want the referrer?
    If so, doString referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling.Be careful with this, the client has full control over what he/she sends with the headers, so also the referrer. It might be null or changed while you didn't expect that. If you want to be safe, you may consider to send the current URL as a hidden parameter along with the request.

  • Boot Camp Question .... I just bought a 2013 late model Mac Book Pro Retina and am wondering if it is worth installing windows through boot camp. If I install the windows component in order to run an exe file and its component "Declans Korean Flash Cards"

    I just bought a 2013 late model Mac Book Pro Retina and am wondering if it is worth installing windows through boot camp.
    If I install the windows component in order to run an exe file and its component "Declans Korean Flash Cards"... will it make my mac suseptible to viruses overall due to having a windows component? also will it make my mac slower as well

    If you are only going to use one or two window only programs then I wouldn't waste the space.  Try WinonX it allows you to install exe. Files on Mac without installing windows.

  • FM which get component and order status & return prod. orders

    Hi all
    does any one know a FM which get component and order status & return prod. orders?
    thanks

    see the transcation COOIS , i think it will be the details required by you
    in the selection at component level block
    enter the material no(component) , if required plant and storage location and then execute
    hope it will solve ur purpose
    so u can suggest for this TCode still u need a custom program u can submit these details from your z program
    and get the output
    table i am not sure see all these tables AUFK,AFKO,AFPO
    cheers
    s.janagar
    Edited by: janagar sundaramoorthy Nadar on Jul 13, 2009 12:18 PM

  • Any bapi avaialble to fetch component planned orders for header planned ord

    Hi Experts,
                     We have a req where we need to fetch component planned orders for  header planned order .
    In Detail :
      In MD4C tcode (select planned orders tab -> F8 ), when i pass the header planned order like 17474 .
      I get two component planned orders like 16276 16277 and corresponding materials like 12025185 , 12025189.
    We are using   BAPI_PLANNEDORDER_GET_DETAIL  to  fetch  component materials for a planned order .
    similarly any bapi or tables which have this data  to fetch component planned orders.
    Thanks in advance,
    Mani.

    Hope it would be helpful for you:
    Check these user exits.
    CO610001            User exits: Assembly processing                             
    M61X0001            User exits PP-MRP materials planning                        
    M61X0002            User Exits PP-MRP Material Requirements Planning Evaluations
    Thanks

  • JSF component processing and rendering order

    Hi,
    I have a request level managed bean that has two list boxes on it.
    The first is always displayed, and the second should only ever be displayed when the first one has had a value selected in it.
    So, I use something like this:
    <h:selectOneListbox styleClass="selectOneListbox" value="#{moveBean.sourceListIndex}" size="1" onchange="javascript:submit();" >
        <f:selectItems value="#{moveBean.sourceLists}" />
    </h:selectOneListbox>                               
    <h:selectOneListbox styleClass="selectOneListbox" value="#{moveBean.destinationListIndex}" size="1" onchange="javascript:submit();" rendered="#{moveBean.sourceListIndex != null}">
        <f:selectItems value="#{moveBean.destinationLists}" />
    </h:selectOneListbox>                                The second list is correctly only ever displayed when the first one has been selected.
    However, the value of the second list ("#{moveBean.destinationListIndex}") is never applied.
    Given that this is essentially a request mode operation, I'm loathe to make it into a session bean, but I'm not faced with too many options.
    Help!
    Suggestions?
    -Chris

    You have four options:
    1) Make it a session bean.I did half of this. It was the value of the selects that I moved to a session object and kept the getting of the values of the list boxes to a request scope.
    <h:selectOneListbox styleClass="selectOneListbox" value="#{sessionObject.sourceListIndex}" size="1" onchange="javascript:submit();">
        <f:selectItems value="#{databaseBean.sourceLists}" />
    </h:selectOneListbox>The databaseBean is the request scoped object. This has worked for me in this instance.
    2) Put the data to be stored in session in
    context.getExternalContext().getSesisonMap().
    3) Put the data to be transferred from page to page
    in h:inputHidden.
    4) Use componentbindings.How would this solve the problem? An example, please.

  • Component renders more then once

    Hi,
    I'm having a jspx page containing a navigation panel and 3 panelboxes. Depending on the value of a 'Type' attribute defined in the pageDefinition, one of the panelBoxes get rendered.
    *If the value of the 'Type' attribute is 'T': the panelBox renders an inputText component.
    *If the value of the 'Type' attribute is 'S': the panelBox iterates over the details of a certain current row and show them as radiobuttons.
    *If the value of the 'Type' attribute is 'M': the panelBox iterates over the details of a certain current row and shows them as checkboxes.
    Both iterations use the af:forEach component to show the details. Here's the problem:
    Everytime I browse to the last masterrow, there are details in the panelBox which gets rendered more than once and I really don't know why.
    Here's my JSPX code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
              xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="Questions">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <h:form>
              <af:panelPage title="Questions">
                <f:facet name="menu1"/>
                <f:facet name="menuGlobal"/>
                <f:facet name="branding"/>
                <f:facet name="brandingApp"/>
                <f:facet name="appCopyright"/>
                <f:facet name="appPrivacy"/>
                <f:facet name="appAbout"/>
                <af:panelGroup layout="vertical">
                  <af:panelHorizontal id="navigationPanel">
                    <af:commandButton actionListener="#{bindings.Previous.execute}"
                                      text="Previous"
                                      disabled="#{!bindings.Previous.enabled}"/>
                    <af:commandButton text="Next"
                                      disabled="#{!bindings.Next.enabled}"
                                      action="#{backing_Questions.nextQuestion}"/>
                  </af:panelHorizontal>
                  <af:outputLabel value="QUESTION: #{bindings.Question1.inputValue}"/>
                  <!-- SINGLE panelGroup -->
                  <af:panelBox rendered="#{bindings.Type.inputValue == 'S'}"
                               id="panelBox_S">
                    <af:selectOneRadio tip="Please select one item."
                                       binding="#{backing_Questions.singleQuestion}">
                      <af:forEach items="#{bindings.PossibleAnswersByQuestion.rangeSet}"
                                  var="possibleAnswer">
                        <af:selectItem label="#{possibleAnswer.Answer}"
                                       value="#{possibleAnswer.PossibleAnswerId}"/>
                      </af:forEach>
                    </af:selectOneRadio>
                  </af:panelBox>
                  <!-- TEXT panelGroup -->
                  <af:panelBox rendered="#{bindings.Type.inputValue == 'T'}"
                               id="panelBox_T">
                    <af:inputText tip="Please fill in the correct answer."
                                  binding="#{backing_Questions.textQuestion}"/>
                  </af:panelBox>
                  <!-- MULTIPLE panelGroup -->
                  <af:panelBox rendered="#{bindings.Type.inputValue == 'M'}"
                               id="panelBox_M">
                    <af:selectManyCheckbox tip="Please choose all that apply."
                                           binding="#{backing_Questions.multipleQuestion}">
                      <af:forEach items="#{bindings.PossibleAnswersByQuestion.rangeSet}"
                                  var="possibleAnswer">
                        <af:selectItem label="#{possibleAnswer.Answer}"
                                       value="#{possibleAnswer.PossibleAnswerId}"/>
                      </af:forEach>
                    </af:selectManyCheckbox>
                  </af:panelBox>
                </af:panelGroup>
              </af:panelPage>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>Update:
    You can find a screenshot here.

    Thanks for your reply Frank.
    Unfortunately I'm not working with a managed bean. 'possibleAnswer' is the name of each row in the af:forEach. (Instead of row)
    I added following line to each panelBox in my code in order to print the row count.
    <af:outputLabel value="#{bindings.PossibleAnswersByQuestion.estimatedRowCount}"/>After running the page and browsing to the last record of my master table, the page renders like this.
    Regard,
    Koen

  • Shall we fix rendering order?

    Hi all,
    I am using one custom component inside UIComponent like the following way.
    <h:inputText id="a" value="abc">
    <myTld:myCustom/>
    </h:inputText>
    At the time of rendering:
    <myTld:myCustom/> is rendering first and then <h:inputText/>.
    I wanted in a reverse order.
    i.e. <h:inputText/> should be first and then <myTld:myCustom/>.
    Is there any way to achieve this.
    Any help is highly appreciable.
    Regards,
    Ram

    The inputText rendering mechanisme renders first the child and afterwards , the input text it self.
    So do not encapsulate your component in the inputText but outside of it

  • System is not exploding right component during order creation.

    Dear Sir
    I have a material X.The BOM of this material was created with a component P on 02.11.10.Then i changed the BOM on 02.12.10 with a change number whose validity from date is 22.11.10.I change the component from P to Q.When i try to create production order for X the system explodes P instead of Q.What is the reason for that.I think system should explode Q.
    With Regards
    Debasish

    Debasish,
    Please check whether your change number is released? Also check whether the order start date falls before 22.11.2010, you can also verify the BOM explosion date in the order header "Master Data" tab.
    Regards,
    Prasobh.

  • Multiple component renderer in the advanced datagrid in the same column

    Hi
    All I want is to render multiple Components in the same column based on the rowIndex value.
    Let me know if it is possible. Right now I am able to render the same components in the multiple rows in the same column.
    Example for further clarification:
    all in [] needs to be rendered as a compoennt
    Name  Component-to-be-renedered  Chart-component
    xyz       [ Combobox ]                        [piechart based on values]
    abc       [List]                                    [Column Chart based on value]
    Many Thanks,
    Piyush

    <mx:states>
      <mx:State name="firstComponentsSet">
       <mx:AddChild position="lastChild">
        <mx:Button />
       </mx:AddChild>
      </mx:State>
      <mx:State name="secondComponentsSet">
       <mx:AddChild position="lastChild">
        <mx:TextInput />
       </mx:AddChild>
      </mx:State>
             </mx:states>
    <mx:Script>
      <![CDATA[
      override public function set data(value:*):void {
       super.data = value;
       currentState = '';
       // if data requires firstComponetns set
       currentState = 'firstComponentsSet';
       // else
       currentState = 'secondComponentsSet';
      ]]>
    </mx:Script>

  • ADF  graph component rendering issues

    The ADF based application that we are developing requires the use of gauge component to display in data graphical representation. After it is being rendered, we have found that the graph displayed has following issues with different test scenarios..
    Let me explain the issues as following..
    1. Incorrect scaling along Y-axis when the max value is set to 2 and min value 0 and value 2. The graph scaling generated as(0, 0, 1, 2, 2). I would like to mention that data passed to graph are at runtime and this is one of the specific case when I have wrong representaion on the graph. Following is the code excerpt of the graph component implemented in the code
    <dvt:gauge id="gauge2"
    gaugeType="VERTICALSTATUSMETER"
    imageFormat="FLASH"
    maxValue="#{weightGaugeMaxValue}"
    minValue="0"
    value="#{weightGaugeBookings>0?weightGaugeBookings:-1}"
    contentDelivery="immediate"
    visualEffects="NONE"
    imageHeight="#{gaugeImageHeight}"
    inlineStyle="width:25px;">
    Please find the image of the rendered page [ here|http://img571.imageshack.us/img571/1650/scalingissue.png]
    2. When the scaling is above 1000 along Y-axis, the min value(i.e "0") is at the same level as the starting position of histogram bar but in case if it less than min value of scaling is bit up from the starting position the histogram bar.
    Please find the image of the rendered page here .
    Please let me know if you need further information to provide any suggestions to resolve the issues.
    Thanks
    Soumen

    Hi Luis,
    It is possibel to sue DVT Graph in a Java client application. For documentation, you would have to use DVT Javadoc to call java methods on oracle.dss.graph.Graph class.
    I can send you some sample apps off-line if you contact me: katarina obradovic at oracle.
    Hope this helps
    Katia

  • Af:inputText not updated - related to component rendered attribute

    Hello,
    i have a problem with displaying a value from backing bean in af:inputText component if wrapping component was not rendered before request.
    markup looks like this:
    <afh:tableLayout rendered="#{simulationBean.showTable}" >
           <afh:rowLayout>
            <afh:cellFormat>
               <af:inputText value="#{simulationBean.sd}" autoSubmit="true"
                            maximumLength="6" inlineStyle="width:40px"
                            validator="#{simulationBean.validateTableInput}"
                            valueChangeListener="#{simulationBean.tableInputChanged}"
                            id="sd">
               <f:converter converterId="scm.FCConverter"/>
              </af:inputText>
              <af:outputText value="#{simulationBean.sd}" />
           </afh:cellFormat>
       </afh:rowLayout>
    </afh:tableLayout>There's a button on the page attached to the action, which sets showTable variable to false. And a second button with the action, which sets simulationBean.sd variable with different value in backing bean and showTable to true. So first, the inputText is hidden and then showed with some calculated value.
    What is really strange to me, is that af:outputText (added just for that purpose) shows correctly new value, but af:inputText does not, there's not even call for get method for value of inputText.
    If i remove rendered atribute from tableLayout, everything works. I removed all PPR, but the catch is somewhere else.
    Michal

    Thanks for your response, i'll give it a try.
    I found out, that this problem is caused by immediate=true attribute on one of af:selectOneChoice components on page. If I remove it, it works, but i can't understand this behavior. Form submit after selecting a value in combo box is in a different request than button action, so how are these two connected?
    Michal
    Edited by: Michal2 on Jul 21, 2009 7:31 AM

  • MyFaces'  JspTilesViewHandlerImpl   &   dynamic component rendering

    Hi,
    First -- if you're on the myfaces user list, this is a repeat post. Skip!
    Second, I don't mean to offend the RI dev guys with this myfaces post!
    Has anyone dynamically rendered JSF components while using myfaces� JspTilesViewHandlerImpl view handler?
    I have a WebGalileoFaces tabbed panel component. Its listener attaches sub-tabs to it dynamically. The rendering works without using the view handler above. Yet, when I use the myfaces handler, I get an NPE. My listener impl is below.
    The view handler appears to cut off access to the actual UIViewRoot so the form cannot be found. I�ve tried a couple calls directly to the handler using context.getApplication().getViewHandler() yet, none of the methods gave me access to it (well, that I could figure out).
    Ideas anyone?
    Thanks
    Lorinda
        public void processTabSelected(TabSelectedEvent event)
                throws AbortProcessingException {
            context = FacesContext.getCurrentInstance();
            // who sent the event?
            FacesTabbedPanel eventSource = (FacesTabbedPanel) event.getSource();
            UIComponent tabbedPanel = event.getComponent();
            String tabName = tabbedPanel.getId();
            String formId = tabbedPanel.getParent().getId();
            LOG.info("Tab selected:   " + tabName);
            LOG.info("Parent form:   " + formId);
         UIForm form = (UIForm) context.getViewRoot().findComponent(formId);             
    NPE HERE ----  UIPanel panel =  (UIPanel) form.findComponent("childTabsGrid");
    // NOTE:  the childTabsGrid must be used to attach children.
            if (panel == null) {
                LOG.error("PanelGrid   'childTabsGrid'   could not be found.  ");
            } else {
    //  ATTACH SUB TABS
                // clear the childTabsGrid to prevent stacking child tabs      
                panel.getChildren().clear();
              ListSelectionModel selectionModel = eventSource.getListSelectionModel();
               UIComponent newTabbedPanel = createSubTabbedPanel(selectionModel);
               panel.getChildren().add(newTabbedPanel);
            }

    Yes, i have created a complete portal page using a custom portal tab and JspTilesViewHandlerImpl with all components dynamically rendered and inserted by tiles: dynamic partal tabs, i18n implementation for mesages and SelectItems, dynamically change company layout with its own look-and-feel if a requested information belongs to a company (division, department, branch office, etc). There is some abnormality and how i go around to get the solution up and running. I will post the details in myfaces dev list in the next couple days.
    In essence, the navigation page dispatched by JspTilesViewHandlerImpl works properly with all Jsf UI components. However, within this tile definition and its own layout, any fragment inserted by tiles such as portlets in the left/right columns and the display fragment does not have jsf <h:commandButton> and <h:commandLink> correctly picked up the action while <h:outputLink> properly linked to the intended page.
    I temporarily solve the issue to get the portal up and running. However, this is only a temporary solution since it will severly limit a complete integration of Jsf+Tiles. A complete solution needs to be addressed, which i thing myfaces developers can quickly patch it.
    BaTien
    DBGROUPS

Maybe you are looking for

  • Exclude Title in Address End Address in Sap Script

    Hi All, We are using below code to print address of payer in check form but its printing the title also in address, Say Company etc. We donot need this. Is there any addition to this statement to remove this. ADDRESS PARAGRAPH E1 NAME        &REGUH-Z

  • My After Effects wont open!

    It keeps saying "You have at least one output module template that refers to a missing output plug-in. Please check your output module templates

  • How do I install iWork'09 from original DVD on my iPad?

    Just purchased iPad 2. I have MacBook Air and Pro. I purchased iWork´09 DVD from MacStore and would like to install it in my iPad. I´ve seen ¨Numbers¨ on the AppStore, but since I have the DVD I wouldn´t like to pay for it again...

  • Flash builder 4 and flash 10.1 standalone debugger issue on osx

    If I use the standalone flash debugger version (Flash Player Debugger 10.1.52.14) with flash builder 4 on osx 10.6.3 then this happens: I compile the project and the debugger opens. If I click the red stop button then it never closes the debugger. I

  • Information about mounted volumes

    Hi, I am trying to write an Applescript to quickly generate links to files on mounted volumes, which then can be pasted into emails. I would like to have the user select a file/folder on the mounted volume; when he executes the script (either from th