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<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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to