Sorry for that, I had problem with keyboard:
Its conclusion of my post:

anonymous wrote : 
  | Hi guys,
  | 
  | I just start using tomahawk components and have some questions about 
dataScroller.
  | 
  | Situation:
  | I have a page that contain a t:dataTable and the corresponding 
t:dataScroller that do the navigation of the table.
  | Problem is with my actionListener...here is source code:
  | 
  | 
  |   | <t:dataTable id="questionsTable"
  |   |                          styleClass="scrollerTable"
  |   |                          headerClass="standardTable_Header"
  |   |                          footerClass="standardTable_Header"
  |   |                          
rowClasses="standardTable_Row1,standardTable_Row2"
  |   |                          
columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
  |   |                              rows="#{questionsAction.maxRows}"
  |   |                              var="question"
  |   |                              value="#{questionList}"                    
     
  |   |                                  preserveDataModel="true"        
  |   |                                  preserveSort="false"              
  |   |                              style="border: none; width: 100%;"
  |   |                          cellpadding="0"
  |   |                          cellspacing="0">
  |   | 
  |   | <h:column>
  |   |         <f:facet name="header">
  |   |         <h:outputText 
value="#{messages['questionsAction.questionList.header.name']}"/>
  |   |         </f:facet>
  |   |         <s:link value="#{question.topic}" 
action="#{questionsAction.question}"/>
  |   | </h:column>     
  |   | 
  |   | </t:dataTable>
  |   |         
  |   |         
  |   | <h:panelGrid columns="1" styleClass="scrollerTable" 
columnClasses="standardTable_ColumnCentered">
  |   |                         <t:dataScroller id="questionsScroller"
  |   |                                                 for="questionsTable"
  |   |                                                 fastStep="10"
  |   |                                                 pageCountVar="pageCount"
  |   |                                                 pageIndexVar="pageIndex"
  |   |                             styleClass="scroller"
  |   |                                                 style="border: none;"
  |   |                                                 paginator="true"
  |   |                                                 
paginatorTableClass="paginator"
  |   |                                                 paginatorMaxPages="5"
  |   |                                             immediate="true">
  |   |    <f:actionListener type="pl.fargo.expert.business.QuestionsAction"/>
  |   | 
  |   | <f:facet name="first">
  |   | <h:graphicImage value="/images/arrow-first.gif" style="border: none;" />
  |   | </f:facet>
  |   | 
  |   | <f:facet name="last">
  |   | <t:graphicImage url="/images/arrow-last.gif" style="border: none;"/>    
  |   | </f:facet>
  |   | 
  |   | <f:facet name="previous">
  |   | t:graphicImage url="/images/arrow-previous.gif" style="border: none;"/> 
  |   | </f:facet>
  |   | 
  |   | <f:facet name="next">
  |   | <t:graphicImage url="/images/arrow-next.gif" style="border: none;"/>
  |   | </f:facet>
  |   | 
  |   | <f:facet name="fastforward">
  |   | <t:graphicImage url="/images/arrow-ff.gif" style="border: none;"/>      
  |   | </f:facet>
  |   | 
  |   | <f:facet name="fastrewind">
  |   |      <t:graphicImage url="/images/arrow-fr.gif" style="border: none;"/> 
  |   | </f:facet>
  |   | </t:dataScroller>
  |   | </h:panelGrid>
  |   | 
  | 
  | ActionListener:
  | 
  |   | public void processAction(ActionEvent event) throws 
AbortProcessingException
  |   |         {   
  |   |                     String current = event.getComponent().getId();
  |   |                     FacesContext context = 
FacesContext.getCurrentInstance();
  |   |                     
  |   |                     if(event instanceof 
org.apache.myfaces.custom.datascroller.ScrollerActionEvent) {
  |   |                         System.out.println("1: " + 
((ScrollerActionEvent)event).getPageIndex());
  |   |                         System.out.println("2: " + 
((ScrollerActionEvent)event));
  |   |                         System.out.println("3: " + 
((ScrollerActionEvent)event).getScrollerfacet());
  |   |                         
  |   |                     }
  |   | 
  | 
  | 
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983411#3983411

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983411
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to