Re: [Wicket-user] Problem with ajax tree and listView
Oops, I forgot to mention that. I'm using 1.2.5 release. Isaac Matej Knopp wrote: Hi, as a temporary solution you can. But this is bug and needs to be resolved. What version of wicket are you using? On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote: Hi, Myabe I can just use RepeatingView instead. Thanks a lot for clearing my doubts. Isaac Matej Knopp wrote: Hi, this seem to be caused by the latest attach refactor. After the attaching bug is fixed this problem should disappeared. -Matej On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote: Sorry, I didn't write my sample codes clearly. The problem happens in renderItem(). While expanding tree node, ListItem in renderItem() becomes null, but the list values I get by calling getList() are correct. Also, I found it renders correctly if I use RepeatingView. Isaac Isaac Weng wrote: Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
I see. It's probably same thing as for 1.x, that TreeItem doesn't reattach the tree itself. -Matej On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote: Oops, I forgot to mention that. I'm using 1.2.5 release. Isaac Matej Knopp wrote: Hi, as a temporary solution you can. But this is bug and needs to be resolved. What version of wicket are you using? On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote: Hi, Myabe I can just use RepeatingView instead. Thanks a lot for clearing my doubts. Isaac Matej Knopp wrote: Hi, this seem to be caused by the latest attach refactor. After the attaching bug is fixed this problem should disappeared. -Matej On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote: Sorry, I didn't write my sample codes clearly. The problem happens in renderItem(). While expanding tree node, ListItem in renderItem() becomes null, but the list values I get by calling getList() are correct. Also, I found it renders correctly if I use RepeatingView. Isaac Isaac Weng wrote: Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
Hi, this seem to be caused by the latest attach refactor. After the attaching bug is fixed this problem should disappeared. -Matej On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote: Sorry, I didn't write my sample codes clearly. The problem happens in renderItem(). While expanding tree node, ListItem in renderItem() becomes null, but the list values I get by calling getList() are correct. Also, I found it renders correctly if I use RepeatingView. Isaac Isaac Weng wrote: Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
Hi, Myabe I can just use RepeatingView instead. Thanks a lot for clearing my doubts. Isaac Matej Knopp wrote: Hi, this seem to be caused by the latest attach refactor. After the attaching bug is fixed this problem should disappeared. -Matej On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote: Sorry, I didn't write my sample codes clearly. The problem happens in renderItem(). While expanding tree node, ListItem in renderItem() becomes null, but the list values I get by calling getList() are correct. Also, I found it renders correctly if I use RepeatingView. Isaac Isaac Weng wrote: Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
Sorry, I didn't write my sample codes clearly. The problem happens in renderItem(). While expanding tree node, ListItem in renderItem() becomes null, but the list values I get by calling getList() are correct. Also, I found it renders correctly if I use RepeatingView. Isaac Isaac Weng wrote: Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem with ajax tree and listView
Hi, This is my first time asking questions here. Hope I can make my question clear. I'v tried to extend the ajax tree in the wicket extension. The only modification I made is the output value, which is a customized panel instead of a label. Following are my html and source. MyTree.html : span wicket:id=indent/spana wicket:id=linkspan wicket:id=image//a a wicket:id=nodeLinkspan class=icon wicket:id=icon/spanspan wicket:id=myPanel / To simplify the problem, I strip most markups of MyPanel.html to what I think causing the problem. MyPanel.html : span wicket:id=outputListspan wicket:id=outputNamename/span/span MyPanel.java : public MyPanel extends Panel { public MyPanel(String id) { super(id); ArrayListString list = new ArrayListString(); list.add(name1); add(new ListView(outputList, list) { public void populateItem(final ListItem item) { final String name = (String) item.getModelObject(); item.add(new Label(outputName, name)); } }); } } The problem is while I click the junction link, ListView.renderItem() throws a NullPointerException. After some digging, I found that the ListItem is null. Then I use getList(), and it successfully return the list I passed in and the values in that list are also correct, however the ListItem is null which I don't know why. Thanks for reading my question. I will appreciate any suggestions. Isaac - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej On 3/23/07, Isaac Weng [EMAIL PROTECTED] wrote: Hi, This is my first time asking questions here. Hope I can make my question clear. I'v tried to extend the ajax tree in the wicket extension. The only modification I made is the output value, which is a customized panel instead of a label. Following are my html and source. MyTree.html : span wicket:id=indent/spana wicket:id=linkspan wicket:id=image//a a wicket:id=nodeLinkspan class=icon wicket:id=icon/spanspan wicket:id=myPanel / To simplify the problem, I strip most markups of MyPanel.html to what I think causing the problem. MyPanel.html : span wicket:id=outputListspan wicket:id=outputNamename/span/span MyPanel.java : public MyPanel extends Panel { public MyPanel(String id) { super(id); ArrayListString list = new ArrayListString(); list.add(name1); add(new ListView(outputList, list) { public void populateItem(final ListItem item) { final String name = (String) item.getModelObject(); item.add(new Label(outputName, name)); } }); } } The problem is while I click the junction link, ListView.renderItem() throws a NullPointerException. After some digging, I found that the ListItem is null. Then I use getList(), and it successfully return the list I passed in and the values in that list are also correct, however the ListItem is null which I don't know why. Thanks for reading my question. I will appreciate any suggestions. Isaac - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ajax tree and listView
Sorry, don't know why my message didn't send, probably because gmail and attachement. I've made a quick start files for the problem. The problem is If using a ListView to display the tree node value, after I collapse the node, I can never expand it again, and the ListItem becomes null. No problem with a Label. Could you give me some directions ? Thanks. Sincerely, Isaac Matej Knopp wrote: hi, this really is weird. Can you post a quick start project that demonstrates the behavior? -Matej On 3/23/07, Isaac Weng [EMAIL PROTECTED] wrote: Hi, This is my first time asking questions here. Hope I can make my question clear. I'v tried to extend the ajax tree in the wicket extension. The only modification I made is the output value, which is a customized panel instead of a label. Following are my html and source. MyTree.html : span wicket:id=indent/spana wicket:id=linkspan wicket:id=image//a a wicket:id=nodeLinkspan class=icon wicket:id=icon/spanspan wicket:id=myPanel / To simplify the problem, I strip most markups of MyPanel.html to what I think causing the problem. MyPanel.html : span wicket:id=outputListspan wicket:id=outputNamename/span/span MyPanel.java : public MyPanel extends Panel { public MyPanel(String id) { super(id); ArrayListString list = new ArrayListString(); list.add(name1); add(new ListView(outputList, list) { public void populateItem(final ListItem item) { final String name = (String) item.getModelObject(); item.add(new Label(outputName, name)); } }); } } The problem is while I click the junction link, ListView.renderItem() throws a NullPointerException. After some digging, I found that the ListItem is null. Then I use getList(), and it successfully return the list I passed in and the values in that list are also correct, however the ListItem is null which I don't know why. Thanks for reading my question. I will appreciate any suggestions. Isaac tree-quickstart.IamAzip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user