You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Stephan Frai <fa...@online.de> on 2008/04/01 17:51:52 UTC

CommandButtons don`t work inside t:dataScroller

Hello,

 

I`m using MyFaces 1.2.2; Orchestra 1.1, Tomahawk 1.1.6 und Faceletes 1.1.13.

 

And CommandButtons do not work inside a table with a t:dataScroller. They
only work on the first page.

On the subsequent pages clicking one of the commandButtons just lets me
return to page 1. No action is called.

 

Is this problem familiar to anyone?

 

MyPage looks like that:

 

<t:dataTable width="483" id="suggestionList" rows="5"
styleClass="standardTable"

                value="#{rpPlanningControllerJSF.suggestions}"
var="suggestion">

            <h:column>

                  <h:panelGrid columns="1">

                        <h:outputText value="#{suggestion.day}:
#{suggestion.start} - #{suggestion.end}"/>

                        <h:outputText
value="#{rpplanningmessages['rpplanning_booking_suggestion_at']}
#{suggestion.resourceName}"/>

                  </h:panelGrid>

            </h:column>

            <h:column>

            

                  <t:commandButton
image="/resources/images/button_accept.gif"

 
action="#{rpPlanningControllerJSF.suggestionChosen}"

                                          immediate="true">

                        <t:updateActionListener
property="#{rpPlanningControllerJSF.chosenSuggestion}"

 
value="#{suggestion}" />

                  </t:commandButton

            </h:column>

</t:dataTable>

<t:dataScroller id="scroll_1"

                    style="margin-left:275px;" for="suggestionList"

                    fastStep="2" pageCountVar="pageCount"

                    pageIndexVar="pageIndex" styleClass="scroller"

                    paginator="false" paginatorMaxPages="9"

                    paginatorActiveColumnStyle="font-weight:bold;"

                    immediate="true">

                <f:facet name="previous">

                  <t:graphicImage
url="/resources/images/button_backward.gif" border="0" />

                </f:facet>

                <f:facet name="next">

                    <t:graphicImage
url="/resources/images/button_forward.gif" border="0" />

                </f:facet>

                <f:facet name="fastforward">

                    <t:graphicImage
url="/resources/images/button_fastforward.gif" border="0" />

                </f:facet>

                <f:facet name="fastrewind">

                    <t:graphicImage
url="/resources/images/button_fastbackward.gif" border="0" />

                </f:facet>

</t:dataScroller>

 

 

Regards,

 

Stephan