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:[EMAIL PROTECTED]
>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:[EMAIL PROTECTED]
>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:[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.
>>
>>
>>
>>
>
>
>
>
>
>
>
>
>
>
>


Reply via email to