Sean,

Do you have any suggestions for this ?
Thanks
Bala

-----Original Message-----
From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 2:17 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: RE: Tree component with Sun RI


Yes, that's exactly the same behavior I observed.  I'm sure a lot of us
would be interested to learn how to get around that.

- Brendan

-----Original Message-----
From: Balaji Saranathan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 1:12 PM
To: 'MyFaces Discussion'
Subject: RE: Tree component with Sun RI



Hi,

The offending code in tree2 seems to be the getMyForm() in
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.java. When this
is called in the encodeEnd() of commandLinkRenderer, it returns null. 
I tried enclosing the tree2 inside a form tag(ugly but a try though) but
doesn't seem to work. Going through the code, I find the
HtmlLinkRendererBase in Myfaces uses a DummyFormUtils while
commandLinkRenderer in SUN RI tries to raise an exception saying it has
to be enclosed within a form.

Now, my question is if I want to make it work, how would I go about it. 



-----Original Message-----
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 3:22 AM
To: MyFaces Discussion
Subject: Re: Tree component with Sun RI


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/1113412
> > 66
> > 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.getHiddenFiel
> > dN
> > ame(CommandLinkRenderer.java:136)
> >
> com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(Comma
> nd
> LinkRenderer.java:318)
> >
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:7
> 20
> )
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeRecursive(HtmlT
> re
> eRenderer.java:573)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(Html
> Tr
> eeRenderer.java:544)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(Htm
> lT
> reeRenderer.java:327)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRe
> nd
> erer.java:229)
> >
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTr
> ee
> Renderer.java:181)
> >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.j
> av
> 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




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.

Reply via email to