You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Brummeline Braaten <br...@gmail.com> on 2007/07/04 12:54:38 UTC

Re: t:dataScroller doesn't work

> 
> Here, you can see what code I have, I hope it will help you: 
>  
> 
> <t:dataTable styleClass="porcen100 vtop" 
> id="serviceIdDocument_tab" 
> bgcolor="#AEB8D4" cellspacing="1" cellpadding="0" border="0"
> headerClass="list-header" 
> rowClasses="datos_impar_off,datos_par_off" 
> var="serviceIdDocumentList"
> value="#{servicesServiceByPkBean.serviceIdDocumentList}"
> binding="#{servicesServiceByPkBean.lstServiceIdDocumentData}"
> preserveDataModel="true"
> rows="5"
> sortColumn="#{servicesServiceByPkBean.column}" 
> sortAscending="#{servicesServiceByPkBean.ascending}"
> preserveSort="true"
> columnClasses="hleft porcen45, hleft porcen45, hcenter porcen10">
> 
> <f:facet name="header">
> <t:outputText value="#{msg.documentos_servicio}" styleClass="tab3_on" />
> </f:facet>
> 
> <%-- Referencia Documento --%>
> <h:column>
> <f:facet name="header">
> <t:commandSortHeader columnName="idDocument" arrow="true" immediate="false">
> <t:outputText value="#{msg.referencia}" styleClass="tab3_on" />
> </t:commandSortHeader>
> </f:facet>
> <h:outputText value="#{serviceIdDocumentList.sid}"
styleClass="text_popup_miembros"/>
> </h:column>
> 
> <%-- Nombre Documento --%>
> <h:column>
> <f:facet name="header">
> <t:commandSortHeader columnName="idDocumentDM" arrow="true" immediate="false">
> <t:outputText value="#{msg.documento}" styleClass="tab3_on" />
> </t:commandSortHeader>
> </f:facet>
> <t:popup styleClass="popup_miembros" 
> closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true"
> displayAtDistanceX="10"
> displayAtDistanceY="10" >
> <t:outputText id="description" value="#{serviceIdDocumentList.idDocumentDM}"
escape="false">
> <xxx:truncateOutput truncateAt="35" continuationMark="..."/>
> </t:outputText>
> <f:facet name="popup">
> <h:panelGroup >
> <h:panelGrid columns="1" >
> <h:outputText value="#{serviceIdDocumentList.idDocumentDM}"
styleClass="text_popup_miembros"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </t:popup>
> </h:column>
> 
> <!-- Boton Ver Documentos -->
> <h:column>
> <f:facet name="header">
> <t:outputText value="" styleClass="tab3_on" />
> </f:facet>
> <h:selectBooleanCheckbox id="sel"
value="#{serviceIdDocumentList.selected}"></h:selectBooleanCheckbox>
> </h:column>
> </t:dataTable>
> 
> <%-- Paginacion --%>
> <t:dataScroller for="serviceIdDocument_tab"
> pageCountVar="pageCount"
> pageIndexVar="pageIndex"
> styleClass="tit_tab hcenter"
> paginator="false"
> paginatorTableClass="tit_tab porcen100"
> paginatorActiveColumnStyle="font-weight:bold;"
> rowsCountVar="rowsCount">
> <f:facet name="first" >
> <t:popup styleClass="popup_miembros" closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true"
> displayAtDistanceX="10"
> displayAtDistanceY="10" >
> <t:graphicImage url="/imagenes/btn_ini_pag.gif" border="0"
style="margin-left:310px;" />
> <f:facet name="popup">
> <h:panelGroup >
> <h:panelGrid columns="1" >
> <h:outputText value="#{msg.primera}" styleClass="text_popup_miembros"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </t:popup>
> </f:facet>
> <f:facet name="last">
> <t:popup styleClass="popup_miembros" closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true"
> displayAtDistanceX="10"
> displayAtDistanceY="10" >
> <t:graphicImage url="/imagenes/btn_fin_pag.gif" border="0" />
> <f:facet name="popup">
> <h:panelGroup >
> <h:panelGrid columns="1" >
> <h:outputText value="#{msg.ultima}" styleClass="text_popup_miembros"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </t:popup>
> </f:facet>
> <f:facet name="previous">
> <t:popup styleClass="popup_miembros" closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true"
> displayAtDistanceX="10"
> displayAtDistanceY="10" >
> <t:graphicImage url="/imagenes/btn_ant_pag.gif" border="0" />
> <f:facet name="popup">
> <h:panelGroup >
> <h:panelGrid columns="1" >
> <h:outputText value="#{msg.anterior}" styleClass="text_popup_miembros"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </t:popup>
> </f:facet>
> <f:facet name="next">
> <t:popup styleClass="popup_miembros" closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true"
> displayAtDistanceX="10"
> displayAtDistanceY="10" >
> <t:graphicImage url="/imagenes/btn_prox_pag.gif" border="0" />
> <f:facet name="popup">
> <h:panelGroup >
> <h:panelGrid columns="1" >
> <h:outputText value="#{msg.siguiente}" styleClass="text_popup_miembros"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </t:popup>
> </f:facet>
> <h:outputFormat value="Pág {0} de {1} ( {2} registros)" styleClass="hcenter
tit_tab" >
> <f:param value="#{pageIndex}" />
> <f:param value="#{pageCount}" />
> <f:param value="#{rowsCount}" />
> </h:outputFormat>
> </t:dataScroller>
>  
> I only have a datascroller, I read once having two could create some problem...
>  
> Good luck!!
> 
> 
>  
> ----- Mensaje original ----De: Brummeline Braaten <brummeline <at>
gmail.com>Para: users <at> myfaces.apache.orgEnviado: lunes, 25 de junio, 2007
9:51:31Asunto: Re: t:dataScroller doesn't work> Try to delete immediate="true"
attribute from dataScroller. I have the samecode as you and it works.-----
Mensaje original ----I tried to delete the immediate="true" but then I get this
error: javax.servlet.ServletException: /innhold/metodevarselliste2.jsp(47,12)
Unable to find setter method for attribute:
actionListener    javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
> 
> 
> 
> LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1
céntimo por minuto.http://es.voice.yahoo.com
> 
I sort of godt the datascroller to work with the code you can see 
below, but the images are not showing. What can be the cause of this?
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@page buffer="none"%>
<f:loadBundle var="msg" basename="no.naks.web.jsf.messages"/>
<h:form>
<div id="fane">
	<div class="faneinnhold">
		<div id="overskrift">Registrerte metodevarsler</div>
		<h:panelGroup id="panel">
		<t:dataTable var="notices" id="adminliste" 
binding="#{notice.noticeTable}" rows="#{notice.numNoticePage}" 
styleClass="metodevarselliste">
    		<h:column id="idkolonne">
      			<f:facet name="header">
					<h:outputText id="idheader" 
value="#{msg.varsel_id}"></h:outputText>
				</f:facet> 
	  			<h:commandLink id="noteclink" 
binding="#{notice.noticeLink}" action="#{notice.getNoticeDetail}" >
					<h:outputText id="adminident" 
value="#{notices.noticeId}"></h:outputText>
  	  			</h:commandLink>
    		</h:column>
     		<h:column id="tittelkolonne" >
      			<f:facet name="header">
   					<h:outputText id="tittelheader" 
value="#{msg.varsel_tittel}"></h:outputText>
				</f:facet> 
				<h:outputText id="tittel" value="#{notices.title}"></h:outputText>
    		</h:column>
     		<h:column id="datokolonne" >
      			<f:facet name="header">
					<h:outputText id="datoheader" 
value="#{msg.varsel_utarbeidelsesdato}"></h:outputText>
				</f:facet> 
				<h:outputText id="produsertdato" 
value="#{notices.produceDate}" ><f:convertDateTime/></h:outputText>
    		</h:column>
    		<h:column id="datopubkolonne" >
      			<f:facet name="header">
					<h:outputText id="datopubheader" 
value="#{msg.varsel_publisertdato}"></h:outputText>
				</f:facet> 
				<h:outputText id="publisertdato" 
value="#{notices.produceDate}" ><f:convertDateTime/></h:outputText>
    		</h:column>
        	<h:column id="eierkolonne" >
      			<f:facet name="header">
   					<h:outputText id="eierheader" 
value="#{msg.varsel_metodeeier}"></h:outputText>
				</f:facet> 
				<h:outputText id="owner" 
value="#{notices.ownerName}"></h:outputText>
    		</h:column>
    	</t:dataTable>
    
    	<h:panelGrid id="panel2" columns="1" styleClass="scrollerTable2" 
columnClasses="standardTable_ColumnCentered" >
     
            <t:dataScroller id="varselscroller"
        for="adminliste"
        fastStep="3"
        pageCountVar="pageCount"
        pageIndexVar="pageIndex"
        styleClass="scroller"
        paginator="true"
        paginatorMaxPages="20"
        paginatorTableClass="paginator"
        paginatorActiveColumnStyle="font-weight:bold;"
     >
    <f:facet name="firstfacet">
        <t:graphicImage url="../images/arrow-first.gif" border="1" id="first"/>
    </f:facet>
    <f:facet name="lastfacet">
        <t:graphicImage url="../images/arrow-last.gif" border="1" id="last"/>
    </f:facet>
    <f:facet name="previousfacet">
        <t:graphicImage url="../images/arrow-previous.gif" border="1" 
id="previous"/>
    </f:facet>
    <f:facet name="nextfacet">
        <t:graphicImage url="../images/arrow-next.gif" border="1" id="next"/>
    </f:facet>
    <f:facet name="fastforwardfacet">
        <t:graphicImage url="../images/arrow-ff.gif" border="1" id="fastf"/>
    </f:facet>
    <f:facet name="fastrewindfacet">
        <t:graphicImage url="../images/arrow-fr.gif" border="1" id="fastr"/>
    </f:facet>
</t:dataScroller>
        </h:panelGrid>
    	</h:panelGroup>
</div>
</div>
</h:form>