How to define "binding"?

Hello!
I'm creating custom tag and I need it to have attribute "binding" to get and set property in bean. Could you advise me, how can I do it?

Sorry for bothering, but I have a problem:
I can set property to the backing bean, but I can't get it, I mean when I want to print the property, I get an exception:
"ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: javax.faces.component.UIInput"
protected void setProperties(UIComponent component) {       
        super.setProperties(component);
        inputTextarea textComponent =(inputTextarea) component;
        FacesContext context=getFacesContext();How can I manage it?
Thank you

Similar Messages

  • How to define custom event and how to trigger the defined event

    hi,guys
    hurry issue....................hope get help.
    I am using oracle weblogic 10gr3 portal.and we choiced java portlet.as of now,we got some question about custom Event.hope you can give some idea....
    thank you so much.
    question detail:
    1.for java portlet ,how to define custom event.
    2.how to trigger this event.
    3 about the data,may be sometime need to transit Biz data.
    auctully,I just want to implements between two portlets communicate.
    for example:
    existing portletA,portletB.
    portletA is a list,like:
    A AA <button>
    after I click this buttom,then portletB will be effect,it means they are interact with each other.
    does anybody hit this issue before,if you solved pls share me .
    thank you for you help....

    Hello,
    Please note that everything below applies to JSR168 portlets ONLY- JSR286 portlets and other portlet types handle events a little differently.
    From inside your JSR168 portlet you can send an event during processAction or when receiving another event by using the PortletBackingContext object, such as:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import javax.servlet.http.HttpServletRequest;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
    HttpServletRequest httpRequest = (HttpServletRequest) actionRequest.getAttribute("javax.servlet.request");
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(httpRequest);
    portletBackingContext.fireCustomEvent("customEvent", "This is a custom event");
    To receive an event, in your .portlet file you just need to put in a "handleCustomEvent" tag specifying which method to call when the event is received, such as:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:javaPortlet title="Listening Portlet" definitionLabel="yourPortletName">
    <netuix:handleCustomEvent event="customEvent" eventLabel="customEvent" filterable="true" description="custom event handler">
    <netuix:invokeJavaPortletMethod method="processCustomEvent"/>
    </netuix:handleCustomEvent>
    </netuix:javaPortlet>
    </portal:root>
    Then, in your receiving portlet the method "processCustomEvent" would receive the event, such as:
    public void processCustomEvent(ActionRequest actionRequest, ActionResponse actionResponse, Event event)
    The event payload can be any Serializable object you want, but for forward-compatibility with JSR286 it would be ideal if it had a valid JAXB binding.
    Kevin

  • How to define the texts for UI element Dropdownlistbykey?

    Hi everyone,
      I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
    arrow?
    Thanks in advance.

    hi,
    you can use this code :
    method WDDOINIT .
      DATA : node_info TYPE REF TO if_wd_context_node_info,
             value1 TYPE wdy_key_value,
             set TYPE wdy_key_value_table,
             k1 type string value 'M',
             v1 type string value 'MAGO',
             k2 type string value 'S',
             v2 type string value 'Saurav'.
      value1-key = k1.
      value1-value = v1.
      APPEND value1 to set.
      value1-key = k2.
      value1-value = v2.
       APPEND value1 to set.
    node_info = wd_context->get_node_info( ).
    node_info = node_info->get_child_node('FOR_DROP').
    node_info->set_attribute_value_set( name = 'DROP_KEY'   value_set = set ).
    I hope it helps.
    Thanx.

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • How to define namespace with one XSD using in two different DB-Locations ?

    I'm not clear,How to define namespace, targetnamespace, schemaLocation or NoNamespaceSchemaLocation
    when using one common schema.xsd-definition
    in two different database-locations for exchange xml-documents?
    when insert xml-document I've got an error ORA-30937
    do you have an good exsample ?
    thanks
    Norbert
    schema :
    <xs:schema
    xmlns="http://sourcehost.com/namespace"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:oraxdb="http://xmlns.oracle.com/xdb"
    targetNamespace="http://sourcehost.com/namespace"
    xml-document :
    xmlns="http://Sourcehost.com/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:SchemaLocation="http://sourcehost.com/namespace http://desthost:8080/sys/schemas/PUBLIC/ADRESSEN.XSD">
    SQL> insert into ADRESSEN values
    (XMLType
    (bfilename ( 'XMLIMPORT_DIR', 'adressen.xml')
    , 0 )
    --> error :
    ORA-30937: No Schemadefinition for "SchemaLocation" (Namespace "http://www.w3.org/2001/XMLSchema-instance") in übergeordnetem Knoten "/ADRESSEN"

    Norbert
    The schema location used to register the XML schema with XML DB does not need to be a valid URL for accessing the XML Schema
    I can use the same URL , for instance
    http://xmlns.example.scom/xsd/myXMLSchema.xsd
    on machines dbserver1, and dbserver2. The only reason some people choose to use the hostname / portnumber convention is that this makes it possible to validate the XML Instance documents against the copy of the XML schema stored in the XML DB repository using an external tool like XMLSpy without have to add entries to XMLSpy's OASIS catalog files.
    I am concerned about the message you are getting. That's not correct AFAICT but I'd need to see the complete XML Schema and Instance to be sure.

  • How to define BPC architecture?

    Hi All,
    Iu2019m a BI and BPS consultant and Iu2019m doing a prototype for evaluating BPC for Sales Planning and I need some help.
    Process flow as:
    a.     Extract sales from COPA (amount and quantities);
    b.     Copy Actual to Budget version;
    c.     Create new customers;
    d.     Delete old customers;
    e.     Calculate the seasonality of sales & and adjust budget;
    f.     Load & adjust prices
    g.     Load & adjust sales costs
    h.     Calculate Net Revenue
    i.     Calculate costs
    My file format is as given below:
    Account|Category|Time|RptCurrency|Entity|Customer|Product|Amount|Quantity
    Questions:
    1- There is a specific KF to load quantity or I should use another account? If so how do I load the unit measures?
    2- I tried to load my file in u201CEuru201D but I received an error. The upload only finished OK when I changed the currency to u201CLCu201D. There is any trick?
    3- In customer dimension, I add the sales org. attribute but it didnu2019t work out because a customer can have more than one sales org. There is any way to define a compound key for a dimension?
    4- Where can I find relevant documentation about BPC?
    Thanks for reading my post.
    Regards, Fred

    Hi Shyam!
    Thanks for your answer.
    1. I followed your suggestion and load the data twice (one for amount and another for quantity) but I still have de unit measure problem (KG, TON, etc.). Any suggestion about how to handle this situation?
    2. Yes is easy for me to convert LC in any other currency after the data load. But the problem is that I must load data in multiple currencies (EUR, USD)u2026
    3. No it didnu2019t work out. Let me give you an example:
    Customer       Sales Org            Distribution Channel
    100001      AX01          1
    100001      AX02          2
    When I tried to process dimension I received the following message u201CMember ID must be   uniqueu201D. Any other idea about how to define the compound key Customer and Sales Org?
    Regards,
    Frederico

  • How to define Composite primary key for a Table

    Hi ,
    I am basically more into Java Programming , with little bit knowledge on Oracle as DataBase .so please excuse for my silly doubts .
    Can anybody please tell me how to define a Composite Primary Key on a Table .
    Thanks in advance .
    Edited by: user672373773 on Sep 25, 2009 8:54 AM

    Here is an example right out of the Oracle documentation and the syntax for adding PK since you mention adding a composite PK.
    Example creating composite index
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_indexing.htm#sthref594
    Syntax for adding a PK (composite or not)
    alter table oooooooo.tttttttt
    add constraint tttttttt_PK
    primary key (sample_column2,
    sample_column1)
    using index
    tablespace IDXSPC
    pctfree 05
    initrans 04
    maxtrans 08
    storage (initial 16k
    next 16k
    maxextents 32
    pctincrease 0);
    -- dictionary management with restricted storage, change as desired.
    HTH -- Mark D Powell --

  • How to define default element in SAP-Script?

    Hi Guys,
    How to define default element in SAP-Script?
    Can you tell me to do this...is it possible in all the windows or only in main window?
    Regards,
    GURU

    Hi,
    Welcome to SDN
    You can't post ur questions in other's threads .Open a new thread.
    click on post new thread and open new thread.
    Regards

  • How to define a Custom Action in VC 6.0 ?

    Hi all
    I want to know how to define a custom action like for a check box UI Element, I want particular action to be performed when it is checked ? How can I achieve this in VC 6.0
    Please feel free to ask me if my question is unclear ?
    Regards
    Kapil

    Hi,
    Try adding an expression element on your form.
    Go to the Expression control properties and in the Expression attribute enter
    IF(@Selected==true,"X"," ")
    @Selected is the checkbox. For your function call input use the expression element and not the checkbox.
    Hope this helps. Let me know if it works.
    Thanks.

  • How to define ABC class field in the Customer Master Sales tab

    HI All,
    can any one let me know how to define the new  ABC class in the Customer Master Sales tab like below.
    u2013 A (> 6,000,000 )
    u2013 B (> 1,000,000u20136,000,000 )
    u2013 C (> 100,000u20132,000,000 )
    u2013 D (< 100,000 )
    can any one let me know how to define and path in IMG.
    Thanks in advance.
    kumar reddy.

    In my opinion, you don't have any such std table/view to update ABC Classification field. You might need to update relevant infostructure based on your requirement, such as sales, invoiced, etc..
    Try with following, based on your requirement:
    MC(A
    SIS: Customer,Inc.Orders - Selection
    MC+A
    SIS: Customer Returns, Selection
    MC+E
    SIS: Customer, Sales - Selection
    MC+I
    SIS: Customer Credit Memos - Selec.
    Regards
    JP

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • How to define a Value for an Attribute of an Class

    Hi,
    How to define a Value for an Attribute of a Class ...
    ( I need to change the value of an Attribute of a class in standard program ....
    Ex...
       cl_hrce_masterswitches=>infotype_framework_is_active
    Here infotype_framework_is_active is the attribute .. its value in standard program is 'X'... Now i need to change it as '  '.
    How to define it and set value as ' '.

    Hello Surendar
    The static attribute INFOTYPE_FRAMEWORK_IS_ACTIVE is read-only and there is not SETTER method to manipulate its value.
    However, the attribute is filled in the CLASS_CONSTRUCTOR:
    METHOD class_constructor.
        IF ce_is_active                 = true OR
           global_payroll_is_active     = true OR
           mngmt_global_empls_is_active = true.
          infotype_framework_is_active = true.
          perid_infotype_is_active     = true.
        ELSE.
          infotype_framework_is_active = false.
          perid_infotype_is_active     = false.
        ENDIF.
    ENDMETHOD.
    Thus, you need to analyze how attribute CE_IS_ACTIVE, GLOBAL_PAYROLL_IS_ACTIVE and MNGMT_GLOBAL_EMPLS_IS_ACTIVE are filled in the CLASS_CONSTRUCTOR.
    For sure you will find customizing settings that are responsible for this.
    Regards
      Uwe

  • How to define keys in target DSO

    hi gurus!!
    ..can you please extrapolate on how to define key in target DSO and transformation logic.. (please refer to below discussion from for scenario from earlier posting)
    thanks in advance
    I have data from 3 datastore objects which I need to update one infocube. However, I need the data to come together to form one line per record. I've found that if I update the cube directly from the 3 DSO I get 3 lines rather than one, and if I update them all to a DSO and then to the cube, the same thing happens because I take the data from the change log.
    If I go via an InfoSet, I can not do a delta upload to the cube.
    I need this to run a min of once an hour.
    Any tips or advice would be greatfully recieved.
    Thanks
    Alice
    answer:::::
    You need to have an common key fields set in all of the three transformations.
    In your case it is probably:
    The key in target DSO is: k1..k3
    ODS1 - updates key k1, leaves k2, k3 empty
    ODS2 - updates key k2, leaves k1, k3 empty
    ODS3 - updates key k3, leaves k1, k2 empty.
    If you have it that way, you will end up with three records, instead of one.
    k1, empty, empty
    empty, k2, empty
    empty, empty, k3
    To resolve this, all of the source DSO must be able to determine and set a common key part in the transformations.
    Target ODS:
    Key K1,
    ODS1 - updates K1, key figures/characteristics from ODS1
    ODS2, updates K1, key figures/characteristics from ODS2
    ODS3, updates K1, key figures/characteristics from ODS3
    result:
    K1, key figures/characteristics from ODS1, then
    K1, key figures/characteristics from ODS2 - result is - previous record's key is overwritten, but the key figures/characteristics are mapped to the correct infoobjects (depending on how you set the transformation....)
    K1, key figures/characteristics from ODS3 - as for ODS2.
    The final result:
    K1, key figures/characteristics from ODS1, key figures/characteristics from ODS2, key figures/characteristics from ODS3.

    Hi,
           As thomas said you maintain your keys same as your source DSO's  in the target DSO.This is how the procedure goes when no specification for the keys are given.So maintain same keys which are in the sources.
    Regards
    Karthik

  • How to define tablespaces in Oracle 10g and how put tables on tablespaces

    Hello,
    I'm having trouble to define the structure of tablespaces and how to distribute the tables/indexes/lobs on these tablespaces.
    Do you know some rules on how to define this?
    What I have until now:
    1) Put table indexes in separate tablespace
    2) Put lobs in separate tablespace and use storage clause when defining the lob column. Not sure how many tablespaces to use, I have tables with millions of lobs and tables with just one lob (with row containing the lob).
    3) Please fill more rules here ...
    Thank you, Alex.

    Long story: I received database and schema creation scripts defined in Oracle 9i. I want to redesign the tablespaces number/storage and also to change the distribution of tables into tablespaces.
    As an example I will show how tablespaces are created now. There is one tablespace for indexes BLUE_AUTO_INDX and one for each EXTENT MANAGEMENT of:
    - 64K for BLOB , name BLUE_K064_BLOB
    - 64K for tables , name K064_NTAB
    - 128K for tables, name BLUE_K128_NTAB
    - 512K for CLOB , name BLUE_K512_CLOB
    - 4M for BLOB , name BLUE_M004_BLOB
    - 64M for CLOB , name BLUE_M064_CLOB
    - 8M for tables , name BLUE_M008_NTAB
    - 1M for tables , name BLUE_M001_NTAB
    - 256M for tables, name BLUE_M256_NTAB
    Definition of each tablespace is like:
    CREATE TABLESPACE BLUE_AUTO_INDX DATAFILE 'BLUE_AUTO_INDX01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_BLOB DATAFILE 'BLUE_K064_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_NTAB DATAFILE 'BLUE_K064_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K128_NTAB DATAFILE 'BLUE_K128_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K512_CLOB DATAFILE 'BLUE_K512_CLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M004_BLOB DATAFILE 'BLUE_M004_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M064_CLOB DATAFILE 'BLUE_M064_CLOB01.DBF' SIZE 400M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M008_NTAB DATAFILE 'BLUE_M008_NTAB01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 8M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M001_NTAB DATAFILE 'BLUE_M001_NTAB01.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M256_NTAB DATAFILE 'BLUE_M256_NTAB01.DBF' SIZE 512M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256M SEGMENT SPACE MANAGEMENT AUTO;
    Does this structure of tablespaces ok? I mean if the logic of one tablespace for different EXTENT SIZEs looks ok?

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

Maybe you are looking for

  • Connect external dsiplay via bluetooth

    Using MacBook Air 10.8.2, can I connect to an external display using bluetooth [not using a physical connection] as I want to control the display from across the room. My external display is a new Samsung Smart LED TV. Thanks, FarmEire

  • Invoice Split @ VF06....not stopping at breakpoint applied in routines

    Hi All, This is regarding Invoice Split...from VF06 Tcode. We are trying to generate Invoice from Delivery  using VF06. But Invoice is splitting at item level. We tried to debug the routines for 003 & 007 as well for copy control.. But while executin

  • Details Designer for Organisational Structure

    Hi, I see that the position hierarchy detail's designer comes with a "Structure" tab as default. I am trying to get this to appear for the Organisational Structure but having no luck. Can this be achieved within the console? Many thanks

  • Accuracy in custom Clock

    Hi all! I've made a simple clock meant to measure computer uptime. I'm using javax.swing.Timer with a delay of 1000 milliseconds. By each event triggered by the timer a variable (long as datatype) holding the total elapsed seconds is incremented. My

  • HT6114 After loading 10.9.2 my mid 2011 MacAir keeps freezing every 5-10 minutes

    After loading 10.9.2 my mid 2011 MacAir keeps locking up. Just a spinning pinwheel.