Quick question(s) about UIX Data Providers...

Hello,
I have a UIX Template that I use for all of the pages in my application. In this template, I have several data providers bound that are used to create the accessible tabs and links for navigation within the application.
When a data provider is called, does a constructor for the class get called before the actual method to get the Object/DataObject/DataObjectList is called? For the providers that I have defined (3), there is a common set of information that is needed by by each before it can provide the required data. All of these methods are in the same class. Each of these methods call an 'init()' method to retrieve the pre-requisite information. My problem is that when the page loads, as each method is called the 'init()' method is called. So 'init()' is called 3 times. Ideally, I'd like the logic in 'init()' to be executed once per page load. If I put this in a constructor for my provider, will it be executed on page load? Do UIX templates/pages created multiple class instances for data provider definitions?
How does classloading for data providers work? What is the best way to handle what I am trying to do?
Thank you.
August Harrison

Hi August Harrison,
UIX doesn't instantiate your data provider classes.
If you look closely, they are call to static methods.
When this returns a bean class - you would have taken care to instantiate them.
Data binding chapter in developers guide - Clearly state how every thing works.
There is a simple example which talks about a similar kind of scenario which you are refering to.
Hope this helps.
Regards,
Vijay V

Similar Messages

  • Quick question (?) about SMTP

    Hi all. I searched the forum, but couldn't find anything that was directly applicable.
    I have an email account through my university. They apparently just changed smtp servers. Now that it has changed, I have the following problem:
    When at work, I use the university smtp server, which does NOT use authentication. When I come home, I get a relaying denied error because I am connected via Charter. This was not a problem before, because the former smtp server required authentication. If I change my settings to send with Charter's smtp, it works fine. But they don't use authentication either, so when I go to work I get the same error.
    It seems to me that this must be a common problem. What should I do?
    Thanks.

    login as an admin user, launch Terminal.app and cat /var/log/mail.log. See if there is any funny business being reported in there. Your Mac's periodic weekly job also compresses and rotates these log files. If you cp /var/log/mail.log* ~/Desktop, all the logs will be copied to the desktop. Doubleclick on those ".gz" files to expand them and cat ~/Desktop/var/log/mail.log.0 (or whatever appropriate for trailing numeric digit) to read each of those older logs. Also, do mailq to see if any of your messages are stuck in the outbound queue for some reason. If so, there's a "clean" way to remove them: sudo postsuper -d ALL will blow all of 'em away and not leave postfix in a confused state.
    Is this an issue when you are at home and affiliated to Charter, or when you are at work and affiliated with the University's network? Or are both of 'em blocking your mail that you are trying to send off your Mac's smtp server?
    Sorry to hear Postfix Enabler didn't work out for you. I've got the big brother program Mailserve and actually run a small five-account mailserver here at the house for myself and spouse and three adult children. The mail blocking issue I ran into with aol.com and *.rr.com blocking mail from my dynamic IP address server, I beat by getting a $10/yr service called Mailhop Outbound. But, if you're not running a mailserver, sounds like fastmail may be the better deal.

  • UIX - method data providers and the include element

    I've just read in the documentation (Chapter 16 UIX Developer's Guide - Integration with Java ...)
    'Instead of recreating the entire page and all of its UINodes every time you render, you'll be able to keep most of the page cached and only recreate the part that varies.'
    The example given is using a method data provider which returns a UINode and data binding to it using <include data:node="node@source">
    Is it true then that method data providers are always actioned when a page is rendered, even if it has been cached by the framework? If so does that apply to all method data providers not just those which provide data for <includes>? When hitting the back button I have a requirement for part of my page to be the latest view of some data - at the moment I'm overriding 'isCacheable' in my implementation of UIXPageBroker and always returning false to get the right effect but am unhappy about doing it this way.
    Hope this makes sense
    Cheers
    Ian

    Data providers are always re-queried on every render; not just
    method data providers, but all. So if the UINode served
    up to data:node is different every time, you'll get different
    output.
    However, this is an entirely orthogonal question to whether
    the browser will bother asking for the page when the user hits
    "Back". Server-side caching and client-side caching are
    very different beasts!

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

  • Quick Question re Data Source

    Hi
    I have a quick question re datasource login.
    I havent touched my Crystal Reports for about a year. Since I created the reports (which users have been using through Crystal Reports server) I have changed my PC.
    I need to make a change in the formulas of the reports so I have reinstalled Crystal Reports 11 onto my PC and opened the reports. The forumula change is simple but I am having a nightmare with the data source login. The report runs against an SQL database. From memory all I did the last time was create an ODBC connection on my PC (which used the the SQL login sa account) and configured the reports to use that ODBC connection. When I open the report it asks me for the data source location which I tell it to use the one I created and the report runs fine.
    If I close Crystal Reports and and then re-open, I press F5 to run the report and it gain asks me for the data source credentials.
    Any ideas, I'm sure it is something simple I am missing?
    Thanks

    Guys
    Thanks for your help
    Ive managed to fix it but not really sure how although I'm sure a few of the things you have mentioned is what I have done.
    I basically restored the reports from last nights backup (before I did the changes), re-did the changes and saved and now it seems  to work. I think the difference here is that I had created the odbc connection prior to changing the reports - if that makes sense?
    What I would like to do is fully understand how this data source connection works.
    Don, when I open the report now and hit f5 the report presents me with the parameters and not the database login screen as it was doing before - how is this? What credentials is it using? The SQL sa account (which I configured the ODBC connection to use) or is it my domain account of which I assume permissions for this account must be set on the actual SQL database?
    As you and Jeff suggested when I look at the datasource connection screen it shows "trusted Connection: 1" - what does this mean and how is this configured, have I configured this in Crystal somewhere?
    Thanks
    Andy

  • Two quick questions about Library after moving beginning on a new computer

    Hi there,
    I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA.
    Just a couple of quick questions.
    1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder with all my itunes music/podcasts etc, and then I imported the Library XML file.  Is this incorrect? Should I have imported a different file? Should I have used the itl file instead? 
    If so, should I delete the library and start again?  (if this is the case, please suggest the best way of doing this without affecting my media)
    - a kind of sub-question to this one:  some of the media files arent showing up in the iTunes library, but they are in the media folder on the ext HDD.  Is there a way I can find out which ones havent been recognized by iTunes?  Whats the best way of getting them in to my library?
    2. Pretty much half of my podcasts have not been loaded in the new iTunes.  The ones that havent were ones that I subscribed to on my iPhone, whereas the ones that show up in iTunes were ones I downloaded from iTunes.  When I connect my iPhone and sync it with iTunes, will those podcasts show up in iTunes?  Or is there a risk that they will be deleted from my iPhone?
    Cheers,

    The .xml is lacking some information such as ratings, date added, and play count.  Using the .itl includes this information but cannot be imported using the method you did.
    A complete library is everything in the iTunes folder.  By using the method you did you left the artwork behind in the artwork folder on the other machine.
    Selecting the media folder in preferences does not get iTunes to recognize the media.  All it does is tell iTunes to start storing new media in that location.
    Using the method I outlined nothing will be missed (with the exception of WMA) because you aren't rebuilding your library, you are using the one that already exists.
    You don't have to re-copy everything as long as you get the stuff you missed and re-assemble it all as it was before except not on the Mac.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • QUICK QUESTION ABOUT PORTS

    Hi, I have a quick question about port forwarding/mapping. My question, lets say I am running MSN messenger, who's ports are 6880-6900. But lets say I am running a torrent application or something else that requires those ports. If both applications were running at the same time, would this cause interference with them on the same ports or now. Thanks
    Nathan

    Normally, only one application can listen to a specific port number at a time. If MSN is grabbing those 21 ports then your torrent app won't be able to run.
    However, most apps don't work that way - even if they use multiple ports, they don't use them all at the same time, so MSN might use 6880 when it starts up, leaving the others open for other applications to use if needed.
    Only experimentation will answer that one.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Quick Question about Cisco 3560 and the Web Device Manager

    Alright, I have a quick question that I am curious about but I haven't found any information
    about it.
    When I log into my Cisco 3560 using the web portal to get to the Device Manager. Below the
    diagram of the switch, then under the Dashboard there is section called Switch
    Health, Port Utilization.
    Under the Switch Health there is Bandwidth Used, Packet Error. Those two options just sit
    at zero and do not move. The Port tilization graph is also sitting at zero.
    Is there a way to make them functional?

    Anyone notice performance increase or decrease of their HD when using the nVidia IDE SW drivers?  particularly with a 74GB Raptor?  I've also heard of burner issues when installing the IDE SW but have not used my burner yet.

  • Quick question about sim transfer

    Hi all,
    I have a quick question and hopefully one of you guys would be able to help me. My friend purchased his 3g iphone today and hes giving me his old iphone. I currently have a blackjack and I wanted to take the sims card from the blackjack and put into the original iphone. Will the iphone work with my sims card? It is an older sims card, says 64k on it. If not, would I have to bring it into at&t and get it activated w/a different sims card? Hopefully all this isnt confusing. Thanks for any help. Cheers!

    You're welcome.
    I guess that also means I would have to upgrade to the 20 dollar data plan without the text messages as well?
    The unlimited data plan for the first generation iPhone still costs $20/mo and includes 200 SMS. The only thing you need to get from an at&t store is a new SIM card. Take the iPhone with you telling them what you plan on doing and they should give you a new SIM card at no cost.
    You will activate this iPhone with iTunes on your computer. If you are an existing subscriber, your calling plan will transfer to the iPhone, and any existing data plan you are using with your current phone will be cancelled. If you are an existing subscriber, your only selection will be the $20/mo unlimited data plan which includes 200 SMS, and you can select 1,500 SMS for an additional $10/mo or have unlimited SMS for an additional $20/mo.

  • 2 questionable emails about recently downloaded apps. Clicked link indicating I didn't initiate downloads. Goes to a page asking email, name, date of birth, c/c info, etc.  Authentic or no?

    2 questionable emails about recently downloaded apps. Clicked link indicating I didn't initiate downloads. Goes to a page asking email, name, date of birth, c/c info, etc.  Authentic or no?

    It is a phishing attempt. Do not respond. Do not divulge any personal or financial information. You can use the address below to forward the suspect email message to Apple.
    [email protected]
    The link below has information to help identify fraudulent emails.
    http://support.apple.com/kb/HT4933

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

  • Question about displaying data

    Based on the search criteria I need to show some info. with check box on each item, but it might retrun upto fifty items (between 1 to 50 items). Should I create checkbox/output text dynamically or how do I handle this scenario? In the jspx how do I loop it and display? Thank you.

    hi user13094256
    See my reply in your other forum thread with the same question
    at Question about displaying data
    regards
    Jan Vervecken

  • Quick Question about fade effect

    Quick Question:
    If I wanted to add a Fade Effect from one state to another
    when a button is pressed.
    How would I do that within the code?

    quote:
    Originally posted by:
    atta707
    You can do something like on the click of the button:
    var fader:Fade = new Fade(targetUIComponent);
    fader.duration = 1000;
    fader...;
    fader.play();
    or listen for currentStateChanging event and write the same
    similar code.
    or define transitions from one state to another like:
    <mx:Transition id="toOneOnly" fromState="*"
    toState="OneOnly">
    <mx:Sequence id="t1" targets="{[p2]}">
    <mx:Iris showTarget="false" duration="350"/>
    <mx:SetPropertyAction name="visible"/>
    <mx:SetPropertyAction target="{p2}"
    name="includeInLayout"/>
    </mx:Sequence>
    </mx:Transition>
    Hey,
    I would like to use the "transition from one state to
    another", but if you can explain each part for me that would be
    helpful.
    If you can comment on each line of that code that would help
    thanks

Maybe you are looking for