Show Swing Container JPanel in ADF Component

Hi ADF-Folk,
I come out of the forms developer world. in forms i used pluggable java components to show graphical components in forms.
Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
Application example: Colored tray configuration for a lean lift administration. On this tray are nearly 120 places to allocate. I don't want to use 120 adf labels in dynamic .jspx with backing bean to rebuild this function.
How can I manage this?
Thank you very much.
Best regards.
Gunnar

Hi,
Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
yes, use f:verbatim as a tag and add the JPanel as an Applet. Note that the Applet will not be integrated with ADF Faces and requires you to use JavaScript to get this working. See the following example
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf
Frank

Similar Messages

  • Best practice to show ICON instead Label for ADF Component

    Hi,
    I am using JDeveloper 11.1.1.6.
    My requirement is to use Icons instead Label text for my ADF components. Those are in one Form layout wich means that if I just used a panelgroup horizontal and put then the image and then the input component, the panelForm Layout wont automatically align my components. So I was trying to fallow this link
    http://adfpractice-fedor.blogspot.co.uk/2011/08/panel-form-layout-and-labels-with-icons.html with no success.
    Anyone else could orientate me on the right path?
    Thank you

    You can try to use af:panelFormLayout and set "rows" property.
    Then set simple="true" on your input components.
    For example:
    <af:panelFormLayout id="pfl1" rows="2">
          <af:image source="image1.png" id="i1"/>
          <af:image source="image2.png" id="i2"/>
          <af:inputText label="Label 1" id="it1" simple="true"/>
          <af:inputText label="Label 2" id="it2" simple="true"/>
    </af:panelFormLayout>Dario

  • Showing swing components in the palette og jdeveloper

    hello, I have found a problem with jdeveloper, as a user uses jdeveloper since 2 years I have never found a problem like this. (IDE problem).
    like habitude I created a simple java project which contains a jframe and an entry class (main class), but when I try to drag and drop from the component palette somes swing components I didn't find
    the page of swing components ( I found in the components palette just "my components" page in the jcombobox selection category). this problem will delay a big project and causes big problems
    please any person who know some things help me as soon as possible.
    Best Regards.

    Check this post -
    showing palette containing JButton,JLabel,JPanel ... components

  • Jpanel overlap Forms Component

    Hi all,
    I'm using forms 11g, now i try to add one JPanel (Swing) to DrawPanel (Oracle forms DrawPanel), I add the panel first after that I add other Forms component such as VTextField, VBUtton, after that I change Z-order of JPanel to last index (because i want Jpanel will be overlapped by other forms components) .
    But the result always show the JPanel overlap Form Component.
    For more detail you can view this link : [http://stackoverflow.com/questions/7764532/jpanel-overlap-other-components]
    Thanks in advance
    Best regards,
    Edited by: 891733 on 21:05 16-10-2011

    Hi,
    When i change JPanel to Forms DrawnPanel, i still got this problem,
    And i've already added this post to Java Programming Thread
    jpanel overlap Forms Component

  • How to get the values from a html form embedded in a swing container

    Hi all,
    I am developing an application in which i have to read a html file and display it in a swing container.That task i made it with the help of a tool.But now i want to get the values from that page.ie when the submit button is clicked all the values of that form should be retrived by a servlet/standalone application.I don't know how to proceed further.Any help in this regard will be very greatful
    Thanks in advance,
    Prakash

    By parsing the HTML.

  • HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?

    HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?
    I understand the instructions to create a new account id (apple id) from the old aol account. However, does this mean my purchases will be split into 2 accounts; or does the fact that I currently see everything under my apple id (regardless of the purchased by username) mean this will all still appear in my current account as it does now?

    You see them where when you login your non-AOL account ?
    If you currently have two accounts (the AOL username account and an email address account) then you will continue to have two accounts, and nothing should change when you update the AOL account to be an email address (apart from how you access that account).
    You will just be renaming the account to have an email address for accessing it, not creating a new account.

  • Find the container name of a component

    hi
    how does one get the container name of a component on the component's actionListener event.
    i have a ' N ' number of JInternalFrames in which there are multiple JToggleButtons. On the actionListener event of the togglebutton i would like to know the name of the internalframe which is holding it. how do i get that name.
    Plz suggest Thanks Trushant

    NO it did not work. getTopLevelAncestor() function returns me the main frame on which i have all the jinternalframes . is there any way to know the next immediate container of the component.
    Anyways thanks for consideration .

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • Detecting ADFButton as ADF component in OpenScript

    Hello,
    I want to identify the ADFButton as an ADF component in OpenScript.
    In the Object Identification for Oracle ADF Functional there is the web:commandButton tag. But The commandButton component has been deprecated. So the developers are using the button component instead. When I record a script, it will identify the button as "/web:window[@index='0' or @title='title']/web:document[@index='0' or @name='w0']/web:a[@text='Save' or @href='website' or @index='17']" and not as an ADF component. I want to use the absolute_locator to identify the adf-objects.
    I have tried to change the name from web:ADFCommandButton to "web:ADFButton" and "web:Button", this didn't make the trick.
    Now I replace the path by "/web:window[@index='0' or @title='title']/web:document[@index='0' or @name='w0']/web:div[@id='pt1:r1:1:pt1:b1']". This can't be done by a non-technical person who only uses the recording button.
    Does anybody have an idea how to do this?
    Thank you for the answer.
    Extra-info
    OpenScript Version
    12.4.0.2 Build 129
    ADF Version
    Oracle-Version: 12.1.3.0.41.140521.1008
    Oracle-Label: JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S
    Oracle-Label-JDEVADF: JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S

    Anyone from Oracle, can you please confirm if BI Publisher Integration as mentioned in the document (http://download.oracle.com/docs/cd/E15586_01/fusionapps.1111/e20838/jdev.htm#CACGJFJF)
    is supported in 11.1.1.5 ?
    We have installed all the updates available but we are not getting the BI publisher in technology scope ?
    Jdeveloper 11.1.1.5
    Please help.
    Edited by: Chaitanya Vegesna on Jun 21, 2012 7:34 AM

  • How to use CSS to customise ADF component

    I'm not going into skin. However, I want to edit property of ADF component through CSS. How do we do this? Any url link that give complete documentation? (How to represent ADF Component in CSS)
    E.G. I want to set af:column noWrap=true to all table.
    Regards
    Eric H

    Hi,
    just a guess, but give it a try: customize the default Oracle skin as described in the blog post "Customizing BLAF for ADF Faces - easier than Skins for influencing colors and fonts by Lucas Jellema". You don't need to add custom skins, just edit the oracle-desktop.xss file.
    Then you can add a "white-space: nowrap;" property for the appropriate style, which very likely will be AFTableCellDataText. It will be something like this:
    <style name="AFTableCellDataText">
      <property name="white-space">nowrap</property>
    </style>HTH,
    Patrik

  • ADF component to display a grid with wrap around

    We need to create a grid of images on a page, such that maximum number of images that can fit in the viewable area are displayed in a row. The remaining images wrap to the next row. One should be able to select one or more images from the grid and drag-and-drop them in the same grid or outside the grid. Any suggestions about the best ADF component that can serve this purpose. Also, wonder if Collection drag-and-drop mechanism is available for components other than <table> and <tree>?. For example, can we use it with <panelList> or <panelForm>?

    this related to css instead of which component to use, following code should work:
    <af:panelGroupLayout id="pgl1" layout="vertical" inlineStyle="width:90%; border:1px solid black;float:left">
         <af:image source="#{resource['images:logo.png']}" shortDesc="Img 1" id="i1"
    inlineStyle="height:60px;float:left"/>
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 2" id="i2"
    inlineStyle="height:60px;float:left"/>
    </af:panelGroupLayout>
    if you remove af:panelGroupLayout and just use following inside your component
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 1" id="i1"
    inlineStyle="height:60px;float:left"/>
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 2" id="i2"
    inlineStyle="height:60px;float:left"/>
    it should still work

  • JScrollPane containing JPanel HELP!

    Hi again,
    I'll try my luck again!
    Ok, I have a JPanel that uses a GridBagLayout with 3 columns and many rows. Each row is of the form:
    [JLabel][JTextField][JButton]
    Ok. Since I have many of these rows, and my application should be a constant size, I need to somehow make you able to scroll down the list of these labels,textfields and buttons - to the one you want. I have tried making the containing JPanel the viewport of a JScrollPane, however, when I only have a couple of rows of labels, textfields, and buttons, each expands to fit the viewport size - and they turn out looking really dumb.
    How can I get it so that the labels, textfields and buttons are only the height of the text in each?
    Please please, please, please help me.
    sincerely, Edd.

    Chenge the weight (x&y) in the GridBagConstraints of the components you don't want to expand to 0.0. Change the fill to GridBagConstraints.NONE.

  • I wan to i visible/invisble Panel(Adf Component) on UI using ADS?

    HI,
    Following is my requirement
    I am having one panel which should be visible/invisible on UI based on event coming from Web services.
    I am consuming one web services which is sending me update which i suppose to read at specified interval.
    if there is any update from web services then i suppose to visible/invisible Pane(ADF component)l on UI.
    Active Data Service can be useful for this requirement?
    If Yes,
    Do i need to create Active Data Proxy for this?
    Your suggestion will be helpful.
    - Deepak Parmar

    Frank Nimphius,
    Thanks for your quick reply. :)
    This is really good article which has provided one good way how to trigger event from client whenever we get update from server.
    but i am still having some questions:
    1) based on post you have provided, if i can able to trigger event from client then do i need to use ADS anymore?
    2) Do you have source code for the same? , I want to see how ADS is playing role here.
    3) if i am getting update from web services then do i need to create Active Data Proxy?
    Regards,
    Deepak

  • ADF Component Guide 10.1.3

    Could someone please point me to a ADF component guide (preferably a sample app)? I see one for ADF UIX components but nothing for the 10.1.3 components. I'm looking for a documentation on how to use each of the components in the ADF Core set. I've reviewed what is in the developers guide already and am guessing there must be more somewhere.
    Thanks,
    Dan

    Hi,
    there is no component guide as it was in UIX. However, you may find this page useful
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/index.html
    Frank

  • Programatically Hiding ADF component

    Hi,
    I have a requirement for which i am hiding a adf component using render=false or visible=false and move other existing component in screen to the place of hidden component. The screen is codded as below,
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelGroupLayout id="pgl1" layout="scroll">
    <af:panelBox text="PanelBox1" id="pb1">
    <f:facet name="toolbar"/>
    <af:panelFormLayout id="pfl1" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl1}">
    <f:facet name="footer"/>
    <af:outputText value="1" id="ot1" binding="#{StartPageBean.ot1}"/>
    <af:outputText value="2" id="ot2" binding="#{StartPageBean.ot2}"/>
    </af:panelFormLayout>
    <af:panelFormLayout id="pfl2" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl2}">
    <f:facet name="footer"/>
    <af:outputText value="3" id="ot3" binding="#{StartPageBean.ot3}"/>
    <af:outputText value="4" id="ot4" binding="#{StartPageBean.ot4}"/>
    </af:panelFormLayout>
    <af:panelFormLayout id="pfl3" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl3}">
    <f:facet name="footer"/>
    <af:outputText value="5" id="ot5" binding="#{StartPageBean.ot5}"/>
    <af:outputText value="6" id="ot6" binding="#{StartPageBean.ot6}"/>
    </af:panelFormLayout>
    </af:panelBox>
    </af:panelGroupLayout>
    <af:commandToolbarButton text="commandToolbarButton 1" id="ctb1"
    action="#{StartPageBean.hideComponents}"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    This code render the out as,
    1 2
    3 4
    5 6
    As we can see that we have PanleGroupLayout than a PanelBox and than all the PanleGroupLayout with 1 row and 2 column.
    Now if i make ot2 an ot3 as hidden using render false the output comes as below,
    1
    4
    5 6
    If i make ot2 and ot3 as hidden using visible false the output comes as,
    1
    4
    5 6
    can we get the output as
    1 4
    5 6
    by using either of the approach? or is there any other approach to achiecve the same.
    Let me know if some more information is required

    Hi,
    I have created an ADF tree using VO. its being displayed with several nodes (Drag and drop fo data control). Now I want to add dynamically created links into the created tree nodes. how to do that from inside my backing bean code.
    for (int i = 0; i < assignedAuditLinksCount; i++) {
    HashMap auditInfoMap = assignedAuditList.get(i);
    RichCommandImageLink auditInfo = new RichCommandImageLink();
    RichSpacer auditLinkSpacer = new RichSpacer();
    auditInfo.setText(auditInfoMap.get(AuditOperationsConstants.AUDITID).toString());
    auditInfo.setIcon("/images/navbullet.png");
    String actionEL =
    "#{backingBeanScope.backing_fragments_PerformAudit.setAuditInfo_action}";
    MethodExpression action = actionMethodExpression(actionEL);
    auditInfo.setId("AuditId" + (i + 1));
    auditInfo.setActionExpression(action);
    auditInfo.addActionListener(new PerformAuditActionListener());
    auditInfo.setVisible(true);
    auditInfo.setImmediate(true);
    auditInfo.setInlineStyle("text-decoration:underline;");
    auditLinkSpacer.setHeight("0");
    auditLinkSpacer.setWidth("10");
    How to add these auditInfo links in my tree nodes created using VO.
    }

Maybe you are looking for

  • Using Creative Suite on Tablet

    I have a Samsung Galaxy Tab 3, I saw that in the "store" that there are some apps for adobe software. I was wondering if there was a way to install the creative suite to my tablet as I already have the software cd (Creative Suite 6) for my laptop? Ma

  • Application Builder Applications List View Detail - Parsing Schema

    When viewing all applications in the Application Builder using the View Detail option the list of applications is shown with the Parsing Schema showing APEX_040100 or APEX_040200 according to the apex version. Shouldn't it show the actual schema that

  • SSL logging for an application

    How can i set up SSL logging for just one application. I have an htmldb SSL application that i want to track through my oracle http server log. How can i set up a log to just track the directory path that it is in. For example, i want all /pls/htmldb

  • Non numeric keyboard - I need the shortcut keys for Google Earth

    I need the shortcut keys for Google Earth - like Page Up, Page Down etc, but the new Apple wireless keyboard hasn't got the numeric keypad. Are there alternative shortcut keys for Page Up/Down? Or can I programme any of the Function keys to do that i

  • Why is my screen a sick green ?

    I was walking home from school, and my music stopped playing. So i cheked my ipod, and my screen was first full of small colorfull lines, then black, then faded to a red-ish green-ish color, and finaly a sick green.. why did it do that ? does anybody