Casting and radio select : conversion error

I'd like to display radio options differently, regarding of their type.
For example I have an OpenOption class which extends Option. So when I display it I'd like to add an input text box if the user select an open option :
                         <h:selectOneRadio value="#{q.answer}">
                             <s:selectItems value="#{q.target.options}" var="opt" label="#{opt.text}" />                       
                             <a:support event="onchange" reRender="pnlOpenText"/>
                         </h:selectOneRadio>                         
                         <a:outputPanel id="pnlOpenText">
                                 <h:panelGroup id="innerPnlOpenText" rendered="#{q.answer.class.simpleName eq 'OpenOption'}">
                                   <h:outputText value="#{q.answer.freeTextLabel}"/>&#160;
                                   <h:inputText value="#{q.freeText}" size="50"/>                                   </h:panelGroup>
                         </a:outputPanel>I use the following EL expression to test the type of the selected option :
#{q.answer.class.simpleName eq 'OpenOption'}It works well BUT if I select the open option and refresh the page, the RadioRenderer fail when trying to convert ALL the options into OpenOption :
Cannot convert Option[ id=null, text=Q1, rank=0 ] of type class Option to class OpenOptionFor the time being I see only one solution : put a type attribute in my Option class ... I believe this is not the best design.
Is there any other workaround ?
Would it be possible to have a renderer which doesnt infer the options type from the selected option but individually for each option ? I don't know anything about the spec ...
Thanks,
Bruno

Java is case sensitive language after all , plus beans getters and setters naming rules :)
SetConfirmClaim
must be
setConfirmClaim
It raises a question though whether more exact error reporting is achievable , not just "Conversion error has occured".

Similar Messages

  • Unable to convert pdf to any other format. Tried cloud as well as acrobat reader. Reader error message "unable to contact service" and Cloud message "conversion error". I tried multiple pdf documents and checked security settings on all of them. Help Plea

    nable to convert pdf to any other format. Tried cloud as well as acrobat reader. Reader error message "unable to contact service" and Cloud message "conversion error". I tried multiple pdf documents and checked security settings on all of them. Help Please!

    Hi skydivingsnowman,
    I'm sorry you're having such trouble using the ExportPDF service. What browser are you using?
    Please try clearing your browser cache, or using a different browser (here's a list of supported browsers:   http://www.adobe.com/acom/systemreqs/.
    Please let me know if that works.
    Best,
    Sara

  • JHS and JSF Validation Conversion Error Customizations

    Hello
    Have JHS done any work about JSF validation or conversion error customizations?
    I mean the error messages such as "lablename:"value mus be entered etc.
    What can i do if i want to globally customize and localize this error messages.
    I have copied the key such as "javax.faces.component.UIInput.REQUIRED" in my appdeff resource bundle but JHS (or maybe ADF) gives own message yet.
    I Apologize if my problem don't depend on JHS. I wonder that JHS overrided JSF default messages.
    Thank You

    JHeadstart does not use any JSF standard message.
    JHeadstart uses ADF Faces which comes with its own bundle of error messages.
    Please use the JDeveloper forum for instructions on modifying ADF Faces error messages.
    Steven Davelaar,
    JHeadstart Team.

  • 5th gen and radio remote sync error

    I've had this ipod since 2006,Since April 2009 I have been using the radio remote to replace the fact that the earphone dock was damaged in December of 2008.
    Yesterday I plugged in my i-pod to add more songs and first a firmware error appeared which lasted about 5 minutes and went away after a while but then when I went to plug up the radio and the headphones; the radio remote takes control of the volume even when it is disabled. No matter how many time I plug and unplug it's as if the radio will auto turn my ipod on; control the volume setting and start a song.
    Can this be fixed manually or will I have to get a new ipod? :[

    yes, you can, i've used the radio remote (model MA070G/A) with my 2nd gen nano
    but i don't use it any more, because i got one of these...
    http://www.blueye.co.uk/
    http://www.gear4store.com/productdetails.php?&productsid=237
    it costs a bit more than the radio remote, but...
    turns your ipod into a bluetooth hands-free for your mobile phone, when the phone rings the ipod is paused and you push the button on the remote to take the call via your earphones (the microphone is in the remote)
    seems to give better fm reception than the apple remote (finds more stations), no rds though and the tuning isn't as slick as apple's
    has its own amplifier so you can get a useful volume boost on an eu volume-limited ipod

  • Rounding Differences between TSQL Cast and Data Conversion component

    This is using SSIS 2012.  We are using an Ole Db Connection manager using the Microsoft.ACE.OLEDB.12.0 provider.
    I have an Access database (accdb). It has several columns that are coming into SSIS as real data types.  One column has a value of 68.8335558900872.
    In the past we used the Data Conversion to convert from real to numeric 18, 6.  The result was 68.833555.  Rather than rounding on the last decimal place, it is returning the floor at six decimal places.
    We have converted the process to load the data into a real data type column and then use a view to cast the value to a Decimal 18,6 (CAST (Col1 as Decimal(18,6))).  We then load the data into a decimal 18,6 column.  The result is 68.833556, which
    is the rounded version of the real value.
    Personally I prefer the rounded version rather than the truncated version.
    I am trying to explain to explain to the QA people why the revised process is producing different results and thus I want to know if these are known behaviors for TSQL Cast and the Data Conversion component.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

    I think such a post is more suitable for an MS Connect bugs section as I see it a defect. And it seems no floor, but simply cutting off. Try in .Net when you convert, does it work the same? Data Conversion is a wrapper around the .net
    Arthur My Blog

  • Conversion error in checkboxgroup component.....

    hi
    i have a checkboxgroup component. first time when i go this particular page no validation error occurs. but when i go to a different page and return back conversion error occurs in that component.
    getSubmittedValue() method for that component returns some value when error occurs.
    can anyone give some suggestions to resolve the error. or suggestions on the value to be converted for checkboxgroup

    the actual code is
    <cg:checkboxGroup binding="#{view$UsersSMSReport.action_chkbxgrp}" columns="1" id="action_chkbxgrp" style="width: 100%;"/>
    <cg:message binding="#{view$UsersSMSReport.action_msg}" for="action_chkbxgrp" id="action_msg"/>
    where cg is the our own tag discriptor file
    we use jsp-api.jar and jstl.jar for customization of components.
    the taglib file for this tag refers to class
    CGCheckboxGroupTag extends UIComponentTag
    the setProperties method in above class contains code for convertor
    if(converter != null)
    if(isValueReference(converter))
    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(converter);
    component.setValueBinding("converter", vb);
    } else
    javax.faces.convert.Converter _converter = FacesContext.getCurrentInstance().getApplication().createConverter(converter);
    component.getAttributes().put("converter", converter);
    the design time class for this component is
    CGCheckboxGroupBeanInfoBase extends SimpleBeanInfo
    they are compiled into a tld file and added as complib file in project
    the same component sometimes i get conversion error in validation phase and sometimes i get error in page displaying
    java.lang.NullPointerException
    ClassName:com.sun.rave.web.ui.util.ConversionUtilities
    FileName ConversionUtilities.java
    MethodName: convertValueToArray

  • Conversion error: Radio Button

    What is a radio button trying to convert? When I write a customer conversion to change my value from Integer to String and from String to Integer, the Conversion Error goes away, but then it complains about a Validation Error.

    The answer to both of your questions is the SelectItem value.
    Can you explain what you mean by filtering? What exactly is happening there? Code/JSP snippets will help.
    The validation error is probably something along the lines of "Value is required" right? Do you have required="true" on the radio list tag? Irregardless, I have found that even if you have required="false" on the selectOneRadio it will still require a value. So if all your values are being stripped away by this filter, than depending on when your filter ran, JSF will think the user didn't enter anything and throw a validation error. I guess JSF radio lists just assume the user has to enter something.
    CowKing

  • I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on all my tunes and each one I select ends up with a "?"

    I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on each tune I select and a "?" appears beside the song.  Does this sound familiar to anyone?

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • I am trying to print a fillable form.  It will not print and I get two error messages "document could not be printed" and "there were no pages selected to print."  Th latter is not true.  Won't print all, the page I am on, nor any series of pages inserted

    I am trying to print a fillable form - - an application for a Chinese visa.  It will not print and I get two error messages:  "document could not be printed" and   "there were no pages selected to print."  The latter is not true.  Won't print at all, the page I am on, nor any series of pages inserted.
    Am using a MAC desktop and a Cannon PIXMA MX922 printer.
    I need to print this form now that it is filled out?  What can I do? 

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • I have a new Macbook pro, I cannot get past the country selection screen.  'Continue' is greyed out and keys just make error sounds. How do I move it on?

    I have a new Macbook pro, I cannot get past the country selection screen.  'Continue' is greyed out and keys just make error sounds. How do I move it on?

    sideeque wrote:
    I have the same problem. What did you do last time?
    What  should I do now? Its around 40 miles away the apple store? Would they pay my taxi fare to go and return?
    How can we trust this apple product?
    You are still under warranty.  Call Apple Care.

  • Documents remain in GenWWW status and conversion error message says success

    Hi,
    I have instaled UCM 11.1.1.4 and the situation is that documents remains in GenWWW status, the
    conversion error message says success . In Ibr logs says everything went perfect, in UCM logs isn't recorded any error.
    Anyone have a clue to solve this problem?
    Update:
    When runnig IdcAnalyse appears the following error:
    ./IdcAnalyze -filesystem
    FileSystemFileStore:1.0.0.0 started.
    Content Management System Server. Version 11gR1-11.1.1.4.0-idcprod1-101229T001824
    Copyright (C) 1996-2011, Oracle and/or its affiliates. All rights reserved.
    Analyzing filesystem...
    .....................Error checking filesystem: Unable to locate extension for rendition flag 'L'.
    Is this error related with the documents remain in GenWWW?
    Thanks
    Edited by: carlos.pereira on Jul 26, 2011 4:58 PM
    Edited by: carlos.pereira on Jul 26, 2011 5:00 PM

    Usually this issue is seen when the IBR's cannot keep up with the load and after a defined amount of time, the refineryjobs entries are cleared while the IBR's might still hold this content item.
    If you do what Srinath proposes the refinery jobs is cleared as well as the queues on the IBR. This will not fix the issue with the documents in GenWWW, but it will make the way clear for (new) documents to be (Re-)submitted for conversion. IdcAnalyze should then be able to create a IdcCommand file with resubmit_for_conversion calls for all the documents in GenWWW state. Running this IdcCommand file should then convert all the documents that were "stuck" in GenWWW.

  • Cast and Concat functions error

    Hi
    I am getting below errors while doing cast and concat
    The error message is nQSError: 22020] Function Concat does not support non-text types.
    and my concat code is
    CAST (cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char) AS DATE )
    Error when tried it differently [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] .
    CAST (concat(cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char)) AS DATE )
    Please suggest.

    Hi,
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Here I have taken this part of the code from above code and started testing from answers
    CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    what I could make out is when I was casting it to date I was getting the error
    ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute:
    So When I have casted it to char and removed the year function from concatenation it worked out.
    With the same idea I have used this part of the code in my main code above but here char was not working out, so I need to use date and there were no compilation
    errors as it used to be before.
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' '
    FROM CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Now when I check results in reports. I get the error ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute
    The problem here happening is
    Core."Dim - Date"."Date" data type is DATETIME
    and the concat string whole date type is DATE.
    Its like datetime=date
    Since becuase of this mismatch I assume I am getting this error.
    So I thought of changing the data type of Core."Dim - Date"."Date" data type in rpd. Even though I checked out to do the changes I am unable to do though I login with
    Admin account.
    Secondly I thought of changing the concat string whole date type to DATETIME then I get the syntax error.
    Any help on this would be much appreciated.
    Thanks.
    Edited by: 949675 on May 7, 2013 5:33 AM

  • After loading the internet using Firefox AND then selecting NEWS and a delay the Error "The MSN toolbar has encountered an error. etc" occurs. Also, when browsing some searches are "REDIRECTED"!

    After loading the internet using Firefox AND then selecting NEWS and a delay the Error "The MSN toolbar has encountered an error. etc" occurs. Also, when browsing some searches are "REDIRECTED"!
    == This happened ==
    Every time Firefox opened
    == Hard to say but have been trying to diagnose for at least a week.

    Original message wouldnt post with attachments - trying again....
    Attachments:
    secondclickheredialog.jpg ‏40 KB
    FirstDialog.jpg ‏19 KB
    Firstclickheredialog.jpg ‏16 KB

  • Error 40505 and the select is correct

    Hi guys!
    I am experiencing the following problem:
    I'm trying to populate a block using a view, the view name is ADMIN_V_DOC,
    then i do an execute query and the error is 40505, but i get the :SYSTEM.LAST_QUERY and the select works in the toad...
    may someone help me?
    thx in advance!!!

    How about putting the contents of system.last_query on here : there must be something wrong somewhere.
    With the shift-F1 problem : I've had that in the past but at the momwent us a different key mapping so it works. You could always swap the key mapping over (the files are in forms home and called something like frmusw.res)

  • When selected preference advance style sheet to zoom. Cheak box and radio looks odd.

    In safari 8. After updated OS X to Yosemite. When set preference>advance>style sheet to xxx.css.
    In xxx.css contain :
    body {
    zoom: 110%;
    Safari will show checkbox and radio box in all website distortion. As shown below.
    Cheak box looks odd and invisible radio box.
    Please, tell me. What caused it Or is it a BUG.
    Thank You.

    Does anyone have a problem it?

Maybe you are looking for

  • Creating an app for different screen resolutions/sizes

    Hi I'm currently in the process of learning application development for the iPhone and could do with some help on how to cater for retina and non-retina screens. I want to create image assets for each screen type. What the best way to go about detect

  • Some serialization confusions........please help

    confusion 1: import java.io.*; public class SerializeDog { public static void main(String[] args) { Collar c = new Collar(3); Dog d = new Dog(c, 5); System.out.println("before: collar size is "+ d.getCollar().getCollarSize()); try { FileOutputStream

  • T&E postings with multiple vendor

    Hi gurus , there is a scenario for T&E postings as Journal Entries :-   SAP system will be recieving a file in the following format  from a thrid party tool---> One Journal Entry :- Company Code   Cost Center   GLAccount   Assignment   Text   Debit A

  • EPMA Automation - Update Attribute

    I am presently using EPMA 11.1.1.3 and wanted to elicit views on the below : Is there an automated way through which the dimension attributes can be updated during the run time. Or can the task of updating Attributes be performed only by EPMA Adminis

  • Repeat transportorder confirmation - update delivery notes

    Hello everyone, Transport orders (WM) - based on delivery's - have been created and were confirmed. Unfortunately the corresponding update of delivery notes failed. (e.g. VBFA, LIPS not updeated). We are searching desperately for a solution to redo t