Then you'll need to do a binding for the ViewRoot ;) How would JSF know where to put your components, if you don't have them in the template?
regards, Martin On 11/4/05, Rene Ott <[EMAIL PROTECTED]> wrote: > First thanks for the many answers in just one hour :-) > > Why do I need a binding to do this? If I need a binding to for example a > panelgroup this means that on the page the panelgroup gets rendered although > I don't need (or want) it. > > Lets assume I want to create dynamically several outputlinks. With a > panelgroup binding they are all inside a panelgroup. Why cannot I just hang > the outputlinks in UIviewroot and skip all the binding stuff? > > René Ott > > -----Ursprüngliche Nachricht----- > Von: Martin Marinschek [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 4. November 2005 09:49 > An: MyFaces Discussion > Betreff: Re: How to create component without binding? > > What you want to do is do a binding for panelGroup > > and then add children to this panelGroup - with this you can create > extra components. > > code snippet (not compiled except in my head ;): > > public UIComponent getPanelGroup() > { > HtmlPanelGroup panelGroup = new HtmlPanelGroup(); > panelGroup.getChildren().add(new HtmlInputText()); > panelGroup.getChildren().add(new HtmlOutputText()); > ... > > return panelGroup; > } > > regards, > > Martin > > On 11/4/05, Nikita Koselev <[EMAIL PROTECTED]> wrote: > > Can you explain your task better, please. > > > > Nikita > > > > On 04/11/05, Rene Ott <[EMAIL PROTECTED]> wrote: > > > Hello @all, > > > > > > I would like to create dynamically inside a backing bean some > components. > > > Looking around in the net I found only solutions that create a binding > to a > > > component, for example: > > > > > > <h:panelGroup binding="#{my.backingbean}"> > > > ... > > > > > > This means that I always need an existing component like panelGroup for > > > creating with a binding some components. > > > > > > How can I create dynamically components without using a binding (and in > the > > > end an extra component)? > > > > > > Thanks and best regards, > > > René Ott > > > > > > > > > > > > > > -- > > http://www.irian.at > Your JSF powerhouse - > JSF Trainings in English and German > > > > -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German

