What is best approach to replace a renderer?

Hello,
I want to use custom renderer for just one standard component. AFAIK, it is possible to use setRendererType method inside java code but that means lots of manual work.
What I want is something that should be applied to configuration only, i.e. kind of entry that will tell jsf engine to use my renderer for given component and use standard kit for all others.
Is it possible?

you have to register the custom renderer in your faces-config.xml
e.g. a renderer which renders the Output text component
the renderer-class tag contains the location of your customrenderer
  <component>
    <component-type>javax.faces.HtmlOutputText</component-type>
    <component-class>javax.faces.component.html.HtmlOutputText</component-class>
  </component>
  <render-kit>
    <renderer>
     <component-family>javax.faces.Output</component-family>
      <renderer-type>javax.faces.Text</renderer-type>
      <renderer-class>renderkit.MyRenderer</renderer-class>
    </renderer>
  </render-kit>

Similar Messages

  • What's best approach for a person with dual office?

    Hi,
    I have an UC560 system to deploy. There are 3 users in company who work from home too. For home I have ordered SPA525G2 that has SSL VPN capabilities but when they go in office, they would be using 7945 phone in their dedicated cube. The office phone would not be shared.
    What's best way to configure this setup? I know extension mobility works for hoteling setup but this is different. Would it be possible to assign same primary extension to 2 different phones without an overlay configuration?
    What's best approach here?
    Thanks in advance,
    Sam

    Al the Drifter wrote:
    If you follow Steve's advice, and after doing the edits you discover
    that one instrument should come up 1db, you are screwed.
    I could be wrong about this in the classical music environment,
    where things are not close-mic'ed but if I am, I am confident Steve
    will correct me.  Ha.
    You always run the risk of small changes between takes - and that's where Audition 3 and the new improved crossfades score rather heavily. You won't notice 1dB on a single instrument across a fade though - it's hard to spot this as a jump, even, unless it's on pure tone. No, I very rarely close-mic stuff at all, although I did with a clavichord recently - it's seriously too quiet to mic any other way.
    jaypea500 wrote:
     when recording classical music, any engineer worth anything has the mix down pat as it's being recorded. 
    That's the way they used to work, certainly - but not nowadays, especially if it's done on location, which most classical recording is. What's more likely to happen is that you'd use decent mic preamps feeding straight into a multitrack, or even some software on a laptop. I generally record like that - but I also feed the multitrack outputs to a Yamaha mixer via ADAT, do a mix on that and record it back to a spare multitrack pair. I don't actually need to do that - but having a mix available from the multitrack that's pretty much there is good as far as being able to play back takes to conductors is concerned.
    Of course, one of the other reasons that classical sessions recorded on location aren't mixed on the spot is that the monitoring conditions are invariably far from ideal, and I'd have it that no engineer worth anything would ever risk a final mix done on location.
    But I only get paid to do all of this on a regular basis, so what would I know? Must be something though - my customers come back for more...

  • I want to erase my macbook files and reinstall the startup disk. I have backed up old files. whats the best approach?

    i want to erase all my macbook files and OS and reinstall the startup disk. I have backed up old files on separate HD. Whats the best approach for a smooth reinstall.? I haven't done this in years.

    I found a great short article by Aaron Sumner posted 02/02 which clearly explains the process. Thanks.

  • What's Best Approach for Multitrack Classical Music?

    Can someone suggest the best approach for recording classical musicians onto
    four tracks? In this scenario, they play until they make a mistake on, say,
    measure 24, stop, then (take 2) go back to measure 20 and play until the next
    rough spot, and so on. Ultimately there may be 15 takes that all need to be
    trimmed and stitched together.
    In the old (tape) days, this was pretty basic editing. I would use a blade and block
    to cut out all the bad stuff on the multitrack tape, then I could mix. But how do I
    do this in Audition? (I use version 1.5.)
    I can't do the cuts it in edit view because the tracks would get out of sync
    Assuming all the takes are in one session, in multitrack view, this most basic of
    functions seems to elude me. What am I missing?

    Al the Drifter wrote:
    If you follow Steve's advice, and after doing the edits you discover
    that one instrument should come up 1db, you are screwed.
    I could be wrong about this in the classical music environment,
    where things are not close-mic'ed but if I am, I am confident Steve
    will correct me.  Ha.
    You always run the risk of small changes between takes - and that's where Audition 3 and the new improved crossfades score rather heavily. You won't notice 1dB on a single instrument across a fade though - it's hard to spot this as a jump, even, unless it's on pure tone. No, I very rarely close-mic stuff at all, although I did with a clavichord recently - it's seriously too quiet to mic any other way.
    jaypea500 wrote:
     when recording classical music, any engineer worth anything has the mix down pat as it's being recorded. 
    That's the way they used to work, certainly - but not nowadays, especially if it's done on location, which most classical recording is. What's more likely to happen is that you'd use decent mic preamps feeding straight into a multitrack, or even some software on a laptop. I generally record like that - but I also feed the multitrack outputs to a Yamaha mixer via ADAT, do a mix on that and record it back to a spare multitrack pair. I don't actually need to do that - but having a mix available from the multitrack that's pretty much there is good as far as being able to play back takes to conductors is concerned.
    Of course, one of the other reasons that classical sessions recorded on location aren't mixed on the spot is that the monitoring conditions are invariably far from ideal, and I'd have it that no engineer worth anything would ever risk a final mix done on location.
    But I only get paid to do all of this on a regular basis, so what would I know? Must be something though - my customers come back for more...

  • What is best approach to report building in my case?

    Hi all,
    I'm just getting started with Crystal Reports for our Swing-based desktop application.  We need the ability to generate PDF and XLS reports, perhaps later adding web-based dashboarding and interactive reports.  I'm trying to determine the best approach to take with Crystal Reports to fit our application's data.
    Our app stores results in a separate database (either Oracle, SQLServer, or Apache Derby).  The result records contain lots of ID lookups to tables in another database.  This makes using straight SQL for reporting difficult as I would like to avoid cross-database queries.  So I'm thinking of using the POJO reporting approach where our app gathers the results, generates POJOs, and then passes them to the report.
    My concern with this POJO approach is that it seems to require loading all results into memory and generating the report in one big step.  I've read other posts referring to heap issues.  Is there a way to avoid this?  Some-how to page through report data?
    I've also read that Crystal Reports can work with any data provider that implements ResultSet.  Is this true?  If so, could I create my own custom ResultSet implementation that would let me page through my results without loading everything into memory at-once?  If possible, please point me to the documentation for this approach.  I haven't been able to find any examples.
    If there is a better approach that I haven't mentioned, please let me know. 
    Thanks in advance,
    Guy

    The first option is the best one for performance.  The only time you should use result sets is when you need to do runtime manipulation of the data through your application and is not acheivable in a stored procedure.

  • Whats the best approach?

    Hi All,
    If you had to put up a screen that would look like the following:-
    Country : _ ------------_
    Language : _ ------------_
    Chassis Series:_ ------------_
    Cancel OKButtn
    The understand the input entries would be JLABELs and JTEXTFILEDS.
    If every thing had to line up and look professional.
    1) How many panels would you have?
    2) What Layout manager would you use on each panel?
    3) Would you employ a look and feel or would you use Java default look and feel?
    4) Is there a methodical approach to designing this screen?
    I understand these are open ended questions and maybe they will narrow once we have a few replys.
    cheers
    Gurmej

    I would use panels to help layout and group together similar components in a complicated UI. You can also start to add borders and change the background colour to emphasise the groupings.
    To demonstrate, open up Internet Explorer and choose tools -> Internet Options and make sure the General tab is showing. There are many components on this dialog but they are grouped by 'Home Page', 'Temporary Internet Files' and 'History'. This is an example of where panels can be useful for your layout.
    In your case the frame is very simple, with a few components and just two buttons so I wouldn't use extra panels. You would just complicate the code and add no benefit.

  • P965 Platinum 4 Disk Raid Array, whats my best approach?

    Hi everyone, I hope some kind knowledgable person can help me sort through my dilemma.
    I have read so many other post that have similar topics my head is in a spin.
    I've had similar problems to most other people when installing windows with raid I get the BLUE SCREEN OF DEATH.
    At the minute my 4 hard disks are only set up as individual IDE drives, even though they are SATA2.
    Correct me if I'm wrong, the motherboard has 6 purple SATA connectors (Intel) and 1 Blue connector (Jmicron). I have put my 4 drives all on the first 4 of the 6 purple inlet connectors (1-4) Or should the go on the last 4 or does it matter. The reason why I ask this is because in windows device manager under the IDE ATA/ATAPI CONTROLLERS the following appears
    Intel(R) ICH8 2 Port Serial ATA Storage Controller - 2825
    Intel(R) ICH8 4 Port Serial ATA Storage Controller - 2820
    Why a 2 port and a 4 port? Am I putting 2 drives on the 2 port and 2 on the 4 port? And which connectors relate to which storage controller. Or does it really matter?
    I am not using the BLUE (Jmicron) SATA connector but I am using the Yellow ATA 133 connector for DVD writers (I know I can only put 2 on here and not all three that I have)
    Now is this next bit right. In the BIOS in integrated peripherals (I think) the on board SATA should be set to IDE for me to put my DVD writers on?
    The next bit confuses me, In the BIOS section for ON CHIP SATA there is a sub-menu, set SATA#1 AS, and Set SATA#2 as.
    Why the 2 options. Is this to do with above mentioned 2 controllers in device manager and what are the best settings I should use for a 4 disk RAID 0.
    Now this might all look like I know what I'm talking about, but if you are kind enough to reply, please don't make it too technical for me, keep it simple please.
    Any advice would be really appreciated.
    Rebuts

    Thanks for the reply Maesus,
    I managed to get the 4 disk RAID set up OK.
    The other problem I seem to have now is that when I insert a disc into my DVD drive it causes the system to go a bit slow, the mouse would stutter on the screen when I try moving it and would sometimes not move until the disc had stopped spinning. I have two DVD writes attached to the 40 pin IDE connector on the motherboard. This connector is controlled by the JMICRON chip. In the BIOS I have it set up to act as IDE and not RAID. I had initially just let windows pick up on this device and it installed it's own drivers, but I remember someone on another post saying that if you install the JMICRON RAID drivers from the motherboard driver disc it might make thing better. but it hasn't.
    Any suggestions?

  • What' the best approach for synching a drum machine to AA3

    Hi
    I have recently purchased both AA3 and an Alesis SR-18. I'm wondering how to go about synching the drum machine to AA3. Do I do it via SMPTE or Midi? And exactly how do I do that? Later on I will also need to link my synth via midi to the AA3 sequencer.
    I haven't recorded for many years (reel to reel). Back in those days I would record a code from the drum machine onto the tape. I don't know what to expect now:
    Do I use AA3 to generate a Midi time code, would this be seen recorded onto a track. I'm not having any luck with everything I have tried so far.
    Thanks for any help you can give.

    I am about to attempt this with my Alesis HR-16 and MMT-8 combo.  I used to do the same as you, record a code to tape then play it back to trigger the drum machine and sequencer.  I assume it will work the same but I will have to try it hands on to see if it works.
    Try recording the code to AA, then play it back and see if it runs the Alesis.  Then try recording the Alesis back into AA.  Good luck!

  • What's best approach to handle - Sales and Delivery on account without INV

    Hello Experts,
    How to handle this situation in SAP B1 8.8 or 8.81 pleasse.
    1. Customer walks in to the counter for sale on account.
    2. He/She receives the item from inventory and is given a Delivery or sometiype of confirmation printout without price on it. It is not the Invoice - Idea being, delivery pickers need not know the price paid for the item etc.
    3. Eventually Customer company will pay the accumulated sales.
    Thank you.

    Hi,
    For this process, you still need all sales documents. You can create delivery directly for printing without price showed. Then you can copy the delivery to A/R invoice later.
    A better way is to create sales order and then delivery to keep all records in consistent manner.
    Thanks,
    Gordon

  • What is the best approach to insert millions of records?

    Hi,
    What is the best approach to insert millions of record in table.
    If error occurred while inserting the record then how to know which record has failed.
    Thanks & Regards,
    Sunita

    Hello 942793
    There isn't a best approach if you do not provide us the requirements and the environment...
    It depends on what for you is the best.
    Questions:
    1.) Can you disable the Constraints / unique Indexes on the table?
    2.) Is there a possibility to run parallel queries?
    3.) Do you need to know the rows which can not be inserted if the constraints are enabled? Or it is not necessary?
    4.) Do you need it fast or you have time to do it?
    What does "best approach" mean for you?
    Regards,
    David

  • What is the best approach to delete multiple list items

    Hi
    I want to delete multiple list items at once, what is best approach please suggest?
    Ramesh

    Hi Ramesh,
    Better approach for removing many items from a list is to use the ProcessBatchData method provided by the SPWeb class. First, you need a collection of the list items
    you want to remove, and then you can use the Get-SPListItem function to retrieve a list of items that match a given criteria. Then build a batch string with resultant items and call the ProcessBatchData method.
    Here is the sample code.
    function Get-SPList($webUrl, $lstUrl)
    $webObj = Get-SPWeb -identity $webUrl
    $lstObj = $webObj.GetList($lstUrl);
    return $lstObj
    $spList = Get-SPList -webUrl "http://mysitecollecton/MySite" -lstUrl "http://mysitecollecton/MySite/Lists/EmpInfo"
    $spQuery = new-object Microsoft.SharePoint.SPQuery
    $camlQuery =
    "<Where>
    <Eq>
    <FieldRef Name='Department' />
    <Value Type='Text'>HR</Value>
    </Eq>
    </Where>"
    $spQuery.Query = $camlQuery
    $spQuery.RowLimit = 100
    $spListItemCollection = $spList.GetItems($spQuery)
    # Create batch remove CAML query
    $batchRemove = '<?xml version="1.0" encoding="UTF-8"?><Batch>';
    # The command is used for each list item retrieved
    $command = '<Method><SetList Scope="Request">' +
    $spList.ID +'</SetList><SetVar Name="ID">{0}</SetVar>' +
    '<SetVar Name="Cmd">Delete</SetVar></Method>';
    foreach ($item in $spListItemCollection)
    $batchRemove += $command -f $item.Id;
    $batchRemove += "</Batch>";
    # Remove the list items using the batch command
    $spList.ParentWeb.ProcessBatchData($batchRemove) | Out-Null
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Best approach with jsp

    hi,
    i have a scenario that's sending data from jsp.
    i have two options, soap and client java proxy.
    what is best approach for this?,  becasue jsp is calling java which contains coding to call webservice,  so this is similar with client java proxy.
    if you are me,  what is the best?  soap or cleint java proxy?  eventually, soap also proxy.
    please guide me what is big point?  i do not want to get you with basically different point that i know that client java proxy is ejb. soap is wsdl...
    thanks & regards;
    ogawa
    null

    Hi,
    As you already have a J2EE application ( a JSP ), i would suggest that you use Java Proxies for the same to integrate with XI. Proxies allow you to have a better perfromance and so, I would suggest to go with Java Proxies.
    For Java proxies this how to guide would help,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
    Regards
    Bhavesh

  • Best approach to transfer and transform data between two Oracle Instances

    Let me first preface this post with the fact that I am an Oracle newb.
    The current problem I am trying to solve is how to quickly transfer data from a customers legacy database into a new normalized destination that is modeled differently than the legacy data. So, the data not only has to be transferred, but also transformed (into normalized tables)
    We have discovered, the hard way, that reading the data using a C++ application and performing inserts (even with indexing and constraints disabled) is just way too slow for what we need. We are dealing with around 20 million records here. I need to determine what the best approach extracting this data out of the source and inserting it into the destination. Any comments or tips are greatly appreciated.
    Note: I have read about SQL*Loader and mentioned it to management, but they seem resistant to this approach. It's not totally out of the question though.

    Oracle has a lot of technologies that fall under the general heading of "replication" to choose from. Going from a database to a flat file and back to another database is generally not the most efficient solution-- it's generally much easier to go straight from one database to another.
    Oracle provides materialized views, Streams, and Change Data Capture (CDC)-- any of these would be able to give your new system incremental feeds of data from the old system's data and could be used by whatever routines you write to transform the data between data models.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • What is fastest approach to get count of list items ? I need to do something like select (*) from table

    Hi All,
    I have implemented paging on huge list. Grid gets shown 20 items per page but I have to show on grid pager a total count of items. Moreover filters could be applied to the grid. So, total count will depend from filter criteria. What is best approach to do
    something similar to SQL select count (*) from sometable  on SharePoint list?
    Oleg

    Hi,
    According to your description, you want to get the total count of items in current list view.
    There is an OTTB feature  “Totals” in the list view settings, it can count the items existing in the current list view.
    I suggest you do as the followings:
    1. Set the total count for the column in the list view->”Totals”.
    Then, the total item count will show in the list.
    Best regards

  • B2C - best Approach

    I need to create the B2C application which will ahve few input fields & upon clicking the button, I need to get the data from backend(R/3) and display it. This application will be called from eCatalog.
    What is best approach to develop the application? Like using JSP in NWDS or Webdynpro Java/ABAP or Web UI or BSP..
    I need your suggestion on this..
    Thanks
    BM

    Hi Bharathi,
    As you have written you want to create B2C application so are you trying to say that your application will interact with ISA-B2C or you want to create Web application which will fetch data from Backend R/3.
    Your word Create B2C Application actually confusing me.
    Can you give us some more detail about your requirement? Like how user will access this application i.e. it is for public or for internal use. Through SAP Portal or independent web application?
    What is the best approach is depends on your requirement. i.e. if you want to arrange page layout by your own then you should go for JSP as you can include JAva script and it is more flexible compare to WebDynpro also you can use JCO API to get data from Backend.. 
    Forum expert can give you more useful tip on it.
    Regards.
    eCommerce Developer

Maybe you are looking for

  • Moving a method from one class to another issues

    Hi, im new. Let me explain what i am trying to achieve. I am basically trying to move a method from one class to another in order to refactor the code. However every time i do, the program stops working and i am struggling. I have literally tried 30

  • Ipod is Frozen:  Does Not Want to Charge and Be Recognized By The PC

    Yesterday, while I was charging I noticed that the charging sign appeared and the meter was not moving. The charging sign is black not the colored one that we normally see in the 5th gen. Sometimes the apple logo appears and that's it. It's basically

  • Why won't additional pages work when site is published?

    I created a site in iWeb and posted it using FTP to my domain. I created a page before my home page with some pictures and inserted a hyperlink off of a graphic to link to the home page. That link worked great! However, all of the the links in the he

  • Maximum Number of Slides?

    Hello. I'm currently working in both flash and captivate and will be building projects that are close and sometimes over a 100 slides. I know there can be loading issues when the file size gets too big. What is the best strategy to deal with this iss

  • Looking for photo frame with lots of features

    Look for ipad photo frame app. One that will let me display pics from various sources, like facebook, my servers in the home, flickr. Thanks