Hi guys,
I am writing to you because I have a quite odd issue related with tomahawk
trees. First of all, I show you my ExtensionsFilter configuration at tomcat
web.xml
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>300m</param-value>
</init-param>
<init-param>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
<init-param>
<description>Sets the directory in which temporary files
(ie caches
for those uploaded files that are larger than uploadThresholdSize) are to be
stored. </description>
<param-name>uploadRepositoryPath</param-name>
<param-value>TMP LOCATION</param-value>
</init-param>
<description>
- Some MyFaces components do more than include some HTML in the
pages.
They may need additional support scripts, style sheets, images, ...
- Those resources are included in the MyFaces' jar file and the
Extensions Filter adds the code and URL needed to provide those resources to
the generated HTML.
- Some other components, like the file upload component
(t:inputFileUpload), need to parse Multipart requests.
- The extensions filter handles this as well.
-see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
</description>
</filter>
Apparently it is fine, so that is working properly locally and in out
testings server. But obviously (otherwise I wouldn't be writing this =^D) is
not working live.
The first thing is it wasn't finding the images of the tree
so this image doesn't exist:
http://LIVE SERVER
URL/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12398808/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif
but this one does:
http://TEST SERVER
URL/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12398808/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif
on both servers we have the following in the web-inf:
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
What I did is just to use the ImageLocation attribute in each tree, so now
is able to find my own images, BUT now comes the issue again. It is not able
to deploy the tree by clicking in the first node, because, as before wasn't
finding the image folder, now is not finding the js functions.
I mean,
onclick="treeNavClick('org.apache.myfaces.tree.TOGGLE_SPAN:clientTreeForm:clientTree:0:0',
'clientTreeForm:clientTree:0:t2',
'/static/extranet_images/navigation_tree/nav-plus-line-last.gif',
'/static/extranet_images/navigation_tree/nav-minus-line-last.gif', '', '',
'', 'clientTree', '0');
doesn't work because treeNavClick is not defined.
Any clue?
thanks a lot.
r.
--
View this message in context:
http://www.nabble.com/Problem-displaying-%3Ct%3Atree2-%3E-tp23175456p23175456.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.