Where in the JSF lifecycle does submittedValue, localVaue, value get set?

Where in the JSF lifecycle does submittedValue, localVaue and value get set? I was looking at those values on a hidden input field and it was not clear to me in what phases the various values get set. It seemed like sometimes one was set, sometimes the other was set. It was not clear to me how to know where to look for the value (other than try one if that was null try another).
Brian

BHiltbrunner wrote:
Where in the JSF lifecycle does submittedValueIt will be set during the apply request values phase, in the decode() method of the HtmlBasicRenderer.
It will be reset to null during the process validations phase, in the validate() method of the UIInput.
localValue and value get set? Those will be set during the process validations phase, in the validate() method of the UIInput.
The difference is that 'localValue' represents the actual and unevaluated value, and 'value' represents the outcome of the evaluated ValueExpression value.
I was looking at those values on a hidden input field and it was not clear to me in what phases the various values get set. It seemed like sometimes one was set, sometimes the other was set. It was not clear to me how to know where to look for the value (other than try one if that was null try another).Depends on the where and when you're going to check them.

Similar Messages

  • Making the most of the JSF lifecycle

    I have read through some documenation for the JSF lifecycle, I am wondering though how you would really take advantage of it?
    One of the purposes of JSF was to insulate the developer from having too know much about HTTP. However, how much do they really need to know about JSF lifecycle and what cool things are there that really show the usefullness of this lifecycle being exposed?
    Thanks.

    beginner2 wrote:
    I have read through some documenation for the JSF lifecycle, I am wondering though how you would really take advantage of it?You don't. The phases of the lifecycle are just how JSF ticks; they are not there to make your life easier, they are a design choice you have to know about and have to know how to design around. Not knowing about them is eventually going to lead to unexpected behavior caused by wrong assumptions.
    One of the purposes of JSF was to insulate the developer from having too know much about HTTP. Utter nonsense, IMO. To use JSF, you should be incredibly familiar with HTTP, HTML and Javascript. Sticking your head in the sand and not taking the time to know the very foundation you are working on is going to make you step in a pothole and hurt yourself badly sooner rather than later.
    Of course, that does not stop people from trying. If you want to meet them, they regularly post "how do I do this", "why does this happen" and "bug in JSF?" questions right here in this forum.
    However, how much do they really need to know about JSF lifecycleKnow what each phase of the lifecycle does and in which order they are executed. Know when a phase will be skipped. That is in my opinion what you should know to avoid the gotchas.
    and what cool things are there that really show the usefullness of this lifecycle being exposed?See previous statements.

  • Got a new Macbook Pro itunes music was all there.  Suddenly it is not and my library is probably about 1/4 of what it was.....where did the music go and how do I get it back?

    Got a new Macbook Pro itunes music was all there.  Suddenly it is not and my library is probably about 1/4 of what it was.....where did the music go and how do I get it back?

    Hi there,
    You may find the article below helpful.
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    -Griff W.

  • HT4796 Migration assistant failed after 90% of the way; where are the files now and how do I get rid of them?

    Migration assistant failed after 90% of the way; where are the files now and how do I get rid of them?

    Hello.  It looks like I recovered all my keywords attached to photos.  What I did:
    First I located all photos without keywords using a metadata search.
    I found that it seemed to be certain groups of photos that had no keywords.  I decided to at least get the main keyword on all of those in a particular group, like Canyonlands. 
    Once I added one of the keywords, the others all showed up magically!  I then went to each group of photos and added the main keyword, and the others came along and attached to the photos.
    Don't understand why this occurred or why it got fixed, since it was so random.  But, I'm glad to have my keywords restored (I had divided flowers by color, etc. so it was a lot of work!)
    Thanks for the discussion and help.

  • Just bought a keynote where`s the serial number?  how do I get it?

    just bought a keynote where`s the serial number?  how do I get it?

    Direct Updates
    https://www.adobe.com/downloads/updates/
    If you happen to own a Windows machine you might be able to get the serial number by running Belarc Advisor
    http://www.belarc.com/free_download.html

  • How does the JSF lifecycle work for stateless HttpSessions?

    Ok, so just trying to get my head around this. The JSF architecture stores a lot of UI info in the session. Now this can be stored client or server side but the server side is default. I am wondering what would happen if the serlvet HttpSessions were stateless?

    But they aren't. They are associated with an IP address, port, and jsessionid. All of that is state.

  • Has anyone really understood the JSF LifeCycle

    I have created my own phase listener :
    public class MyPhaseListner implements PhaseListener {
    public void afterPhase(PhaseEvent evt) {
    System.out.println("EXITING : " + evt.getPhaseId());
    public void beforePhase(PhaseEvent evt) {      
    System.out.println("ENTERING : " + evt.getPhaseId());
    public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
    When i display my page first time I am getting the following output :
    ENTERING : RESTORE_VIEW 1
    EXITING : RESTORE_VIEW 1
    ENTERING : RENDER_RESPONSE 6
    Inside Constructor
    Managed Bean Created.......
    Thank you !!!!
    EXITING : RENDER_RESPONSE 6
    ENTERING : RESTORE_VIEW 1
    EXITING : RESTORE_VIEW 1
    ENTERING : RENDER_RESPONSE 6
    EXITING : RENDER_RESPONSE 6
    ENTERING : RESTORE_VIEW 1
    EXITING : RESTORE_VIEW 1
    ENTERING : RENDER_RESPONSE 6
    ENTERING : RESTORE_VIEW 1
    EXITING : RESTORE_VIEW 1
    ENTERING : RENDER_RESPONSE 6
    EXITING : RENDER_RESPONSE 6
    EXITING : RENDER_RESPONSE 6
    As per my knowledge I can understand first 4 statements(before "*****") outputted.
    An empty view is created and then render response phase is reached skipping all intermediate steps being the first request to JSF page.
    However I can not understand further calls made by JSF lifecycle.
    Can anyone elaborate me more on this?
    Also I am very much interested in some strange number displayed after every phaseId !!!!!

    Hi Sergy !
    Thanks for your reply.!!!!
    Well actually I have some style-sheets and images on my page.
    I think JSF even treats these elements to be a seapare entity.
    So all other statements were for these elements.
    Well I have modified my phase Listener to reflect the view Id as well.
    Below is the class...if anyone is interested !!!
    package util;
    import javax.faces.component.UIViewRoot;
    import javax.faces.event.PhaseEvent;
    import javax.faces.event.PhaseId;
    import javax.faces.event.PhaseListener;
    public class MyPhaseListner implements PhaseListener {
         public void afterPhase(PhaseEvent evt) {
         UIViewRoot root = evt.getFacesContext().getViewRoot();
         if(root == null){
              System.out.println("EXITING : " + evt.getPhaseId());
         }else{
              System.out.println("EXITING : " + evt.getPhaseId() + root.getViewId());
         public void beforePhase(PhaseEvent evt) {
              UIViewRoot root = evt.getFacesContext().getViewRoot();
              if(root != null){
                   System.out.println("ENTERING : " + evt.getPhaseId() + root.getViewId());
              }else{
                   System.out.println("ENTERING : " + evt.getPhaseId());
         public PhaseId getPhaseId() {
              return PhaseId.ANY_PHASE;
    }

  • Photoshop CC video: Where is the audio flyout menu? I want to set the audio level of a clip but when I click the little triangle the flyout only offers Motion options, no audio.

    I created a video clip by ripping from a (non-protected) DVD & brought it into Photoshop CC for editing. I want the audio to fade in & out but cannot find any audio controls!
    The info I've found online says to click the little triangle at the right end of the clip & I should get the audio flyout menu, but all I get is a menu with "Motion" options.
    Please help!! Where are the audio options I see on the tutorials?
    Thanks ...

    The audio was indeed in there; I could hear it! But I found the fix:
    Some Googling revealed that the timeline video sprites should appear *blue*, not purple as in my screenshot. I'm not sure how that happened, but I scrapped the project & restarted from scratch - and though I can't say what I did differently, this time the video sprite in the timeline was blue, and the audio flyout was there! So it's all good, thanks!

  • How does the AS3 property flash.system.Capabilities.hasTLS get set?

    There is a setting called "flash.system.Capabilities.hasTLS" that determines whether or not the Flash Player can make native SSL/TLS-based connections.  The definition of this property says " Specifies whether the system supports native SSL sockets through NetConnection (true) or does not (false)." 
    How does Flash determine whether this property is true or false?  Is the value passed to the Flash player by the browser?  Does Flash figure it out from the environment?  If so, how?

    I, too, am trying to work out how to use extractors. The documentation is sparse.
    I have found that if you replace your:
    arrayList.get(0).nameProperty().set("Hi");
    with:
    list.remove(0);
    your Callback is called, but you pretty quickly get a NullPointerException after it returns.

  • Where on the Apple website  do I go to get a separate iCloud account for my wife so we can keep our text messages separate?

    Both wife and I now have Iphones.  Were on the Apple website do I go to get her, her own icloud account/email etc.  I want to keep the itunes apple ID the same sso we can share purchases, just dont need to see all her messages?

    On her iPhone. Settings>Mail, Contacts, Calendar>Add Account>iCloud>Get A Free Apple ID.
    Use this ID for iCloud, iMessage, and FaceTime on her iPhone. Keep your ID in Settings>iTunes and App Stores on both iPhones.

  • Change the properties of a field dynamically using Getter/Setter methods

    Thanks
    Raj
    Edited by: RajICWeb on Aug 12, 2009 4:31 AM

    Hi Harshit
    Thanks for the reply. Like you suggested, I redefined the get_i_zfield( ) method. But the program is not going through this method.
    FYI.....I created the getter/setter methods manually for my zfield. Plz let me know if I am missing anything. Your help will be greatly appreciated.
    Below is my requirement:
    I need to add an additional column (zfield) to a tree view. The name of the component is BTRESTREE. (there is only one view in this component- this view is having only one context node).
    I tried adding my zfield to the attributes (of the context node) through the wizard by right clicking on the 'Attributes'. But I am not getting the 'Create' Option.
    I posted a thread few days back regarding the same problem. One of the experts (Vikash Krishna) suggested me to add some my zfield by redefining the 'GET_TABLE_LINE_SAMPLE' method. As per his suggestion, I was finally able to see my zfield in
    the configuation tab.
    Now, I have to change the properties of my zfield (make this column editable) in the tree view. For that, the only option that I can see is to change the get_i_zfield( ) method (here we have 'rv_disabled') for my zfield. For this, first I need to add my zfield to the Attributes. To achieve this, I added getter/setter methods manually in the Proxy class.
    Thanks
    Raj

  • Clicking on the iWeb icon does absolutely nothing - cannot get to site

    I am not at all sure what just happened! I have been working on an iWeb site for about a week, sometimes publishing it again when a page needed changes.
    This time I made a graphic modification to all the pages, and then when I published it, it uploaded the pages (I dont remember getting a dialog box saying that "this may take some time . . . you can continue working but do not quit) - ok - that was some time ago - now when I try to open iWeb (I HATE the fact there is no File:Open item)
    it does ABSOLUTEY NOTHING. Where did it disappear to? Can I get it back?
    There is nothing there and I dont know anyway to get to it. Is my work gone?
    When I click on iWeb, the New Page and New Site are dimmed, This is true for both the icon in the Dock and the iWeb icon in the applications folder. Have not quit (tho not much can be selected in the menus and I see no document.)
    In other words, I published a site, and iWeb will not let me edit it.
    Thanks in advance,
    George Bartley

    You can get to your site by typing the uRL into your browser. That way you will see if your updates are there before you start trying to get iWeb to work.
    The URL will be something like...
    http://web.mac.com/username/SiteName/PageName.html
    Make sure you empty the browser cache first.

  • Where is the Messages icon?  How can I get it back?

    Hi -
    I have an iPhone5 running iOS 6.1.4.
    Today I noticed that the Messages icon was gone.  If I double hit the Home button it still shows as a recently used app - so I still can send and receive texts but the icon is not on the Home screen where it usually is.
    I performed a Sync but Messages isn't on the list of apps anyway inside iTunes.
    How do I get the Messages icon back?
    TIA your input
    J2

    The Messages app is a native iOS app and as such cannot be deleted. If you go to search screen and type it in, over to the right, does it identify a folder it is in. Usually this is what happens, it gets accidently dragged into a folder, or on another page. If you cannot find it that way, try a reset. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone restarts, see if you find it. If not, then go to Settings, General, Reset, Reset Home Screen Layout. That should bring it back.

  • BC4J - where is the best place to keep "Code" values?

    For tables with "Code" values (such as "ACCTG" for "Accounting", "RD" for "Reasearch and Development", etc) where the Code itself is a key (PK or AK) of the table and where I would be doing comparisons to a code value (such as setting a runtime where clause or param value), I generally build a wrapper class for the table and create public static final String values for the code values, so as not to litter these values throughout my code/pages/etc (centralizing maintenance when code values change, etc). The problem is that #1, these classes generally live in my application packages, resulting in less direct reuse and #2, changes to code values require recompilation, redistribution of the affected classes and restarting of OC4J listeners (as the classes are in the classpath).
    I would ideally like to find a place w/in the BC4J framework to declare these in an XML file (such as EntityXYZ.xml) that I could then access at runtime (w/o accessing oracle.jbo.server package objects). However, as my lookup VO's are SQL-based, not EO-based, I don't have a direct route via ViewRowImpl to the EntityImpl so that I can access the EO's XML properties. I don't really want to set them as properties of a VO, as multiple VO's could use these same codes, so I'd be back to a maintenance problem. Ideally, I would like to have these code values in some location that transcends AMs (ie, not define then at the AM-level either), as I could be using the same underlying table Code values in various AMs and would like to maintain these code values in only one place outside of the database. It seems that putting them on an EO, since that could be considered the BC4J definition of a table, and providing static access (for efficiency's sake) via some means would be a good solution, but I have concerns about the effect of "sharing" EOs across AMs as well as the problem w/ not wanting to directly access an EntityImpl in my client code (ie, when I don't have a VO hook to an EO).
    How are folks implementing this type of thing via BC4J? (Or are they at all?) Clearly, I could take the next step and implement this stuff better on my own than I'm currently doing, but would like to take advantages of BC4J's built-in XML property capabilities versus write my own (and it would be a more centralized place to keep that info, as well...)
    Thoughts, suggestions??
    Thanks,
    Jim Stoll

    Thanks for the reply Steve! I'll take a deeper look into the ToyStore app - an initial browse through didn't seem to reveal what I was looking for, but I was admittedly looking for a particular style of solution. I'll look at the .properties file scheme straightaway.
    I understand the ability to share VOs across AMs, as I do that pretty regularly. My concern about specifying code values at the VO level arises from the (likely) possibility that I could have more than one VO that needs to reference a lookup table 'code' value, and want to avoid having to specify the code values in more than one VO. I could build a 'reference' VO that held the code values as properties (or even hard-coded rows, I suppose), but would that not require me to create an instance of that VO when I wanted to reference the code values, even if I didn't need an actual instance of the VO? (My ideal goal is to mimic the efficiency and ease of access of a public static final variable.)
    I'll take a look at that .properties file based implementation and get back with any questions.
    Thanks Again!!
    Jim

  • Where is the cookie manager on Firefox. Can I set Firefox to ask me first to allow individual cookies?

    I read the follow article.
    http://www.mozilla.org/projects/security/pki/psm/help_21/using_priv_help.html
    In this article under "Managing Cookies Site-By-Site" It said
    "To control cookies on a site-by-site basis:
    1. Open the Tasks menu, choose Privacy & Security, and then choose Cookie Manager.
    2. Choose "Unblock Cookies from this Site" or "Block Cookies from this Site."
    When you are warned (while browsing) that a web site is requesting to set a cookie, you can click Yes to allow or No to deny the cookie. You can also select the option for your browser to "Remember this decision."....
    My questions is 1. I can't find the cookie Manager in firefox (I have the latest version). The article said "Open task menu, choose Privacy&Security... is that they same as under menu bar, tools, options, privacy (but under this option I don't see the cookie manager mention in the article. (I am thinking what they are describing is not for the version of firefox I have?).
    Bottom lines, I want to set Firefox so It will ask me each time the website want to install a cookie and for me to decide to allow that or not. I article above seem to describe how to do that but either I am looking in the wrong place or I am not doing it right.
    thanks in advance.
    panzer_ace

    Hi,
    I think that what you are searching be in Tools >> Options >> Privacy >> On Firefox will: change to "Use custom settings for history" then Button Show Cookies will be allowed and you will see the cookies in your browser in the next window
    If you uncheck "Accept cookies from sites", probably the sites that need cookies will alert you that you need active the storage cookies

Maybe you are looking for

  • Supp Open Interface Import concurent program submit from Pl/Sql not Working

    Hi, I am new to Financials and using R12.1. We are integrating the Supplier Master from the Operations system from a different platform. The records are inserted into the interface tables and subsequently we need to trigger the concurrent programs fr

  • OTA Update - code 401

    I was notified that today's Thunderbolt software update to version 605.5 was available for download. I accidentally pushed back instead of OK & now the update is not available & under status, it says that I rejected the update with code 401. I have t

  • Vertical Partitioning in Oracle

    Hi, Can any body please give me idea how can a table be partitioned vertically in oracle. Is vertical partitioning possible in oracle? If it is possible then, please give an example of it. Regards, Koushik

  • How to Be a Power BI Administrator

    Hi, Does anyone know a link or book that tells how to be a Power BI Administrator?  I see tons of stuff aimed at decision makers and business analysts but what I am looking for is a guide for how to make it work. Thanks, Croix g

  • Is there an Apple User Manual for Pages 5.5.2?

    I've been a Pages 09 user for many years. There's a lot to like in Pages 5.5.2. But a user manual showing techniques would be appreciated. Particularly for Search & Replace, whole word searches, invisibles searches, and so forth. Appreciated.