Re: AjaxLazyLoadPanel, nothing else works until it finishes loading
The page will block until the panel is loaded. There are a number of threads discussing this. Here are a couple of gists that allow panel content to be loaded in an asynchronous manner in another thread, thus making the UI appear non-blocking. https://gist.github.com/594468 https://gist.github.com/636875 hope you find them useful. Jonny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-nothing-else-works-until-it-finishes-loading-tp2322202p3058132.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Hi, A little late maybe but since I wrote that wiki page I've improved the code to use models and so be responsive to data changes. Here's a link to a gist providing a wicket component that allows a JFreeChart to be displayed with both tooltips and clickable entities. http://gist.github.com/647285 Jonny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JFreeChart-with-clickable-imagemap-tp2720220p3017976.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Generics and SortableDataProvider
Hi Sven, Thanks for your reply. Since I sent the original question I ended up doing what you suggested and now I'm wondering why I ever used the id projection approach. Habit I guess, formed with previous frameworks. Just to make sure I've got this right, as long as I use a DetachableModel as a return from model method, the domain objects aren't stored in the session even if they are returned from the iterator. Am I correct in this? Jonny svenmeier wrote: > > Hi John, > > I believe the consensus on this list is that you should change your > approach: > > Why don't you just iterate over your domain objects in the first place? > They will be loaded anyway to be displayed on your component. So your > approach triggers 1+n selects instead of 1 select for all required > objects at once. > > Sven > -- View this message in context: http://www.nabble.com/Generics-and-SortableDataProvider-tp25757590p25761751.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: JFreeChart component
Good idea, I wasn't aware the wiki was open. http://cwiki.apache.org/confluence/display/WICKET/JFreeChart+with+clickable+imagemap Hoover, William wrote: > > Why not post your solution to the wiki? > > -Original Message----- > From: jwray [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 5:19 PM > To: users@wicket.apache.org > Subject: Re: JFreeChart component > > > > Err, sort of confused about the last few messages. > > I submitted the component as I thought it would be useful for other > people, and from the emails I've got I guess it was. > > When I had the need to implement a clickable chart a few weeks ago I > looked around for an existing solution, and found none. There were one > or two mentions of dynamic image generation using JFreeChart and, as the > other code posted shows, it's relatively easy to do (eg. from the wicket > wiki http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html). > > What I didn't find, and took me a little time to figure out the best way > to do, was generation of an image map from the chart thus allowing the > chart to by clickable and integrated with a wicket AjaxLink, and > associated callbacks. That's what this component provides, and I hope > people find it useful. > > Jonny > -- > View this message in context: > http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JFreeChart-component-tp20200322p20250967.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JFreeChart component
Err, sort of confused about the last few messages. I submitted the component as I thought it would be useful for other people, and from the emails I've got I guess it was. When I had the need to implement a clickable chart a few weeks ago I looked around for an existing solution, and found none. There were one or two mentions of dynamic image generation using JFreeChart and, as the other code posted shows, it's relatively easy to do (eg. from the wicket wiki http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html). What I didn't find, and took me a little time to figure out the best way to do, was generation of an image map from the chart thus allowing the chart to by clickable and integrated with a wicket AjaxLink, and associated callbacks. That's what this component provides, and I hope people find it useful. Jonny -- View this message in context: http://www.nabble.com/JFreeChart-component-tp20200322p20236096.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JFreeChart component
I looked around wicket stuff and didn't see anything related to JFreeChart. If you think it is suitable for inclusion in wicket-stuff, or elsewhere, then by all means upload it. It's only four classes so I don't think it is worth creating a new project for, and I don't know where it would fit right not. Jonny -- View this message in context: http://www.nabble.com/JFreeChart-component-tp20200322p20220047.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JFreeChart component
Hi, I recently developed a component that displays a chart generated from JFreeChart and includes the associated image map that allows the chart to generate tooltips and respond to user clicks, via an Ajax link. I thought this maybe useful to other people so I've included the files here. To use simply construct the MappedChart with you JFreeChart and provide an implementation of the onClickCallback function to respond to user clicks. Jonny http://www.nabble.com/file/p20200322/MappedChart.java MappedChart.java http://www.nabble.com/file/p20200322/MapArea.java MapArea.java http://www.nabble.com/file/p20200322/DynamicImageMap.java DynamicImageMap.java http://www.nabble.com/file/p20200322/ChartImage.java ChartImage.java http://www.nabble.com/file/p20200322/MappedChart.html MappedChart.html -- View this message in context: http://www.nabble.com/JFreeChart-component-tp20200322p20200322.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modal window and resource request target
Hi, thanks for the prompt reply. Can you give me some details about where to get the URL or request listener from? thanks Jonny Matej Knopp-2 wrote: > > This is a bit tricky thing to do. You'd have to redirect from ajax > request. > > so you could get URL for the request listener and then use > RedirectRequestTarget. > > -Matej > > On Tue, Jul 8, 2008 at 10:23 PM, jwray <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I have the situation in which an action applied to a specific object >> needs >> to obtain some information from the user then construct a dynamic >> resource >> (pdf file) based on the object and obtained information. >> >> The list of object are contained in AjaxFallbackDefaultDataTable and I am >> currently approaching the problem by using a modal window to obtain the >> extra parameters when the user clicks a specific AjaxFallbackLink on a >> table >> row. This works fine but, when I try and stream the constructed resource >> nothing happens. This is the code in my WindowClosedCallback function: >> >> public void onClose(AjaxRequestTarget target) { >> >>if(panel.getNumberOfDays() != null){ >>System.out.println("Visiting resource"); >>TubeLabelsResource resource = new >> TubeLabelsResource(study.getId(), >> searchServices); >>ResourceStreamRequestTarget requestTarget = new >> ResourceStreamRequestTarget(resource.getResourceStream()); >>RequestCycle.get().setRequestTarget(requestTarget); >>} >> } >> >> any pointers as to how to get the resource to stream in the onClose, or >> an >> alternative approach to the problem would be gratefully received. >> >> thanks >> Jonny >> -- >> View this message in context: >> http://www.nabble.com/Modal-window-and-resource-request-target-tp18348263p18348263.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Modal-window-and-resource-request-target-tp18348263p18348836.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modal window and resource request target
Hi, I have the situation in which an action applied to a specific object needs to obtain some information from the user then construct a dynamic resource (pdf file) based on the object and obtained information. The list of object are contained in AjaxFallbackDefaultDataTable and I am currently approaching the problem by using a modal window to obtain the extra parameters when the user clicks a specific AjaxFallbackLink on a table row. This works fine but, when I try and stream the constructed resource nothing happens. This is the code in my WindowClosedCallback function: public void onClose(AjaxRequestTarget target) { if(panel.getNumberOfDays() != null){ System.out.println("Visiting resource"); TubeLabelsResource resource = new TubeLabelsResource(study.getId(), searchServices); ResourceStreamRequestTarget requestTarget = new ResourceStreamRequestTarget(resource.getResourceStream()); RequestCycle.get().setRequestTarget(requestTarget); } } any pointers as to how to get the resource to stream in the onClose, or an alternative approach to the problem would be gratefully received. thanks Jonny -- View this message in context: http://www.nabble.com/Modal-window-and-resource-request-target-tp18348263p18348263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException with AjaxFallbackDefaultDataTable
Antoine, I actually approached the problem from a different direction in the end and avoided this error. But, before I did that I tracked it down to calling super.onSubmit call in the overridden onSubmit method of the AjaxEditableLabel. I didn't get any further than that I'm afraid. hope it helps, Jonny Antoine van Wel wrote: > > Any updates on this one? > > I think I'm experiencing the same issue; I'm building a DataView, in > its nodes there's a TextField with an OnChangeAjaxBehavior added to > it. > > Then, from the RequestCycle, an error occurs when cleaning up the > AjaxRequestTarget, followed by an IllegalStateException: no page found > for component ... referring to this textfield. > > > Thanks, > Antoine. > > -- View this message in context: http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15741718.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException with AjaxFallbackDefaultDataTable
Igor, thanks for the help, I'll have to look at in detail next week. What is odd to me is that I'm not doing anything out of the ordinary. I add the table to the ajax target, and I don't remove any components myself. Jonny igor.vaynberg wrote: > > hm, i still dont see the problem spot > > the error is apparent > > you are adding something to the ajax request target that is then > removed from the page, so when ajaxrequesttarget is trying to detach > the page it cant, because it does > > component.getPage().detach(); > > apparently the component is removed from the page, so getpage() throws > that error you see. > > if i were you i would set a breakpoint at that line, and see what > component exactly is removed from the page, and then try to figure out > why it is removed from the page and yet is added to the ajax target. > > -igor > > > On Feb 8, 2008 9:47 AM, jwray <[EMAIL PROTECTED]> wrote: >> >> Hi Igor, >> >> I was hoping it would be an obvious problem. Here's my table construction >> code (is there a better way of posting code?) >> >> List columns = new ArrayList(); >> PostOnSubmitAction peptideUpdateAction = new PostOnSubmitAction(); >> columns.add(new AjaxEditablePropertyColumn(peptideUpdateAction, new >> Model("Comments"), "comments", "comments", REQUIRED_ROLE)); >> PeptideDataProvider dataProvider = new PeptideDataProvider(service); >> peptideViewTable = new AjaxFallbackDefaultDataTable("dataTable", columns, >> dataProvider, 25); >> >> >> where the PostOnSubmitAction below is called from the onSubmit method of >> the >> AjaxEditableLabel within the AjaxEditablePropertyColumn. I'm attempting >> to >> refresh the table when an OptimisticLockingFailureException occurs (and >> so >> load the data altered by another user). >> >> private class PostOnSubmitAction implements >> AjaxEditablePropertyColumn.PostOnSubmitAction{ >> >> public void postOnSubmit(AjaxRequestTarget target, Object value) >> { >> target.addComponent(getStatusPanel()); >> Peptide peptide = (Peptide)value; >> try{ >> peptideServices.updatePeptide(peptide); >> } >> catch(AccessDeniedException e){ >> String message = "You don't have permission to >> perform this operation"; >> PeptidePage.this.error(message); >> } >> catch(OptimisticLockingFailureException e){ >> String message = "Another user modified this data >> before you. Review the >> new data and resubmit changes if needed."; >> PeptidePage.this.error(message); >> target.addComponent(peptideViewTable); >> } >> catch(RuntimeException e){ >> String message = "An unexpected error occured. >> "+e.getMessage(); >> PeptidePage.this.error(message); >> } >> } >> } >> >> thanks >> Jonny >> >> >> >> igor.vaynberg wrote: >> > >> > some code would help us help you... >> > >> > -igor >> > >> >> -- >> View this message in context: >> http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15360512.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15366611.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException with AjaxFallbackDefaultDataTable
Hi Igor, I was hoping it would be an obvious problem. Here's my table construction code (is there a better way of posting code?) List columns = new ArrayList(); PostOnSubmitAction peptideUpdateAction = new PostOnSubmitAction(); columns.add(new AjaxEditablePropertyColumn(peptideUpdateAction, new Model("Comments"), "comments", "comments", REQUIRED_ROLE)); PeptideDataProvider dataProvider = new PeptideDataProvider(service); peptideViewTable = new AjaxFallbackDefaultDataTable("dataTable", columns, dataProvider, 25); where the PostOnSubmitAction below is called from the onSubmit method of the AjaxEditableLabel within the AjaxEditablePropertyColumn. I'm attempting to refresh the table when an OptimisticLockingFailureException occurs (and so load the data altered by another user). private class PostOnSubmitAction implements AjaxEditablePropertyColumn.PostOnSubmitAction{ public void postOnSubmit(AjaxRequestTarget target, Object value) { target.addComponent(getStatusPanel()); Peptide peptide = (Peptide)value; try{ peptideServices.updatePeptide(peptide); } catch(AccessDeniedException e){ String message = "You don't have permission to perform this operation"; PeptidePage.this.error(message); } catch(OptimisticLockingFailureException e){ String message = "Another user modified this data before you. Review the new data and resubmit changes if needed."; PeptidePage.this.error(message); target.addComponent(peptideViewTable); } catch(RuntimeException e){ String message = "An unexpected error occured. "+e.getMessage(); PeptidePage.this.error(message); } } } thanks Jonny igor.vaynberg wrote: > > some code would help us help you... > > -igor > -- View this message in context: http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15360512.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException with AjaxFallbackDefaultDataTable
Thanks for the reply. I'm sure it does have something to do with ordering, and probably the slightly circular nature of the situation in which an AjaxEditableLabel is embedded within a DataTable cell and then tries to update the containing table by adding the table to the ajax target within its onSubmit method. But, I'm at the limit of my knowledge here about whether such an action should be possible given the wicket component lifecycle. The stack trace is complaining about a cell within the table not having a page, but that is something dealt with by the table, and nothing I do. thanks, Jonny Christian Alejandro Marquez Grabia wrote: > > Are you sure the component has been already added to the page before > calling > the getPage() method? > > On 2/7/08, jwray <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I'm experiencing an IllegalStateException (stack trace below) that I >> can't >> get rid of. I have a AjaxFallbackDefaultDataTable with columns made up of >> an >> extension of PropertyColumn that places an AjaxEditableLabel into the >> cell >> within the populateItem. This works great until I attempt to add the >> table >> itself to the AjaxRequestTarget within the AjaxEditableLabel onSubmit >> method. I need to force a refresh of the table in a specific situation >> (Actually, just the data underlying the table row being edited, but I >> don't >> know a way of doing just that). Even though I get the exception the >> behaviour is as expected, in that the table updates. Other components >> also >> update fine and without exceptions. >> >> Any ideas or other approaches that would avoid this error? >> thanks >> Jonny >> >> Stack Trace: >> >> ERROR [org.apache.wicket.RequestCycle] - there was an error cleaning up >> target [EMAIL PROTECTED] markupIdToComponent >> [{cell427=[MarkupContainer [Co >> mponent id = cell, page = , path = >> 26:cells:4:cell.AjaxEditablePropertyColumn$1]], status3=[MarkupContainer >> [Component id = status, page = net.fiveprim >> e.mtwo.PeptidePage, path = 0:status.FeedbackPanel, isVisible = true, >> isVersioned = false]], dataTable13=[MarkupContainer [Component id = >> dataTable, page = net.f >> iveprime.mtwo.PeptidePage, path = >> 0:tabs:panel:dataTable.AjaxFallbackDefaultDataTable, isVisible = true, >> isVersioned = false]]}], prependJavascript [[]], append >> Javascript [[window.status='';]]. >> java.lang.IllegalStateException: No Page found for component >> [MarkupContainer [Component id = cell, page = , path = >> 26:cells:4:cell.AjaxEditablePropert >> yColumn$1]] >> at org.apache.wicket.Component.getPage(Component.java:1639) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.detach(AjaxRequestTarget.java >> :437) >> at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1046) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1334) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) >> at >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java >> :194) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( >> ServletHandler.java:1084) >> at >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter( >> FilterChainProxy.java:264) >> at >> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter( >> HttpSessionContextIntegrationFilter.java:191) >> at >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter( >> FilterChainProxy.java:274) >> at >> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java >> :148) >> at >> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java >> :90) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( >> ServletHandler.java:1084) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) >> at >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java >> :216) >> at >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >> at >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) >> at >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) >> at >> o
IllegalStateException with AjaxFallbackDefaultDataTable
Hi, I'm experiencing an IllegalStateException (stack trace below) that I can't get rid of. I have a AjaxFallbackDefaultDataTable with columns made up of an extension of PropertyColumn that places an AjaxEditableLabel into the cell within the populateItem. This works great until I attempt to add the table itself to the AjaxRequestTarget within the AjaxEditableLabel onSubmit method. I need to force a refresh of the table in a specific situation (Actually, just the data underlying the table row being edited, but I don't know a way of doing just that). Even though I get the exception the behaviour is as expected, in that the table updates. Other components also update fine and without exceptions. Any ideas or other approaches that would avoid this error? thanks Jonny Stack Trace: ERROR [org.apache.wicket.RequestCycle] - there was an error cleaning up target [EMAIL PROTECTED] markupIdToComponent [{cell427=[MarkupContainer [Co mponent id = cell, page = , path = 26:cells:4:cell.AjaxEditablePropertyColumn$1]], status3=[MarkupContainer [Component id = status, page = net.fiveprim e.mtwo.PeptidePage, path = 0:status.FeedbackPanel, isVisible = true, isVersioned = false]], dataTable13=[MarkupContainer [Component id = dataTable, page = net.f iveprime.mtwo.PeptidePage, path = 0:tabs:panel:dataTable.AjaxFallbackDefaultDataTable, isVisible = true, isVersioned = false]]}], prependJavascript [[]], append Javascript [[window.status='';]]. java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = cell, page = , path = 26:cells:4:cell.AjaxEditablePropert yColumn$1]] at org.apache.wicket.Component.getPage(Component.java:1639) at org.apache.wicket.ajax.AjaxRequestTarget.detach(AjaxRequestTarget.java:437) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1046) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1334) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) -- View this message in context: http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15347366.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Notifying a DataTable that data has changed
Igor, thanks for the reply and pointing me in the direction of a call back and the ajax request target. I've not looked at the request target class in depth yet, so that's probably the piece I was missing. I'll give it a try tomorrow. Jonny igor.vaynberg wrote: > > can you not add an onclose callback to the window that repaints the > datatable by adding it to the ajax request target? > > -igor > > > On Jan 31, 2008 7:47 PM, jwray <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> New to Wicket so this maybe some obvious I'm missing and I'd appreciate >> any >> pointers. >> >> I have an AjaxFallbackDefaultDataTable within a AjaxTabbedPanel backed by >> a >> SortableDataProvider that drags data from a database as needed. One >> column >> of my table contains an AjaxFallbackLink. This link opens up a >> ModelWindow >> by constructing a Panel with the object from the selected row of the >> table >> and setting the model window content before showing the window. The panel >> in >> the model window contains a form for editing properties of the passed in >> object, with two AjaxButtons for OK and Close. OK will take the form >> model >> object and persist it to the database. All this works great, but I can't >> see >> a way of notifying the table, or underlying data provider, that the data >> has >> changed and needs to be refreshed. Any pointers on either how to do this >> or >> an alternative approach? >> >> thanks in advance. >> Jonny >> PS. This is my first attempt at using wicket and it's been refreshingly >> easy >> to get this far. Thanks for a great framework. >> >> -- >> View this message in context: >> http://www.nabble.com/Notifying-a-DataTable-that-data-has-changed-tp15220179p15220179.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Notifying-a-DataTable-that-data-has-changed-tp15220179p15220441.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Notifying a DataTable that data has changed
Hi, New to Wicket so this maybe some obvious I'm missing and I'd appreciate any pointers. I have an AjaxFallbackDefaultDataTable within a AjaxTabbedPanel backed by a SortableDataProvider that drags data from a database as needed. One column of my table contains an AjaxFallbackLink. This link opens up a ModelWindow by constructing a Panel with the object from the selected row of the table and setting the model window content before showing the window. The panel in the model window contains a form for editing properties of the passed in object, with two AjaxButtons for OK and Close. OK will take the form model object and persist it to the database. All this works great, but I can't see a way of notifying the table, or underlying data provider, that the data has changed and needs to be refreshed. Any pointers on either how to do this or an alternative approach? thanks in advance. Jonny PS. This is my first attempt at using wicket and it's been refreshingly easy to get this far. Thanks for a great framework. -- View this message in context: http://www.nabble.com/Notifying-a-DataTable-that-data-has-changed-tp15220179p15220179.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]