invoking a popup on the click of an image in an adf application

Hi all

I'm working on an ADF application which has a page with a table of records. One of the columns has a picture in it and when you click on this image, I need to open a modal pop-up window that has the respective details of this record.

I am not able to open the popup when clicking on the image.

Here is the excerpt of how I try to do the same.

< f: facet name = "imageFacet" >

"< af:commandImageLink icon="/images/pdf.png "id ="cil1">

< af:showPopupBehavior popupId = "popupExt" triggerType = "click on" / >

< / af:commandImageLink >

< af:popup id = "popupExt" host = "default" >

< af:panelWindow id = 'pw1 '.

modal = 'true '.

title = "external Internet information in a modal pop-up window.

contentHeight = "250".

contentWidth = "450".

resize = "on" >

< af:inlineFrame id = "if1' shortDesc ="this is an inline frame.

styleClass = "AFStretchWidth."

inlineStyle = ' height: 250px; ">

< / af:inlineFrame >

in this code, I get an error on the jspx page that is not a valid child of < af:commandImageLink > < af:popup > and run the page, nothing happens when clicking on the image.

Any ideas or suggestions in this regard will be helpful.

Thank you

It works for me:

emptyText = "#{bindings." Departments.Viewable? "{'No data to display.': 'Access Denied.'}". rowBandingInterval = '0 '.

selectedRowKeys = ' #{bindings. " Departments.collectionModel.selectedRow}.

selectionListener = "#{bindings." RowSelection Departments.collectionModel.makeCurrent}' = 'single '.

fetchSize = "#{bindings." Departments.rangeSize}"filterModel =" #{bindings. " DepartmentsQuery.queryDescriptor}.

queryListener = ' #{bindings. " FilterVisible DepartmentsQuery.processQuery}"="true"varStatus = 'vs' id ="t1">

...

headerText = "#{bindings." Departments.hints.DepartmentName.label}"id ="c5">

required = "#{bindings." ReadOnly DepartmentId.hints.mandatory}' = 'true '.

columns = "#{bindings." DepartmentId.hints.displayWidth}"maximumLength =" #{bindings. " DepartmentId.hints.precision}.

shortDesc = "#{bindings." DepartmentId.hints.tooltip}"id ="it1">

required = "#{bindings." ReadOnly DepartmentName.hints.mandatory}' = 'true '.

columns = "#{bindings." DepartmentName.hints.displayWidth}.

maximumLength = "#{bindings." DepartmentName.hints.precision}.

shortDesc = "#{bindings." DepartmentName.hints.tooltip}"id ="it2">

required = "#{bindings." ReadOnly ManagerId.hints.mandatory}' = 'true '.

columns = "#{bindings." ManagerId.hints.displayWidth}"maximumLength =" #{bindings. " ManagerId.hints.precision}.

shortDesc = "#{bindings." ManagerId.hints.tooltip}"id ="it3">

required = "#{bindings." LocationId.hints.mandatory}"shortDesc =" #{bindings. " LocationId.hints.tooltip}.

readOnly = "true" id = "sol1" >

you have verified that the correct popupid id?

Timo

Tags: Java

Similar Questions

  • Load the bmp images into a flex application

    Hello

    I am currently using the "Embed" method for images on a Flex application. I use the png and JPEG format.
    Flex prefer JPEG, TIF, png? or PGO can be used as well?
    I find that when I try to add a bmp image to an Image tag, it is a 'go '.

    Is there another type of container that will handle BMP? Or is - everything as well use JPEG, png, etc.

    Thank you
    eholz1

    You can load a BMP using this cookbook recipe.

    http://www.Adobe.com/cfusion/CommunityEngine/index.cfm?event=ShowDetails&ProductID=2&postI d = 10264

  • How to stop the open a popup when I click on an icon. I want the icon to do its job.

    How to stop the open a popup when I click on an icon. I want just the icon to do its job and open the file. However, I get the crazy popup indicating to choose the program you want to open the file.
    When we first got it it has always opened when a user has clicked on an icon. Then he started doing this several months ago, and I don't know why.
    Please help if you know how to beat this computer.
    Windows Vista Home Edition
    CEH

    Hello

    There are MANY varieties of the latter with a lot of names, but all can be removed with the
    same methods:

    Vista Antispyware 2010, XP Internet Security 2010, Antivirus 2010 Vista and Win 7 Antispyware 2010
    are rogue antivirus, scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How to disable the "click to play" Bar warning

    Hello

    I would like to know how to change the behavior of the "Click to play" warning, or how turn it off. I have Firefox 27 (beta update channel, the version prior to RC1).
    I configured the plugin Flash to "ask every time", and "plugins.click_to_play" is set to true by default.

    Before you install the latest update, there was an alert popup at the top left, next to the address bar (with the icon "brick lego").

    Now, instead, a new bar is inserted directly in the content of the web pages (asking if I want to allow 'Adoble Flash' in the page). The result is extremely annoying, because all the content of the Web page is moved to the bottom each time to make room for the toolbar warning...

    How can I remove the warning bar? I tried to put "plugins.click_to_play" false and I have not noticed any change in the behavior of the browser.

    Thank you

    Hello Stormvision, you can use the https://addons.mozilla.org/firefox/addon/hide-plugin-notifications/ by bsmedberg mozilla addon in order to hide the information bar.

  • superfluous confirm popup in the user interface editor?

    Hello NO,.

    I have a XY Chart with several annotations.

    If I open the uir file and double click on the chart (-> popup Graph Edit), click the 'Annotations' button (-> popup edit Annotations) and change current Annotation say from 24 to 23 (see properties).

    So I want to close all (do not change anything): I click the X button in the title of the Panel of the ' popup edit Annotations: a confirmation popup opens asking if I can't ignore the changes. This popup is ok for the current annotation has changed. If I click on Yes.

    By this all changes should have ignored, right?

    But now, if I click the X button in the pop-up window Graph Edit even Panel confirm popup appears once again... In my opinion this should not happen ;-)

    (I know I can leave the two fastest popups by pressing ESC twice)

    Yes, it is a bug, and it has been around since the beginning of the CVI from what I can tell.

    It's actually two bugs: 1) you should not see the prompt in the dialog annotations in the first place, if what you change in this dialog box is the current annotation (and the similar control in the dialog of the sliders graph or chart of the band traces dialogue), since the evolution of the current annotation/slider/trace does not change the State of the chart or table. (And 2), as you pointed out, you should not see the prompt again when you exit the main dialog if you threw your changes in the secondary dialog box.

    Bug 477231.

  • Show the popup inside the list item (JDEV 12 c)

    Hi all

    I'm having a problem when I try to display the pop-up window on an image, click.

    Inside the image, there is the showPopupBehaviour that triggers the popup.

    It is not working properly if I put the popup on the outside of the list item, but the problem is that I need inside so I can view the attributes of each element.

    The list with the elements (each icon should trigger the popup with information components):

    popup issue.png

    Best regards

    Luis Cabaco

    The problem is not the popup, but how you load the data from the context menu.

    The popup will match every time, only data changes.

    Make sure that the popup contentDelivery has the value "lazyUncached".

    Timo

  • Best practices for handling logic conditional dialogue/popup in the ADF?

    Here's the scenario:

    I have a page that shows a popup programmatically in a method of bean support. The popup asking the user a yes / no question and subsequent logical path is determined by their response. However, if the popup is visible or not in the first place is conditional. In addition, there is an additional logic in the original method, apart from the logic of popup, that must be met.

    The problem with this is that the ADF seems to spin off the popup in another thread and prevents the execution of logic in the original method at the same time, while you wait for the response from the user. However, the desired effect is that the program stops until the user has answered the question in the context menu.

    I was not able to understand in an elegant way to make this happen. Ideally, I think that the solution is to encapsulate the logic that occurs after the popup is displayed (or not shown) in the original method and call it from the popup action listener if the popup is displayed (if not call it the original method of). However, the logic should be encapsulated requires the use of some local variables that have been put forward for the popup to appear. There is no way to get these values to the popup action listener method to pass them on to the encapsulated logic (aside from the creation of global static variables in the bean, which seems to be a bad solution).

    Another idea I had was to get the logic ' show/do not see the popup' workflow. However, it seems that for every single popup would make the really complicated workflow.

    Is there a 'best practice' recommended to handle this situation? It must be a common problem, and it seems that I will talk all wrong.

    However, the desired effect is that the program stops until the user has answered the question in the context menu.

    This will not happen in any web environment, including ADF.

    You will have different events for each life cycle:

    1 - opening popup: popupFetchListener event

    2 - Click on OK, Cancel buttons: DialogListener event

    3 - Press the Esc button: popupCancelledEvent

    You can share data between these events on pageFlowScope, or viewScope.

    But if you use the ADF BC, you might be better to use transient attributes on the objects in view.

  • pop window is an open at the click of a button

    Hello

    I have a requirement to open a pop-up window at the click of a button, it's like once I click the button, it will open a pop-up window1 and once I close the popup window1, it should open pop-up window2

    Thank you

    Valsaint

    All,

    Thanks for the suggestions and advice.

    I realized it via javascript.

    StringBuffer l_buffer = new StringBuffer();

    l_buffer. Append ("javascript:alert('__');");

    l_buffer. Append ("mywin = openWindow (top, '" ");")

    String url = "";

    OAUrl popupUrl = new OAUrl (url, "S");

    String strUrl = popupUrl.createURL (pageContext);

    l_buffer. Append (strURL.ToString ());

    pageContext.putJavaScriptFunction ("openSrpage", l_buffer.toString ());

    This will display an alert on your basic page, after clicking OK, your page 2 will open in a new window.

    Hope this is clear

    Thank you

    Valsaint

  • How to call the &lt; af:query &gt; Search feature by clicking on an image?

    Hi all

    I created a test named and I dragged on my page .jspx as "ADF with Table query Panel. I put the display as 'Simple' Mode in the Properties Inspector, who will hide all the default components of < af:query >. Now I use < af:commandImageLink >. My question is how can I call the < af:query > Search feature when the user clicks on an image? Any suggestion would be appreciated.

    Thank U...

    If you want to invoke af:query search by program button, follow these steps:

    1 Select af:query--> Advanced--> connections and bind it to the back bean

      
    

    2. in the .jspx add af:link like this:

    
              
    
    

    3 - runQuerySearchAction should be like this:

      public String runQuerySearchAction()
      {
        QueryDescriptor queryDescriptor = getRichQuery().getValue();
        QueryEvent queryEvent = new QueryEvent(getRichQuery(), queryDescriptor);
        queryEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
        getRichQuery().queueEvent(queryEvent);
        return null;
      }
    
  • Invoke a listener to the closure of the Collection of panels of the close icon?

    Hello

    I use JDeveloper 11.2.4

    I have a popup that contains a window Panel and Panel window contains a collection of panels.

    This popup is called when the button is clicked.

    I want that when I close the popup using the icon 'close' collection of panels, I get the control and a function in my managed bean is executed.Capture.PNG

    Thank you

    Not sure how the MAF sample allows in this use case.

    Check this post http://adfbugs.blogspot.de/2009/11/new-feature-closing-popup-can-now-be.html which shows how to handle the close of a popop through the popupCancelListener event.

    Timo

  • Display Image in a poppy on the click on a button/icon

    Hello

    Jdev: 12.1.3

    My requirement is as below.

    I have a table on the page that displays the details of an image in a database table (say imageInfo). I need to add the column to the table with an icon/button. When the use click the button I want to show the image in a popup. The image is stored in a different table (say Image) as BLOB. The primary key of the table of the image is available in my database table. available in both image_id table.

    How can I get this feature.

    See you soon

    AJ

    Your problem is that you have not set the mimetype for the files. In this case are treated as text. If you look at my sample of blog (the link is in the post of Cvele_new_account ) you see a method that tries to guess the type when you load data into the Database.

    Timo

  • I installed Adobe Lightroom CC.  Launching, a popup appears, which says: "AN INTERNAL ERROR has OCCURRED.  Could not create the required folder: /Users/(my user name)/Library/Application Support / Adobe / Lightroom / develop Presets. "E Yes

    I installed Adobe Lightroom CC.  Launching, a popup appears, which says: "AN INTERNAL ERROR has OCCURRED.  Could not create the required folder: /Users/(my user name)/Library/Application Support / Adobe / Lightroom / develop Presets. "So even if Lightroom CC is installed, it will not launch.  What should I do to allow him to launch?

    I had the same problem, just bought a new Macbook Pro (June 2015) and Lightroom CC had this error as well.  Here is the dialog box that I've had with Adobe, and it cures the problem:

    Adobe: Please click on the search option in your Dock at the bottom of the screen.

    Adobe: Then click GO on the MenuBar at the top of the screen.

    Adobe:, and then click GO to folder, and then type: ~/Library/Application Support/Adobe /.

    Scott: OK, I did

    Adobe: Control-click on the folder and choose read information.

    Adobe: Expand the section sharing & permissions.

    Adobe: Click on + icon, and check if the administrator select

    Scott: OK, I chose the Admin

    Adobe: Give read and write to the Admini

    Scott: completed

    Adobe: Click the gear icon and select apply changes to included items

    Scott: OK

    Adobe: In the Finder window, click GO and select GO to folder

    Adobe: Type in
    Adobe: / Library/Application Support/Adobe
    / and press enter

    Scott: completed

    Adobe: Control-click on the folder and choose read information

    Adobe: Expand the section sharing & permissions.

    Scott: ok

    Adobe: Give read and write permissions to all users

    Adobe: Then click on the sign + and add the rest of the users from the list

    Scott: completed

    Adobe: Now, please try to use the Lightroom from your computer.

    Scott: Thank you - it works!

    Hope this helps others.

  • ADF:table refreshes its data at the click of the button?

    Hello..

    I have a page with a few buttons and a table mapped to VO. When I click on a button in the table refreshes its data.

    How can I prevent it?

    My version of jdev - 11.1.1.5.0

    OK, so together the partial submit button to true and the partial trigger for the popup to the value of the ID of the button.

  • Popups in the CF?

    I'm doing a link on a low State show a certain pic... That is on a link 'contact' by pressing the link. It will show a window with contact information.

    Is it possible to do it and make it work in all States?

    -Joshua

    Developing this... you could do so by clicking on the link displays an image over other parts of the user interface, and the image can have a "Close" button or other way to hide (for example, by clicking on the link a second time).  The only things you can't do catalyst are have the image sticks quite out of the limits of your application (overlap of other applications that run on the operating system), and location of the image be moved like a window of BONE.

    If you're ok with these limitations, here's how in catalyst:

    (these steps are written in a tiny little in shorthand, so let me know if you don't know what I mean anywhere)

    1. import your image into catalyst and place it next to the button that you use as a clickable link (not within the key)

    2 convert the image into a custom component.  Call for example something like 'ImagePopup '.

    3 duplicate State, name the first 'closed' and the second State 'open '.

    4. in the first State, hide image

    5. go back to the link/button and add an interaction: Click > play the State Transition > ImagePopup: open

    You now have a way to click the button to display the image.  You can position the ImagePopup component so that it overlaps other parts of your UI, such as a floating window.  Then, you can add a '[x]' or 'close' button inside the popup that firm by the transition to the State 'closed '.

    Hope that helps!

    -Peter

  • Form check synchronize on Popup to the selected record from the table

    I'm trying to recreate what I did on the portals of the OAS in Weblogic/ADF. I have JDeveloper 11.1.1.2.0. What I do seems to be a little different than the tutorials: I need something like the tutorial master-detail, but instead the details appearing on the same page, it should appear in a popup. I managed to build the part table/popup. But when the popup appears, it displays the wrong record. Here are the steps I used to create this page:

    After you create the ADF Fusion Middleware project:

    1 create templates for the tables I need.
    2. create the JSF Page.
    3 drop panelCollection on the page.
    4. remove my data to see in panelCollection control and choose the Table read-only ADF. Select the sorting and selection options.
    5 change table properties: selected = DisplayRow, EditingMode = clickToEdit
    6 drag the Popup on the page.
    7. remove my data from view in popup control and choose the form of the ADF. Select the send option.
    8 drop showPopupBehavior on the page. Name of the popup. The value triggerType to the 'selection '. (triggerType "click" works, too)
    9 deploy.

    The table is displayed. I click on a line. The pop-up window appears. The form of popup displays the first record in the table. I click on any line.

    I just bought the merger Oracle 11g Developer Guide, but were not able to answer this question yet.

    Any ideas?

    Thank you.

    See this video for how it works for me:
    http://www.ScreenToaster.com/watch/stWUtcRkVLQ1BcSV1aX15Q

Maybe you are looking for

  • Microsoft uses the 'INFOZONE SOLUTIONS' services to fix the malware on the PC under Windows 7?

    TO THE RIGHT; I rang by themselves yesterday 19/01/12, indicating that they were sent by microsoft to fix my PC which has been contaminated by malware, saying that if it's not fixed now my PC was going to crash. Their website "Infozonesolution.com" s

  • write to table control

    I'm sure it is something simple, but I was far from LabView for awhile, and it left me speechless... I have a façade with a table 2 x 2 that accepts user input.  I also have a sub - VI built that takes this table 2 x 2 and written in an INI file.  I

  • BlackBerry Smartphones Trackpad and keyboard does not.

    Hello. I have a Curve 8520, I got it almost a year ago. Yesterday, an APP ERROR 523 appeared on my screen, and I discovered that an application crashed. So I tried to improve my OS from 4 to 5. He succeeded, but I couldn't scroll press OK. After a co

  • BlackBerry Smartphones accidentally deleted Calculator icon-cannot reinstall

    I have a BB8830 with 4.2, waiting for Verizon to release 4.5. I accidentally deleted my homescreen Calculator icon and cannot find any way to reinstall the application or the icon. Any ideas?

  • Canon Faxphone L80

    I downloaded the windows 7 (32 bit) and try to run the install exe. Finally, the process said that it cannot find the L80 suggest unplu and reconnect it. When I do that here you can connect ring and disnconnect of USB, but it still can't find the pri