Duvida com tomahawk

3 respostas
F

Galera aguem conhece o tomahawk bem ? minha duvida é a seguinte : Por que quando eu tenho uma coluna de numeros ele não ordena corretamente ?

exemplo : em uma coluna tenho os numeros 1 , 5 , 12 , 2, 22 quando eu clico para ordenar ele fica assim 1, 12, 2, 22, 5 parece que ele pega so o primeiro digito....

codigo:
<t:dataTable value="#{relatorioAction.consultarPr}" var="relatorioG" headerClass="cabecalho" rowClasses="odd,even" styleClass="sortable" width="100%" id="relatorioGere">
								<t:column width="120px"> 
									<f:facet name="header">
										<h:outputText value="Filial"/>
									</f:facet>
									 <h:outputText value="#{relatorioG.estabelecimento.descritivo}"/>
								</t:column>
								<t:column width="30px" > 
								
								<f:facet name="popup">
										<t:panelGrid align="left" columns="2" width="300px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
											<h:outputText value="#{requestScope.msg.codigo}" style="font-weight:bold"/>
										</t:panelGrid>
								</f:facet>

									<f:facet name="header">
										 <h:outputText value=" EN "/>
									</f:facet>
									
									
										<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8" dir="rigth">
											
												<h:outputText value="#{relatorioG.st0}" />
											
										<f:facet name="popup">
											<t:panelGrid columns="2" width="150px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
												<h:outputText value="Em Negociação " style="font-weight:bold; color:#000000; font-size:14px" />
											</t:panelGrid>
												</f:facet>
										</t:popup>
									
									
								</t:column>
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" AAP "/>
									</f:facet>
									<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
									
										<h:outputText value="#{relatorioG.st2}"/>
									
										<f:facet name="popup">
												<t:panelGrid columns="2" width="220px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Aguardando Aprovação" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>	
									
								</t:column>
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" AP "/>
									</f:facet>
										<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
										
										<h:outputText value="#{relatorioG.st3}"/>
									
										<f:facet name="popup">
												<t:panelGrid columns="2" width="150px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Aprovados" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>
									
								</t:column>
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" PG "/>
									</f:facet>
										<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
										
											<h:outputText value="#{relatorioG.st6}"/>
								
										<f:facet name="popup">
												<t:panelGrid columns="2" width="220px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Propostas Geradas" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>

								</t:column>
								
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" VNF "/>
									</f:facet>
												<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
										
											<h:outputText value="#{relatorioG.st7}"/>
									
										<f:facet name="popup">
												<t:panelGrid columns="2" width="100px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Vendidas mas não Finalizadas" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>
									
								</t:column>

								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" VF "/>
									</f:facet>
											<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
										
											<h:outputText value="#{relatorioG.st4}"/>
								
										<f:facet name="popup">
												<t:panelGrid columns="2" width="220px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Vendidas e Finalizadas" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>
								
								</t:column>
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" VP "/>
									</f:facet>
											<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
									
											<h:outputText value="#{relatorioG.st5}"/>
										
										<f:facet name="popup">
												<t:panelGrid columns="2" width="220px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Vendas Perdidas" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>
									
								</t:column>
								
								
								<t:column width="30px"> 
									<f:facet name="header">
										<h:outputText value=" TOT "/>
									</f:facet>
												<t:popup closePopupOnExitingElement="true" displayAtDistanceX="8" displayAtDistanceY="8">
										<h:outputText style="font-weight:bold;" value="#{relatorioG.total}"/>
										<f:facet name="popup">
												<t:panelGrid columns="2" width="150px" styleClass="odd" columnClasses="tamanho, normal" cellpadding="0" cellspacing="0" border="0" style="border: solid 1px; border-color: silver;">
													<h:outputText value="Totais" style="font-weight:bold; color:#000000; font-size:14px" />
												</t:panelGrid>
										</f:facet>
									</t:popup>
									
								</t:column>
						
							</t:dataTable>

3 Respostas

tnaires

Ele está ordenando certo. O problema é que ele está ordenando Strings, e não números.

F

e como eu faço para mudar para que ele ordene por numero ?? è possivel ???

R

Fredi onde vc esta ordenando seu DataTable ?

estou com o mesmo problema mais não lista nem String nem numero e tb estou usando Ice Faces


http://www.guj.com.br/posts/list/126372.java#682773

Criado 17 de abril de 2009
Ultima resposta 12 de mai. de 2009
Respostas 3
Participantes 3