You can easily achieve this by using @Datamodel and @DataModelSelection
Read the seam documentation on usage.