Frank,

I am assuming that you want to use something like the
CompoundPropertyModel?  By default, if a component does not have a
model, it searches through its component hierachy until it finds a
model.  Therefore, you should be able to just add the model to the page
and not add a model to the text boxes.

Thanks,

Frank Silbermann wrote:
> Suppose I have defined a MyPanel that contains two Wicket components:
> textBoxA and textBoxB.
>  
> My page contains two instances of MyPanel - myPanel1 and myPanel2.
>  
> How do I define my page's ComponentModel so that all four textboxes -
> myPanel1.textBoxA, myPanel2.textBoxA, myPanel1.textBoxB and
> myPanel2.textBoxB - can inherit their models from it?
>  
> 


-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to