Which view object classes should be used by managed bean in ViewController?

I just like to find out which java implementation classes created for a view object should be referenced in a managed bean on the UI side.
For my view object InfoVO, I can create the following classes:
View Object class: InfoVOImpl
View Row class: InfoVORowImpl
View Row Client Interface: InfoVORow
View Row Client Class: InfoVORowClient
Currently, I use InfoVOImpl and InfoVORowImpl in my managed bean so that I can use the getter methods conveniently to access the attributes with proper data types.
I am not sure when I should use InfoVORow and InfoVORowClient instead of InfoVORowImpl.
What are the context and reasons for using InfoVORow or InfoVORowClient instead of InfoVORowImpl?

Hi,
all of these are wrong. If you want to access a method exposed on a ViewObjectImpl class, the you expose the method as a clientMethod (or clientInterface) in the Java options for the View Object (or Application Module if the method is on AMImpl). You should avoid using implementation classes directly in the managed bean. If you need to access a View Object, use its interface ViewObject. If you need anything more specific than that, expose a method on the client interface after which you can access it through the binding layer.
Frank

Similar Messages

  • If I want to paste from clipboard on a Flex web app, which element and class should I use?

    I want to have this function: copy image from somewhere, and paste in an area in  Flex app, can I realize that?
    which element to support? canvas?
    which class can implement this?
    thanks!

    With System.setClipboard("Text this in clipBoard"); this we can use for Text, but I am not sure for setting Images in ClipBoard or no.
    You can refer this
    http://www.flexets.com/show-image-from-clipboard

  • Which HttpClient class should I use for Universal apps?

    Hi,
    I am developing a Windows Universal app for Windows phone and WinRT in C# and I would like to know which HttpClient class should i use? Should I use the System.Net.HttpClient or Windows.Web.HttpClient?

    Because the System.Net.Http and System.Net.Http.Headers namespaces might not be available in future versions of Windows for use by Windows Store apps. It is stated in the official documentation on MSDN here:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn469431.aspx
    "Starting with Windows 8.1 and Windows Server 2012 R2, use Windows.Web.Http.HttpClient in the Windows.Web.Http namespace and the related Windows.Web.Http.Headers and Windows.Web.Http.Filters namespaces instead for Windows Store apps."
    And the Windows.Web.Http.HttpClient class is supported from Windows Phone 8.1, Windows 8.1 and Windows Server 2012 R2:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.web.http.httpclient.aspx
    Hope that helps.
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • Accessing view object class (impl) method from bean (or vice versa)

    Halo everyone, I am using JDeveloper 11.1.2.1.0
    I have a UsersViewImpl class with a method which refresh the user table like below.
    public void resetEmployeeSearch() {
    removeApplyViewCriteriaName("viewCriteria");
    executeQuery();
    and I have a UserBean class with a method which reset the search fields values like below.
    public void resetInput(ActionEvent actionEvent) {
    ........RichInputText = input ...
    input.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(searchForm);
    I would like to implement it in such a way that, once I press a button, both methods will be called.
    I have tried to call from bean method using UsersViewImpl vs = new UsersViewImpl ..... which is wrong and wont work.
    I have read about doing something like ViewObject vo = am.findViewObject("DeptView1") but I duno how to use it because I cant have a proper example.
    Any suggestion on accessing view object class (impl) method from bean (or vice versa)?
    Or is there any way to combine both method in the same class ?
    Thank you :(

    User, if you get class not found exceptions you need to tell us which classes you can't find. The JSFUtils and ADFUtils classes needing some other libraries which should already be part of your Fusion Web Application template (which your adf application should be based on). If you did not use this application template, you may have to add some libraries yourself.
    What is the diff of using the ADFUtils and OperationBinding way?
    The ADFUtils can get you access to the application module which you then use to call exposed methods on. The disadvantage of doing this is that you have to implement your own exception framework which then handles exceptions thrown by the application module. An other thing is that if you e.g. alter a VO which you use on the page this changes are not seen on the page until you refresh the page. The binding layer does not know about these changes so the iterators (which are used on the page to show the data) are not refreshed and so you don't see the changes.
    In general you should avoid using the application modul in a managed bean method and always use the binding layer (OperationBinding) to call methods. This ensures that exceptions are all handled the same way and that changes to the data model are reflected in the GUI.
    Timo

  • Attributes getters/setters not found in view object class

    Hi,
    I am using JDeveloper 10.1.3.4 and have a question about customizing display hints in the view object.
    In my application that is to be used by both the students and the administrative staff, I generated both the entity object and view objects for a table from the database. Some of the attributes need customized display format. For example, social security numbers in the datatable is 123456789. For the student users it needs to be displayed in the xxx-xx-6789 format. For staff users, it needs to be displayed in the 123-45-6789 format.
    Therefore I create two view objects from the same entity object, one for students and one for staff, each to have its own display format. To put the customization code in the attributes' getter methods, however, I found that in the view object class files the getter methods are not there. The entity object class file has the getters; however if customization is done there I will not have two different formats.
    What should for the getters to become available in the object class file so that I can customize them?
    Thanks a lot for helping!
    Newman

    Newman,
    Attribute getters would be on the view object ROW class.
    John

  • What classes should I use to send/receive bytes inmediately?

    What classes should I use to send/receive bytes inmediately? I mean, without using any buffers or whatever (I will implement this on my app), just the faster method.
    Is InputStream/OutputStream the lowest level choice?
    Thanks!

    Hi!
    Thank you very much for your help, I appreciate it a lot.
    While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
    EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
    By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
    Thanks a lot for your ideas and sorry for my English.
    Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

  • Which external hard drive should I use to save my iTunes library?

    Hi,
    So I have collected so much music and movies in iTunes that my internal HD is practically full.  (Library is over 500GB of 1TB and the rest is taken up with my apps and programs.)  It's time to purchase an external hard drive to transfer my library to.  Furthermore, I currently have a 2TB WD My Book for Mac that I am currently using for backup.  The My Book is also full and Time Machine is deleting the oldest backups to make room for the current ones.
    Here is where I need everyones advice.  I am planning on purchasing a 3TB WD My Book for Mac.  I am planning on purchasing more movies for iTunes.  Which external hard drive should I use for what?  Option A or B
    Option A:  Put my iTunes library on the 2TB external hard drive and use the 3TB for backup
    Option B:  Put my iTunes library on the 3TB external hard drive and continue to use the 2TB for backup
    Also please give me your reasoning.
    Thanks everyone for your responses!

    Limnos,
    So, let's go one step further with this.  I read your reply to moving iTunes library to an external hard drive: https://discussions.apple.com/thread/4594518?tstart=0  However, if I move the iTunes library, will this include all the movies and apps that I have purchased?
    Thanks!!!!

  • Which version of iPhoto should I use?

    When I picked up my repaired MacBook (Intel Core Duo) the person at the Apple Store showed me how to restore all of its data using my Time Machine backup.  He told me that during the repair they had installed Snow Leopard.  He had forgotten that I had told him when the MacBook first died we were told it was not worth repairing and we purchased a new MacBook Pro running Lion.  The TM backup was from that machine.  The intent was to have two machines with the same Apps & data so each of two users could take either machine and go forward from that point.  Each machine would then have its own TM Backup.
    After many discussions with tech support, almost everything except iPhoto (and incoming Apple Mail) on the MacBook works OK.  That's probably because during the restore, iPhoto 9.1.5 was installed.  It does not open because of a Frameworks conflict of some sort.  Earlier versions of iPhoto say the Library was created with a newer version.  (I temporarily moved the iPhoto Library out of my User>Pictures Folder, opened iPhoto 7.x and imported some photo's to create a new Library.  That worked.  My original Library is 35 GB so each attempt to fix anything in it has been time consuming.  That's why I'm asking the real experts.
    I've seen a suggestion from Terrance Devlin to "rebuild" the Library using the iPhoto Library Manager and others by Terrance, Neil, Old Toad, and Kappy to drag a different version of Frameworks into System>Library>?  (Apparently, some OS X 10.7 support files were loaded onto the MacBook.)  Which ones and which version?
    Which version of iPhoto should I use on the MacBook?  Which version does OS X 10.6.8 support?  Eventually, we'd also like to merge some of the individual Libraries into a shared Library.  Is iPhoto Library Manager the best way to do that?  (Speaking of that, I understand Apple does not support backup of non-Lion Mac's via Wi-Fi, except if using Time Capsule.  Seagate sells an external 2 TB Hard Drive that connects via ethernet to your Router, for that purpose.  Does it work well?)

    Terence,
    Below is a copy of the Problem Report I get after I double click the iPhoto (9.1.5) icon in my Applications folder.  Both iPhoto 6 and iPhoto 7 open but cannot read my iPhoto Library that was restored from a Lion TM backup.  I tried moving my iPhoto Library out of the Pictures folder and was able to create a new one using iPhoto 7.1.5.
    Inside of System>Library, there are two copies of the following folders:
    Frameworks
    PodcastProducer
    Keychains
    Java
    In each case, the name of the second folder includes "(from old Mac)" without the quotes after the folder name.  I believe my issue is being caused by the System using Frameworks instead of Frameworks (from old Mac), but I have not been able to switch them easily and, as you said, do not want to do serious damage.
    The only other thing that does not work properly is incoming IMAP mail via AOL and Google.  Outgoing works on those two plus Incoming and Outgoing work on the Verizon POP account.
    Here is the text from the Problem Report:
    Process:         iPhoto [1035]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-6150000~3
    App Item ID:     408981381
    App External ID: 3922231
    Code Type:       X86 (Native)
    Parent Process:  launchd [521]
    Date/Time:       2011-11-13 10:59:32.771 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          10637 sec
    Crashes Since Last Report:           55
    Per-App Crashes Since Last Report:   8
    Anonymous UUID:                      1FDBF6A3-E712-44D7-B3AE-E47827AADE51
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
      Referenced from: /System/Library/PrivateFrameworks/ProKit.framework/Versions/A/ProKit
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4163b  dyld 132.1 (???) <4CDE4F04-0DD6-224E-ACE5-3C06E169A801> /usr/lib/dyld
    Model: MacBook1,1, BootROM MB11.0061.B03, 2 processors, Intel Core Duo, 2 GHz, 2 GB, SMC 1.4f12
    Graphics: Intel GMA 950, GMA 950, Built-In, spdisplays_integrated_vram
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x86), Atheros 5424: 2.1.14.6
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: TOSHIBA MK3252GSX, 298.09 GB
    Parallel ATA Device: MATSHITADVD-R   UJ-857, 7.24 GB
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8501, 0xfd400000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0217, 0x1d200000 / 2
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8240, 0x5d200000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8205, 0x7d100000 / 2

  • Which kind of printer should i use?

    my pc is power macintosh G3
    333MHZ 128MB .9GB 24X CD/6VR
    model no. M4405
    which kind of printers should i use?
    plz give me name , number and all the details about printer...
    can you send the answer of my qu. at ([email protected])
    thanks alot

    power horse,
    You are in the Powerbook Discussions. Please post your question here:
    http://discussions.apple.com/category.jspa?categoryID=105
    Select the appropriate Power Mac G3 Discussion.

  • Which kind of printers should i use?

    my pc is power macintosh G3
    333MHZ 128MB .9GB 24X CD/6VR
    model no. M4405
    which kind of printers should i use?
    plz give me name , number and all the details about printer...
    i have desk writer printer no.550c which kinds of pc
    can connect with??????
    can you send the answer of my qu. at ([email protected])
    thanks alot

    get a pci usb card and just find any newer printer that has drivers for os9

  • Which kind of software should I use?

     This morning, my Windows operating system suddenly crashed and can not boot normally. So, I tried to restart computer through
    restoring Windows with Ghost. However, after restoring Windows operating system, I found all non-system partitions are lost because of mistaken operations. I want to recover lost partitions.
    Which kind of software should I use?

    generally, different methods should be adopted in different situations. If users have made backup, they can restore lost
    partitions with the help of partition backup. Nevertheless, since many Windows users are not used to backing up common partitions,
    they should select partition recovery software if they want to recover lost partitions easily and safely. However, there
    is a large amount of partition recovery software which has serious defects in function. Once we use this kind of partition recovery software to recover lost partitions, we are very likely to suffer Windows partition recovery failure. More seriously, lost partition
    may be damaged heavily, bringing great trouble. In order to help users avoid downloading partition recovery software which
    has serious defects, we suggest usingMiniTool Partition Recovery.

  • Mixing a playlist in Garage Band - which "new project" template should I use?

    If I use "podcast" it gives me some unnecessary options, such as male/female track.
    If I just want to mix some tracks from a playlist in itunes, which new project template should I use?
    Thank you.

    Hello Jerry,
    to insert something right into the middle of a mix I like to use the Arrangement Track:
         Track -> Show Arrangement Track (or Shift-⌘-A)
    By clicking the "+" you can mark sections of your arrangement and adjust the size of the sections by dragging the ends. In this example I marked two sections "Part 1" and "Part 2", and a third section "insert" to be inserted right in the middle between my first sections. You then can drag the "insert" section in the arrangement track between the other two parts, and all tracks with all Automations will move along.
    This is very convenient, if you have several tracks with automations added. If you only have one track without any automations it might suffice to simply select the regions behind the insertion point and to shift them to the right to be able to insert the missing region.
    Good Luck
    Léonie

  • CCMS is used for system monitoring , why should we use solution manage ?

    CCMS is used for system monitoring , why should we use solution manage ?
    Whats the relationship between CCMS system and SolMan?
    Thank you .

    hi,
    I just want to ask a question. At our client we have solution manager and CCMS. There is data in CCMS I can extract, it is loading on BW side ok the same number of recs,  but the problem on CCMS cubes says there are the same number of record in the cube and also showing as the data is ready for the reporting. But when I run the report and view the data as listcube it is empty. 
    ANy of you have the situation like this cube say it has the data but when do th BEX or infocube contents the cube is empty nothing in there. The same thing is happening with hourly, 15 minute and daily cubes.
    Anyhelp on this matter is appreciated

  • Finding Application Module name in read-only view object classes

    Hi all,
    I have a fairly basic question about finding application module name when we are coding in ViewObject java classes.
    I want to know how can I obtain <<application module>> NAME that our current view object is contained in it at run-time. I think there should be a way to find current application module NAME, when we are in ViewObject classes including View Object, View Row or view object definition classes (I've overridden all mentioned classes).
    I should notify that since our view object is read-only I may not count on view object's entity classes, coz as you know a read-only view object don't have any entity in it!
    So, if you have any idea about finding current application module name in view object java classes please let me know.
    Appreciate for your replies,
    Nasser

    Thanks guy, it was helpful:)
    Now i can access application module name through viewObject classes.
    But another question is raised...sorry if i m boring:( I promise its the final question ;)
    Is there a way to get application module name in an extended version of JboException class?
    Thanks again for your reply:)
    Nasser

  • Which C# Adobe library should I use to open a PDF in Acrobat Reader 9, 10, and 11?

    Hi, all.
    I have a Visual Studio C# application that writes an Adobe PDF using iText. Does anyone know how to programmatically open the PDF on client's computer and ensure it works for Adobe Reader 9, 10, and 11?
    -I have Adobe Reader XI on my machine and "Adobe Pdf Reader" is NOT showing up in my COM references. This is the library that I've heard people use for this.
    -The "Adobe Reader File Preview Type Library" is showing up there, but does not add to my project because of the following error message: "A reference to 'Adobe Reader File Preview Type Library' could not be added. Could not register the ActiveX type library....adoberfp.dll'." But I haven't persued this further becuase I'm not even convinced I should be using this library, which brings me to my next point:
    -Please don't tell me to go read the Adobe SDK spec. In searching for this answer, I found posts on here with people asking this question and getting not great answers, or half-*** answers to go read the Adobe SDK spec. I have the Adobe SDK spec, it's terrible. The example source code is laughably poor and reads like it was written by someone with bad english, with poor naming, commenting, and documentation, and there is no separate document that explains what the source code does. I think the reason people say this is because they haven't read it themselves and they don't know the answer and hope to deal with the question by handwaving. Sorry for the rant if you weren't going to do that!
    Thanks in advance, if anyone knows.
    -Brandon

    It will be from a client-side application, and I will be reviewing this further and get back on it. At this time my assembly isn't the correct type of 32-bit, which may be a deal-breaker. But downgrading it to 32-bit, I wasn't able to find or include the appropriate library for AXAcroPDF.
    Just a word about my trying to read the SDK documentation. The documentation folder has 5 items, a folder called "Javascript", an html file caled "Acrobat_11_SDK_Help_Shortcut.html", a zip file called "...HTMLHelp.zip," pdf_reference.pdf, and U3DElements.pdf. I've never heard of U3DElements, so surely that isn't meant for me. The pdf_reference.pdf, when opened, has three PDF links to two supplements to ISO 32000-1 and a document titled Document management. These describe the PDF spec, so that's not for me. So I must have to use the HTML documentation shortcut. I open it, and my browser says the redirect URL can't be found. Ah, may be that stuff in the ZIP file it's referencing. After unzipping it, you have to move the file around so that it actually references the right index.html inside the unzipped folders, and then even after this it loads up as two blank frames in my browser. I will look into why the links are all dead, but holy lord, this is just not very helpful at all.
    Thanks for your help, Test Screen Name.

Maybe you are looking for

  • Primary key in fact/Dimention/SID table?

    Hello sap gurus, 2 Questions.... Which is primary key in -Fact table (probably answer is .... combination of DIM_ID keys) -Dimention table ( probably answer is .... DIM_ID key) -SID table ( probably answer is .... SID_ID key) Thnx in advance

  • No procedure/function decomposition in packages in Rel 2

    I noticed that one of the changes since the last release was: "View Package Spec and Body - now decompose to display procedures and functions " I tried doing this in Rel 2 but there is still no decomposition of procedures/functions.Maybe I have misun

  • JR1 TXJCD not picking up Plant

    I have a sales order with a incoterm of Origin but the JR1 is till using the TXJCD from the customer shipto and not the plant. Any help will be rewarded. Thanks Richard

  • Creating sapscript from a standard sapscript - need suggestions

    Hi, I am currently working on a settlement form. There is a standard invoice settlement with the following details: - SAPscript - MR_PRINT - Program - RM08NAST - Entry Routine - ENTRY_KONS My task is to create a new SAPscript, which will have a diffe

  • Programming Java Games  script online internet

    Hi I want to programming Java script Games The direct Internet Where can play more than one direct Internet Such site Www.koutbo6.com I want multiple games every game of the room where special Java I want to open a Web site for integrated Games I not