voyent
dataTable + ice:column + colspan  XML
Forum Index -> Components
Author Message
pattamuthu

Joined: 07/Feb/2008 00:00:00
Messages: 56
Offline


Is it possible in datatable to display a row after 5 columns.

Like, First i need to display 5 colums data, followed by a row, then again 5 column, is it possible. For reference i have attached the pic file, just loot at the Blue background row, is it possible?
[Thumb - AirSearch.jpg]
 Filename AirSearch.jpg [Disk] Download
 Description
 Filesize 200 Kbytes
 Downloaded:  399 time(s)

radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


I doubt you can do that, but maybe you can put more than 1 table close enough so it appears that it's the same table. Might be hard to have a good allignment of columns this way though...
pattamuthu

Joined: 07/Feb/2008 00:00:00
Messages: 56
Offline


thanks Jakob but the purpose of having data table wont be there, having so many tables. [:)]
pattamuthu

Joined: 07/Feb/2008 00:00:00
Messages: 56
Offline


I tried colspan in this case, how ever it doesnt solve my problem. It doesnt work too
Why?

i used like this
<ice:dataTable var="flite" value="#{FlightsList}" width="100%">
<ice:column colspan="17">

<ice:outputText value="Total #{flite.totalFare} USD | Base #{flite.baseFare} USD | Tax #{flite.tax} USD" />

</ice:column>



<ice:column>
<f:facet name="header">
<ice:outputText value=""/>
</f:facet>
<ice:radio for="flight" index="#{flite.indexNumber}" />
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Date"/>
</f:facet>
<ice:outputText value="#{flite.flightDepDate}" />
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="#"/>
</f:facet>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Air/#"/>
</f:facet>
<ice:outputText value="#{flite.airline}"/>
</ice:column>


<ice:column>
<f:facet name="header">
<ice:outputText value="From"/>
</f:facet>
<ice:outputText value="#{flite.flightOrigin}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="To"/>
</f:facet>
<ice:outputText value="#{flite.flightDestination}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Depart"/>
</f:facet>
<ice:outputText value="#{flite.flightDepTime}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Arr"/>
</f:facet>
<ice:outputText value="#{flite.flightArrTime}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Stops"/>
</f:facet>
<ice:outputText value="#{flite.noOfStops}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Equip"/>
</f:facet>
<ice:outputText value="#{flite.equip}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="%"/>
</f:facet>
<ice:outputText value="#{flite.percentOnTime}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="ETKT"/>
</f:facet>
<ice:outputText value="#{flite.paperTkt}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Journey Time"/>
</f:facet>
<ice:outputText value="#{flite.flightDuration}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="Class"/>
</f:facet>
<ice:outputText value="#{flite.flightClass}"/>
</ice:column>

<ice:column>
<f:facet name="header">
<ice:outputText value="FB"/>
</f:facet>
<ice:outputText value="#{flite.fareBasis}"/>
</ice:column>

<ice:column>
<ice:commandLink value="Fare Rules"
actionListener="#{popup.showFareSummary}"
style="text-decoration:underline" />
</ice:column>

<ice:column>
<ice:commandLink value="Seat Map"
actionListener="#{popup.showSeatMap}"
style="text-decoration:underline" />
</ice:column>

<ice:panelGroup>

<b><ice:outputText value="Total #{flite.totalFare} USD | Base #{flite.baseFare} USD | Tax #{flite.tax} USD" /></b>

</ice:panelGroup>
</ice:dataTable>

But it is displaying as a seperate column
pattamuthu

Joined: 07/Feb/2008 00:00:00
Messages: 56
Offline


Guys please reply i need to solve this by tomorrow. Please guys. Thanks in advance
pattamuthu

Joined: 07/Feb/2008 00:00:00
Messages: 56
Offline


About colspan ---->
This is exactly an html colspan attribute. Due to the iterative nature of the table body, this attribute is not suitable inside the body of the dataTable. So this attribute will only be apply on the columns that are descendent of the colmunGroup component.


So how to use colspan inside dataTable?
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team