DCBindingContainer for ArrayList

Hello

Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding dcItteratorBindings = bindings.findIteratorBinding("EmployeeVOIterator");

ViewObject employeeTableData = dcItteratorBindings.getViewObject ();

Line employeeRow = employeeTableData.getCurrentRow ();


I don't have to VO or ViewObject...


I have just an ArrayList which I display using af: table


How can I change to get the data and the content of a line in the case of ArrayList

Hello

If you do use ADF binding at all then the binding code (DCBindingContanier etc is out of reach for you). Instead, you work directly at the table instance (richeTableau). Create a component mandatory table reference (bindings property) to a bean managed within the application or endossage scope of bean. This allows you to access the instance of richeTableau. From here you can iterate by index on the rows of the table and update your ArrayList with changed data.

Alternatively, you create a data control the bean that exposes the ArrayList and CHOSE to use POJO

Frank

Tags: Java

Similar Questions

  • Does anyone know of any method of replacement for ArrayList

    Purpose:

    Using a method to add the element Byte.

    Problem:

    Tyr to use Vector or ByteVector, but stop to a Byte [].

    origianl code

    public ArrayList = new ArrayList () cpu_config;

    {} public void setConfigInt (char key, int value)
    To add items
    cpu_config. Add (new Byte ((byte) key));
    Byte [] arr is Util.itob (value);.
    cpu_config. Add (new Byte(arr[0]));
    cpu_config. Add (new Byte(arr[1]));
    cpu_config. Add (new Byte(arr[2]));
    cpu_config. Add (new Byte(arr[3]));
    }

    Does anyone know any alternative method?

    Thank you for your attention.

    public ByteVector cpu_config = new ByteVector();

    {} public void setConfigInt (char key, int value)

    ByteVector method
    key to cpu_config. AddElement ((Byte));
    Byte [] arr is Util.itob (value);.
    cpu_config. AddElement ((arr[0]));
    cpu_config. AddElement ((arr[1]));
    cpu_config. AddElement ((arr[2]));
    cpu_config. AddElement ((arr[3]));

    }

    Solved.

    See you soon,.

  • By using the impl class for functions on a table

    I'm looking for a bit of advice on best practices.

    I have an app with 35 paintings.  I need to have a button "reset comes out" on each table.

    Each resetSort method should specify the table and the specific iterator.

    I tried to not having all the functions of 35 in the bean to support (1 for each table).

    Can I bind each table has associated feature class impl and each resetSort button call a method in this class?

    I use jdev 11.1.1.6.

    Any advice would be appreciated.

    Ray

    Then your real mission is to find the table for which the use wants to put sorting by pressing a button?

    This should be doable with the bean and a function that you bind to each of the reset buttons that you use for your tables.

    If your presentation is for the tables and the button to reset sorting, you can use an actionListener to the button. In the event of action, with the knowledge of the layout, it is easy to get to the table and once you have the table that you get the iterator from the table.

    Assuming that your tables are always surrounded by a panelCollection, who owns a toolbar now your reset button

    emptyText = "#{bindings." EmployeesView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeesView.rangeSize}' rowBandingInterval = '0 '.

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

    selectionListener = "#{bindings." RowSelection EmployeesView.collectionModel.makeCurrent}"="single"id ="t1">

    You can use this code actionListener

    {} public void resetSort (ActionEvent actionEvent)

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    DCBindingContainer dcBindings = (DCBindingContainer) links;

    UIComponent toolbar (UIComponent) = actionEvent.getSource ();

    Try to get the source of the event table

    assuming that the button is in a toolbar of a panelCollection we get using parent.parent.children

    List of children of = toolbar.getParent () .getParent () .getChildren ();

    Table richeTableau = null;

    for (UIComponent uic: children) {}

    If (uic instanceof richeTableau) {}

    table = uic (richeTableau);

    break;

    }

    }

    If (table! = null) {}

    the model in the Collection is the object that provides the

    structured data

    for the table to render

    CollectionModel tableModel = (CollectionModel) table.getValue ();

    the purpose of the ADF that implements the CollectionModel is

    JUCtrlHierBinding. It is surrounded by the CollectionModel API

    JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) tableModel.getWrappedData ();

    Acess the ADF, which is used with iterator

    ADF table binding

    DCIteratorBinding iterBind = adfTableBinding.getDCIteratorBinding ();

    table.queueEvent (new SortEvent (table, new ArrayList()));

    CurrentRow key = null;

    Line = iterBind.getCurrentRow ();

    If (line! = null)

    currentRow = row.getKey ();

    SC SortCriteria [] = new SortCriteria [0];

    iterBind.applySortCriteria (sc); iterBind is that the table iterator use

    iterBind.executeQuery ();

    If (currentRow! = null)

    iterBind.setCurrentRowWithKey (currentRow.toStringFormat (true));

    }

    }

    This code looks for the table of the source of the action, which is the button in the toolbar, get the tabel. Once you have the table you get the iterator from the table and reset the sort. This works as long as we find the source of the action table. If you always use the same layout for tables (for example. panelCollection > table), which is a practice of good uix, you have need of a bean to reset all tables. Simply link the toolbar button actionListner to the listener in the bean.

    Timo

  • TopoligyObject for the definition of the service

    Hi team,

    Wanted to add different types of agents under a definition of services, but it seems that the type should be TopologyObject, not, I can throw it?

    def addAgentList (qryType, pService, layerType, agentsList) {}

    Layertype
    'JMXServer ' =! JMXServer where monitoringAgent.name = "agent".
    'Host ' =! The host where monitoringAgent.name = "agent".
    'DBO_Instance ' =! DBO_Instance where monitoringAgent.name = 'name '.
    'DBSS_Instance ' =! DBSS_Instance where monitoringAgent.name = 'name '.
    'DotNetCountersAgent ' =! DotNetCountersAgent where monitoringAgent.name = 'name '.
    'DotNetMonitoredServer ' =! DotNetMonitoredServer where monitoringAgent.name = 'name '.
    //
    def QS = server. QueryService;
    agents of def = [];
    def qry = qryType + "where monitoringAgent.name =". "
    {agentsList.each}
    def iQuery = qs.createStatement (qry + it + "'") .setQueryTopologyObjects (true);
    def returnedAgents is qs.executeStatement (iQuery) .getTopologyObjects ();.
    If (returnedAgents.size () > 0) {}
    agents. Add (returnedAgents);
    }
    }
    //
    If (agents.size () > 0) {}
    clayer def = createOrUpdateObject ("FSMChildService", [name: layerType, parentService:pService, definition: [officers]]);
    } else {}
    clayer def = createOrUpdateObject ("FSMChildService", [name: layerType, parentService:pService]);
    }

    But get the following error:

    com Quest.Nitro.service.SL.interfaces.SC ripting. ScriptingException: com.quest.nitro.service.sl.interfaces.scripting. ScriptAbortException: java.lang.IllegalArgumentException: bad Java type for the property 'definition' of Type 'TopologyObject' WCFDO WCFDO: java.util.ArrayList instead of com.quest.nitro.service.topology.provider.wcfsdo.TopologyObjectImpl

    Anyway, we get the result of the query to the TopologyObject requested by definition property?

    Thank you

    Solved using the methods beginUpdate/EndUpdate TopologyService:

    clayer def = createOrUpdateObject ("FSMChildService", [name: layerType, parentService:pService]);
    topSvc = server. TopologyService;
    clayer = topSvc.beginUpdate (clayer);
    //
    def QS = server. QueryService;
    def returnedAgents = [];
    def qry = qryType + "where monitoringAgent.name =". "
    {agentsList.each}
    def iQuery = qs.createStatement (qry + it + "'") .setQueryTopologyObjects (true);
    returnedAgents = qs.executeStatement (iQuery) .getTopologyObjects ();
    {returnedAgents.each}
    clayer.get ("Definition"). Add (IT);
    }
    }
    clayer = topSvc.endUpdate (clayer);
    return clayer;

    Thank you

  • ArrayList

    Hello

    In .net, we the ArrayList class, which can be used for creating table, erases the content, adds items.

    Don't we have some think like this in blackberry jaa?

    I tried to use a series of tables, but its me gives error

     public static Arrays aInfoserverlist = new Arrays();
    

    It gives me error as

    "Arrays() has access private net.rim.device.api.util.Arrays.

    I need to create the table, who accept strings, erase it, add new one, copy in another table

    any solution?

    Thanks in advance!

    Try to use vectors instead of arrays.

    Sample code will give an idea similar to the feature table:

    import java.util.Vector;

    Vector SSV1 = new Vector();

    To add items

    SSV1. AddElement ("channel name");

    To set / change items at the specified index

    SSV1.setElementAt (Temp1, IndexID);

    To remove specific elements

    SSV1. Remove (index)

  • JSONData handling and storage for later use in the application.

    Hi all

    I am facing a problem here. In fact, I'm a little confused... I don't get a way to response JSON of Handel that I get from web service. By managing the answer here I mean like in java we have collections (vector and arraylist) to store and work with data in other classes by making public static or something like that. The approach that I have followed with java development blackberry for the treatment and processing of the data has been I use to make bean and depending on the response class, I use to create the data manager, but here I am confused how to do this. According to the analysis of response Soon feared thanks to the contributors of this forum I reached successfully.

    I enclose files to display the approach I have following until now for the treatment of the data.

    JSON format:

    {

    'postfeed': {}

    'blocksize': 12,.

    "offset": "1."

    "postcount": 699.

    "sticky": "1".

    },

    'Details' of the hotel: {}

    "hotel_id": "109",.

    "title": "Hotel MTL 1",

    'desc': null,

    "hotel_imageURL": "sites\/default\/files\/hotelimages\/Koala.jpg",

    'location': {}

    'city': 'Montreal ',.

    "country_name": "Canada."

    "latitude": "0.000000"

    "longitude": "0.000000"

    'name': null,

    'Phone': null,

    "Zip_code": "E4W3W9",

    "the street": "3344 mountain."

    },

    'currency': ' $',.

    'general_hotel': null,

    "Heading1": null;

    "Title2": null;

    'title 3': null,

    'url1': null,

    'url2': null,

    'url3': null,

    'contact': {}

    "email':" "[email protected]", "

    "facebook": "url",

    'twitter': 'url '.

    },

    "cityid": "108."

    },

    'post': {}

    'sticky': {}

    "title": "double stick again."

    'description': 'ok ', he said.

    "id': 'in 8244."

    "observations": "1."

    'type': 'event ',.

    'optype': true,

    'joined': '0',

    "guests": "1."

    'optext': 'Join ',.

    "created_time": "1359554162",

    'cost': '5 ',.

    'from': ' 01\/30\/2013 08:55 ",".

    « à » : « »,

    "where': 'a place."

    "img": "sites\/default\/files\/imagecache\/service_cache\/posttypes\/1113-Event_Icon3.png",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    "3": "xyz".

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    "likecount": "1."

    "timeago": "ago".

    },

    "sticky":]

    {

    "title": ","

    'description': null,

    "id': '8260."

    'comments': '0',

    "type': 'Status."

    'optype': false,

    "optext",:

    "created_time": "1359583784",

    'cost': null,

    'from': null,

    'to': null,

    'where': null,

    "img": "sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1864-1d5d622cc4b5904845c786d9156073b5.jpg",

    "post_picture": "sites\/default\/files\/hotelpostshare\/2531-mypicture.png",

    'posterdetails': {}

    'name': 'Ben Stob.

    "id': '1864."

    "occupation": "Reception."

    "employer": "Novotel"

    'roles': {}

    "2": "authenticated user"

    '4': 'xyzf '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1864-1d5d622cc4b5904845c786d9156073b5.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    "title": "regular display."

    'description': 'yes ', he said.

    "id": "8259."

    'comments': '0',

    'type': 'event ',.

    'optype': true,

    'joined': '0',

    'guests': '0',

    'optext': 'Join ',.

    "created_time": "1359579332",

    "cost": "45."

    'from': ' 01\/30\/2013 17:00 ",".

    'to': ' 01\/30\/2013 20:00 ",".

    'where': 'no ', he said.

    "img": "sites\/default\/files\/imagecache\/service_cache\/posttypes\/1113-Event_Icon3.png",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    '3': 'ssssl '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    'title': 'Test ',.

    "description': 'Kook."

    "id': '8258."

    'comments': '0',

    'type': 'event ',.

    'optype': true,

    'joined': '0',

    'guests': '0',

    'optext': 'Join ',.

    "created_time": "1359579276",

    "cost':"10. "

    'from': ' 01\/30\/2013 15:54 ",".

    'to': ' 01\/30\/2013 20:54 ",".

    "where': 'a place."

    "img": "sites\/default\/files\/imagecache\/service_cache\/posttypes\/1113-Event_Icon3.png",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    '3': 'efasdf '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    "title": "this is what happens when someone posts a very long post about the iphone, it has no limist it stops just by regard a cut or made it continue because sometimes life is just great one."

    'description': null,

    'id': "8257,"

    'comments': '0',

    "type': 'Status."

    'optype': false,

    "optext",:

    "created_time": "1359578883",

    'cost': null,

    'from': null,

    'to': null,

    'where': null,

    "img": "sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    '3': 'rtgfvasfd '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    "likecount": "1."

    "timeago": "ago".

    },

    {

    "title": "event daily post test."

    'description': ' I write a newspaper today, Sunday at 10:00, start at 15:00 today... every day, event starts at 22:00 every day, from the 20th day and ending 31...» every day this message will appear. »,

    "id": "8256."

    'comments': '0',

    'type': 'event ',.

    'optype': true,

    'joined': '0',

    'guests': '0',

    'optext': 'Join ',.

    "created_time": "1359576486",

    'cost': '0',

    'from': ' 01\/30\/2013 22:00 ",".

    « à » : « »,

    "where': 'lounge."

    "img": "sites\/default\/files\/imagecache\/service_cache\/posttypes\/1113-Event_Icon3.png",

    'post_picture': null,

    'posterdetails': {}

    'name': 'Ben Stob.

    "id': '1864."

    "occupation": "Reception."

    "employer": "Novotel"

    'roles': {}

    "2": "authenticated user"

    '4': 'dfgagvc '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1864-1d5d622cc4b5904845c786d9156073b5.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    "title": "an event to push."

    'description': 'test ',.

    'id': "8255",.

    'comments': '0',

    'type': 'event ',.

    'optype': true,

    'joined': '0',

    'guests': '0',

    'optext': 'Join ',.

    "created_time": "1359575590",

    "cost':"10. "

    'from': ' 01\/30\/2013 14:53 ",".

    'to': ' 01\/30\/2013 20:00 ",".

    "where': 'a place."

    "img": "sites\/default\/files\/imagecache\/service_cache\/posttypes\/1113-Event_Icon3.png",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    '3': 'sdfdsafa '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    "title': ' test to see if you get a big boost!"

    'description': null,

    "id": "8254."

    'comments': '0',

    "type': 'Status."

    'optype': false,

    "optext",:

    "created_time": "1359575519",

    'cost': null,

    'from': null,

    'to': null,

    'where': null,

    "img": "sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg",

    'post_picture': null,

    'posterdetails': {}

    'name': 'John Smith ',.

    "id": "1863."

    "occupation": "Product Development Manager today."

    "employer",:

    'roles': {}

    "2": "authenticated user"

    "3": "werew".

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-1863-30f1fa55def8214a5b654bdfb0827275.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    'likecount': '0',

    "timeago": "ago".

    },

    {

    "title": "it's the best pose."

    'description': null,

    "id': '8253."

    'comments': '0',

    "type': 'Status."

    'optype': false,

    "optext",:

    "created_time": "1359575013",

    'cost': null,

    'from': null,

    'to': null,

    'where': null,

    "img": "sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-2138-4bab84bb9dae51eacad7af5c0334a8a8.jpg",

    "post_picture": "sites\/default\/files\/hotelpostshare\/2528-mypicture.png",

    'posterdetails': {}

    'name': 'Shakira Ayoub.

    'id': "2138,"

    "occupation": "nurse."

    "employer": "St Marie."

    'roles': {}

    '2': 'authenticated user '.

    },

    'Image': 'sites\/default\/files\/imagecache\/service_cache\/pictures\/picture-2138-4bab84bb9dae51eacad7af5c0334a8a8.jpg '.

    },

    "flags": {}

    "1": {

    'flaginfo': {}

    "flag_name": "love."

    'flag_conf': {}

    'flag_text': 'like this ', he said.

    "flag_description",:

    "unflag_text": "love!"

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class": "likepost",

    "Type_indicateur": "1."

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 1

    },

    "currentuser": false

    },

    "2": {

    'flaginfo': {}

    "flag_name': 'reportpost."

    'flag_conf': {}

    'flag_text': ' bad post?

    "flag_description",:

    "unflag_text':"marked. "

    "unflag_description",:

    'can_unflag': 0,

    'flag_item': {}

    "hotelpost': 'hotelpost."

    'hotelcomment': 0,

    'user': 0

    },

    "flag_class",:

    'Type_indicateur': '0',

    'show_flag': {}

    "full':"full. "

    "teaser": "teaser".

    }

    },

    'flagid': 2

    },

    "currentuser": false

    }

    },

    "likecount": "1."

    "timeago": "ago".

    }

    ]

    },

    'custom_app': {}

    'hotel_name': "mtl hotel - 1 -",

    'primary_color': ' #1f74be ',.

    'secondary_color': '90958 # c ',.

    "icon_color": "#fc69fc",

    'logo': 'sites\/default\/files\/custom_app\/logo\/logo-1357129245.jpg ',.

    'primary_color_dark': ' #3388 d 2 ",

    'icon_color_name': 'ROSE '.

    },

    "rssposts":]

    {

    "title": "BlackBerry review: the good and the bad of the new Z10.

    "desc':" 'www.cbc.ca\/gfx\/images\/news\/topstories\/2013\/01\/30\/hi-blackberry-z10-stock-852-6col.jpg\ ">"

    Peter Nowak, comments on the new Z10 of BlackBerry smartphone. Bottom line: pretty cool, at high speed, but needs more applications and a better program card. <\>",

    "link": "http:///\/www.cbc.ca\/news\/technology\/story\/2013\/01\/30\/f-blackberry-10-review.html?cmp=rss."

    'date': ' Wednesday, January 30, 2013 00:49:47 UTC.

    "ID_FLUX": "18."

    'record': {}

    "ID_FLUX": "18."

    "link": "http:///\/rss.cbc.ca\/lineup\/topstories.xml",

    "title": "CBC Top Stories."

    "description': ' it's the best source out there!"

    "icon_path",:

    "block": "9."

    "timestamp": "1359140650",

    'feedtypeid': '0 '.

    },

    "ts": 1359593387.

    'type': 'rss '.

    },

    {

    "title": "RIM changes name to BlackBerry as BB10 lance."

    "desc':" 'www.cbc.ca\/gfx\/images\/news\/topstories\/2013\/01\/30\/hi-heins-blackberry10-6col.jpg\ ">"

    Research In Motion launches two smartphones BlackBerry 10, focusing on the long-awaited line of devices to save the company. <\>",

    "link": "http:///\/www.cbc.ca\/news\/business\/story\/2013\/01\/29\/business-rim-blackberry.html?cmp=rss."

    "date': ' Wednesday, January 30, 2013 19:25:54 IS."

    "ID_FLUX": "18."

    'record': {}

    "ID_FLUX": "18."

    "link": "http:///\/rss.cbc.ca\/lineup\/topstories.xml",

    "title": "CBC Top Stories."

    "description': ' it's the best source out there!"

    "icon_path",:

    "block": "9."

    "timestamp": "1359140650",

    'feedtypeid': '0 '.

    },

    "ts": 1359591954.

    'type': 'rss '.

    },

    {

    "title": "Deadly storms, tornadoes hammer Southeast of the United States."

    "desc':" 'www.cbc.ca\/gfx\/images\/news\/topstories\/2013\/01\/30\/hi-georgia-tornado-852-0391-6col.jpg\ ">"

    A massive storm system raked the southeast of the United States Wednesday, spawning tornadoes and dangerous winds that tossed cars on a Georgia Highway and demolished homes and businesses, killing at least two people. <\>",

    "link": "http:///\/www.cbc.ca\/news\/world\/story\/2013\/01\/30\/tornado-georgia-us-storms-southeast.html?cmp=rss."

    "date': ' Wednesday, January 30, 2013 19:20:25 IS."

    "ID_FLUX": "18."

    'record': {}

    "ID_FLUX": "18."

    "link": "http:///\/rss.cbc.ca\/lineup\/topstories.xml",

    "title": "CBC Top Stories."

    "description': ' it's the best source out there!"

    "icon_path",:

    "block": "9."

    "timestamp": "1359140650",

    'feedtypeid': '0 '.

    },

    "ts": 1359591625.

    'type': 'rss '.

    },

    {

    "title": "The Syria said Israeli aircraft struck the military site,"

    "desc':" 'www.cbc.ca\/gfx\/images\/news\/topstories\/2013\/01\/30\/hi-world-israel-jet-lebanon-6col.jpg\ ">"

    Israel carried out a rare airstrike on a military target inside Syria, foreign officials and Syrian State television, amid fears regime President Bashar al-Assad is supplying arms to the militant Islamic group Hezbollah. <\>",

    "link": "http:///\/www.cbc.ca\/news\/world\/story\/2013\/01\/30\/israel-lebanon-syria-jets.html?cmp=rss."

    "date': ' Wednesday, January 30, 2013 18:38:05 IS."

    "ID_FLUX": "18."

    'record': {}

    "ID_FLUX": "18."

    "link": "http:///\/rss.cbc.ca\/lineup\/topstories.xml",

    "title": "CBC Top Stories."

    "description': ' it's the best source out there!"

    "icon_path",:

    "block": "9."

    "timestamp": "1359140650",

    'feedtypeid': '0 '.

    },

    "ts": 1359589085.

    'type': 'rss '.

    }

    ],

    "facebookposts":]

    ],

    "twitterposts":]

    ]

    }

    Hello all,.

    Thanks for the support and suggestions. Problem is solved.

    Concerning

  • Java.util.Arraylist

    Hi all

    I use my own enterprise Java API (they make to apache savings) in my blackberry project. but when I use these classes in my project, his error giving because they use arraylist map etc but here in my project its error, ID do not coz you know there is no card ArrayList etc classes in BB.

    How I can use them, or to do a different API for specified BB?

    or how to add these classes in my project. coz they use many classes that does not exist in BB.

    Thank you

    Zahid

    There is no way you can use except re-implement all of your API, because Blackberry using JavaME and not JavaEE/SE. But the work will be too big to do.

    So you should forget your auto-generated files and develop everything yourself: s

  • Vanity URLS for images or PDF

    Hello

    I work with Webcenter Sites 12.2.1 and I have a question about creating models for the media with vanity URL.

    My users would like to have a vanity URL for some media as a PDF or Images or those blobs. I am able to do it for text such as JavaScript or css attributes, but for the BLOB based attributes I am a bit stuck. The fact is that to make vanity URL for an asset that I have to use a template. In the model if I display a text he has no problem. For a BLOB, I can get the attribute, but if I want to listen to the results as a model without calling the URL of the blob Server I don't get anything usable.

    Here is the code for the template that I use:

    < % @ page import="com.fatwire.system.*"% >

    < % @ page import="com.fatwire.assetapi.data.*"% >

    < % @ page import="com.fatwire.assetapi.query.*"% >

    < % @ page import="java.util.*"% >

    < % @ page import="com.openmarket.xcelerate.asset.*"% >

    < % @ taglib prefix = "cs" uri="futuretense_cs/ftcs1_0.tld"% >

    < % @ taglib prefix = "ics" uri="futuretense_cs/ics.tld"% >

    < % @ taglib prefix = "fragment" uri="futuretense_cs/fragment.tld"% >

    < % @ taglib prefix = "make" uri="futuretense_cs/render.tld"% >

    < % @ taglib prefix = 'active' uri="futuretense_cs/asset.tld"% >

    < cs: FTCS >

    < %

    Its session = SessionFactory.getSession ();

    AssetDataManager mgr = (AssetDataManager) ses.getManager (AssetDataManager.class.getName ());

    ID AssetId = new AssetIdImpl ("Content_R", new Long(ics.) GetVar ("cid")));

    List AttrNames = new ArrayList();

    attrNames.add ("imagefile");

    Data AssetData = mgr.readAttributes (id, attrNames);

    AttributeData attrDataSource = data.getAttributeData ("imagefile");

    BlobObject fileObj = (BlobObject) attrDataSource.getData ();

    Byte [] d = new byte [fileObj.getBinaryStream () .available ()];

    fileObj.getBinaryStream () .read (d);

    out.println (d);

    % >

    < / cs: FTCS >

    I've tried workaround: redirection to the server of BLOB, but the problem is that then I can't use URLS directly regarding images < img src = "/ prettyUrl" > with a redirect does not work.

    No one tried to do?

    Hello

    If you use WCS 12 c. Try using the code of the controller as they mentioned here.

    http:// >:> / sites/samples/blob_link_builder (works only if you have activated sampling stations.

  • How to set up checkboxes for SelectManyCheckbox programmatically?

    Hello experts!

    Please help me with my question.

    I work with Jdeveloper 12.2.1.0.0

    I have SelectManyCheckboxaf:selectManyCheckbox

    <af:selectManyCheckbox id="my_selectManyCheckbox"
                      valueChangeListener="#{TasksFilterBean.onTasksFilterPriorityChanged}"
                      autoSubmit="true"
                      required="false">
                          <af:selectItem label="High" value="1" id="si4"/>
                          <af:selectItem label="Middle" value="2" id="si5"/>
                          <af:selectItem label="Low" value="3" id="si6"/>
    </af:selectManyCheckbox>
    
    

    And I need to configure programmatically check boxes.

    I found this item the bean.

    ***
    RichSelectManyCheckbox my_selectManyCheckbox = (RichSelectManyCheckbox)task_page.findComponent("my_selectManyCheckbox");
    
    
    _logger.info("my_selectManyCheckbox: " + my_selectManyCheckbox);
    
    

    And question.

    How to set up checkboxes for SelectManyCheckbox programmatically?

    For example.

    I want to configure environment checkbox to activate.

    How to do this?

    PS. I'm tempted to find the solution, before you create new discussion.

    I added the SelectManyCheckbox property:

    value="#{TasksFilterBean.selectedCheckboxes}"
    

    And I added some methods in the bean:

        private List selectedCheckboxes;
    
        public void setSelectedCheckboxes(List selectedCheckboxes) {
            this.selectedCheckboxes = selectedCheckboxes;
        }
    
        public List getSelectedCheckboxes() {
    
            List selectedCheckboxes = new ArrayList();
            selectedCheckboxes.add("2");
    
            return selectedCheckboxes;
        }
    

    And now everything works.

    =================================

    Now I CAT change bean like this:

        private List selectedCheckboxes;
    
        public void setSelectedCheckboxes(List selectedCheckboxes) {
            this.selectedCheckboxes = selectedCheckboxes;
        }
    
        public List getSelectedCheckboxes() {
    //        List selectedCheckboxes = new ArrayList();
    //        selectedCheckboxes.add("2");
            return selectedCheckboxes;
        }
    

    And now I can then use:

            RichSelectManyCheckbox my_selectManyCheckbox= (RichSelectManyCheckbox)task_filter_page_template.findComponent("my_selectManyCheckbox");
    
            my_selectManyCheckbox.setValue("1");
    

    That all.

    Thank you all.

    Especially at Jiri.Machotka - Oracle

    ===========

    UPD. I'm sorry. It looks like I can configure values to 1 item on SelectManyCheckbox without bean methods.

    And with the above example, I had problems when I unckeked all the check boxes.

  • programmatic contextual event does not post for first click

    Dear all,

    I use Jdev 12.1.2.

    In my case, I have 2 tabs, Tab1 and Tab2. I bounded 2 TF Tab1 and Tab2.

    When you click on the GotoTab2 button, must open Tab2. what I realized using this link https://tompeez.wordpress.com/2014/09/25/jdev-12-1-3-using-parent-action-to-navigate-tabs-of-a-afpaneltabbed-from-inside....


    Now I have to send some data during the click on the button for this, I use programmatic contextual events. It's works for the second click, many times it's incompatible.


    It is code for the event during the click on edition link.


    JUEventBinding = eventBinding

    (JUEventBinding) BindingContext.getCurrent () .getCurrentBindingsEntry () .get ("eventBinding");

    EventDispatcher = eventDispatcher

    (BindingContext.getCurrent () .getCurrentBindingsEntry ()) .getEventDispatcher ((DCBindingContainer));

    Support useful subject = 'Test '.

    eventDispatcher.queueEvent (eventBinding, payload);

    And the consumer code is as below.

    {} public void filterBytestData (object load)

    System.out.println("---iRNum---"+Payload);

    String testData = load (String);

    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance ();

    Card pageflowScope = adfFacesContext.getPageFlowScope ();

    pageflowScope.put ("testData", testData);

    }

    And I traced the consumer and his editor in the Test.jsf page for the two regions.

    Am I missing something here, please suggest.

    Thank you

    Able to get it resolved with my colleagues help.

    I had 2 workflow in the PSF page. for the 2nd tab I had task flow as 'deferred' which initializes the workflow, only when the tab is opened. I changed it to immediate, which will initialize the taskflow immediately. It works fine now.

  • How to refresh the arraylist on MAF UI

    Hello

    I'm developing an application of MAF with Jdev 12.1.3.0.0.

    I have a listView on my page of amx. This is value bound to an arraylist (ArrayList < String >) in the bean support. There is an event of action on the page, which adds items to the ArrayList instance.

    My problem is, I'm not able to update the display of the list on my user interface.

    Newspapers, I am able to see the event method called as well as a list of Board action is changed.

    But that updated the arraylist reflects not on my user interface.

    Here is my code snippets:

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

    the amx page:

    < amx:listView var = value ' row' = "#{TripsBacking.refreshtimelist}" showMoreStrategy = 'autoScroll' bufferStrategy "viewport" id = "listView1" = > "

    < amx:listItem id = "SDp" showLinkIcon = "false" >

    < amx:outputText value = "#{line}" id = "ot1" / >

    < amx:actionListener id = binding = "#{TripsBacking.pullToRefresh"al1"}" type = "swipeDown" / > "

    < / amx:listItem >

    < / amx:listView >

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

    Backing bean:

    public class TripsBacking {}

    ArrayList < String > refreshtimelist;

    Transitional public PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport (this);

    Transitional public ProviderChangeSupport providerChangeSupport = new ProviderChangeSupport (this);

    {} public void setRefreshtimelist (ArrayList < String > refreshtimelist)

    ArrayList < String > old_value = this.refreshtimelist;

    This.refreshtimelist = refreshtimelist;

    propertyChangeSupport.firePropertyChange (old_value, "refreshtimelist", refreshtimelist);

    providerChangeSupport.fireProviderRefresh ("refreshtimelist");

    }

    public ArrayList < String > getRefreshtimelist() {}

    Return refreshtimelist;

    }

    public TripsBacking() {}

    refreshtimelist = new ArrayList < String > ();

    refreshtimelist. Add (Calendar.GetInstance () .getTime (). ToString());

    }

    {} public void pullToRefresh (ActionEvent actionEvent)

    Calendar c = Calendar.GetInstance ();

    Date d = c.getTime ();

    ArrayList < String > templist = getRefreshtimelist ();

    System.out.println ("date:" + d);

    templist. Add (d.ToString ());

    setRefreshtimelist (templist);

    }

    {} public void addPropertyChangeListener (PropertyChangeListener l)

    propertyChangeSupport.addPropertyChangeListener (l);

    }

    {} public void removePropertyChangeListener (PropertyChangeListener l)

    propertyChangeSupport.removePropertyChangeListener (l);

    }

    }

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

    I will surely provide more information if necessary.

    Ask for your help to solve this problem. Thank you.

    Thank you

    Tejas desrousseaux

    Hi Tejas,

    you declare a variable of providerChangeSupport, but you need to add public methods to support:

        public void addProviderChangeListener(ProviderChangeListener l) {
            providerChangeSupport.addProviderChangeListener(l);
        }
    
        public void removeProviderChangeListener(ProviderChangeListener l) {
            providerChangeSupport.removeProviderChangeListener(l);
        }
    

    You must move the providerChangeSupport.fireProviderRefresh ("refreshtimelist"); calling the method "pullToRefresh" (after the call to the set method).

    If you trigger the refresh, the entire list is reloaded. If you want to refresh only new posts, you must use the method providerChangeSupport.fireProviderCreate (Oracle Fusion Middleware Java QAnywhere for Oracle Mobile Application Framework).

  • ValueChangeListener for an inputText in a table - how to get that RANK the inputText is on?

    We have a table with a variable number of rows. If someone types a user name in one of the lines, it calls a method (valuechangelistener) in our managed bean.

    It's called getting at the right time, but how can you get which line the field is on?

    For example, there are 4 rows and I am changing the username in the 3rd row, how could I get the 3rd rank so that I can do things for the first name and the name of this line (change their values)?

    I tried to use the selected line, but then if I click on another row after finishing typing the username, it fills the first name and family name of the line I just clicked instead of the line that I just finished typing in.

    Screen Shot 2015-08-25 at 9.16.04 AM.png

    Help would be GREATLY appreciated!

    Thank you!

    I was able to use the dcIteratorBinding.getCurrentRow to get the line was the inputText-seems to work.

    Links DCBindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry () (DCBindingContainer);.

    DCIteratorBinding dcIteratorBinding = (IteratorId) bindings.findIteratorBinding;

    Line currRow = dcIteratorBinding.getCurrentRow ();

    If (currRow! = null) {}

    currRow.setAttribute (fnameAttr, fname);

    currRow.setAttribute (lnameAttr, lname);

    }

  • Display of the name and save the value in the database for a LOV

    Hi Experts,

    JDEV 12 C,

    I have a requirement where I need to show the name of the project in the user interface and save the project in DB Id.

    I've had two articles as below: -.

    http://husaindalal.blogspot.in/2010/03/lov-displaying-name-and-storing-value.html

    https://blogs.Oracle.com/ADF/entry/combo_lov_how_to_display

    I did the procedure below.

    I have a ProjectId attribute in my VO.

    Created a transient ProjectName attribute, passivation = true editable = always.

    Created a ViewAccessor on the MainVO.

    Created a LOV on ProjectName ProjectName mapped in the configuration to the accessor of the view section with ProjectId.

    Changed the ViewRowImpl.java.

    I get the error when you run the below request form.

    public String getProjectName() {}

    Object projectId = getAttributeInternal (PROJECTID);

    String projectName = null;

    If (projectId! = null) {}

    Object [] obj = {projectId};

    Key = new Key (obj);

    Line lines [] = getProjectsVO1 () .findByKey (key, 1);

    If (rows! = null & & rows.length > 0) {}

    projectName = (String) rows [0] .getAttribute (1);

    }

    }

    back to projectName.

    }

    When AM running I get the below error.

    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: java.lang.NullPointerException, msg = null

    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:421)

    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:483)

    at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:144)

    to oracle.jbo.jbotester.panel.BindingPanel. < init > (BindingPanel.java:108)

    to oracle.jbo.jbotester.panel.BindingPanel. < init > (BindingPanel.java:81)

    at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:90)

    at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:166)

    to oracle.jbo.jbotester.form.JTForm. < init > (JTForm.java:77)

    to oracle.jbo.jbotester.form.BindingForm. < init > (BindingForm.java:77)

    to oracle.jbo.jbotester.form.FormType$ 1.createForm(FormType.java:78)

    at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:236)

    at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:307)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:285)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:244)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:240)

    at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:149)

    at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:132)

    at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:742)

    in oracle.jbo.jbotester.tree.Tree.access$ 100 (Tree.java:98)

    to oracle.jbo.jbotester.tree.Tree$ TreeMouseListener.mouseClicked (Tree.java:152)

    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)

    at java.awt.Component.processMouseEvent(Component.java:6508)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)

    at java.awt.Component.processEvent(Component.java:6270)

    at java.awt.Container.processEvent(Container.java:2229)

    at java.awt.Component.dispatchEventImpl(Component.java:4861)

    at java.awt.Container.dispatchEventImpl(Container.java:2287)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

    at java.awt.Container.dispatchEventImpl(Container.java:2273)

    at java.awt.Window.dispatchEventImpl(Window.java:2719)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)

    in java.awt.EventQueue$ 4.run(EventQueue.java:708)

    in java.awt.EventQueue$ 4.run(EventQueue.java:706)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Caused by: java.lang.NullPointerException

    at oracle.jbo.uicli.jui.JULovButtonBinding.getDisplayAttrValue(JULovButtonBinding.java:1509)

    at oracle.jbo.uicli.jui.JULovButtonBinding.buildDisplayValue(JULovButtonBinding.java:1493)

    to oracle.jbo.uicli.controls.JULovEditButton$ TextFieldBinding.setValueAt (JULovEditButton.java:186)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)

    at oracle.jbo.uicli.jui.JULovButtonBinding.refreshControl(JULovButtonBinding.java:1228)

    at oracle.jbo.jbotester.app.FieldFactory.createField(FieldFactory.java:222)

    at oracle.jbo.jbotester.app.FieldFactory.createField(FieldFactory.java:147)

    at oracle.jbo.jbotester.panel.BindingPanel.createField(BindingPanel.java:178)

    at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:227)

    at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:185)

    to oracle.jbo.jbotester.panel.CardPanel. < init > (CardPanel.java:114)

    to oracle.jbo.jbotester.panel.CardPanel. < init > (CardPanel.java:103)

    at oracle.jbo.jbotester.panel.RowSetPanel.showCard(RowSetPanel.java:237)

    at oracle.jbo.jbotester.panel.RowSetPanel.setIterator(RowSetPanel.java:107)

    at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:141)

    ... more than 49

    # # 0 in detail

    java.lang.NullPointerException

    at oracle.jbo.uicli.jui.JULovButtonBinding.getDisplayAttrValue(JULovButtonBinding.java:1509)

    at oracle.jbo.uicli.jui.JULovButtonBinding.buildDisplayValue(JULovButtonBinding.java:1493)

    to oracle.jbo.uicli.controls.JULovEditButton$ TextFieldBinding.setValueAt (JULovEditButton.java:186)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)

    at oracle.jbo.uicli.jui.JULovButtonBinding.refreshControl(JULovButtonBinding.java:1228)

    at oracle.jbo.jbotester.app.FieldFactory.createField(FieldFactory.java:222)

    at oracle.jbo.jbotester.app.FieldFactory.createField(FieldFactory.java:147)

    at oracle.jbo.jbotester.panel.BindingPanel.createField(BindingPanel.java:178)

    at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:227)

    at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:185)

    to oracle.jbo.jbotester.panel.CardPanel. < init > (CardPanel.java:114)

    to oracle.jbo.jbotester.panel.CardPanel. < init > (CardPanel.java:103)

    at oracle.jbo.jbotester.panel.RowSetPanel.showCard(RowSetPanel.java:237)

    at oracle.jbo.jbotester.panel.RowSetPanel.setIterator(RowSetPanel.java:107)

    at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:141)

    to oracle.jbo.jbotester.panel.BindingPanel. < init > (BindingPanel.java:108)

    to oracle.jbo.jbotester.panel.BindingPanel. < init > (BindingPanel.java:81)

    at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:90)

    at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:166)

    to oracle.jbo.jbotester.form.JTForm. < init > (JTForm.java:77)

    to oracle.jbo.jbotester.form.BindingForm. < init > (BindingForm.java:77)

    to oracle.jbo.jbotester.form.FormType$ 1.createForm(FormType.java:78)

    at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:236)

    at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:307)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:285)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:244)

    at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:240)

    at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:149)

    at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:132)

    at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:742)

    in oracle.jbo.jbotester.tree.Tree.access$ 100 (Tree.java:98)

    to oracle.jbo.jbotester.tree.Tree$ TreeMouseListener.mouseClicked (Tree.java:152)

    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)

    at java.awt.Component.processMouseEvent(Component.java:6508)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)

    at java.awt.Component.processEvent(Component.java:6270)

    at java.awt.Container.processEvent(Container.java:2229)

    at java.awt.Component.dispatchEventImpl(Component.java:4861)

    at java.awt.Container.dispatchEventImpl(Container.java:2287)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

    at java.awt.Container.dispatchEventImpl(Container.java:2273)

    at java.awt.Window.dispatchEventImpl(Window.java:2719)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)

    in java.awt.EventQueue$ 4.run(EventQueue.java:708)

    in java.awt.EventQueue$ 4.run(EventQueue.java:706)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    If I use the word groovy for ProjectName instead of the code in the VOrowImpl.java method

    key oracle.jbo.Key = new oracle.jbo.Key (ProjectId);

    Return ProjectsVVO1.findByKey (key, 1) [0] .getAttribute ("ProjectName");

    I get below error: -.

    Unexpected exception taken: org.codehaus.groovy.control.MultipleCompilationErrorsException, msg = startup failed:

    General error during the semantic analysis: Houston-25152: calling the constructor for the class oracle.jbo.Key is not allowed.

    oracle.jbo.ExprSecurityException: Houston-25152: calling the constructor for the class oracle.jbo.Key is not allowed.

    at oracle.jbo.script.InternalSecurityPolicyEnforcer.checkConstructor(InternalSecurityPolicyEnforcer.java:304)

    at oracle.jbo.script.ExprASTScanningVisitor.visitConstructorCallExpression(ExprASTScanningVisitor.java:127)

    at org.codehaus.groovy.ast.expr.ConstructorCallExpression.visit(ConstructorCallExpression.java:44)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBinaryExpression(CodeVisitorSupport.java:144)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitDeclarationExpression(CodeVisitorSupport.java:245)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitDeclarationExpression(ClassCodeVisitorSupport.java:107)

    at org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:86)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:69)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:193)

    at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:163)

    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)

    at oracle.jbo.script.ExprASTScan.visit(ExprASTScan.java:97)

    at sun.reflect.GeneratedMethodAccessor26.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    to org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$ PojoCachedMethodSite.invoke (PojoMetaMethodSite.java:189)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)

    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)

    at org.codehaus.groovy.control.customizers.ASTTransformationCustomizer.call(ASTTransformationCustomizer.groovy:232)

    at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1036)

    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:572)

    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:550)

    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:527)

    at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)

    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)

    at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613)

    at groovy.lang.GroovyShell.parse(GroovyShell.java:625)

    at groovy.lang.GroovyShell.parse(GroovyShell.java:652)

    at oracle.jbo.ExprEval.parseScript(ExprEval.java:1571)

    at oracle.jbo.ExprEval.findScript(ExprEval.java:1152)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1956)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1928)

    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1647)

    at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2486)

    at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1947)

    at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:2036)

    at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:886)

    at cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl.getProjectName(FcrDetailsVORowImpl.java:3177)

    to cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl$ AttributesEnum$ 116.get(FcrDetailsVORowImpl.java:1186)

    at cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl.getAttrInvokeAccessor(FcrDetailsVORowImpl.java:3219)

    at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:916)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1248)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:798)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:826)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)

    at oracle.jbo.uicli.jui.JULovButtonBinding.refreshControl(JULovButtonBinding.java:1228)

    at oracle.jbo.jbotester.binding.BindingAdapter.refresh(BindingAdapter.java:73)

    at oracle.jbo.jbotester.panel.CardPanel.refreshAll(CardPanel.java:138)

    at oracle.jbo.jbotester.panel.RowSetPanel.refreshAll(RowSetPanel.java:203)

    at oracle.jbo.jbotester.panel.RowSetPanel.navigated(RowSetPanel.java:155)

    at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:267)

    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3732)

    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3703)

    at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3486)

    at oracle.jbo.server.ViewRowSetIteratorImpl.next(ViewRowSetIteratorImpl.java:1825)

    at oracle.jbo.server.ViewRowSetImpl.next(ViewRowSetImpl.java:3882)

    at oracle.jbo.server.ViewObjectImpl.next(ViewObjectImpl.java:11030)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1092)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2218)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:784)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.app.NavigationBar.doAction(NavigationBar.java:140)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2341)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)

    at java.awt.Component.processMouseEvent(Component.java:6505)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)

    at java.awt.Component.processEvent(Component.java:6270)

    at java.awt.Container.processEvent(Container.java:2229)

    at java.awt.Component.dispatchEventImpl(Component.java:4861)

    at java.awt.Container.dispatchEventImpl(Container.java:2287)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

    at java.awt.Container.dispatchEventImpl(Container.java:2273)

    at java.awt.Window.dispatchEventImpl(Window.java:2719)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)

    in java.awt.EventQueue$ 4.run(EventQueue.java:708)

    in java.awt.EventQueue$ 4.run(EventQueue.java:706)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    1 error

    : failed to start:

    General error during the semantic analysis: Houston-25152: calling the constructor for the class oracle.jbo.Key is not allowed.

    oracle.jbo.ExprSecurityException: Houston-25152: calling the constructor for the class oracle.jbo.Key is not allowed.

    at oracle.jbo.script.InternalSecurityPolicyEnforcer.checkConstructor(InternalSecurityPolicyEnforcer.java:304)

    at oracle.jbo.script.ExprASTScanningVisitor.visitConstructorCallExpression(ExprASTScanningVisitor.java:127)

    at org.codehaus.groovy.ast.expr.ConstructorCallExpression.visit(ConstructorCallExpression.java:44)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBinaryExpression(CodeVisitorSupport.java:144)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitDeclarationExpression(CodeVisitorSupport.java:245)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitDeclarationExpression(ClassCodeVisitorSupport.java:107)

    at org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:86)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:69)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:193)

    at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)

    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)

    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:163)

    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)

    at oracle.jbo.script.ExprASTScan.visit(ExprASTScan.java:97)

    at sun.reflect.GeneratedMethodAccessor26.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    to org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$ PojoCachedMethodSite.invoke (PojoMetaMethodSite.java:189)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)

    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)

    at org.codehaus.groovy.control.customizers.ASTTransformationCustomizer.call(ASTTransformationCustomizer.groovy:232)

    at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1036)

    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:572)

    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:550)

    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:527)

    at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)

    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)

    at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613)

    at groovy.lang.GroovyShell.parse(GroovyShell.java:625)

    at groovy.lang.GroovyShell.parse(GroovyShell.java:652)

    at oracle.jbo.ExprEval.parseScript(ExprEval.java:1571)

    at oracle.jbo.ExprEval.findScript(ExprEval.java:1152)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1956)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1928)

    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1647)

    at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2486)

    at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1947)

    at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:2036)

    at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:886)

    at cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl.getProjectName(FcrDetailsVORowImpl.java:3177)

    to cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl$ AttributesEnum$ 116.get(FcrDetailsVORowImpl.java:1186)

    at cfa.fcr.uimodel.workqueue.adfbc.view.FcrDetailsVORowImpl.getAttrInvokeAccessor(FcrDetailsVORowImpl.java:3219)

    at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:916)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1248)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:798)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:826)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)

    at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)

    at oracle.jbo.uicli.jui.JULovButtonBinding.refreshControl(JULovButtonBinding.java:1228)

    at oracle.jbo.jbotester.binding.BindingAdapter.refresh(BindingAdapter.java:73)

    at oracle.jbo.jbotester.panel.CardPanel.refreshAll(CardPanel.java:138)

    at oracle.jbo.jbotester.panel.RowSetPanel.refreshAll(RowSetPanel.java:203)

    at oracle.jbo.jbotester.panel.RowSetPanel.navigated(RowSetPanel.java:155)

    at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:267)

    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3732)

    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3703)

    at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3486)

    at oracle.jbo.server.ViewRowSetIteratorImpl.next(ViewRowSetIteratorImpl.java:1825)

    at oracle.jbo.server.ViewRowSetImpl.next(ViewRowSetImpl.java:3882)

    at oracle.jbo.server.ViewObjectImpl.next(ViewObjectImpl.java:11030)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1092)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2218)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:784)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.app.NavigationBar.doAction(NavigationBar.java:140)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2341)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)

    at java.awt.Component.processMouseEvent(Component.java:6505)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)

    at java.awt.Component.processEvent(Component.java:6270)

    at java.awt.Container.processEvent(Container.java:2229)

    at java.awt.Component.dispatchEventImpl(Component.java:4861)

    at java.awt.Container.dispatchEventImpl(Container.java:2287)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

    at java.awt.Container.dispatchEventImpl(Container.java:2273)

    at java.awt.Window.dispatchEventImpl(Window.java:2719)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)

    in java.awt.EventQueue$ 4.run(EventQueue.java:708)

    in java.awt.EventQueue$ 4.run(EventQueue.java:706)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    1 error

    Thank you

    Roy

    Try this also on the actual page (to remove some bug in AM tester)

    About the Houston-25152 error: call the constructor for the class oracle.jbo.Key is not allowed.  See this thread: Jdev 12.1.3: Houston-25152: call the constructor of class oracle.jbo.server.SequenceImpl is not allowed (WITH HR TEST CASE!)

    Dario

  • Look for no logged in user to Active Directory

    Hello

    Our application meets with AD where all the users and groups are configured.

    Given a unique ID for a user (non-logged) and ad group name, it is possible to search for this user in this group and return such a value true or false based on whether the user is present in this ad group or not?

    For a logged-in user, we have an established securityContext and it is very easy to do using userInRole ["app_role_name"]. This would tell us whether or not the user belong to this group. But how can we do this for a user not registered?

    I was going through the API OPSS but could not understand it if possible.

    Team database probably for this using the DBMS_LDAP API but I want to make sure you that there is a java solution as I remove the call to the DB.

    Thank you.

    Here you have an example OPSS:

    (MyGroup and MyUser are just POJO)

    Public collection {} getGroupsForUser (MyUser myUser)

    Collection roleList = new ArrayList ();

    IdentityStore idStore = null;

    try {}

    idStore = getIdStore();

    User user = searchUserByUsername (idStore, myUser.getUsername ());

    If (user! = null) {}

    SearchResponse resp = idStore.getRoleManager () .getGrantedRoles (user.getPrincipal (), true);

    While (resp.hasNext ()) {}

    Role = resp.next () (role);

    MyGroup myGroup = new MyGroup();

    myGroup.setName (role.getName ());

    roleList.add (myGroup);

    }

    resp. Close();

    } else

    throw new UnexistentResourceException (myUser, ResourceTypes.IDSTORE);

    } catch (oracle.security.idm.ObjectNotFoundException e) {}

    the user does not exist

    } catch (IMException e) {}

    throw new MySecurityException (e);

    } {Finally

    If (idStore! = null) {}

    try {}

    idStore.close ();

    } catch (Exception e) {}

    }

    }

    }

    Return roleList;

    }

    private getIdStore() {} IdentityStore

    IdentityStore instance;

    try {}

    JpsContextFactory ctxf = JpsContextFactory.getContextFactory ();

    JpsContext ctx = ctxf.getContext ();

    IdentityStoreService storeService = (IdentityStoreService.class) ctx.getServiceInstance;

    If (storeService is nothing)

    throw new MySecurityException ("JPS invalid configuration! Please check your configuration environment");

    instance = storeService.getIdmStore ();

    } catch (JpsException e) {}

    throw new MySecurityException (e);

    }

    return instance;

    }

    /**

    * Returns the user having a certain username of the FIRST identity store

    * WARNING: The user can be duplicated in OPSS, because coming from two different authentication providers

    @param username

    * @return

    */

    private user searchUserByUsername (idStore, String username IdentityStore) {}

    List = new ArrayList ()evaluations1 users;

    IdentityStore idStore1 = null;

    try {}

    idStore1 = getIdStore();

    SimpleSearchFilter filter =.

    idStore1.getSimpleSearchFilter (SimpleSearchFilter.TYPE_EQUAL, "Username", username);

    SearchParameters sps is new SearchParameters (filter, SearchParameters.SEARCH_USERS_ONLY);.

    SearchResponse resp = idStore1.searchUsers (sps);

    While (resp.hasNext ()) {}

    User user = resp.next () (user);

    USERS1. Add (User);

    }

    resp. Close();

    } catch (ObjectNotFoundException exception) e {}

    do nothing, return of empty collections

    } catch (IMException e) {}

    throw new PenfaxSecurityException (e);

    } {Finally

    If (idStore1! = null) {}

    try {}

    idStore1.close ();

    } catch (Exception e) {}

    }

    }

    }

    List of users of = users1;

    If (users.isEmpty ())

    Returns a null value.

    on the other

    Return users.get (0);

    }

  • Performance problem for the ADF calendar

    Hello

    We intend to apply the calendar adf for one of our customers. They will use the calendar as a planner. There will be at least 350-500 activities for a provider and a month.

    We are filtering of calendar data by selecting provider from the drop-down list box. However, execution of the view object takes about 4-5 seconds and activities appear 15 seconds. Total waiting time may be 20 seconds.

    How can I improve performance? Customer will use the calendar as a scheduler of tasks online. Therefore, it must be very fast.

    JDeveloper Version: 11.1.1.6.0

    Please note that all the components are bind to the backup of the attributes of bean whose calendar itself jsff layout.

    Steps for filtering:

    1 combo box action in backing bean:

        public void onResourceChange(ValueChangeEvent valueChangeEvent) {
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            if (valueChangeEvent.getNewValue() != null) {
                if(valueChangeEvent.getNewValue() != valueChangeEvent.getOldValue()) {
                    applyFilter();
                }
            }
            else {
                removeFilter();
            }   
            
            RequestContext context = RequestContext.getCurrentInstance(); 
            context.addPartialTarget(getC1());
        }
    

    2 ApplyFilter and removeFilter in backing bean methods:

        private void applyFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule(); 
            DCIteratorBinding garageIterator = ADFUtils.findIterator("XxntcGarageInfoVO1Iterator");
            Row currentGarageRow = garageIterator.getCurrentRow();
            Number resourceId = (Number)currentGarageRow.getAttribute("ResourceId");
            am.applyCalendarFilter(resourceId);        
        }
        
        private void removeFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule();  
            am.removeFilter();
        }
    

    3. the application model Impl applyCalendarFilter removeFilter methods and

        public void applyCalendarFilter(Number resourceId) {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            System.out.println(new java.util.Date());
            ViewCriteria vc = calendarVo.createViewCriteria();
            vc.setName("fiterCalendar");
            ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
            vcRow.setAttribute("ResourceId", "= " + resourceId);
            vc.insertRow(vcRow);
            calendarVo.appendViewCriteria(vc);
            calendarVo.executeQuery();
            
            /*calendarVo.setWhereClause(null);
            calendarVo.setWhereClause("RESOURCE_ID = :pResourceId");
            calendarVo.defineNamedWhereClauseParam("pResourceId", null, null);
            calendarVo.setNamedWhereClauseParam("pResourceId",resourceId);         
            calendarVo.executeQuery();*/
            System.out.println(new java.util.Date());
        }
        
        public void removeFilter() {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            calendarVo.removeApplyViewCriteriaName("fiterCalendar");
            //calendarVo.removeNamedWhereClauseParam("pResourceId");
            calendarVo.executeQuery();
        }
    

    Kind regards

    Anil

    Hi all

    Problem is solved.

    There are three important points for the solution.

    1 oracle has proposed to use a separate iterator for suppliers. Here is the explanation of SR Oracle:

    @ The iterator binding of the calendar and the iterator binding of the

    @ suppliers are the same, there is no point at all. Normally, the

    @ the iterator binding calendar is for the events calendar and the provider

    @ the iterator is on another iterator which gives information about the provider, the

    @ provider in the timing of the event is the foreign key to the iterator of provider.

    @You need to create a table for the vendor and then set object entity / view

    @ the object on the table, an iterator will be generated. The provider_id in the

    @ event table should be the foreign key to the table of the provider and the

    @ providerDefinition must point to the iterator of the vo provider.

    @ You cannot use the same table to set the calendar events and providers,

    @ This just doesn't make sense.

    2. I am able to set the iterator range size if I use a separate iterator for suppliers. Otherwise, ADF throws it npe: ' java.lang.NullPointerException: ADFv: calendar activity Id and Vendor Id cannot be null. "

    3. I forgot to use parameters of connection (StartDayTime, EndDayTime and time zones) in my query where clause. Creation of a criteria like this where clause "((HrCalendarEvents.START_TIME > =: StartDayTime) AND (HrCalendarEvents.END_TIME)"<= :enddaytime="" )="" )="" "="" solves="" fetching="" all="" rows="" problem.="" now="" it="" fetches="" just="" current="" time="">

    Kind regards

    Anil

Maybe you are looking for

  • Portege Z30 - A - PXE Media test failure, check cable of

    Hello everyone,Here's my problem: two days ago my Toshiba Portege Z30 - A turns off suddenly, and when it has reactivated the instead of displaying the usual Windows Home page at he showed a black screen with these lines written: 'Intel(r) Boot Agent

  • Problem of memory of my Satellite P200 1JY

    Hello world! I was offered a P200-1JY but one of the memory location is dead, and 1 GB is low for Windows 7. My question is: can I put a 4 GB memory module in only 1 location? Thanks for help me (and sorry for my English ^^)

  • Cannot send the Dolby Digital XP on Satellite P100-347

    The problem I have is that I can't get the Dolby Digital to send from my laptop to my amp, apart from the use of the library. I have the portable (Tosh P100-347) connected to my amp via a SPDIF cable. Basically, in Media Center, I am able to change t

  • Qosmio F30-147 - no sound after Vista upgrade

    I recently upgraded my Qosmio F30-147 of Windows XP MCE to Vista Business. I downloaded and installed almost all drivers available on the download page of Toshiba (including the update of the BIOS). Everything works fine but the sound. The SigmaTel H

  • Unable to download itunes on the new computer windows 10 laptop

    I just bought a new laptop and I've tried several times to install the latest version of iTunes, but every time he comes up with a message saying ' cannot run this application on your PC: find a version for your PC, check with the software publisher