Custom components : contains other existing component

How do i write a component with the use of existing component, i mean i need a component in which user can enter his address information. so i need 2 or 3 textboxes, a combo etc,.
right now i doing this in my custom component class, but not working.
HtmlInputText address = new HtmlInputText();
address.setValue( "test address" );
context.getViewRoot().getChildren().add( address );
but my address field is not added.

You create a new component as a child of UIViewRoot.
But UIViewRoot's rendersChildren property is false;
that means encodeChildren method is not invoked.
Encodeing of other components under <f:view> is done by the corresponding
Tag Handler; whereas your new component has no corresponding one.
I think you should create a new component under some one
whose rendersChildren property is true (e.g. PanelGrid).

Similar Messages

  • Component Panel ( Design mode) loosing custom components

    Wonder if anyone else encounter this phenomenon?
    After placing custom Flash components ( compiled intoa SWC
    file) in the project's <Libs> directory, they are available
    and working in Source mode, but you can't see them in the custom
    Folder (In the Design Mode). Only after closing and opening the
    project they appear.
    However, they keep disappearing ( randomly) from the folder,
    and only after Open/Close project they reappear. Other custom
    components such as MXML modules behave ok.
    As far as the application these components work fine and are
    recognized by the compiler.
    I'm using Stand Alone, FB3 version 1201207; on WXP Sp2.
    ( Reported this as a bug
    http://bugs.adobe.com/jira/browse/FB-11554
    Did anyone else experienced this (similar) behavior ?

    Same problem here. Except I have even less luck getting it to
    consistently appear than you. Sometimes it works great, other times
    they vanish and nothing I can do to get them to return. MXML
    modules seem fine.. it's just with the Flash SWC files. Plus
    sometimes I have no visual indication in design view of the Flash
    module on my canvas, and other times it displays. (This is with no
    changes to the SWC file at all). But it always runs okay.

  • How to contain a sub-component in the module instead of containing it in the main application

    Hi,
    I've 3 files
    Appln.mxml (application file)  ----  contains main application
    component.mxml (component file)  ----  contains component
    module.mxml (module file)  -----  contains module
    Generally the 'component.mxml' file will get loaded into the 'Appln.mxml' file (i.e., 'Appln.mxml' file will contain the custom component files) and whereas module file will get loaded on-demand.
    So Now instead of containing the data of 'component.mxml' file in the 'Appln.mxml',  I want to contain 'component.mxml' file data in the 'module.mxml' file itself and load the 'component.mxml' when module is loaded on-demand but not when application is loaded. So can any one please suggest me how to do it?
    Thanks in advance..

    Theo--
    You can delete software components & versions from the IR in XI 2.0.  (We're on Service Pack 5, and I've done it to clean up our IR.)
    Here is the process:
    1. Delete all configuration and/or import objects from the SCV.  Don't forget the 2 fault data types that SAP automatically creates in every namespace.
    1a.  Activate all change lists?  I don't remember for certain if this is needed here; if it won't let you save the deleted namespaces in step 2, then do this first.
    2. Double-click on the Software Component Version so that it comes up in the right pane.  Click on the change/edit button.  Delete all the namespaces from the SCV.  Save.
    3. Activate all change lists.  (It won't let you delete the SCV if you have uncommitted changes.)
    4. Open the SCV again (if it's not still open).  On the menu at the top of the right pane, go to Software Component Version...Delete.  You may or may not have to activate changes again.
    If I remember right, the software component will disappear automatically with the deletion of the last version.
    Hope this helps!
    --Dan King
    Capgemini

  • Adding custom components on runtime

    Hi
    I have a bunch of custom components all on their own files I want to add on the fly, right now i  already included them into my mxml file but set their visibile to false. I don't want that.
    I want to be able to add them on the fly say if i click a button one of my custom component shows up?
    Thanks.

    hi,
        you can do this example you have a component with some name "myComponent.mxml"   you can call its constructer when you want it to appear in your application like for this component you can do
      var myComp:myComponent=new myComponent()
       then you can simply call your containers addChild method to add it to the displayList of your container and removeChild method when you dont need it anymore.
    if you want to add Components when the application has completed its loading then you should probbably save your component as separate module in order to load it in your application when you need it.

  • Issue with SSIS Custom Components - 64 bit SQL 2012

    Hello All,
    Our SSIS packages built on SQL 2008 R2 make use of some custom components. These custom components are installed as part of an MSI. The dll's are copied over to the Windows/assemble [GAC Folder] and also to the Program Files(x86)/SQL Server/110/DTS/* folder.
    The installation does not copy the dll's to the 64 bit program files folder.
    X:\Program Files\Microsoft SQL Server\110\DTS
    These packages are executed via SQL Agent jobs on a 64 bit SQL server and there does not seem be any issue.
    Now we are upgrading our servers to SQL 2012 and we have a new installer for the custom components as well. The new custom components use .NET Framework 4.0 and when installed the dll files get copied over to the Ms.NET 32 bit runtime GAC folder and also
    to the SQL Server DTS Folder in x86. The upgraded packages work only when we set the runtime mode to 32 bit. The packages successfully executes within the 32 bit dtexec utility, but when we try to run the same package using a 64 bit dtexec utility the
    process errors out with a component failed to load message. The package moves data between two SQL Server instances.
    The custom components have always been built for 32 bit runtime. I can run a older package through the dtexec utility (from the 64 bit folder in program files) and it does work without any issues. After the upgrade the package will only execute on
    a 32 bit utility. can someone help me understand this issue?
    Regards, Dinesh

    Thank you Arthur.
    i think we got the answer as well, as the .NET framework 3.0 installer copied the files over to the C:\windows assembly the dtexec utility [32 bit/64 bit] was able to load the components.
    Now with the new installer the files are copied to specific runtime gac folders as Arthur has mentioned. The 64  bit  utility does not find the dlls in the GAC whereas the 32 bit version will find them.
    Regards, Dinesh

  • Error while accessing application with custom components

    Hi experts,
    I have an application (HAP_MAIN_DOCUMENT) of component FPM_OIF_COMPONENT which uses a Webdynpro component with the same name (HAP_MAIN_DOCUMENT). This Webdynpro component (HAP_MAIN_DOCUMENT) uses 2 other components (HAP_DOCUMENT_BODY and HAP_DOCUMENT_HEADER).
    For my client requirement, i need to create the custom components by copying from standard components as the UI layout changes are quiet huge and not manageable with the enhancements. To accomodate this i have changed the standard configurations by replacing the standard web dynpro components with the custom ones copied. Apart fomr this there are no changes to the standard.
    While trying to access the application, i am getting the error as Null object reference. the details of the error is as below. Please advice.
    Portal Error
    Error when processing your request
    What has happened?
    The URL http://ddrsap12.dubal.domain:8001/sap/bc/webdynpro/sap/HAP_MAIN_DOCUMENT/ was not called due to an error.
    Note
    The following error text was processed in the system DSD : Access via 'NULL' object reference not possible.
    The error occurred on the application server ddrsap12_DSD_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: WDDOINIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT_CONTROLLER of program CL_WDR_INTERFACE_VIEW=========CP
    ST22 Dump Analysis
    Short text
        Access via 'NULL' object reference not possible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Information on where terminated
        Termination occurred in the ABAP program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP" -
         in "WDDOINIT".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 4640
        of the (Include) program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU".
        Termination occurred in a Web Dynpro application
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "WDDOINIT" "(METHOD)", but it was neither handled locally nor
         declared
        in the RAISING clause of its signature.
        The procedure is in program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP "; its source
         code begins in line
        4619 of the (Include program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU ".
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
          Name
       33 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU       4640
          CL_VW_HEADER_MAIN_CTR=>WDDOINIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       32 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU         70
          CLF_VW_HEADER_MAIN_CTR=>IF_WDR_VIEW_DELEGATE~WD_DO_INIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       31 METHOD       CL_WDR_DELEGATING_VIEW========CP    CL_WDR_DELEGATING_VIEW========CM003     3
          CL_WDR_DELEGATING_VIEW=>DO_INIT
       30 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM00Q     3
          CL_WDR_CONTROLLER=>INIT_CONTROLLER
       29 METHOD       CL_WDR_VIEW===================CP    CL_WDR_VIEW===================CM00K     5
          CL_WDR_VIEW=>INIT_CONTROLLER
       28 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       27 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
       26 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM005    23
          CL_WDR_VIEW_MANAGER=>BIND_ROOT
       25 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM00B    17
          CL_WDR_VIEW_MANAGER=>INIT
       24 METHOD       CL_WDR_INTERFACE_VIEW=========CP    CL_WDR_INTERFACE_VIEW=========CM004    11
          CL_WDR_INTERFACE_VIEW=>INIT_CONTROLLER
       23 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       22 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
    Thanks in advance,
    Regards,
    Ravi.

    Hi ,
    How are you able to configure Custom Web dynpro application to Appraisal document instead of HAP_MAIN_DOCUMENT. could you please share the steps. We have created custom application a copy of HAP_MAIN_DOCUMENT and the other two webdynpro components are also copied.
    We dont know how to link this to Appraisal template. BADI HRHAP00_BSP_TMPL is used to change application names for BSP application. How to change application name for Web dynpro ABAP. Please share the stpes which will help us
    Thanks and Regards,
    Kothand

  • Error while accessing application with the custom components

    Hi experts,
    I have an application (HAP_MAIN_DOCUMENT) of component FPM_OIF_COMPONENT which uses a Webdynpro component with the same name (HAP_MAIN_DOCUMENT). This Webdynpro component (HAP_MAIN_DOCUMENT) uses 2 other components (HAP_DOCUMENT_BODY and HAP_DOCUMENT_HEADER). For my client requirement, i need to create the custom components by copying from standard components as the UI layout changes are quiet huge and not manageable with the enhancements. To accomodate this i have changed the standard configurations by replacing the standard web dynpro components with the custom ones copied. Apart fomr this there are no changes to the standard.
    While trying to access the application, i am getting the error as Null object reference.
    the details of the error is as below. Please advice.
    Heading 1: h1. P:ortal Error
    The URL http://******************/sap/bc/webdynpro/sap/HAP_MAIN_DOCUMENT/ was not called due to an error.
    Note
    The following error text was processed in the system DSD : Access via 'NULL' object reference not possible.
    The error occurred on the application server ddrsap12_DSD_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: WDDOINIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT_CONTROLLER of program CL_WDR_INTERFACE_VIEW=========CP
    Heading 2: h2. ST22 - Dump Analysis
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "WDDOINIT" "(METHOD)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component.
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    Information on where terminated
        Termination occurred in the ABAP program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP" -
         in "WDDOINIT".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 4640
        of the (Include) program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU".
        Termination occurred in a Web Dynpro application
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "WDDOINIT" "(METHOD)", but it was neither handled locally nor
         declared
        in the RAISING clause of its signature.
        The procedure is in program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP "; its source
         code begins in line
        4619 of the (Include program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU ".
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
          Name
       33 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU       4640
          CL_VW_HEADER_MAIN_CTR=>WDDOINIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       32 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU         70
          CLF_VW_HEADER_MAIN_CTR=>IF_WDR_VIEW_DELEGATE~WD_DO_INIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       31 METHOD       CL_WDR_DELEGATING_VIEW========CP    CL_WDR_DELEGATING_VIEW========CM003     3
          CL_WDR_DELEGATING_VIEW=>DO_INIT
       30 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM00Q     3
          CL_WDR_CONTROLLER=>INIT_CONTROLLER
       29 METHOD       CL_WDR_VIEW===================CP    CL_WDR_VIEW===================CM00K     5
          CL_WDR_VIEW=>INIT_CONTROLLER
       28 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       27 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
       26 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM005    23
          CL_WDR_VIEW_MANAGER=>BIND_ROOT
       25 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM00B    17
          CL_WDR_VIEW_MANAGER=>INIT
       24 METHOD       CL_WDR_INTERFACE_VIEW=========CP    CL_WDR_INTERFACE_VIEW=========CM004    11
          CL_WDR_INTERFACE_VIEW=>INIT_CONTROLLER
       23 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       22 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
    Thanks In advance,
    Regards,
    Ravi.

    Hi, I'm closing this thread and opening the same in another as the content got pasted in reader un friendly format and i'm unable to change the format.
    Thanks,
    Ravi.

  • Add custom field to af:query component?

    Anyone had any experience overriding af:query copmonent? I need to add my custom search field (to query component), which would have a search icon next to it, and on click, a popup widow would open containing my custom task flow where I could select a record with certain value and on return that custom field (in query component) would get populated with selected value. I hope I'm being clear. Please point me to any useful information. Is that even possible? I use JDeveloper 11.1.2.3.4.0 Regards, Marko

    Hi,
    af:query is a component that comes as is. Its not designed for customization in that you can add your own fields. If you have a requirement for this then
    1. expose a method on the VO Impl or AM Impl that expect arguments (your query parameters)
    2. Use the arguments to populate bind variables used by a ViewCriteria
    3. Apply the View Criteria to the View Object
    4. Execte the View Object
    5. Drag and drop the method from the DC panel as a parameter form
    6. Ensure the result table PartialTrigger property is pointing to the button ID of the parameter form
    7. Change whatever UI component you want to change in the parameter form
    This gets you going ...
    Frank

  • Generating a clientId for Custom Components

    I am creating a custom component that will be made up of smaller form elements and maybe even smaller custom components. Does JSF provide the mechanism for generating the clientId for each of these components and thier sub-components.
    What I don't want to do is this:
    writer.writeAttribute("name", clientId + "_id" + subComponentCounter++);
    ...

    I got that part. But what if your component has sub-components. Do you just name them whatever you want? I know that you could. But what if they are dynamically generated? And what if your sub-components have sub-components.
    So for example:
    Custom Control: Shipping Form
    |_Custom Control: Name Form
    | |_TextBox: First Name
    | |_TextBox: Last Name
    |_Custom Control: Address Form
    |_TextBox: Street
    |_TextBox: City
    |_TextBox: State
    |_TextBox: Postal Code

  • TabIndex problems in custom components

    Hello, all!
    I don't quite understand tab navigation. I have two custom
    components: a link button and a text box. I need to be able, at the
    component level, to give the textBox.swc instances tab
    functionality (tab advances to the next one, shift-tab goes to the
    previous). The linkButtons are movieClips, so that they can be
    dynamically positioned. Is it possible to set focus on something
    like that? From what I've read it is. But, I can't seem to get it
    working using the same techniques I've used before for this
    component-level tabbing.
    Just setting their tabIndexes doesn't work. The textBox
    component has a textBox embedded in a movieClip, and that component
    is, in turn, embedded into another movieClip. I dont think that
    second movieClip is the problem. I think it's that we have a
    textBox (created using this.createTextField("_textbox",
    getNextHighestDepth(), 0, 0, textWidth, textHeight) that we then
    dynamically give a tab index from a parameter, but all that does is
    highlight all text when tab is pressed.
    Does tabIndex work on multiple layers? For example, can I do
    it per movieClip? If so...that would be my problem.
    Thank you for the help!
    JA

    I've found my problem. My custom components have to implement the interface NamingContainer.

  • Building custom components in jsf 1.2

    HI all
    i am having custom component which has one text field and button together which is extended from a panelgroup component and adding text field and button and child component to this.
    in jsf1.1 i am not getting any error, but jsf 1.2 i am getting arrayoutofbounds exception in processrestorestate.
    when printing the log in jsf1.2 uicomponentbase we can see that after text and button fields are rendered again textfield is rendered.and kid of panel is 4. can you suggest how building the above custom component.
    kid.........4 facet count.0 family javax.faces.Panel
    stateStruct.........[Ljava.lang.Object;@c0f87elength.......2
    childstate.....[Ljava.lang.Object;@fa302clength...2
    Child Count4
    kids....4
    kid.........0 facet count.0 family javax.faces.Input
    stateStruct.........[Ljava.lang.Object;@170d9d4length.......2
    kid.........0 facet count.0 family javax.faces.Command
    stateStruct.........[Ljava.lang.Object;@1ed1c32length.......2
    kid.........0 facet count.0 family javax.faces.Input
    Aug 13, 2008 6:32:49 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1d63e96]
    Aug 13, 2008 6:32:49 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.ArrayIndexOutOfBoundsException: 2
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1185)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:235)
         at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:316)
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:337)
         at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
         at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:131)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:176)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at mgeretail.gateway.SecurityFilter.doFilter(SecurityFilter.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)

    hi
    is there a problem in rendering code in have given for the component. please tell me what is wrong in the code.
    my component code is
    package components;
    import javax.faces.component.html.HtmlInputText;
    import javax.faces.component.html.HtmlCommandButton;
    import javax.faces.component.html.HtmlPanelGroup;
    public class CGLookup extends HtmlPanelGroup
        private HtmlInputText text1;
        private HtmlCommandButton btn1;
        private String key,valueText,id;
        private String width,valueChangeListener;
        private int maxLength;
        private boolean required;
        private static Class valueChangeListenerArgs[]= (new Class[] {javax.faces.event.ValueChangeEvent.class});
        public CGLookup()
            super();
            //this.setSeparator("");
            this.setStyle("width:198px;");
            text1= new HtmlInputText();
            text1.setStyle("width: 150px;");
            btn1 = new HtmlCommandButton();
           // btn1.setMini(true);
           // btn1.setStyle("width: 7px; height: 20px");
            btn1.setLabel("?");
            this.getChildren().add(text1);
            this.getChildren().add(btn1);
        public void setId(String id)
            super.setId(id);
            text1.setId(id+"_txt");
            btn1.setId(id+"_btn");
        public String getText()
            if(text1.getValue() !=null)
                return text1.getValue().toString().toUpperCase();
            return null;
        public void setText(String value)
            if(value!=null)
                text1.setValue(value.toUpperCase());
            else
                text1.setValue(null);
        public int getMaxLength()
            return text1.getMaxlength();
        public void setMaxLength(int value)
            text1.setMaxlength(value);
        public void setRequired(boolean value)
            text1.setRequired(value);
        public void setDisabled(boolean value)
                text1.setDisabled(value);
                btn1.setDisabled(value);
        public String getValueText()
            return valueText;
        public void setValueText(String value)
            valueText = value;
        public String getKey()
            return key;
        public void setKey(String value)
            key = value;
        public String getWidth()
            return width;
        public void setWidth(String value)
            width = value;  
            if (width != null)
                resize();
        public void resize()
            this.setStyle("width:"+width);
            int index = width.indexOf("px");
            String temp = width.substring(0, index);
            int _width = Integer.parseInt(temp);
            _width = _width -48;
            HtmlInputText t1 = (HtmlInputText) this.getChildren().get(0);
            t1.setStyle("width:"+ String.valueOf(_width)+"px");   
    }my tag code is
    package taglib;
    import javax.faces.component.html.HtmlInputText;
    import javax.faces.component.html.HtmlCommandButton;
    import com.sun.rave.web.ui.el.ConstantMethodBinding;
    import java.util.Map;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.webapp.UIComponentTag;
    public class CGLookupTag extends UIComponentTag
        /** Creates a new instance of CGLookupTag */
        public CGLookupTag() {
            block = null;
            separator = null;
            style = null;
            styleClass = null;
            visible = null;
            public String getComponentType()
            return "CGLookuptype";
        public String getRendererType()
            return "javax.faces.component.html.HtmlPanelGroup";
        public void release()
            super.release();
            block = null;
            separator = null;
            style = null;
            styleClass = null;
            visible = null;
        public void setRequired(String value)
        {        this.required = value;    }
          public String getText()
        {   return text;   }
        public void setText(String value)
        {        text = value;    }
        public String getValueText()
        {   return valueText;   }
        public void setValueText(String value)
        {        valueText = value;    }
        public String getKey()
        {   return key;   }
        public void setKey(String value)
        {        key = value;    }
          public String getAction()
        {   return action;   }
        public void setAction(String value)
        {        action = value;    }
          public String getvalueChangeListener()
        {   return valueChangeListener;   }
        public void setvalueChangeListener(String value)
        {        valueChangeListener = value;    }
         public String getWidth()
        {   return width;   }
        public void setWidth(String value)
        {        width = value;    }
         public void setMaxLength(String maxLength)
            this.maxLength = maxLength;
        protected void setProperties(UIComponent _component)
            super.setProperties(_component);
            if(block != null)
                if(isValueReference(block))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(block);
                    _component.setValueBinding("block", _vb);
                } else
                    _component.getAttributes().put("block", Boolean.valueOf(block));
            if(separator != null)
                if(isValueReference(separator))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(separator);
                    _component.setValueBinding("separator", _vb);
                } else
                    _component.getAttributes().put("separator", separator);
            if(style != null)
                if(isValueReference(style))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(style);
                    _component.setValueBinding("style", _vb);
                } else
                    _component.getAttributes().put("style", style);
            if(styleClass != null)
                if(isValueReference(styleClass))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(styleClass);
                    _component.setValueBinding("styleClass", _vb);
                } else
                    _component.getAttributes().put("styleClass", styleClass);
            if(visible != null)
                if(isValueReference(visible))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(visible);
                    _component.setValueBinding("visible", _vb);
                } else
                    _component.getAttributes().put("visible", Boolean.valueOf(visible));
              if(action != null)
                if(isValueReference(action))
                    javax.faces.el.MethodBinding _mb = getFacesContext().getApplication().createMethodBinding(action, actionArgs);
                   HtmlCommandButton btn = (HtmlCommandButton) _component.getChildren().get(1) ;
                    btn.getAttributes().put("action", _mb);
                } else
                    javax.faces.el.MethodBinding _mb = new ConstantMethodBinding(action);
                     HtmlCommandButton btn = (HtmlCommandButton) _component.getChildren().get(1) ;
                     btn.getAttributes().put("action", _mb);
                if(required != null)
                if(isValueReference(required))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(required);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("required", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("required", Boolean.valueOf(required));
              if(text != null)
                if(isValueReference(text))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(text);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("text", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("text", text);
              if(key != null)
                if(isValueReference(key))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(key);
                    _component.setValueBinding("key", _vb);
                } else
                    _component.getAttributes().put("key", key);
              if(valueText != null)
                if(isValueReference(valueText))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(valueText);
                    _component.setValueBinding("valueText", _vb);
                } else
                    _component.getAttributes().put("valueText", valueText);
              if(valueChangeListener != null)
                if(isValueReference(valueChangeListener))
                    javax.faces.el.MethodBinding _mb = getFacesContext().getApplication().createMethodBinding(valueChangeListener, valueChangeListenerArgs);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("valueChangeListener", _mb);
                } else
                    throw new IllegalArgumentException(valueChangeListener);
              if(width != null)
                if(isValueReference(width))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(width);
                    _component.setValueBinding("width", _vb);
                } else
                    _component.getAttributes().put("width", width);
                if(maxLength != null)
                if(isValueReference(maxLength))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(maxLength);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("maxLength", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("maxLength", Integer.valueOf(maxLength));
        public void setBlock(String block)
            this.block = block;
        public void setSeparator(String separator)
            this.separator = separator;
        public void setStyle(String style)
            this.style = style;
        public void setStyleClass(String styleClass)
            this.styleClass = styleClass;
        public void setVisible(String visible)
            this.visible = visible;
        static Class _mthclass$(String x0)
            try
            {return Class.forName(x0);}
            catch (ClassNotFoundException x1)
            {throw new NoClassDefFoundError(x1.getMessage());}
        private String block;
        private String separator;
        private String style;
        private String styleClass;
        private String visible;
        private static Class actionArgs[] = new Class[0];
        private static Class actionListenerArgs[];
        private static Class validatorArgs[];
        private static Class valueChangeListenerArgs[];
        private String text,valueText,key,required;
        private String action,valueChangeListener;
        private String width,maxLength;
        static
            actionListenerArgs = (new Class[] {
                javax.faces.event.ActionEvent.class
            validatorArgs = (new Class[] {
                javax.faces.context.FacesContext.class, javax.faces.component.UIComponent.class, java.lang.Object.class
            valueChangeListenerArgs = (new Class[] {
                javax.faces.event.ValueChangeEvent.class
    }the component type CGLookuptype refers to first code. in jsf 1.2 UIComponentTag says it is deprecated. what should i use instead of it.

  • Building JSF 1.2 Custom Components with EL and standard components

    Hi all,
    I have built custom components in jsf 1.1 with great success but i am finding replicating the same functionality in jsf 1.2 very difficult. I have some conditions for my new custom component.
    - Using jsf 1.2
    - Must use unified EL, i am using a UIComponentELTag
    - iam using jsf standard html components from javax.faces.component.html here in particular i wont HtmlCommandLink.
    Essentially i am constructing a real time command menu. I have a backing bean from which i get command names and descriptions values. I wont to then in real time construct a table of links (using HtmlCommandLink) - all this work is to be processed by a custom component. Basically the commandLink issues a command in my backing bean, a parameter (param) is passed with the commandLink, this is later picked up in the backing bean method.
    I can generate the table, and all the HtmlCommandLinks, i have simply looped throught and encoded each of them.
    What i can do: i can see the table and the HtmlCommandLinks, but the links dont perform any action when i press them.
    What i want help with:
    I want to encode a HtmlCommandLink in my custom component with a param, traditionally i would set the action but this is now deprecated, and i need to use the setActionExpression method. I have tried to do this but the actions are note fired its simply doesnt function.
    Note:
    In jsf 1.1 I use to loop through all the HtmlCommandLink and peform their processDecodes method within my custom components very own processDecodes. The same in jsf 1.2 doesnt seem to yield any results.
    Can someone give be an example or solution to this? I have read articles on the net and they seem to all discuss jsf 1.1 which i have done and it works, but i am using unifed EL and jsf 1.2 now.
    Many Thanks,
    Kev

    Hi all,
    I have built custom components in jsf 1.1 with great success but i am finding replicating the same functionality in jsf 1.2 very difficult. I have some conditions for my new custom component.
    - Using jsf 1.2
    - Must use unified EL, i am using a UIComponentELTag
    - iam using jsf standard html components from javax.faces.component.html here in particular i wont HtmlCommandLink.
    Essentially i am constructing a real time command menu. I have a backing bean from which i get command names and descriptions values. I wont to then in real time construct a table of links (using HtmlCommandLink) - all this work is to be processed by a custom component. Basically the commandLink issues a command in my backing bean, a parameter (param) is passed with the commandLink, this is later picked up in the backing bean method.
    I can generate the table, and all the HtmlCommandLinks, i have simply looped throught and encoded each of them.
    What i can do: i can see the table and the HtmlCommandLinks, but the links dont perform any action when i press them.
    What i want help with:
    I want to encode a HtmlCommandLink in my custom component with a param, traditionally i would set the action but this is now deprecated, and i need to use the setActionExpression method. I have tried to do this but the actions are note fired its simply doesnt function.
    Note:
    In jsf 1.1 I use to loop through all the HtmlCommandLink and peform their processDecodes method within my custom components very own processDecodes. The same in jsf 1.2 doesnt seem to yield any results.
    Can someone give be an example or solution to this? I have read articles on the net and they seem to all discuss jsf 1.1 which i have done and it works, but i am using unifed EL and jsf 1.2 now.
    Many Thanks,
    Kev

  • Customs components are not updated on the scene

    Hello!
    i am working on a simple component, it is a movie clip.
    On each frames I have a label and an icon.
    In the component properties I set up a list where every itemshas the same title as the frames's labels.
    With this component I can set any icon I want by selecting it in the list.
    This is working fine and I am pretty happy about it.
    The Problem:
    If I change the name of one item in the list, add one or even reorder the list, the changes are not applied on all the components presents on the scene.
    and I have more or less 50 of thoses components in my scene...
    Is there a way to have the components updated ? Or at least update manually all the "old" components?
    this issue occure with Flash CS5 and CS6 all my doccuments are made in AS3.
    thanks a lot !

    Hello guys,
    Does anybody have the same issue with customs components?

  • Add Table maintenance program for custom table to an existing func group

    Hi Guys,
    Can I add Table maintenance program for custom table to an existing function group or I need to create a new
    function group for each custom table.
    Thanks,
    mini

    You can add to an existing function group, there's nothing technically to stop you doing this.  However, consider that this is creating generated function modules in this function group and you would be wise to avoid using a function group containing manually created modules.
    I personally always create a new function group, using the name of the table as the name of the function group.
    Regards,
    Nick

  • How to handle events between two custom components?

    Hi ,
         i want to handle events between two custom components, example if an event is generated in one custom component ,and i want to handle it any where in the application.....can any one suggest me any tutorial or meterial in this concept...
    thanks

    Events don't really go sideways in ActionScript by default. They bubble upward. If you want to send an event sideways, you will probably have to coordinate with something higher up in the event hierarchy. You can send the event to a common ancestor, and then pass it down the hierarchy as a method argument.
    Another option is to use a framework that supports Injection. There are a number around these days. The one I'm most familiar with is Mate, which allows you to handle events and inject data in MXML. Mate is meant to be used as an MVC framework, and you may want to look into it if your application is complex, but you can also use it to coordinate global event handling if you don't need that level of structure.

Maybe you are looking for

  • Gmail acct suddenly not syncing

    I'd been using Gmail via the Mail app as an Exchange account with no problem, as well as gmail's Contacts and Calendars, and suddenly this morning it's not working. I can access Gmail in Safari fine, and do not have 2-step verification enabled. I res

  • Livecycle form crashes Reader and Acrobat

    I've created a Livecycle form that has been working great. However, a user managed to corrupt it somehow and now it causes both Reader and Acrobat to freeze and then close when trying to load it. I also tried it in Nuance which causes a freeze but no

  • ITunes + my iPod always want me to through the introductory stage again

    Every time I use iTunes, it goes through the whole setting-up iTunes busiess again, with the license agreement etc... the same happens when I plug-in my iPod - it wants me to start setting-up my iPod again. I've uninstalled and reinstalled iTunes cou

  • AdfFacesContext.getCurrentInstance().getPageFlowScope().put() Issues

    Hi, I have a bounded task flow and have defined a bean (UserDetails) defined in it. Now in a class, I create a new object of the bean and use the following to put the object in the page flow scope: AdfFacesContext.getCurrentInstance().getPageFlowScop

  • About the sap script .......

    wat does this statment means? can any one explain  each of the line ......................... POSITION YORIGIN '+.0' LN BOX WIDTH '24.0' CH FRAME 10 TW BOX XPOS '+24.0' CH WIDTH '24.0' CH FRAME 10 TW BOX XPOS '+48.0' CH WIDTH '24.0' CH FRAME 10 TW