Use of converter-for-class

Hello,
I start to use Jdev11 TP4.
I have written my own converter which performs "trims" on character fields. This converter works fine when I apply it to the adf input texts which are present on my jspx pages.
But I would like to apply this converter on all "adf input text" fields.
To do this I have added the following lines in my faces-config.xml files :
<converter>
<description>Trim the fields</description>
<display-name>FieldTrimer</display-name>
<converter-for-class>oracle.adf.view.rich.component.rich.input.RichInputText</converter-for-class>
<converter-class>lu.ehl.lp.converter.MyFieldTrimer</converter-class>
</converter>
The tag <converter-for-class> is always underlined in "red" saying that Reference to oracle.adf.view.rich.component.rich.input.RichInputText is not found.
And the input fields on my jspx pages are not trimed...
Could somebody help me to solve this problem ?

Hi,
please send me a testcase. Put the testcase in a zip and rename the zip to unzip. my mail address is in my profile
Frank

Similar Messages

  • Converter-for-class

    Is converter-for-class or any other "-for-class" attributes required to match against subclasses of the specified class, or just the class itself?
    It you specify converter-for-class as Object, is the converter required to apply to every subclass of Object (i.e. every class), or just to those properties with a runtime value of exactly Object?
    Thanks.

    Hello BalusC,
    thanks for reply. I'm definitely use JSF RI 1.2_13.
    The problem is, that the converter-method public String getAsString( FacesContext p_ctx, UIComponent p_comp, Object p_value ) is never called.
    But the other method public Object getAsObject( FacesContext p_ctx, UIComponent p_comp, String p_value ) is called.
    BalusC, which JSF implementation do you use?
    regards, Joerg

  • Converter Element - converter-for-class

    I assume a converter can be registered statically on a UI-Component, e.g. one can only remove the converter using java methods. In JSP code, one then does not have to add the converter each time.
    Again, the attribute and property elements confuse me. Can anyone explain the difference`?

    If you have not explicity registered a converter for a component, but you have declared a value binding expression for the "value" attribute, JavaServer Faces can examine the data type of your model data property and determine if it has a by-class converter that knows how to handle that data type. This is why, for example, you can simply point at an int property with your "value" attribute, and not have to specify an explicit converter.
    If you have explicitly specified a converter, or you did not use a value binding expression for the "value" attribute (so JavaServer Faces does not know what the model data type is), then no by-class converter is searched for.
    Craig McClanahan
    1

  • HT2729 Use videos converted for iPod Nano 5G for iPod Touch 4G?

    I have an iTunes library full of videos that work with my iPod Nano 5th generation. I was thinking if they would work with an iPod Touch 4th generation, which I have researched and seems that it would not need any converting, but what about the difference in screen size?

    Never mind I feel like an idiot posting that.

  • I am going to Italy and wonder if it is safe to use a converter for my AC charger on my new iPad, I am going to Italy and wonder if it is safe to use a converter for my AC charger on my new iPad

    An iPad 2 NOVICE

    Hello susie44,
    yes.
    Here is a sample product:
    http://www.bhphotovideo.com/c/product/580762-REG/Travel_Smart_by_Conair_NWG_11C_ NWG_11C_Grounded_Adapter_Plug.html
    Make sure your adapter fits Italy. Not all prongs in Europe are the same.
    You can also use a 12 volt portable charger in a rental car. Check with the rental
    car agency to make sure the car is 12 volt but I have not heard of 24 volt car
    electrical system in quite some time.
    Enjoy your holiday with your iPad in Italy,
    A

  • Use OBJCLASS object of Emigall for  Class & characteristics creation in FL

    Hi Fritz,
    Good day,
    I want to use OBJCLASS object of Emigall for
    Class and characteristics cration of Functional Location, The object is
    desiged for Equipment only,
    I read the document of this object which says
    that it can be modify to use for functional location as well by changing
    some rule, I tried by changing the field "Name of database table for
    object" from the standard which is made for DEVICE/EQUIPMENT
    I need your help to modify the rule to use this object for class and
    characterstic creation for Functional Location, the migration object field is set to Device
    which I want to change to FUNCLOC  but that field is not modifiable.
    Can you help me Fritz
    Regards,
    Robert

    Robert,
    Yes you are right. The following changes have to be made:
    HEADER-OBJECT_TYPE need to be set to IFLOT (Fixed Value or Transfer field rule)
    DATA-FIELD need to be set to TPLNR  (Fixed Value or Transfer field rule)
    DATA-VALUE need to be set to either CONNOBJ or DEVLOC (Via KSM field rule)
    Kind regards,
    Fritz

  • Video Converter for Zen SD S

    Hi all. I just bought a 4gb zen for my wife and I'm looking for a decent video converter, aside from the included Media browser one. The problem with that one is that it seems to automatically load the video onto the player (even after I unchecked the 'load to player' radio button), which isn't desired. I'd much prefer to keep the player filled with music, and load video onto an SD card separately.
    Anyone able to confirm a piece of software that works for the zen? I've tried a couple that output to WMV, but the player refuses to play them back. To confirm, video converted to WMV by the zen software (taken off the zen and then put onto the SD card) works fine.
    Any help is greatly appreciated!

    I own a ZV:M for myself for which I generally use DivX Converter for video, but the new Zen will only play WMV9 and MJPEG (something that a lot of digital cameras utilize... not so good for the Zen). Do WMV specific converter files from MovAVI Suite work for you, 'cause a DivX outputted file will definnitely not work for the new Zens.
    Thanks.

  • Custom converter for h:selectManyCheckbox, no getAsObject call

    Hello.
    I have a strange problem with my PersonConverter. This converter should convert object of type Person. Implementatin of these classes is not important. So I defined it to faces-config.xml:
    <converter>
      <converter-for-class>x.y.Person</converter-for-class>
      <converter-class>x.y.PersonConverter</converter-class>
    </converter>In my jsp page I have:
    <!-- List<Person> Bean.getSelectedPersons() -->
    <h:selectManyCheckbox id="xyz" value="#{bean.selectedPersons}">
      <!-- List<SelectItem> Bean.getPersons() -->
      <!-- SelectItem oneItem = new SelectItem(person, person[i].getName()) -->
    <f:selectItems value="#{products.persons}"/>
    <h:message for="xyz"/>
    </h:selectManyCheckbox>
    When I access this page I get requested result, eg. checkboxes with names. There are printlns in  getAsString() and getAsObject() so I see that getAsString() was called. However when I submit page I cannot see call to getAsObject() (eg. the println) and on page I get:Conversion Error setting value 'Thomas' for '#{bean.selectedPersons}'. (Assuming that I checked checkbox with label 'Thomas', If I don't check anything, there is '').
    What am I doing wrong please?
    I also tried giving the converter id and adding <f:converter id="personConverterId"/> between h:selectManyCheckbox tags, but it was same.
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks for your support.
    I found that #{bean.selectedPersons} evaluated to Set so I added selectedPersonsList property which just creates ArrayList from Set. This is pretty stupid, I'm sorry. Next time I'll look twice before posting.
    By the way, thanks for tutorials on your blog. It helped me a lot with understanding JSF.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • How to convert a .class file into .java file without .jad using DeJDecompil

    Hi all,
    I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
    If I get the .java file without error then I can process the rest of the functionality.
    Thanks in advance
    With kind Regs
    Satheesh.K

    Not so urgent today then!
    http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
    I'm still not going to help you to steal someone�s code.

  • Outlook Sync Error SOLVED - Multi-day repeating appointment cannot be converted for use on the Handheld...

    *UPDATE 1/23/2009 07:08 AM* This is a partial fix. I no longer think the Recurrence Range is the culprit. It seems the Time Zones features between Outlook & Palm are not cooperating. This explains why my 12 am events are syncing as 6 pm the day before; I live in GMT-6:00 so it's moving my events ahead by 6 hours. Another event I set for 1 pm in Outlook was changed to 7 am on my Treo. I am going to start over and recreate each event, this time setting the Time Zones, which I hadn't done before. I tested it out and it worked with a single event... let's see how long it lasts. I've also found that using 'No Time' on my Treo is not compatible with Outlook. It's better to set a time with 0 minutes duration.
    *UPDATE 1/23/2009 04:11 AM* This is a partial fix. My monthly and yearly problematic recurring events are now showing up at 6 pm the day before on my Treo, though my Outlook calendar is fine. I think this has to do with the Recurrence Range Start/End in Outlook, which is set automatically. If only there were a way to change this... 
    After a WHOLE LOTTA trial-and-error (like 3 days worth), I think I finally solved my OLERR:14-001 issue!
    Problem: Syncing Palm Treo 755p calendar with Outlook 2007
    Error Message (simplified):
    HotSync session completed with messages on [date] [time]
    HotSync session started on [date] [time], and completed in [0] seconds
    Outlook Calendar synchronization completed with messages
    Duration: [0] seconds
    Outlook Calendar
    The multi-day repeating appointment titled [event] beginning [date] [time] cannot be converted for use on the Handheld. Please divide the appointment up into single-days and re-synchronize.
     OLERR:14-0001
    - Desktop overwrite HH Sync
    Note: You will likely have several of these ‘Multi-day’ instances in your hotsync log (I had 58). You may want to change Calendar in hotsync to "Desktop overwrites Handheld" after you get this error, to avoid erasing events while you are fixing this issue. Otherwise, you may have to restore them from a backup copy (if you have one) and start over. You can switch back once you’re through.
    Solution: First, I tried this Palm KB Article: http://kb.palm.com/SRVS/NUA/launchKB.asp?c=31167. After this didn’t work for me… I did trial-and-error. I believe the problem is that each recurring event, which you set up as ‘All-day’, must be changed to have a duration of 0 minutes from within Outlook. I was able to change some events directly, but I found that some of the records had corrupted, and would just revert. My fool-proof solution was to recreate EVERY problematic event (yes, one-by-one) using the following steps:
    Open Outlook
    Go to your default calendar, where your events are synced
    In the top menu choose ‘View’ > ‘Current View’ > ‘Recurring Appointments’
    Open a ‘New Appointment’
    Enter subject and other options, such as Categorize, Importance, Time Zones, or Reminder
    Make sure starting and ending date & time are the EXACT same
    Select ‘Recurrence’ & choose your pattern
    I did not choose ‘No end date’ (hence the Palm article), but rather ‘End by:’ and typed in 2031, then pressed tab to auto-generate a suitable end date. I chose 2031 because that is last year my Treo’s calendar goes to. Click OK
    Repeat for every event in your error log, until you get a clean "Desktop overwrites Handheld" hotsync (Outlook should be closed when you sync)
    Switch Calendar in hotsync back to "Synchronize"
    Even though I still get the message OLERR14:001, my syncs are successful. Now I will give my Treo time to see if the issue returns later. Until then, happy Outlook syncing and good luck!
    Post relates to: Treo 755p (Sprint)
    Message Edited by akeaw3000 on 01-23-2009 04:11 AM
    Message Edited by akeaw3000 on 01-23-2009 07:08 AM

    hello,
    if all of your data is on the phone you can change the sync action to handhled overwrites desktop
    how to:
    open palm desktop software
    on the top left click on 'hotsync' and then 'custom'
    on the calendar conduit
    highlight it and click on 'change'
    then choose 'handhled overwrites desktop'
    hope this will help you
    Post relates to: Palm TX

  • Can an Oracle VM be converted for use in VMWare or VirtualBox?

    Does anyone know how to convert / export an Oracle VM for use in VMware Server or in VirtualBox? I've successfully converted VMware images to OVM and VirtualBox images to OVM, but I've not been able to figure out how to get an Oracle VM to convert for use in VMWare or in VirtualBox.
    -Dan
    Edited by: user723595 on Apr 16, 2010 4:10 PM

    The ovs-agent will recognize any strorage device on your VM server which:
    a) is unused and free of any partition, so basically a blank drive
    b) the drive must be recognized by the multipath daemon, so it must be present under /dev/mapper
    So basically, you can't throw in a big drive, partition it, install OVM on it and hope to use the remaining space for your storage pool, you will need the system to recognize at least two independent drives - how ever you going to achieve that is up to you, but the most easy way is to have indeed at least two separate drives installed.

  • What is the best converter for video files in mpeg, avi, wmv, mps, etc for imovie and what type of video files does the iMovie use? I recently purchased a MacBook Pro -version 10.10.1. I make movies, but the iMovie does not support my video files.

    What is the converter for video files, to use in the iMovie? My files are mpeg, wmv, mts, avi, etc.  I recently purchased a MacBook Pro - version 10.10.1.

    AppGeeker will do the job.

  • Used to convert all my videos into iPhone mp4 format using Any Video Converter - then add it to my iPhone 3GS. But last few days, I cant add video files to iTunes. and the iTunes doesnt even specify the reason except for that "files are not supported"

    Everyting was perfect earlier. Used to convert all my videos into iPhone mp4 format using Any Video Converter - then add it to my iPhone 3GS. But last few days, I cant add video files to iTunes. and the iTunes doesnt even specify the reason except for that "files are not supported"
    Everything is fine.
    -They are the right format
    -Quicktime is updated
    -I have tried simply dragging them into the 'movie' library
    -I have tried going to file<add file to library
    Nothing works, has anyone else had this problem and found a way around it?
    Any and all help appreciated.

    In addition to Mike's suggestions,  you only have 4GB of RAM and Mavericks does use more RAM than other versions. You may also want to look at the apps that startup on login and the possiblity of upgrading RAM.

  • Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some

    Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some headers and maps in this document are converted OK but the body text is garbled. I have tried converting to Docx, Doc and RTF with no success. I disabled OCR and it made no difference. What can I do please?
    Les

    Hi,
    Can you please provide me the file with which you are facing the issue.
    Thanks

Maybe you are looking for

  • Problem with strange border-colors on windows 2000

    On windows 2000, I have the problem, that my JButtons, JComboboxes and so on are rainbow-colord (if I do not set a special Border to theser Components). What can I do (if possible, I would not set explicit borders to all Components; and for Popups-Di

  • Just wanted to say Hi!

    Hello all, I am reletively new to IOS and not yet an owner of an I Device (i own an old Ipod Nano but I am sure that doesnt count) I am a long term Android user and still am so far. My upgrade is due later in the year (June/July ish) and have started

  • Can't highlight and delete or move large volumes of emails. Have to hold command to select multiple and click on each one ?

    I love being able to mass delete, mark as read or move emails but with Mountain Lion I now have to select each email individually and cannot just hold mouse and roll up and select in large volumes. I can select more than one only if holding down comm

  • Task in index page still undefined

    I tried switching the landing page and naming it index, that helped as far as loding the landing page as the index page. I copied and paste the php script to load the new index page with the login home left panel links one which is a log in and the o

  • SRM Cerification questions

    Hello SRM Folks, Good morning all. I need SRM  Certification Q and A. Appreciate your help. Have a Great Day. Regards Muthu