Error when using a condition for required attribute

Hi
I have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....
I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method that is being called for doing the condition check is given below:
public boolean isSomeCondition() {
    // assumes submitButton is a component binding 
    FacesContext fc = FacesContext.getCurrentInstance();
    Map reqParams = fc.getExternalContext().getRequestParameterMap();
    return reqParams.containsKey(submitButton.getClientId());
  }It is same that is given at the following location
http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works ---Soln 3
But the problem is if I am submitting the form using Javascript from another page(page is a popup that is opened inside the current window), this condition doesnt work and it gives me an error saying "Check some field for its value"
Please help me sort out this problem
Thanks

I think the problem is not clear....my mistake
I try to be more elaborate on this....
I open up a popup page from my main window....Here I perform a search(lets say there is a requirement for finding the Country and pincode for a particular city that the user enters)
Now when I select the particular row in the datatable and click the submit button...... I want the selected values to be filled inside the parent window.....
I want to bring to your notice that the button that is clicked is in the popup page...not in the parent window.....
So you see that when that button in popup is clicked i am submiting the form of the parent window and during that time I dont want the validation to occur..... To submit the form of the parent window I use the Javascript like this : window.opener.document.forms[0].submit();Also one more thing that I want to mention is that the method that is used for specifying the condition for required attribute for mandatory fields in the parent window works fine for any button that i click inside my parent window......
What I mean by this is lets say I have a button to add a dynamic row into my parent page then also I have to submit the form but during that time validation should not occur and it works fine.
So now I think its clear that the Javascript is being invoked from another page which is submitting the parent window.....
Then you're doing something wrong. Invoking the wrong button maybe? So please enlighten me where i am wrong and how possibly would I know which button I am invoking??

Similar Messages

  • Error when using SAP authentication for Designer

    my error is:
    [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(The
    secSAPR3 DLL could not be found or does not exist(hr=#0x80042a01)
    can you help me?
    regards

    hi,
    pls refer the link
    Error when using SAP authentication for Designer
    try re-installing BOE and check
    hope it helps,
    sundar

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • List Views displaying error - when using Lookup column for filtering ( which are indexed )

    I'm trying to filter a large list that has more items than the list view threshold. The list has a lookup column that is indexed. If I  try to filter by other columns, the view works fine as long as it returns fewer than 5,000 items. However, if
    I try to filter by the lookup column, I get the error about not being able to display the items because the list is too large.
    The views are returning items which are less than threshold value , but still I am seeing the same issue.I Created some pages and added this filtered views to the pages it is showing below error
    This view cannot be displayed because it exceeds the list view threshold ....
    IF I navigate the view in the list it's returning zero records with out any error page . But no records. 
    Is there a known issue with filtering large lists by lookup column? Any other troubleshooting suggestions? Everything I'm doing here is through the web interface.

    Thank you for your reply. Yeah it’s default limit. But when I created view based on some filter condition on lookup column it’s not working.
    For example:
    Created a View based on Lookup column DEPT using filter condition Dept = HR , returned 1400 items
    Created another View based on Lookup column DEPT using filter condition Dept=Admin , returned 3600 items
    Adding this list view webparts to the page also working fine , displaying the results .
    After adding one item to this list , both the views are not displaying any results. Now the count is 5001.(it exceeded the list view threshold)
    The page where the list view web parts are added throwing the below error.
    This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.
    To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify
    the view so that it conforms to the list view threshold.
    Learn about
    creating views for large lists.
    I am experiencing this problem only with lookup columns, Choice and site columns are working fine in this same situation .
    Thanks,

  • Error when giving untill condition for System time and date

    Hi Experts,
    i am using Untill Loop in my workflow to set condition for System time and date.According to this condition when system date and time is greater than equal to some date and time then mail goes to an agent.But during testing , the workflow gets into error stage.
                 In workflow log i am getting error like
    'Maximum number of    10000 nodes reached' in executed action 'DEQUEUE_NEXT_NODE'  for false condition.
                        Please suggest what may be possible cause or solution for it?
               Points will be rewarded for any good solution.
    Thanks
    Snehasish Das

    Hi,
    You should not use loop for that kind of purpose. It sounds to me that your workflow is looping all  the time, and the maximum numer of nodes is reached soon, and the workflow goes into error.
    You should use the WF deadline functionality for your purpose. For example use in a relevant step the "latest end" tab, and define the deadline there. Then when your deadline is reached, the workflow will continue in a separate outcome, and there you can send your mail.
    Regards,
    Karri

  • FTPs connection error:When using Variable substitution for Directory path

    Hi
    I am transferring data from BI to xml file via PI: Here a Client proxy from BI sends the data to PI and the PI FTPs the XML file to a remote location. For FTP I am using FTPs SSL connection.
    It was working fine untill I used Variable susbstitution to determine Directory path dynamically. I am using this because different xml files are intended to goto the different locations.
    I did the variable substitution like this:
    Target Message Structure:
    ---> Target Directory: %var1%
    <?xml version="1.0" encoding="UTF-8" ?>
    <MT_BI_EXTRACT_FILE>
      <Header>
         <Directory>/Customer</Directory>
    </Header>
    <Detail>
    </Detail>
       </MT_BI_EXTRACT_FILE>
    And in the variable substitution I am doing it this way
    payload:MT_BI_EXTRACT_FILE,1,Header,1,Directory,1
    And the error I am getting is:
    Attempt to process file failed with Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    Exception caught by adapter framework: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure.
    Does anybody have some Idea of this ??
    Regards
    Naina

    Hi,
    I guess the problem is not with Variable Substitution..
    Error when getting an FTP connection from connection pool:
    So its a connection problem..
    Also check the option Disable Security check and try again...
    Try to check again if the interface is executing properly without Variable substitution and let us know..
    Babu
    Edited by: hlbabu123 on Jan 7, 2011 2:46 PM

  • Error when use descriptive flexfield for locale of German

    Reports will work in English but changing locale to German causes report to get error when a flexfield used as a numeric is in the view.
    The error is: Es werden Keine Daten angezeight,weil wahrend der Ausfuhrung der Abfrage ein Fehler aufgetreten ist.,, which basically means an error occured.
    Any recommendations on how to get the Discoverer report to run for both languages... The flexfield values are entered as numeric and we want to be able to use them in Discoverer as numbers.
    Amy

    Hi,
    Flexfields are stored as text in the database but you must be converting them into numbers somewhere. My guess is that Oracle is using an implicit TO_NUMBER to convert the text field to a number in the view.
    Now by default, when the locale is set to German Discoverer will set the NLS_LANGUAGE and NLS_NUMERIC_CHARACTERS parameters for the database session to German. You can check by including USERENV('LANG') as a calculation in one of your reports or check the v$nls_parameters view for a full list. With the US language the text string 1.5 will be converted to a number but with the German numeric characters this could fail because German uses "," as the decimal point.
    Also if you are using the VL flexfield language translation views then when the NLSLANGUAGE is set a different results (the translated flexfield) is returned in the view. This could be another cause of the differences you are seeing.
    The easiest way to fix this is to find where the number is being converted and specify the format of the number explicitly. So if you flexfields used the number format 9999.9 then you would use:
    TO_NUMBER(col, '9999.9')
    Rod West

  • Compile error when using Collections.sort for Vector, why?

    The compiler is giving an error when trying to do this (I'm using JDK 1.5.0_09):
    Vector <String> test = new Vector <String>();
    test.add("test1");
    test.add("test2");
    test.add("test3");
    Collections.sort(test);The error being:
    The method sort(Vector<String>) is undefined for the type Collections
    Collections.sort takes List, but Vector is of type List, so this should work, correct?

    ChuckBing wrote:
    No. Vector is not a subclass of List. Use List.um.. Vector implements List

  • Getting denied errors when using TMG Array for publishing Exchange and Lync

    I'm setting up a TMG array of 2 TMG servers for Lync. The TMG array is already in use for Exchange. The Exchange publishing rules and web listener use a VIP of x.x.x.220.
    I added a secondary VIP of x.x.x.209 for Lync and set up a web listener and Lync pubishing rule using the secondary VIP. I am now getting the below error. And yes, there are publishing rule and listener for the Lync URL's already.
    I've google'd and google'd but didn't find any answers.
    One thing I do notice on the setting for the Lync Web Listener is that the secondary VIP IP shows as "Virtual IP" as opposed to "<server name>" as with the primary VIP IP for Exchange rules/listener (x.x.x.220).
    All the listner / rule settings are fine, and I've rechecked many times. It just appears that when I send requests for the Lync URL's, TMG doesn't even relate the request to the Lync Rule.
    Any help would be appreciated!
    me

    If NLB reports configuration failure as above, then that is your issue.
    The resulting error message when traffic hits TMG is because of that and the reason for it is that the IP address used in publishing is in the TMG configuration but most likely not configured on the NIC. As long as your IT dept doesn't resolve the issue
    with NLB then your progress will be limited.
    If the hotfix matches your environment, then apply it. If it resolves it, then that is good.
    If not, you need to review your NLB configuration in TMG (unicast/multicast) vs your network infrastructure. If it is multicast, then you need to have your networking team look at the switch TMG is conneced to and configure it accordingly.
    http://technet.microsoft.com/en-us/library/ff849728.aspx is a good start for troubleshooting and understanding NLB and TMG.
    Hth, Anders Janson Enfo Zipper

  • Error when using FND FORMAT_CURRENCY for XML Publisher report

    XML_REPORTS_XENVIRONMENT is :
    /apps01/applclone/erpcloneora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /apps01/applclone/erpcloneora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    _AMERICA.UTF8
    stat_low = B
    stat_high = 0
    emsg:was terminated by signal 11
    Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 3125762.
    Review your concurrent request log and/or report output file for more detailed information.
    Edited by: user11972592 on 20-May-2010 02:30
    Edited by: user11972592 on 20-May-2010 02:46

    I just tried:
    substr(to_timestamp(svs_date, 'dd-mon-yy'),1,9)which crops it but then the interactive searches dont work again so its basically the same as Date. :(
    Mike

  • Interface Not Found Error when Using Snap Example for Firewire (IEEE 1394)

    I just recently installed a SONY XCD-SX910 to interface with Labview 8.2.  When choosing the driver, only the Legacy driver would work for the Firewire(R) (or IEEE 1394) installation.  After installing the driver, I successfully acquired images from the MAX inteface.  However, when attempting to trace through the 1394 Legacy Snap Example from the IEEE 1394 installation document, I am receiving the error "Interface Not Found".  I have tried a few iterations attempting to name the camera such as "cam0" (the name assigned to the camera in MAX) and "cam0 : SONY XCD-SX910".  However, the error persists.
    What should I name my camera for it to find the interface?  Is there another underlying problem that is not obvious?
    Solved!
    Go to Solution.

    Is the Legacy Snap example you are referring to the one that is seen here: http://zone.ni.com/devzone/cda/tut/p/id/2977? Can you post screenshots from both Measurement & Automation Explorer and the VI you are trying to use? Also, can you verify in Measurement & Automation explorer that you are using the 1394 driver? You can do this by right clicking your camer and the selecting driver and choosing the appropriate one. Some more information on all that you are seeing would help in order to troubleshoot this.
    -Zach
    Certified LabVIEW Developer

  • ERROR when using Integration Monitoring FOR XI

    Hello every,after install xi and update the patch to last.when I open  Integration Monitoring web page and use xisuper to login. as soon as i click the Component Monitoring or Message Monitoring  the system tell me that Following error occurred while executing the application:
      Error during communication with System Landscape Directory: User credentials are invalid or user is denied access
    I have check everything that I could thought.It make me crazy. who can help me and give me some useful suggestion.

    Hi,
    I think, this is because of incosistent SLD entry
    Refer this SAP Note - 764176. Also refer this note- 768456
    Hope this helps
    Regards,
    Moorthy

  • Dataset gives error when using BETWEEN condition

    Hi All,
    In BIP 11.1.1.5 I've created a simple dataset querying on our OBI server (so I'm selecting columns from a subject area and not directly from a database).
    I would like to see data between 2 margins. So I created 2 lov's combined with 2 parameters (let's say: P_1 and P_2).
    Then I eddited my dataset with a line like this:
    WHERE fact.measure BETWEEN (:P_1) AND (:P_2)
    But this gives me an error. When I use:
    WHERE fact.measure IN (:P_1)
    everything seems to work fine.
    I've als tried:
    WHERE fact.measure > (:P_1) AND fact.measure < (:P_2)
    but that doesn't work either.
    Does anyone have a suggestion?
    Kind regards,
    Machiel

    Problem solved.
    Syntax seemed to be as following:
    WHERE fact.measure > :P_1 AND fact.measure < :P_2

  • Bug? Error when using Alternate Display for a preso with Build transitions.

    I was working on a preso and Alternate Display worked fine for a while when I'd play the presentation. Then I added some Build transitions and when I tried to play the presentation, I started getting this error:
    *Keynote cannot play your slideshow because an error occurred.*
    I restarted Keynote and created a new presentation. Alternate Display worked fine when I just had a couple of plain test slides. Then I added a Build to a set of bullet points and started getting the error again.
    Is this a known bug? Any way to fix it? Is it caused by something else?
    System Version: Mac OS X 10.6.4 (10F569)
    Chipset Model: NVIDIA GeForce GT 330M
    Model Name: MacBook Pro
    Total Number Of Cores: 2
    L2 Cache (per core): 256 KB
    L3 Cache: 3 MB
    Memory: 4 GB

    Certainly not a known KN bug, but might be an expression of the NVIDIA problem referred to here: <http://www.macrumors.com/2010/09/29/nvidia-class-action-settlement-for-macbook -pro-owners/>. Given your expertise and your hardware, that'd be my first guess. Barring that, you have to line up the usual suspects: corrupt pref file, corrupted app, etc. Have you been having any other problems/strange behavior either with KN, with other apps, or with your Mac generally? What, if any, software maintenance/repair have you tried/do you do routinely?

  • Error when using SAP authentication for Business object Designer

    my error is:    [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(The  secSAPR3 DLL could not be found or does not exist(hr=#0x80042a01)      can you help me?    regards

    Hello Barbella,
    Might be firewall problem...
    This link might help you resolve the issue.. kindly go through it..
    Connection between Universe Designer and BO Server can't be established,&amp;nbsp;PROTS&amp;nbsp;|&amp;nbsp;ABAP,&amp;nb…
    Let us know the result.
    Regards
    Subbarao M

Maybe you are looking for

  • Forward to Voicemail

    I have a number of phones set up in a school, When a user dials the main switch board number, the switch board can then transfer the call to the classrooms If the classroom phone is not answered then it diverts back to the switchboard, if the switchb

  • How to find the list of WDAs for IS Retail?

    Hi all I did some basic search on SDN to find all WDA components SAP will predeliver on the installation of IS-Retail. I could not find useful links. Does anyone know how to find it? Also would like to know the SAP roadmap on the WDA apps that will b

  • Won't Re-Adjust the Screen Resolution

    I have a retinal display 13-in Macbook Pro running 10.8.5.  After I use an external monitor (27" Thunderbolt Display) and I unplug the thunderbolt display port to take my laptop to meetings, my Macbook Pro still thinks my resolution is 2560x1440.  Th

  • IDVD and AVI files. (No sound)

    I have a couple clips in .avi and they play well in quicktime with the Perian program but when i add them into an iDVD project I only get the video and I don't get sound. Is there a program like Perian for iDVD or some sort of plug-in to play the .av

  • Should e-book Data Guard Concepts and Administration be useless for us?

    I think The Data Guard Broker is an easy and efficient way to manage a Data Guard configuration. The Data Guard Broker provides us with two efficient tools: EM Console and DGMGRL. We can do everything we want for Data Guard system. Why we spend so mu