voyent
colspan in icefaces dataTable column  XML
Forum Index -> Components
Author Message
Cyrill

Joined: 13/Apr/2007 00:00:00
Messages: 69
Offline


Hi,

I'm looking for a dataTable component, that has on its column a colspan attribute (and rowspan attribute). As far as I know the ice:column or ice:dataTable doesn't support it.

So now.. is there any workaround or do you recommend to use the dataTable from a different jsf library?

thx & regards

Cyrill
Denis.f


Joined: 25/Jul/2006 00:00:00
Messages: 13
Offline


anyone any idea ?
any workaround ?

We need something like a colspan for column

My problem is that we have datatable with headers, and columns ...
for each column we want to create some sliding details.
But those are to be spanned on all columns

---------|---------|----------|
Head1 Head2 Head3
---------|---------|----------|
Data1 Data2 Data3
-------------------------------
Details in one column
sliding with an effect
---------|---------|----------|
Data1 Data2 Data3
---------|---------|----------|
Data1 Data2 Data3
---------|---------|----------|
Data1 Data2 Data3
Cyrill

Joined: 13/Apr/2007 00:00:00
Messages: 69
Offline


Hi,

No, I didn't find any workaround. I solved my problem with HtmlPanelGrid in a HtmlPanelGrid. But would also prefer a dataTable component which supports colspan :).

regards

cyrill
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


This is a big shortcoming of the JSF standard panelGrid component (imho). I would highly recommend using Facelets, which allows you to much more freely use HTML on your pages, and of course, useful things like the colspan and rowspan attributes.

Philip

.
BornLeo

Joined: 04/Sep/2008 00:00:00
Messages: 40
Offline


Hi All,

Is there any update on this?

Leo.
GabrielLandolfi

Joined: 15/May/2009 00:00:00
Messages: 2
Offline


Hi all,

I wish to programatically create a HtmlPanelGrid with a list of UIComponentBase and setting its column number.

I add to that panel the list of UIComponentBase with getChildren().addAll() method but in some UIComponentBase I need to specify a colspan attribute.

In that way I build some kind of layout for controls in a grid. But I don't know how can set the colspan.

An example may be a textfield address with a longer length that others UIComponentBase.

Attach image of the form and some example code:

Code:
 public HtmlPanelGrid createGrid(List<UIComponent> components) {
 HtmlPanelGrid panel = new HtmlPanelGrid();
 //Some logic to get the maxColumns in this grid
 panel.setColumns(maxColumns);
 panel.getChildren().addAll(components);
 return panel;
 }
 


I wish the address field have a colspan=2 for example.

Sorry for my english.

Many thanks for any help you could bring me.
[Thumb - panelGrid.jpg]
 Filename panelGrid.jpg [Disk] Download
 Description Form with a Address field
 Filesize 27 Kbytes
 Downloaded:  306 time(s)

aprust

Joined: 21/Sep/2011 16:45:17
Messages: 3
Offline


This might be late for original poster, posting the reply so any future users can benefit.

I used variable substitution on <h:outputFormat> to render colspan. its a hack but it works for now :).
here's the example -

<h:outputFormat value="{0} #{item.value} {1} escape="false">
<f:param value="#{bean.begTag}" />
<f:param value="#{bean.clTag}" />
</h:outputFormat>

and my backing bean has begTag defined as "<tr><td colspan='7'>" and clTag as "</td></tr>".

for long term, Datatable should be fixed to allow Colspan.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team