I need a simple Converter for a selectBooleanCheckbox.

Hi,
Can someone tell me how to build a simple converter to go from a selectBooleanCheckbox value to a String and back.
I save a String ("Y" or "N") in my table but the checkbox returns a boolean. I need a Converter to do the conversion from TRUE to "Y" and FALSE to "N". Should be easy to do but as of now, mine won't even execute properly.
I get a
javax.servlet.ServletException: javax.servlet.jsp.JspException: Can't instantiate class: 'ca.sshrc.web.common.converters.BooleanConverterYn'.
I don't understand how getAsObject and getAsString work I guess.
Thanks

Hi,
Has anyone been able to make the converter for "<h:selectBooleanCheckBox>" work??
seems like the converter method itself is not getting invoked.
this is what i am trying to do..
Code in jsp is
<h:selectBooleanCheckbox id="testCheckBox" value="#{myBean.testCheckBox}" >
     <f:converter converterId="booleanConverter" />     
</h:selectBooleanCheckbox>entry in faces-config is
<converter>          
       <converter-id>booleanConverter</converter-id>                  <converter-class>package.MyBooleanConverter</converter-class>
  </converter>class MyBooleanConverter looks like this at the moment
public class MyBooleanConverter implements Converter {
     public Object getAsObject(FacesContext context, UIComponent component, String value) {
          myBooleanClass myBoolean = new myBooleanClass(value);
          return myBoolean;
     public String getAsString(FacesContext context, UIComponent component, Object value) {
          return value.toString();
}     Have kept myBooleanClass as a simple wrapper for the Boolean class.
Same is working for string and integer but not in this case..
Am i going wrong somewhere... kindly help

Similar Messages

  • Do I need a power converter for my ipad in Ireland?

    Do I need a power converter for my ipad2 and my macbook air (11 inch 2010) in Ireland?
    Sorry, I'm new to this site and just found the answer to my question in another post.

    I was on my way out earlier and didn't have time to see if easily bought in USA, but I also would have suggested a power strip for the UK. Also, not aware of Picachu's needs - if traveling with others, etc., ...
    For many years, once our sons got ipods, I have always brought a power strip (w/usb) on vacations and even on long weekends to weddings for all the items I listed above plus rechargeable tooth brushes, beard trimmers, and two ipads. It has made recharging so much easier. (I have friends in similar situations who hadn't thought to bring a power strip for charging things for their family all at once overnight.)
    So thanks for bringing it up. Meanwhile, Picachu got an answer early and without having checked 'get e-mail notif.' he/she might not have a clue. Still happy you brought it up.
    Thanks.

  • I have an iPhone4.  Do I need a voltage converter for charging when traveling to countries using 220/240V?

    I have an iPhone4.  Do I need a voltage converter for charging when traveling to countries using 220/240V?

    No. All Apple power supplies are "universal". They will work anywhere in the world. You just need a plug adapter.

  • Do i need a power converter for macbook in the philippines

    i was wondering if i needed a power converter to charge my macbook in the Philippines or do i just need the 3 to 2 prong adapter

    You only need a wall outlet plug adaptor.

  • Need a simple answer for simple question???

    simple question... what is the best way to export my fce movie and burn it on idvd for the best quality for genaral use ... sd..4x3 ratio tv.. lots of ken burn effects on photos... lots of sd video... ???
    not so simple answer... i have read manuals.. apple discussions.. etc etc my eyes are blurry.. i have been exporting out of fce to qk time movie, then import to idvd and burn..
    i get lots of wavy or jitter when doing kens burn effects on photos.. i have been told that 1 field must be missing.. and its better to take the qk time movie convert it again making sure hi quality is checked(movie properties 720 x 480) and self contained movie, then import to imovie ver 5.02 which has better codecs then to idvd ... an apple store tech said..
    then another apple store tech said...dv pro or dv stream or interlaced or on and on and on
    its not 16x9, or for the web or anything but simply burn it and give it to my grandma to play in a standard dvd player.. best quality.. period.. i know it won't any better than my source video but the wavy photos bother me..
    help

    The Apple store tech told you garbage. The quality will be the same. It's using the same QuickTime engine. There may be a difference because going through iMovie will go through a file conversion and the picture might be softened a little, which will mitigated this flicker you see.
    The wavy photos can be a lot of things, most likely due to the nature of the images themselves and the movements you've done on them. What often works on still images is to apply a one pixel vertical motion blur in an application like Photoshop or Elements. This helps to reduce interlace flicker on motion when the material is brought into a video editing application.

  • Labels created in appleworks need to be converted for printing shop

    I have about 100 labels to send to a printer but I am told that a graphic artist must redo these as they cannot be converted as quality would be mediocre if saved from Appleworks to pdf or Jpeg.  Does anyone know how the quality of each label can be good without going through the whole proces and cost of having each label redone?
    Thanks for your help.
    Dominique
    Montreal

    From the print dialog choose 'PDF' then 'Save as PDF' and see whether the resultant quality is good enough - its probably as good as you will ever get but a professional print shop may still turn their noses up at it.

  • Do I need a current converter for Europe?

    I just got my Nokia C2-01 today, with the power cord that fits US outlets. If I just use an adaptor in Europe, will it hurt the phone? Is it dual voltage? I can't find this information anywhere and will be traveling to France for several months. Thanks in advance!

    The Nokia Chargers are designed for Input voltage: 100-240V AC 50/60Hz .. so there should not be any problem...

  • Need a simple solution for snowflake

    Hello Experts,
    I have requirement where join between fact and dimension in physical layer is like below.
    Fact(F) >---- Dimension(1) >--- Dimension(2) >--- Dimension(3)
    How should we solve it in dimension, what will be LTS, and content of LTS.
    Please give your inputs. I have gone through some blogs but still looking for some advice.
    Thanks

    2 Options:
    When data is duplicated in all dims then use LTS ie if you expand source folder in BMM you should see all 3 tables as source
    If not duplicated then just add other 2 dims to Dimension(1) ie. Dimension(1) properties you should Map/add them
    If helps mark
    Thanks

  • Do I need a wattage converter from US to AU for my Macbook Pro?

    I am traveling to Australia. Will I need a wattage converter for my MacBook pro?
    Going from USA to Australia.
    Please Help and Thanks!

    "although you may need a plug adapter....I do not know what plug type is used in OZ"
    They have them on Amazon.com, not expensive a few dollars

  • Taking white MacBook from US to UK. Do I need a power converter?

    I recently purchased a white 13" MacBook for college, which is in the UK.
    Am I going to need a power converter for my MacBook when I go to the UK? The voltage in the US is 110V, and the voltage in the UK is 220V.
    Thanks!

    Your power adapter will work with 110 or 220 V. However, the actual 220 V socket is different. You'll need a little adapter that just converts the standard US outlet into the standard 220 V UK outlet. Apple sells a whole kit, but that's sort of overkill:
    http://store.apple.com/us/product/MB974ZM/A?fnode=MTY1NDEwMQ&mco=NjcxMjczMg
    I'm not sure which specific plug you would need. I'm sure someone here can chime on on which one would be appropriate then you can pick up just the plug you need vs. an entire kit.

  • Does my Macbook Air need a power converter in the UK?

    I am traveling to the UK soon - will I need a power converter for my MacBook Air, iPad and iPhone?
    thanks

    Input voltage for iPad and iPhone is same. 100 -240 Volts.
    You will need plug adapters for those power adapters.
    No converters are necessary.
    Certification Label:
    https://www.apple.com/power-adapters/

  • Simple way for run an application on a pc without OS (window,linux,...)?

    i need a simple pdf for a way for run an application  on a pc without OS (window,linux,...).

    Take a look here, and also note the related links i the bottom http://zone.ni.com/devzone/cda/tut/p/id/2733
    Then you are using Labview RT on a PC, a real time OS will be installed in the process. The OS is the PharLap, Real-Time OS . So you will indeed be using a OS 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Best Video Converter (for Mac) For Use With CS5

    I need a good converter for a Mac Pro so that I can easily bring in AVI i
    nto CS5.
    Thanks.

    What sort of "AVI" are you talking about? An AVI is just a container/box/dufflebag for all sorts of stuff; Macs and QuickTime will handle a number of codecs stored in an AVI container, but not everything. So ultimately, a Mac converter might not do you any good if there isn't a decoder available for the Mac. For example, Lagarith and Ut are two popular lossless codecs that write to AVIs, but there are no decoders for Mac, so the AVIs are unusable there.
    Another thing to consider is that, in all likelihood, if a converter can open up the AVI on the Mac, then Premiere will be able to import it without any other necessary changes. Get MediaInfo to analyze the file and discover what is inside of it. Once you know that, we can make better recommendations about how to treat the file.

  • I recently switched from years of PC to iMac ( OSX 10.7.5) and need to batch convert thousands of old WordPerfect files (many without an apparent file extension) into my new Microsoft 2011 Word.  I am a computer nitwit and am hoping for some simple sol'n.

    I recently switched from years of PC to iMac ( OSX 10.7.5) and need to batch convert thousands of old WordPerfect files (many without an apparent file extension) into my new Microsoft 2011 Word.  I am a computer nitwit and am hoping for some simple solution.

    Try reindexing the mailbox. This can take awhile if you have a lot of mail.
    Reindex messages.
    If that doesn't work try deleting MessageUidsAlreadyDownloaded3.
    Quit the application.
    You need to look in your user Library. Either hold down the option key while using the Finder “Go To Folder” command and select your user Library in your home folder or use the Finder “Go To Folder” command and enter ~/Library/Mail/V2/Mail Data/MessageUidsAlreadyDownloaded3.  Move the file to your desktop.
    Open the application and test. If it works okay, delete the file from the desktop.
    If the application is the same, return thefile to where you got it from, overwriting the newer ones.
    If you prefer to make your User library permanently visible, use the Terminal command found below.
    Show User Library
    You might want to bookmark the command. I had to use it again after I installed 10.8.5. I have also been informed that if you drag the user library to Finder it will remain visible.

  • 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?

Maybe you are looking for

  • Stock transport scheduling agreement SD Delivery

    Dear Experts. I am using stock transport scheduling agreement in order to show requirements from one plant to another plant belonging to the same company code. Delivery to the Stock Sched Agreem will be managed  thru the SD delivery processes. I use

  • ADS Patch after EP Patch doesn't work

    Hello, we had an EP6 SP15 with Adobe Document Service. Because of the WebDynpro Error we updated to SP16, also the ADS. But now the Adobe Document Service doesn't work. We get the exception: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeExcepti

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution. The problem, in a nutshell: I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error proble

  • File Browser Capibilities needed from CS gone in CS2

    Someone help me to figure out how to adape the Bridge to work like File Browser did in CS. I need to be able to see the image large (larger thumbnail), see the MetaData, then click on the photo to edit it or batch process it. All this disappearing be

  • Help-I want to move my stuff out of admin user account to a non-admin user account for security.  How can this be done?

    So... I have amassed loads of documents, videos, music, photos, etc. onto my MacBook Pro all under the admin user account I set up for myself.  I am the only one who uses the MacBook.  I now work virtually and am online at different free wifi spots,