Looking for hook into a mb method on page load of jsff with auto query on view criteria.

Hello,
I have a View Criteria that is set to Query Automatically (showing data to match today's date).  The target table has a detail table and there is a control that shows parsed XML from the current row in the detail table into a table that I build dynamically. The main table and the detail table show the proper data on page load but the table for the parsed XML is empty.  The dynamic table is bound to a managed bean where the parsing is done and data is created.  I have the control refreshing properly on a row change of the main and detail tables and on a queryListener for the view criteria.
This is for a jsff page. I have been trying a bunch of approaches with no success.  The detail table has a ppr to the main table and the query.  I am looking some event on either the query, the main table or the detail table where I can make a call to my managed bean to parse the XML, build the table and refresh the control.  I have an attribute binding to the XML data (when I placed it in a control as plane XML it refreshed properly).  I only need this on initial page load or first time the tables are populated, I have the other use cases covered.
Running JDev 11.1.2.4
Thank you
Rudy

ok but where?
i have read a topic about "setRefreshOption", but i need a component to execute it.
i have read a topic about a false criteria (1=2), and when i want search, i remove it, but again, i need a component to execute it.
i have read a topic about ${adfFacesContext.postback == true} to write into iterator proeprty, but i haven't this view into my appmodule.
i'm really sorry, but please, can you explain me a little ?
Edited by: bradici on 8 oct. 2009 16:36

Similar Messages

  • HT204266 looking for the old Netflix app that will work on original Ipad with ios 5.1.1

    looking for the old Netflix app that will work on original Ipad with ios 5.1.1

    Netflix does in fact have the old version of their app available.
    In iTunes on your computer, download the App you want a compatible version for using the same Apple Id that the iPad has for the App Store. For Paid Apps its best to consult with the App maker to make sure there is a compatible App. With the App Downloaded to iTunes on a computer you can go into The App Store App on your iPad, Tap on Purchased, and Look for the App there. Tap on it to begin the download. It will likely say its not compatible, but if there is a compatible version it will offer to download it. Install the latest compatible version of an app on an earlier version of iOS or OS X

  • Any suggestions?  I'm looking for a comfortable and secure drawer to house my keyboard (wired, with number pad) and magic tracker.

    Any suggestions?  I'm looking for a comfortable and secure drawer to house my keyboard (wired, with number pad) and magic tracker.

    Apples wireless magic trackpad
    http://www.apple.com/magictrackpad/

  • How to execute a method after page Load?

    My question is very similar to what was discussed in following thread:
    How to execute a method after page Load?
    My requirement is that I want to run a method in backing bean of a page, immediately after the page gets loaded. In that method I want to invoke one of the method action included in the pagedef of this page, conditionally.
    I tried using the approach given in the above thread, i.e to use <f:view afterPhase="#{backing_security.setPermPriv}">, but the problem is that our page is not using 'f:view' , so I explicitly added one f:view with afterPhase property set , but it is not working, page it self is not getting loaded, it is throwing the error:
    Root cause of ServletException.
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]e8encountered without an <f:view> being processed.
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:108)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:733)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.taglib.UIXQueryTag.doStartTag(UIXQueryTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedQueryTag.doStartTag(UnifiedQueryTag.java:51)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:822)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:746)
    Please help to resolve this issue, or am I doing anything wrong?

    Hi,
    I assume that your view is a page fragment and here - indeed - the f:view tag cannot be used. If you use ADF then one option would be to use a custom RegionController on the binding layer to listen for the render phase to invoke the method. Another option would be to use a hidden field (output text set to display="false" and have this component value referencing a managed bean property. The managed bean property's getter method can now be used to invoke the method you want to run upon view rendering
    Frank

  • HT204088 I was billed for a rented movie that never completely down loaded and I never was able to view. How do I get reimbursed???

    I was billed for a rented movie that never completely down loaded and I never was able to view. How do I get reimbursed???

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not downloading properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to call java method on page load?

    How to call java method on page load?
    Thanks

    Hey Dan,
    Well, if you want to execute a java method when page is load, you need to put the clientlistener in af:document. Let me to show you an example (I can't find my post :P),
    JSPX page:
    <f:view>
    <af:document>
    <f:verbatim>
    <script>
        function loadPage(event) {
            alert('Hello World!');
    </script>
    </f:verbatim>
    <af:clientListener method="loadPage" type="load"/>
    </af:document>
    </f:view>If you try this code you can see that when the page has been load, you recieve the alert "Hello World!".
    Furthermore, this is the javascript AJAX function that let you to call a servlet:
    function ajaxFunction () {
        var httpRequest;
        if (window.XMLHttpRequest) {
            httpRequest = new XMLHttpRequest();
        } else if (window.ActiveXObject) {
            httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
            httpRequest.overrideMimeType('text/xml');
        httpRequest.onreadystatechange = function() { alertContents(httpRequest); };
        httpRequest.open('GET', '/appname/servletname', false);
        httpRequest.send('');
    function alertContents(httpRequest) {
        if (httpRequest.readyState == 4) {
            if (!httpRequest.status == 200) {
                alert('Request error. Http code: ' + httpRequest.status);
    }Where 'appname' is your application name and 'servletname' is the name of the servlet that you want to call. Obviously, you can call any URL ;)
    JVN

  • Looking for  beep(frequency,duration) class method

    These 2 last days, I had already posted topics about this subject , but I was certainly not very clear in the topic header. (or even about what I was really looking for).
    Is there a package somewhere I can download which contains a class with a beep method to fire a sound at a particular frequency and for a specified duration ?
    System.beep() does not allow to change the frequency.
    Thanks

    "nd on a google search gives http://www.developer.com/java/other/article.php/2226701#Complete%20Program%20Listings which containes more than you need. You will have to extract the bits you need and say thanks to Richard Baldwin.

  • I'm looking for a decent CRM app, so I can load my customer data base

    HI I'm looking for a CRM app or package, just started using my air for business and would like to have my customer data base with me handy
    for pulling up local customers and being able to enter some data sales related or just comments regarding conversations and topics talked about so I can follow up ect!
    any suggestions would be appreciated!
    thanks, Lee.

    Hi Lee what sort of database are you looking at also what sort of business do you run ?
    I have a CRM Package that is native to mac and pc and is built off of filemaker it is normally targeted at Recruitment businesses.
    Drop me a line if you wanna chat about it!
    Sammie

  • Please help! Looking for script to insert current date on page.

    I currently use a Dreamweaver Extension that lets you insert
    current date and time on your web page.
    The problem is, I don't know Javascript and cannot edit the
    Javascript codes to "remove the time"
    I only need the current date that will change every day.
    Do you know where I can get this script, I goggled and got
    several but I'm looking for something authentic.
    Also is it possible to have your page validate when you use
    Javascript embedded in your HTML?
    Thanks everyone,
    Patrick

    quote:
    Originally posted by:
    Newsgroup User
    Webethics wrote:
    > The problem is, I don't know Javascript and cannot edit
    the Javascript codes
    > to "remove the time"
    > I only need the current date that will change every day.
    JavaScript generates the date by using the clock on the
    computer of each
    visitor to your site. If a visitor's clock has the wrong
    date, your site
    will also display the wrong date.
    > Do you know where I can get this script, I goggled and
    got several but I'm
    > looking for something authentic.
    I don't know what you mean by "authentic". Date generation in
    JavaScript
    is one of the most basic features of the language, so if it
    works, it's
    "authentic".
    > Also is it possible to have your page validate when you
    use Javascript
    > embedded in your HTML?
    Yes, but you shouldn't embed JavaScript in XHTML.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/
    So mr. Powers are there people that use Javascript Date in
    their page?
    Would you recommend it?
    I could use PHP but I don't know PHP,
    How do I come up with the string in this format, say,
    Wednesday, October 29th, 2008 that will change to a new day
    according to the server time and date.
    Thanks so much for your help and I have two of your books! I
    will be taking PHP classes in December.
    Patrick

  • Looking for expert who can highlight 3d model node in adobe reader with external program

    I need to select and highlight 3d model node in adobe reader with my program.from outside of adobe reader. it seems there is no out-of-box API in stndard SDK. I want to outsource this task fully or partly. If you have the solution or able to provide consultant in this area, please send message to me.

    You would indeed need a plug-in to actually select and highlight but you can easily call attention to a part by temporarily changing the color via JavaScript which you can access from external applications.
    I can provide more specific advice if you explain the exact user interaction you're looking for. Is this a desktop application? Is the PDF in a browser? etc.
    J-

  • Hi Just got a iMac A1418.21.5 I am looking for some advice on what Final Cut pro would work well with it? many thanks

    Hi Just got a iMac A1418.21.5 I am looking for some advice on what Final Cut Pro  series would work well with this set up ? regards

    How much Ram? Final Cut Pro X is the only version curently developed and is available on the App Store.

  • Looking for Scripts that Replaces Text and Master Pages (Batch Missing Files and PDFs)

    I have just found the Script Library panel in FM 10. (Always used InDesign before.)
    I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
    Do you have som tip where to find such scripts/macros?
    To facilitate my work I also look for a batch script that automatically updates the image pathes in each framemaker file (image folder has been renamed).
    And at a last FrameMaker -> PDF Batch converter.

    100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
    I'd be tempted to ...
    Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
    Create a new Book file.
    Add to it all 100 of the files needing update (this is the only tedious part).
    Use Find/Replace from the Book menu to fix the text string.
    Select all book component files:
    File > Import > Formats
    Import from Document [MPsourcefilename.fm]
    [Deselect All]
    [*] Page Layouts
    [Import]

  • Very simple question: Call JavaBean method on page load?

    Someone clicks on a URL that contains parameters like: http://server/page.jsf?param=b
    How do I trigger a JavaBean method to run during page load? I see many JSF examples where JavaBean methods get called during form clicks and that works great but here I want to run code on page load.
    This must be really simple; sorry I'm new to this technology.
    Must I use <% ... %> syntax or can I use actual JSF tags or configuration to accomplish this?
    Thanks very much in advance!

    Putting a lot of logic in getter( ) function is not the best idea considering that getter( ) could be called all over the place. Using constructor for same purpose is also a bad idea especially with request scope beans. This could also happen many times at different stages. You are right, having a page load concept could be useful. Unfortunately JSF framework does not support. You could architect around it in case desperate. Or if using JSF implementation of certain vendors like IBM, you can take advantage of their implementation that was extended to support pageLoad and postBack events (similar to .NET).
    Many postings on this forum dealt with topic. Feel free to review like this one:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=541382

  • Looking for a better design: how to populate db result to object with lists

    I have a query that returns from the db an arrayList of class CarBean:
    carID, model, color, rentUserID, fname, lname, dateRentStart, dateRentEndThe query is with reference to a particular car that N people (rentUserID) rented and the user (the system user) wish to know how many rentals were made for this carID.
    I wish to populate the result into ONE class name CarRental which looks like this:
    private Car; //model
    private List<RentUser> rentals; //all info relating to rentUserso, my question is this, what creative way (Design Pattern, maybe?) is there to populate all the objects (CarBean) from the arrayList into CarRental?
    In my solution I'm doing something like this:
    Iterator<CarBean> itr = list.iterator();
    CarRental carRental = new CarRental();
    List rentals = new ArrayList();
    while (itr.hasNext())
        CarBean cb = itr.next();
        carRental.setCarID(cb.getCarID);
        //for the list of users:
       User u = new User(); 
       u.setUserID(cb.getUserID()); 
       rentals.add(u);
    carRental.setRentals(rentals);* please consider a more complicated query that the end result of ONE object should have X arrayList and other M objects in it
    thank you!

    Just to make sure I understand, here's a simple version of your question. Please correct anything I have wrong.
    Your design will have two classes: Car and Renter. A Renter is a Person who rents a Car on a given day:
    package model;
    public class Renter implements Serializable
        private Long id;
        private String name;
        private Address address;
        // Details left for you.
    }You'll also have a Car:
    package model;
    public class Car implements Serializable
        private Long id;
        private String make;
        private String model;
        private int year;
        // Details left for you.
    }It sounds like you want to have a one-to-many relationship between Car and Renter. I think you have a couple of choices:
    You can embed a List<Renter> as a data member inside the Car class, or
    You can encapsulate the relationship between a Car and a Renter in a separate class like a Contract.
    I kinda like the second option because it reifies a nice concept.
    As far as the database goes, I'd recommend following an idiom from Spring- their RowMapper interface:
    package persistence;
    public interface RowMapper
        Object map(ResultSet rs);
    }Encapsulate the mapping from ResultSets to Objects that way.
    Or use Hibernate, TopLink, or another ORM tool.
    %

  • ITunes Looking for the "Title" of my iWeb Podcast Page/URL???

    have created a podcast page in iWeb and tried to Submit to iTunes and now it asks for the Title of the Podcast???
    Have filled in as many of the page names, file names as I think is possible and still get this message.
    Any help would be appreciated.
    Would be great if they had a link on the iTunes submit page that would tell us what to do on iWeb.

    You are making your podcast in WordPress and submitting it to Feedburner to pass on to the Store. If you want to change the title you have to do this in WordPress: however it looks as if Feedburner generates the feed filename from the title:
    http://feeds.feedburner.com/TheInconvenientTruthFileInPodcastTheInconvenientTrut hExploringTheFactsBehindTheFictions
    so if you change the title you will likely change the URL and iTunes will lose contact with the feed. I don't know whether it will do this (logically it shouldn't) but you would have to find that out from their Help (if any). Otherwise you can only try it and if the feed URL does change, change the title back.
    As you don't have direct access to the Feedburner feed, then if Feedburner changes the URL you will not be able to add the redirection tag necessary to change iTunes to a different feed - so it's possible you may be stuck with what you've got.

Maybe you are looking for