Using Custom Converters with Custom Components?

Hi,
I have written a Custom component. I wanted to attach Custom Converters and Custom Validators to this component.
<custom:comp1 id="test" rendered="true" size="20" value="#{bean1.val}"/>
I have written the following code in Custom Component class
public class CustomComponent1 extends UIInput{
public CustomComponent1(){
super();
setConverter(new CustomConverter());
Converter converter = getConverter();
if(converter == null){
addValidator(new CustomValidator());
@Override
public String getFamily(){
return "CCFamily";
The Validator is working fine, but the converter is not. Please suggest.

I have tried like this as well as we do for a standard component.
<<faces-config.xml>>
<converter>
<description>
Converter for credit card
numbers that normalizes
the input to a standard format
</description>
<converter-id>LongConverter</converter-id>
<converter-class>
com.wellpoint.converter.CustomConverter
</converter-class>
</converter>
<custom:comp1 id="test" rendered="true" size="20" value="#{bean1.val}">
<f:converter converterId="LongConverter"/>
</custom:comp>
But, this also did not work for me. Please suggest.

Similar Messages

  • SAP ECO 5.0 B2B: No customer found with customer number

    Hello all,
    we´re using SAP E-Commerce for ERP 5.0 (SP9) with backend SAP ECC 6.0 EHP4.
    We have changed from SU05 to SU01 user concept. All existing SU05 users have been migrated to SU01. In SU01 (under references) for each SAP E-Commerce user the mapping (user <=> sold-to-party) has been set up as described in the online documentation.
    For example: SU01-User u2018500070u2019: Tx SU01 under 'references':   Obj.type u2018KNA1u2019 with key u2018500070u2019. A corresponding customer master record u2018500070u2019 can be found in the ERP system using transaction VD03.
    In the shopping basket maintenance the following error message occurs: u2018No customer found with customer numberu2019.
    In our testing system (SAP E-Commerce for ERP 5.0 (SP12) with SAP ECC 6.0 EHP0) everything is working fine. The problem only occurs in the customer ERP system (SAP ECC 6.0 EHP4).
    Thanks for your help in advance.
    Regards,
    AEV

    At the code there are some checks for the backend system. A normal ECC 6.0 gives there a version "700" back. If you have an ECC 6.0 with EHP4, that will give an other number back from backend system. I think "701".
    At the Source-Code of ecommerce, there is no check for 701... Add that to the sourcecodes and it will work.
    Example:
    if (r3Release.equals(RFCConstants.REL46C) ||
                        r3Release.equals(RFCConstants.REL620) ||
                            r3Release.equals(RFCConstants.REL640) ||
                                 r3Release.equals("701"))
    Im not 100% sure about this because i had the same problem in ISA 4.0, not ecommerce 5.0.

  • No customer found with customer number

    hello experts,
    In R/3 e-commerece when we try to create a order, we are not able to create the order, we get a message as
    No customer found with customer number
    Even the images are displayed.
    Please Help...................
    Thanks & Regards
    namitha

    hello Deborah Corsi,
    Thanks for immediate reply, Our backend system version is in kernel 700, we have not upgraded 701.
    could you let us know what is  Ehp4.
    Warm Regards
    Namitha

  • How to combine Custom Converters on Custom Components

    Hi, guys:
    I created a custom component just following: http://today.java.net/pub/a/today/2004/07/16/jsfcustom.html
    meanwhile, I also created a custom converter to convert any format of credit number to xxxx-xxxx-xxxx-xxxx. Right now, I'm wanting to use this custom converter with this custom component.
    However, whenever directly use them as:
                             <cc:creditCardInput id="credit_card_number" size="19"
                                               value="#{customerReg.paymentValue.creditCardNumber}">
                            <f:converter  converterId="CreditCardConverter"/>
                         </cc:creditCardInput> MyEclipse IDE complains:
    According to TLD, tag cc:creditCardInput must be empty, but is now.
    Anyone can help me to solve it?
    Thanks a lot
    Paul

    Thanks all of you for responses.
    The related tld as below:
    <taglib>
      <tlib-version>0.03</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>Credit Card Example Component Tag Library</short-name>
      <uri>http://bill.dudney.net/cc/component</uri>
      <description>
           This tag library has the tags for the java.net article about custom
           JSF components. Most of the attributes are actually ignored in this
           simple example.
      </description>
      <tag>
        <name>creditCardInput</name>
        <tag-class>alt.jsf.tags.CreditCardInputTag</tag-class>
        <body-content>empty</body-content>
        <description>
          This is the tag for the credit card input component.
        </description>
        <attribute>
          <name>value</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>id</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>immediate</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>rendered</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>required</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>validator</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>valueChangeListener</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>accesskey</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>alt</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>disabled</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>maxlength</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>onblur</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onchange</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onclick</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>ondblclick</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onfocus</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>onkeydown</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
            </description>
        </attribute>
        <attribute>
          <name>onkeypress</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onkeyup</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onmousedown</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>onmousemove</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
            </description>
        </attribute>
        <attribute>
          <name>onmouseout</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onmouseover</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onmouseup</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
           </description>
        </attribute>
        <attribute>
          <name>onselect</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
          </description>
        </attribute>
        <attribute>
          <name>readonly</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
              Flag indicating that this component will prohibit
              changes by the user.  The element may receive focus
              unless it has also been disabled.
          </description>
        </attribute>
        <attribute>
          <name>size</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
              The number of characters used to determine
              the width of this field.
          </description>
        </attribute>
        <attribute>
          <name>style</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
              CSS style(s) to be applied when this component is rendered.
          </description>
        </attribute>
        <attribute>
          <name>styleClass</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
              Space-separated list of CSS style class(es) to be applied when
              this element is rendered.  This value must be passed through
              as the "class" attribute on generated markup.
          </description>
        </attribute>
        <attribute>
          <name>tabindex</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
              Position of this element in the tabbing order
              for the current document.  This value must be
              an integer between 0 and 32767.
          </description>
        </attribute>
        <attribute>
          <name>binding</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <description>
             The value binding expression linking this component to a property in a backing bean
          </description>
        </attribute>
      </tag>
    </taglib>

  • How to transfer encrypted file using B2B sftp with custom doc over generic

    hi ,
    we have a requirement to get and send an encrypted file to/from our trading partner.
    Previously we configured B2B sftp with custom doc. over generic exchange protocol to get a text file and used 1st 11 charecters in the file as identifier for the TPA configuration and successfully processed the file. Since we are getting an encrypted file , we need to find a way to identify the TPA config. .
    Please reply to this thread if you have any suggestions. Pls. feel free to ask if you need more information to understand the situation.
    thanks
    srini

    hi Ramesh,
    I have sent mail to you . We are actually using file name convensions but we are using internal delivery as B2B InQuueue . And when we use custom document over generic exchange , in the paramenters we do not see any file name property. i hava also sent you the TPA so that you can get idea of the configuration we did.
    thanks
    Srini

  • Vendor as customer ( clearing with customer field)

    Hi
    Iam customer number in control view of vendor master
    i think nest i have to check the clearing with customer indicator, but iam not finding this field. help me out with the navigation for this field
    chris

    hi
    If a vendor is a customer then you need to
    i) First create a master for the customer
    ii) Mention the name of the created customer in the master data of the vendor in the control view under Account Control in the Customer Field (LFA1-KUNNR)The customer number is used by the payment and dunning programs for clearing open items. For line item display, the link to the customer line items is established using this number.
    If you require clearing between the customer and vendor, the following requirements must be met:
    $ The customer number must have been entered in the corresponding vendor master record.
    $ The vendor number must have been entered in the corresponding customer master record.
    $ The fields "Clrg with vend." or "Clrg with cust." must have been selected in both master records.
    Kindly let me know if it is useful
    regards
    kunal

  • Generate PDF using Managed Bean with custom HTTP headers

    Background
    Generate a report in various formats (e.g., PDF, delimited, Excel, HTML, etc.) using JDeveloper 11g Release 2 (11.1.2.3.0) upon clicking an af:commandButton. See also the StackOverflow version of this question:
    http://stackoverflow.com/q/13654625/59087
    Problem
    HTTP headers are being sent twice: once by the framework and once by a bean.
    Source Code
    The source code includes:
    - Button Action
    - Managed Bean
    - Task Flow
    Button Action
    The button action:
    <af:commandButton text="Report" id="submitReport" action="Execute" />
    Managed Bean
    The Managed Bean is fairly complex. The code to `responseComplete` is getting called, however it does not seem to be called sufficiently early to prevent the application framework from writing the HTTP headers.
    HTTP Response Header Override
    * Sets the HTTP headers required to indicate to the browser that the
    * report is to be downloaded (rather than displayed in the current
    * window).
    protected void setDownloadHeaders() {
    HttpServletResponse response = getServletResponse();
    response.setHeader( "Content-Description", getContentDescription() );
    response.setHeader( "Content-Disposition", "attachment, filename="
    + getFilename() );
    response.setHeader( "Content-Type", getContentType() );
    response.setHeader( "Content-Transfer-Encoding",
    getContentTransferEncoding() );
    Issue Response Complete
    The bean indirectly tells the framework that the response is handled (by the bean):
    getFacesContext().responseComplete();
    Bean Run and Configure
    public void run() {
    try {
    Report report = getReport();
    configure(report.getParameters());
    report.run();
    } catch (Exception e) {
    e.printStackTrace();
    private void configure(Parameters p) {
    p.put(ReportImpl.SYSTEM_REPORT_PROTOCOL, "http");
    p.put(ReportImpl.SYSTEM_REPORT_HOST, "localhost");
    p.put(ReportImpl.SYSTEM_REPORT_PORT, "7002");
    p.put(ReportImpl.SYSTEM_REPORT_PATH, "/reports/rwservlet");
    p.put(Parameters.PARAM_REPORT_FORMAT, "pdf");
    p.put("report_cmdkey", getReportName());
    p.put("report_ORACLE_1", getReportDestinationType());
    p.put("report_ORACLE_2", getReportDestinationFormat());
    Task Flow
    The Task Flow calls Execute, which refers to the bean's `run()` method:
    entry -> main -> Execute -> ReportBeanRun
    Where:
    <method-call id="ReportBeanRun">
    <description>Executes a report</description>
    <display-name>Execute Report</display-name>
    <method>#{reportBean.run}</method>
    <outcome>
    <fixed-outcome>success</fixed-outcome>
    </outcome>
    </method-call>
    The bean is assigned to the `request` scope, with a few managed properties:
    <control-flow-rule id="__3">
    <from-activity-id>main</from-activity-id>
    <control-flow-case id="ExecuteReport">
    <from-outcome>Execute</from-outcome>
    <to-activity-id>ReportBeanRun</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean id="ReportBean">
    <description>Executes a report</description>
    <display-name>ReportBean</display-name>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    The `<fixed-outcome>success</fixed-outcome>` strikes me as incorrect -- I don't want the method call to return to another task.
    Restrictions
    The report server receives requests from the web server exclusively. The report server URL cannot be used by browsers to download directly, for security reasons.
    Error Messages
    The error message that is generated:
    Duplicate headers received from server
    Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION): Multiple distinct Content-Disposition headers received. This is disallowed to protect against HTTP response splitting attacks.Nevertheless, the report is being generated. Preventing the framework from writing the HTTP headers would resolve this issue.
    Question
    How can you set the HTTP headers in ADF while using a Task Flow to generate a PDF by calling a managed bean?
    Ideas
    Some additional ideas:
    - Override the Page Lifecycle Phase Listener (`ADFPhaseListener` + `PageLifecycle`)
    - Develop a custom Servlet on the web server
    Related Links
    - http://www.oracle.com/technetwork/middleware/bi-publisher/adf-bip-ucm-integration-179699.pdf
    - http://www.slideshare.net/lucbors/reports-no-notes#btnNext
    - http://www.techartifact.com/blogs/2012/03/calling-oracle-report-from-adf-applications.html?goback=%2Egde_4212375_member_102062735
    - http://docs.oracle.com/cd/E29049_01/web.1112/e16182/adf_lifecycle.htm#CIABEJFB
    Thank you!

    The problem was that the HTTP headers were in fact being written twice:
    1. The report server was returning HTTP response headers.
    2. The bean was including its own HTTP response headers (as shown in the question).
    3. The bean was copying the entire contents of the report server response, including the headers, into the output stream.
    Firefox ignored the duplicate header errors, but Google Chrome did not.

  • How to use standard validator with custom component?

    Hi folks!
    I've implemented a custom component extending UIInput. My component worked well but now I want to use a standard validator.
    How can I use it??
    regards,
    Steven

    Validation is done by UIInput.validate() which is invoked by processValidators().
    So, if you don't redefine these inherited methods they will invoke the
    corresponding validators.

  • How do I make a Custom DataTip with Custom ItemRenderer

    I can't seem to find any documentation or examples of
    displaying a dataTip (similar to those used with charting) with my
    custom itemRenderer (mxml component). This is for use in a
    dataGridColumn. I Could someone give me an example? The closest
    I've been able to find is
    http://www.mail-archive.com/[email protected]/msg61624.html,
    which doesn't say how to do it.
    Thanks!

    http://blog.bigfatstogie.com/?p=42
    run the example towards the end of the page

  • JTree custom DefaultTreeCellRenderer with custom DefaultMutableTreeNode

    Is there a way to create my own version of DefaultTreeCellRenderer that does not use DefaultMutableTreeNode? I tried copying an example of a custom DefaultTreeCellRenderer but I can’t cast the "value" in getTreeCellRendererComponent() to my own version of DefaultMutableTreeNode.
    From the looks of the documentation below shouldn't I be able to do that?
    Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)

    oops,
    I found out why. I created my custom DefaultTreeCellRenderer before I populated the root node with my DefaultMutableTreeNode. So I guess, java went with the default. When I created my custom DefaultTreeCellRenderer after I populated the root node, everything worked.

  • Import procurment +custom clearance with custom clearance agents comparing

    hello SAP Guru
    can you please tell me how can I compair the custom clearance Vendor (or) agent  according to their price and how can i choose the best Custom clearance Agent for Import Procurement.
    if the Custom clearance actvity is a external service work,how can i complete the cycle with out service entry sheet.
    Any pls help out
    Thank you
    Sammeta

    HI,
    For comparing the vendor rates u can use the Quotation process by selecting item category K in quotation.
    But generally the imports scenario in India has 7 standard  conditions which are all Planned delivery cost.Where u do the MIRO
    first & MIGO next.Because u pay the customs & clearing agent first and then receive the material.So it is better to follow the
    standard SAP procedure.For this SAP notes are available how to create the standard conditions.
    murugan

  • Create custom folders with custom icons like created by Vibe

    I would like to create a custom folder and sub folder in the GW folder list to link to an outside feature. Ideally, it would display in a custom pane on the right like the email list, forum plugin or calendar view.

    You might want to have a look at Russ Ward's WS Utilities: http://weststreetconsulting.com/WSC_Utils.htm
    ImpGraph by the late Bruce Foster also did most of this, but is no longer available.
    Steve Kubis' AutoText may also provide part of the solution (custom sized Anchored Frames): see: http://www.siliconprairiesoftware.com/Products.html
    You can also create custom anchored frames on your Reference pages and then copy & paste from there. Automatically scaling an imported file to properly fit would require a custom FrameScript or plug-in - FM's auto-scaling on import may distort your graphic.

  • Using Airport Express With Sonos Components

    The Sonos System wireless specs say not to use 802.11 N networks because it interferes with the Sonos mesh net. My question is does anybody have experience using 2nd Gen Airport Express network with Sonos.
    I currently have my Airport Express advanced>wireless set to 802.11n (802.11b/g compatible).  I am having connection problems however the 2nd Gen Airports don't give an option to not use 802.11N

    Unfortunately I don't have much experience with the Sonos systems to offer any advice on, whether or not, it would be a better option than using the AirPorts ... even newer ones.
    If you system has always been flaky, it may be due to limited bandwidth or excessive signal noise that is preventing AirPlay from streaming over a "clean" wireless network and not actually the AirPort hardware. If this is the case, then replacing the AirPorts would serve no real value.

  • Create a Custom Component With Custom Shape

    Hi all,
             I want to create a Component that should have a CustomShape.
             I will explain this in detail ,Suppose now we have a Button, Button will be having some Rectangular Shape, But in my Case i dont want this    Rectangula Shape, I will be giving x and y positons Depending on that positon It has to form a Component.
             Any Help is Greatly Appreciated.

    Even if you use transparent images, you will still end up with a rectangular bounding box.
    You can use programmatic drawing and get a shape that does not involve a rectangle:
    http://livedocs.adobe.com/flex/3/html/help.html?content=skinning_6.html
    http://livedocs.adobe.com/flex/3/html/Drawing_Vector_Graphics_5.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=Drawing_Vector_Graphics_4.html
    If this post answers your question or helps, please mark it as such.

  • Refresh combobox with custom display(Plug in)

    Hello ,
    I am using combobox with custom display(Plug in) in my application.
    i want to display value in combobox on selection of values in radio item
    sample query used in combobox like
    if :Radio_item = 1 then
    return 'SELECT NAME dropdown_display
        ,NAME search_string
        ,NAME input_display
        ,id return_value
    FROM Table_A';
    else
    return 'SELECT NAME dropdown_display
        ,NAME search_string
        ,NAME input_display
        ,id return_value
    FROM Table_B';
    end if;
    but problem is it is always showing the data from first query,it is not displaying the value from second query on changing of radio option.
    i also tried to refresh the combobox item  on change of radio item values but still it is showing the value from first query.
    please help me how to resolve this issue.
    Apex Version - 4.1.1
    Database - 11g
    Regards and thanks
    Jitendra

    Shiv wrote:
    Hi,
    I used plugin "Combobox with Custom Display".
    I have issue like
    When i entered some text in textbox and scroll down using down key of key board. That highlighted part can not scroll down with scroll.
    The demo link for above issue
    http://apex.oracle.com/pls/apex/f?p=35538:4
    kindly help me out.
    ThanksIts a bug in the plugin code and not related to APEX.
    I will look into it and fix my code to address this issue, please bookmark this page http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/combobox-with-custom-display_212.html and check for updates.
    Thanks,
    Vikram

Maybe you are looking for

  • Logo In Excel sheet, through mail

    Hi folks,         I have developed a report, where data is sent from Internal table to the vendors through mail as an Excel attachment. Now i need to include mu company logo in the attachment.Is it possible to create logo in Excel and send it as an a

  • Tax value stored table in purchase order

    Hi , i want to extract tax values of tax code from the Purchase order .  So plz tell me the tables where i can extract the tax values for a particular Purchase order at item level. Regards Kishore

  • Oracle 9i Developer Suite Student Registration

    I can't install my Oracle 9i Developer Suite I received with my Guide to Oracle 9i book. The book instructs you to go to otn.oracle.com/books and click on the registration link for 9i, but there isn't one. There is a registration code listed there, b

  • Can't log in to iCloud

    I have only iPhone. If I'm trying log in icloud, I saw masseg: "the maximum number of free accounts have been activated on this iPhone". Can somebody help me for this trable?

  • OKP - Viewer Software unclear - What to install

    Hi, I have a question concerning the SAP OKP Courses. You need to install player software to participate in a course. But using the "Technical Requirements" Link ( https://websmp209.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=01100035870000269210