Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-18 Thread TahitianGabriel

This wicket-tree seems really nice. Well done!

Why isn't it in wicketstuff? It may even replace the headache swing
wicket-extension one (in 1.5?)...

Regards,

Gabriel.



svenmeier wrote:
 
 
 advertisement
 ... you should definitely take a look at 
 http://code.google.com/p/wicket-tree .
 /advertisement
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-Tree-Model-on-Ajax-timer.-What%27s-wrong---tp25468038p25513102.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: Update Tree Model on Ajax timer. What's wrong ?

2009-09-18 Thread Sven Meier

 This wicket-tree seems really nice. Well done!

Thanks - Wicket makes it really easy to build reusable components.

 Why isn't it in wicketstuff? It may even replace the headache swing 
wicket-extension one (in 1.5?)...


Well, Sourceforge isn't the only place for projects.
IMHO some Wicket components (mainly in extensions) need a major overhaul 
and new independent projects like wicket-tree can prove how things can 
be solved differently (better?).
I'm just in progress of publishing another Wicket library and after that 
I'm planning to tackle another headache.


If 1.5 shall include a replacement for the current tree components, I'm 
the first to volunteer with a contribution.


Regards

Sven

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-18 Thread TahitianGabriel

Well Wicketstuuf is nice because we can find many wicket components in one
place.
I was not aware of your wicket-tree until today thanks to this post.

I believe that projects in wicketstuff are not dependent to the wicket
core/extension projet.

Also I've got trouble with tortoiseSVN every time I tried to checkout a
project from codegoogle!
:-((





svenmeier wrote:
 
 Well, Sourceforge isn't the only place for projects.
 IMHO some Wicket components (mainly in extensions) need a major overhaul 
 and new independent projects like wicket-tree can prove how things can 
 be solved differently (better?).
 I'm just in progress of publishing another Wicket library and after that 
 I'm planning to tackle another headache.
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-Tree-Model-on-Ajax-timer.-What%27s-wrong---tp25468038p25515942.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: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Matthias Keller

Hi Eric

I've never used a Tree before and I don't know the 
AjaxSelfUpdatingTimerBehaviour, but shouldn't you add all changed 
elements to 'target' like in all other AJAX calls I've ever encountered 
before? Wicket usually updates those things that are added to the 
AjaxRequestTarget.


Matt

Eric Bouer wrote:

Hello.
Preface: Wicket Tree is very confusing since it's some kind of hybrid between 
swing Tree model and wicket tree so please forgive me for any 
stupid/irrelevant questions.


I created a tree with a model based on database schema.I'm trying to refresh  
the tree so that it will change node names after some DB update.
I added AJAX timer to self update the tree , the ajax stuff work but it doesn't 
even try to update the model.

To create my tree I have this on my page:
tree = new TreeTable(treeTable, createTreeModel(), columns);
tree.getTreeState().setAllowSelectMultiple(true); 
tree.setOutputMarkupId(true);

add(tree);
tree.add(new AjaxSelfUpdatingTimerBehavior(Duration.ONE_SECOND) {
@Override
protected void onPostProcessTarget(AjaxRequestTarget target) {
super.onPostProcessTarget(target);
VectorObject p = new VectorObject();
//To keep it simple. I'm only trying to update the root.
p.add(tree.getModel().getObject().getRoot()); 
TreeModelEvent event = new TreeModelEvent(tree,p.toArray());

tree.treeNodesChanged(event);
});
}
Nothing get updates.
I tried adding customized TreeModelListener however it doesn't get called at 
all.

Any idea or reference to documentation that explain this?
Thanks.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Sven Meier

Hi Eric,

if Wicket's Swing tree model usage gives you a headache ...

advertisement
... you should definitely take a look at 
http://code.google.com/p/wicket-tree .

/advertisement

Regards

Sven

Eric Bouer wrote:

Hello.
Preface: Wicket Tree is very confusing since it's some kind of hybrid between 
swing Tree model and wicket tree so please forgive me for any 
stupid/irrelevant questions.


I created a tree with a model based on database schema.I'm trying to refresh  
the tree so that it will change node names after some DB update.
I added AJAX timer to self update the tree , the ajax stuff work but it doesn't 
even try to update the model.

To create my tree I have this on my page:
tree = new TreeTable(treeTable, createTreeModel(), columns);
tree.getTreeState().setAllowSelectMultiple(true); 
tree.setOutputMarkupId(true);

add(tree);
tree.add(new AjaxSelfUpdatingTimerBehavior(Duration.ONE_SECOND) {
@Override
protected void onPostProcessTarget(AjaxRequestTarget target) {
super.onPostProcessTarget(target);
VectorObject p = new VectorObject();
//To keep it simple. I'm only trying to update the root.
p.add(tree.getModel().getObject().getRoot()); 
TreeModelEvent event = new TreeModelEvent(tree,p.toArray());

tree.treeNodesChanged(event);
});
}
Nothing get updates.
I tried adding customized TreeModelListener however it doesn't get called at 
all.

Any idea or reference to documentation that explain this?
Thanks.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org