Hi,
the <h:panelGroup ...> tag should render nothing but just the children
if no "style" or "styleClass" attributes are present.
So
<h:panelGroup binding="#{my.backingbean}">
should do.
see:
http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/tlddocs/h/panelGroup.html
regards
Volker
Rene Ott wrote:
> That sounds good ;)
>
> How can I realize this?
>
> <f:view binding="my.backingbean">
>
> Like this?
>
> Does a component exist that acts just like a container for other components
> but itself doesn't get displayed? This way it would be possible to make a
> binding to this component without the need to display the component.
>
> René
>
> -----Ursprüngliche Nachricht-----
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 4. November 2005 11:06
> An: MyFaces Discussion
> Betreff: Re: How to create component without binding?
>
> 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
>
>
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.