You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dennis Byrne <de...@dbyrne.net> on 2006/06/24 03:59:51 UTC

Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3? ---------------- RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column (for Tree table Tomahawk feature)

Hello Rick,

Thanks for the recognition.  The source code servlet is actually located in the myfaces-shared project, under org.apache.myfaces.shared.util.servlet .  At build time, it is morphed into org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet .  Check it.

Dennis Byrne

>-----Original Message-----
>From: Rick [mailto:ricks_mailinglists@arc-mind.com]
>Sent: Friday, June 23, 2006 09:30 PM
>To: ''MyFaces Discussion''
>Subject: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3?     ----------------   RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!!       RE: need to change renderer for tree column (for Tree table Tomahawk     feature)
>
>DOH!
>
>I recently upgraded to Tomahawk 1.1.3 so I could hack the renderer to format
>the treeColum so the text is at the top of the column instead of the middle.
>
>Now I am getting this biz....
>
>
>Caused by: java.lang.ClassNotFoundException:
>org.apache.myfaces.util.servlet.SourceCodeServlet
>	at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1340)
>	at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1189)
>	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>	at java.lang.Class.forName0(Native Method)
>	at java.lang.Class.forName(Class.java:242)
>	at
>org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:
>138)
>	at
>org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils
>.java:157)
>	... 57 more
>
>
>I have the latest and greatest MyFaces/Tomahawk chicken richness, but no
>go....
>
>
>		<dependency>
>			<groupId>org.apache.myfaces.core</groupId>
>			<artifactId>myfaces-impl</artifactId>
>			<version>1.1.3</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>		<dependency>
>			<groupId>org.apache.myfaces.core</groupId>
>			<artifactId>myfaces-api</artifactId>
>			<version>1.1.3</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>		<dependency>
>			<groupId>org.apache.myfaces.tomahawk</groupId>
>			<artifactId>tomahawk</artifactId>
>			<version>1.1.3</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>
>
>		<dependency>
>			<groupId>org.apache.myfaces.shared</groupId>
>			<artifactId>myfaces-shared-core</artifactId>
>			<version>2.0.2</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>
>		<dependency>
>			<groupId>org.apache.myfaces.shared</groupId>
>			<artifactId>myfaces-shared-impl</artifactId>
>			<version>2.0.2</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>
>		<dependency>
>			<groupId>org.apache.myfaces.shared</groupId>
>			<artifactId>myfaces-shared-tomahawk</artifactId>
>			<version>2.0.2</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>
>
>Has SourceCodeServlet been deprecated?
>I guess I should check the release notes again.... 
>
>DOH?!
>
>And BTW 
>
><!--
>		<dependency>
>			<groupId>org.apache.myfaces.shared</groupId>
>			<artifactId>myfaces-shared-project</artifactId>
>			<version>2.0.2</version>
>			<scope>compile</scope>
>			<type>jar</type>
>		</dependency>
>-->
>
>The shared-project jar is not in the myfaces Repo.
>
>
>
>-----Original Message-----
>From: Rick [mailto:ricks_mailinglists@arc-mind.com] 
>Sent: Friday, June 23, 2006 6:02 PM
>To: 'MyFaces Discussion'
>Subject: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to
>change renderer for tree column (for Tree table Tomahawk feature)
>
>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:ricks_mailinglists@arc-mind.com] 
>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:ricks_mailinglists@arc-mind.com] 
>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:dennis@dbyrne.net] 
>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:ricks_mailinglists@arc-mind.com]
>>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: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3? ---------------- RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column (for Tree table Tomahawk feature)

Posted by Rick <ri...@arc-mind.com>.
I have these jar files in my WEB-INF/lib

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar
tomahawk-1.1.3.jar

I am still getting this message:

2006-06-23 23:24:12,281 ERROR org.apache.myfaces.shared_impl.util.ClassUtils
- Class org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet
not found
java.lang.ClassNotFoundException:
org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet


org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet


Hmmm...

I looked into the jar file and the class is 
org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet

a little different....

(I didn't notice this until I wrote this message...)




-----Original Message-----
From: Matthias Wessendorf [mailto:matzew@apache.org] 
Sent: Friday, June 23, 2006 10:25 PM
To: MyFaces Discussion
Subject: Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces
1.1.3? ---------------- RE: Dennis Byrne is the MAN!
WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column (for
Tree table Tomahawk feature)

> is morphed into
org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet .

shared_tomahawk



Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3? ---------------- RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column (for Tree table Tomahawk feature)

Posted by Matthias Wessendorf <ma...@apache.org>.
> is morphed into org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet .

shared_tomahawk