Hello Bernd,

the problem is the miss of size information for layout calculation.

if the tobago layoutmanager can't find the size, than no style
information is generated. This results in this (btw this is log level
ERROR) log output.

please add width and height attributes to the page tag:

<tc:page label="Waypoint List" width="800" height="600">

or if you want a layout which reflects the actual size of your browserwindow

<tc:page label="Waypoint List"
         width="#{pageState.clientWidth}"
         height="#{pageState.clientHeight}"
         state="#{pageState}">

with this managed bean entry in your faces-config.xml:

 <managed-bean>
   <managed-bean-name>pageState</managed-bean-name>
   
<managed-bean-class>org.apache.myfaces.tobago.model.PageStateImpl</managed-bean-class>
   <managed-bean-scope>session</managed-bean-scope>
   <managed-property>
     <property-name>clientWidth</property-name>
     <value>800</value>
   </managed-property>
   <managed-property>
     <property-name>clientHeight</property-name>
     <value>600</value>
   </managed-property>
 </managed-bean>

Regards,
 Volker


2006/10/15, Bernd Winter <[EMAIL PROTECTED]>:
Hello all,

at first I'd like to greet you all as I'm totally new to this message
list, new to Tobago and also JSF. I'm just a Java-based technologies fan
and not even doing Java stuff right now at work. Just at home. In order
not to lose touch with my favourite environment...*sniff*

I'm sorry to bother you with a possibly embarrassing question but after
a very annoying commenting-in/commenting-out/trial-and-error marathon I
just cannot gain any valuable insights.

First some lines from the log which will hopefully come from a classic
and easy to explain user's fault:

###########
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
15.10.2006 01:30:57 org.apache.catalina.core.ApplicationContext log
INFO: No state saving method defined, assuming default server state saving
15.10.2006 01:30:59
org.apache.myfaces.tobago.webapp.TobagoResponseWriter findValue
SCHWERWIEGEND: Don't know what to do! No value and no property defined.
(BoxRenderer.java:82)
15.10.2006 01:30:59
org.apache.myfaces.tobago.webapp.TobagoResponseWriter findValue
SCHWERWIEGEND: value = 'null'
15.10.2006 01:30:59
org.apache.myfaces.tobago.webapp.TobagoResponseWriter findValue
SCHWERWIEGEND: property = 'null'
###########

(btw, I suppose the (German) SCHWERWIEGEND messages are the (evil) FATAL
errors in English localization)

I just cannot get a clue when the Renderer has enough information so
that it will stop complaining. At last. After reducing my first page
design (of my first JSF test application even (so don't be mad at me..))
paragraph after paragraph, I can finally show you a minimum piece of
code which also throws those errors:

###########
<%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc" %>
<%@ taglib uri="http://myfaces.apache.org/tobago/extension"; prefix="tx" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<f:view>
  <tc:page label="Waypoint List">

    <tc:panel>
      <f:facet name="layout">
        <tc:gridLayout />
      </f:facet>

      <tc:out escape="false" value="Header" />

      <%-- Search box --%>
      <tc:box label="Search criteria" >
        <f:facet name="layout">
          <tc:gridLayout border="0"
            rows="fixed" />
        </f:facet>
        <tc:out escape="false" value="SearchField" />
      </tc:box>

      <tc:out escape="false" value="List" />
    </tc:panel>

  </tc:page>
</f:view>
###########

Please don't have mercy and thanks in advance! ;)

  Bernd

Reply via email to