need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-24 Thread Rick Hightower








I downloaded the source, but the tree column does not seem
to have a renderer mentioned in the faces-config.xml file.

 

What gives?

 

I looked at the source for the tree column as well.

 

It does not do inline rendering.

 

So where is the renderer if it is not metioned in
faces-config.xml or done inline?

 

I need to change the rendering b/c of this bug…. 

 

See

 

http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes

 

BTW After using Perforce on several projects, SVN is a pain
in the butt to work with. It is dog slow.

 








Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Rick
Dennis Byrne is the MAN!

After much protest, I find that you are right. (It is a bit strange
since there are renderers for the other children nodes but not this one, but
hey I am glad you got me looking in the right direction!)

In HtmlTreeRenderer (in the renderChildren method) there is the following
biz:


else if
((componentChild.getFamily().equals(HtmlTreeColumn.COMPONENT_FAMILY))
&& ((HtmlTreeColumn)
componentChild).isRendered())
{
renderTreeColumnChild(facesContext, writer,
componentChild, tree, child, maxLevel, iconProvider);
}


Then there is this biz:

protected void renderTreeColumnChild(FacesContext facesContext,
ResponseWriter writer, UIComponent component,
HtmlTree tree, HtmlTreeNode child, int maxLevel, IconProvider
iconProvider) throws IOException
{
String iconClass = tree.getIconClass();
int[] layout = child.getLayout();
// tree lines
for (int i = 0; i < layout.length - 1; i++)
{
int state = layout[i];
writer.startElement(HTML.TD_ELEM, child);
String url = getLayoutImage(facesContext, tree, state);

if ((url != null) && (url.length() > 0))
{
writeImageElement(url, facesContext, writer, child);
}
writer.endElement(HTML.TD_ELEM);

}

Okay... I see where I can add a style class at... 
-Original Message-
From: Rick [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 5:38 PM
To: 'MyFaces Discussion'
Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)

I verified that the family in HtmlTreeColumn is not in faces-config.xml that
ships with Tomahawk.


/** The component type. */
public static final String COMPONENT_TYPE =
"org.apache.myfaces.HtmlTreeColumn";

/** The component family. */
public static final String COMPONENT_FAMILY =
"org.apache.myfaces.HtmlTreeColumn";

The comp family does not show up in the renderer section at all.




-Original Message-
From: Rick [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 5:27 PM
To: 'MyFaces Discussion'
Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)

Good idea. Thanks. I needed a crumb trail. That makes sense. 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 3:36 PM
To: MyFaces Discussion
Subject: Re: need to change renderer for tree column (for Tree table
Tomahawk feature)

You might want to see if the tree is doing the rendering for the tree
column.

Dennis Byrne

>-Original Message-
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 23, 2006 06:06 PM
>To: ''Rick Hightower'', ''MyFaces Discussion''
>Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)
>
> 
>
>I downloaded the source, but the tree column does not seem to have a
>renderer mentioned in the faces-config.xml file.
>
> 
>
>What gives?
>
> 
>
>I looked at the source for the tree column as well.
>
> 
>
>It does not do inline rendering.
>
> 
>
>So where is the renderer if it is not metioned in faces-config.xml or done
>inline?
>
> 
>
>I need to change the rendering b/c of this bug.. 
>
> 
>
>See
>
> 
>
>http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes
>
> 
>
>BTW After using Perforce on several projects, SVN is a pain in the butt to
>work with. It is dog slow.
>
> 
>
>










RE: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Rick
I verified that the family in HtmlTreeColumn is not in faces-config.xml that
ships with Tomahawk.


/** The component type. */
public static final String COMPONENT_TYPE =
"org.apache.myfaces.HtmlTreeColumn";

/** The component family. */
public static final String COMPONENT_FAMILY =
"org.apache.myfaces.HtmlTreeColumn";

The comp family does not show up in the renderer section at all.




-Original Message-
From: Rick [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 5:27 PM
To: 'MyFaces Discussion'
Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)

Good idea. Thanks. I needed a crumb trail. That makes sense. 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 3:36 PM
To: MyFaces Discussion
Subject: Re: need to change renderer for tree column (for Tree table
Tomahawk feature)

You might want to see if the tree is doing the rendering for the tree
column.

Dennis Byrne

>-Original Message-
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 23, 2006 06:06 PM
>To: ''Rick Hightower'', ''MyFaces Discussion''
>Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)
>
> 
>
>I downloaded the source, but the tree column does not seem to have a
>renderer mentioned in the faces-config.xml file.
>
> 
>
>What gives?
>
> 
>
>I looked at the source for the tree column as well.
>
> 
>
>It does not do inline rendering.
>
> 
>
>So where is the renderer if it is not metioned in faces-config.xml or done
>inline?
>
> 
>
>I need to change the rendering b/c of this bug.. 
>
> 
>
>See
>
> 
>
>http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes
>
> 
>
>BTW After using Perforce on several projects, SVN is a pain in the butt to
>work with. It is dog slow.
>
> 
>
>








RE: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Rick
You might be right, and that might be the case, but they do seem to have a
tree renderer for all of the other types of nodes as follows:


org.apache.myfaces.HtmlTree
org.apache.myfaces.HtmlTree
 
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRender
er



org.apache.myfaces.HtmlTree
 
org.apache.myfaces.HtmlTreeImageCommandLink

 
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeImageCommandLinkRender
er



 
org.apache.myfaces.HtmlTreeCheckbox
 
org.apache.myfaces.HtmlTreeCheckbox
 
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeCheckb
oxRenderer



javax.faces.Command
org.apache.myfaces.HtmlTreeNode
 
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeNodeRe
nderer


It would seem odd not to have a renderer for just one node type (a tree
column node), but

--Rick



-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 3:36 PM
To: MyFaces Discussion
Subject: Re: need to change renderer for tree column (for Tree table
Tomahawk feature)

You might want to see if the tree is doing the rendering for the tree
column.

Dennis Byrne

>-Original Message-
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 23, 2006 06:06 PM
>To: ''Rick Hightower'', ''MyFaces Discussion''
>Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)
>
> 
>
>I downloaded the source, but the tree column does not seem to have a
>renderer mentioned in the faces-config.xml file.
>
> 
>
>What gives?
>
> 
>
>I looked at the source for the tree column as well.
>
> 
>
>It does not do inline rendering.
>
> 
>
>So where is the renderer if it is not metioned in faces-config.xml or done
>inline?
>
> 
>
>I need to change the rendering b/c of this bug.. 
>
> 
>
>See
>
> 
>
>http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes
>
> 
>
>BTW After using Perforce on several projects, SVN is a pain in the butt to
>work with. It is dog slow.
>
> 
>
>






RE: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Rick
Good idea. Thanks. I needed a crumb trail. That makes sense. 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 3:36 PM
To: MyFaces Discussion
Subject: Re: need to change renderer for tree column (for Tree table
Tomahawk feature)

You might want to see if the tree is doing the rendering for the tree
column.

Dennis Byrne

>-Original Message-
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 23, 2006 06:06 PM
>To: ''Rick Hightower'', ''MyFaces Discussion''
>Subject: RE: need to change renderer for tree column (for Tree table
Tomahawk feature)
>
> 
>
>I downloaded the source, but the tree column does not seem to have a
>renderer mentioned in the faces-config.xml file.
>
> 
>
>What gives?
>
> 
>
>I looked at the source for the tree column as well.
>
> 
>
>It does not do inline rendering.
>
> 
>
>So where is the renderer if it is not metioned in faces-config.xml or done
>inline?
>
> 
>
>I need to change the rendering b/c of this bug.. 
>
> 
>
>See
>
> 
>
>http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes
>
> 
>
>BTW After using Perforce on several projects, SVN is a pain in the butt to
>work with. It is dog slow.
>
> 
>
>






Re: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Dennis Byrne
You might want to see if the tree is doing the rendering for the tree column.

Dennis Byrne

>-Original Message-
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 23, 2006 06:06 PM
>To: ''Rick Hightower'', ''MyFaces Discussion''
>Subject: RE: need to change renderer for tree column (for Tree table Tomahawk 
>feature)
>
> 
>
>I downloaded the source, but the tree column does not seem to have a
>renderer mentioned in the faces-config.xml file.
>
> 
>
>What gives?
>
> 
>
>I looked at the source for the tree column as well.
>
> 
>
>It does not do inline rendering.
>
> 
>
>So where is the renderer if it is not metioned in faces-config.xml or done
>inline?
>
> 
>
>I need to change the rendering b/c of this bug.. 
>
> 
>
>See
>
> 
>
>http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes
>
> 
>
>BTW After using Perforce on several projects, SVN is a pain in the butt to
>work with. It is dog slow.
>
> 
>
>




RE: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Rick








 

I downloaded the source, but the tree column does not seem
to have a renderer mentioned in the faces-config.xml file.

 

What gives?

 

I looked at the source for the tree column as well.

 

It does not do inline rendering.

 

So where is the renderer if it is not metioned in
faces-config.xml or done inline?

 

I need to change the rendering b/c of this bug…. 

 

See

 

http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes

 

BTW After using Perforce on several projects, SVN is a pain
in the butt to work with. It is dog slow.