Re: Fwd: Tree2

2009-05-07 Thread HansDePrez

I have found that the problem seems to be that in the generated code the
border option for the 
image is not set to "0". 
Any idea how I can correct this? 

Kind regards,

Hans.

schof-2 wrote:
> 
> -- Forwarded message --
> From: De Prez Hans 
> Date: Wed, May 6, 2009 at 9:32 AM
> Subject: Tree2
> To: sc...@apache.org
> 
> 
> Sean,
> 
> 
> 
> I have just started using the tomahawk library and I have a question
> regarding the use of the tree2 component.
> 
> When I display my tree with the clientSideToggle option = true
> everything works fine but when I set the option to false
> 
> The navigation icons (+ and -) are displayed with a blue border. Is
> this normal behaviour?
> 
> 
> 
> Kind regards,
> 
> 
> 
> Hans.
> 
> 
> 
> 
> 
> FPS HEALTH, FOOD CHAIN SAFETY AND ENVIRONMENT
> 
> 
> 
> De Prez Hans
> 
> ICT
> 
> 
> 
> Architecture Team
> 
> Tel :
> 
> +32 2 524.70.72
> 
> Victor Hortaplein 40
> 
> Email :
> 
> hans.dep...@health.fgov.be
> 
> 1060 Brussel
> 
> 
> 
> 
> 
> 
> Disclaimer :
> https://portal.health.fgov.be/portal/page?_pageid=56,8674425&_dad=portal&_schema=PORTAL
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Fwd%3A-Tree2-tp23414685p23426620.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Fwd: Tree2

2009-05-06 Thread Sean Schofield
-- Forwarded message --
From: De Prez Hans 
Date: Wed, May 6, 2009 at 9:32 AM
Subject: Tree2
To: sc...@apache.org


Sean,



I have just started using the tomahawk library and I have a question
regarding the use of the tree2 component.

When I display my tree with the clientSideToggle option = true
everything works fine but when I set the option to false

The navigation icons (+ and -) are displayed with a blue border. Is
this normal behaviour?



Kind regards,



Hans.





FPS HEALTH, FOOD CHAIN SAFETY AND ENVIRONMENT



De Prez Hans

ICT



Architecture Team

Tel :

+32 2 524.70.72

Victor Hortaplein 40

Email :

hans.dep...@health.fgov.be

1060 Brussel






Disclaimer : 
https://portal.health.fgov.be/portal/page?_pageid=56,8674425&_dad=portal&_schema=PORTAL


Fwd: tree2 problem: Encountered a node [0] + with an illogical state

2006-01-16 Thread Alex Burton
hi there,

Is there a way to properly flush the tree2 client and server side
components? I seem to get the below exception very regularly. I have a
drop down selection list that on change shows a different tree. after
a few goes i seem to get this pretty often i also seem to start
getting duplicates in the tree sometimes too... any ideas?

cheers,
Alex.



javax.servlet.ServletException: Encountered a node [0] + with an
illogical state.  Node is expanded but it is also considered a leaf (a
leaf cannot be considered expanded.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

root cause

java.lang.IllegalStateException: Encountered a node [0] + with an
illogical state.  Node is expanded but it is also considered a leaf (a
leaf cannot be considered expanded.

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTreeRenderer.java:463)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:346)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:248)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:196)

javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)

javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)

org.apache.jsp.structure_jsp._jspx_meth_t_tree2_0(structure_jsp.java:593)
org.apache.jsp.structure_jsp._jspx_meth_h_form_0(structure_jsp.java:461)
org.apache.jsp.structure_jsp._jspx_meth_f_view_0(structure_jsp.java:197)
org.apache.jsp.structure_jsp._jspService(structure_jsp.java:147)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)

org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)


code:



   


   


   

   

  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 







siteBean
   
com.zuffle.cms.view.bean.SiteBean
session



public class SiteBean extends BaseBean implements ValueChangeListener
{
private Logger log = Logger.getLogger(this.getClass());

private List sites;

private List sitesSelectedItems = new ArrayList();

private String siteSelectedItem;

private Site site;

private TreeModelBase navTreeModel;

/**
 * Set up the SiteBean with da

Fwd: Tree2 Questions

2005-08-30 Thread Sean Schofield
Please send tree2 questions to the mailing list so all users can
benefit from the answers.  Also, there are many more users on the list
who can help you and the component authors do not have time to answer
all of the questions individually.

Regards,

sean

-- Forwarded message --
From: Dunbar, Bryan <[EMAIL PROTECTED]>
Date: Aug 30, 2005 11:22 AM
Subject: Tree2 Questions
To: [EMAIL PROTECTED]


 

Sean - Do you have a good way to implement Lazy loading via tree2?  

This e-mail transmission contains information that is confidential and
may be privileged. It is intended only for the addressee(s) named
above. If you receive this e-mail in error, please do not read, copy
or disseminate it in any manner. If you are not the intended
recipient, any disclosure, copying, distribution or use of the
contents of this information is prohibited. Please reply to the
message immediately by informing the sender that the message was
misdirected. After replying, please erase it from your computer
system. Your assistance in correcting this error is appreciated.


Fwd: Tree2

2005-08-26 Thread Sean Schofield
Please direct all MyFaces correspondence to the user list.  This way
everyone can benefit from the answers to your questions.

sean

-- Forwarded message --
From: Patel, Hitesh (Exchange) <[EMAIL PROTECTED]>
Date: Aug 26, 2005 2:17 PM
Subject: Tree2
To: [EMAIL PROTECTED]


 
 

Hi Sean, 

  

I am using the tree2 in Myfaces and my requirement is to get the data
from the database and build the tree nodes every time a node is
expanded. If an expanded node is collapsed I want to remove the nodes
under this node from the tree and add the nodes afresh by getting the
data from the database when that node is expanded again.

  

I am facing the problem that even if I remove the child nodes of the
node that I collapse, when I add the nodes again when I expand that
node it seems to remember the state of the child nodes before I
collapsed the parent node and removed these child nodes. So if I had a
child node which was expanded before I removed it, the next time I
expand the parent node and add these child nodes and I click on this
child node that was expanded it will not expand on the first click as
it was expanded when I removed this node. On the second click It
expands. I believe it is collapsing the state on the first click and
on the second click it is then expanding. How do I remove the state of
the child nodes that I remove from the tree.

  

I use….. 

  

List children = node.getChildren(); 

Children.removeAll(children); 

  

…. to remove the nodes. Is there another better way to remove the
nodes or am I doing it correctly. IF this is correct then how do I
remove the states of the nodes the tree maintains.

  

Your help is much appreciated. 

  

Thank you, 

Hitesh 


**
Please be aware that, notwithstanding the fact that the person sending
this communication has an address in Bear Stearns' e-mail system, this
person is not an employee, agent or representative of Bear Stearns.
Accordingly, this person has no power or authority to represent, make
any recommendation, solicitation, offer or statements or disclose
information on behalf of or in any way bind Bear Stearns or any of its
affiliates.
**


Re: Fwd: Tree2

2005-03-03 Thread Tim Pyle
Well, to be honest, I do not think I am wanting to change the tree as
much as I am wanting to change the Treenode data that the tree takes.
The tree takes a value from a backing bean that returns a TreeNode
Object. Guess I am trying to figure out a way for a jsp developer to
dynamically change the way that this TreeNode is built without having to
access the bean itself and hardcoding the specifics. As you know, I am
using the tree2 component to display the directory structure of the log
files on my appserver. However, this directory path is hardcoded into
the bean during the Treenode creation. I would like to be able to pass
this starting directory into the tree, so that it can be read in before
the treeNode is actually built. So to recap, the tree itself is great,
works like a champ, I am just trying to figure a way to pass in
parameters, via jsp, into the method that builds the TreeNode.

Tim 

On Thu, 2005-03-03 at 11:50, Sean Schofield wrote:
> Tim,
> 
> I am going to move this discussion to the list in case this discussion
> is of interest to anyone else.
> 
> Can you be a little more specific about your feature request?  What do
> you mean by specifying the root location?  Are you referrring to the
> root location of the tree or a file system that is modeled by the tree
> (or are they the same?)
> 
> Right now  only works with JSF components that support it. 
> Tree2 does not really support  itself (although it could if
> we found a reason for that.)   You can use  inside your tree
> but only with components that support it (like commandLink).  Notice
> how I use it in the tree2 example for the document facet.
> 
> So if you are using  to try and configure the tree itself you
> won't get very far.  Again, we could consider using  but
> right now if you want to configure the tree you just change one of the
> attributes in the  tag.  For instance if you don't want to
> show the connecting lines you specify showLines="false".
> 
> sean
> 
> -- Forwarded message --
> From: Tim Pyle <[EMAIL PROTECTED]>
> Date: Thu, 03 Mar 2005 09:55:30 -0600
> Subject: Re: Tree2
> To: Sean Schofield <[EMAIL PROTECTED]>
> 
> 
> Hey man how's it going?
> Tree is working great, no problems yet. However, I have need to be able
> to do somehting, and not sure the best way to get it accomplished. I am
> needing to be able to pass in a parameter or two before the tree data
> gets built. I have the tree which gets it's data from a method in a
> backing bean. I would really like to find a way to get these parameters
> to the backing bean from the jsp page. I tried to use the  tag,
> but that didn't seem to work. Like in this one use of the file-structure
> tree, I would like the developer who writes the jsp page to be able to
> specify the root location that the tree will begin. And again, all of
> this is implemented within the bean, but I would like to find a way for
> the jsp guy to pass in the parameters. Any idea on this?
> 
> Tim
> 
> On Wed, 2005-03-02 at 22:10, Sean Schofield wrote:
> > Tim,
> >
> > How is the new tree working out for you?  Let me know if you find anything.
> >
> > sean



Fwd: Tree2

2005-03-03 Thread Sean Schofield
Tim,

I am going to move this discussion to the list in case this discussion
is of interest to anyone else.

Can you be a little more specific about your feature request?  What do
you mean by specifying the root location?  Are you referrring to the
root location of the tree or a file system that is modeled by the tree
(or are they the same?)

Right now  only works with JSF components that support it. 
Tree2 does not really support  itself (although it could if
we found a reason for that.)   You can use  inside your tree
but only with components that support it (like commandLink).  Notice
how I use it in the tree2 example for the document facet.

So if you are using  to try and configure the tree itself you
won't get very far.  Again, we could consider using  but
right now if you want to configure the tree you just change one of the
attributes in the  tag.  For instance if you don't want to
show the connecting lines you specify showLines="false".

sean

-- Forwarded message --
From: Tim Pyle <[EMAIL PROTECTED]>
Date: Thu, 03 Mar 2005 09:55:30 -0600
Subject: Re: Tree2
To: Sean Schofield <[EMAIL PROTECTED]>


Hey man how's it going?
Tree is working great, no problems yet. However, I have need to be able
to do somehting, and not sure the best way to get it accomplished. I am
needing to be able to pass in a parameter or two before the tree data
gets built. I have the tree which gets it's data from a method in a
backing bean. I would really like to find a way to get these parameters
to the backing bean from the jsp page. I tried to use the  tag,
but that didn't seem to work. Like in this one use of the file-structure
tree, I would like the developer who writes the jsp page to be able to
specify the root location that the tree will begin. And again, all of
this is implemented within the bean, but I would like to find a way for
the jsp guy to pass in the parameters. Any idea on this?

Tim

On Wed, 2005-03-02 at 22:10, Sean Schofield wrote:
> Tim,
>
> How is the new tree working out for you?  Let me know if you find anything.
>
> sean