Re: RE: BSelect and <input> elements of type radio and checkbox?

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,

maybe I'm missing something here - but actually everything you need is already 
there. Look at my form-repopulation-example. It should even be possible to 
either render a select or checkbox/radiobutton group, putting the decision to 
the designer.

The only inconvenience is that for every list-driven component, you have to 
manually add the resulting child model to the BTemplate.

I once thought of introducing an interface called ChildModelContainer (anybody 
a better name?). 

public interface ChildModelContainer {

	public List getChildModels();
}

If a BTemplate.addModel() encounters a ChildModelContainer implementing model, 
it recursively adds the child-models to itself.

Then things should work perfecly. 

Diez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.