tags:

views:

35

answers:

1

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?

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
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
@Don this obviously works for JSPs, but I'm not that sure about JSF. After all, JSF components also have state.
seanizer
@seanizer Indeed, I don't know all the details of combining JSF and Wicket, and would prefer to just stick with Wicket.
Don Roby
same here. I'm never going back to JSF...
seanizer