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<IColumn> columns = new ArrayList<IColumn>(); 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]