You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by dukeoflions <du...@vanleeuwen.eu.com> on 2007/12/17 23:26:03 UTC
SortActionListener not responding in Tobago
Hi Guys,
I have got Tobago implemented, and when I put a system out println in a bean
i can see it from the console in eclipse,
well i have put on in a form which has a sortactionlistener, but neither the
listner nor the sorter work.
What can be wrong?
This is my form:
<tc:sheet value="#{fileUploadForm.allFiles}" id="sheet"
columns="3*;1*;3*;3*;3*;3*" var="file"
state="#{fileUploadForm.sheetState}"
showHeader="#{fileUploadForm.sheetConfig.sheetShowHeader}"
showRowRange="#{fileUploadForm.sheetConfig.sheetRowPagingPosition}"
showPageRange="#{fileUploadForm.sheetConfig.sheetPagePagingPosition}"
showDirectLinks="#{fileUploadForm.sheetConfig.sheetDirectPagingPosition}"
first="#{fileUploadForm.sheetConfig.sheetFirst}"
rows="#{fileUploadForm.sheetConfig.sheetRows}"
directLinkCount="#{fileUploadForm.sheetConfig.sheetDirectLinkCount}"
stateChangeListener="#{fileUploadForm.stateChangeListener}"
sortActionListener="#{fileUploadForm.sheetSorter}"
selectable="#{fileUploadForm.sheetConfig.selectable}">
<tc:column label="#{msg.fileArrayName}" id="fileId"
sortable="true">
<tc:out value="#{file.fileId}" id="t_fileId" />
</tc:column>
--
View this message in context: http://www.nabble.com/SortActionListener-not-responding-in-Tobago-tp14375790p14375790.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
[Tobago] Sheet: Found component is no ajaxComponent
Posted by florimodo <fl...@gmx.de>.
I got an issue with the sheet component, I cannot sort, swap pages, etc:
[org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener] Found
component is no ajaxComponent
I have already found this message
http://mail-archives.apache.org/mod_mbox/myfaces-users/200709.mbox/%3cbac37a680709060605u11a10fc1qbbeb2cb61734469f@mail.gmail.com%3e
and removed tomahawk-sandbox from my libs.
However, I still get this error, and have know idea where the
AjaxDecodePhaseListener comes from - It is only registered in
tomahawk-sandbox, not in tomahawk.
I have tried to remove tomahawk, too, but that didn't help either.
Here are my libs:
activation.jar
avalon-framework-4.1.3.jar
commons-beanutils-1.7.0.jar
commons-chain-1.1.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.7.jar
commons-el-1.0.jar
commons-email-1.0.jar
commons-fileupload-1.0.jar
commons-io-1.1.jar
commons-lang-2.1.jar
commons-validator-1.3.0.jar
jstl-1.1.0.jar
mail.jar
oro-2.0.8.jar
ostermillerutils_1_06_00.jar
standard-1.1.2.jar
tobago-core-1.0.12.jar
tobago-theme-charlotteville-1.0.12.jar
tobago-theme-hdi-1.0.0.jar
tobago-theme-richmond-1.0.12.jar
tobago-theme-scarborough-1.0.12.jar
tobago-theme-speyside-1.0.12.jar
tobago-theme-standard-1.0.12.jar
tobago-theme-talanx-1.0.1.jar
(tomahawk-1.1.6.jar)
Thanks in advance,
Florian
Re: SortActionListener not responding in Tobago
Posted by Helmut Swaczinna <sw...@wlp-systems.de>.
Hi,
is the signature of the sheetSorter correct? It must be
public void sheetSorter(ActionEvent event)
When you have set a sortactionlistener, you have to implement the sorting
yourself in the sortactionlistener.
Have you had a look at the tobago demo sources?
Regards
Helmut
----- Original Message -----
From: "dukeoflions" <du...@vanleeuwen.eu.com>
To: <us...@myfaces.apache.org>
Sent: Monday, December 17, 2007 11:26 PM
Subject: SortActionListener not responding in Tobago
>
> Hi Guys,
>
> I have got Tobago implemented, and when I put a system out println in a
> bean
> i can see it from the console in eclipse,
> well i have put on in a form which has a sortactionlistener, but neither
> the
> listner nor the sorter work.
>
> What can be wrong?
>
> This is my form:
>
> <tc:sheet value="#{fileUploadForm.allFiles}" id="sheet"
> columns="3*;1*;3*;3*;3*;3*" var="file"
> state="#{fileUploadForm.sheetState}"
> showHeader="#{fileUploadForm.sheetConfig.sheetShowHeader}"
> showRowRange="#{fileUploadForm.sheetConfig.sheetRowPagingPosition}"
> showPageRange="#{fileUploadForm.sheetConfig.sheetPagePagingPosition}"
>
> showDirectLinks="#{fileUploadForm.sheetConfig.sheetDirectPagingPosition}"
> first="#{fileUploadForm.sheetConfig.sheetFirst}"
> rows="#{fileUploadForm.sheetConfig.sheetRows}"
> directLinkCount="#{fileUploadForm.sheetConfig.sheetDirectLinkCount}"
> stateChangeListener="#{fileUploadForm.stateChangeListener}"
> sortActionListener="#{fileUploadForm.sheetSorter}"
> selectable="#{fileUploadForm.sheetConfig.selectable}">
>
> <tc:column label="#{msg.fileArrayName}" id="fileId"
> sortable="true">
> <tc:out value="#{file.fileId}" id="t_fileId" />
> </tc:column>
>
> --
> View this message in context:
> http://www.nabble.com/SortActionListener-not-responding-in-Tobago-tp14375790p14375790.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>