Is there way I can combine a JSF component and a Wicket component in the same web page?
I have a menu bar component created in Wicket and a form component is created in JSF.
I have to combine these two components in one page, is it possible?
views:
35answers:
1
A:
Yes, it's possible.
I'd need to know a bit more about your situation to give much real advice, but this wiki entry indicates one possible tactic.
Cobbling things together this way is not likely to be the best approach though. If you can't easily make a wicket component that does the same thing as your jsf component (or vice versa), you've probably got too much logic in your presentation code.
Move as much of the work as you can into plain old java classes, and see if you can just use one framework.
Don Roby
2010-10-28 00:38:25
Thanks @Don. This wiki link is interesting. I am creating an application where there is in admin page. For which functionality is already defined in another application with JSF component. For ex:adding user, role etc... For this reason I want to use JSF component in Wicket page
goutham
2010-10-28 00:51:54
@Don this obviously works for JSPs, but I'm not that sure about JSF. After all, JSF components also have state.
seanizer
2010-10-28 10:24:46
@seanizer Indeed, I don't know all the details of combining JSF and Wicket, and would prefer to just stick with Wicket.
Don Roby
2010-10-28 10:56:52
same here. I'm never going back to JSF...
seanizer
2010-10-28 10:59:08