google-code-export / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
1 stars 1 forks source link

DroppableAjaxBehavior does not work for updating components with the AjaxRequestTarget object #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adding the DroppableAjaxBehavior to a component
2. overriding the onDrop method
3. calling target.add(someComponentToUpdate)

What is the expected output? What do you see instead?
someComponentToUpdate should be updated but it does not update correctly

What version of the product are you using?
1.1.1

Please provide any additional information below.

Original issue reported on code.google.com by romeo84@gmail.com on 26 Nov 2010 at 4:30

GoogleCodeExporter commented 9 years ago
That's weird: I'm using that behavior for some component and it works ok. Can 
you, please, provide a quick-start illustrating the issue?

Regards,

Ernesto

Original comment by reier...@gmail.com on 26 Nov 2010 at 6:02

GoogleCodeExporter commented 9 years ago
And provide us with the generated html page (as an attachment) where the 
problem exists. Perhaps something is missing.

Original comment by hielke.hoeve on 26 Nov 2010 at 8:09

GoogleCodeExporter commented 9 years ago
this is the code:

item.add(new DroppableAjaxBehavior<ListItem<Task>>()
                {

  private static final long serialVersionUID = -337072729117198318L;

  @Override
  public void onDrop(ListItem<Task> i, AjaxRequestTarget t)
  {
    MyClass toChange = i.getModel().getObject();
    ...
    toChange.save();
    t.addComponent(tasksContainer);
  }
});

item is a ListItem<MyClass> object

This method is inside a ListView populateItem method.

The html file is attached as a txt file.

Thank you for your reply.

Original comment by romeo84@gmail.com on 30 Nov 2010 at 5:07

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, 

Can you give use a complete example (with Java / HTML) please ? (an eclipse 
project for example).

Thank you very much

Regards

Julien Roche

Original comment by roche....@gmail.com on 30 Nov 2010 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 11 May 2011 at 7:19

GoogleCodeExporter commented 9 years ago
issue is older than 1 year, it probably wont be fixed. 

If the problem still exists please reopen issue.

Original comment by hielke.hoeve on 26 Oct 2011 at 7:23