Results 1 to 3 of 3
  1. #1
    Dreambig is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Question rich:modalPanel display problem

    I have got a rich modal panel that gets displayed once the user hits the save button. However, if the form validation fails, the modal panel should not be displayed. Within the save button action method savePromotion(), I set a boolean displayModalPanel property to false if validation fails and to true if if it succeeds (by default it's set to true). Then using rich:componentControl, I display the modal panel which should be rendered only if the displayModalPanel is true. I use the rendered attribute of componentControl to control that. The problem: the modal panel always displays even if the displayModalPanel set to false within savePromotion() method. It seems somehow the rendered is not being re-evaluated. I am not sure how I can get this to work. Any help will be greatly appreciated.


    <a4j:commandButton value="save"
    action="#{AddPromotion.savePromotion}">
    <rich:componentControl for="savePromoPanel"
    operation="show"
    event="oncomplete"
    rendered="#{AddPromotion.displayModalPanel}"/>
    </a4j:commandButton>


    <rich:modalPanel id="savePromoPanel" width="350" height="150">
    <!-- modal panel code here -->
    </rich:modalPanel>

    //Java code
    boolean displayModalPanel = true;

    public boolean isdisplayModalPanel () {
    return displayModalPanel ;
    }

    public void setdisplayModalPanel (boolean displayModalPanel ) {
    this.displayModalPanel = displayModalPanel ;
    }



    public void savePromotion () {
    // other code here

    if (validationFailed)
    setdisplayModalPanel (false);
    else
    setdisplayModalPanel (true);
    }

  2. #2
    Unitlenot is offline Member
    Join Date
    Jan 2012
    Location
    Mozambique
    Posts
    1
    Rep Power
    0

    Default You may obtain even more recommendations

    When choosing of which try to locate, you will need to look at convenience to be a abnormal main concern when any kind of shopper are going to be wearing that headsets for a long time of one's. A quick idea is usually to watch out for shock reduction most the way in which across the placed. If you'd like to block out outdoor noises most of the time, subsequently pick an issue along with dynamic noises influence skills, this particular makes the lowest pitch transmission along with sections out irritating background sounds. Variances these include greatly a lot more than standard wi-fi collections.

    A isn't such a long time before, when when kids useful to jam for the recorded beats when the most people accustomed to have report game enthusiasts beats solo hd red
    in their rooms. Concept comes with advanced such that will all sorts of things is usually adjusted. What ended up being applied 20 years in the past may additionally be regarded vintage. Nevertheless with these shifts can come showing numberous perk. To beats enthusiasts, that arrives in the form of Video games combined with earphones. The whole thing is more compact, better to take. Several years before, if person told that it'll be substantially potential to check on popular music with a headset with out insert installing by way of the application, we'd believe that person has been ridiculous. However is not at this moment, nowadays its likely. And for that reason solutions is do not restrained. It is always ready to accept wonderful options together with wonderful memories. Certainly one of which might be earbuds.
    monster beats solo hd rød

Similar Threads

  1. Struts 2 paging problem using display tag...?
    By prabhurangan in forum Web Frameworks
    Replies: 1
    Last Post: 01-15-2014, 09:00 AM
  2. Help me please in studing rich:tree
    By ruby in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 07-28-2009, 08:13 PM
  3. Date n Time Display problem
    By kapilverma32 in forum Advanced Java
    Replies: 6
    Last Post: 02-10-2009, 01:53 PM
  4. Problem with display the character
    By romina in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 07:43 PM
  5. Problem with display in Netbeans 5.5
    By Albert in forum NetBeans
    Replies: 1
    Last Post: 07-13-2007, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •