Search code examples
javajsffacelets

Are custom facelet functions dirty?


I have several places in my facelets web app where we are using custom facelet functions. For some reason they feel dirty and I can't quite peg why. What is StackOverflow's view of custom facelet functions?


Solution

  • I can see how you might think that. I think excessive use of such functions is probably poor design. However, there are cases where your life is just easier defining a custom facelet function; therefore you shouldn't dismiss them out of hand.