Hi,
Thanks
Yes. I
want to use the Tree2 with Sun RI. I understand the only jar file I might need
to use is tomahawk.jar.
My
web.xml entry is as below.
<?
xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>10m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 19, 2005 6:04 AM
To: [email protected]
Subject: Antwort: RE: Tree2 blank screen
Please clarify. You want to use the tree2 with the SUN RI? I have tested it, it works.
Put the tomahawk.jar in, configure the ExtensionsFilter , don't forget the filter mapping ... and it should work.
[EMAIL PROTECTED] schrieb am 19.08.2005 06:46:37:
> Hi,
>
> I would appreciate it if anyone can help me fix this. It had not
> been easy to get approval to use MyFaces as Tree2 would be one of
> the most important component for us. Now, without this fixed, I
> would be nowhere and back to using our own primitive tree.
> I'm now using the <t:tree2> instead of <x:tree2>
>
> Thanks
> Balaji
> -----Original Message-----
> From: Balaji Saranathan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 11:00 PM
> To: 'MyFaces Discussion'
> Subject: Tree2 blank screen
>
> Hi,
> Finally I have been able to convince my management to use MyFaces.
> The first component that we would be replacing is our own custom
> basic tree with Tree 2. I added the latest nightly build of
> tomahawk.jar and added the ExtensionsFilter in the faces config.
> My problem is now my navigation tree frame is blank. No exception or trace.
> Only prints that I see related to MyFaces is
> 22:49:34,974 INFO [MyfacesConfig] No context init parameter 'org.
> apache.myfaces.PRETTY_HTML' found, using default value true
> 22:49:34,974 INFO [MyfacesConfig] No context init parameter 'org.
> apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
> 22:49:34,974 INFO [MyfacesConfig] No context init parameter 'org.
> apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
> 22:49:34,974 INFO [MyfacesConfig] No context init parameter 'org.
> apache.myfaces.AUTO_SCROLL' found, using default value false
> My entries are pretty simple like below. I do not have the
> StartupServletContextListener registered. Would that be an issue? Or
> is it because ExtensionsFilter support is undetermined on Sun RI
> yet? Without the form tag below, I get a getHiddenFieldName error still.
> Has anyone got the Tree2 with Sun RI after the My-Faces291 issue was fixed?
> f:view>
> <h:form id="treeform" >
> <x:tree2 value="#{NavTreeHandler.treeData}" id="server-tree" var=
> "node" varNodeToggler="t" clientSideToggle="false"
> showLines="false" showNav="false">
> <f:facet name="root">
> <h:panelGroup>
> <h:commandLink immediate="true" action="">
> </h:commandLink>
> <h:outputText value="#{node.description}" styleClass=
> "nodeFolder"/>
> </h:panelGroup>
> </f:facet>
> <f:facet name="zone">
> <h:panelGroup>
> <h:commandLink immediate="true" action="">
> </h:commandLink>
> <h:outputText value="#{node.description}" styleClass=
> "nodeFolder"/>
> </h:panelGroup>
> </f:facet>
> </x:tree2>
> </h:form>
> </f:view>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain
> confidential or privileged information. If
> you are not the intended recipient, please notify the sender at
> Wipro or [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain
> confidential or privileged information. If
> you are not the intended recipient, please notify the sender at
> Wipro or [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.
Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. |

