9 Replies Last post: Feb 13, 2008 7:06 PM by Tatyana Matveyeva  
Remo   12 posts since
Feb 8, 2008
Currently Being Moderated

Feb 12, 2008 8:24 PM

TreeTable-Demo not working, blank page

Hello,

 

I've tried to import the ForumTreeTable-Demo in my application. Problem is: I get a blank page if I call it. What can be a possible reason for this? It seems that data can not extracted from bean...

 

 

Details: QuipuKit 1.4, Java Reference Impl 1.1, Jetty+OpenEJB

 

 

What works: The very simple example from the documentaion works great:

<q:treeTable var="color">

<q:staticTreeStructure>

<q:treeNode value="Colors">

<q:treeNode value="Warm colors">

<q:treeNode value="Red"/>

<q:treeNode value="Yellow"/>

</q:treeNode>

<q:treeNode value="Cold colors">

<q:treeNode value="Blue"/>

<q:treeNode value="Purple"/>

</q:treeNode>

</q:treeNode>

</q:staticTreeStructure>

<q:treeColumn>

<h:outputText value="#">

</h:outputText>

</q:treeColumn>

</q:treeTable>

 

 

I added this in my web.xml:

 

 

<!-- FILTER FOR PROCESSING INTERNAL QUIPUKIT RESOURCES -->

 

 

<filter>

 

 

<filter-name>ResourceFilter</filter-name>

 

 

<filter-class>teamdev.jsf.util.ResourceFilter</filter-class>

 

 

</filter>

 

 

 

 

 

<!-- MAPPING FOR QUIPUKIT COMPONENTS FILTER -->

 

 

<filter-mapping>

 

 

<filter-name>ResourceFilter</filter-name>

 

 

<url-pattern>/*</url-pattern>

 

 

</filter-mapping>

 

 

And I copied the functions from the demobean in my bean named TestBean. In the faces_config I added this:

 

 

<managed-bean>

 

 

<managed-bean-name>TestBean</managed-bean-name>

 

 

<managed-bean-class>myTest.TestBean</managed-bean-class>

 

 

<managed-bean-scope>session</managed-bean-scope>

 

 

In my JSP I added the following:

 

 

<q:treeTable id="forumTreeTable" var="message"

 

 

expansionState="#{TestBean.forumTreeTableExpansionState}" style="width: 100%;"

 

 

columnIdVar="columnId"

 

 

textStyle="font-family: verdana,Helvetica,sans-serif; font-size: 10pt;"

 

 

sortColumnId="date">

 

 

<q:dynamicTreeStructure nodeChildren="#{TestBean.nodeChildren}" nodeHasChildren="#{TestBean.nodeHasChildren}"/>

 

 

 

 

 

<q:treeColumn id="subject" sortingExpression="#{message.subject}" filterExpression="#{message.subject}"

 

 

filterKind="searchField">

 

 

<f:facet name="header">

 

 

<h:outputText value="Subject"/>

 

 

</f:facet>

 

 

<h:outputText value="#{message.subject}"/>

 

 

</q:treeColumn>

 

 

<q:column id="author" sortingExpression="#{message.author}" filterExpression="#{message.author}"

 

 

filterKind="dropDownField" style="width: 120px;">

 

 

<f:facet name="header">

 

 

<h:outputText value="From"/>

 

 

</f:facet>

 

 

<h:outputText value="#{message.author}"/>

 

 

</q:column>

 

 

<q:column id="date" sortingExpression="#{message.date}" filterExpression="#{TestBean.dateCategory}"

 

 

filterKind="dropDownField" style="width: 120px;">

 

 

<f:facet name="header">

 

 

<h:outputText value="Sent"/>

 

 

</f:facet>

 

 

<h:outputText value="#{message.date}">

 

 

<f:convertDateTime type="date" dateStyle="medium"/>

 

 

</h:outputText>

 

 

</q:column>

 

 

</q:treeTable>

 

 

</managed-bean>

 

 

ForumMessage.java is the same as from the demo, but in a other package.

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
1. Feb 13, 2008 1:23 PM in response to: Remo
Re: TreeTable-Demo not working, blank page

Hello Remo,

 

Please see the server log, whether or not there is any exceptions. It would be very helpful if you can provide us with your war file, so we can reproduce the problem.

 

Regards,

Tatyana

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
4. Feb 13, 2008 1:56 PM in response to: Remo
Re: TreeTable-Demo not working, blank page

Remo,

 

It's hard to say what the problem is. The information you provided is not enough to reproduce the problem.Please send us your JSP page and web.xml file. Please also provide us with the list of libraries used in your application.

 

Regards,

Tatyana

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
5. Feb 13, 2008 1:59 PM in response to: Remo
Re: TreeTable-Demo not working, blank page
remo wrote:remo wrote:

If it helps: Same problem occurs on a staticTreeTable when the value-Tag is incorrect. (no failure in the logs )

 

If it helps: Same problem occurs on a staticTreeTable when the value-Tag is incorrect. (no failure in the logs )

 

 

I don't fully understand what you mean. Can you please clarify?

 

Regards,

Tatyana

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
6. Feb 13, 2008 2:29 PM in response to: Remo
Re: TreeTable-Demo not working, blank page

Remo,

 

Please try to make the following:

 

1. In your JSP page there is no f:view tag. Please modify your page so it looks like following:


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://teamdev.com/quipukit" prefix="q" %>
<html>
<head>
  <title>Reset validation</title>
    <script type="text/javascript" src="validation.js"></script>
</head>

<body>
<f:view>
  <h:form id="form1">
     <!-- TREE TABLE HERE -->
  </h:form>
</f:view>

</body>
</html>

2.Remove the following code from your web.xml file:


<context-param>
  <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
  <param-value>.jsp</param-value> 
</context-param>

3. When you open your page in the browser, open the page with jsf extent ion, not jsp.For example: http://localhost:8080/myApplication/show_text.jsf

 

Any questions are welcome.

 

Regards,

Tatyana

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
9. Feb 13, 2008 7:06 PM in response to: Remo
Re: TreeTable-Demo not working, blank page

Remo,

 

Please also try the following:

 

1. Remove TreeTable from the page and see whether or not CommandButtons are rendered.

2. See whether or not another pages in this application are rendered (without QuipuKit).

3. Please see the source of the page (in the context menu select "View page source"). Is there JSP code or just a blank page?

4. Make sure that your QuipuKit evaluation license is not expired.

 

Regards,

Tatyana

More Like This

  • Retrieving data ...