Input File on a Popup doesn't render after adding Javascript

Hi,
I have a very tricky problem.
I have added a javascript function on component initialization to validate a "ADF Input file on a Popup". Popup is opened on clicking a link. Unfortunately Popup doesn't seem to render but the javascript function is getting invoked.
What could be wrong?
This is my JSPX code:
<af:popup childCreation="deferred" autoCancel="disabled" id="p1">
<af:panelWindow id="pw1">
<af:inputFile label="My File4" id="myFile" binding="#{fileBean.myFile}"/>
</af:panelWindow>
</af:popup>
This is my javascript:
function ootbValidateFileScript(maxSize) {
alert("ootbValidateFileScript script invoked maxSize: " + maxSize);
return true;
If I avoid the popup and directly put the Input file on the page, everything works fine.
I strongly feel my Javascript is interfering with normal execution of the Popup. What am I doing wrong?
Regards,
PS
Edited by: user13722524 on Aug 23, 2012 11:16 PM

Hi,
As mentioned before javascript is added at component initialization (setter in the bean). something like this:
public void setMyFile(RichInputFile myFile) {
this.myFile = myFile;
myFile.setClientComponent(true);
ClientListenerSet clientListenerSet = myFile.getClientListeners();
if (clientListenerSet == null) {
clientListenerSet = new ClientListenerSet();
clientListenerSet.addBehavior("new ootbValidateFileScript(99)");
myFile.setClientListeners(clientListenerSet);
myFile.setVisible(true);
Jdeveloper version: 12.1.2.0.0
Regards,
PS

Similar Messages

  • EDIT method doesn't work after adding new row

    I would like to start editing after adding new row into TableView.
    I copied example from Oracle website: [Using JavaFX UI Controls - 13 Table View|http://docs.oracle.com/javafx/2/ui_controls/table-view.htm#CJAGDAHE]. Then I put additional button for adding new row and define action for the button.
        final Button addButton = new Button("Add");
        addButton.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent arg0) {
                Person p = new Person("", "", "");
                table.getItems().add(p);               
                table.getSelectionModel().select(p);
                table.edit(table.getSelectionModel().getSelectedIndex(), table.getColumns().get(2));
        });In result I can see selected new row but the table doesn't start edditing in the third column.
    I have similar method for editing existing rows and it works properly.
        final Button editButton = new Button("Edit");
        editButton.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent arg0) {
                table.edit(table.getSelectionModel().getSelectedIndex(), table.getColumns().get(2));
        });Could you help me what I do wrong?

    Try wrapping the setCaretPosition(...) method in a SwingUtilities.invokeLater(...)
    caret=outputArea.getDocument().getText(0,outputArea.getDocument().getLength()).length();Should be:
    caret = outputArea.getDocument().getLength();

  • JSF Portlet doesn't render after EventHandler

    I'm trying to set up basic event IPC between 2 JSF portlets in WLP 10.3.2.
    Portlet A has a JSP with an inputText and and a commandLink:
    <h:inputText value="#{aBean.inputValue}"/>
    <h:commandLink action="#{aBean.clickMe}" value="Click Me">
    </h:commandLink>Backing action creates the event:
    public String clickMe() {
        FacesContext fc = FacesContext.getCurrentInstance();
        ExternalContext ec = fc.getExternalContext();
        ActionRequest ar = (ActionRequest)ec.getRequest();
        HttpServletRequest request =
            (HttpServletRequest) ar.getAttribute("javax.servlet.request");
        PortletBackingContext pbc =
            PortletBackingContext.getPortletBackingContext(request);
        pbc.fireCustomEvent("clickMe", inputValue);
        return "";
    }Portlet B is configured with Init-Param:
    javax.portlet.faces.bridgeEventHander=com.example.event.EventHandlerand Java Processing Event for {urn:com:oracle:wlp:netuix:event:custom}clickMe
    EventHandler has:
    public EventNavigationResult handleEvent(FacesContext context, Event event) {
        String elExpression = "#{bBean}";
        ELContext elContext = context.getELContext();
        ValueExpression valueExpression = context.getApplication().getExpressionFactory().createValueExpression(
            elContext, elExpression, BBean.class);
        BBean bBean = (BBean)valueExpression.getValue(elContext);
        bBean.setDisplayValue((String) event.getValue());
        return null;//new EventNavigationResult(null, "clickMe");
    }It doesn't seem to matter whether or not I return an EventNavigationResult.
    If I have both portlets displayed on the same portal page, portlet B is not rendered after the event processing. Only the portlet header displays.
    As a workaround, I found that if I set a WLP-Handled Event to Handle Custom Event and Change Window State to normal, the portlet renders correctly. However, this workaround does not work if the portlets are on different portal pages as my usecase requires.
    Am I missing something or what do I need to do to get the receiving portlet to render? Anyone have a basic JSF event IPC example working?

    I'm trying to set up basic event IPC between 2 JSF portlets in WLP 10.3.2.
    Portlet A has a JSP with an inputText and and a commandLink:
    <h:inputText value="#{aBean.inputValue}"/>
    <h:commandLink action="#{aBean.clickMe}" value="Click Me">
    </h:commandLink>Backing action creates the event:
    public String clickMe() {
        FacesContext fc = FacesContext.getCurrentInstance();
        ExternalContext ec = fc.getExternalContext();
        ActionRequest ar = (ActionRequest)ec.getRequest();
        HttpServletRequest request =
            (HttpServletRequest) ar.getAttribute("javax.servlet.request");
        PortletBackingContext pbc =
            PortletBackingContext.getPortletBackingContext(request);
        pbc.fireCustomEvent("clickMe", inputValue);
        return "";
    }Portlet B is configured with Init-Param:
    javax.portlet.faces.bridgeEventHander=com.example.event.EventHandlerand Java Processing Event for {urn:com:oracle:wlp:netuix:event:custom}clickMe
    EventHandler has:
    public EventNavigationResult handleEvent(FacesContext context, Event event) {
        String elExpression = "#{bBean}";
        ELContext elContext = context.getELContext();
        ValueExpression valueExpression = context.getApplication().getExpressionFactory().createValueExpression(
            elContext, elExpression, BBean.class);
        BBean bBean = (BBean)valueExpression.getValue(elContext);
        bBean.setDisplayValue((String) event.getValue());
        return null;//new EventNavigationResult(null, "clickMe");
    }It doesn't seem to matter whether or not I return an EventNavigationResult.
    If I have both portlets displayed on the same portal page, portlet B is not rendered after the event processing. Only the portlet header displays.
    As a workaround, I found that if I set a WLP-Handled Event to Handle Custom Event and Change Window State to normal, the portlet renders correctly. However, this workaround does not work if the portlets are on different portal pages as my usecase requires.
    Am I missing something or what do I need to do to get the receiving portlet to render? Anyone have a basic JSF event IPC example working?

  • Popup doesn't work after opening an interactive form

    Hi,
    I would need your help in letting me know if there is any additional setting required for correct execution.
    I tried executing the sample "WDR_TEST_ADOBE"  web dynpro component. On execution, on the right hand context area, you will see a button "Display popup". When i click on this, the popup works fine.
    Now, if I select "ZCI ->XML-Schnittstelle -> Version1 -> Editieren u2013 Form" from the left pane and now click on "display popup" the popup doesnt appear. It goes into an endless wait.
    Could you please let me resolve the issue by letting me know what setting or configuration I am missing out, so that I would be able to execute this successfully.
    Thanks & Regards,
    Preethi.

    Hi,
    Could you please let me know if you too are facing similar issues with ethis program?
    Best Regards,
    Preethi.

  • IBooks in OS X Mavericks - Doesn't open after adding PDF

    HELP!
    I broke my iBooks app on Mavericks and need a fix to make it work again!
    I dragged and droped a PDF into iBooks on my MacBook Air (hoping that the PDF would then end up on my iPhone iBooks App too) but then iBooks on the MacBook crashed with an error report being sent to Apple.
    Everytime I try to open iBooks on the MacBook Air, it crashes with the same error message. I assume the PDF has caused the issue, but I cannot open iBooks long enough to delete the PDF!!
    Anyone else had this issue or can offer any assistance?!?!

    Also, an update:
    I tried opening the launcher via the app content using the Unix Executable File. This dialogue came up in the terminal:
    Last login: Wed Jun 25 08:03:30 on console
    /Applications/Install\ OS\ X\ Mavericks.app/Contents/MacOS/Install\ OS\ X\ Mavericks ; exit;
    joakim-hagstroms-MacBook-Pro:~ joakimhagstrom$ /Applications/Install\ OS\ X\ Mavericks.app/Contents/MacOS/Install\ OS\ X\ Mavericks ; exit;
    2014-06-25 11:13:32.536 Install OS X Mavericks[7186:903] Error loading /Applications/Install OS X Mavericks.app/Contents/PlugIns/IACoreStorage.IABundle/Contents/MacOS/IACoreStor age:  dlopen(/Applications/Install OS X Mavericks.app/Contents/PlugIns/IACoreStorage.IABundle/Contents/MacOS/IACoreStor age, 265): Library not loaded: /usr/lib/libcsfde.dylib
      Referenced from: /Applications/Install OS X Mavericks.app/Contents/PlugIns/IACoreStorage.IABundle/Contents/MacOS/IACoreStor age
      Reason: image not found
    Maybe it will help to show what's not working...

  • Cisco UCS C220-M3 Server doesn't boot after adding Intel I350 Quad Port NIC

    Hello,
    We have purchased 2 Cisco UCS C220-M3 rack mounted servers (Single Processor) that have a dual port I350 LOM. We also purchased two Intel I350 Quad Port NICs to expand the available ports on each server from 2 to 6.
    The problem we are facing is that the server will not complete the boot process unless we disable either the LOM or the Quad Port NIC. We have tried numerous settings in the BIOS area but we haven't managed to have them both working.
    The I350 Quad Port NICs are from Intel and not from Cisco and we are running the latest FW/BIOS on the Servers as of March 10 2015.
    We have followed the steps described in the installation guide to install them.
    Could you provide some light in this situation please, what are our options?
    P.S. Although the LOMs are I350, the MAC Address Vendor is Cisco, is it possible that Cisco servers accept only Cisco Branded Expansion Cards?
    Thank you,
    George

    Hi Shawn,
    At least I'm not the only one having the same problem!
    You are trying to use the cards with the LOMs enabled?
    Which screen are you referring to in the first paragraph of your message?
    Mine sits in BIOS POST for about 10 minutes and then resets itself....
    We are also waiting for an answer from Cisco, so any findings/news will be posted here.
    Thanks,
    George

  • Edited Elements file doesn't render

    New LR4 user. After editing in Elements the edited file doesn't render in LR although I can see it as it was before editiing? Help please!

    When you say it doesn't render in LR, do you mean you press Save in Elements and the photo never appears in LR? 
    Which version of Elements?  And is LR4 updated to 4.2?

  • File adapter input file format

    Here the communication scenario is as follows: read a file and send a message via XI to an inbound interface.
    A file adapter service has been defined. Message protocol 'file content conversion' has been chosen for the file adapter service. Next the file format has to be defined in communiction channel settings.
    Is it possible to define the input record structure in the file to be red itself?
    The first line will list all column names. The data records will follow in line two up till end of file.
    Regards
    Klaus

    Now I can add some more information to the facts.
    In XI 2.0 the adapter engine was used to connect the integration engine to external systems. The adapter engine converted input file contents to a XML message. The structure of the records in the input file has to be defined. There was one option to read this structure from the first line of the file itself. This option was called 'fromFile'.
    Now the current situation in XI 3.0 is that the integration engine reads the input file. Conversion of file contents is still available but the option to read the record structure from the input file doesn't exist anymore.
    Does anybody know whether I am right and this functionality isn't available anymore or how to achieve the desired system function in XI 3.0.
    Regards
    Klaus

  • How to validate input fields in a popup?

    Hi guys,
    i have a popup containing some input fields which i have to validate before closing the popup (if the validation fails, the popup should stay opened and print some error messages).
    But since my view (inside the popup) doesn't has any events, because i use the popup buttons like recommended in other postings, i don't know where to apply the validation.
    Any tips are very welcome.
    Best regards
    Philipp

    Thanks for the tip!
    I think you mean something like
      lr_view_controller = wd_this->wd_get_api( ).
      lo_window->subscribe_to_button_event(
      button = if_wd_window=>co_button_ok
      button_text = 'Person anlegen'
      action_name = 'PERFORMCREATE_PERS'
      action_view = lr_view_controller ).
    But this binds methods of the "parent" (in my case the MAIN view) to the button, which gets applied after the view got closed!?
    How can i bind methods IN the called popup view and perfom them BEFORE the close.
    I'm sorry if i don't see obvious things.
    Best regards
    Philipp

  • Input file not a valid archive

    Hi
    Originally the application was written in CVI 6.0. I have now created a completly new project and workspace and added all the files.
    The compilation works fine. But the error message I get when linking (build) is " error: Input file is not a valid archive: 'c:\Projects\........\bin\i7000.lib'. "
    With another library I get the same problem: "uart.lib"
    The other lib-files just work fine.
    I saw in an old post a solution: to just recreate the project which I did. But it didn't work in my case.
    Any help? 
    Cheers Andreas
    Solved!
    Go to Solution.

     Hi Maha
    Thanks for your investigations.
    The LIBs I use "i7000.lib" resp. "i7000.dll" and "uart.lib" resp. "uart.dll" have an age of about 10 years AND are from a vendor/manufacturer that doesn't support these LIBs anymore.
    So first of all we don't have access to the original c code and therefore can't compile/build any new LIB. And most probably they were not made with CVI.
    Then as a second thought: these LIB/DLLs follow the standard and conventions of a microsoft LIB/DLL. So this should be some standard interface, even for CVI.
    Third, I think there are 1000s of such old (Microsoft standard) libraries still in use all over the industry. Therefore I cannot understand why CVI 2013 is not capabable of linking them to the rest of the code.
    Maybe I miss something in my thoughts. Like you mention already an older CVI is not a solution for us. Do you see maybe the possibility of another workaround?
    For your understanding I attach the 2 LIBs in a zip-file. Maybe it helps?
    Anyway have a nice wekend.
    Andreas
    Attachments:
    i7000.zip ‏96 KB

  • What does Java do with the input file?

    Hello everyone --
    I have a freaky Java problem. I'm running a program that takes an input file, reads it one line at a time, and determines whether the info I'm looking for is contained in it or not. For each line it reads, it decides if that line is good or bad, and broadcasts the findings in a System.out.println(). Every line gets one. When I run the program, I redirect the output to a log file. What's going on when the input file is 13000+ lines long and the log file is only 2500 lines long? This is tweakin' me out.
    Thanks for the advice,
    -Kwj.

    Here's what I have:
    boolean isGood = true;
    int count = 1;
    while((line = in.readLine()) != null)
    if (/*some condition is met*/)
    {*do some stuff*/}
    else
    isGood = false;
    System.out.println("***" + line);
    if (isGood)
    /*do some more stuff*/
    System.out.println(count + ". " + line)
    count++;
    }//process all lines
    As far as I can tell, I have every line accounted for in the else statement or the last if statement. If the line doesn't meet the req., it doesn't get to go on to the last if processing. All the good ones get processed. I think.

  • CS4 Media Encoder doesn't render Quicktime at all

    The CS4 Media Encoder will render H.264 and FLV, but doesn't render any form of Quicktime at all.
    The Queue loads the project, pretends to render, but does not show progress frames. Seconds later (way too early!) there is a green checkmark that the render completed successfully. The log file looks successful with essentially the same content as for H.264 and FLV.
    For example this log file shows a 1-minute sequence "rendered" in 30 seconds -- normally takes 3 minutes -- and no .mov was created.
    10/29/2008 7:09:16 AM : Queue Started
    - Source File: C:\DOCUME~1\MARATH~1\LOCALS~1\Temp\happyValleyBeijingMoreHighlights_5.prproj
    - Output File: C:\Documents and Settings\Marathon Runner\Desktop\china\finished\happy valley beijing\more highlights\Sequence 01.mov
    - Preset Used: NTSC DV
    - Video: 720x480, 29.97 [fps], Lower, Quality 100
    - Audio: 48000 Hz, Stereo, 16 bit
    - Bitrate: DV/DVCPRO - NTSC
    - Encoding Time: 00:00:00
    10/29/2008 7:09:45 AM : File Successfully Encoded
    10/29/2008 7:09:46 AM : Queue Stopped

    >always save the project before you export
    Very good advice.
    I would also say, save your project after any edit that you feel you can't afford to lose.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Unicode doesn't render properly

    Hi all,
    I have problem with Unicode. Air doesn't render Khmer Unicode
    properly, but when I open the file in Safari and Chrome, it works
    fine. If I'm not mistaken, Air, Safari and Chrome use Webkit to
    render HTML. Why does it work with Safari and Chrome and doesn't
    work with Air? Any idea?
    Thanks in advanced.
    Cheers,

    Hi,
    Can you please file a bug at http://adobe.com/go/wish?
    Thanks.

  • JSP containing ADF components doesn't render properly after upgrading

    The migration seemed to go OK but when I open the JSP, the design view looks very different. It doesn't render any of the objects in the page and it only shows them as rectangular blocks ( like input text) in a tree view.

    Hi,
    upgrade from which release to which other release ? JSP or JSP with JSF
    Frank

  • Input file

    How do you tell Java where the input file resides so it may be read?

    File f = new File("C:\\dir\\file.ext");
    Doesn't that work?

Maybe you are looking for

  • Authorization problem when using the Transaction Launcher

    Hi All, We have an authorization problem when we call a transaction (EL37) in ECC from the IC Web Client. We believe that we have done all the necessary customizing in CRM and when we press the link in the Navigation Bar we are asked to logon to our

  • Handling 2 messages in a function module

    Hi , I have a requirement where I need to trigger 2 messages if sy-subrc fails in a Function Module.      Function module                              GET_JOB_RUNTIME_INFO      IMPORTING      JOB名(JOBNAME)=          P_WK_JOBNM      Error(SY-SUBRC <>

  • Audio/Video Synch Problem

    I have the motorola HD DVR and am using it with the Zenith 19" LCD HDTV I finally got from Verizon.  After watching a channel for a few minutes, the audio and video go out of synch.  If I switch the channels back and forth the problem is corected for

  • Customer specific  Cumulation types

    Is there  any  way to create a customer specific Cumulation type apart from using the u2018/u2019 wagetypes? Regards Sony

  • Can i use bootcamp on my MacBook Pro10.6.8 with Windows XP

    Does anyone know if i can use bootcamp in the situtation above?