Copying / Cloning component tree elements to different pages

I am copying a DataTable element to a session bean so that I can use it on a different page.
On the new page I have a DataTable tag in the JSP which is bound to the DataTable in session. However, only the attributes of the DatatTable element are rendered (e.g. <DIV style='height:999px; width:99px;'>, not the children components (e.g Columns).
I presume the problem is because most of the references in the session bean component refer to a different view. Am I correct in my thinking? If so, is there a way to clone? (I know it is not supported in UIComponent)?
PS. Fundamentally, I am have many pages with tabbed or scrollable datatables. I want to 'send' these to one generic page. Here I can disable the scroll bar / pages, so that all rows are visible and then the user can print the table content.
Edited by: lafual on Feb 6, 2008 3:34 AM

Thinking this blog would indicate we would need to create a new viewset for the additional view on the window for CatDDLB
then figure out how to get / code the data to the window?
/people/vikash.krishna/blog/2009/10/08/crm-70-how-to--5b-create-an-overview-page-with-content

Similar Messages

  • How to set partial trigger of the component which is in different Page Fragements

    I want to set the partial trigger of a ADF control which is in different page fragment.
    Would you please help me regarding this.

    Hi,
    so fragments on a page are within regions and your requirement is to refresh a component in region A in response to an action on a component in region B. If this is correct, then the choice is
    1. use contextual events
    2. use a managed bean that is injected to region B to notify the parent page (manged bean in view scope) about a component change. Now this parent page can refresh the region B container performing e.g. a PPR or a full refresh
    Frank

  • Component tree destroyed when it should not be

    I have a custom component which derives from UICommand, clicking on which pops up a new window ... i have a listener associated with this component ... within this listener I call the setAction(outcome) method on the associated UICommand component with an outcome string (whose navigation rule is defined in faces-config.xml) ... This works properly in that the new window opens with the correct JSP.
    However, in doing this, JSF destroys the component tree of my original page ... Hence when I perform some operation on the original page (after opening the new window), it constitutes a new tree instead of using the tree which was already created for this page ...
    How do I solve my problem? - I'd like the original component tree to not get destroyed as well as work with the new window.
    Thanks.

    Currently, JSF only saves the current tree (it does
    not save more than one tree). A new State Saving
    proposal is being developed which will
    address the problem you are having.
    -rogerWow, that's a pretty significant change. Can you give us any hints about other major differences currently under consideration for the next revision?
    Thanks,
    Jonathan

  • How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?

    With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
    Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
    Does anyone have a solution?
    Thanks in advance.

    Thank you very much. I'll be waiting for you message.
    Messaggio originale----
    Da: [email protected]
    Data: 26/01/2015 17.56
    A: "Umberto Gangi"<[email protected]>
    Ogg:  How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        created by Gilad D (try67) in Creating, Editing &amp; Exporting PDFs - View the full discussion
    Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, &amp; "Stop Following"
         Start a new discussion in Creating, Editing &amp; Exporting PDFs by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • t:tree component is not rendering tree structure for my page

    Dear dudes,
    I want to create a simple tree structure in my jsf page backed by a backing bean.
    But my jsf page is getting executed but my tree is not getting displayed.
    my jsf page:<ui:composition xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:rich="http://richfaces.ajax4jsf.org/rich"
         xmlns:t="http://myfaces.apache.org/tomahawk"
         xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
    <f:view>
         <html>
              <body>
                   <h:form>
                        <t:tree id="tree" value="#{mytreeBean.myTree}" styleClass="tree"
                             nodeClass="treenode" selectedNodeClass="treenodeSelected"
                             >
                        </t:tree>
                   </h:form>
              </body>
         </html>
    </f:view>
    </ui:composition>Mybacking bean:
    package org.test.tree;
    import java.util.Iterator;
    import java.util.List;
    import org.apache.myfaces.custom.tree.DefaultMutableTreeNode;
    import org.apache.myfaces.custom.tree.model.DefaultTreeModel;
    import com.srit.framework.web.BasePage;
    import com.srit.healthcare.common.lookupentity.repository.ILookupRepository;
    import com.srit.healthcare.common.tree.domain.RcareTree;
    public class MyTreebean {
         private DefaultTreeModel myTree;
         public DefaultTreeModel getMyTree() {
              return myTree=getTreeModel();
         public void setMyTree(DefaultTreeModel myTree) {
              this.myTree = myTree;
         /*public MyTreebean() {
              DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
              DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
              root.insert(a);
              DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
              root.insert(b);
              DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
              root.insert(c);
              DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
              a.insert(node);
              node = new DefaultMutableTreeNode("a2 ");
              a.insert(node);
              node = new DefaultMutableTreeNode("b ");
              b.insert(node);
              a = node;
              node = new DefaultMutableTreeNode("x1");
              a.insert(node);
              node = new DefaultMutableTreeNode("x2");
              a.insert(node);
              myTree = new DefaultTreeModel(root);
         public DefaultTreeModel getTreeModel() {
              DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
              DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
              root.insert(a);
              DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
              root.insert(b);
              DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
              root.insert(c);
              DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
              a.insert(node);
              node = new DefaultMutableTreeNode("a2 ");
              a.insert(node);
              node = new DefaultMutableTreeNode("b ");
              b.insert(node);
              a = node;
              node = new DefaultMutableTreeNode("x1");
              a.insert(node);
              node = new DefaultMutableTreeNode("x2");
              a.insert(node);
              return myTree = new DefaultTreeModel(root);
    }Also i've configured my tomahawk-taglib file in my web.xml .
    My backing bean is configured in my faces-config.xml
    But i'm not able to get my tree structure in my page .
    Any help would be appreciated.
    Regards

    Dear akash,
    yes i'm seeing the jsf tags <t:tree>
    But when i modify my jsf page , in my configuration files i'm getting the following errors:
    In web.xml
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
    </web-app>
    error message:  cannot find the declaration of element web-apps
    error message: failed to read schema document http://java.sun.com/xml/ns/j2ee             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd  because 1) couldnot find the document 2) the document could not be read 3) the root element of the document is not <xsd:schema>In another configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
                http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
    Error: cannot find the declaration of element 'beans'I'm a novice to JSF technology and plz guide me properly.

  • Creating Tree Menu with each node referring to a different page

    Hi,
    I've got a Tree with I would like to refer to a different page to each single leaf.
    Tree is the following :
    select "ID_MENU" id,
    "MENU_UNDER" pid,
    "MENU_NAME" name,
    'f?p=&APP_ID.:&app_page_id.:&SESSION.::NO::FSP_AFTER_LOGIN_URL:'||"ID_MENU" link,
    null a1,
    null a2
    from "#OWNER#"."MENU"
    How is possible to refer each single page, stored into the MENU table (wihich contain the menu) to a different node leaf ?
    MENU Table is the following :
    create table MENU
    ID_MENU NUMBER not null,
    MENU_NAME VARCHAR2(500),
    MENU_UNDER VARCHAR2(500),
    PAGE_LINK VARCHAR2(500)
    Thanks,
    Ivan

    Is your MENU table a hierarchical table or just flat. It looks flat, because it doesn't seem to have a foreign key to it's parent menu. Do you just have two levels?
    BTW, you normally would use PAGE_LINK in your link column.
    Why not create a hierarchical table as follows:
    create table MENU
    ID_MENU NUMBER not null,
    MENU_NAME VARCHAR2(500),
    PARENT_ID_MENU NUMBER,
    PAGE_ID NUMBER
    );PARENT_ID_MENU would contain the ID_MENU of the parent menu, for the root menus it would be NULL.
    Then your query would look as follow:
    select ID_MENU        AS id,
         , PARENT_ID_MENU AS pid
         , MENU_NAME      AS name
         , CASE
             WHEN PAGE_ID IS NOT NULL THEN 'f?p=&APP_ID.:'||PAGE_ID||':'||:SESSION
             ELSE NULL
           END            AS link
         , null           AS a1
         , null           AS a2
    from "#OWNER#".MENUPatrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How do i add one slide of a different pages document to a master copy?

    I have a master copy full of work created on pages that i have worked on for the past two years. However, the other day i made a pages document separate from the master copy as it had to be marked on its own. Now that it has been marked and corrected i need to add it back to my master copy. As they are both pages documents is there anyway of doing this?

    In Pages '09 copy and paste the Thumbnails.
    In Pages 5 you will just have to copy and paste the content and fix up the layout in the new document.
    Peter

  • Validation error corrupts component tree?

    I've got a strange problem trying to use validation on input fields.
    The basic setup is as follows:
    I've got a page divided into two parts with separate h:form tags, the one holding a dataTable with some elements and the other showing the element details in inputFields once an item is selected in the dataTable via a commandLink. A commandButton on the detail side allows you to update the values of the selected item which is being reflected in the dataTable on reload. So far so good.
    Here comes the strange part:
    All the inputFields are marked required. Now once you leave a field empty and try to submit the form, you get a validation error as expected. BUT if you now select a different element from the dataTable, ONLY the field whose validation formerly failed is being updated, the other fields still show the same value as before. The backing bean method that belongs to the commandLink is being executed, and the underlying data object of the input fields is being set properly, only the values in the component tree aren't updated. This behaviour persists until you enter a valid value in the formerly invalid input field and submit. Debugging shows that as long as at least one field has had validation errors, only the getter of these backing beans properties are being invoked during render response phase, as opposed to the "normal" case where the getters of all the backing beans properties are being called.
    For some reason, the render response phase seems to ignore the other components in the component tree when there was some validation error on one or more fields.
    Another interesting observation:
    This is the behaviour if I don't specify an action attribute in the commandLink selecting an element from the dataTable, as I want to return to the same page again. But if I define a navigation case that brings me to the same page and put that into the action attribute, the problem doesn't occur. Unfortunately this is no option for me, as I'm aiming to do all this with ajax.
    I've created a simple example so you can try out yourself:
    test.jsp:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html>
    <head>
    <title>validator test</title>
    </head>
    <body>
    <f:view>
         <h:form id="form1">
              <h:dataTable id="table" value="#{bean.datas}" var="data" binding="#{bean.table}" border="1">
                   <h:column>
                        <h:commandLink actionListener="#{bean.selectData}" value="#{data.string1}" />
                   </h:column>
                   <h:column>
                        <h:outputText value="#{data.string2}" />
                   </h:column>
              </h:dataTable>
              </h:form>
         <hr />
         <h:form id="form2">
              <h:inputText value="#{bean.data.string1}" id="field1" required="true" />
              <h:inputText value="#{bean.data.string2}" id="field2" required="true"/>
              <h:commandButton value="submit" />
         </h:form>
    </f:view>
    </body>
    </html>Bean.java:
    needs to be defined in faces-config.xml as bean "bean" with session scope
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.event.ActionEvent;
    public class Bean {
         private Data data;
         private List<Data> datas;
         private HtmlDataTable table;
         public Bean() {
              datas = new ArrayList<Data>();
              datas.add(new Data("data1value1","data1value2"));
              datas.add(new Data("data2value1",""));
         public void selectData(ActionEvent event) {
              data = (Data)table.getRowData();
         public List<Data> getDatas() {
              return datas;
         public Data getData() {
              return data;
         public void setData(Data data) {
              this.data = data;
         public HtmlDataTable getTable() {
              return table;
         public void setTable(HtmlDataTable table) {
              this.table = table;
         public class Data {
              private String string1;
              private String string2;
              public Data(String string1, String string2) {
                   this.string1 = string1;
                   this.string2 = string2;
              public String getString1() {
                   return string1;
              public void setString1(String value) {
                   string1 = value;
              public String getString2() {
                   return string2;
              public void setString2(String value) {
                   string2 = value;
    }My system setup:
    WinXP Professional
    JDK 1.6.0-b105
    Tomcat 5.5.20 (also tried 6.0.7)
    JSF RI 1.1.02_b08 (also tried 1.2_04-b10-p01, different but anyway not expected behaviour with MyFaces 1.1.5)
    Thanks for any input,
    Harry.

    Is there noone here who can tell me if this is behavior like specified or if I miss some point?
    A possible solution seems to be telling JSF programmatically to rebuild the view root. Does anyone if this is possible?

  • How to use the same element in different photoshop files?

    It occurs to me often that I use the same element in different photoshop files, a header or footer shown in the example below. So when the footer changes in one document, I need to change this footer in every other single document.
    Is there a possibility to use some kind of template, one single document,  that can be placed in different files , which is still editable afterwards?
    Thanks in advance.
    I'm using Photoshop CS6

    In a single document you can have several pages and these pages may have headers and footers that share smart objects.  If you replace the contents of the an embedded smart object on one page page that is shared on an other page the pages you will see both pages contents are changed. For they share the common object.   It is also possibly to have independent smart object layers. It depends how you create the layers in the single document.
    Example one sharing a smart object hi-light a smart object layer and use menu layer>Duplicate Layer... This will create a second smart object layer that share a common smart object. Each layer has is own associated transform. Do it again and you will have three layers the share a common smart object. So you can use each layer associated transform to position and size the layers contents. Make a picture package for example. When you hi-light any of the three smart layers and you use menu Layer>Smart Objects>Replace Contents... all three layers contents will be replace with the new smart object.  Care must be taken to replace the smart object with an identical size object for only the object is replaced the three associated transform for the three layers are not replaced or changed.
    Example two independent smart objects  hi-light a smart object layer and use menu layer>Smart Objects>New Smart Object via Copy.  This will  create a second smart object layer that has it own embedded smart object copy.  Do it again and you will have three all have independent embedded smart object that are identical.  However they do not have to remain identical.  For example if the first smart object layer was created by using ACR to open a RAW file as a smart object layer the embedded object is a copy of the raw file and its associated RAW conversion settings.  Double clicking on one of the smart object layers and you will see ACR open on its embedded RAW file with the embedded RAW conversion setting.  Changing these settings will update the layer smart object content with new ACR setting and pixel when you click OK in ACR. Repeat for the third and you will find you have three different raw conversions in Photoshop you can mask and blend together to bring out detail.
    I think what your missing is that a smart object contains a copy of the original object.  Changing the original after creating a smart object layer in document will not effect the smart object layer at all. Its independant from the original having a copy of the original. Only changes to the smart object layer and its embedded smart object effect smart object layers.

  • 2 Trees on the same Page

    Hi!
    I'm using Apex Version: 4.2.1.00.08
    I created a page with 2 tree regions. Both trees use different items and different queries. The first tree is displayed correctly. But the second one just contains the first item, if I don't display the first on via customizing the page or if I change the order of the trees the previoulsy invalid tree is shown correctly, but I didn't find a way to disply both correct at the same time.

    Finally I found out what's the problem.
    I had 2 tables e.g.:
    AG_ID;Name;Parent_ID
    0;Top Entry AG;NULL
    1;Level 1 Entry AG;0
    TG_ID;Name;Parent_ID
    0;Top Entry TG;NULL
    1;Level 1 Entry TG;0
    caused by the fact that both tables use same IDs to identify the entrys the javascript seems to get errors.
    I used concats and substr function to create unique IDs for the tree elements, so the JavaScript gets TG0 or AG0 as value not just 0. Now everything works fine.
    Here is an example for my modified tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    CONCAT('AG', "AG_ID") as value,
    null as tooltip,
    'f?p=&APP_ID.:1:'||:APP_SESSION||'::::V_AGID,V_TGID:'||'AG'||"AG_ID",NULL as link
    from "#OWNER#"."GROUPS_APPLICATION" GROUPS_APPLICATION
    start with "GROUPS_APPLICATION"."PARENT_ID" IS NULL
    connect by prior "GROUPS_APPLICATION"."AG_ID" = "GROUPS_APPLICATION"."PARENT_ID"
    order siblings by "NAME"

  • Session scope for component tree subtree

    I'm very new to JSF. Here is what I'm trying to do: I created a custom component, renderer, and tag. This custom action will always have children that are no custom, but whose rendering I must control (via encodeChildren, etc).
    The problem I have is that the CSS style of these components will change after they are rendered (DHTML & AJAX). Some are hidden, color changes, size change, etc. When I go to another page with the same custom action included, of course it just renders a new version with all of the changes lost.
    Now if this was a simple custom action with no children, I'd just create a managed bean with a value binding and there would be no problem. But what I am trying to do is save the ENTIRE subtree, ie. save the state of the custom component and all of its children also.
    Now the messy way to do this would be to take my component, make it a managed bean, then include a value binding every time I use that custom action. The custom renderer would look to the bean for how to render the children, etc. The problem I have with this approach is that I basically have to include attributes in my component (used as a managed bean) that redundantly describe the children.
    For example, my component:
    class UISearch extends UIComponentBase {
    private boolean showChild1;
    private boolean child1Color;
    etc..
    OR a better option, to have:
    private UIComponent child1;
    public setShowChild1() {
    child1.render = true;
    ....etc....
    The problem I have with the above aproach is that every time a page is requested, the UIViewRoot tree will be build, a new Child1 will be instantiated, and then during the rendering of UISearch's encodeChildren I'll have to pretty much copy over attributes..
    I wish there was a way that I could have a "managed component subtree" where UISearch and all of its children are instantiated once, held through session scope, and every time they are rendered, regardless of page, the existing, managed version is used.
    This sounds so obvious, and I am almost positive there is a way to do this, I just don't know how.
    Thank you!!!!!
    PS:
    I think I am on the wrong track. Basically all I want to do is have the UISearch and its children load the same normal way each time that they do now. I don't even care if the component tree is re-created, re-rendered, etc. But after this custom action is rendered, I call an AJAX loadConfig() type method that will return all of the style, innerHTML, src, etc. changes that must be updated.
    So my question really is.. what is the best practice for storing and retriving this information? I'm using DWR, and I'd like the loadConfig() to return an object with all the config stuff nicely organized.. so if the returned object is "search" and I need to load the 'display' CSS style for some child, i can do:
    child.style.display = search.history.clearHistoryLink.style.display;
    Who knows. Any and all ideas are welcome!
    Message was edited by:
    rrc3243

    I found example (bookstore) where I got answer about using backing bean in session scope.
    <!-- Backing Bean for bookshowcart.jsp -->
    <managed-bean>
    <managed-bean-name>showcart</managed-bean-name>
    <managed-bean-class>backing.ShowCartBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <!-- Managed Bean -->
    <managed-bean>
    <description>
    Create a shopping cart in session scope the first
    time it is referenced.
    </description>
    <managed-bean-name>cart</managed-bean-name>
    <managed-bean-class>cart.ShoppingCart</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    ShoppingCart class don't have data properties like lastName or orderId
    Class have only somethings like this:
    protected BookDetails book() {
    BookDetails book =
    (BookDetails) context()
    .getExternalContext()
    .getRequestMap()
    .get("book");
    return (book);
    * <p>Return the <code>ShoppingCart</code> instance from the
    * user session.</p>
    protected ShoppingCart cart() {
    FacesContext context = context();
    ValueBinding vb =
    context.getApplication()
    .createValueBinding("#{cart}");
    return ((ShoppingCart) vb.getValue(context));
    * <p>Remove the item from the shopping cart.</p>
    public String remove() {
    BookDetails book = (BookDetails) item()
    .getItem();
    cart()
    .remove(book.getBookId());
    message(null, "ConfirmRemove", new Object[] { book.getTitle() });
    return (null);
    rule:
    Don't use backing bean with data properties in session scope!

  • How can we jump to different page in af:showDetailItem within af:showOneTab

    Hi,
    My requirement is to have multiple tabs in a page (not using the menu1, menu2, or menu3 facet). Each tab is doing different functionality, so each tab could span multiple pages.
    I am trying to use af:showOneTab with af:showDetailItem to implement this, but it seems that with af:showOneTab, all tabs are part of the same page, so I am facing a problem. I am hoping that there is an "action" property in the af:showDetailItem component that I can use to go to different page.
    For example, I have 2 tabs: Employee, Department.
    Employee | Department
    When user reaches the first page, we are disclosing Employee tab by default. Within this tab, we are showing all employees in an ADF table with a link to "Create New Employee" which I wire to a new JSFX page. So in this new page, I am copying the same af:showOneTab with 2 af:showDetailItems from the same page.
    After we are done with the creation, if user clicks the Employee tab, we should go back to the first JSFX page which shows all employees in ADF table. But it does not do that, it stays in the second page (create new employee page). Then I realize that it's because there is no "action" property in af:showDetailItem.
    Can af:showOneTab / af:showDetailItem be used to achieve this? Or is there another tab container component that I should use?
    Thanks for the help.

    Hi,
    this is more a usecase for a template than the use of tabs. Tabs are not made for this. You could use subviews, but then the pages are added at runtime to the parent page
    Frank

  • Reconstitute Component Tree

    How component tree was reconstituted?
    From jsp that have JSF tags or somehow else?
    I was read specification but nothing in detail about that.
    Is it define by specification or every JSF implementation can do it differently?
    For example page like this.
    Let assume that tree wasn't saved before.
    <HTML>
    <HEAD><title>Hello</title></HEAD>
    <%@taglib uri="http://java.sun.com/jsf/html"prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core"prefix="f"%>
    <body bgcolor="white">
    <h2>My name is Duke.What is yours?</h2>
    <jsp:useBean id="UserNameBean"
    class="helloDuke.UserNameBean"scope="session"/>
    <f:use_faces>
    <h:form id="helloForm"formName="helloForm">
    <h:graphic_image id="wave_img"url="/wave.med.gif"/>
    <h:input_text id="username"
    valueRef="UserNameBean.userName"/>
    <h:command_button id="submit"label="Submit"
    commandName="submit"/>
    </h:form>
    </f:use_faces>
    </HTML>

    Hi niksa_os,
    I think I might have misunderstood some of your question. I have put further comments below.
    "from the http session" - how when nothing about page
    isn't in session?On the first request (as you have probably noticed if you have built an app) none of the lifecycle is traversed except 'render response' in the RI.
    So, myFaces use JSP with JSF Tags to figure out what
    components
    to put in Tree(?)!Yes, exactly. But so does the RI, just at different times. myfaces uses the JSP with JSF tags at the beginning of the request during the 'reconstitute response tree'. The RI does not involve the JSP until the render response phase.
    How RI make Tree for the first time? Same or from the
    HTML request?During the first render response the JSP is rendered in the usual way. The JSF tags are invoked just like any other JSP custom tag would be invoked. During the tags processing (doStartTag, doEndTag etc) the JSF API is invoked to manage the tree. If a new componet must be created it is, if one is found to exist in the tree then its not created.
    After the tree is created and arranged as specified in the JSP then the renderers take over and make HTML from the components.
    Or is there any other way?
    I can't contrive third way, only from JSP/JSF and HTML
    request!
    What about XML output?
    How does it works?If I understand your question you would/could get XML output by implementing your own renderers.
    Hope this helps,
    -bd-

  • Why am I getting an error when I place two OAM files one after the other in different pages?

    Why am I getting an error when I place two OAM files one after the other in different pages? They do not load or play correctly.  They are both configured to play automatically with a .125 second delay and both have a white rectangle "poster" over for a hidden effect.

    Thanks for the idea, Scott! I initially tried your idea, but my OAM files were still not loading correctly.  I tried other combinations of OAM files, and it seems to work fine.
    Back to my original OAM files: I made sure that my elements in my Edge Animate project had different names. I originally copied parts of some elements from one to another, and I think it was confusing to DPS to read it. 

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

Maybe you are looking for

  • Best Buy and shipping TV

    I'm so pissed at BB.  I looked up the schedule dates for a TV delivery in the Charlotte area.  At 4am when I looked I was provided dates.  When I logged back in at 10pm I was told the 28226 zip code was not in the delivery area.  WTH!  It was there t

  • .mov files in Premiere

    I am having no luck getting some HD .mov files to import into Adobe Premiere. Premiere tells me I am missing a codec. Is there a Windows version of the Apple Intermediate Codec? The footage was recorded with a JVC camera onto a Firestore DR-HD100 dri

  • Maximum number of CAT3560's that can be connected

    What is the maximum number of Cat 3560 switches that can be connected together. Using all Fiber ports the max number would be 5, does this series of switch have a design limitation on how many can be connected together?

  • Transform activity in Process Flow

    Hi Guys, After wasting hour trying to get the SQLPlus activity working I noticed that I can just drop the stored procedures into the flow as a "Transform activity". I linked everything up but as soon as I put the "Transform activity" in the process f

  • Open SSL iPlanet Web Server 6.0 Configuration

    Hi All, I have implemented Open SSL on Solaris 2.8, Created a virtual server class and added two virtual servers(one with security On ,listening on Port 443 and the other one with security Off,listening on Port 80. When i try to click on the "Attribu