Bug with h:messages and client state saving?

I have an application that uses <h:messages ...> to display validation/conversion errors on the page. I find that when I use "client" for my javax.faces.STATE_SAVING_METHOD, the messages completely destroy the display of the web page - HTML seems to be randomly cut off. Using the "server" state saving method solves the problem. Has anyone else seen this behavior? I can duplicate it easily.
Thanks,
Don

Can you provide us with the jsp page you are using? I do not immediately
see the probem you are encountering.
Thanks,
--roger (jsf co-spec lead)                                                                                                                                                                                                                                                                                                   

Similar Messages

  • ADF Client State Saving

    I have a doubt about client state saving and ADF Faces Components/JSF.
    In my scenario, i have a hardware load balancer in front of two weblogic standard servers. The load balance is configured without affinity.
    The client token generated by the server hitted for the first roundtrip is not readable by the other server on a second roundtrip. I think because each server generates a different hash key. So when the load balancer forwards the client request to the other server in the webfarm, an error occurs because the server can not read the token.
    In .NET, we have a machineKey Attribute configurable in machine.config that let me configure the same hash key in both servers. In this way both servers can read the client token generated from each other.
    Is there something similar in ADF Faces/Weblogic scenario?
    Or ADF Faces Components can be fully stateless?

    John, in my scenario I am looking for scalability and high availability.
    Affinity does not provide high availability to users connected to a server in case of server's outage.
    Client state method setted to All does not fit in my scenario because the page is much complex and a large quantity of data would have to be stored in the client view state causing client slowdown and much network traffic overhead during roundtrips.
    So, or i use client state method setted to token and i be able to generate and read the same token by different servers in the webfarm (and store the session in JDBC persistent store) or i use ADF Faces in a complete stateless manner (nor state at client side neither at server side).
    My doubts are:
    - Is possible to generate and read the same client state token in different servers in a webfarm (http session stored in JDBC) like in ASP.NET through machineKey settings in machine.config?
    - Is possible to use ADF Faces Components in a complete stateless manner without having to store state at client side or server side to achive scalability?
    Best regards

  • Problems with games server and client

    Hi! I am making an MMORPG game and I have problems with the server and client connection.
    I can connect to the server, but when a second player does, the server console tells me this:
    java.net.SocketException: Connection reset
    After that, all clients disconnect.
    Which is the problem?
    How can I solve it?
    Thank you so much

    Here is how my sever work. I took some of this code from a book called Killer Programming Games in Java. If you google for it, you will find it for sure.
    TourGroup tg = new TourGroup(); // this object stores information about all clients connected to the server
        try {
          ServerSocket serverSock = new ServerSocket(PORT);
          Socket clientSock;
          while (true) {
            System.out.println("Waiting for a client...");
            clientSock = serverSock.accept();
            new TourServerHandler(clientSock, tg).start(); // this is the thread that monitors each client
        catch(Exception e)
        {  System.out.println(e);  }
      } This is some code of TourServerHandler
    public TourServerHandler(Socket s, TourGroup tg)
        this.tg = tg;
        clientSock = s;
        name= "?";
        cliAddr = clientSock.getInetAddress().getHostAddress();
        port = clientSock.getPort();
        System.out.println("Client connection from (" +
                     cliAddr + ", " + port + ")");
    public void run()
      // process messages from the client
        try {
          // Get I/O streams from the socket
          BufferedReader in  = new BufferedReader(
       new InputStreamReader( clientSock.getInputStream() ) );
          PrintWriter out =
    new PrintWriter( clientSock.getOutputStream(), true );  
    // and here goes the rest... The TourServerHandler thread uses this code to send messages:
    tg.broadcast(msg); tg.broadcast works like this:
    synchronized public void broadcast(String cliAddr, int port, String msg)
      // broadcast to everyone but original msg sender
        TouristInfo c; // this object stores info about the client
        for(int i=0; i < tourPeople.size(); i++) {
          c = (TouristInfo) tourPeople.get(i);
            c.sendMessage(msg);
      } This is the error part
    public void sendMessage(String msg)
      PrintWriter out;  
        out.println(msg);  
          System.out.println("OK");
      } I can't find any error but I still get that Connection reset exception...

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • How do i save a calender i have created with the photo and the dates saved on separate pages?

    how do i save a calender i have created in photoshop with the photo and the dates saved as two separate pages?  when i save as pdf or jpeg they are authomatically saving 1 pg with the photo and dates on one page.  This is causing problems when i print.

    Hi there, in case your printer cannot print very large, you can also crop down two versions and print them as separate documents.
    1) Create a guide where you would like to split the pages by clicking on the ruler (hit command R if they are not showing) and dragging to the desired area.
    Creating the guide will make it so you can be precise in the way you split up your page, and so that no part of the image will be repeated or lost.
    2) Select the Crop Tool and fit the crop area to the top half of your calendar, using the guide you've just made to snap to the right spot. Hit return to finalize the crop.
    3) Go to File > Save As. Name the file something like calendar_top and select the desired file format. Hit "Save."
    4) Once you get back to your calendar file, Go to the History panel and select "Drag Guide." This will take you back to the step before you cropped the image.
    5) Repeat the steps as before for the bottom half of the calendar, once again using the guide to help you make your crop area.
    So then you would just print each of the two pages individually. The images will not be contained within one document, but if you have Acrobat you could combine the files.
    I hope this helps!

  • I am using Lion on a new iMac. When I open the dashboard it comes on for 30 seconds then it closes with the message"dashboard client quit" How can I fix this?

    I am using Lion on a new iMac. After a few months the dashboard quits after about 30 seconds with the message "dashboard client quit". Is Thera way to if this? I am considering upgrading to Moutain Lion. Will this cause a problem?

    I dont know its the wifi at work...ssshhh dont tell. I will try it at home where I know it is hi-speed.

  • ADF EA 16, client state saving bug

    Hi,
    I have similiar issue as one reported at: Re: Bug in ADF client-side state saving.
    I have bug with <af:showDetail> component when using CLIENT_STATE_METHOD.
    I have this code in jsp:
    <af:showDetail id="payingItem" disclosedText="a" undisclosedText="b" styleClass="xpMenuBars"
    inlineStyle="margin-top: 10px; height: 24px; vertical-align: middle;" binding="#{outlookBar.payment}">
    When using token (server state saving) this HTML is rendered:
    <form><!-- Start: oracle.adf.ShowDetail["payingItem"] --><span id="m:payingItem"><div class="xpMenuBars" style="margin-top:10px;height:24px;vertical-align:middle" duplicate_style="vertical-align:middle"> ...
    You can see that inlineStyle attribute is printed out in HTML style attribute. When I use client side state method ("all" in web.xml) the inlineStyle is not transferred to style (it's empty):
    <form><!-- Start: oracle.adf.ShowDetail["payingItem"] --><span id="m:payingItem"><div class="xpMenuBars" style="" duplicate_style="vertical-align:middle">...
    Hope this will be resolved in EA17.
    Another question is why I have duplicate_style in HTML? Why renderer doesn't append style attribute. Browser wont recognize duplicate_style so it is quite useless.
    Regards, Miroslav Resetar

    You're seeing two separate bugs. One is the one reported earlier: inlineStyle can get dropped when saving state in the client. This has been fixed in EA17.
    The other thing you're seeing - with duplicate_style - is a different bug. It's not that we're outputting "duplicate_style" intentionally, but that our output code automatically (in debug mode) detects when someone tries to write out the same attribute twice (always a bug), and turns the second into "duplicate_xyz" to mark the mistake. So, the real bug is that when you set inlineStyle on af:showDetail, our code tries to write out "style" twice instead of merging the two together.

  • HttpSession replication and server state saving

    The UIComponent class is not serializable, certainly because it is the StateManager which is responsible of saving its state.
    But the default server state manager of the RI stores the whole component tree in the HttpSession. That means that it won't work in clustered environments where the session has to be serialized for replication between servers.
    Will this be addressed in the final release ?

    E> This seems like a really BIG hole that Sun should fill very quickly!
    Thanks for your input. Note: spec is intentionally very vague about the
    specifics of state saving, except to say that the implementation must
    support two options: client and server. Therefore, any solution
    implemented in the Sun RI will likely be specific to that RI. Perhaps
    we can consider standardizing the approach to clustering in a future
    version of the spec.
    E> I came across this thread because I am testing the viability of using
    E> JSF in a JBoss clustered environment (and began getting serialization
    E> errors when I add the <distributable/> stanza to my web.xml file). I
    E> am probably not alone in my discomfort at having to replace a core
    E> JSF class with a "patch" just to get session replication to work. Why
    E> can't you or someone at Sun provide the resolution? All, that aside
    E> you a JSF expert at least provide detailed specifics as to how the
    E> proposed fix can be implemented by corporate JSF developers?
    Here's one very important aspect of application architecture that I'm
    surprised hasn't been pointed out before. Your application should be
    designed such that the all user state resides OUTSIDE of the JSF
    realm, and can therefore be made highly available by virtue of being
    stored in something that does support HA. JSF UI state should mostly be
    in request scope anyway. This is why we spent so much time on the
    ValueBinding API.
    E> Hope to see you at JavaOne (with more questions of
    E> course)!
    Yes, the entire Sun RI team, and several key EG members will be
    available at BOF-2220
    <http://www.javaone04.com/catalog/catalog/sessionDetail.jsp?hd=true&SESSION_ID=10589&form=searchform>.
    Tuesday 29 June 2004 7:30 pm.
    Ed (EG Member)

  • Problem with application item and session state

    Okay, let's see if I can explain this problem coherently.
    I have a small app (one page), with an application item, F_WHERE_CLAUSE.
    This page has three regions in which there are items that the users can populate for search conditions. A couple of these items are "select list with submit" (I still need to upgrade to the AJAX method, I know). There is another region which has one hidden field, called P1_WHERE_CLAUSE. This field is defined to "Always, replacing any value in session state..." with source type of "Item (application or page.....", and a source value of F_WHERE_CLAUSE with no default value.
    I have a button called "Search" which submits the page and fires a PL/SQL process which builds a where condition based upon the other page items and stores the value to the application item F_WHERE_CLAUSE (correctly).
    For testing, I've made the P1_WHERE_CLAUSE field visible so that I can see what's going on. I've also clicked the debug and session buttons to help trace this. After I click the "Search" button and the page submits, debug shows:
    0.02: ...Session State: Save "P1_WHERE_CLAUSE" - saving same value: "1=1"
    followed later by:
    0.05: ...Session State: Saved Item "F_WHERE_CLAUSE" New Value="lower(primary_class) = 'rock' and country = 'Spain'"
    The field P1_WHERE_CLAUSE displays with the correct search criteria as signified by F_WHERE_CLAUSE above. However, If I click the "session" button to view the session state values, P1_WHERE_CLAUSE shows up as:
    P1_WHERE_CLAUSE Textarea    1=1    U while F_WHERE_CLAUSE displays the correct value still.
    The reason this "problem" came up, is that this page also has three SQL report regions which use &P1_WHERE_CLAUSE. for the where condition. While they display the correct results on-screen, each report region also has the "Export to csv" enabled, and the export seems to be using the "1=1" condition (from the "session" window) instead of the search criteria that the on-screen region is using (F_WHERE_CLAUSE and the displayed P1_WHERE_CLAUSE), resulting in a retreival of all records.
    Anybody have any idea what's going on and why, and how to get the csv export to use the correct value for the where condition?
    Thanks,
    Bill Ferguson

    It appears the "Export to CSV" functionality requires the item value to be set in session state. The P1_WHERE_CLAUSE item value never gets saved to session state. The page is rendered and the value is put in the item on the page but until you submit the page session state doesn't know what P1_WHERE_CLAUSE is.
    Create a before header computation or process to set the value of P1_WHERE_CLAUSE (which will save it to session state). It is interesting that the report regions didn't need to look at the value in session state but the "export to csv" does.
    --Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I change the phone number associated with my messages and facetime?  It's tied to my husband's number, and needs to be switched to mine.

    I'm trying to change the number associated with our ipad's facetime and messages to my number, not my husbands.  When I look under settings, it shows his number, but I don't see the opportunity to change or edit the number. 

    It will not send notifications for that number to that devcie if turnmed off but the number is still active if selected on other devices.
    Messages is lionked through the use of your Apple ID and any numbers or email associated to that ID can be set as notifications.
    The Phone numbers seem to be registered before email in messages and the easiest method for setup that I have found is to turn messages off on asll devices that you have under that Apple ID.
    Then start with your iphone first, turn messagaes on, wait a few minutes for it to completly register.
    Then go to the next device and do the same until complete, with each new device A prompt should come up asking if you want to associate the previous contact metyhod with this device.
    Here is a help topic from apple on messges as well.
    http://support.apple.com/kb/HT3529

  • Has anyone seen this BUG with Time Warp and Dissolve?

    I'm doing some real basic slow-mo clips, transitioning with various dissolve wipes. I've come across a problem that is extreemly frustrating! I'm wondering if anyone has insight on a fix or if Adobe does service packs or fixes that I might be able to install.
    If you put two clips adjacent to each other on a timeline, apply time warp, set percentage to say 30% of realtime, then apply a dissolve between the clips, clip B, the outclip will play in reverse for a period equal to about 1/3 of the duration of the clip.
    This is true scrubbing through the timeline and even rendering.
    VERY ANNOYING!
    I'm going to call support tomorrow, but that's not going to help me get my project finished any sooner since this is a critical element in this composition. I've tried the time remapping method, but the frame-blend is no match for the pixel motion of time warp.

    Steve,
    I think your post #11 was being sarcastic, but you left a little wiggle room for it not to be. With the sarcastic interpretation, I must add my thoughts:
    Here is the link to the Adobe bug report form
    . It is important that users who discover bugs with reproducible steps file them - otherwise they don't stand a chance of ever getting fixed. Steven Gotz's advice was sound in this regard.
    As to the discussion of workarounds - since this is a User-to-User forum, the best that we as a community can do is help each other out with workarounds, since none of us here have the power to actually fix anything.
    The important thing to glean from SG's post is the definite need to file a bug report.

  • When i try to send a picture or a video with imessage on my iphone 4, it sends it with text messages and not imessage and it takes a lot of time ! How can i fix this ? thanks :)

    Hey guys ,
    When i try to send a picture with imessage to an another iphone it's sends it with text messages (not all the times but often) and it takes a lot of time ! Who could I fix this ?
    Thanks anyway ,
    guitarist young

    For Instagram you can try and uninstall and reinstall the app and see if that fixes it. But if not you can try and resetting all settings, Settings>General>Reset>Reset All Settings.

  • Imovie '09 v8.0.5 bugs with speed change and titles

    OK so here is what I'm experiencing.
    I take a clip and change the speed. Then I add transition from the previous clip to this one and all of a sudden I cannot play the video again. I can't delete the slowed down clip even. I can play video that is in the events library, but not that in my project. When I do mouse over the beginning of my video and play I can hear the sound but it is like it is far off in the distance and the video is just solid gray. I have run into many other similar bugs when changing the speed of a clip but could always delete the clip, quit, relaunch, and try again. With this problem I added a transition and can't even delete the clip. Apple please address this issue. Thanks!

    I am having the exact same issue. Change the speed of a clip in the project, then the ongoing video screen no longer displays the project correctly (but does display when playing clips from the library). This happened recently as I've made several older projects on iMovie 09 using multiple speeds. Perhaps a bug with the 8.0.5 update.

  • Possible bug with Pick flag and Collections

    Odd behaviours in v3.3  (Windows) with pick flags in Collections:
    Create (or use) a Collection Set which contains a number of different collections
    Assign Pick plag to one photo in each collection
    Bug 1: Highlight Collection Set and note that none of the images shows the Pick Flag in the thumbnail view. Also Filtering this view with Pick flag fails to pick up the Flagged images
    Now return to one of the Collections within the Set and create a Virtual Copy of one of the images that has a Pick flag. (Note virtual copy does not have a flag - which seems logical). Return to Collection Set and (Bug 2) note that Pick flag has disappeared from original image and now appears on Virtual copy.
    Something wrong here somewhere I suspect.

    lightshop wrote:
    Odd behaviours in v3.3  (Windows) with pick flags in Collections:
    Create (or use) a Collection Set which contains a number of different collections
    Assign Pick plag to one photo in each collection
    Bug 1: Highlight Collection Set and note that none of the images shows the Pick Flag in the thumbnail view. Also Filtering this view with Pick flag fails to pick up the Flagged images
    Now return to one of the Collections within the Set and create a Virtual Copy of one of the images that has a Pick flag. (Note virtual copy does not have a flag - which seems logical). Return to Collection Set and (Bug 2) note that Pick flag has disappeared from original image and now appears on Virtual copy.
    Something wrong here somewhere I suspect.
    I could partially repeat bug 2.
    I have Collection Set (Test) which contain to collections: "Collection 1" and "Collection 2". Both Collections contain 4 images.
    I selected "Collection 1" and applied Pick flag to all those images. When I select Test (Collection Set) I got 8 images shown,  which none had flags. Ok, this works as expected. I selected "Collection 1" and then selected 1 image and made Virtual copy from it. Lr show me now 4 images with Flag and 1 virtual copy without. Again, works as expected. I now select Test (Collection Set) and I get 9 images (as expected), but one of them, the virtual copy, has pick flag applied. Not as expected. If I go back to "Collection 1" I get four images with Pick flags and one virtual copy without. (as expected.)

  • HELP!  I am having trouble with text messaging and sending pictures

    I have had the handcent app for a very long time and I have never had any issues with it.  Today I downloaded an up date and it is running VERY SLOW and also will not allow me to send pics. It just kicks me out to my home screen.  I have tried uninstalling the app and reinstalling it which did not help.  I have tried uninstalling it and just using the standard messaging and it just keeps trying to load the screen to text.  I have tried restarting the phone and turning it off for a few minutes.  My notifications are not running correctly either.  The text pops up then the sound come a minute or two later.  Anyone have any ideas on what to do to resolve this issue or experiencing the same thing?
    Thanks in advance!
        Kim

    From your description it sounds like you have something hogging up all your systems resources... Try downloading System Panel and activate the monitoring option under the settings and allow it to run and see if it shows any apparently that was using extremely high resources and then try to close it or you can try using a Task Killer for a minute and close. all unused Apps and see if problem continue.
    Also you could boot into Safe Mode and see what happens.. Instruction at http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=42081

Maybe you are looking for

  • Converting simple report output to PDF print layout issue

    Hi all, I am converted one report output to PDF format, it is working fine in one DEV sever, but when we moved it to other server the layout of output preview & font size  is not coming properly (as same in DEV server)  in the new server. I am using

  • SAP system copy error

    Hi Experts, I am currently facing an issue/error while doing a homogeneous system copy with SAP NW 7.4 (SAP ERP 6.0 Ehp7) servers. Both source and target systems are test/demo servers and system copy procedure needs to be established as a part of imp

  • ITunes 9 has corrupted my iPod Classic

    So here is my sorry story - please let me know if you have had similar symptoms and if you have found a solution. I have a MacBook Pro, running Snow Leopard. I recently upgraded iTunes to iTunes version 9.0.2 and attempted to synchronise my iPod Clas

  • Can anyone help get me started on making a simple custom web gallery template?

    I have tried using the documentation and a freeware template as an example, but I am getting confused, and I think the template is over-complicating things. I have a web-template that requires the following to get images to automatically work in a ga

  • Where can I find a Replacement Display for 2012 21.5 iMac ?

    Hi Everyone. Does anyone know where I can find an A condition Display for a Late 2012 21.5" iMac :LM215WF3 (SD) (D1) Made by LG ? Or I remember reading LG made a Monitor with the same Display ,Anyone remember that Model # ? Thank You G