dear wicketeers,

i'm facing a problem with page composition where i cant find an elegant
solution; i hope i can explain it comprehensible:

i have a panel named CustomerInfo.

there are 5 types of customers in the application.

most of the CustomerInfo.html is the same for all types of customers -
except three div's:
DetailInfo, SpecialInfo and AdditionalInfo

these two div's contain different html and different components for each
type of customer;

one way would be to create 15 different panels (DetailInfoCustomerType1,
DetailInfoCustomerType2, DetailInfoCustomerType3, ....,
SpecialInfoCustomerType1, .....)
then, in CustomerInfo-panel i would include the right 3 panels depending on
the customer type, e.g. (DetailInfoCustomerType1, SpecialInfoCustomerType1,
AdditionalInfoCustomerType1);

ok, its no good idea to have 15 separate panels, i want to group the 3
html-snippets together (Detail, Special, Additional)

how can i achieve this? as i understood, neither panels, nor fragments nor
borders can be used for this.
how could a parent container ( "CustomerInfo" ) fill 3 different areas (the
3 div's) with 3 different fragments of a child (e.g.
DetailInfoCustomerType2, SpecialInfoCustomerType2,
AdditionalInfoCustomerType2)?

if the 3 different areas were contiguous/adjacent i could use simple page
inheritance, bc then the parent container pulls out the whole child's
content with <wicket:child/> .

in my case i needed sth like <wicket:child id="detailInfo"/> .........<much
html/>...<wicket:child id="specialInfo"/> .........<much
html/>...<wicket:child id="additionalInfo"/> .........
where with <wicket:child id="xxx"/> the parent would only include the part
of the child with wicket:id "xxx"

thxinadvance,uwe!

Reply via email to