Implement dragsort in oracle adf

Hi,
I want to implement the drag sort (eg: http://jqueryui.com/sortable/#display-grid) in oracle adf.
This is my sample code in oracle adf.
<?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"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" title="Sortable">
<af:form id="f1">
<af:resource type="css" source="/css/test.css"/>
<af:resource type="javascript" source="/js/jquery-1.9.1.js"/>
<af:resource type="javascript" source="/js/jquery-ui.js"/>
<trh:script id="sx4">
$(function () {
$("#sortable").sortable();
$("#sortable").disableSelection();
$(function () {
$("#test").sortable();
$("#test").disableSelection();
$(function () {
$("#sortable1").sortable();
$("#sortable1").disableSelection();
</trh:script>
<af:panelList rows="6" maxColumns="3" id="sortable1"
listStyle="thumbnail" inlineStyle="list-style-type:none" >
<af:forEach varStatus="vs" begin="1" end="17">
<af:panelList rows="6" maxColumns="3" styleClass="span4" id="test"
listStyle="thumbnail" inlineStyle="list-style-type:none">
<af:outputText id="ot2" value="#{vs.index} #{vs.count} #{vs.begin}"/>
</af:panelList>
</af:forEach>
</af:panelList>
</af:form>
</af:document>
</f:view>
</jsp:root>
Can any one help me out...
I am using JDeveloper 11.1.1.6.0 version.
Thank you and regards
Madhava
Edited by: Madhava Maiya on Apr 18, 2013 2:17 AM

Hi Frank,
I am using client side because I did not get any solution using ADF (Also I am new to ADF).
Also I need display the data in grid, that is why I used panelList.
I will expalin the thing in simpler way.
Suppose I have a list of size = 7
I want to display the data of each list in grid format mentioned below:
1 2 3
4 5 6
7
For the above requirement I have used panelList. The only thing I want to do is to use drag sort and make changes in the grid. After refreshing the page the original grid should display.
If any thing can be done using ADF is well and good for me.
Thanks
Madhava

Similar Messages

  • Implementing Internationalization in Oracle ADF

    Hi All,
    I want to implement Internationalization in Oracle ADF.Please share me some information and links which will be helpful for me..
    Eg:- I have designed a project in ADF with different pages like 1.jsff 2.jsff etc... and for this project i want to implement intenationalization Please help me out if any one has knowledge on this..
    Thanks in Advance
    Irfan Shaikh

    Hi Irfan
    Also check out this samples: https://blogs.oracle.com/jdev11g/entry/internationalizing_strings, http://majid-hussain.blogspot.com/2010/10/internationalization-of-adf-11113.html
    Good luck,
    Juan Camilo

  • Implementing Internationalization in Oracle ADF, small problem

    Hi all i have simple question,
    i cant internationalization Search and Select popup dialog.
    I read all document about Implementing Internationalization in Oracle ADF and cant see where are make mistake.
    Any way i did:
    Create Java class in view project:
    public class BLAFBundle_sr extends ListResourceBundle {   
    public Object[][] getContents()
    return contents;
    static final Object[][] contents = {
    {"SEARCH_TEXT", "Pretraga"},
    {"SIMPLE_SEARCH_TEXT", "Prosta pretraga"},
    {"ADVANCED_SEARCH_TEXT", "Napredna pretraga"}
    Set faces-config as
    <locale-config>
    <default-locale>sr</default-locale>
    <supported-locale>sr</supported-locale>
    </locale-config>
    <resource-bundle>
    <base-name>SistemskeKlase.BLAFBundle_sr</base-name>
    <var>sr</var>
    </resource-bundle>
    Set my internet explorer on sr language,
    Set view project to use Automaticly sync bundle
    and default bundle name as SistemskeKlase.BLAFBundle_sr
    And nothing happened after building and running project

    I think you are using incorrect resource string name in your method
    static final Object[][] contents = {
    {"SEARCH_TEXT", "Pretraga"},
    {"SIMPLE_SEARCH_TEXT", "Prosta pretraga"},
    {"ADVANCED_SEARCH_TEXT", "Napredna pretraga"}
    }I can't find these strings SEARCH_TEXT,SIMPLE_SEARCH_TEXT,ADVANCED_SEARCH_TEXT in Selectors for Skinning Fusion's ADF Faces Components
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e15862/toc.htm

  • Oracle ADF Data Control With Java List

    Hello
    I have a question regarding Data Controls that are based on Application Modules functions. In short I created function:
    public List getListOfTest() {
    List allTests = new ArrayList();
    allTests.add("test1");
    allTests.add("test2");
    allTests.add("test3");
    return allTests;
    inside AppModuleImp.java
    I tested this implementation through AppModule Oracle ADF Model Tester and it returns test1,test2,test3. So this is OK. Now I publisher function through Client Interfaces, and I can see it know in DataControl.
    So I drag and drop function on my jsf page, and render it as a button. Also i drag and droped "return"(hierarchically beeneth/inside function getListOfTest in DataControll) from Data Control and rendered it as ADF table. I was hoping that this will show: test1,test2,test3 in ADF table.
    But now when I run jsf page and it is displayed in browser I get:
    Object java.util of type ApplicationModule is not found
    What I am doing wroong. Please help. Thx
    I use JDeveloper Studio Edition Version 11.1.2.2.0

    The solution is
    public List<String> getListOfTest() {
    List<String> allTests = new ArrayList<String>();
    allTests.add("test1");
    allTests.add("test2");
    allTests.add("test3");
    return allTests;
    Problem was in generic List

  • How to implement Distributed Transactions in ADF?

    Scenario:
    when selected rows and submitted action from UI, following happens
    1) For the selected rows, information will get fetched from database and a message will get formed and will get posted in JMS queue
    2) once step1 is successful, corresponding record will get logically deleted
    Implementation details:
    Environment: Oracle ADF , Weblogic server
    Step1: Created UI with Multi selection
    Step2: getting selected row key information and calling a custom AM method (exposed as client interface) from managed bean passing selected row key info
    step3: implementing following logic in AM method
    while(keyList.hasNext()
    1) getting View object for the given key and populating message
    2) Posting the mesage in JMS queue configured in weblogic using JMS Helper classes written
    3) updating the delete flag in VO
    Problem statement:
    In Step3 after sub step 2 executed, suppose if database is down substep3 will not get executed
    because of which a record will get displayed again back in UI and when selected again a duplicated message will be sent to the concerned external system
    I'm very new to ADF. Can anyone please help me on how to achieve this using ADF?
    Much Appreciated,
    Indu

    Thanks Vinod for your reply
    at substep 2 getting record from database and populating message and posting it to jms queue
    at substep 3 if post is successful the updating database indiacting this message has been sent by updating delete flag
    if i update database first and then if send message, In case of JMS exception(Can be Queue failures) my record will get updated and i cannot see record back in UI
    So both these opertions has to be happened in in single Transaction.Either both has to be happened or both has to be rolled back
    database and JMS are different resources. How ADF handles these XA transactions?
    Thanks,
    indu

  • How to implement custom Model Class in Oracle ADF?

    I am using Oracle ADF for one of my project and i am using Query component of ADF. For given tables the query component creates view objects and maps the relations. ADF uses its own custom model class for this component and it should understand the DB tables. But for my project i have no access to database. All i can do is pass a string or object/query to the existing (custom) Java class/object, and this model class formulates query and queries the database and returns the value to my Java class. I have to display these results using ADF to the front end. Is There a way to achieve this? Can i replace/override the existing Model class of ADF. If so how?
    Thanks in advance for your help.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • Implementing Event listeners in Oracle ADF

    I have a selectonechoice UI component by which the user selects the user name and an UI table component which displays all the documents the user has access to. There are three tables involved 1) User 2) Access 3) Documents. USER table has a FK relation to ACCESS table. The ACCESS table has FK relation to DOCUMENTS table.
    I have written two SQL queries/view objects (userView) to get the user name and another join query (userAccessView) to get the document names that a particular user has access to.
    I want to link the two UI components such that when the selectonechoice UI component changes value, the table UI component should display document list has the user has access to.
    Is there any sample example of how to implement the functionality using Oracle ADF? Or any suggestion on how to do it.
    Regards
    Thomas

    You should be able to achieve this with PPR - for example see this demo of the navigation list:
    http://blogs.oracle.com/shay/2008/11/the_navigation_list_select_som.html

  • Oracle ADF Business Service Layer Technologies

    Hello,
    We are building an online shopping mall/site that is expected to receive order volume of 50-60 thousand orders per week. So obviously, data traffic generated by the site will be pretty heavy. The technology set we are supposed to use is Jdeveloper 10g with ADF. Currently ADF business service layer offers following set of technologies. The question is which of following technologies meets these four criterias the BEST? (1) Security, 2)24x7 Reliability and Maintenace overheads (3)Speed /Performance of the server response to client requests (4) integration with Oracle database.
    Please advise. Any technet/metalink oracle document that compares these various business layer technology would be great indeed.
    Business service technologies that I am talking about is mentioned below
    Enterprise JavaBeans (EJB) Session Beans
    Since most J2EE applications require transactional services, EJB session beans are a logical choice because they offer declarative transaction control. Behind the EJB session bean facade for your business service, you use plain old Java objects (POJOs) or EJB entity beans to represent your business domain objects. JDeveloper offers integrated support for creating EJB session beans, generating initial session facade implementations, and creating either Java classes or entity beans. You can also use Oracle TopLink in JDeveloper to configure the object/relational mapping of these classes.
    JavaBeans
    You can easily work with any Java-based service classes as well, including the ability to leverage Oracle TopLink mapping if needed.
    Web Services
    When the services your application requires expose standard web services interfaces, just supply Oracle ADF with the URL to the relevant Web Services Description Language (WSDL) for the service endpoints and begin building user interfaces that interact with them and present their results.
    XML
    If your application needs to interact with XML or comma-separated values (CSV) data that is not exposed as a web service, this is easy to accomplish, too. Just supply the provider URL and optional parameters and you can begin to work with the data.
    ADF Business Components.
    These service classes are a feature of the ADF Business Components module, and expose an updateable dataset of SQL query results with automatic business rules enforcement.
    Thanks
    Ruchir

    So the quote says "technologies Oracle recommends to J2EE developers" which is correct - if you are an experience Java EE developer the TopLink/JPA/EJB stack should be your choice however if you are coming from a 4GL/Enterprise developer background then the recommendation is here:
    http://download.oracle.com/docs/html/B25947_01/intro002.htm#sthref21
    For enterprise 4GL developers building new web applications, Oracle recommends using JavaServer Faces for the view and controller layers, and ADF Business Components for the business service implementation. This combination offers you the same productive J2EE technology stack that over 4000 of Oracle's own enterprise 4GL developers use every day to build the Oracle E-Business Suite. Since its initial release in 1999, several thousand external customers and partners have built and deployed successful Oracle ADF-based applications as well. Both now and in the future, Oracle and others are betting their business on Oracle ADF with ADF Business Components.
    And yes ADF BC can be exposed as EJB - but this is usually only used for remote deployment of ADF BC when they are on another server than the UI code - for example when using Swing.

  • Oracle ADF BC stress testing

    Hi All,
    I have an Oracle ADF application which uses SOA and ADF BC in back-end. As per my requirement, I need to do stress test on ADF BC back-end component. As I said, this application is containing SOA and ADF BC calls so I prepared a test JSPX file on top of single AM (ADF's application module integrates all BC components).
    This is first step in which I actually test single AM. There-after I prepared a JMeter script which actually makes HTTP URLs for calling JSPX. Firstly, I prepared this script for 15 concurrent users. Accordingly, I made changes in AM pooling configurations.
    This is working fine but I have a doubt here, which is, I need to prepare seperate JSPX files (for different HTTP URLs) for different AMs (i.e. different ADF BC components). Is there any way through which I just pass some code snippet in existing application which actually test the ADF BC component. If I create JSPX file each time for each AM module, this will take too much time and efforts.
    I am looking for something which should be implemented with existing application. I do not know, how to do that?
    Please suggest me in case you have any alternate solutions.
    Regards,
    Dilip Gupta@Wipro

    Wrong forum.
    Try: JDeveloper and ADF

  • Oracle ADF Security

    Dear All,
    we have created some good number of Custom ResourcePermissions in our Oracle ADF 11g Application. we are trying to refer the permissions with wildcard character in jazn-data.xml. The same worked well for taskflows.
    Is there anyway that we can implement wildcard character in custom resource  Permissions ?
    we are calling hasPermission() API to check whether permission exists or not. Currently this method returns false when we configured the resource name in wildcard character.
    For example, actual key - a.b.c.menu
    wild card character we are referring for this key is a.*.*.menu  . The hasPermission() returns false for this case.
    Regards
    Deivee

    Hi,
    more an OPSS question than ADF Security. Anyway, the answer is
    "No wildcard use is supported in a resource permission."
    See:  The OPSS Policy Model - 11g Release 1 (11.1.1)
    Frank

  • Oracle ADF Faces

    I want to use Oracle ADF Faces in the following environment.
    1) IDE - eclipse, exadel studio 3.0.5
    2) Container - Tomcat 5.0.9
    3) Sun RI
    Please tell how to use adf with above environment. I need configuration details only.

    Hi,
    I modified the web.xml as mentioned in the link
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html
    I am using myfaces1.1 implementation. I copied the two adf-faces-api.jar, adf-faces-impl.jar in the WEB-INF folder where the myfaces lib files are available.
    I created a simple page with ADF Faces. but i am getting the following error:
    Resource not found ( HTTP 404 ).
    Please help me how to solve.

  • Oracle ADF security integration with Oracle E-Business Suite SDK JAAS

    I have an Oracle ADF 11.1.2.2 application that is using ADF security for authentication and authorization.
    When we deploy this application to our JDeveloper integrated weblogic server, we utilize the security setting of "Custom" and use weblogic users and roles to map to the ADF application roles. In that environment our security is working properly.
    I have a Weblogic 10.3.5 standalone server that has the ADF runtime installed as well as the Oracle E-Business Suite SDK JAAS implementation installed.
    When I deploy the Oracle ADF application to the standalone weblogic server, I am directed to the JAAS login page when I attempt to access any JSF page (including those that I have granted View access through the anonymous-role. Does the Oracle ADF anonymous-role work (allow for anonymous page access) when JAAS security is handled by the Oracle E-Business Suite SDK JAAS implementation?
    Per the SDK instructions, when we install the Oracle ADF deployment on Weblogic we have selected "DD only" for our security setting. We have defined enterprise roles in the Oracle ADF security setup (jazn-data.xml) that are assigned the appropriate application roles. Those enterprise roles have the same name (i.e. UMX|YOURROLE) as the E-Business Suite roles that are assigned to our test users. When we login with an E-Business Suite user / password we are receiving an error:
    Error 401--Unauthorized
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.2 401 Unauthorized
    Any thoughts on why that would be?
    Thanks
    Dan

    Thanks Juan.
    With the debugging options enabled it appears the issue is not an issue with the user / role credentials - it seems like the resource grants from jazn-data.xml are not being reviewed in my standalone weblogic instance EAR deployment:
    [JpsAuth] Check Permission
    PolicyContext: [TestApp]
    Resource/Target: [untitled1PageDef]
    Action: [view]
    Permission Class: [oracle.adf.share.security.authorization.RegionPermission]
    Result: [FAILED]
    Evaluator: [ACC]
    Failed ProtectionDomain:ClassLoader=sun.misc.Launcher$AppClassLoader@13f5d07
    CodeSource=file:/app/oracle/product/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar
    Principals=total 2 of principals(
    1. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousUserImpl "anonymous" GUID=null DN=null
    2. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl "anonymous-role" GUID=null DN=null)
    When I access the same page from my integrated weblogic server I see:
    [JpsAuth] Check Permission
    PolicyContext: [TestApp]
    Resource/Target: [untitled1PageDef]
    Action: [view]
    Permission Class: [oracle.adf.share.security.authorization.RegionPermission]
    Result: [FAILED]
    Evaluator: [ACC]
    Failed ProtectionDomain:ClassLoader=sun.misc.Launcher$AppClassLoader@13f5d07
    CodeSource=file:/app/oracle/product/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar
    Principals=total 2 of principals(
    1. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousUserImpl "anonymous" GUID=null DN=null
    2. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl "anonymous-role" GUID=null DN=null)
    When I review my EAR - I do see jazn-data.xml at:
    /META-INF/jazn-data.xml
    I will review the system-jazn-data.xml to see if the policy information has been migrated properly as part of the EAR deployment.
    Thanks.
    -Dan

  • Oracle adf

    My question is how to implement FrameBorderLayout tag in oracle adf?
    Please answer this by using an example.

    User,
    Well, using Google led me to [url http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps|adfcreate|af_ahtml_frame~html/]this part of the documentation, which has an example.
    Regards,
    John

  • Oracle ADF Faces Components, Early Access Release 8 is now available

    Oracle ADF Faces is a rich set of user interface components based on the new JavaServer Faces JSR (JSR-127). Oracle has been actively involved in this JSR since its beginning. The Oracle ADF Faces Components provide various user-interface components with built-in functionality - such as data tables, hierarchical tables, and color and date pickers - that can be customized and re-used in your application.
    ADF Faces also includes many of the framework features most needed by JSF developers today:
    * File upload support is integrated at a component level.
    * Client-side validation is automatically derived from Validators and Converters for an improved user experience.
    * A pageFlow scope makes it easier to pass values from one page to another.
    * A new hybrid state saving strategy gives developers the best of both client and server-side state saving.
    ADF Faces ensures a consistent look and feel for your application, allowing you to focus more on user interface interaction rather than look and feel compliance. The components support multi-language and translation implementation as well as accessibility features. ADF Faces Components use Partial Page Rendering (PPR) offering superior runtime interactivity. PPR allow the browser to just render a piece of a page instead of the entire page.
    The intention with this early access release is to give developers/architects an opportunity to evaluate JSF and Oracle's JSF component offering.
    Oracle ADF Faces Components can be used in any IDE that support JSF, including Oracle JDeveloper 10g.
    Oracle ADF Faces Components, EA8

    Jonas,
    It works if I include the following:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The source is now:
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA8" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <f:view>
    <af:outputText value="hello ADF Faces!"/>
    </f:view>
    </body>
    </html>
    Did I feel out something in my library entry?
    Thanks.

  • Oracle Forms equivalent operations in Oracle ADF

    I need to know whether there are equivalent operations in ADF corresponding to these operations in Oracle Forms
    System.Current_block
    System.Current_record
    System.Current_form
    etc...

    As a mechanism to working out how ADF works, a suggested read is the Fusion Dev Guide: http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/toc.htm
    Once you've done this, as extension the dev guide has appendixes "F - ADF Equivalents of Common Oracle Forms Triggers" & "G Performing Common Oracle Forms Tasks in Oracle ADF" for assisting Forms programmers in moving to ADF, a feature/mind map as you will.
    However as Vinod says, don't make the mistake of thinking ADF is similar to Forms in its implementation. While Forms and ADF attempt to achieve similar results (ie. applications querying data from a db and showing to the user to view or edit), they do it in totally different technologies.
    CM.

Maybe you are looking for