Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

is that use 

protected void populateTreeItem(WebMarkupContainer item, int level) {} to
set the redirect link ?

thanks




Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11459276
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

ok... maybe i m new to wicket. Some of the example i cant really get what it
means. Anyway, for temporary, i had solved my problem (think is not so
practical :p) . hard code for the node link..


protected void onNodeLinkClicked(AjaxRequestTarget ajaxRequestTarget,
TreeNode node)
  {
  treeNode = (DefaultMutableTreeNode)node;
  String treeNodeIndex = tree.getNodeComponent(node).getId();
  System.out.println(" treeNodeIndex = "+treeNodeIndex);
  if(buildTreeList.size()>0){  
  // tree- root
  if(tree.getNodeComponent(node).getId().equals("0")){
  ReportsPortalPage page = new ReportsPortalPage();
  setResponsePage(page);
  }
  // request module
  else if( tree.getNodeComponent(node).getId().equals("1")){
  RequestReportsPortalPage page = new RequestReportsPortalPage();
setResponsePage(page);
  }
  //hardware module
  else if( tree.getNodeComponent(node).getId().equals("5")){
  HardwareReportsPortalPage page = new HardwareReportsPortalPage();
setResponsePage(page);
  }  
  //software module
  else if( tree.getNodeComponent(node).getId().equals("9")){
  SoftwareReportsPortalPage page = new SoftwareReportsPortalPage();
setResponsePage(page);
  }
 
  //admin module
  else if( tree.getNodeComponent(node).getId().equals("13")){
  AdminReportsPortalPage page = new AdminReportsPortalPage();
setResponsePage(page);
  }
 
 
  }
 }

At the moment, it works. But in future , i will study and amend it. Thanks
for everybody :)


Here, i got another question... is there any place to enlarge the tree
border size ? Caused by some of the node link name is long (eg: Workstation
Network Card Details Report (PDF) ) , when the tree was expand, i cant see
the whole name ... As i looked for the wicket example, it was automatic..
but when i implemented it, it is not ? 

thanks   


Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/

Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

ok... maybe i m new to wicket. Some of the example i cant really get what it
means. Anyway, for temporary, i had solved my problem (think is not so
practical :p) . hard code for the node link..


protected void onNodeLinkClicked(AjaxRequestTarget ajaxRequestTarget,
TreeNode node)
{
treeNode = (DefaultMutableTreeNode)node;
String treeNodeIndex = 
tree.getNodeComponent(node).getId();
 System.out.println(" treeNodeIndex = "+treeNodeIndex);
if(buildTreeList.size()>0){ 
// tree- root

if(tree.getNodeComponent(node).getId().equals("0")){
ReportsPortalPage page = new 
ReportsPortalPage();
setResponsePage(page);
}
// request module
else if( 
tree.getNodeComponent(node).getId().equals("1")){
RequestReportsPortalPage page = new
RequestReportsPortalPage();
setResponsePage(page);
}
//hardware module
else if( 
tree.getNodeComponent(node).getId().equals("5")){
HardwareReportsPortalPage page = new
HardwareReportsPortalPage();
setResponsePage(page);
}   
//software module
else if( 
tree.getNodeComponent(node).getId().equals("9")){
SoftwareReportsPortalPage page = new
SoftwareReportsPortalPage();
setResponsePage(page);
}

//admin module 
else if( 
tree.getNodeComponent(node).getId().equals("13")){
AdminReportsPortalPage page = new 
AdminReportsPortalPage();
setResponsePage(page);
}


}
 }

At the moment, it works. But in future , i will study and amend it. Thanks
for everybody :)


Here, i got another question... is there any place to enlarge the tree
border size ? Caused by some of the node link name is long (eg: Workstation
Network Card Details Report (PDF) ) , when the tree was expand, i cant see
the whole name ...

thanks  


Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -

Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-04 Thread Matej Knopp
I believe, that what you want, is not to set response page, but rather
to switch panel components. At least that sounds much more reasonable
to me.

-Matej

On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>
> the reason i using the tree is my menu will be cover a lot of reports ( i m
> develop the report module). So if using the tree style, the interface will
> be look more nicer and structure. Plus the dynamic feel to the user :p (more
> attractive). is that the wicket - tree is hard to maintain? Actually i had
> build the tree, sub tree and report name. All i listed in array and then
> called up the array to execute became a tree.
>
> Anyway, i found that the wicket example did not show the use of the node
> link. Any place can help ? As i went through this forum but still cant get
> any idea to solve it .. :( how ar??
>
>
>
> Eelco Hillenius wrote:
> >
> >> sorry for understood.. i m not just play around. i wish to build a new
> >> module for my current project. And i wish to manage all the menus in a
> >> tree
> >> style outlook. So, can i get some guide frou u , Eelco ..
> >
> > If you are looking for menus, why not use something like this:
> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
> > up than bending the Tree component into something it is not meant for.
> >
> > Eelco
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-04 Thread kenixwong

the reason i using the tree is my menu will be cover a lot of reports ( i m
develop the report module). So if using the tree style, the interface will
be look more nicer and structure. Plus the dynamic feel to the user :p (more
attractive). is that the wicket - tree is hard to maintain? Actually i had
build the tree, sub tree and report name. All i listed in array and then
called up the array to execute became a tree.

Anyway, i found that the wicket example did not show the use of the node
link. Any place can help ? As i went through this forum but still cant get
any idea to solve it .. :( how ar??



Eelco Hillenius wrote:
> 
>> sorry for understood.. i m not just play around. i wish to build a new
>> module for my current project. And i wish to manage all the menus in a
>> tree
>> style outlook. So, can i get some guide frou u , Eelco ..
> 
> If you are looking for menus, why not use something like this:
> http://developer.yahoo.com/yui/menu/? That will be much easier to set
> up than bending the Tree component into something it is not meant for.
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-03 Thread Eelco Hillenius
> sorry for understood.. i m not just play around. i wish to build a new
> module for my current project. And i wish to manage all the menus in a tree
> style outlook. So, can i get some guide frou u , Eelco ..

If you are looking for menus, why not use something like this:
http://developer.yahoo.com/yui/menu/? That will be much easier to set
up than bending the Tree component into something it is not meant for.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-03 Thread kenixwong

thx for reply... i waiting and waiting somebody to reply it.. :p

sorry for understood.. i m not just play around. i wish to build a new
module for my current project. And i wish to manage all the menus in a tree
style outlook. So, can i get some guide frou u , Eelco ..

thx a lot



Eelco Hillenius wrote:
> 
>> Sorry, cant get u.. can you show me the some partial code ? My tree
>> example
>> was refer from the wicket example. but it only shown how to create a tree
>> without some example to click the node and redirect to another page. I
>> had
>> tried search from the forum and do testing... still failed. Can everybody
>> give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to
>> learn and play around :)
> 
> If you are just playing around, could you please do that with Wicket
> 1.3, as you won't have those problems you are having with that version
> to start with :) See
> http://martijndashorst.com/blog/2007/07/02/apache-wicket-130-beta-2-released/
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11425136
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-03 Thread Eelco Hillenius
> Sorry, cant get u.. can you show me the some partial code ? My tree example
> was refer from the wicket example. but it only shown how to create a tree
> without some example to click the node and redirect to another page. I had
> tried search from the forum and do testing... still failed. Can everybody
> give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to
> learn and play around :)

If you are just playing around, could you please do that with Wicket
1.3, as you won't have those problems you are having with that version
to start with :) See
http://martijndashorst.com/blog/2007/07/02/apache-wicket-130-beta-2-released/

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-03 Thread kenixwong

Sorry, cant get u.. can you show me the some partial code ? My tree example
was refer from the wicket example. but it only shown how to create a tree
without some example to click the node and redirect to another page. I had
tried search from the forum and do testing... still failed. Can everybody
give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to
learn and play around :)

thanks 



igor.vaynberg wrote:
> 
> On 7/2/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>>
>> i m using wicket1.2.4
>>
>> i done with the nice tree and can display it. Just i did not get any
>> resource on the link. Once i click all the node link, i wish to redirect
>> to
>> different pages that i defined. I had search in the wicket-user forum,
>> but
>> cant get any result yet. Can u help for it. (btw: i m the new to wicket)
> 
> 
> 
> in wicket 1.2.x we do not support setresponsepage() from an ajax request
> (which is what i assume is going on since setresponsepage isnt working).
> what you have to do instead is
> 
> ajaxtarget.appendjavascript("window.location="+urlfor(MyPage.class));
> 
> -igor
> 
> 
> 
> here is my partial code
>>
>> final Tree tree = new Tree("tree", treeModel)
>> {
>>
>>
>>
>>  protected String renderNode(TreeNode node)
>> {
>> DefaultMutableTreeNode treeNode =
>> (DefaultMutableTreeNode)node;
>> return String.valueOf(treeNode.getUserObject());
>> }
>>
>>
>> protected void nodeLinkClicked(DefaultMutableTreeNode node)
>>  {
>> DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
>> setResponsePage(ReportTreePanel.class);
>>
>>}
>>
>> };
>>
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> Can anyone give me an example of override onNodeLinkClicked(...) for
>> >> display
>> >> the tree. I want to click the menu intree structure. It's fine i can
>> did
>> >> it
>> >> now. But i cant setResponce to another page when i clicked on the
>> link..
>> >> thanks in future
>> >
>> > So calling setResponsePage (to another page I pressume) doesn't work
>> > in the link clicked handler of the tree component? I wouldn't know how
>> > this might be a problem tbh.
>> >
>> > Which version of Wicket are you using, and which tree component (from
>> > the core project or the extensions project)?
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11424058
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread Igor Vaynberg

On 7/2/07, kenixwong <[EMAIL PROTECTED]> wrote:



i m using wicket1.2.4

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect
to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)




in wicket 1.2.x we do not support setresponsepage() from an ajax request
(which is what i assume is going on since setresponsepage isnt working).
what you have to do instead is

ajaxtarget.appendjavascript("window.location="+urlfor(MyPage.class));

-igor



here is my partial code


final Tree tree = new Tree("tree", treeModel)
{



 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}


protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);

   }

};




Eelco Hillenius wrote:
>
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can
did
>> it
>> now. But i cant setResponce to another page when i clicked on the
link..
>> thanks in future
>
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
>
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
>
> Eelco
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread kenixwong

i m using wicket1.2.4

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)

here is my partial code

 final Tree tree = new Tree("tree", treeModel)
{
   
   
   
 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}
   
 
protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);
   
   }
   
};




Eelco Hillenius wrote:
> 
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can did
>> it
>> now. But i cant setResponce to another page when i clicked on the link..
>> thanks in future
> 
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
> 
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread kenixwong

i m using wicket1.2.6

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)

here is my partial code

 final Tree tree = new Tree("tree", treeModel)
{


 
 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}
 
 
protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = 
(DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);

   }

};




Eelco Hillenius wrote:
> 
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can did
>> it
>> now. But i cant setResponce to another page when i clicked on the link..
>> thanks in future
> 
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
> 
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11390711
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-01 Thread Eelco Hillenius
> Can anyone give me an example of override onNodeLinkClicked(...) for display
> the tree. I want to click the menu intree structure. It's fine i can did it
> now. But i cant setResponce to another page when i clicked on the link..
> thanks in future

So calling setResponsePage (to another page I pressume) doesn't work
in the link clicked handler of the tree component? I wouldn't know how
this might be a problem tbh.

Which version of Wicket are you using, and which tree component (from
the core project or the extensions project)?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-01 Thread kenixwong

Can anyone give me an example of override onNodeLinkClicked(...) for display
the tree. I want to click the menu intree structure. It's fine i can did it
now. But i cant setResponce to another page when i clicked on the link..
thanks in future
-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11388719
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree testing

2007-06-09 Thread Ingram Chen

indeed, we internally develop small extension to allow using partial path
to allocate component.

tester.clickLink("foo:bar:navigation:i:6:nodeLink")
can be written like

tester.clickLink("foo, 6, nodeLink")


On 6/9/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:


On Fri, 08 Jun 2007, Ingram Chen wrote:
> I use 1.2.6 and tester.clickLink("foo:bar:navigation:i:6:nodeLink") work
for

And instead of using the full path like that (which can be
tedious to maintain when the component hierarchy changes)
you can also use an Ivistor to access the component (and
then ask its path from itself).

It depends on the case which is wiser. We also use a the
hardcoded path a lot in tests, but with repeaters it can
get a bit fragile.

- Timo

--
Timo Rantalaiho
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree testing

2007-06-08 Thread Timo Rantalaiho
On Fri, 08 Jun 2007, Ingram Chen wrote:
> I use 1.2.6 and tester.clickLink("foo:bar:navigation:i:6:nodeLink") work for

And instead of using the full path like that (which can be
tedious to maintain when the component hierarchy changes)
you can also use an Ivistor to access the component (and
then ask its path from itself). 

It depends on the case which is wiser. We also use a the
hardcoded path a lot in tests, but with repeaters it can 
get a bit fragile.

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree testing

2007-06-08 Thread Sven Schliesing
Thanks Frank, thanks Ingram!

Didn't know that I could just access the links like that. But it seems 
quite logical.

Everything works as expected now.

Thanks again!

Sven


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree testing

2007-06-08 Thread Ingram Chen

I use 1.2.6 and tester.clickLink("foo:bar:navigation:i:6:nodeLink") work for
me.

On 6/8/07, Sven Schliesing <[EMAIL PROTECTED]> wrote:


Hi,

I'm trying to heavily rely on test driven development while building my
application.

Fortunately wicket does a really good job for unit-testing. But
unfortunately I do not succeed in simulating a "click" on a node in a
Tree with AjaxLinks.

I already searched the svn for a test already handling this part. But i
had no luck.


Is this possible at all?


Thanks in advance!


Sven


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree testing

2007-06-08 Thread Frank Bille

Hi

I haven't used the tree yet (and therefore not tried to test it). But what
do you do. I would just imagine it would be a call to tester.clickLink
(linkPath)?!

Frank


On 6/8/07, Sven Schliesing <[EMAIL PROTECTED]> wrote:


Hi,

I'm trying to heavily rely on test driven development while building my
application.

Fortunately wicket does a really good job for unit-testing. But
unfortunately I do not succeed in simulating a "click" on a node in a
Tree with AjaxLinks.

I already searched the svn for a test already handling this part. But i
had no luck.


Is this possible at all?


Thanks in advance!


Sven


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree testing

2007-06-08 Thread Sven Schliesing
Hi,

I'm trying to heavily rely on test driven development while building my 
application.

Fortunately wicket does a really good job for unit-testing. But 
unfortunately I do not succeed in simulating a "click" on a node in a 
Tree with AjaxLinks.

I already searched the svn for a test already handling this part. But i 
had no luck.


Is this possible at all?


Thanks in advance!


Sven


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-06 Thread James McLaughlin
Hello,
You can do this through the ITreeState
(tree.getTreeState().getSelectedNodes ()). Also, you can register with
the TreeState as an ITreeStateListener and implement the
nodeSelected(TreeNode node) method.

best,
jim

On 6/6/07, NYSophia <[EMAIL PROTECTED]> wrote:
>
> Thank you.  That was very helpful.  I am trying to get it to add a node as a
> child of the currently selected node.  I will let you know how it goes.
>
>
> I don't really have urls or code I can share. I do have a brain dead
> simple quickstart I created to determine if a bug was in my code or
> wicket (mine, obviously :)). Hope this helps:
>
> http://bones.homelinux.org/wicket/quicktree.jar
>
> You will want to look at SimpleTreePage.java
>
> best,
> jim
>
>
> --
> View this message in context: 
> http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10982905
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-05 Thread NYSophia

Thank you.  That was very helpful.  I am trying to get it to add a node as a
child of the currently selected node.  I will let you know how it goes.


I don't really have urls or code I can share. I do have a brain dead
simple quickstart I created to determine if a bug was in my code or
wicket (mine, obviously :)). Hope this helps:

http://bones.homelinux.org/wicket/quicktree.jar

You will want to look at SimpleTreePage.java

best,
jim


-- 
View this message in context: 
http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10982905
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread James McLaughlin
I don't really have urls or code I can share. I do have a brain dead
simple quickstart I created to determine if a bug was in my code or
wicket (mine, obviously :)). Hope this helps:

http://bones.homelinux.org/wicket/quicktree.jar

You will want to look at SimpleTreePage.java

best,
jim

On 6/4/07, evan2nave <[EMAIL PROTECTED]> wrote:
>
> Hi,
> This sounds great.  Would you mind posting the java code and html file (or
> relevant snippets) for a page that accomplishes this?  I'm still very new to
> wicket, and the example would be very helpful!
> Thanks,
> -Evan
>
>
> James McLaughlin-3 wrote:
> >
> > Hello,
> > I've just done this, works like a charm. Use a DefaultTreeModel for
> > your tree, and when it comes time to insert / remove nodes, just use
> > the appropriate methods on DefaultTreeModel. If you are doing this
> > with an ajax tree, you will want to call updateTree(AjaxRequestTarget)...
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10956115
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread evan2nave

Hi,
This sounds great.  Would you mind posting the java code and html file (or
relevant snippets) for a page that accomplishes this?  I'm still very new to
wicket, and the example would be very helpful!
Thanks,
-Evan


James McLaughlin-3 wrote:
> 
> Hello,
> I've just done this, works like a charm. Use a DefaultTreeModel for
> your tree, and when it comes time to insert / remove nodes, just use
> the appropriate methods on DefaultTreeModel. If you are doing this
> with an ajax tree, you will want to call updateTree(AjaxRequestTarget)...
> 

-- 
View this message in context: 
http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10956115
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread James McLaughlin
Hello,
I've just done this, works like a charm. Use a DefaultTreeModel for
your tree, and when it comes time to insert / remove nodes, just use
the appropriate methods on DefaultTreeModel. If you are doing this
with an ajax tree, you will want to call updateTree(AjaxRequestTarget)
after. If you are adding to a leaf node, you will want to call
getTreeState().expandNode(node) on the parent after the call on
DefaultTreeModel and before updateTree.

best,
jim

On 6/4/07, NYSophia <[EMAIL PROTECTED]> wrote:
>
> I have searched the archive and the last time someone asked about this seems
> to be 2006.  We are new to wicket and were impressed with the Editable tree
> table example. We wanted to try to create a tree display that lets the users
> edit the nodes of the tree by adding a button to add a child node or delete
> a node. I was wondering if anyone had accomplished this or attempted by
> found it problematic.
> --
> View this message in context: 
> http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10954856
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread NYSophia

I have searched the archive and the last time someone asked about this seems
to be 2006.  We are new to wicket and were impressed with the Editable tree
table example. We wanted to try to create a tree display that lets the users
edit the nodes of the tree by adding a button to add a child node or delete
a node. I was wondering if anyone had accomplished this or attempted by
found it problematic.   
-- 
View this message in context: 
http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10954856
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree and Panel - refresh problem (1.3b1)

2007-06-03 Thread Vatroslav

>
>Can you give some code fragments?
>
>Eelco


On HomePage there are two divs, with tree and panel.

HomePage.html
...

  
show clicked node
  


   tree

...

HomePage.java
public class HomePage extends WebPage {

private static final long serialVersionUID = 5775904098165685837L;

private Tree tree;
private Panel testPanel;
TestPanelBean tpb;

public HomePage() {

add(HeaderContributor.forCss("/css/netport.css"));

// testPanel
tpb = new TestPanelBean("---");

testPanel = new TestPanel("testpanel", tpb);
testPanel.setOutputMarkupId(true);
add(testPanel);



tree = new Tree("tree", createTreeModel()) {

protected String renderNode(TreeNode node) {
ModelBean bean = (ModelBean) 
((DefaultMutableTreeNode)
node).getUserObject();
return bean.getProperty1();
}

protected void onNodeLinkClicked(AjaxRequestTarget 
target, TreeNode node)
{
super.onNodeLinkClicked(target, node);

ModelBean mtn = (ModelBean) 
((DefaultMutableTreeNode)
node).getUserObject();
updatePanel("Node: " + mtn.getProperty1() + " 
:clicked");


target.addComponent(tree);
target.addComponent(testPanel);
}

}; // end new TreeTable

tree.getTreeState().setAllowSelectMultiple(false);
//tree.setLinkType(LinkType.AJAX);
add(tree);
tree.getTreeState().collapseAll();

}

private void updatePanel(String txt) {
tpb.setNodeName(txt);
//remove(testPanel);
//testPanel = new TestPanel("testpanel", tpb);
//testPanel.setOutputMarkupId(true);
//add(testPanel);
}

protected TreeModel createTreeModel() {
...
// code copied from examples
   ...
}

}


For Tree I've used code and model from SimpleTree from ajax examples.
For Panel I have ths code:

TestPanel.java
public class TestPanel extends Panel {
public TestPanel(String id, TestPanelBean tpb) {
super(id);
add(new Label("text", tpb.getNodeName()));
}
}

TestPanel.html
 

  
Text:--node--




TestPaneBean.java (which holds text to be displayed in TestPanel)
public class TestPanelBean {
private String nodeName;

public TestPanelBean(String nodeName) {
this.nodeName = nodeName;
}

public String getNodeName() {
return nodeName;
}

public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
}


So, even a set:
target.addComponent(testPanel);
testPanel is not refreshed. :(

For now, I want to display node name in the panel. In the future, I'll like
to instantiate different panel components regarding to clicked tree node
type (if node represents image, show that image information and so on).


-- 
View this message in context: 
http://www.nabble.com/Tree-and-Panel---refresh-problem-%281.3b1%29-tf3858753.html#a10940029
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree and Panel - refresh problem (1.3b1)

2007-06-03 Thread Eelco Hillenius
Can you give some code fragments?

Eelco

On 6/2/07, Vatroslav <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm trying to update (refresh) Panel from Ajax tree (by clicking tree item)
> but without success. :(
> I've checked, Panel's model is changed.
>
> If I put a Label component instead of Panel, and inside
> onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) method modify
> Label's model and then refresh Label with target.addComponent(myLabel);
> everything is OK.
>
> But I can't do that with Panel component.
> Why??
>
> Thanks,
> vatroslav
>
>
> --
> View this message in context: 
> http://www.nabble.com/Tree-and-Panel---refresh-problem-%281.3b1%29-tf3858753.html#a10932128
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree and Panel - refresh problem (1.3b1)

2007-06-02 Thread Vatroslav

Hi,
I'm trying to update (refresh) Panel from Ajax tree (by clicking tree item)
but without success. :(
I've checked, Panel's model is changed.

If I put a Label component instead of Panel, and inside
onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) method modify
Label's model and then refresh Label with target.addComponent(myLabel);
everything is OK.

But I can't do that with Panel component.
Why??

Thanks,
vatroslav


-- 
View this message in context: 
http://www.nabble.com/Tree-and-Panel---refresh-problem-%281.3b1%29-tf3858753.html#a10932128
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree Node's Refresh Issue

2007-04-20 Thread Igor Vaynberg

but if you dont really care about the web2.0 kiddies you can do it the old
fashioned way as well - via javascript.

class addnewitempage extends webpage implements iheadercontributor {
 private boolean itemadded=false;

 form f=new form(..);
 f.add(new button("add") {
onsubmit() { ; itemadded=true; }
 }

 public void renderhead(response response) {
   if (itemadded) {
 response.addonwindowloadjavascript("window.top.leftframename.refresh
();");
 itemadded=false;
   }
 }
}

this assumes your additem page navigates back to itself. if not, adjust
accordingly.

-igor


On 4/20/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


* Sridhar.N:

> I have a user interface which is having 2 frames.

Frames are not really Web 2.0, I would use a SplitPane:


http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=%3Awicket.contrib.dojo.examples.SplitContainerSample
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree Node's Refresh Issue

2007-04-20 Thread Jean-Baptiste Quenot
* Sridhar.N:

> I have a user interface which is having 2 frames.

Frames are not really Web 2.0, I would use a SplitPane:

http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=%3Awicket.contrib.dojo.examples.SplitContainerSample
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree Node's Refresh Issue

2007-04-20 Thread Sridhar.N

Hi,
I have a user interface which is having 2 frames. In the left frame I have
the dynamic tree which is populated dynamically from database on click of a
node. I have links on the nodes which refreshes the right frame with
appropriate pages.My problem is, when ever a new item is added to the DB
from the page in the right frame I want to refresh the tree's node which is
there in the left frame with the newly inserted value without refreshing the
whole tree.

Thanks in advance.
Sridhar.N
-- 
View this message in context: 
http://www.nabble.com/Tree-Node%27s-Refresh-Issue-tf3612068.html#a10094062
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Renan Camponez

Uhm.
I need to have it in session for other reasons, but even with this as a
property, I still having the same problem..

Thanks!
Any idea?

On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


I don't understand why you store the "nav" page in session. It should
be a property of the Main page.

class Main extends WebPage {

private Page nav = null;

}

and in the PageCreator:
if (nav == null) {
  nav = new Navigation(Main.this);
}
return nav;

-Matej

On 4/19/07, Renan Camponez <[EMAIL PROTECTED]> wrote:
> This doesnt works.. :(
>
> Now, when I click on the Ajax Link for the second time, the Main page is
> showed inside the ModalWindow, instead of the page who has the tree.
>
> Following, the code:
>
> I have a Main page, who has this modal window, and the Ajax Link:
>
> modal = new ModalWindow("modal");
> modal.setPageCreator(new ModalWindow.PageCreator(){
> public Page createPage()
> {
> Page nav =
> ((AppSession)getSession()).getNav();
> if (nav == null){
> nav = new Navigation(Main.this);
>
> ((AppSession)getSession()).setNav(nav);
> return nav;
> }
> else{
> return nav;
> }
> }
> });
>
> ibNavigation = new AjaxLink("ibNavigation");
>
> The onClick event for the Ajax Link: modal.show(evt.getAjaxRequestTarget
());
>
> The part of the code when the Tree is instantiated:  tree = new
Tree("tree",
> createTreeModel());
>
> Any idea?
> Thanks
>
>
>
>  On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > Is there a page inside modal window? Just keep the page reference
> > between showing the window, don't creae new page instance every time
> > (inside the PageCreator).
> >
> > -Matej
> >
> > On 4/19/07, Renan Camponez < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > > Here is my problem:
> > >
> > > I have a Ajax Link who shows a ModalWindow
> > > (modal2.show(evt.getAjaxRequestTarget ());) when clicked.
> > > Inside this modal window, I have a
> > > wicket.extensions.markup.html.tree.Tree object.
> > >
> > > The problem is: The user "changes the status" of this Tree
(collapsing
> the
> > > nodes), then closes this ModalWindow.
> > > When the user clicks again on the AjaxLink (and the ModalWindow is
> showed
> > > again), my Tree object looses the status (meaning all the user
> modifications
> > > on nodes) is missed...
> > >
> > > Anyone, have any idea on how to make the tree status persistent for
me?
> > >
> > > Thanks!
> > > Renan Camponez
> > >
> > >
>
-
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
>
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/li

Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Matej Knopp
I don't understand why you store the "nav" page in session. It should
be a property of the Main page.

class Main extends WebPage {

 private Page nav = null;

}

and in the PageCreator:
if (nav == null) {
  nav = new Navigation(Main.this);
}
return nav;

-Matej

On 4/19/07, Renan Camponez <[EMAIL PROTECTED]> wrote:
> This doesnt works.. :(
>
> Now, when I click on the Ajax Link for the second time, the Main page is
> showed inside the ModalWindow, instead of the page who has the tree.
>
> Following, the code:
>
> I have a Main page, who has this modal window, and the Ajax Link:
>
> modal = new ModalWindow("modal");
> modal.setPageCreator(new ModalWindow.PageCreator(){
> public Page createPage()
> {
> Page nav =
> ((AppSession)getSession()).getNav();
> if (nav == null){
> nav = new Navigation(Main.this);
>
> ((AppSession)getSession()).setNav(nav);
> return nav;
> }
> else{
> return nav;
> }
> }
> });
>
> ibNavigation = new AjaxLink("ibNavigation");
>
> The onClick event for the Ajax Link: modal.show(evt.getAjaxRequestTarget());
>
> The part of the code when the Tree is instantiated:  tree = new Tree("tree",
> createTreeModel());
>
> Any idea?
> Thanks
>
>
>
>  On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > Is there a page inside modal window? Just keep the page reference
> > between showing the window, don't creae new page instance every time
> > (inside the PageCreator).
> >
> > -Matej
> >
> > On 4/19/07, Renan Camponez < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > > Here is my problem:
> > >
> > > I have a Ajax Link who shows a ModalWindow
> > > (modal2.show(evt.getAjaxRequestTarget ());) when clicked.
> > > Inside this modal window, I have a
> > > wicket.extensions.markup.html.tree.Tree object.
> > >
> > > The problem is: The user "changes the status" of this Tree (collapsing
> the
> > > nodes), then closes this ModalWindow.
> > > When the user clicks again on the AjaxLink (and the ModalWindow is
> showed
> > > again), my Tree object looses the status (meaning all the user
> modifications
> > > on nodes) is missed...
> > >
> > > Anyone, have any idea on how to make the tree status persistent for me?
> > >
> > > Thanks!
> > > Renan Camponez
> > >
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Renan Camponez

This doesnt works.. :(

Now, when I click on the Ajax Link for the second time, the Main page is
showed inside the ModalWindow, instead of the page who has the tree.

Following, the code:

I have a Main page, who has this modal window, and the Ajax Link:

modal = new ModalWindow("modal");
modal.setPageCreator(new ModalWindow.PageCreator(){
   public Page createPage()
   {
   Page nav = ((AppSession)getSession()).getNav();
   if (nav == null){
   nav = new Navigation(Main.this);
   ((AppSession)getSession()).setNav(nav);
   return nav;
   }
   else{
   return nav;
   }
   }
   });

ibNavigation = new AjaxLink("ibNavigation");

The onClick event for the Ajax Link: modal.show(evt.getAjaxRequestTarget());

The part of the code when the Tree is instantiated:  tree = new Tree("tree",
createTreeModel());

Any idea?
Thanks


On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


Is there a page inside modal window? Just keep the page reference
between showing the window, don't creae new page instance every time
(inside the PageCreator).

-Matej

On 4/19/07, Renan Camponez <[EMAIL PROTECTED]> wrote:
> Hi all,
> Here is my problem:
>
> I have a Ajax Link who shows a ModalWindow
> (modal2.show(evt.getAjaxRequestTarget());) when clicked.
> Inside this modal window, I have a
> wicket.extensions.markup.html.tree.Tree object.
>
> The problem is: The user "changes the status" of this Tree (collapsing
the
> nodes), then closes this ModalWindow.
> When the user clicks again on the AjaxLink (and the ModalWindow is
showed
> again), my Tree object looses the status (meaning all the user
modifications
> on nodes) is missed...
>
> Anyone, have any idea on how to make the tree status persistent for me?
>
> Thanks!
> Renan Camponez
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Matej Knopp
Is there a page inside modal window? Just keep the page reference
between showing the window, don't creae new page instance every time
(inside the PageCreator).

-Matej

On 4/19/07, Renan Camponez <[EMAIL PROTECTED]> wrote:
> Hi all,
> Here is my problem:
>
> I have a Ajax Link who shows a ModalWindow
> (modal2.show(evt.getAjaxRequestTarget());) when clicked.
> Inside this modal window, I have a
> wicket.extensions.markup.html.tree.Tree object.
>
> The problem is: The user "changes the status" of this Tree (collapsing the
> nodes), then closes this ModalWindow.
> When the user clicks again on the AjaxLink (and the ModalWindow is showed
> again), my Tree object looses the status (meaning all the user modifications
> on nodes) is missed...
>
> Anyone, have any idea on how to make the tree status persistent for me?
>
> Thanks!
> Renan Camponez
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree persistence problem

2007-04-19 Thread Renan Camponez

Hi all,
Here is my problem:

I have a Ajax Link who shows a ModalWindow (modal2.show(
evt.getAjaxRequestTarget());) when clicked.
Inside this modal window, I have a
wicket.extensions.markup.html.tree.Treeobject.

The problem is: The user "changes the status" of this Tree (collapsing the
nodes), then closes this ModalWindow.
When the user clicks again on the AjaxLink (and the ModalWindow is showed
again), my Tree object looses the status (meaning all the user modifications
on nodes) is missed...

Anyone, have any idea on how to make the tree status persistent for me?

Thanks!
Renan Camponez
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree for navigation

2007-04-05 Thread Eelco Hillenius
The best way to do this is to ignore the Tree components we ship. What
you're after here is either something similar to
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-navmenu
or something based on a javascript (client side only) tree.

Eelco


On 4/5/07, BPnwn <[EMAIL PROTECTED]> wrote:
>
>
> Nicolai Dymosz wrote:
> >
> > Hi All,
> >
> > i built a tree (wicket.extension.markup.html.tree.Tree). The tree works
> > fine. But now i want to use the tree for navigation.
> >
> > I just found examples to build a tree, but i didn`t find some examples to
> > use the tree for navigation.
> >
> > Can anyone give me further information in how to make tree links
> > bookmarkabel?
> >
> > Regards Nico
> >
>
> I have the same question, and I'd like to add to it by asking how to keep
> the tree expanded, rather than collapsing every time a node is clicked?
> Here's how I did it, but I suspect there are better ways:
>
> I built the tree starting from the example in the extensions (although I
> used wicket.extension.markup.html.tree.Tree, not the Ajax version):
>
> private TreeModel createTreeModel()
> {
> DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(
> new ModelBean("MyNode", MyPage.class));
>
> // My model bean stores the page class to which I want to navigate.
>
> rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2",
> MyPage2.class)));
> ...
> TreeModel model = new DefaultTreeModel(rootNode);
> return model;
> }
>
> public MyBasePage()
> {
> Tree tree = new Tree("tree", createTreeModel())
> {
> @Override
> protected void nodeLinkClicked(DefaultMutableTreeNode arg0)
> {
> super.nodeLinkClicked(arg0);
> ModelBean bean = (ModelBean) arg0.getUserObject();
> if (bean.getLinkClass() != null)
> {
> MyBasePage.this.setResponsePage(bean.getLinkClass());
> }
> this.expandAll(true); // I want the tree to stay 
> expanded...is this the
> best way?
> }
> };
> tree.expandAll(true);
> add(tree);
> }
>
> --
> View this message in context: 
> http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859814
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree for navigation

2007-04-05 Thread BPnwn


Nicolai Dymosz wrote:
> 
> Hi All,
> 
> i built a tree (wicket.extension.markup.html.tree.Tree). The tree works
> fine. But now i want to use the tree for navigation. 
> 
> I just found examples to build a tree, but i didn`t find some examples to
> use the tree for navigation.
> 
> Can anyone give me further information in how to make tree links
> bookmarkabel?
> 
> Regards Nico
> 

I have the same question, and I'd like to add to it by asking how to keep
the tree expanded, rather than collapsing every time a node is clicked?
Here's how I did it, but I suspect there are better ways:

I built the tree starting from the example in the extensions (although I
used wicket.extension.markup.html.tree.Tree, not the Ajax version):

private TreeModel createTreeModel()
{
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(
new ModelBean("MyNode", MyPage.class));

// My model bean stores the page class to which I want to navigate.

rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2",
MyPage2.class)));
...
TreeModel model = new DefaultTreeModel(rootNode);
return model;
}

public MyBasePage()
{
Tree tree = new Tree("tree", createTreeModel())
{
@Override
protected void nodeLinkClicked(DefaultMutableTreeNode arg0)
{
super.nodeLinkClicked(arg0);
ModelBean bean = (ModelBean) arg0.getUserObject();
if (bean.getLinkClass() != null)
{
   
MyBasePage.this.setResponsePage(bean.getLinkClass());
}
this.expandAll(true); // I want the tree to stay
expanded...is this the best way?
}
};
tree.expandAll(true);
add(tree);
} 

-- 
View this message in context: 
http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859828
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree for navigation

2007-04-05 Thread BPnwn


Nicolai Dymosz wrote:
> 
> Hi All,
> 
> i built a tree (wicket.extension.markup.html.tree.Tree). The tree works
> fine. But now i want to use the tree for navigation. 
> 
> I just found examples to build a tree, but i didn`t find some examples to
> use the tree for navigation.
> 
> Can anyone give me further information in how to make tree links
> bookmarkabel?
> 
> Regards Nico
> 

I have the same question, and I'd like to add to it by asking how to keep
the tree expanded, rather than collapsing every time a node is clicked?
Here's how I did it, but I suspect there are better ways:

I built the tree starting from the example in the extensions (although I
used wicket.extension.markup.html.tree.Tree, not the Ajax version):

private TreeModel createTreeModel()
{
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(
new ModelBean("MyNode", MyPage.class));

// My model bean stores the page class to which I want to navigate.

rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2",
MyPage2.class)));
...
TreeModel model = new DefaultTreeModel(rootNode);
return model;
}

public MyBasePage()
{
Tree tree = new Tree("tree", createTreeModel())
{
@Override
protected void nodeLinkClicked(DefaultMutableTreeNode arg0)
{
super.nodeLinkClicked(arg0);
ModelBean bean = (ModelBean) arg0.getUserObject();
if (bean.getLinkClass() != null)
{
MyBasePage.this.setResponsePage(bean.getLinkClass());
}
this.expandAll(true); // I want the tree to stay expanded...is 
this the
best way?
}
};
tree.expandAll(true);
add(tree);
}

-- 
View this message in context: 
http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859814
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree for navigation

2007-04-04 Thread Nicolai Dymosz
Hi All,

i built a tree (wicket.extension.markup.html.tree.Tree). The tree works fine. 
But now i want to use the tree for navigation. 

I just found examples to build a tree, but i didn`t find some examples to use 
the tree for navigation.

Can anyone give me further information in how to make tree links bookmarkabel?

Regards Nico





-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping

It works now. Thanks for your fast reply!

Regards
Boon Ping

On 3/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


what you want is

getsessionsettings().setpagemapevictionstrategy(new
leastrecentlyaccessedevictionstrategy(15))

-igor



On 2/28/07, Lan Boon Ping <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I have a Page Expired issue in tree node link,  for example I have a
> tree, when i click on any node 6 times or more and  click 5 times on "Back"
> button back to first visited page,  and click on any tree node I will get
> Page Expired exception. Does anyone know how to solve this problem? By the
> way, I have increased pageMap size (getSessionSettings().setMaxPageMaps)
> from 5 to 15, but it doesn't solve the problem.
>
> Regards
> Boon Ping.
>
>
>
>
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Igor Vaynberg

what you want is

getsessionsettings().setpagemapevictionstrategy(new
leastrecentlyaccessedevictionstrategy(15))

-igor



On 2/28/07, Lan Boon Ping <[EMAIL PROTECTED]> wrote:


Hi all,

I have a Page Expired issue in tree node link,  for example I have a tree,
when i click on any node 6 times or more and  click 5 times on "Back" button
back to first visited page,  and click on any tree node I will get Page
Expired exception. Does anyone know how to solve this problem? By the way, I
have increased pageMap size (getSessionSettings().setMaxPageMaps)  from 5 to
15, but it doesn't solve the problem.

Regards
Boon Ping.



-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping

Hi all,

I have a Page Expired issue in tree node link,  for example I have a tree,
when i click on any node 6 times or more and  click 5 times on "Back" button
back to first visited page,  and click on any tree node I will get Page
Expired exception. Does anyone know how to solve this problem? By the way, I
have increased pageMap size (getSessionSettings().setMaxPageMaps)  from 5 to
15, but it doesn't solve the problem.

Regards
Boon Ping.
-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree node clicked to change another panel problem

2006-11-13 Thread Sridhar.N

Hello,

I am also working on the same senario,but i not able to reconstruct the tree
with the child nodes given a parent node on click of a particular node.I
have overriden the onNodeClickedEvent() of the AbstractTree but the tree in
the webpage does',t show the child nodes on refresh.
Plz Help .

Thanks and Regards.


yaojb wrote:
> 
> I'd used Tree component(id="tree") as navigation layout, I want to change
> another panel component(id="main") of the same layout when one tree node
> clicked, But nothing change occur. When I use the link component to change
> the same panel component(id="main") followed the nested demo of
> wicket-example, so it's ok! Oh, how can I get the same effect use Tree
> component???
> 
> All files associated:
> 
> BasePage.java
> 
> public class BasePage extends WebPage{
> 
> public BasePage() {
> 
> add(new TreePanel("tree",null));
> 
> add(new MainPanel("main",new Model("Begin")));
> 
> }
> 
>  
> 
> }
> 
> BasePage.html
> 
> 
> 
>  
> 
>test
> 
> href="styles.css"/>
> 
>  
> 
>  
> 
>  
> 
>  
> 
> [tree here]
> 
> [main here]
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> TreePanel.java
> 
> public class TreePanel extends Panel{
> 
>  
> 
> public TreePanel(String s, IModel iModel) {
> 
> super(s, iModel);
> 
> add(tree);
> 
> }
> 
>  
> 
> private Tree tree=new Tree("tree", createTreeModel())
> 
>{
> 
> protected String renderNode(TreeNode node)
> 
> {
> 
>  ModelBean bean = (ModelBean)
> ((DefaultMutableTreeNode)node).getUserObject();
> 
>  return bean.getProperty1();
> 
> }
> 
> protected void onNodeLinkClicked(AjaxRequestTarget
> ajaxRequestTarget, TreeNode treeNode){
> 
> ModelBean bean = (ModelBean)
> ((DefaultMutableTreeNode)treeNode).getUserObject();
> 
> //followed line I want to get the effect, but I failed!
> 
> this.getParent().getPage().replace(new
> MainPanel("main",new
> Model(bean.getProperty1(;
> 
> }
> 
>};
> 
>  
> 
> /**
> 
>   * Creates the model that feeds the tree.
> 
>   * @return
> 
>   *  New instance of tree model.
> 
>   */
> 
>  protected TreeModel createTreeModel()
> 
>  {
> 
>List l1 = new ArrayList();
> 
>l1.add("test 1.1");
> 
>l1.add("test 1.2");
> 
>l1.add("test 1.3");
> 
>List l2 = new ArrayList();
> 
>l2.add("test 2.1");
> 
>l2.add("test 2.2");
> 
>l2.add("test 2.3");
> 
>List l3 = new ArrayList();
> 
>l3.add("test 3.1");
> 
>l3.add("test 3.2");
> 
>l3.add("test 3.3");
> 
>  
> 
>l2.add(l3);
> 
>  
> 
>l2.add("test 2.4");
> 
>l2.add("test 2.5");
> 
>l2.add("test 2.6");
> 
>  
> 
>l3 = new ArrayList();
> 
>l3.add("test 3.1");
> 
>l3.add("test 3.2");
> 
>l3.add("test 3.3");
> 
>l2.add(l3);
> 
>  
> 
>l1.add(l2);
> 
>  
> 
>l2 = new ArrayList();
> 
>l2.add("test 2.1");
> 
>l2.add("test 2.2");
> 
>l2.add("test 2.3");
> 
>  
> 
>l1.add(l2);
> 
>  
> 
>l1.add("test 1.3");
> 
>l1.add("test 1.4");
> 
>l1.add("test 1.5");
> 
>  
> 
>return convertToTreeModel(l1);
> 
>  }
> 
>  
> 
>  private TreeModel convertToTreeModel(List list)
> 
>  {
> 
>TreeModel model = null;
> 
>DefaultMutableTreeNode rootNode = new
> DefaultMutableTreeNode(new ModelBean("ROOT"));
> 
>add(rootNode, list);
> 
>model = new DefaultTreeModel(rootNode);
> 
>return model;
> 
>  }
> 
>  
> 
>  private void add(DefaultMutableTreeNode parent, List sub)
> 
>  {
> 
>for (Iterator i = sub.iterator(); i.hasNext();)
> 
>{
> 
> Object o = i.next();
> 
> if (o instanceof List)
> 
> {
> 
>  DefaultMutableTreeNode child = new
> DefaultMutableTreeNode(new ModelBean("subtree..."));
> 
>  parent.add(child);
> 
>  add(child, (Lis

[Wicket-user] Tree node clicked to change another panel problem

2006-11-13 Thread yaojb








I’d used Tree component(id=”tree”)
as navigation layout, I want to change another panel component(id=”main”)
of the same layout when one tree node clicked, But nothing change occur. When I
use the link component to change the same panel component(id=”main”)
followed the nested demo of wicket-example, so it’s ok! Oh, how can I get
the same effect use Tree component???

All files associated:

BasePage.java

public class BasePage extends WebPage{

    public BasePage() {

    add(new
TreePanel("tree",null));

    add(new
MainPanel("main",new Model("Begin")));

    }

 

}

BasePage.html



 

   test

   

 

 

 

 

    [tree here]

    [main here]



 







 



TreePanel.java

public class TreePanel extends Panel{

 

    public TreePanel(String s, IModel
iModel) {

    super(s,
iModel);

    add(tree);

    }

 

    private Tree tree=new
Tree("tree", createTreeModel())

   {

    protected
String renderNode(TreeNode node)

    {

 ModelBean
bean = (ModelBean) ((DefaultMutableTreeNode)node).getUserObject();

 return
bean.getProperty1();

    }

   
protected void onNodeLinkClicked(AjaxRequestTarget ajaxRequestTarget, TreeNode
treeNode){

   
ModelBean bean = (ModelBean)
((DefaultMutableTreeNode)treeNode).getUserObject();

   
//followed line I want to get the
effect, but I failed!

   
this.getParent().getPage().replace(new MainPanel("main",new
Model(bean.getProperty1(;

   
}

   };

 

    /**

  *
Creates the model that feeds the tree.

  *
@return

  *
 New
instance of tree model.

  */

 protected
TreeModel createTreeModel()

 {

   List
l1 = new ArrayList();

   l1.add("test
1.1");

   l1.add("test
1.2");

   l1.add("test
1.3");

   List
l2 = new ArrayList();

   l2.add("test
2.1");

   l2.add("test
2.2");

   l2.add("test
2.3");

   List
l3 = new ArrayList();

   l3.add("test
3.1");

   l3.add("test
3.2");

   l3.add("test
3.3");

 

   l2.add(l3);

 

   l2.add("test
2.4");

   l2.add("test
2.5");

   l2.add("test
2.6");

 

   l3
= new ArrayList();

   l3.add("test
3.1");

   l3.add("test
3.2");

   l3.add("test
3.3");

   l2.add(l3);

 

   l1.add(l2);

 

   l2
= new ArrayList();

   l2.add("test
2.1");

   l2.add("test
2.2");

   l2.add("test
2.3");

 

   l1.add(l2);

 

   l1.add("test
1.3");

   l1.add("test
1.4");

   l1.add("test
1.5");

 

   return
convertToTreeModel(l1);

 }

 

 private
TreeModel convertToTreeModel(List list)

 {

   TreeModel
model = null;

   DefaultMutableTreeNode
rootNode = new DefaultMutableTreeNode(new ModelBean("ROOT"));

   add(rootNode,
list);

   model
= new DefaultTreeModel(rootNode);

   return
model;

 }

 

 private
void add(DefaultMutableTreeNode parent, List sub)

 {

   for
(Iterator i = sub.iterator(); i.hasNext();)

   {

    Object
o = i.next();

    if
(o instanceof List)

    {

 DefaultMutableTreeNode
child = new DefaultMutableTreeNode(new ModelBean("subtree..."));

 parent.add(child);

 add(child,
(List)o);

    }

    else

    {

 DefaultMutableTreeNode
child = new DefaultMutableTreeNode(new ModelBean(o.toString()));

 parent.add(child);

    }

   }

 }

    /**

  *
@see wicket.Component#isVersioned()

  */

 public
boolean isVersioned()

 {

   //
TODO Bug: Versioning gives problems... probably has to do with markup

   //
inheritance

   return
false;

 }

}

TreePanel.html











 

 

MainPanel.java

public class MainPanel extends Panel{

 

    public MainPanel(String s, IModel
iModel) {

    super(s,
iModel);

    add(new
Label("

Re: [Wicket-user] Tree scrolling

2006-09-22 Thread Matej Knopp
I believe in 1.2.2 it does. In svn it should be fixed. It's actually not 
Tree/TreeTable bug, but it's a browser quirk (IE I believe)

-Matej

Steve Knight wrote:
> Matej,
> 
> Does the TreeTable component in 1.2.2 suffer from the same image issue 
> as the Tree component?  I might just switch to the TreeTable.
> 
> Steve
> 
> On 9/21/06, * Matej Knopp* <[EMAIL PROTECTED] > 
> wrote:
> 
> Scrolling shouldn't be a problem.
> 
> 
>   
>   
> 
> 
> Well. In 1.2.2 there was a problem with internet explorer in standard
> compliance mode, images were staying even if tree scrolled. In current
> svn this is fixed. Can you please try current 1.x from svn?
> 
> -Matej
> 
> Steve Knight wrote:
>  > Ok, I just noticed that the tree component has built-in
> scrolling, but
>  > the problem remains valid.  The images don't scroll...at least not in
>  > IE.  In Firefox, the scrollbars don't even show up.
>  >
>  > On 9/21/06, *Steve Knight* < [EMAIL PROTECTED]
> 
>  > >> wrote:
>  >
>  > I am using the new tree component that was backported to 1.2,
> but I
>  > am having trouble putting the tree into a scrollable div.  I
> would
>  > like to restrict the tree to a certain height on screen, and when
>  > the tree gets larger it should show vertical
> scrollbars.  This sort
>  > of works.  The text scrolls fine but the images used for the
> folders
>  > and nodes does not scroll.  Is this possible?
>  >
>  >
>  >
>  >
> 
>  >
>  >
> -
> 
>  > 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree scrolling

2006-09-22 Thread Steve Knight
Matej,Does the TreeTable component in 1.2.2 suffer from the same image issue as the Tree component?  I might just switch to the TreeTable.SteveOn 9/21/06, 
Matej Knopp <[EMAIL PROTECTED]> wrote:Scrolling shouldn't be a problem.
Well. In 1.2.2 there was a problem with internet explorer in standard
compliance mode, images were staying even if tree scrolled. In currentsvn this is fixed. Can you please try current 1.x from svn?-MatejSteve Knight wrote:> Ok, I just noticed that the tree component has built-in scrolling, but
> the problem remains valid.  The images don't scroll...at least not in> IE.  In Firefox, the scrollbars don't even show up.>> On 9/21/06, *Steve Knight* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> I am using the new tree component that was backported to 1.2, but I> am having trouble putting the tree into a scrollable div.  I would
> like to restrict the tree to a certain height on screen, and when> the tree gets larger it should show vertical scrollbars.  This sort> of works.  The text scrolls fine but the images used for the folders
> and nodes does not scroll.  Is this possible? >> -
> 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.php&p=sourceforge&CID=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 ITJoin SourceForge.net
's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree scrolling

2006-09-22 Thread Matej Knopp
Yes, but consider that you want to have border (non-scrolling) around 
your tree. So you'll have to put overflow:auto to a element outside tree 
(the one with border and width set).

-Matej

Marc-Andre Houle wrote:
> By default, from what I have seen in tree.css, it is already set to 
> overflow:auto.  So it is not necessary.
> 
> Marc
> 
> On 9/21/06, *Matej Knopp* < [EMAIL PROTECTED] > 
> wrote:
> 
> One more thing. Instead overflow:scroll it would be better to have
> overflow:auto.
> 
> -Matej
> 
> Matej Knopp wrote:
>  > Scrolling shouldn't be a problem.
>  >
>  > 
>  >   
>  >   
>  > 
>  >
>  > Well. In 1.2.2 there was a problem with internet explorer in standard
>  > compliance mode, images were staying even if tree scrolled. In
> current
>  > svn this is fixed. Can you please try current 1.x from svn?
>  >
>  > -Matej
>  >
>  > Steve Knight wrote:
>  >> Ok, I just noticed that the tree component has built-in
> scrolling, but
>  >> the problem remains valid.  The images don't scroll...at least
> not in
>  >> IE.  In Firefox, the scrollbars don't even show up.
>  >>
>  >> On 9/21/06, *Steve Knight* <[EMAIL PROTECTED]
> 
>  >> mailto:[EMAIL PROTECTED]>>> wrote:
>  >>
>  >> I am using the new tree component that was backported to
> 1.2, but I
>  >> am having trouble putting the tree into a scrollable div.  I
> would
>  >> like to restrict the tree to a certain height on screen, and
> when
>  >> the tree gets larger it should show vertical
> scrollbars.  This sort
>  >> of works.  The text scrolls fine but the images used for the
> folders
>  >> and nodes does not scroll.  Is this possible?
>  >>
>  >>
>  >>
>  >>
> 
>  >>
>  >>
> -
> 
>  >> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
> 
> 
> 
> 
> ___

Re: [Wicket-user] Tree scrolling

2006-09-21 Thread Marc-Andre Houle
By default, from what I have seen in tree.css, it is already set to overflow:auto.  So it is not necessary.MarcOn 9/21/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:One more thing. Instead overflow:scroll it would be better to have
overflow:auto.-MatejMatej Knopp wrote:> Scrolling shouldn't be a problem.>> >   
>   > >> Well. In 1.2.2 there was a problem with internet explorer in standard> compliance mode, images were staying even if tree scrolled. In current> svn this is fixed. Can you please try current 
1.x from svn?>> -Matej>> Steve Knight wrote:>> Ok, I just noticed that the tree component has built-in scrolling, but>> the problem remains valid.  The images don't scroll...at least not in
>> IE.  In Firefox, the scrollbars don't even show up. On 9/21/06, *Steve Knight* <[EMAIL PROTECTED]>> 
[EMAIL PROTECTED]>> wrote: I am using the new tree component that was backported to 1.2, but I>> am having trouble putting the tree into a scrollable div.  I would
>> like to restrict the tree to a certain height on screen, and when>> the tree gets larger it should show vertical scrollbars.  This sort>> of works.  The text scrolls fine but the images used for the folders
>> and nodes does not scroll.  Is this possible?  -
>> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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 ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree scrolling

2006-09-21 Thread Matej Knopp
One more thing. Instead overflow:scroll it would be better to have 
overflow:auto.

-Matej

Matej Knopp wrote:
> Scrolling shouldn't be a problem.
> 
> 
>   
>   
> 
> 
> Well. In 1.2.2 there was a problem with internet explorer in standard 
> compliance mode, images were staying even if tree scrolled. In current 
> svn this is fixed. Can you please try current 1.x from svn?
> 
> -Matej
> 
> Steve Knight wrote:
>> Ok, I just noticed that the tree component has built-in scrolling, but 
>> the problem remains valid.  The images don't scroll...at least not in 
>> IE.  In Firefox, the scrollbars don't even show up.
>>
>> On 9/21/06, *Steve Knight* <[EMAIL PROTECTED] 
>> > wrote:
>>
>> I am using the new tree component that was backported to 1.2, but I
>> am having trouble putting the tree into a scrollable div.  I would
>> like to restrict the tree to a certain height on screen, and when
>> the tree gets larger it should show vertical scrollbars.  This sort
>> of works.  The text scrolls fine but the images used for the folders
>> and nodes does not scroll.  Is this possible?
>>
>>
>>
>> 
>>
>> -
>> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree scrolling

2006-09-21 Thread Matej Knopp
Scrolling shouldn't be a problem.


  
  


Well. In 1.2.2 there was a problem with internet explorer in standard 
compliance mode, images were staying even if tree scrolled. In current 
svn this is fixed. Can you please try current 1.x from svn?

-Matej

Steve Knight wrote:
> Ok, I just noticed that the tree component has built-in scrolling, but 
> the problem remains valid.  The images don't scroll...at least not in 
> IE.  In Firefox, the scrollbars don't even show up.
> 
> On 9/21/06, *Steve Knight* <[EMAIL PROTECTED] 
> > wrote:
> 
> I am using the new tree component that was backported to 1.2, but I
> am having trouble putting the tree into a scrollable div.  I would
> like to restrict the tree to a certain height on screen, and when
> the tree gets larger it should show vertical scrollbars.  This sort
> of works.  The text scrolls fine but the images used for the folders
> and nodes does not scroll.  Is this possible?
> 
> 
> 
> 
> 
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree scrolling

2006-09-21 Thread Steve Knight
Ok, I just noticed that the tree component has built-in scrolling, but the problem remains valid.  The images don't scroll...at least not in IE.  In Firefox, the scrollbars don't even show up.
On 9/21/06, Steve Knight <[EMAIL PROTECTED]> wrote:
I am using the new tree component that was backported to 1.2, but I am having trouble putting the tree into a scrollable div.  I would like to restrict the tree to a certain height on screen, and when the tree gets larger it should show vertical scrollbars.  This sort of works.  The text scrolls fine but the images used for the folders and nodes does not scroll.  Is this possible?



-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree scrolling

2006-09-21 Thread Steve Knight
I am using the new tree component that was backported to 1.2, but I am having trouble putting the tree into a scrollable div.  I would like to restrict the tree to a certain height on screen, and when the tree gets larger it should show vertical scrollbars.  This sort of works.  The text scrolls fine but the images used for the folders and nodes does not scroll.  Is this possible?

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree

2006-07-29 Thread Henk Laracker
Title: Tree






Hello,

I use the wicket tree component, is it possible to disable the style sheet?

Because we want to use our own.

Thank you,



Henk Laracker
Lead Architect
Development


Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 641 3135
F:  +31 (0) 24 642 2942
E:  [EMAIL PROTECTED]
W: www.planon-fm.com


Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.








-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree

2006-07-28 Thread henk laracker

Hello,
I use the wicket tree component, is it possible to disable the style sheet?
Because we want to use our own.
Thank you,
 
Henk LarackerLead ArchitectDevelopmentPlanon B.V.Wijchenseweg 86537 TL NijmegenP.O
. Box 380746503 AB NijmegenThe NetherlandsT: +31 (0) 24 641 3135F: +31 (0) 24 642 2942E: [EMAIL PROTECTED]W: 
www.planon-fm.com
Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.

 
 
 
-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree

2006-07-28 Thread Henk Laracker
Title: Tree






Hello,

I use the wicket tree component, is it possible to disable the style sheet?

Because we want to use our own.

Thank you,



Henk Laracker
Lead Architect
Development


Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 641 3135
F:  +31 (0) 24 642 2942
E:  [EMAIL PROTECTED]
W: www.planon-fm.com


Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.








-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree

2006-07-28 Thread David Leangen

You just need to override:

protected PackageResourceReference getCss()
{
return CSS;
}


Cheers,
Dave



On Thu, 2006-07-27 at 11:22 +0200, Henk Laracker wrote:
> Hello,
> 
> I use the wicket tree component, is it possible to disable the style
> sheet?
> 
> Because we want to use our own.
> 
> Thank you,
> 
> Henk Laracker
> Lead Architect
> Development
> 
> 
> Planon B.V.
> Wijchenseweg 8
> 6537 TL Nijmegen
> P.O. Box 38074
> 6503 AB Nijmegen
> The Netherlands
> T:  +31 (0) 24 641 3135
> F:  +31 (0) 24 642 2942
> E:  [EMAIL PROTECTED]
> W: www.planon-fm.com
> 
> 
> Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde
> ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke
> informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt,
> bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is.
> Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle
> bijlagen en kopieën onmiddellijk en informeer de afzender.
> 
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be
> copied, disclosed to, retained or used by, any other party. If you are
> not an intended recipient then please promptly delete this e-mail and
> any attachment and all copies and inform the sender.
> 
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree

2006-07-27 Thread Eelco Hillenius
Yep. Override getCss:

protected PackageResourceReference getCss()
{
return new PackageResourceReference(FooTree.class, "bar.css");
}

Also note that since a few days (will be in 1.2.2) there is a new tree
component put in extensions for 1.2.x, and will replace the tree in
core for 2.0. That tree is leaner and meaner, and has very nice
features like running in ajax mode etc. You might want to check that
out. They both work with Swing's TreeModel.

Eelco


On 7/27/06, Henk Laracker <[EMAIL PROTECTED]> wrote:
>
>
>
> Hello,
>
> I use the wicket tree component, is it possible to disable the style sheet?
>
> Because we want to use our own.
>
>
>
> Thank you,
>
> Henk Laracker
>  Lead Architect
>  Development
>  
>
>  Planon B.V.
>  Wijchenseweg 8
>  6537 TL Nijmegen
>  P.O. Box 38074
>  6503 AB Nijmegen
>  The Netherlands
>  T:  +31 (0) 24 641 3135
>  F:  +31 (0) 24 642 2942
>  E:  [EMAIL PROTECTED]
>  W: www.planon-fm.com
>
>
> Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde
> ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke
> informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt,
> bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u
> niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en
> kopieën onmiddellijk en informeer de afzender.
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender.
>
>
>
>
>
>
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree

2006-07-27 Thread Henk Laracker
Title: Tree






Hello,

I use the wicket tree component, is it possible to disable the style sheet?

Because we want to use our own.



Thank you,

Henk Laracker
Lead Architect
Development


Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 641 3135
F:  +31 (0) 24 642 2942
E:  [EMAIL PROTECTED]
W: www.planon-fm.com


Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.








-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree not shown correctly

2006-07-21 Thread Eelco Hillenius
I have no idea, your code looks fine to me. Did you try pasting in
your model in e.g. wicket.examples.nested? See if that works... it's
probably something small and stupid that is overlooked here.

Eelco


On 7/20/06, Rice Yeh <[EMAIL PROTECTED]> wrote:
> Hi,
>   I write a tree component by extending wicket.markup.html.tree.Tree. Also I
> extend the javax.swing.tree.DefaultTreeModel. I have my
> TreeModel tested in swing. It works fine. However, my tree just show the
> root node in wicket. What is going wrong? I have my code attached.
>
> Regards,
> Rice
>
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree not shown correctly

2006-07-20 Thread Rice Yeh
Hi,  I write a tree component by extending wicket.markup.html.tree.Tree. Also I extend the javax.swing.tree.DefaultTreeModel. I have my TreeModel tested in swing. It works fine. However, my tree just show the root node in wicket. What is going wrong? I have my code attached.
Regards,Rice


Tree.java
Description: Binary data


PartyManagementPage.java
Description: Binary data


Application.java
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-17 Thread Арву Оетук
Thank to all for replays.

Yes,Johan, this solve problem.
But too many methods in DefaultMutableTreeNode.
I think better way exist.
I create subclass that have loadAllChildren() method. Methods like children() 
or getChildCount() will call loadAllChildren()
Dmitry.


-Original Message-
From: "Johan Compagner" <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Date: Fri, 14 Jul 2006 11:31:05 +0200
Subject: Re: [Wicket-user] tree model

> That looks strange to me.
> i have used my own implementations. Where does the class cast exactly come
> from?
> 
> But still you could use DefaultMutableTreeNode just fine for lazy loading.
> Just don't give him childeren yet. Do that only when ask for (override the
> right methods like
> children() or getChildCount())
> 
> johan
> 
> On 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > It inherited that problem from Swing's Tree component. Don't ask me
> > why, but even though there is this TreeNode interface, Swing's Tree is
> > not really usuable with anything else than DefaultMutableTreeNode.
> > Unless I missed something.
> >
> > Eelco
> >
> >
> > On 7/13/06, Арву Оетук <[EMAIL PROTECTED]> wrote:
> > > When I use class which implement TreeNode, I got ClassCastException.
> > Tree use only DefaultMutableTreeNode.
> > > Wich way I can use?
> > >
> > >
> > > -Original Message-
> > > From: Michael Welter <[EMAIL PROTECTED]>
> > > To: Арву Оетук <[EMAIL PROTECTED]>, wicket-user@lists.sourceforge.net
> > > Date: Thu, 13 Jul 2006 03:33:53 -0600
> > > Subject: Re: [Wicket-user] tree model
> > >
> > > >
> > > > Absolutely!  The ability to drill-down into a data structure without
> > > > having to instantiate the entire structure in memory.
> > > >
> > > > Арву Оетук wrote:
> > > > > Hi all.
> > > > > I want use big tree model.
> > > > > But I don't want load all tree in memory.
> > > > > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > > > > Or other way exists?
> > > > > Dmitry.
> > > > >
> > > > >
> > > > >
> > -
> > > > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > > > Get stuff done quickly with pre-integrated technology to make your
> > job easier
> > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > > > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > > --
> > > > Michael Welter
> > > > Telecom Matters Corp.
> > > > Denver, Colorado US
> > > > +1.303.414.4980
> > > > [EMAIL PROTECTED]
> > > > www.TelecomMatters.net
> > > >
> > >
> > >
> > >
> > -
> > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > htt

Re: [Wicket-user] tree model

2006-07-16 Thread Eelco Hillenius
Just looked into it a bit. The problem is that the TreeNode interfaces
really don't define enough behavior. Like getPreviousSibling,
getNextSibling, getPath, getLevel, preorderEnumeration and
getUserObject are all used in both Wicket's tree and Swing's Tree, and
they are only defined in DefaultMutableTreeNode.

Eelco

On 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> It inherited that problem from Swing's Tree component. Don't ask me
> why, but even though there is this TreeNode interface, Swing's Tree is
> not really usuable with anything else than DefaultMutableTreeNode.
> Unless I missed something.
>
> Eelco
>
>
> On 7/13/06, Арву Оетук <[EMAIL PROTECTED]> wrote:
> > When I use class which implement TreeNode, I got ClassCastException. Tree 
> > use only DefaultMutableTreeNode.
> > Wich way I can use?
> >
> >
> > -Original Message-
> > From: Michael Welter <[EMAIL PROTECTED]>
> > To: Арву Оетук <[EMAIL PROTECTED]>, wicket-user@lists.sourceforge.net
> > Date: Thu, 13 Jul 2006 03:33:53 -0600
> > Subject: Re: [Wicket-user] tree model
> >
> > >
> > > Absolutely!  The ability to drill-down into a data structure without
> > > having to instantiate the entire structure in memory.
> > >
> > > Арву Оетук wrote:
> > > > Hi all.
> > > > I want use big tree model.
> > > > But I don't want load all tree in memory.
> > > > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > > > Or other way exists?
> > > > Dmitry.
> > > >
> > > >
> > > > -
> > > > Using Tomcat but need to do more? Need to support web services, 
> > > > security?
> > > > Get stuff done quickly with pre-integrated technology to make your job 
> > > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> > > > Geronimo
> > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > > --
> > > Michael Welter
> > > Telecom Matters Corp.
> > > Denver, Colorado US
> > > +1.303.414.4980
> > > [EMAIL PROTECTED]
> > > www.TelecomMatters.net
> > >
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-14 Thread Johan Compagner
That looks strange to me.i have used my own implementations. Where does the class cast exactly come from?But still you could use DefaultMutableTreeNode just fine for lazy loading.Just don't give him childeren yet. Do that only when ask for (override the right methods like
children() or getChildCount())johanOn 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]
> wrote:It inherited that problem from Swing's Tree component. Don't ask mewhy, but even though there is this TreeNode interface, Swing's Tree is
not really usuable with anything else than DefaultMutableTreeNode.Unless I missed something.EelcoOn 7/13/06, Арву Оетук <[EMAIL PROTECTED]> wrote:
> When I use class which implement TreeNode, I got ClassCastException. Tree use only DefaultMutableTreeNode.> Wich way I can use?>>> -Original Message-> From: Michael Welter <
[EMAIL PROTECTED]>> To: Арву Оетук <[EMAIL PROTECTED]>, wicket-user@lists.sourceforge.net
> Date: Thu, 13 Jul 2006 03:33:53 -0600> Subject: Re: [Wicket-user] tree model>> >> > Absolutely!  The ability to drill-down into a data structure without> > having to instantiate the entire structure in memory.
> >> > Арву Оетук wrote:> > > Hi all.> > > I want use big tree model.> > > But I don't want load all tree in memory.> > > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > > Or other way exists?> > > Dmitry.> > >> > >> > > -> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job easier> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > > 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > ___> > > Wicket-user mailing list> > > 
Wicket-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wicket-user> > >> > >
> >> > --> > Michael Welter> > Telecom Matters Corp.> > Denver, Colorado US> > +1.303.414.4980> > [EMAIL PROTECTED]
> > www.TelecomMatters.net> >>>> -> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-13 Thread Eelco Hillenius
It inherited that problem from Swing's Tree component. Don't ask me
why, but even though there is this TreeNode interface, Swing's Tree is
not really usuable with anything else than DefaultMutableTreeNode.
Unless I missed something.

Eelco


On 7/13/06, Арву Оетук <[EMAIL PROTECTED]> wrote:
> When I use class which implement TreeNode, I got ClassCastException. Tree use 
> only DefaultMutableTreeNode.
> Wich way I can use?
>
>
> -Original Message-
> From: Michael Welter <[EMAIL PROTECTED]>
> To: Арву Оетук <[EMAIL PROTECTED]>, wicket-user@lists.sourceforge.net
> Date: Thu, 13 Jul 2006 03:33:53 -0600
> Subject: Re: [Wicket-user] tree model
>
> >
> > Absolutely!  The ability to drill-down into a data structure without
> > having to instantiate the entire structure in memory.
> >
> > Арву Оетук wrote:
> > > Hi all.
> > > I want use big tree model.
> > > But I don't want load all tree in memory.
> > > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > > Or other way exists?
> > > Dmitry.
> > >
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > --
> > Michael Welter
> > Telecom Matters Corp.
> > Denver, Colorado US
> > +1.303.414.4980
> > [EMAIL PROTECTED]
> > www.TelecomMatters.net
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-13 Thread David Leangen

Can you send more information?


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Арв?EОе
> тук
> Sent: 13 July 2006 20:59
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] tree model
>
>
> When I use class which implement TreeNode, I got
> ClassCastException. Tree use only DefaultMutableTreeNode.
> Wich way I can use?
>
>
> -Original Message-
> From: Michael Welter <[EMAIL PROTECTED]>
> To: Арву Оетук <[EMAIL PROTECTED]>,
> wicket-user@lists.sourceforge.net
> Date: Thu, 13 Jul 2006 03:33:53 -0600
> Subject: Re: [Wicket-user] tree model
>
> >
> > Absolutely!  The ability to drill-down into a data structure without
> > having to instantiate the entire structure in memory.
> >
> > Арву Оетук wrote:
> > > Hi all.
> > > I want use big tree model.
> > > But I don't want load all tree in memory.
> > > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > > Or other way exists?
> > > Dmitry.
> > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web
> services, security?
> > > Get stuff done quickly with pre-integrated technology to make
> your job easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> > >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> Michael Welter
> Telecom Matters Corp.
> Denver, Colorado US
> +1.303.414.4980
> [EMAIL PROTECTED]
> www.TelecomMatters.net
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-13 Thread Арву Оетук
When I use class which implement TreeNode, I got ClassCastException. Tree use 
only DefaultMutableTreeNode.
Wich way I can use?


-Original Message-
From: Michael Welter <[EMAIL PROTECTED]>
To: Арву Оетук <[EMAIL PROTECTED]>, wicket-user@lists.sourceforge.net
Date: Thu, 13 Jul 2006 03:33:53 -0600
Subject: Re: [Wicket-user] tree model

> 
> Absolutely!  The ability to drill-down into a data structure without 
> having to instantiate the entire structure in memory.
> 
> Арву Оетук wrote:
> > Hi all.
> > I want use big tree model.
> > But I don't want load all tree in memory.
> > Is it possible use TreeNode instead DefaultMutableTreeNode?
> > Or other way exists?
> > Dmitry.
> > 
> > 
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > 
> > 
> 
> -- 
> Michael Welter
> Telecom Matters Corp.
> Denver, Colorado US
> +1.303.414.4980
> [EMAIL PROTECTED]
> www.TelecomMatters.net
> 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] tree model

2006-07-13 Thread Michael Welter
Absolutely!  The ability to drill-down into a data structure without 
having to instantiate the entire structure in memory.

Арву Оетук wrote:
> Hi all.
> I want use big tree model.
> But I don't want load all tree in memory.
> Is it possible use TreeNode instead DefaultMutableTreeNode?
> Or other way exists?
> Dmitry.
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
Michael Welter
Telecom Matters Corp.
Denver, Colorado US
+1.303.414.4980
[EMAIL PROTECTED]
www.TelecomMatters.net


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] tree model

2006-07-13 Thread Арву Оетук
Hi all.
I want use big tree model.
But I don't want load all tree in memory.
Is it possible use TreeNode instead DefaultMutableTreeNode?
Or other way exists?
Dmitry.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree images

2005-08-05 Thread Dzenan Ridjanovic

Martijn,

I am using Wicket 1.1.-b2 release. Yes, I use the Wicket jar from rhe 
distribution.


Dzenan


Dzenan,


The Tree component itself has images (see source pasted below). I don't 
know why you get a NPE though. What kind of Wicket set up are you using? 
Do you use the wicket jar from the distribution, or did you build one 
yourself?



Martijn





---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree

2005-08-05 Thread Martijn Dashorst

Dzenan,

The Tree component itself has images (see source pasted below). I don't 
know why you get a NPE though. What kind of Wicket set up are you using? 
Do you use the wicket jar from the distribution, or did you build one 
yourself?


Martijn


public abstract class Tree extends AbstractTree implements TreeModelListener
{
   /** Name of the junction image component; value = 'junctionImage'. */
   public static final String JUNCTION_IMAGE_NAME = "junctionImage";

   /** Name of the node image component; value = 'nodeImage'. */
   public static final String NODE_IMAGE_NAME = "nodeImage";

   /** Blank image. */
   private static final ResourceReference BLANK =
   new StaticResourceReference(Tree.class, "blank.gif");

   /** Minus sign image. */
   private static final ResourceReference MINUS =
   new StaticResourceReference(Tree.class, "minus.gif");

   /** Plus sign image. */
   private static final ResourceReference PLUS =
   new StaticResourceReference(Tree.class, "plus.gif");




Dzenan Ridjanovic wrote:


Hi,

I have a tree without images and I still get the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at 
org.wicket.urls.app.view.category.CategoriesTreeState.main(CategoriesTreeState.java:129) 


Caused by: java.lang.NullPointerException
   at 
wicket.markup.html.StaticResourceReference.(StaticResourceReference.java:38) 


   at wicket.markup.html.tree.Tree.(Tree.java:90)
   ... 1 more

public class CategoriesTreeState {
   private static Log log = LogFactory.getLog(CategoriesTreeState.class);
   private TreeState categoriesTreeState = new TreeState();
 public CategoriesTreeState(Categories categories) {
   TreeModel model = null;
   DefaultMutableTreeNode rootNode = new 
DefaultMutableTreeNode("Categories");

   add(rootNode, categories);
   model = new DefaultTreeModel(rootNode);
   categoriesTreeState.setModel(model);
   }
 public TreeState getState() {
   return categoriesTreeState;
   }
 private void add(DefaultMutableTreeNode parent, Categories 
categories) {

   for (Iterator i = categories.iterator(); i.hasNext();) {
   Category category = (Category) i.next();
   DefaultMutableTreeNode child = new 
DefaultMutableTreeNode(category);

   parent.add(child);
   Categories subcategories = category.getSubcategories();
   if (subcategories.size() > 0) {
   add(child, subcategories);
   }
   }
   }
 public static void main(String[] args) {
   try {
   Log4jConfigurator log4jConfigurator = new Log4jConfigurator();
   UrlsDb urlsDb = new UrlsDb();
   urlsDb.load(); Categories approvedCategories = 
urlsDb.getApprovedCategories();
   CategoriesTreeState categoriesTreeState = new 
CategoriesTreeState(approvedCategories);

   CategoriesTree categoriesTree =
   new CategoriesTree("categoriesTree", 
categoriesTreeState.getState());

   }
   catch (Exception e) {
log.error("Database error: " + e.getMessage());
   } }
}

public class CategoriesTree extends Tree {
   private static Log log = LogFactory.getLog(CategoriesTree.class);

   public CategoriesTree(String id, TreeState treeState) {
   super(id, treeState);
   }

   protected String getNodeLabel(DefaultMutableTreeNode node) {
   Object userObject = node.getUserObject();
   if (userObject instanceof Category) {
   Category category = (Category) userObject;
   return category.getName();
   }
   return "Categories";
   }
  }

I would appreciate your help.

Dzenan






---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing 
& QA

Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tree

2005-08-05 Thread Dzenan Ridjanovic

Hi,

I have a tree without images and I still get the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at 
org.wicket.urls.app.view.category.CategoriesTreeState.main(CategoriesTreeState.java:129)

Caused by: java.lang.NullPointerException
   at 
wicket.markup.html.StaticResourceReference.(StaticResourceReference.java:38)

   at wicket.markup.html.tree.Tree.(Tree.java:90)
   ... 1 more

public class CategoriesTreeState {
   private static Log log = LogFactory.getLog(CategoriesTreeState.class);
   private TreeState categoriesTreeState = new TreeState();
  
   public CategoriesTreeState(Categories categories) {

   TreeModel model = null;
   DefaultMutableTreeNode rootNode = new 
DefaultMutableTreeNode("Categories");

   add(rootNode, categories);
   model = new DefaultTreeModel(rootNode);
   categoriesTreeState.setModel(model);
   }
  
   public TreeState getState() {

   return categoriesTreeState;
   }
  
   private void add(DefaultMutableTreeNode parent, Categories categories) {

   for (Iterator i = categories.iterator(); i.hasNext();) {
   Category category = (Category) i.next();
   DefaultMutableTreeNode child = new 
DefaultMutableTreeNode(category);

   parent.add(child);
   Categories subcategories = category.getSubcategories();
   if (subcategories.size() > 0) {
   add(child, subcategories);
   }
   }
   }
  
   public static void main(String[] args) {

   try {
   Log4jConfigurator log4jConfigurator = new Log4jConfigurator();
   UrlsDb urlsDb = new UrlsDb();
   urlsDb.load();  
   Categories approvedCategories = urlsDb.getApprovedCategories();
   CategoriesTreeState categoriesTreeState = new 
CategoriesTreeState(approvedCategories);

   CategoriesTree categoriesTree =
   new CategoriesTree("categoriesTree", 
categoriesTreeState.getState());

   }
   catch (Exception e) {
log.error("Database error: " + e.getMessage());
   }  
   }

}

public class CategoriesTree extends Tree {
   private static Log log = LogFactory.getLog(CategoriesTree.class);

   public CategoriesTree(String id, TreeState treeState) {
   super(id, treeState);
   }

   protected String getNodeLabel(DefaultMutableTreeNode node) {
   Object userObject = node.getUserObject();
   if (userObject instanceof Category) {
   Category category = (Category) userObject;
   return category.getName();
   }
   return "Categories";
   }
  
}


I would appreciate your help.

Dzenan






---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user