AFAIK tree doesn't use extensionFilter

but  tree2 does.

HTH,
Matthias

On 6/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I tried the below one but could NOT get it working..
> 
> The code in JSP is:
> 
>                 <x:tree id="tree" value="#{treeModel}"
>                         styleClass="tree"
>                         nodeClass="treenode"
>                         selectedNodeClass="treenodeSelected"
>                         expandRoot="true">
>                 </x:tree>
> 
> In web.xml:
> 
> <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
> 
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</f
> ilter-class>
>     <init-param>
>         <param-name>maxFileSize</param-name>
>         <param-value>20m</param-value>
>         <description>Set the size limit for uploaded files.
>             Format: 10 - 10 bytes
>                     10k - 10 KB
>                     10m - 10 MB
>                     1g - 1 GB
>         </description>
>     </init-param>
> </filter>
> 
> 
> <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>*.jsf</url-pattern>
> </filter-mapping>
> <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>/faces/*</url-pattern>
> </filter-mapping>
> 
> 
> Regards,
> Sachin
> 
> 
> 
> -----Original Message-----
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 23, 2005 12:05 PM
> To: MyFaces Discussion; Balaji Saranathan (WT01 - TELECOM SOLUTIONS)
> Subject: Re: Tree component with Sun RI
> 
> 
> Balaji,
> 
> you have to set up our ExtensionsFilter, since the *default* resources
> (javascript, images,...) are added to the jar file.
> 
> See http://myfaces.apache.org/docs/extensionsFilter.html
> 
> for more detailed information on that.
> 
> HTH,
> Matthias
> 
> On 6/22/05, Balaji Saranathan <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi,
> >
> > I tested the Tree component to work with Sun RI and it works fine.
> > However, the images are not not visible. When I check the Html source,
> 
> > I see the following path
> >
> > "Img
> > src="/framework/faces/myFacesExtensionResource/tree.HtmlTree/111341266
> > 0000/images/node_close.gif"
> > border="0" /><"
> >
> > Why is the path being generated like this? I tried giving the image
> > path option and taking the default.
> >
> > Can anyone help me?
> >
> > No, I ahvent had success with porting tree 2 yet. I get a null pointer
> 
> > exception at
> >
> > java.lang.NullPointerException
> > com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldN
> > ame(CommandLinkRenderer.java:136)
> >
> com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(Command
> LinkRenderer.java:318)
> >
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720
> )
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeRecursive(HtmlTre
> eRenderer.java:573)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTr
> eeRenderer.java:544)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlT
> reeRenderer.java:327)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRend
> erer.java:229)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTree
> Renderer.java:181)
> >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.jav
> a:701)
> >
> >
> >
> >
> >
> >  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.
> >
> 
> 
> --
> Matthias Wessendorf
> 
> 
> 
> 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.
> 


-- 
Matthias Wessendorf

Reply via email to