I have Facing proble in adding Facet in table through the Back -Bean in JSF.
sharad ahire
Greenhorn
Joined: Sep 07, 2008
Posts: 1
posted
0
I have created Table dynamically in Back-Bean of JSF page.I was creating table using table using following code ---------------------------------------- private Table table = new Table(); private TableRowGroup tableRowGroup = new TableRowGroup(); table.setId("table1"); // Create the Table Row group dynamically
------------------------------------------------------- there is method "table.getFacet()" but there in no method yo add the "Facet" inside table. the reason behind using facet is that i have to add panelGroup which will have three buttons .
Please help me....
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Which component library are you usiung? The classes you mentioned are not recognizeable as a standard JSF implementation. All you need to do is to consult the API documentation of the JSF component library in question. There might be a setFooter() method where you can set the footer facet of the table.
I have a problem like this too. I'm using the ICEfaces framework and creating a collapsible panel in a kind of form generator class. My code is as follows:
After this there isn't any clear indication of how to set the facet needed for the header. No getHeader method. The only two methods that have anything to do with the facet is getFacet(String arg0) (returns UIComponent) and getFacets() (returns Map<String, UIComponent>.
Now there's two possibilities that I'm seeing here:
getFacet("header").getChildren().add(new UIComponent() or whatever);
getFacets().put("header", new ??? facet UIComponent object());
The questions that remain is does the header facet automatically get created in which case we can just use the first option or do we have to create it and what object do we then use to create that header facet.
Be or don't be.
Keith Hudson
Greenhorn
Joined: Mar 31, 2009
Posts: 1
posted
0
Chris Tiearney wrote:
Now there's two possibilities that I'm seeing here:
getFacet("header").getChildren().add(new UIComponent() or whatever);
getFacets().put("header", new ??? facet UIComponent object());
I was stuck on this all morning but finally figured it out.
Yes, the second suggestion is how you want to do it:
Here is a code example:
That will put the Text and the Image on the tab together like this: Here is my label[image].
Hope this helps.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: I have Facing proble in adding Facet in table through the Back -Bean in JSF.