You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jorge Vásquez <jv...@3eyegroup.com> on 2006/08/30 23:42:41 UTC

Facet Object creation...

Hi,

I´ve been searching for a class that extends from UIComponent, that is the
one that implements the facelet element, since I have no idea on how to
create a facet from java.

 

For example to create an HtmlOuputText the procedure is the following :

 

HtmlOutputText outputText = (HtmlOutputText)
FacesContext.getCurrentInstance().getApplication(HtmlOutputText.COMPONENT_TY
PE);

 

And then you add it to the parent with the getChildren().add and so on…(I am
using the approach of generating some GUI objects on java code in
combination with the binding attribute)

 

I have no idea on how to create facet objects in a similar manner, any
ideas?

 

Regards to all,

JV

 

 

 

 


RE: Facet Object creation...

Posted by Jorge Vásquez <jv...@3eyegroup.com>.
One more thing,

In case it helps I am referrint to the f:facet tag and I want to generate it
from java:

 

Ex.

                  <f:facet name="searchableLibrariesFolder">

                        <h:panelGroup>

                             <t:graphicImage value="#{node.iconOpen}"

                                   rendered="#{t.nodeExpanded}"
style="border:0px" />

                             <t:graphicImage value="#{node.icon}"

                                   rendered="#{!t.nodeExpanded}"
style="border:0px" />

                             <h:outputText value="#{node.description}"
styleClass="nodeFolder" />

                        </h:panelGroup>

                  </f:facet>

Regards,

JV

  _____  

De: Jorge Vásquez [mailto:jv@3eyegroup.com] 
Enviado el: miércoles, 30 de agosto de 2006 16:43
Para: users@myfaces.apache.org
Asunto: Facet Object creation...

 

Hi,

I´ve been searching for a class that extends from UIComponent, that is the
one that implements the facelet element, since I have no idea on how to
create a facet from java.

 

For example to create an HtmlOuputText the procedure is the following :

 

HtmlOutputText outputText = (HtmlOutputText)
FacesContext.getCurrentInstance().getApplication(HtmlOutputText.COMPONENT_TY
PE);

 

And then you add it to the parent with the getChildren().add and so on…(I am
using the approach of generating some GUI objects on java code in
combination with the binding attribute)

 

I have no idea on how to create facet objects in a similar manner, any
ideas?

 

Regards to all,

JV