Using ADF trying to display an af:outputLabel below a radioButton

This problem seemed to me to be a lot easier than it winded up being. I hope someone can help shed some light on it. Here it goes... I need to dynamically display a list of radio buttons(it gets the data from a database). Here is the catch. Underneath each radio button, there needs to be an additional line of text describing the radio button. I don't need help with accessing the database, getting the data from my backing bean, or even displaying the radio buttons to the screen. I have that covered. What I need help with is displaying the line of descriptive text that goes below each radio button. Here is what I have tried in my jsp:
<af:selectOneRadio >
<af:forEach var="sg" items="#{sgMainBean.sgList}">
<af:selectItem label="#{sg.sname}" />
</af:forEach>
</af:selectOneRadio>
The problem with going that route is that I have no place to put the line that prints out the description:
<af:outputLabel value="#{sg.description}"/>
If I put it inside the forEach tag, then it is inside the selectOneRadio and will not be displayed correctly. Also, if I put it outside the selectOneRadio tag, then it is outside the forEach tag and is not iterated with the rest of the bunch.
Another route I have tried is the following:
<af:selectOneRadio>
<f:selectItems value="#{sgMainBean.showSelectItems"/>
</af:selectOneRadio>
Again, since it just goes through all the items, I am unclear on where I can put the code to access the description where it can be reached. Any help would be great. Thanks.

HI Frank
There is no reason for throwing that error as apart from that image column getting displayed, as i have mentioned the width of that image is getting displayed, the Image Description of that row is getting displayed and all other data of that row from that same VO instance of that same AM are getting displayed.
Then what else could be reason for the AM not being found for this attribute which is being displayed as media

Similar Messages

  • Flash File not Able to Display using ADF Trinidad components..

    Hi All,
    I am trying to display a flash file using ADF trinidad component for one our project but not able to display when embeded inside the code.
    However I am able to directly access the flash file using http://localhost:7101/test/pages/test.swf
    The below Object code is included inside the tr:panelHorizontalLayout tag. I also tried using tr:media but doesnt display anything on the browser.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>-->
    Thanks
    Chetan

    Hi Ramandeep,
    I tried that option early but did not work. Not able to understand why.
    Below is the code snippet.
    <tr:panelGroupLayout layout="vertical">
    <tr:panelHorizontalLayout>
    <!--Some Portlets are added-->
    <f:verbatim>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>
    </f:verbatim>
    </tr:panelHorizontalLayout>
    </tr:panelGroupLayout>
    And as I mentioned it works fine when I directly access the flash file by using http://localhost:7101/test/pages/test.swf.
    Thanks
    Chetan

  • Displaying Master-Data using ADF DI

    Hi
    I'm trying to display a master data(as a form) and a detail data(as a table) in excel sheet using ADF DI.
    The process I followed is as below.
    1. This is on HR schema. I created a departmentsVO, and dragged Departments from the data control to the top half of a jspx page as a form, and Employees datacontrol that is wihtin the Departments datacontrol into the lower half of the page.
    2. I ran the page, and the master-detail is perfect i.e., when i click navigate the departments form, corresponding employees of that department are coming in a table in the lower half.
    But the problem is when i used this pagedef file to use in an excel file.
    1. Alll form elements are available in the excel as individual components. Table is available as a tree component.
    2. I binded all the form elements in the excel, also bound prev and next buttons, all at the top section of the excel file.
    3. Binded the table component in the bottom of the excel file.
    3. Defined table download action and Worksheet downsync action as worksheet properties. Workbook prop are also defined properly.
    When I ran the page,
    Form elements and table is prefilled, navigation of form is also working fine. But when I navigate through the form, the corresponding employees are not changing, they are all employees of the first department id.
    My requirement is to change the employee table as the department form is being navigated.
    Can someone pls give some suggestions. What i think I may be missing is that the table is not getting refreshed as I navigate the form(But I already associated the table download action to the worksheet properties).
    Thanks in advance,
    Ravi.

    Found a solution. This might be helpful to others...so m posting it :-)
    While binding the 'Next' button, I added 'Download' component action of the table to the actionset of the button(which already has UpSycn, Next, DownSync).
    So, on click on the button, it actually downloads the latest data to the table. And master - details were shown just perfectly :-)

  • After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please?

    After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please? I am currently using iOs 7.0 on this iPad and I never had a lick of trouble until aetr this update. Anything would help. Thanks.

    I'm adding screen shots taken from this afternoon showing connection that varied from non-existent to 1X.

  • How to display the Current Date on page using ADF Components

    Hi,
    Is there any way to display the system date on a page developed using ADF Components.
    I am thinking of writing the java code to display the date. Just wanted to check is there any pre-defined component of ADF that I can make use of.
    Could anyone tell me how to do this using ADF components?
    Thanks in advance.
    Sivaji....

    Please refer the below link.
    Prompt  with  default  date   (  currentdate-1  and current date-8)
    http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
    http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
    Regards,
    Bilahari

  • Newbie question: Why is "learn sound model" greyed out when trying to remove background sounds in a file using the Spectral Frequency display?

    I am trying to remove background sounds in a file using the Spectral Frequency display. The first edit on a new file, this process works fine:
    1. use brush to cover sound
    2. right click, learn sound model
    3. effects/noise-reduction-restoration/Sound Remover
    The next time I try to remove another sound in the file, "learn sound model" is greyed out. I have to close the file and reopen to be able to make another edit. What on earth is going on? Can it only learn one sound model or something?
    I'm a newbie, so thanks in advance for your advice!

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Displaying  documents using adf

    hi:
    i've a table that hase a column that carries the link to the directory where my word documents are stored, iwant to display thsi column as a hyperlink that when user clicks it will open the word file,but when i add href tags around the column value it displays nothing.
    this what i do
    <a href="<c:out value=${bindings.DocLink"/>">view document
    any help will be apprciated
    regards

A: displaying  documents using adf

Are you using ADF Faces for the user interface?
If you are then you can use a goLink component and then bind the text and destination items to your data.
<af:goLink binding="#{backing_browse.outputText5}"
id="outputText5" text="#{row.Title}"
destination="#{row.Location}"/>

Are you using ADF Faces for the user interface?
If you are then you can use a goLink component and then bind the text and destination items to your data.
<af:goLink binding="#{backing_browse.outputText5}"
id="outputText5" text="#{row.Title}"
destination="#{row.Location}"/>

  • Displaying BLOB image by using ADF Faces

    Hi all,
    I digged the forum but couldn't find any satisfied answer about displaying BLOB images by using ADF Faces.
    I have insterted POJO object to Oracle database but couldn't find any way to display blob (in java byte [] ) data in POJO.
    I have read the POJO object from database which contains two field; one of them is id field and other is BLOB data which holds GIF or JPG image and I want to display this image another page which contains also other fields / records ...
    thanks for your answers
    regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This thread at Sun : http://forum.java.sun.com/thread.jspa?threadID=513804&messageID=2445090
    talks about two options for creating a graphicImage jsf tag. (img tag)
    1. Make the img tag url refer to a servlet (instead of a static image file)
    2. Embed the image into the tag as inline base64 encoded data.
    2a. Use an <Object> tag with inline data.
    1. Looks a bit complex for a simple problem.
    2 and 2a don't work with some browsers.
    - And I've not yet figured out how to hook into the ADF Faces table-rendering logic to get it to add my image column. My table binds to a collection DataControl, [which in turn retrieves from a findAllItems call on a session facade, which uses my domain model, and wraps up access to a TopLink pesistence layer]. The framework just ignores my byte[] attribute when creating the jsf table from the DataControl. All string, int etc. attributes get represented correctly in the jsf table output.

  • Displaying blob image using adf

    Hi ,
    We are using adf in our application. We have to disaply blob image from oracle data base on the adf jspx page.This jspx page consists of 2 jsff files.
    I have created an httpservlet and called on the source parameter of image this httpservlet with binding similar as below:
    source="/httpServletName?id=#{bindings}}"
    I am able to display the image.
    But my concern is that I am using iterator for displaying images as there can be multiple records in the table but for every recoed I am getting same image. Please suggest how can I display multiple images coming with respect to various records of data base.
    thanks & Regards

    Hi,
    After attempting the solution given above also I am getting the same issue.
    On the jspx page I want to show Imageid, imagedescription and photo .
    I have 4 records coming from database on the jspx page. I have found that all the data (imageid, description) is first displayed on the jspx and then control gets transferred on the ImageServlet only once and in request.getParameterMap() I get only one "ID" value i.e. the ID value of last record (4th record) coming from data base and hence in all the 4 records on jspx I am getting the same image (i.e. the image in the 4th record of db). Please help me to proceed on this issue.
    On jspx, I have given image source value as :
    <af:image shortDesc="image"
    id="image1"
    source="/imageservlet?id=#{bindings.Id.inputValue}}"/>
    Thanks

  • Problem in navigation of portletized JSf application using ADF on portal

    Hi All,
    I am implementing a simple scenario wherein i have an ADF Business Component (a simple drop down) and a command button. On click of the button, there is a navigation from one jsp to another.
    I am able to portletize a simple application using ADF Business Component.It runs fine when run on local.
    But when i put it on portal, navigation does not work.the control is not transferred to the method of backing bean.It is not showing loggers either.
    jdev version :10.1.3.3
    oracle portal :10.1.4
    Standalone OC4j : 10.1.3
    If any one has working model of this, can you pls post the files used.
    Also , if anyone has work around for same, it will be helpful.Thanks.
    Portlet.xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <portlet-app version="1.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    id="com.vodacom.portlet.ServiceFaultPortlet.af7cec80b0013456">
    <portlet>
    <portlet-name>ServiceFault</portlet-name>
    <display-name>ServiceFault</display-name>
    <portlet-class>oracle.portlet.server.bridges.jsf.FacesPortlet</portlet-class>
    <init-param>
    <name>DefaultPage.view</name>
    <value>/index.jspx</value>
    </init-param>
    <init-param>
    <name>BridgeLifecycleListeners</name>
    <value>
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    </value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
    <title>Service Faults</title>
    <short-title>Service Faults</short-title>
    </portlet-info>
    </portlet>
    </portlet-app>
    faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>Index</managed-bean-name>
    <managed-bean-class>view.backing.Index</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1index.jspx-->
    </managed-bean>
    <lifecycle>
    <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
    </lifecycle>
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/index.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/welcome.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/portlet.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>view.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    Regards,
    Alpa
    Message was edited by:
    user648923
    Message was edited by:
    user648923

    Hi deepak,
    I have post the same message in web center forum.The link for the same is :
    Re: Navigation problem in JSF portlet when using ADF
    Also i had seen that post and had tried some solutions provided.Nothing worked for me.And i am using portlet faces bridge provided by oracle in jdeveloper 10.1.3.3 version.
    Regards,
    Alpa

  • Navigation problem in JSF portlet when using ADF

    Hi All,
    I am implementing a simple scenario wherein i have an ADF Business Component (a simple drop down) and a command button. On click of the button, there is a navigation from one jsp to another.
    I am able to portletize a simple application using ADF Business Component.It runs fine when run on local.
    But when i put it on portal, navigation does not work.the control is not transferred to the method of backing bean.It is not showing loggers either.
    jdev version :10.1.3.3
    oracle portal :10.1.4
    Standalone OC4j : 10.1.3
    If any one has working model of this, can you pls post the files used.
    Also , if anyone has work around for same, it will be helpful.Thanks.
    Portlet.xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <portlet-app version="1.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    id="com.vodacom.portlet.ServiceFaultPortlet.af7cec80b0013456">
    <portlet>
    <portlet-name>ServiceFault</portlet-name>
    <display-name>ServiceFault</display-name>
    <portlet-class>oracle.portlet.server.bridges.jsf.FacesPortlet</portlet-class>
    <init-param>
    <name>DefaultPage.view</name>
    <value>/index.jspx</value>
    </init-param>
    <init-param>
    <name>BridgeLifecycleListeners</name>
    <value>
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    </value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
    <title>Service Faults</title>
    <short-title>Service Faults</short-title>
    </portlet-info>
    </portlet>
    </portlet-app>
    faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>Index</managed-bean-name>
    <managed-bean-class>view.backing.Index</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1index.jspx-->
    </managed-bean>
    <lifecycle>
    <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
    </lifecycle>
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/index.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/welcome.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/portlet.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>view.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    Regards,
    Alpa

    Hi George,
    can u brief me on what exactly do you need ?
    I am implementing a simple POC wherein i have made a ADF business component (which is just a DB fetch ) and i am dragging the same on index.jspx page.I have a command button on the same page which when clicked directs me to welcome.jspx.(it first goes to managed bean and returns success.)
    And i am portletising this .. all this works fine on local ... even on portletising it runs fine .. But when i register this portlet on oracle portal .. navigation between index.jspx and welcome.jspx does not work.
    If you need more inputs,let me knw.I have uploaded configuration files in my previous post.Also i am not getting any error when i am trying to make it work on portal..
    Regards,
    Alpa

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

  • Trying to Display the image

    Hi Steve/anyone
    I am trying to display the image upload and Display using the "Oracle Fusion Developer Guide" page 404 Working with Oracle Multimedia Types by Frank Nimphius and Lynn Munsinger. I tried to replicate the solution in a sample app. My upload works as said. But when i try to browse I dont see the image and i get the following error in the background. Please help. All the steps mentioned have been done
    ! Edit Images.jspx
    <af:inputFile value="#{bindings.Image.inputValue}" simple="true"
    id="if1">
    <binding:convertOrdDomain bindingRef="#{bindings.Image}"/>
    </af:inputFile>
    2 Browse Images.jspx
    <af:panelLabelAndMessage label="#{bindings.Image.hints.label}"
    id="plam1">
    <af:media contentType="#{bindings.Image.inputValue.media.mimeType}"
    source="#{bindings.Image.inputValue.source}" id="m2"/>
    </af:panelLabelAndMessage>
    <af:outputText value="#{bindings.Image.inputValue.media.width}" id="ot3"/>
    java.lang.NullPointerException
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:386)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFil

    Error showing images using Servlet OrdPlayMediaServlet

  • ADF how to display a processing page when executing large queries

    ADF how to display a processing page when executing large queries
    The ADF application that I have written currently has the following structure:
    DataPage (search.jsp) that contains a form that the user enters their search criteria --> forward action (doSearch) --> DataAction (validate) that validates the inputted values --> forward action (success) --> DataAction (performSearch) that has a refresh method dragged on it, and an action that manually sets the itterator for the collection to -1 --> forward action (success) --> DataPage (results.jsp) that displays the results of the then (hopefully) populated collection.
    I am not using a database, I am using a java collection to hold the data and the refresh method executes a query against an Autonomy Server that retrieves results in XML format.
    The problem that I am experiencing is that sometimes a user may submit a query that is very large and this creates problems because the browser times out whilst waiting for results to be displayed, and as a result a JBO-29000 null pointer error is displayed.
    I have previously got round this using Java Servlets where by when a processing servlet is called, it automatically redirects the browser to a processing page with an animation on it so that the user knows something is being processed. The processing page then recalls the servlet every 3seconds to see if the processing has been completed and if it has the forward to the appropriate results page.
    Unfortunately I can not stop users entering large queries as the system requires users to be able to search in excess of 5 million documents on a regular basis.
    I'd appreciate any help/suggestions that you may have regarding this matter as soon as possible so I can make the necessary amendments to the application prior to its pilot in a few weeks time.

    Hi Steve,
    After a few attempts - yes I have a hit a few snags.
    I'll send you a copy of the example application that I am working on but this is what I have done so far.
    I've taken a standard application that populates a simple java collection (not database driven) with the following structure:
    DataPage --> DataAction (refresh Collection) -->DataPage
    I have then added this code to the (refreshCollectionAction) DataAction
    protected void invokeCustomMethod(DataActionContext ctx)
    super.invokeCustomMethod(ctx);
    HttpSession session = ctx.getHttpServletRequest().getSession();
    Thread nominalSearch = (Thread)session.getAttribute("nominalSearch") ;
    if (nominalSearch == null)
    synchronized(this)
    //create new instance of the thread
    nominalSearch = new ns(ctx);
    } //end of sychronized wrapper
    session.setAttribute("nominalSearch", nominalSearch);
    session.setAttribute("action", "nominalSearch");
    nominalSearch.start();
    System.err.println("started thread calling loading page");
    ctx.setActionForward("loading.jsp");
    else
    if (nominalSearch.isAlive())
    System.err.println("trying to call loading page");
    ctx.setActionForward("loading.jsp");
    else
    System.err.println("trying to call results page");
    ctx.setActionForward("success");
    Created another class called ns.java:
    package view;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.model.generic.DCRowSetIteratorImpl;
    public class ns extends Thread
    private DataActionContext ctx;
    public ns(DataActionContext ctx)
    this.ctx = ctx;
    public void run()
    System.err.println("START");
    DCIteratorBinding b = ctx.getBindingContainer().findIteratorBinding("currentNominalCollectionIterator");
    ((DCRowSetIteratorImpl)b.getRowSetIterator()).rebuildIteratorUpto(-1);
    //b.executeQuery();
    System.err.println("END");
    and added a loading.jsp page that calls a new dataAction called processing every second. The processing dataAction has the following code within it:
    package view;
    import javax.servlet.http.HttpSession;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    public class ProcessingAction extends DataForwardAction
    protected void invokeCustomMethod(DataActionContext actionContext)
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.invokeCustomMethod(actionContext);
    HttpSession session = actionContext.getHttpServletRequest().getSession();
    String action = (String)session.getAttribute("action");
    if (action.equalsIgnoreCase("nominalSearch"))
    actionContext.setActionForward("refreshCollection.do");
    I'd appreciate any help or guidance that you may have on this as I really need to implement a generic loading page that can be called by a number of actions within my application as soon as possible.
    Thanks in advance for your help
    David.

  • Storing Images in Database using ADF/UIX

    Hello,
    Please let me know of any exmaples or tutorials on how to use Oracle Intermedia to store Images in Database and retrieve the images and display them on UIX.
    I tried using declarative approach of using ADF input form for the table which contains a blob column.
    In the entity object, i changed the blob column type to OrDImageDomain. I changed the Form settings to POST and UsesFileUpload attribute to True.
    I got an error "Incompatible Types" when trying to insert a row in the database table.
    Please provide suggestions/comments
    Thanks a lot.

    Now I'm using OrdFileUploadManager and i'm getting an error message as,
    VB_Pbefore (The system cannot find the file specified. )
    Pbefore is the attribute name of the view object.
    The form that i'm using to insert the row in the database is,
    <labeledFieldLayout>
    <contents>
    <messageChoice model="${bindings.Pid1}">
    <contents childData="${bindings.Pid1.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </messageChoice>
    <messageChoice model="${bindings.Rno1}">
    <contents childData="${bindings.Rno1.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </messageChoice>
    <messageFileUpload model="${bindings.Pbefore}">
    <end>
    <media model="${ctrl:createMediaModel(bindings.Pbefore,'ReoAppModuleLocal')}"/>
    </end>
    </messageFileUpload>
    <messageFileUpload model="${bindings.Pafter}">
    <end>
    <media model="${ctrl:createMediaModel(bindings.Pafter,'ReoAppModuleLocal')}"/>
    </end>
    </messageFileUpload>
    <messageStyledText/>
    <submitButton text="Submit"/>
    <submitButton text="Confirm Repair Photos" model="${bindings.Commit}" id="Commit2" event="action"/>
    </contents>
    </labeledFieldLayout>

  • Maybe you are looking for

    • Is there a way to play HD(1080i) video on xBox via it's USB port?

      Is there a compression setting which will create a self contained video file that I can then transfer to the main xBox 360 hard drive and then play that high def(1080i) video file via HDMI or RGB to a High Def TV, HD Projector, etc.? Thanks, Brian

    • Some users can't see attributes in the Query Builder

      Hi. I have problem. Some users can't see some of attributes of info-object in the Query Designer. Where is the problem?

    • Not able to log into (IR,ID,SLD,RWB) j2EE Engine.

      Dear Experts, We have SAP PI 7.0 installed in our landscape. Clients 110 and 100 are created. User ABCD is created in 110 with all (SAP_XI, SAP_SLD, SAP_BC_AI* and SAP_NEW, SAP_ALL) privileges. I am able to log into 110 with user ABCD. But, I am not

    • ESS/MSS configuration query

      Hi DO we have mention  system alias like 'SAP_ECC_Common' while configuring ESS/MSS package on Portal 7.0 for any of the system that has been created on Portal. Regards Nidhideep Bhandari

    • How to run reports directly from R/3 tables

      We are about to implement BW but the client wants to run temporary reports directly off R/3 tables. How can this be accomplished? Do we just use business content or r there other ways? Thanks