• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strachable columns in jsf

 
srinivas palukuri
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to jsf, I have my <t:dataTable> columns has to be dragable by mouse. Means if i click on dataTable column and strach it, it has to strach. Is there any way to acheive this in jsf, if so can you pelase reply me As early as posible.

My code is as follows.

<h:form id="form2" rendered="true">
<center>
<t:panelGroup id="gridPanel1" style="width:100%; height:250px; overflow:auto;" >

<t:dataTable first="0" id="Data" frame="above" bgcolor="#E7E7F7"
cellpadding="5" cellspacing="0" border="1" rows="3" preserveDataModel="false"
value="#{managedBean.studentsCollections}" var="item">
<t:column >
<f:facet name="header">

<t:commandSortHeader columnName="type" arrow="true">
<hutputText value="#{msg.number}" />
</t:commandSortHeader>

</f:facet>
<tutputText value="#{item.number}"/>
</t:column>

<t:column>
<f:facet name="header">
<t:commandSortHeader columnName="type" arrow="true">
<hutputText value="#{msg.name}" />
</t:commandSortHeader>
</f:facet>
<tutputText value="#{item.name}"/>
</t:column>

<t:column >
<f:facet name="header">
<t:commandSortHeader columnName="type" arrow="true">
<hutputText value="#{msg.marks}" />
</t:commandSortHeader>
</f:facet>
<tutputText value="#{item.marks}"/>
</t:column>

</t:dataTable>

<t:dataScroller id="scroll_1"
for="Data"
fastStep="10"
paginator="true"
paginatorMaxPages="9"
paginatorActiveColumnStyle="font-weight:bold;">

<f:facet name="first">
<t:commandButton value="first"/>
</f:facet>
<f:facet name="last">
<t:commandButton value="last"/>
</f:facet>
<f:facet name="previous">
<t:commandButton value="previous"/>
</f:facet>
<f:facet name="next">
<t:commandButton value="next"/>
</f:facet>
<f:facet name="fastforward">
<t:commandButton value="fastforward"/>
</f:facet>
<f:facet name="fastrewind">
<t:commandButton value="fastrewind"/>
</f:facet>
</t:dataScroller>
</t:panelGroup>
</center>
</h:form>

Thanks & regards
srinivasa rao palukuri.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic