How to make reusable component in JSF?

Why don't use this kind of approach. You can use composite attribute. ... ... define your attributes here //add converter if you want Best regards.

In JSF 2.0, creating composite components is a snap. Here is a good tutorial: weblogs.java.net/blog/driscoll/archive/2....

1 thanks for the response. I don't have the technical difficulties in developing a composite component yet, but it's more to how to make this composite component reusable along with it's coupled JSF Bean, that can be used multiple times in a single page. – Albert Kam Apr 28 at 12:23 you can use the composite component as mush as you want in a single page (even if I don't really understand the need).

– Mehrez Marouani Apr 28 at 14:39.

Depending on what you are trying to implement, you could use some "backing component" (=a java class associated to your facelet composite component). See this post: weblogs.java.net/blog/cayhorstmann/archi... Still maybe, depending on what your are really doing, you could probably better define your composite components, mainly using more parameters and a better model for passing values (if needed). I'm lacking some knowledge of your app to give a better advice.

I realize my original post is still lacking. Im going to build a simple clear example to demonstrate my original question soon. Thank you for the suggestion.

– Albert Kam Apr 29 at 9:10 making you example simpler could be useful, but I'm under the impression that a backing component should solve your problem ;-) – ymajoros Apr 29 at 9:51.

Not sure I understand you perfectly, but you might want to pass an argument to the componentComposition you build. Main department : secondary department : Hope it helps...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions