myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: Tomahawk Tree2 Javascript problem.
Date Thu, 19 Oct 2006 05:39:00 GMT
Do you have a "form" around the tree?

regards,

Martin

On 11/19/06, Long Tran <ltran@xbiosystems.com> wrote:
>
>  Hi,
>
>  I think I had it, since the images (+ and - icons) show up, I assume they
> are rendered through the filter.
>
>  Anyhow, this is the sniplet of my web.xml:
>
>
>  <filter>
>      <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-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>
>
>  <!-- extension mapping for adding <script/>, <link/>, and other resource
> tags to JSF-pages  -->
>  <filter-mapping>
>      <filter-name>MyFacesExtensionsFilter</filter-name>
>      <!-- servlet-name must match the name of your
> javax.faces.webapp.FacesServlet entry -->
>      <servlet-name>Faces Servlet</servlet-name>
>  </filter-mapping>
>
>  <!-- extension mapping for serving page-independent resources (javascript,
> stylesheets, images, etc.)  -->
>  <filter-mapping>
>      <filter-name>MyFacesExtensionsFilter</filter-name>
>      <url-pattern>/faces/*</url-pattern>
>  </filter-mapping>
>
>  <servlet-mapping>
>      <servlet-name>Faces Servlet</servlet-name>
>      <url-pattern>*.jsf</url-pattern>
>  </servlet-mapping>
>
>
>  Thanks,
>  Long
>
>
>  Simon Kitching wrote:
> Hi,
>
>  Have you got the ExtensionsFilter configured?
>
>  http://myfaces.apache.org/tomahawk/extensionsFilter.html
>
>  Regards,
>
>  Simon
>
>  Long Tran wrote:
>
> All,
>
>  I've created a TreeModel and successfully rendered it on the browser,
> however, when I click on the expand/collapse button, it's not working.
>
>  Apparently, in the HTML page generated, javascript function "treeNavClick"
> was not generated, is there any tag/attribute i need to add to the Tree2
> component?
>
>  Tomahawk version 1.1.5.
>
>  Hers is my Jsp:
>
>  <f:view>
>  <t:tree2 id="myTree" showNav="true"
> rendered="#{LovBackingBean.lovTree!=null}"
>  showRootNode="false" var="node" value="#{LovBackingBean.lovTree}"
>  varNodeToggler="t">
>      <f:facet name="rootNode">
>        <h:panelGroup>
>                 <h:outputText value="#{node.description}"/>
>        </h:panelGroup>
>     </f:facet>
>     <f:facet name="topNode">
>        <h:panelGroup>
>                 <h:outputText value="#{node.description}"/>
>        </h:panelGroup>
>     </f:facet>
>     <f:facet name="childNode">
>        <h:panelGroup>
>                 <h:outputText value="#{node.description}"/>
>        </h:panelGroup>
>     </f:facet>
>  </t:tree2>
>  </f:view>
>
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message