Dynamic creation of components on the page giving problems

Hello

We create a number of custom components to interface dynamic user on the page, according to the information, we know that when running (for some reason, we could simply not create them statically and hide and show them dynamically: Please don't suggest that you do this at the moment).

Custom components are derived from elements of the ADF, so, for example:
public class MyRichInputText extends RichInputText implements Serializable {
}
They are created dynamically in a bean that is associated with a button and used for the first time. In other words, once wle browse page, for example via tabs, or fragments, still get us an exception "Session timeout". Here is the log of the server:

< error > < org.apache.myfaces.trinidadinternal.application.StateManagerImpl > < BEA-000000 >
java.lang.InstantiationException: mycompany.lib.MyRichInputText
at java.lang.Class.newInstance0(Class.java:340)
...
< WARNING > < oracle.adfinternal.view.faces.lifecycle.LifecycleImpl > < BEA-000000 > * < ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase RENDER_RESPONSE 6 *.
java.lang.NullPointerException
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:978)
...
javax.faces.application.ViewExpiredException: viewId: / myPage - ADF_FACES-30107: the page view state has expired.  Reload the page.

In addition, just for your knowledge, we use javax.faces.STATE_SAVING_METHOD = "customer" in the web.xml file. Note that MyRichInputText is already Serializable.

You have a solution?

Yes.

Have you read http://docs.oracle.com/cd/E21764_01/web.1111/b31973/ad_custom.htm

John

Tags: Java

Similar Questions

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • Flex 4.5 allows multiple components of the page retrieve data in parallel?

    There are frameworks that allow several components of the page to go in parallel with multi threading. Framework of the new Flex 4.5 allows that several components of the page retrieve data in parallel? Because I think that there is no other framework that allows that several components of the page retrieve data in parallel.

    Needs of light on it. Thank you.

    If you mean, it allows you to perform several Web service calls at the same time (asynchronous), then the answer is Yes.  If you need complete a component that is located on another page before the user this page is displayed, you can use this:

    
    

    creationPolicy = "all" create the component before the user saw, so that you can use these components programmatically.

  • Creation of MsgTextInput on the Page of the dialog box

    Hello

    I have a requirement to create a msgtxtinput on the Page of the dialog box.
    I'm not sure that we do...
    If anyone has an idea please share.


    thanxs

    Pranav

    Hello

    create a new zone of battery... provision under which create the textinput desired...
    then assign a custom class controller controller.

    import from the region.

    Now make dialogue Page use the

    OADialogPage.setHeaderNestedRegionRefName () method to access this area.

    Thank you
    Gerard

  • Duplicate the content of the Page (search problem)

    If you have more than the desktop version of a site, you will have a double page of information. Since this is the kind of problem for SEO, how can it be fixed?

    I tried to insert a<link rel="canonical" href="http://www.example.com/" /> but when I ran a spider report on my page, it gave my page tons of errors because it inserted links into my page that would go to something like this: http://www.example.com/http://www.example.com/

    I'm having the same problem, check with the Moz site check tool. I have not been able to local this file in my dad go accommodation, and I'll call godaddy and see if they can help.

    Here is some info on it though. Good luck. Let me know if you get it. Thank you, Tom

    To redirect all requests for yourdomain.com to www.yourdomain.com, you must set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in the public_html folder:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^ yourdomain.com [NC]
    RewriteRule ^(.*) $ $ 1 http://www.yourdomain.com/ [L, R = 301]

    In the future, when a person accesses the type he or she will be redirected tohttp://www.yourdomain.com.

  • Dynamic creation of items in the dataProvider

    I am trying to find a way to display a dynamic number of objects with a datagroup and an itemrenderer. The problem is that all the examples I found do not show data running statically in the MXML tags (see the example below, in the ArrayCollection collection). Is it possible to have a picture or a vector of objects defined in actionscript that I can dynamically change and have it affect the DataGroup & ItemRenderer?

    
    
    
                                       <s:DataGroup itemRenderer="components.itemrenderers.myItemRenderer">
                             <s:layout>
                                  <s:VerticalLayout/>
                             </s:layout>
                             <s:dataProvider>
                                  <s:ArrayCollection>
                                       <local:Person firstName="Alain" lastName="Hufkens"/>
                                       <local:Person firstName="Hugh" lastName="Hefner"/>
                                       <local:Person firstName="Jimi" lastName="Hendrix"/>
                                  </s:ArrayCollection>
                             </s:dataProvider>
                        </s:DataGroup>
    
    
    
    

    You can assign a dataProvider in the script.

    object.dataProvider = someArrayCollection;

  • Dynamic display of table on the page of the ADF

    I'm looking for a page ADF that has a drop down box whose name table as inputs and when he selected should show data within this table in the ADF array element.

    Arun,

    What do you mean by "more simple? Another way to proceed would be to have fragments of JSF page separated for each table and use a dynamic region on the home page. I haven't worked through the solution, but it should work.

    John

  • I have a top menu of the page giving me a fit

    Hello

    Here's the situation. I installed a reactive navigation menu. I have fought with this and I have 2 questions;

    http://skeeterz71.com/Gothic

    1. I can't get the < ul > Center in the < nav >

    2 - the background color will not appear. Chrome shows it as being overridden, but I can't do it by what...

    I have the top of the nav menu page structured like this (short version):

    < nav >

    < ul >

    < li > < /li >

    < li > < /li >

    < /ul >

    < / nav >

    Style

    NAV {width: 100% ;}}

    NAV ul {auto margin: 0; position: absolute; / * absolute because it is a drop down list * /}

    other standard stuff for NAV albums. I tried text-align: center too... No joy. I don't have widths on nothing else except a min on the < li > width to prevent the text wrapping.

    menu1.jpg

    Any help is appreciated.

    Thank you

    Fixed. It took a few questions from the media. I did not figure out on my own:)

    / * Styles adapted * /.

    @media screen and (max-width: 1600px) {}

    NAV UL, input [type = checkbox]: checked ~ {#menu}

    display: inline-block;

    }

    }

    @media screen and (max-width: 760px) {}

    / * Display the menu when invisible checkbox is enabled * /.

    Input [type = checkbox]: checked ~ {#menu}

    display: block;

    }

  • How to disable dynamically interactive report filed in the page master detail

    I use APEX 4.0 & very new to APEX. I am not able to disable a class in area of detail (which is an interactive report) of a master detail Page.
    I want to turn off the field in a row based on the value of another field of recording, like set_item_instance_property of the oracle forms. Please help me.

    See {message identifier: = 10743324}

  • HP LaserJet CP6015n: Top of the page paper problem pinting

    Hello

    We have some problems by printing CP6015n. We get a green bar on top of paper. You can see the attached picture. Transfer kit have 59% remaining.

    Concerning

    The mechanism that cleans the transfer belt is part of the transfer belt.

    There is a long flexible cleaning squeegee that wipe the toner in a channel and then Strawberry goes out the toner bottle for sewage.

    In your case it looks like a section of the blade does not, or perhaps the toner is never out of the channel and so much put in place he'll be back the belt on the weakest point.

    Because it seems that the belt has not and is not at its end of life, you might be able to get it replaced under warranty.

  • Call a method bean after loading the page in the file jsff

    Hi all

    I'm working on JDeveloper 11.1.1.7.0.

    I need to call a managed bean method after jsff is responsible. My requirement is that I must add dynamically RichImage on my page. So I put a PanelGroupLayout as a container on the page. I add the RichImages to this PanelGroupLayout with

    parentUIComponent.getChildren () .add (childUIComponent);

    I tried using regionController but it gives me as regionController Null pointer has no access to user interface components on the page.

    then I tried with javascript, but it is not shooting my bean method managed. I put the code below in my home.jspx

    < af:document id = "d1" >

    < af:serverListener type = "onloadEvent" method="#{viewScope.ConnPocBean.initMethod}"/ >

    < af:resource type = "javascript" >

    function onLoadClient (event) {}

    AdfCustomEvent.queue (event.getSource (), "onloadEvent", {}, false);

    Returns true;

    }

    < / af:resource >

    and below is the code in my testPage.jsff file

    < af:clientListener method = "onLoadClient" type = "load" / >

    But here, when loading my testPage.jsff... initMethod() is not going to get fired.

    Please let me know what is the problem here.

    Thank you

    Fox

    If you want to try other ways to add a child element to PanelGroupLayout, use:

    parentUIComponent.getChildren () .add (childUIComponent);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (parentUIComponent);

    in the Get accessor of the binding of an element method, which is placed after PanelGroupLayout in your jsff. So when the next component is loaded the child will be added to the PanelGroupLayout

  • ADF trigger dynamic number of components

    I have an addiction to view object class three levels-> category-> subclass and want to create a dynamic form with the following logic:
    When the user selects a category drop down, page is updated with a number of drop-down lists of class with all subclasses - that is, I have a dynamic number of components selectOneChoice depending on the category selection. Dependence of the class category is implemented with valueChangeListener category Classes of queries with the category Id, class subclass is simple link display / tree of the value binding. Value of subclass for backing bean binding is done with a hash table.

    ADF faces framework let me recreate the elements of the actual page with partial-page rendering (or some other mechanism)?
    Should I completely re - generate all the components of selectOneChoice inside forEach whenever the user changes category.


    My components in the page:


    < af:selectOneChoice value = "#{bbean.category} '"
    label = "category".
    autoSubmit = 'true' immediate = "true".
    ID = 'category' valuePassThru = 'true '.
    valueChangeListener = "#{bbean.categoryChanged}" >
    < f: selectItems value = "#{bindings." Categories.Items} "/ >"
    < / af:selectOneChoice >


    < af:forEach var = 'class' items = "#{bindings." Classes.Children} ">"
    < af:selectOneChoice value = "#{bbean.subclass [class.id]}" "
    label = "#{Class.Name} '"
    partialTriggers = "category".
    ID = "class" valuePassThru = "true" >
    < af:forEach var = "subclass" items = "#{class.children}" >
    < af:selectItem label = "#{subclass.name}" value = "#{subclass.id}" / > "
    < / af:forEach >
    < / af:selectOneChoice >
    < / af:forEach >



    The above code is a development of earlier less complex UI. For everything I tried I can't get to the desired effect. When I change the category it does not affect sub-drop downs somehow. If I activate the valueChangeListener category, category change cause the validation phase null property exceptions:

    2.9.2008 14:05:40 com.sun.faces.lifecycle.ProcessValidationsPhase run
    SEVERE: Error test 'null' property at the bean of type my.project.view.managed.Search$ 1
    javax.faces.el.PropertyNotFoundException: error test 'null' property at the bean of type my.project.view.managed.Search$ 1
    ...

    Erik,

    Instead of making components selectOneChoice have 'category' as their partial triggers, what happens if you set partialTriggers = 'category' on a parent of these selectOneChoices component?

    John

  • [ADF, JDev12.1.3] How to add user interface components in a page before you display it or hide it?

    Hallo,

    I started to raise this issue with the rohanwalia type () in this thread Re: Re: [ADF, JDev 12.1.3] how to hide menu items based on the logged-on user but maybe it's better to make the question in a separate thread.

    I have a page home.jspx with some user interface components (menus bars, text entry, buttons,...).

    Unbounded workflow

    loginPage.jspx - loginSuccess-> home.jspx

    Based on the logged in user, I programmatically to hide (for example some buttons and menu items) or to add UI components on the page home.jspx.

    Thus, in the managed bean (request scope, right?), associated with the page I want to write a method that before appear the home.jspx makes the task above.

    {initPage()}

    Here, I call an AM method for each component that says that if

    -According to the user - it should be visible or not.

    This information is stored in a Boolean vars, one for each component.

    IT1.setVisible (it1visible);

    IT2.setVisible (it2visible);

    B1.setVisible (b1visible);

    ...

    }

    How can I do to make this method runs automatically when the page is rendered?

    Thank you

    Federico

    Hi Federico

    you use links to visible false, but before pageload links are not accessible at the bean so when you call after the page load button works but before pageLoad, it won't

    so rather than use binding use variables of bean to the value true or false and provide references to the visible property of inputField

    Suppose that to create a Boolean variable and getter setter now is the button click set a value false

    Thank you

  • Action and ActionListener cause the page reload?

    I have a long page where the user must scroll down to go through all the components of the page. on the page, I have a button when the user presses it the value of an text box will be added to the table of the ADF , where the user can see in the page.

    Problem is when the press user, the button of the page reloads. It's when the button is pressed, the control passes the top of the page. I tried to use the Action and ActionListener (each one separately) and again, I get the same result.

    Any ideas to prohibit control to the beginning of the page, because it is not easy to use.

    I use Jdeveloper 11.1.2.3 with the technology of the ADF and JSF pages

    Hello

    tried to set partialSubmit of the button to true or use toolbarButton (including the default value for partialSubmit = true)?

  • where can I find the assets on the page creative cloud?

    where can I find the assets on the page creative cloud? I need to download a file and I can not find

    Creative resources of Cloud provides a place to store, collaborate, and manage your Cloud creative content.

    Creative resources of cloud is integrated into your creative workflow at home, in the office or on the road by allowing you to access and reuse your files synchronized to the desktop, mobile creations, CC libraries and free assets of the CC market. From your browser, you can also retrieve and reuse CSS information on colors, degraded, fonts, text, and other items of your Photoshop files.

    You can launch the creative resources of cloud site by pointing your browser to https://assets.adobe.com. You can also access it through practical links in your office or your profile Adobe Web tools.

    Your creative cloud assets include the files synchronized with your desktop computer, assets created using Creative Cloud enabled mobile applications and creative cloud libraries. You can browse all of these assets by using the page creative Cloud resources, which organizes assets as follows:

    Shows active files synchronized with creative Cloud Files directory on your desktop

    Creations of active active watch created using Creative Cloud mobile of mobile applications

    Libraries of design shows created by you

    Note:

    While you can perform several operations such as rename, share, download, replace and archive on the Active Desktop (files), you can only view the assets under Mobile creations and libraries, on the page creative resources of cloud.

    These links may also be of interest:

    Manage assets and files

    https://helpx.Adobe.com/creative-cloud/how-to/assets-get-started.html

    https://helpx.Adobe.com/creative-cloud/help/sync-files.html

    Operating instructions: Creative-cloud-libraries

    Creative cloud libraries

    How to share your creative cloud libraries

    How to use Adobe Stock with your CC libraries

    FAQ: Where can I find links to management and the creative file Cloud syncing?

    I'm moving the discussion toward hosting of files, synchronization and Collaboration

Maybe you are looking for