Re: tree2 and the icons
Did any body has solution for this problem ? SrikanthOn 12/14/05, sri [EMAIL PROTECTED] wrote: I have tried the simple examples code installed on my server that works fine, my code doesn't. I still have that issue. SrikanthOn 12/8/05, Kurt Edegger [EMAIL PROTECTED] wrote: Hion 12/8/2005 7:07 AM Sean Schofield stated: Tree2 isn't really doing anything with your images.It's just a container for other JSF components and they get rendered in the normal way.It shouldn't be any different then putting a GIF image in a h:dataTable.ack!I'm exclusively using png images and still encounter the same issuedescribed. The folders are closed befor the tree is expanded the firsttime. But after a node has been expanded once, the icon doesn't toggle back to the closed one.I do have the filters installed, but my images are located in adifferent location than the jsp file.Kurt
Re: tree2 and the icons
Seems like if the images are in the same folder as the jsp (or in a folder with in the jsp's folder) its working fine. My images are outside the folder containing the jsp. Kurt Edegger also described the similar situation, is there a solution to this problem. SrikanthOn 12/28/05, sri [EMAIL PROTECTED] wrote: Did any body has solution for this problem ? SrikanthOn 12/14/05, sri [EMAIL PROTECTED] wrote: I have tried the simple examples code installed on my server that works fine, my code doesn't. I still have that issue. SrikanthOn 12/8/05, Kurt Edegger [EMAIL PROTECTED] wrote: Hion 12/8/2005 7:07 AM Sean Schofield stated: Tree2 isn't really doing anything with your images.It's just a container for other JSF components and they get rendered in the normal way.It shouldn't be any different then putting a GIF image in a h:dataTable.ack!I'm exclusively using png images and still encounter the same issuedescribed. The folders are closed befor the tree is expanded the firsttime. But after a node has been expanded once, the icon doesn't toggle back to the closed one.I do have the filters installed, but my images are located in adifferent location than the jsp file.Kurt
Re: tree2 and the icons
Ok, if I provide the absolute path the images are shown correctly. The relative paths are not working correctly. Thanks SrikanthOn 12/28/05, sri [EMAIL PROTECTED] wrote: Seems like if the images are in the same folder as the jsp (or in a folder with in the jsp's folder) its working fine. My images are outside the folder containing the jsp. Kurt Edegger also described the similar situation, is there a solution to this problem. SrikanthOn 12/28/05, sri [EMAIL PROTECTED] wrote: Did any body has solution for this problem ? SrikanthOn 12/14/05, sri [EMAIL PROTECTED] wrote: I have tried the simple examples code installed on my server that works fine, my code doesn't. I still have that issue. SrikanthOn 12/8/05, Kurt Edegger [EMAIL PROTECTED] wrote: Hion 12/8/2005 7:07 AM Sean Schofield stated: Tree2 isn't really doing anything with your images.It's just a container for other JSF components and they get rendered in the normal way.It shouldn't be any different then putting a GIF image in a h:dataTable.ack!I'm exclusively using png images and still encounter the same issuedescribed. The folders are closed befor the tree is expanded the firsttime. But after a node has been expanded once, the icon doesn't toggle back to the closed one.I do have the filters installed, but my images are located in adifferent location than the jsp file.Kurt
Re: tree2 and the icons
I have tried the simple examples code installed on my server that works fine, my code doesn't. I still have that issue. SrikanthOn 12/8/05, Kurt Edegger [EMAIL PROTECTED] wrote: Hion 12/8/2005 7:07 AM Sean Schofield stated: Tree2 isn't really doing anything with your images.It's just a container for other JSF components and they get rendered in the normal way.It shouldn't be any different then putting a GIF image in a h:dataTable.ack!I'm exclusively using png images and still encounter the same issuedescribed. The folders are closed befor the tree is expanded the firsttime. But after a node has been expanded once, the icon doesn't toggle back to the closed one.I do have the filters installed, but my images are located in adifferent location than the jsp file.Kurt
Re: tree2 and the icons
Hi I have tested the simple application that works fine, I have copied the tree2.jsp and related classes and images into my web application that works fine too. But my page has this problem. The only difference is my images are in gif format, the images in simple application are in png format. Will that make a difference ? Thanks SrikanthOn 12/7/05, Sean Schofield [EMAIL PROTECTED] wrote: That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ?Use the @imageLocation attribute.You can also override the _javascript_ for the client side toggle using @_javascript_Location if youreally need to.The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed.That doesn't sound right.Did you try the simple examples first?That's my recommendation to people who have trouble.If its workingin the simple example and not your own example then you know its not a bug just a configuration issue.Thankssean
Re: tree2 and the icons
I have tested the simple application that works fine, I have copied the tree2.jsp and related classes and images into my web application that works fine too. But my page has this problem. The only difference is my images are in gif format, the images in simple application are in png format. Will that make a difference ? No that shouldn't make a difference. Srikanth sean
Re: tree2 and the icons
Looks like the image format is making a difference, I have tried the images (in png format) came with simple app in my page and that works fine. Why the gif formatted images not working, is that how the tree2 is designed ? SrikanthOn 12/8/05, sri [EMAIL PROTECTED] wrote: Hi I have tested the simple application that works fine, I have copied the tree2.jsp and related classes and images into my web application that works fine too. But my page has this problem. The only difference is my images are in gif format, the images in simple application are in png format. Will that make a difference ? Thanks SrikanthOn 12/7/05, Sean Schofield [EMAIL PROTECTED] wrote: That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ?Use the @imageLocation attribute.You can also override the _javascript_ for the client side toggle using @_javascript_Location if youreally need to.The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed.That doesn't sound right.Did you try the simple examples first?That's my recommendation to people who have trouble.If its workingin the simple example and not your own example then you know its not a bug just a configuration issue.Thankssean
Re: tree2 and the icons
Tree2 isn't really doing anything with your images. It's just a container for other JSF components and they get rendered in the normal way. It shouldn't be any different then putting a GIF image in a h:dataTable. sean On 12/8/05, sri [EMAIL PROTECTED] wrote: Looks like the image format is making a difference, I have tried the images (in png format) came with simple app in my page and that works fine. Why the gif formatted images not working, is that how the tree2 is designed ? Srikanth On 12/8/05, sri [EMAIL PROTECTED] wrote: Hi I have tested the simple application that works fine, I have copied the tree2.jsp and related classes and images into my web application that works fine too. But my page has this problem. The only difference is my images are in gif format, the images in simple application are in png format. Will that make a difference ? Thanks Srikanth On 12/7/05, Sean Schofield [EMAIL PROTECTED] wrote: That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ? Use the @imageLocation attribute. You can also override the javascript for the client side toggle using @javascriptLocation if you really need to. The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed. That doesn't sound right. Did you try the simple examples first? That's my recommendation to people who have trouble. If its working in the simple example and not your own example then you know its not a bug just a configuration issue. Thanks sean
Re: tree2 and the icons
If I place the images folder in the same folder as my jsp the icons work fine, if the images are outside the folder containing my jsp I see the problem. Another issue is if I set clientSideToggle=false the icons doesn't show up at all. What could be going wrong ? SrikanthOn 12/8/05, Sean Schofield [EMAIL PROTECTED] wrote: I have tested the simple application that works fine, I have copied the tree2.jsp and related classes and images into my web application that works fine too. But my page has this problem. The only difference is my images are in gif format, the images in simple application are in png format. Will that make a difference ?No that shouldn't make a difference.Srikanthsean
Re: tree2 and the icons
Hi on 12/8/2005 7:07 AM Sean Schofield stated: Tree2 isn't really doing anything with your images. It's just a container for other JSF components and they get rendered in the normal way. It shouldn't be any different then putting a GIF image in a h:dataTable. ack! I'm exclusively using png images and still encounter the same issue described. The folders are closed befor the tree is expanded the first time. But after a node has been expanded once, the icon doesn't toggle back to the closed one. I do have the filters installed, but my images are located in a different location than the jsp file. Kurt
tree2 and the icons
Hi I am trying to use the folder icons for the tree2 component. My tree is defined as below... x:tree2 id=queryTree _javascript_Location=/common/tree2 value=#{scheduleManagerFace.queryTree} var=node varNodeToggler=t f:facet name=Root h:panelGroup f:facet name=expand x:graphicImage value=../../images/tree2/open.gif rendered=#{t.nodeExpanded} border=0/ /f:facet f:facet name=collapse x:graphicImage value=../../images/tree2/folder.gif rendered=#{t.nodeExpanded} border=0/ /f:facet h:outputText value=#{node.description} styleClass=nodeFolder/ /h:panelGroup /f:facet /x:tree2 The images are not shown correctly... when looked at the source I see the following for tree image tag... img id=frmScheduleEditor:queryTree:0:t2 src="" border=0 height=18 width=19 'frmScheduleEditor:queryTree:0:t2', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif', '', '../../images/tree2/open.gif', '../../images/tree2/folder.gif', 'queryTree', '0'); style=cursor:hand;cursor:pointer / I have also tried to set the imageLocation for the tree2 tag, then I am seeing the default + and - icons for the tree. I have looked at the tree2.jsp in the examples area and followed the same but is not working. I have verified my icons and they exist in ../../images/tree2 folder. Am I doing something wrong here? Thanks In Advance Srikanth
RE: tree2 and the icons
Srikanth, You have to set the ImageLocation attribute to the tree2 definition. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 2:57 PM To: MyFaces Discussion Subject: tree2 and the icons Hi I am trying to use the folder icons for the tree2 component. My tree is defined as below... x:tree2 id=queryTree _javascript_Location=/common/tree2 value=#{scheduleManagerFace.queryTree} var=node varNodeToggler=t f:facet name=Root h:panelGroup f:facet name=expand x:graphicImage value=../../images/tree2/open.gif rendered=#{t.nodeExpanded} border=0/ /f:facet f:facet name=collapse x:graphicImage value=../../images/tree2/folder.gif rendered=#{t.nodeExpanded} border=0/ /f:facet h:outputText value=#{node.description} styleClass=nodeFolder/ /h:panelGroup /f:facet /x:tree2 The images are not shown correctly... when looked at the source I see the following for tree image tag... img id=frmScheduleEditor:queryTree:0:t2 src="" border=0 height=18 width=19 'frmScheduleEditor:queryTree:0:t2', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif', '', '../../images/tree2/open.gif', '../../images/tree2/folder.gif', 'queryTree', '0'); style=cursor:hand;cursor:pointer / I have also tried to set the imageLocation for the tree2 tag, then I am seeing the default + and - icons for the tree. I have looked at the tree2.jsp in the examples area and followed the same but is not working. I have verified my icons and they exist in ../../images/tree2 folder. Am I doing something wrong here? Thanks In Advance Srikanth
Re: tree2 and the icons
As I mentioned I tried that but didn't worked. After further trials, I am able to see my icons if I set clientSideToggle=false. If it is not set, I am not seeing the icons that I specify. Even with setting it to false, the icons are correctly working. I have defined one icon for expanded mode and one for the collapsed mode. Initially I am seeing the collapsed icon correctly, when I expand the tree node, I am seeing the expanded icon correctly. But when I collapse the node again, I am still seeing the expanded icon. SrikanthOn 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Srikanth, You have to set the ImageLocation attribute to the tree2 definition. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 07, 2005 2:57 PM To: MyFaces Discussion Subject: tree2 and the icons Hi I am trying to use the folder icons for the tree2 component. My tree is defined as below... x:tree2 id=queryTree _javascript_Location=/common/tree2 value=#{scheduleManagerFace.queryTree} var=node varNodeToggler=t f:facet name=Root h:panelGroup f:facet name=expand x:graphicImage value=../../images/tree2/open.gif rendered=#{t.nodeExpanded} border=0/ /f:facet f:facet name=collapse x:graphicImage value=../../images/tree2/folder.gif rendered=#{t.nodeExpanded} border=0/ /f:facet h:outputText value=#{node.description} styleClass=nodeFolder/ /h:panelGroup /f:facet /x:tree2 The images are not shown correctly... when looked at the source I see the following for tree image tag... img id=frmScheduleEditor:queryTree:0:t2 src="" border=0 height=18 width=19 'frmScheduleEditor:queryTree:0:t2', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif', '', '../../images/tree2/open.gif', '../../images/tree2/folder.gif', 'queryTree', '0'); style=cursor:hand;cursor:pointer / I have also tried to set the imageLocation for the tree2 tag, then I am seeing the default + and - icons for the tree. I have looked at the tree2.jsp in the examples area and followed the same but is not working. I have verified my icons and they exist in ../../images/tree2 folder. Am I doing something wrong here? Thanks In Advance Srikanth
Re: tree2 and the icons
corrected a typo.On 12/7/05, sri [EMAIL PROTECTED] wrote: As I mentioned I tried that but didn't worked. After further trials, I am able to see my icons if I set clientSideToggle=false. If it is not set, I am not seeing the icons that I specify. Even with setting it to false, the icons are NOT correctly working. I have defined one icon for expanded mode and one for the collapsed mode. Initially I am seeing the collapsed icon correctly, when I expand the tree node, I am seeing the expanded icon correctly. But when I collapse the node again, I am still seeing the expanded icon. SrikanthOn 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Srikanth, You have to set the ImageLocation attribute to the tree2 definition. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 07, 2005 2:57 PM To: MyFaces Discussion Subject: tree2 and the icons Hi I am trying to use the folder icons for the tree2 component. My tree is defined as below... x:tree2 id=queryTree _javascript_Location=/common/tree2 value=#{scheduleManagerFace.queryTree} var=node varNodeToggler=t f:facet name=Root h:panelGroup f:facet name=expand x:graphicImage value=../../images/tree2/open.gif rendered=#{t.nodeExpanded} border=0/ /f:facet f:facet name=collapse x:graphicImage value=../../images/tree2/folder.gif rendered=#{t.nodeExpanded} border=0/ /f:facet h:outputText value=#{node.description} styleClass=nodeFolder/ /h:panelGroup /f:facet /x:tree2 The images are not shown correctly... when looked at the source I see the following for tree image tag... img id=frmScheduleEditor:queryTree:0:t2 src="" border=0 height=18 width=19 'frmScheduleEditor:queryTree:0:t2', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif', '', '../../images/tree2/open.gif', '../../images/tree2/folder.gif', 'queryTree', '0'); style=cursor:hand;cursor:pointer / I have also tried to set the imageLocation for the tree2 tag, then I am seeing the default + and - icons for the tree. I have looked at the tree2.jsp in the examples area and followed the same but is not working. I have verified my icons and they exist in ../../images/tree2 folder. Am I doing something wrong here? Thanks In Advance Srikanth
RE: tree2 and the icons
Sorry Srikanth, I didnt read all the mail. My mistake. I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem. Regards and sorry again. Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 3:16 PM To: MyFaces Discussion Subject: Re: tree2 and the icons As I mentioned I tried that but didn't worked. After further trials, I am able to see my icons if I set clientSideToggle=false. If it is not set, I am not seeing the icons that I specify. Even with setting it to false, the icons are correctly working. I have defined one icon for expanded mode and one for the collapsed mode. Initially I am seeing the collapsed icon correctly, when I expand the tree node, I am seeing the expanded icon correctly. But when I collapse the node again, I am still seeing the expanded icon. Srikanth On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Srikanth, You have to set the ImageLocation attribute to the tree2 definition. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 07, 2005 2:57 PM To: MyFaces Discussion Subject: tree2 and the icons Hi I am trying to use the folder icons for the tree2 component. My tree is defined as below... x:tree2 id=queryTree _javascript_Location=/common/tree2 value=#{scheduleManagerFace.queryTree} var=node varNodeToggler=t f:facet name=Root h:panelGroup f:facet name=expand x:graphicImage value=../../images/tree2/open.gif rendered=#{t.nodeExpanded} border=0/ /f:facet f:facet name=collapse x:graphicImage value=../../images/tree2/folder.gif rendered=#{t.nodeExpanded} border=0/ /f:facet h:outputText value=#{node.description} styleClass=nodeFolder/ /h:panelGroup /f:facet /x:tree2 The images are not shown correctly... when looked at the source I see the following for tree image tag... img id=frmScheduleEditor:queryTree:0:t2 src="" border=0 height=18 width=19 'frmScheduleEditor:queryTree:0:t2', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif', '/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif', '', '../../images/tree2/open.gif', '../../images/tree2/folder.gif', 'queryTree', '0'); style=cursor:hand;cursor:pointer / I have also tried to set the imageLocation for the tree2 tag, then I am seeing the default + and - icons for the tree. I have looked at the tree2.jsp in the examples area and followed the same but is not working. I have verified my icons and they exist in ../../images/tree2 folder. Am I doing something wrong here? Thanks In Advance Srikanth
Re: tree2 and the icons
What do I need to do with the extensions filter ? Does it solve both the issues I mentioned in my mail ? Please give me an example or tell what to do in the filter. Thanks a lot SrikanthOn 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Sorry Srikanth, I didn't read all the mail. My mistake. I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem. Regards and sorry again. Matias
RE: tree2 and the icons
Just add the extension filter and filterMappings in your web.xml filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping And remove the _javascript_Location and imageLocation from the tree2 definition, so the tree2 will use the images and _javascript_ from the myfaces jar. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 4:04 PM To: MyFaces Discussion Subject: Re: tree2 and the icons What do I need to do with the extensions filter ? Does it solve both the issues I mentioned in my mail ? Please give me an example or tell what to do in the filter. Thanks a lot Srikanth On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Sorry Srikanth, I didn't read all the mail. My mistake. I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem. Regards and sorry again. Matias
Re: tree2 and the icons
Thanks again. That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ? The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed. Thanks On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Just add the extension filter and filterMappings in your web.xml filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping And remove the _javascript_Location and imageLocation from the tree2 definition, so the tree2 will use the images and _javascript_ from the myfaces jar. Regards Matias -Original Message- From: sri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 07, 2005 4:04 PM To: MyFaces Discussion Subject: Re: tree2 and the icons What do I need to do with the extensions filter ? Does it solve both the issues I mentioned in my mail ? Please give me an example or tell what to do in the filter. Thanks a lot Srikanth On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote: Sorry Srikanth, I didn't read all the mail. My mistake. I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem. Regards and sorry again. Matias
Re: tree2 and the icons
That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ? Use the @imageLocation attribute. You can also override the javascript for the client side toggle using @javascriptLocation if you really need to. The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed. That doesn't sound right. Did you try the simple examples first? That's my recommendation to people who have trouble. If its working in the simple example and not your own example then you know its not a bug just a configuration issue. Thanks sean