You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Lyn Büsching <bu...@lat-lon.de> on 2007/08/10 17:04:37 UTC
Tomahawk Sandbox
Hi,
i'm new on faces and have some problmes with Tomahawk/Sandbox, using
Ajax support.
The aim is to create a page, where only a part of this page should be
rendered after the input.
The code of the side:
------------------------------------------------------------------------------------
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h3>Ergebnis der Flächenberechnung</h3>
<i>Dieses Programm berechnet die Fläche eines Quadrats anhand der
eingegebenen Seitenlänge</i>
<br></br>
<h:form>
Ergebnis der Berechnung:<br></br>
Ihre Eingabe war:
<h:outputText value="#{Square.length}"></h:outputText>
<br>damit ist der Flächeninhalt:
<s:pprPanelGroup id="ppr" partialTriggers="pprSubmitButton">
<h:outputText value="#{Square.area}"></h:outputText>
</s:pprPanelGroup>
<br></br>
Eingabe:
<h:inputText value="#{Square.length}"></h:inputText>
<h:commandButton id="pprSubmitButton" value="ok"
action="success"></h:commandButton>
</h:form>
<br></br>
<br></br>
<i>Aktuelle Systemzeit: </i>
<h:outputText value="#{Square.systemtime}"></h:outputText>
</f:view>
</body>
</html>
------------------------------------------------------------------------------------
Unfortunately the Ajax support does not work. The side is new generated
every time. There are no error messages in Tomcat, only the Firebug
(Firefox 1.5 as well as 2.0) shows the JavaScript Error:
'dojo is not defined'.
I'm using MyFaces 1.1.5, Tomahawk 1.1.5, Tomahawk-Sandbox 1.1.7, Apache
Pluto 1.1.3 with and Apache Portlet Bridge for JSF in Tomcat 5.5.20.
Can any one tell me how to resolve this error?
Thanks!!!
Lyn
--
Lyn Büsching
l a t / l o n GmbH
Aennchenstrasse 19 53177 Bonn, Germany
phone ++49 +228 18496-0 fax ++49 +228 18496-29
http://www.lat-lon.de http://www.deegree.org
Re: Tomahawk Sandbox
Posted by Lyn Büsching <bu...@lat-lon.de>.
Hi Ernst,
thank you very much! I tried tomahawk 1.1.7 but nothing changed. The log
message didn't help me as well.
TOMCAT - LOG-Messages:
---------------------------------------------------------------------
13.08.2007 11:51:07 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
13.08.2007 11:51:07 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 485 ms
13.08.2007 11:51:07 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13.08.2007 11:51:07 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
13.08.2007 11:51:07 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2007-08-13 11:51:08,671 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Reading standard config
org/apache/myfaces/resource/standard-faces-confi
g.xml
2007-08-13 11:51:08,734 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Reading config
jar:file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/por
tals-bridges-jsf-1.0.3.jar!/META-INF/faces-config.xml
2007-08-13 11:51:08,750 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Reading config
jar:file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/tom
ahawk-1.1.7-SNAPSHOT.jar!/META-INF/faces-config.xml
2007-08-13 11:51:08,781 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Reading config
jar:file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/tom
ahawk-sandbox-1.1.7-SNAPSHOT.jar!/META-INF/faces-config.xml
2007-08-13 11:51:08,812 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Reading config
/WEB-INF/faces-config.xml
2007-08-13 11:51:08,828 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Starting up
MyFaces-package : myfaces-api in version : 1.1.5 from path :
file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/myfaces-api-1.1.5.jar
2007-08-13 11:51:08,828 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Starting up
MyFaces-package : myfaces-impl in version : 1.1.5 from path
: file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/myfaces-impl-1.1.5.jar
2007-08-13 11:51:08,828 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Starting up
MyFaces-package : tomahawk-sandbox in version : 1.1.7-SNAPSH
OT from path :
file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/tomahawk-sandbox-1.1.7-SNAPSHOT.jar
2007-08-13 11:51:08,828 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Starting up
MyFaces-package : tomahawk in version : 1.1.7-SNAPSHOT from
path :
file:/C:/Projekte/pluto/webapps/pluto/WEB-INF/lib/tomahawk-1.1.7-SNAPSHOT.jar
2007-08-13 11:51:08,890 [main] WARN
org.apache.myfaces.shared_impl.util.LocaleUtils - Locale name in
faces-config.xml null or empty, setting locale to def
ault locale : de_DE
2007-08-13 11:51:08,890 [main] INFO
org.apache.portals.bridges.jsf.PortletViewHandlerImpl - Delegating to
org.apache.myfaces.application.jsp.JspViewHandle
rImpl@170888e
2007-08-13 11:51:09,343 [main] INFO
org.apache.myfaces.renderkit.html.HtmlRenderKitImpl - Overwriting
renderer with family = javax.faces.Form rendererType
= javax.faces.Form renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlFormRenderer
2007-08-13 11:51:09,421 [main] INFO
org.apache.myfaces.renderkit.html.HtmlRenderKitImpl - Overwriting
renderer with family = javax.faces.Command rendererT
ype = org.apache.myfaces.Button renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlButtonExRenderer
2007-08-13 11:51:09,453 [main] INFO
org.apache.myfaces.config.FacesConfigurator - Serialization provider :
class org.apache.myfaces.shared_impl.util.seria
l.DefaultSerialFactory
2007-08-13 11:51:09,468 [main] DEBUG
org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser - Ignored
element 'display-name' as child of 'servlet'.
2007-08-13 11:51:09,468 [main] DEBUG
org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser - Ignored
element 'display-name' as child of 'servlet'.
2007-08-13 11:51:09,468 [main] DEBUG
org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser - Ignored
element 'display-name' as child of 'servlet'.
2007-08-13 11:51:09,468 [main] DEBUG
org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser - Ignored
element 'display-name' as child of 'servlet'.
2007-08-13 11:51:09,484 [main] INFO
org.apache.myfaces.webapp.StartupServletContextListener - ServletContext
'C:\Projekte\pluto\webapps\pluto\' initialize
d.
2007-08-13 11:51:09,500 [main] INFO
org.springframework.web.context.ContextLoader - Root
WebApplicationContext: initialization started
2007-08-13 11:51:09,500 [main] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/pluto] -
Loading Spring root WebApplicationContext
2007-08-13 11:51:09,593 [main] INFO
org.springframework.core.CollectionFactory - JDK 1.4+ collections available
2007-08-13 11:51:09,593 [main] INFO
org.springframework.core.CollectionFactory - Commons Collections 3.x
available
2007-08-13 11:51:09,640 [main] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
XML bean definitions from ServletContext resou
rce [/WEB-INF/pluto-portal-driver-services-config.xml]
2007-08-13 11:51:09,718 [main] INFO
org.springframework.web.context.support.XmlWebApplicationContext - Bean
factory for application context [Root WebAppli
cationContext]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [RequiredContainerServices,PortalContext,DriverConfigur
ation,AdminConfiguration,PortalURLParser,PropertyConfigService,RenderConfigService,SupportedModesService,SupportedWindowStatesService,PortalCallbackService
]; root of BeanFactory hierarchy
2007-08-13 11:51:09,718 [main] INFO
org.springframework.web.context.support.XmlWebApplicationContext - 10
beans defined in application context [Root WebAp
plicationContext]
2007-08-13 11:51:09,750 [main] INFO
org.springframework.web.context.support.XmlWebApplicationContext -
Unable to locate MessageSource with name 'messageSo
urce': using default
[org.springframework.context.support.DelegatingMessageSource@1a4ded3]
2007-08-13 11:51:09,765 [main] INFO
org.springframework.web.context.support.XmlWebApplicationContext -
Unable to locate ApplicationEventMulticaster with n
ame 'applicationEventMulticaster': using default
[org.springframework.context.event.SimpleApplicationEventMulticaster@1d381d2]
2007-08-13 11:51:09,765 [main] INFO
org.springframework.ui.context.support.UiApplicationContextUtils -
Unable to locate ThemeSource with name 'themeSource
': using default
[org.springframework.ui.context.support.ResourceBundleThemeSource@1dec1dd]
2007-08-13 11:51:09,765 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Pre-instantiating singletons in factory [org.sp
ringframework.beans.factory.support.DefaultListableBeanFactory defining
beans
[RequiredContainerServices,PortalContext,DriverConfiguration,AdminConfigurati
on,PortalURLParser,PropertyConfigService,RenderConfigService,SupportedModesService,SupportedWindowStatesService,PortalCallbackService];
root of BeanFactory
hierarchy]
2007-08-13 11:51:09,875 [main] INFO
org.springframework.web.context.ContextLoader - Using context class
[org.springframework.web.context.support.XmlWebApp
licationContext] for root WebApplicationContext
2007-08-13 11:51:09,875 [main] INFO
org.springframework.web.context.ContextLoader - Root
WebApplicationContext: initialization completed in 375 ms
2007-08-13 11:51:09,875 [main] INFO
org.apache.pluto.driver.PortalStartupListener - Starting up Pluto Portal
Driver. . .
2007-08-13 11:51:09,953 [main] INFO
org.apache.pluto.driver.PortalStartupListener - Initializing Portlet
Container. . .
2007-08-13 11:51:09,953 [main] WARN
org.apache.pluto.core.PortletContextManager - Servlet 2.4 or below
detected. Unable to find getContextPath on Servlet
Context.
2007-08-13 11:51:09,984 [main] INFO
org.apache.pluto.PortletContainerFactory - Portlet Container [Pluto
Portal Driver] created.
2007-08-13 11:51:09,984 [main] INFO
org.apache.pluto.core.PortletContainerImpl - Portlet Container [Pluto
Portal Driver]: Container initialized successful
ly.
2007-08-13 11:51:09,984 [main] INFO
org.apache.pluto.driver.PortalStartupListener - Pluto portlet container
started.
2007-08-13 11:51:09,984 [main] INFO
org.apache.pluto.driver.PortalStartupListener - ********** Pluto Portal
Driver Started **********
2007-08-13 11:51:10,015 [main] INFO
org.apache.pluto.util.ClasspathScanner - Found 1 resources for path
'/META-INF/pluto.properties'.
2007-08-13 11:51:10,015 [main] INFO
org.apache.pluto.core.PortletContextManager - Found 3 application id
resolvers.
2007-08-13 11:51:10,328 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet Context '/pluto'
registered.
2007-08-13 11:51:10,328 [main] INFO
org.apache.pluto.core.PortletContextManager - Registered portlet
application with application id '/pluto'
2007-08-13 11:51:10,328 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,343 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,343 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,359 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Portlet application with
application id '/pluto' already registered.
2007-08-13 11:51:10,375 [main] INFO
org.apache.pluto.core.PortletContextManager - Registering 8 portlets for
context /pluto
13.08.2007 11:51:10 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
13.08.2007 11:51:10 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3500 ms
2007-08-13 11:52:25,281 [http-8081-Processor4] INFO
org.apache.pluto.tags.el.ExpressionEvaluatorProxy - Attempting to
utilize expression evaluator proxy '
org.apache.pluto.tags.el.JSP20ExpressionEvaluatorProxy'
2007-08-13 11:52:25,281 [http-8081-Processor4] INFO
org.apache.pluto.tags.el.ExpressionEvaluatorProxy - ExpressionEvaluator
Proxy Found: org.apache.pluto.
tags.el.JSP20ExpressionEvaluatorProxy
2007-08-13 11:52:25,359 [http-8081-Processor4] DEBUG
org.apache.myfaces.application.jsp.JspStateManagerImpl - Exiting
restoreTreeStructure - No serialized
view found in server session!
2007-08-13 11:52:25,359 [http-8081-Processor4] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:26,031 [http-8081-Processor4] INFO
org.apache.myfaces.shared_impl.config.MyfacesConfig - No context init
parameter 'org.apache.myfaces.RE
ADONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
2007-08-13 11:52:26,031 [http-8081-Processor4] INFO
org.apache.myfaces.shared_impl.config.MyfacesConfig - No context init
parameter 'org.apache.myfaces.AD
D_RESOURCE_CLASS' found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
2007-08-13 11:52:26,031 [http-8081-Processor4] INFO
org.apache.myfaces.shared_impl.config.MyfacesConfig - No context init
parameter 'org.apache.myfaces.RE
SOURCE_VIRTUAL_PATH' found, using default value
/faces/myFacesExtensionResource
2007-08-13 11:52:26,031 [http-8081-Processor4] INFO
org.apache.myfaces.shared_impl.config.MyfacesConfig - Starting up
Tomahawk on the MyFaces-JSF-Implemen
tation
2007-08-13 11:52:26,046 [http-8081-Processor4] INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myface
s.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
2007-08-13 11:52:26,046 [http-8081-Processor4] INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myface
s.CONFIG_REFRESH_PERIOD' found, using default value 2
2007-08-13 11:52:26,046 [http-8081-Processor4] INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myface
s.ADD_RESOURCE_CLASS' found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
2007-08-13 11:52:26,046 [http-8081-Processor4] INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myface
s.RESOURCE_VIRTUAL_PATH' found, using default value
/faces/myFacesExtensionResource
2007-08-13 11:52:26,046 [http-8081-Processor4] INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - Starting up
Tomahawk on the MyFaces-JSF-Impl
ementation
2007-08-13 11:52:26,250 [http-8081-Processor4] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:26,265 [http-8081-Processor3] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:26,265 [http-8081-Processor4] DEBUG
org.apache.myfaces.application.jsp.JspStateManagerImpl - Exiting
restoreTreeStructure - No serialized
view found in server session!
2007-08-13 11:52:26,281 [http-8081-Processor4] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:37,703 [http-8081-Processor3] DEBUG
org.apache.myfaces.shared_impl.util.StateUtils - Processing state :
rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3
Q7kM5YnxBzKWwCAAB4cAAAAAN0AAExcHQAHi9XRUItSU5GL2pzZi9zcXVhcmVfcmVzdWx0LmpzcA==
2007-08-13 11:52:37,703 [http-8081-Processor3] DEBUG
org.apache.myfaces.shared_impl.util.StateUtils - Processing state :
rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3
Q7kM5YnxBzKWwCAAB4cAAAAAN0AAExcHQAHi9XRUItSU5GL2pzZi9zcXVhcmVfcmVzdWx0LmpzcA==
2007-08-13 11:52:37,703 [http-8081-Processor3] INFO
org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager - No
context init parameter 'org.apac
he.myfaces.redirectTracker.POLICY' found, using default value
org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy
2007-08-13 11:52:37,703 [http-8081-Processor3] INFO
org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager - No
context init parameter 'org.apac
he.myfaces.redirectTracker.MAX_REDIRECTS' found, using default value 20
2007-08-13 11:52:37,718 [http-8081-Processor3] DEBUG
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener - In
AjaxDecodePhaseListener beforePhase
2007-08-13 11:52:37,718 [http-8081-Processor3] DEBUG
org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
lifecycle.execute in INVOKE_APPLICATION(5) b
ecause getRenderResponse is true from one of the after listeners
2007-08-13 11:52:37,734 [http-8081-Processor4] DEBUG
org.apache.myfaces.application.jsp.JspStateManagerImpl - Exiting
restoreTreeStructure - No serialized
view found in server session!
2007-08-13 11:52:37,734 [http-8081-Processor4] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:37,812 [http-8081-Processor4] DEBUG
org.apache.myfaces.application.jsp.JspStateManagerImpl - Exiting
restoreTreeStructure - No serialized
view found in server session!
2007-08-13 11:52:37,812 [http-8081-Processor4] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:37,812 [http-8081-Processor3] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
2007-08-13 11:52:37,828 [http-8081-Processor3] DEBUG
org.apache.myfaces.application.jsp.JspStateManagerImpl - Exiting
restoreTreeStructure - No serialized
view found in server session!
2007-08-13 11:52:37,828 [http-8081-Processor3] DEBUG
org.apache.myfaces.custom.ppr.PPRPhaseListener - In PPRPhaseListener
beforePhase
----------------------------------------------------------------------
But I think the problem is, that the Extension Filters are disabled in
my web.xml configuration.
I enabled them - but now a PortletException occurs. The configuration is
taken from http://myfaces.apache.org/tomahawk/extensionsFilter.html,
unfortunately I don't find my mistake - so I will write another mail
because of this.
Thanks,
Lyn
Ernst Fastl schrieb:
> Try using tomahawk 1.1.7 as well.
>
> If the problem still occurs increase the log-level
> of the org.apache.myfaces package in your logging configuration
> to debug and check for messages
> that resources could not be served or found.
>
> regards
>
> Ernst
>
> On 8/10/07, Lyn Büsching <bu...@lat-lon.de> wrote:
>> Hi,
>>
>> i'm new on faces and have some problmes with Tomahawk/Sandbox, using
>> Ajax support.
>>
>> The aim is to create a page, where only a part of this page should be
>> rendered after the input.
>>
>>
>> The code of the side:
>> ------------------------------------------------------------------------------------
>> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
>> pageEncoding="ISO-8859-1"%>
>> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
>> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
>> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
>> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>> <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
>> <title>Insert title here</title>
>> </head>
>> <body>
>> <f:view>
>> <h3>Ergebnis der Flächenberechnung</h3>
>> <i>Dieses Programm berechnet die Fläche eines Quadrats anhand der
>> eingegebenen Seitenlänge</i>
>> <br></br>
>> <h:form>
>> Ergebnis der Berechnung:<br></br>
>> Ihre Eingabe war:
>>
>> <h:outputText value="#{Square.length}"></h:outputText>
>>
>> <br>damit ist der Flächeninhalt:
>> <s:pprPanelGroup id="ppr" partialTriggers="pprSubmitButton">
>> <h:outputText value="#{Square.area}"></h:outputText>
>> </s:pprPanelGroup>
>>
>> <br></br>
>> Eingabe:
>> <h:inputText value="#{Square.length}"></h:inputText>
>> <h:commandButton id="pprSubmitButton" value="ok"
>> action="success"></h:commandButton>
>> </h:form>
>> <br></br>
>> <br></br>
>> <i>Aktuelle Systemzeit: </i>
>> <h:outputText value="#{Square.systemtime}"></h:outputText>
>> </f:view>
>> </body>
>> </html>
>> ------------------------------------------------------------------------------------
>>
>> Unfortunately the Ajax support does not work. The side is new generated
>> every time. There are no error messages in Tomcat, only the Firebug
>> (Firefox 1.5 as well as 2.0) shows the JavaScript Error:
>> 'dojo is not defined'.
>>
>> I'm using MyFaces 1.1.5, Tomahawk 1.1.5, Tomahawk-Sandbox 1.1.7, Apache
>> Pluto 1.1.3 with and Apache Portlet Bridge for JSF in Tomcat 5.5.20.
>>
>> Can any one tell me how to resolve this error?
>>
>> Thanks!!!
>>
>> Lyn
>>
>>
>> --
>> Lyn Büsching
>>
>> l a t / l o n GmbH
>> Aennchenstrasse 19 53177 Bonn, Germany
>> phone ++49 +228 18496-0 fax ++49 +228 18496-29
>> http://www.lat-lon.de http://www.deegree.org
>>
>
--
Lyn Büsching
l a t / l o n GmbH
Aennchenstrasse 19 53177 Bonn, Germany
phone ++49 +228 18496-0 fax ++49 +228 18496-29
http://www.lat-lon.de http://www.deegree.org
Re: Tomahawk Sandbox
Posted by Ernst Fastl <er...@gmail.com>.
Try using tomahawk 1.1.7 as well.
If the problem still occurs increase the log-level
of the org.apache.myfaces package in your logging configuration
to debug and check for messages
that resources could not be served or found.
regards
Ernst
On 8/10/07, Lyn Büsching <bu...@lat-lon.de> wrote:
> Hi,
>
> i'm new on faces and have some problmes with Tomahawk/Sandbox, using
> Ajax support.
>
> The aim is to create a page, where only a part of this page should be
> rendered after the input.
>
>
> The code of the side:
> ------------------------------------------------------------------------------------
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>Insert title here</title>
> </head>
> <body>
> <f:view>
> <h3>Ergebnis der Flächenberechnung</h3>
> <i>Dieses Programm berechnet die Fläche eines Quadrats anhand der
> eingegebenen Seitenlänge</i>
> <br></br>
> <h:form>
> Ergebnis der Berechnung:<br></br>
> Ihre Eingabe war:
>
> <h:outputText value="#{Square.length}"></h:outputText>
>
> <br>damit ist der Flächeninhalt:
> <s:pprPanelGroup id="ppr" partialTriggers="pprSubmitButton">
> <h:outputText value="#{Square.area}"></h:outputText>
> </s:pprPanelGroup>
>
> <br></br>
> Eingabe:
> <h:inputText value="#{Square.length}"></h:inputText>
> <h:commandButton id="pprSubmitButton" value="ok"
> action="success"></h:commandButton>
> </h:form>
> <br></br>
> <br></br>
> <i>Aktuelle Systemzeit: </i>
> <h:outputText value="#{Square.systemtime}"></h:outputText>
> </f:view>
> </body>
> </html>
> ------------------------------------------------------------------------------------
>
> Unfortunately the Ajax support does not work. The side is new generated
> every time. There are no error messages in Tomcat, only the Firebug
> (Firefox 1.5 as well as 2.0) shows the JavaScript Error:
> 'dojo is not defined'.
>
> I'm using MyFaces 1.1.5, Tomahawk 1.1.5, Tomahawk-Sandbox 1.1.7, Apache
> Pluto 1.1.3 with and Apache Portlet Bridge for JSF in Tomcat 5.5.20.
>
> Can any one tell me how to resolve this error?
>
> Thanks!!!
>
> Lyn
>
>
> --
> Lyn Büsching
>
> l a t / l o n GmbH
> Aennchenstrasse 19 53177 Bonn, Germany
> phone ++49 +228 18496-0 fax ++49 +228 18496-29
> http://www.lat-lon.de http://www.deegree.org
>