SelectOneListBox works with Customer Converter Problem

I am keeping getting validation error when I try to convert SelectOneListBox String value to Name class which contains FirstName and LastName components.
here is what I did:
1. SelectOneList has two String items , I assigned the SelectOneList value to Name backend javabean, the source page code is:
<h:selectOneListbox styleClass="selectOneListbox" id="listbox1" value="#{pc_Test2View.name}">
<f:selectItem itemValue="Markus Sonnberg" itemLabel="Markus Sonnberg" />
<f:selectItem itemValue="Roland Paul" itemLabel="Roland Paul" />
</h:selectOneListbox>
2. The definition of Name java bean is:
public class Name implements Serializable{
     protected String firstName = null;
     protected String lastName= null;
get/set...()
3. Create the NameConverter class:
public Object getAsObject(FacesContext context, UIComponent component, String value) {     
          Name name = new Name();
          System.out.println("..... before value: " + value);
          String[] nameComps = value.split(" ");
          name.setFirstName(nameComps[0]);
          name.setLastName(nameComps[1]);
          System.out.println("1st component of name: "+name.getFirstName());
          System.out.println("2nd component of name: "+name.getLastName());
          return name;
public String getAsString(FacesContext arg0, UIComponent arg1, Object name) {
          return name.toString();
4. register NameConverter in faces-config.xml
<converter>
<converter-for-class>de.impire.javabean.Name</converter-for-class>     
<converter-class>de.impire.converter.NameConverter</converter-class>
</converter>
5. Run the JSF page, from the console, I saw NameConverter is invoked, but the process aborted due to validation error.
From cosole:
[05.06.06 14:34:55:234 CEST] 18637864 SystemOut O 1st component of name: Markus
[05.06.06 14:34:55:234 CEST] 18637864 SystemOut O 2nd component of name: Sonnberg
On the JSF page, I got :
Validation error: the value is not valid.
Some ideas?

Could it be that the code doesn't find any value in ZCURR_PM_T table for the specified input region?

Similar Messages

  • Can Actions Menu of Interactive Reports work with Custom Authentication?

    My testing is leading my to believe that Actions Menu do not work with Custom Authentication (but only work with APEX Authentication) in APEX 3.1.2? If that's true then is there a work around to this?
    Just to clarify, I've posted/asked this question twice before:
    1) Re: Actions Menu in Interactive Reports does not sort, filter, select cols etc
    2) Interactive Report actions don't work for users (i.e. for non-developers)
    But I've come to believe this is the main problem. I just don't know how to resolve/work around this?
    Thanks for any help.

    I haven't setup a sample because my custom authentication is using LDAP authentication. I'm not sure how I can replicate that on the samples server?
    I'm using LDAP authentication with a Page Sentry function. My further testing reveals that the Page Sentry function is setting the APEX variable user to NULL (ie blank) whenever there's any code in the Page Sentry function box. PL/SQL code as simple as
    BEGIN return TRUE; END;
    in the Page Sentry function box sets the "user" is set to <null>. When the Page sentry function box is left empty (no code specified) it sets the "user" properly after authentication against the specified LDAP directory.
    What all this has to do with Interactive Reports...
    It seems like when the user is NULL it messes-up Interactive Reports that are stored in the flows database. Although it shows the default report properly, but no runtime interactive actions (filtering, sorting, column break, etc.) work.
    Can someone please correct or confirm this?
    Thanks.

  • Discoverer Viewer/Plus does not work with Custom EUL owned by APPS user

    I am facing a unique issue with one of my customers. They have a custom EUL named XX_EUL_US and this does not allow connecting through discoverer viewer or discoverer plus.
    I have worked with custom EULS before at other customers and this was never the case. I am being told that this issue is happening as the EUL owner is APPS instead of some other user. Is this the case? Can discoverer viewer not be used with EULs owned by apps user?
    Please not that the Default EUL in ICX profiles is set to this EUL and no other EUL profiles are set.
    Appreciate any thoughts on this.

    Hi,
    I am not sure what you mean when you say you have a "custom EUL named XX_EUL_US". The EUL table should be created in a schema named XX_EUL_US. This will then be the EUL owner. You will then need to connect to Discoverer Administrator as the EUL owner and grant privileges to Apps users and/or responsibilities.
    The user should then be able to connect to Discoverer Plus/View using their apps username, responsibility and password.
    To be able to connect directly from an apps menu you need to have the ICX parameters set correctly. The ICX: Discoverer Default End User Layer Schema Prefix should be set to XX_EUL (without the _US). The ICX: Discoverer End User Layer Language Override should be set to US or not set at all.
    Rod West

  • My ipod sounds as if it has interference when on docking station.....3 other apple devices work with no such problem...i.e nano ,classic and 2x separate iphones, with no problems .I have been given a 2nd ipod touch replacement, it plays with interference

    ipod problems
    My ipod sounds as if it has interference when on docking station....3 other apple devices work with no such problems, i.e a nano. a classic and 2 separate iphones    so the problem doesn't seem to be the docking station...I have been given 2 reolacement ipods and the sound persists....it is obviously the connection.....as before downloading any data on the new ipod I docked it and the noise was present ....mairiskye....

    - Is it a 4G iPod? That model sometimes mates poorly with dock because the configuration of the iPod by the dock connector is different that other devices. Thus, make sure it is fulld/seated in the dock.
    - Have you brought the iPod and dock to the Genius at the an Apple store.

  • Anyone worked with customizing the requisition account generator workflow?

    Has anyone worked with customizing the requisition account generator workflow?
    please let me know
    I need help asap.
    thanks

    Hi Malla,
    Solution here:
    http://garethroberts.blogspot.com/2007/08/gl-account-code-combinations-on-fly-key.html
    Regards,
    Gareth

  • Adobe forms work with custom Z transactions?

    Hi everybody,
    Does anybody know if the Adobe interactive forms works with custom Z transaction?

    Hi Bertrand,
                 Me too need the sample code could u send me to this [email protected]
    Thnx,
    Vishnu

  • Is there a Simple Way to Reformat  Database Text with Custom Converter?

    When a database column contains a string, often the string may be stored in the database in a form that may not be suitable for viewing by the user. It is often interesting to show the user the string after it has been reformatted. Many things including phone numbers, product codes and various other application specific encodings fit into this category. The JSF Converter concept seems to be an ideal place to apply the reformatting via the application of a custom converter. In fact, many of the text books written on JSF refer to the JSF ability to support text reformatting using a custom converter. However, we have not been able to make it work in JSC2_1.
    For example, when a CachedRowSet Table Data Provider is used in a JSC2 application to show tabular data from a database, text columns from the database are automatically bound to StaticText components. Unfortunately, if the developer creates a custom converter and attaches it to the StaticText component, the converter is never called when the object to be converted is already of type String. If the object to be converted is a Date, CLOB or any other type the custom converter will be called - but not for type String. Thus the text is presented to the user directly as stored in the database witout the desired reformatting. The OutputText component on the other hand does appear to support custom converters but there is no possibility within the JSC2 IDE to substitute the OutputText component for the StaticText component in the CachedRowSet Table Data Provider.
    This situation appears to be inconsistent with the JSF specification. Does anyone know if this is a bug or a deliberate design decision or a misuse of the IDE on our part? Last question; has anyone come across a workaround?

    Try using "Examine Document" to remove the OCR output.
    Be well...

  • ADF wont work with custom LoginModule! Question for Mr. Nimphius!

    ive setup login module as shown in:
    http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm
    code:
    actionContext.getHttpServletRequest().isUserInRole("Administrators") works! but i also want this code to work in ADF:
    appmod.getSession().isUserInRole("Administrators")
    with default loginmodule "oracle.security.jazn.tools.Admintool" everything is ok! i can get roles in adf but with custom login module i cant!
    in ApplicationModule config i have setup
    jbo.security.config =
    jbo.security.context = oracle.security.jazn
    jbo.security.enforce = Must
    jbo.security.loginmodule = oracle.sample.dbloginmodule.DBTableLM.DBTableLoginModule
    please help!

    thank you very much for the reply!!!!
    i did what you told but no luck... :(((
    i still can not get user role from application module!
    this code:
    if (AppModule.getSession().isUserInRole("Administrators"))
    System.out.println("User is in role! ");
    simply does not work!
    ive tested on standallone oc4j, ive tested on embeded jdveloper 10.1.2.1 !
    i get NullPointerException at at oracle.jbo.server.security.jazn.JboJAZNUserManager.isUserInRole(JboJAZNUserManager.java:113)
    the thing is that i can use isUserInRole() from request but i can not from application modulle....
    ...ive lost hours in decompiling and tracking down ADF code just to realize that there is no way to use custom login module with ADF because the thing is hard coded to use xml or ldap..
    the only way i see how to solve the problem is to extend oracle.jbo.server.SessionImpl
    and override
    getUserRoles()
    and
    isUserInRole(String s)
    i can substitute session class with my own by setting
    SessionClass = oracle.jbo.server.ExtendedSessionImpl
    in file jboserver.properties (which is inside bc4jmt.jar)
    the easier way is to write my own function isUserInRole() in EntityImpl... i always can get user principal name with AppModule.getUserPrincipalName()
    what do you think?

  • BT848 TV not working with custom 2.6.22 kernel

    Hi,
    I installed a custom compiled 2.6.22 kernel (built the traditional way, using menuconfig in /usr/src/linux-2.6.22) but then tvtime could not work with my BT848 TV card (error message - "not a video4linux device" and "cannot open capture device /dev/video". The device is there and a simple video app. I wrote myself says:
    cyclops: Opened V4L2 device: /dev/v4l/video0
    cyclops: VIDIOC_QUERYCAP: error 25, Inappropriate ioctl for device
    The TV worked with kernel 2.6.21, although to listen to radio with gqradio I had to start tvtime first to get any sound. I double checked my config but can't see anything missing, I have compiled custom kernels many times and so I could say I am not inexperienced. I am using latest Arch x86-64 on an AMD Athlon 64 machine.
    Has anyone else experienced this problem?
    My thanks in advance!

    Hi,
    I installed a custom compiled 2.6.22 kernel (built the traditional way, using menuconfig in /usr/src/linux-2.6.22) but then tvtime could not work with my BT848 TV card (error message - "not a video4linux device" and "cannot open capture device /dev/video". The device is there and a simple video app. I wrote myself says:
    cyclops: Opened V4L2 device: /dev/v4l/video0
    cyclops: VIDIOC_QUERYCAP: error 25, Inappropriate ioctl for device
    The TV worked with kernel 2.6.21, although to listen to radio with gqradio I had to start tvtime first to get any sound. I double checked my config but can't see anything missing, I have compiled custom kernels many times and so I could say I am not inexperienced. I am using latest Arch x86-64 on an AMD Athlon 64 machine.
    Has anyone else experienced this problem?
    My thanks in advance!

  • JDev 9.0.3 - Working with Custom Tags Hangs JDev Repeatedly!

    All,
    I recently upgraded from JDev 9.0.2 to 9.0.3 because of the new support for JSP 1.2 and Servlets 2.3. As you probably know, JSP 1.2 includes additional support for custom tag development. Unfortunately, JDev 9.0.3 keeps hanging repeatedly when trying to work with a custom tag library. I have seen a couple other postings on this forum that indicate the fact that I'm not alone in this experience.
    It seems that I am able to open a taglib and make a modification, and then save the taglib without a problem. However, if I attempt to make any further changes to that taglib again without restarting JDev, it just hangs JDev and I have to kill the JDev process and restart JDev. This has made JDev extremely frustrating and unusable developing custom tags. I do not have this problem with JDev 9.0.2, but that version does not support the additionally tag library functionality of JSP 1.2, which is supported by 9.0.3.
    Is this a bug with 9.0.3? Does anyone know of a workaround I can try?
    Thanks in advance,
    Kyle Corley

    Hi,
    Logged as bug 2725712.
    Thanks,
    Brian
    JDev Team

  • Look Up function is not working with custom dictionary - How can I solve this?

    Hi everyone,
    I recently installed a Chinese-English dictionary known as 小词典 or Xiao CiDian using the .mpkg file that I downloaded from the website (here's a link: http://xiaocidian.com/). The dictionary package was added to the native Dictionary application on my Mac. When I go to the Dictionary application and search for Chinese words, there are no problems – results just come up as they should. The website claims that the Look Up function should work with this dictionary as well, and that I should be able to look up the definitions of any Chinese words that I come across (which makes sense, seeing as it's integrated into the native Dictionary application). The problem? It's not happening. I've tried all the ways that I have found to get to the Look Up pop-up dialog box – Ctrl-Cmd-D, right-click and the Lion three-finger double-tap gesture – but all that ever happens is that the dialog box comes up, saying "No results found". Does anyone know why this is happening? Should I try reinstalling the dictionary? Thanks in advance to anyone who can give some advice.

    If you don't get an answer here, you might want to search/ask in the Chinese Mac list:
    http://groups.google.com/group/chinesemac

  • Not able to work with customized Java roles which were edited in ABAP stack

    Hello All,
    I am trying to copy standard roles into customized roles (i.e. Z roles) using PFCG in XI system. All ABAP based roles are working fine, but all JAVA based roles are not working. I generated profiles as well. And I check all the authorization objects in both standard and customized roles. Everything look same but customized roles are not working.
    And when I check the logs on JAVA stack I found the error which says " User XXXXXXXXXX IP address HTTP request processing failed. HTTP error [403] will be returned. The error is [You are not authorized to view the requested resource.No details available]."
    I thought there might be any Jco RFC connections missing between the stacks and I tried to check in Visual Admin, but I was not able to find much info regarding these roles.
    Am I missing anything or is there any other way for these roles to make customized roles.
    And can any one tell me how to run a trace for JAVA stack activitites as we do in ABAP using ST01. Any help will be rewarded. Thanks in advance.
    Regards,
    Farooq.

    Java roles work with influence of permissions in Application Server which we call actions in UME. As you are aware in PI user master record will be in ABAP stack. So the roles in ABAP stack will be having only RFC connections to JAVA stack for the specific JAVA based role. So you need to edit the permission on Java App Server. For that you need to log on to server through visual admin and then go to services and you will find the standard groups assigned to actions. But I don’t remember that under which service you will find them
    Under that service you will find some 200 actions. And you have to add the name of the custom created JAVA roles on ABAP to all those actions where you find the standard roles. And its a very very lengthy procedure. So SAP advice to go for customized ABAP roles and Standard JAVA roles.
    Hope this answer clears your query.
    Farooq.

  • QTP doesn't work with custom SparkList ItemRenderer

    I am trying to support our QA department which uses QTP for automation testing. QTP is failing miserably at recognizing custom item renderers for Spark List (and DataGroup too). There is nothing special going on in the custom item renderer. There is a basic Group layout with some labels and buttons. I would like to be able to click on a button inside the item renderer; but, QTP sees the whole item renderer as a SparkListLabel. QTP is not able to recognize anything inside the item renderer.
    I know there are custom automation delegates that need to be created for some components; but this is basic layout inside an ItemRenderer. I would expect that to work with out creating custom automation classes to support it.

    Well the Hierarchy for 0GLACCEXT is designed in such a way ,am not sure how you have defined the custom hierarchy.
    For Insights you may wish to refer below-
    http://help.sap.com/saphelp_nw04/helpdata/en/04/7b95fb42b0f94aba334c0890dbbda4/content.htm
    The hierarchy for characteristic 0GLACCEXT is used as the financial statement version in BW queries. To technically enable the particular exception aggregation for contra items, the hierarchy table of characteristic 0GLACCEXT contains the attribute Balance-Dependency of a Hierarchy Node (technical name 0BAL_DEPEND).
    The attribute 0BAL_DEPEND can take three different values:
    ·         Normal aggregation on the hierarchy node of 0GLACCEXT(“ “, default value):
    The financial statement item is always either on the assets side or the liabilities side of the financial statement. This is the case for almost all financial statement items.
    ·         Aggregation on the hierarchy node for 0GLACCEXT is only performed if the balance is positive (“1”):
    First, the system determines the total for those financial statement items that are subordinate to the hierarchy node of 0GLACCEXT. If this total is positive, the subordinate financial statement items are aggregated on the hierarchy node of 0GLACEXT. If this total is negative, no aggregation occurs, and the values on the subordinate financial statement items are set to zero.
    ·         Aggregation on the hierarchy node of 0GLACCEXT is only performed if the balance is negative (“2”):
    The exception aggregation is performed in the same way as for case “1”, except that the +/- signs of the balance are reversed.
    Hope it Helps
    Chetan
    @CP..

  • Working with 2 displays problem

    Hi ,
    my system is :MacMini i7 , osx 10.9.3
    I work with 2 displys one is via HDMI the other with mini disply port .
    the problem is : i use the 2 displys as a deferent viewers not as a mirror displays .
    BUT i can see all my programs in the bottom of the BOTH displays !
    i can open them from both of displays ,
    also the top of both displays are the same view . the check box of the displays window is not in a mirror option !!
    any suggestions to fix that  ?
    thank you

    Humm... I'm not seeing that with Dual DVI monitors...?
    What does your Arrangement window look like in the Display Preferences...?
    You sure your not in Mirroring and using two different Spaces...? Check to make sure that Mirror Display is unchecked.
    Your not running any third party Menu Bar or Dock treatments, are you...?

  • Working with custom events

    I am trying to work with the EventDispatcher class to dispatch a custom event to stop a video from playing. The video plays inside a MovieClip with an attached class file called PlayerProfile. I want the video in the PlayerProfile MovieClip to stop playing when the user clicks on another MovieClip called ScrollBox. I'm getting no compile or runtime erros, but the code is not stopping the video. I have seen use of a public static constant to represent the custom event. Is that what I am missing here.
    Any help, as always, is much appreciated.
    Here is the code for the PlayerProfile MovieClip with relevant code in bold:
    package
        import flash.display.MovieClip;
        import gs.TweenLite;
        import flash.events.MouseEvent;  
        import flash.events.Event;
        public class PlayerProfile extends MovieClip
            public function PlayerProfile()
                this.ProfileButton_mc.buttonMode = true;
                this.StatisticsButton_mc.buttonMode = true;
                this.HomeButton_mc.buttonMode = true;
                this.VideoButton_mc.buttonMode = true;
                this.ProfileButton_mc.addEventListener(MouseEvent.CLICK, profileClickHandler);
                this.StatisticsButton_mc.addEventListener(MouseEvent.CLICK, statisticsClickHandler);
                this.HomeButton_mc.addEventListener(MouseEvent.CLICK, homeClickHandler);
                this.VideoButton_mc.addEventListener(MouseEvent.CLICK, videoClickHandler);
                TweenLite.from(this, .5, {alpha:0});
                //adds the listener to receive the stopVideo custom event
                this.addEventListener("stopVideo", stopVideoHandler);
           //method to stop the video
            private function stopVideoHandler(event:Event):void
                this.Video_mc.stop();
            private function profileClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                this.gotoAndStop("Profile");
                TweenLite.from(event.target, .5, {alpha:0});
            private function statisticsClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                this.gotoAndStop("Stats");
                TweenLite.from(event.target, .5, {alpha:0});
            private function homeClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                event.target.root.gotoAndStop("Home");
            private function videoClickHandler(event:MouseEvent):void
                this.gotoAndStop("Video");
                TweenLite.from(event.target, .5, {alpha:0});
    Here is the code on my Main Timeline that dispatches the event, again with relevant code in bold:
    stop();
    //adds listeners to call the profile functions
    this.ScrollBox.addEventListener(MouseEvent.CLICK, clickHandler);
    //functions to advance the movie to the profiles
    function clickHandler(event:MouseEvent):void
        gotoAndStop(event.target.name);
    //code to dispatch the custom event
    this.ScrollBox.addEventListener(MouseEvent.CLICK, stopVideoHandler);
    function stopVideoHandler(event:Event):void
        dispatchEvent(new Event("stopVideo"));

    you have a scope issue.   your PlayerProfile instance is listening for that custom event.  your PlayerProfile instance must dispatch that event for the listener to detect it.  ie, if pp is your PlayerProfile instance on your main timeline, use:
    pp.dispatchEvent(new Event("stopVideo"));

Maybe you are looking for