-
1. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 12, 2009 5:41 AM (in response to fzurheid)1) do you have a form control?
2) paste full page code if 1) is not the case. -
2. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 12, 2009 5:51 AM (in response to fzurheid)<a4j:keepAlive beanName="checkWSLBean" /> <a4j:form ajaxSubmit="true"> <rich:panel style="width: 800px;"> <f:facet name="header"> <h:selectOneListbox value="#{checkWSLBean.selectedWSL}" size="1" styleClass="selection"> <f:selectItems value="#{checkWSLBean.authfiles}" /> <a4j:support event="onchange" ajaxSingle="true" reRender="wslfile,buttons" actionListener="#{readWSLBean.ReadWSL}"> <a4j:status forceId="true" onstart="javascript:Richfaces.showModalPanel('loadMessage');" onstop="javascript:Richfaces.hideModalPanel('loadMessage');" /> </a4j:support> </h:selectOneListbox> </f:facet> <a4j:outputPanel id="wslfile"> <rich:scrollableDataTable width="750px" height="648px;" value="#{readWSLBean.employees}" var="employee" binding="#{readWSLBean.table}" selection="#{readWSLBean.selection}" rendered="#{readWSLBean.renderTable}" columnClasses="cdsid,last,first,company,emptype" > <rich:column width="80px"> <f:facet name="header"> <h:outputText value="CDSID" /> </f:facet> <h:outputText value="#{employee.cdsid}" /> </rich:column> <rich:column width="160px"> <f:facet name="header"> <h:outputText value="Nachname" /> </f:facet> <h:outputText value="#{employee.lastname}" /> </rich:column> <rich:column width="120px"> <f:facet name="header"> <h:outputText value="Vorname" /> </f:facet> <h:outputText value="#{employee.firstname}" /> </rich:column> <rich:column width="260px"> <f:facet name="header"> <h:outputText value="Company" /> </f:facet> <h:outputText value="#{employee.company}" /> </rich:column> <rich:column width="60px"> <f:facet name="header"> <h:outputText value="Type" /> </f:facet> <h:outputText value="#{employee.emptype}" /> </rich:column> </rich:scrollableDataTable> </a4j:outputPanel> <h:panelGrid id="buttons" columns="2"> <h:panelGroup> <a4j:commandButton value="Refresh Table" ajaxSingle="true" reRender="wslfile" actionListener="#{readWSLBean.refreshWSLTable}" > <a4j:status forceId="true" onstart="javascript:Richfaces.showModalPanel('loadMessage');" onstop="javascript:Richfaces.hideModalPanel('loadMessage');" /> </a4j:commandButton> </h:panelGroup> <h:panelGroup> <a4j:commandButton value="Delete Selected ID(s)" action="#{readWSLBean.deleteSelectedEmployees}" reRender="wslfile" ajaxSingle="true" /> </h:panelGroup> </h:panelGrid> </rich:panel> </a4j:form> <rich:modalPanel id="loadMessage" autosized="true"> <div class="loadMessageText"> <h:outputText value="Loading data, please wait ..." /> </div> </rich:modalPanel>
-
3. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 12, 2009 6:34 AM (in response to fzurheid)Remove ajaxSubmit = true from the form - it has no sence if a4j:controls used for submit.
If not helps try to remove binding from the table just for test. (and b.t.w. which scope it has) -
4. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 12, 2009 7:51 AM (in response to fzurheid)I still get the same error message. The scope is "request".
-
5. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 12, 2009 8:04 AM (in response to fzurheid)try also add layout="block" to outputPanel
-
6. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 12, 2009 8:17 AM (in response to fzurheid)sorry - doesn't make any difference - still same error
-
7. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 12, 2009 10:34 AM (in response to fzurheid)Ilja,
any other idea, please let me know.
Thanks, Fabian -
8. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 13, 2009 5:56 AM (in response to fzurheid)do you have any external js libraries includes to the page?
-
9. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 13, 2009 6:16 AM (in response to fzurheid)no - just a css file
-
10. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 13, 2009 7:57 AM (in response to fzurheid)please create war sample for me then and share using sendspace.com
-
11. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 13, 2009 8:19 AM (in response to fzurheid)done
-
12. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 13, 2009 10:16 AM (in response to fzurheid)running failed because project lacks resources which fetched there
String basedir = Tools.baseDIR();
authfiles = new ArrayList();
authfiles.add(new SelectItem(null, "Please select a carline"));
File base = new File(basedir);
File[] baseList = base.listFiles();
Arrays.sort(baseList); -
13. Re: Process selected rows from ScrollableDataTable
fzurheid Oct 13, 2009 10:31 AM (in response to fzurheid)Ilya,
sure - but can you see, if I made any mistake or so - please let me know.
Thanks, Fabian -
14. Re: Process selected rows from ScrollableDataTable
ilya_shaikovsky Oct 14, 2009 9:35 AM (in response to fzurheid)sorry, but overal code looks normally, and I can't run it to investigate. So please provide sample based on mock data.