Okay, I have no experience whatsoever in creating a custom component, but I just finished reading this http://www.jsftutorials.net/components/step1.html guide on creating custom components.
What I want to achieve is to customize the outputText component wherein any value of the outputText component will be compared to a string that is a value of a new attribute called matchString. Lets say the value in your outputText is "Mary had a little lamb." and the value of the matchString attribute is "lamb" (or it can be value binding also), what I would like to do is to change the color of the word "lamb" found in the "Mary had a little lamb" kinda value of the outputText (so when it is displayed the lamb word is hihglighted). My question is where do i place this code all together? I've read about having a Tag Class and a Component class and Im still trying to digest the idea. Where do you put the code(what method of the class) that takes care of outputting the value of outputText? My idea is to get the value of the value attribute then do some match and compare with the matchString vlaue, maybe via regex, then specifically write the html that will produce the different color for that match...I hope someone out there is generous enough to produce just a pseudocode that could guide me in creating this custom component...thanks... -- View this message in context: http://www.nabble.com/custom-outputText-tf4348406.html#a12389254 Sent from the MyFaces - Users mailing list archive at Nabble.com.

