Re: How to get Tap4.1.2 SNAPSHOOT? Need help with pom.xml

2007-02-07 Thread Shing Hing Man

Add the following after /dependencies

repositories
repository
idapache.snapshots/id
   
urlhttp://people.apache.org/repo/m2-snapshot-repository/url
/repository
 /repositories

Shing


--- Pedro Viegas [EMAIL PROTECTED] wrote:

 I there.
 I'm not a Maven guy, so I don't really now how to
 set up a pom.xml do get
 the Tap 4.1.2 snapshoot.
 I have seen the instructions page...
 
 http://tapestry.apache.org/tapestry4.1/download.html
 
 But some more is needed to get the files right?
 
 I set up the pom.xml like this...
 
 project
modelVersion4.0.0/modelVersion
groupIdmy.group/groupId
artifactIdmy-project/artifactId
packagingwar/packaging
version0.1.1-SNAPSHOT/version
descriptionMy description/description
nameMy project name/name
 
dependencies
dependency
groupIdorg.apache.tapestry/groupId
   
 artifactIdtapestry-framework/artifactId
version4.1.2-SNAPSHOT/version
/dependency
dependency
groupIdorg.apache.tapestry/groupId
   
 artifactIdtapestry-annotations/artifactId
version4.1.2-SNAPSHOT/version
/dependency
dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-contrib/artifactId
version4.1.2-SNAPSHOT/version
/dependency
/dependencies
 /project
 
 And I get...
 
 $ mvn install
 [INFO] Scanning for projects...
 [INFO]


 [INFO] Building My project name
 [INFO]task-segment: [install]
 [INFO]


 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom
 1K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom
 3K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom
 6K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
 3K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar
 13K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
 1K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
 14K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom
 1K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.jar
 14K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
 981b downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
 6K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
 8K downloaded
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered
 resources.
 [INFO]


 [ERROR] BUILD ERROR
 [INFO]


 [INFO] Failed to resolve artifact.
 
 Missing:
 --
 1)

org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT
 
   Try downloading the file manually from the project
 website.
 
   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-annotations
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file
 
   Path to dependency:
 1) my.group:my-project:war:0.1.1-SNAPSHOT
 2)

org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT
 
 2)

org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT
 
   Try downloading the file manually from the project
 website.
 
   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-framework
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file
 
   Path to dependency:
 1) my.group:my-project:war:0.1.1-SNAPSHOT
 2)

org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT
 
 3)

org.apache.tapestry:tapestry-contrib:jar:4.1.2-SNAPSHOT
 
   Try downloading the file manually from the project
 website.
 
   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-contrib
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file
 
   Path to dependency:
 1) 

Re: tapestry-spring and IEngineService

2007-02-07 Thread Shing Hing Man
One possible way is to wrap up your spring bean as an
Hivemind service 
(http://hivemind.apache.org/hivemind1/hivemind-lib/SpringLookupFactory.html).
Then inject that hivemind service into  your Tapestry
engine service.

Example : 
service-point id=asoService
interface=org.apache.tapestry.engine.IEngineService
invoke-factory
  construct class=service.ASOService
set-object property=exceptionReporter
value=infrastructure:requestExceptionReporter/
set-object property=response
value=infrastructure:response/
set-object property=linkFactory
value=infrastructure:linkFactory/
 set-service property=entityService 
service-id=(service id of  the
hivemind service wrapper for your spring bean)/
  /construct
/invoke-factory
  /service-point
  
  
Shing
--- Nalin Gupta [EMAIL PROTECTED] wrote:

 Hi,
  
 Is there any way to inject a Spring bean into an
 IEngineService (defined
 in hivemodule.xml) ? I tried to do this by using
 @InjectSpring
 (tapestry-spring), however I get a null pointer
 exception for the
 injected object.
  
 @InjectSpring(entityService)
  public EntityService getEntityService() {
   return entityService;
  }
  
 getEntityService() returns null.
  
 regards,
 Nalin.
  
 
 NOTICE
 This e-mail and any attachments are confidential and
 may contain copyright material of Macquarie Bank or
 third parties. If you are not the intended recipient
 of this email you should not read, print,
 re-transmit, store or act in reliance on this e-mail
 or any attachments, and should destroy all copies of
 them. Macquarie Bank does not guarantee the
 integrity of any emails or any attached files. The
 views or opinions expressed are the author's own and
 may not reflect the views or opinions of Macquarie
 Bank.
 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Broken response encoding of exception page

2007-02-07 Thread Holger Stolzenberg
Hy there,


Yes I know I have posted about this problem earlier in this thread but our 
project will end soon and the problem still is present:

The problem is that the output encoding of the exception page rendered by the 
ExceptionPresenter is broken. Following situation (code below):

When an exception occurs in a listener method, we catch it and throw a 
PageRedirectException to the err page of our application. Everything is fine. 
But when the exception occurs in the getModel() method (e.g. when the page is 
initially called), the PageRedirectException thrown is wrapped into a 
BindingException. This exception goes further on and is handled by the tapestry 
exception presenter. 

I have taken the source of the tapestry exception presenter and implemented an 
custom class. Then I configured hivemind to use this custom exception presenter 
(via infrastructure overrides). The code og the custom exception presenter is 
100% the same to that of Howard I only put some debug output to it before 
responseRenderer.renderResponse( cycle ) is called.

ContentType type = errPage.getResponseContentType();

System.out.println( 1  + cycle.getEngine().getOutputEncoding() );
System.out.println( 2  + type.getParameter( CHARSET_PARAM_NAME ) );

CONSOLE-OUTPUT:
1 UTF-8
2 null

The BindingException now handled by the custom ExceptionPresenter (or the 
tapestry ExceptionPresenter, which makes no difference) renders the ErrPage. 
Problem is that this this ErrPage is not rendered in UTF-8. It is rendered in 
ISO-8859-1, so all german special chars are broken, which means a really ugly 
picture on the browser, because we do not use @Shell component and output 
encoding 

meta http-equiv=Content-Type content=text/html;charset=utf-8 /

is hard coded in HTML Template.

Any ideas where to go

-

(1) Page spec
page
...

component type=PropertySelection
binding name=model value=getModel() /
/component

...
/page

-

(2) In Java class

public void someListener()
{
try
{
// do something
}
catch( Exception e )
{
ErrPage errPage = getErrPage();
errPage.setErr( e );

throw PageRedirectException( errPage );
}
}

@InjectPage( ErrPage )
public abstract ErrPage getErrPage();

public IPropertySelectionModel getModel()
{
try
{
// init and return model
}
catch ( Exception e )
{
ErrPage errPage = getErrPage();
errPage.setErr( e );

throw PageRedirectException( errPage );
}
}

-


Mit lieben Grüßen aus dem eWerk

  |  Holger Stolzenberg
  |  Softwareentwickler
  |
  |  Geschäftsführer: 
  |  Frank Richter, Erik Wende, Hendrik Schubert
  |
  |  eWerk IT GmbH
  |  Markt 16
  |  Leipzig 04109
  |  http://www.ewerk.com
  |  HRB 9065, AG Leipzig
  |  Hauptniederlassung Leipzig
  |
  |  fon +49.341.4 26 49-0
  |  fax +49.341.4 26 49-88
  |  mailto:[EMAIL PROTECTED]
  |
  |  Support:
  |  fon 0700 CALLME24 (0700 22556324)
  |  fax 0700 CALLME24 (0700 22556324)
  |
  | Auskünfte und Angebote per Mail
  | sind freibleibend und unverbindlich. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Stranzenbach, Ralf
Hi.

I've checked the application, cleaned everything, redeployed.

Nothing changed. The same exception occurred. May be, the stack trace if of 
some use:

org.apache.tapestry.ioc.internal.util.TapestryException
 
Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''. 
Stack trace 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
 
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
 
$ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java) 
$ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java) 
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
 
$Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java) 
$Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java) 
$Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java) 
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418) 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451) 
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java) 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
 
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java) 
de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39) 
$RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java) 
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java) 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
 
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java) 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java) 
$RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java) 
$RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java) 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341) 
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
 
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
 
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 
java.lang.Thread.run(Thread.java:595)


The image attached may give you some impression of the applications set-up.

Mit freundlichen Grüßen,

Ralf Edmund Stranzenbach
Manager, FS-Technology

BearingPoint
Management  Technology Consultants

Gladbecker Straße 5, 40472 Düsseldorf; Germany
+49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
[EMAIL PROTECTED]

www.bearingpoint.com


-Ursprüngliche Nachricht-
Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Februar 2007 17:57
An: Tapestry users
Betreff: Re: AW: WG: IOC TapestryException creating a sample application

That is quite odd. Are you sure you are not having any compile errors?

Also, Tapestry looks for templates FIRST in the package (with the Java
.class file), then in WEB-INF (for application pages). So you may have
another template hanging around that you've forgotten about, that is
causing the error.

On 

Re: Can't get InlineEditBox to work, quits with Javascript Error: impl is not a constructor [SOLVED ]

2007-02-07 Thread Marcus Thiesen
Am Mittwoch 31 Januar 2007 18:55 schrieb Shing Hing Man:
 I created that jira. Marcus has a different problem
 from the one mentioned in the jira.

 Shing

Ok, stupid me. It works.

I had a validation filter in my tomcat (from http://tuckey.org/validation/)
and it caused the problem.

I still believe that I tried a couple of times without it, but a collegue of 
mine proved me wrong today.

So nothing to see here, go on,

Marcus

-- 
Marcus Thiesen
Bachelor of Science (BSc)

freiheit.com technologies gmbh
Straßenbahnring 22 / 20251 Hamburg, Germany
fon       +49 (0)40 / 890584-0
fax       +49 (0)40 / 890584-20

0553 222D ABF2 DF71 0CF6  C262 C77E 2AAF 6BE4 4DA4

Bücher kaufen und Freie Software fördern | http://bookzilla.de/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Howard Lewis Ship

What is the exact URL that triggers this error. It's possible that a
trailing slash is causing a problem (which, would be a bug in
Tapestry).

On 2/7/07, Stranzenbach, Ralf [EMAIL PROTECTED] wrote:

Hi.

I've checked the application, cleaned everything, redeployed.

Nothing changed. The same exception occurred. May be, the stack trace if of 
some use:

org.apache.tapestry.ioc.internal.util.TapestryException

Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
Stack trace
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
$ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
$ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
$Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
$Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
$Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
$RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
$RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
$RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)


The image attached may give you some impression of the applications set-up.

Mit freundlichen Grüßen,

Ralf Edmund Stranzenbach
Manager, FS-Technology

BearingPoint
Management  Technology Consultants

Gladbecker Straße 5, 40472 Düsseldorf; Germany
+49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
[EMAIL PROTECTED]

www.bearingpoint.com


-Ursprüngliche Nachricht-
Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Februar 2007 17:57
An: Tapestry users
Betreff: Re: AW: WG: IOC TapestryException creating a sample application

That is quite odd. Are you sure you are not having any compile errors?

Also, Tapestry looks for templates FIRST in the package (with the Java
.class file), then in WEB-INF (for 

AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Stranzenbach, Ralf
It's an access to
http://localhost:8080/tapestry_empty/Home.html



Mit freundlichen Grüßen,

Ralf Edmund Stranzenbach
Manager, FS-Technology

BearingPoint
Management  Technology Consultants

Gladbecker Straße 5, 40472 Düsseldorf; Germany
+49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
[EMAIL PROTECTED]

www.bearingpoint.com


-Ursprüngliche Nachricht-
Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 7. Februar 2007 18:06
An: Tapestry users
Betreff: Re: AW: WG: IOC TapestryException creating a sample application

What is the exact URL that triggers this error. It's possible that a
trailing slash is causing a problem (which, would be a bug in
Tapestry).

On 2/7/07, Stranzenbach, Ralf [EMAIL PROTECTED] wrote:
 Hi.

 I've checked the application, cleaned everything, redeployed.

 Nothing changed. The same exception occurred. May be, the stack trace if of 
 some use:

 org.apache.tapestry.ioc.internal.util.TapestryException

 Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
 component with id ''.
 Stack trace
 org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
 org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
 org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
 org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
 $ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
 $ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
 org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
 $Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
 $Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
 $Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
 org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
 org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
 $RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 $RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
 $RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
 org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
 $HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
 $HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
 org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 java.lang.Thread.run(Thread.java:595)


 The image attached may give you some impression of the applications set-up.

 Mit freundlichen Grüßen,

 Ralf Edmund 

Re: AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Hugo Palma

You have the wrong URL. It's

http://localhost:8080/tapestry_empty/Home

not

http://localhost:8080/tapestry_empty/Home.html

page urls don't have the file extension.


Stranzenbach, Ralf wrote:

It's an access to
http://localhost:8080/tapestry_empty/Home.html



Mit freundlichen Grüßen,

Ralf Edmund Stranzenbach
Manager, FS-Technology

BearingPoint
Management  Technology Consultants

Gladbecker Straße 5, 40472 Düsseldorf; Germany
+49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
[EMAIL PROTECTED]

www.bearingpoint.com


-Ursprüngliche Nachricht-
Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 7. Februar 2007 18:06

An: Tapestry users
Betreff: Re: AW: WG: IOC TapestryException creating a sample application

What is the exact URL that triggers this error. It's possible that a
trailing slash is causing a problem (which, would be a bug in
Tapestry).

On 2/7/07, Stranzenbach, Ralf [EMAIL PROTECTED] wrote:
  

Hi.

I've checked the application, cleaned everything, redeployed.

Nothing changed. The same exception occurred. May be, the stack trace if of 
some use:

org.apache.tapestry.ioc.internal.util.TapestryException

Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
Stack trace
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
$ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
$ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
$Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
$Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
$Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
$RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
$RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
$RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
$RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

Re: AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Howard Lewis Ship

Earlier versions of Tapestry 5 did use .html as the extension that
identifies a page render (rather than an event trigger on a
component).

Howerver, I'll look into your case. This should have triggered an
html event (which is meaningless) on the Home page itself, and that
should have resulted with a redirect to the home page.

BTW  http://localhost:8080/tapestry_empty/home

should work as well (page names and component ids inside URLs are case
insensitive).

On 2/7/07, Hugo Palma [EMAIL PROTECTED] wrote:

You have the wrong URL. It's

http://localhost:8080/tapestry_empty/Home

not

http://localhost:8080/tapestry_empty/Home.html

page urls don't have the file extension.


Stranzenbach, Ralf wrote:
 It's an access to
   http://localhost:8080/tapestry_empty/Home.html



 Mit freundlichen Grüßen,

 Ralf Edmund Stranzenbach
 Manager, FS-Technology

 BearingPoint
 Management  Technology Consultants

 Gladbecker Straße 5, 40472 Düsseldorf; Germany
 +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
 [EMAIL PROTECTED]

 www.bearingpoint.com


 -Ursprüngliche Nachricht-
 Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 7. Februar 2007 18:06
 An: Tapestry users
 Betreff: Re: AW: WG: IOC TapestryException creating a sample application

 What is the exact URL that triggers this error. It's possible that a
 trailing slash is causing a problem (which, would be a bug in
 Tapestry).

 On 2/7/07, Stranzenbach, Ralf [EMAIL PROTECTED] wrote:

 Hi.

 I've checked the application, cleaned everything, redeployed.

 Nothing changed. The same exception occurred. May be, the stack trace if of 
some use:

 org.apache.tapestry.ioc.internal.util.TapestryException

 Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
 Stack trace
 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
 
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
 $ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
 $ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
 
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
 $Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
 $Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
 $Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
 
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
 $RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
 $RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
 $RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
 
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
 
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
 org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 

Re: AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Howard Lewis Ship

I just checked in a fix for your problem.

The new behavior is as I described, the /Foo.html is really the html
event triggered on the root component of page Foo. You will likely not
have any onHTML() event handler methods, and the default behavior will
be to redirect back to page foo (i.e., /foo) for rendering.

On 2/7/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

Earlier versions of Tapestry 5 did use .html as the extension that
identifies a page render (rather than an event trigger on a
component).

Howerver, I'll look into your case. This should have triggered an
html event (which is meaningless) on the Home page itself, and that
should have resulted with a redirect to the home page.

BTW  http://localhost:8080/tapestry_empty/home

should work as well (page names and component ids inside URLs are case
insensitive).

On 2/7/07, Hugo Palma [EMAIL PROTECTED] wrote:
 You have the wrong URL. It's

 http://localhost:8080/tapestry_empty/Home

 not

 http://localhost:8080/tapestry_empty/Home.html

 page urls don't have the file extension.


 Stranzenbach, Ralf wrote:
  It's an access to
http://localhost:8080/tapestry_empty/Home.html
 
 
 
  Mit freundlichen Grüßen,
 
  Ralf Edmund Stranzenbach
  Manager, FS-Technology
 
  BearingPoint
  Management  Technology Consultants
 
  Gladbecker Straße 5, 40472 Düsseldorf; Germany
  +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
  [EMAIL PROTECTED]
 
  www.bearingpoint.com
 
 
  -Ursprüngliche Nachricht-
  Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 7. Februar 2007 18:06
  An: Tapestry users
  Betreff: Re: AW: WG: IOC TapestryException creating a sample application
 
  What is the exact URL that triggers this error. It's possible that a
  trailing slash is causing a problem (which, would be a bug in
  Tapestry).
 
  On 2/7/07, Stranzenbach, Ralf [EMAIL PROTECTED] wrote:
 
  Hi.
 
  I've checked the application, cleaned everything, redeployed.
 
  Nothing changed. The same exception occurred. May be, the stack trace if 
of some use:
 
  org.apache.tapestry.ioc.internal.util.TapestryException
 
  Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
  Stack trace
  
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
  
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
  
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
  
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
  $ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
  $ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
  
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
  $Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
  $Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
  $Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
  
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
  
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
  $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
  
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
  $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
  de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
  $RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
  $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
  
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
  $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
  
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
  
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
  
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
  
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
  $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
  $RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
  $RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
  
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
  
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
  
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
  org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  

Re: ajax exception

2007-02-07 Thread andyhot

haipeng du wrote:

Hi,
I use EventHandler to handle ajax calls. If there are some exceptions 
that are not caught from java code, it will show dojo dialog in 
browser. The problem is that the error information is so long. It 
messes whole page. I can not find any button to close the dialog. 
Scroll bar in browser dose not work at all. How could I disable or 
config dialog so that the page is friendly?


Add some css to make those visible... those are from the timetracker demo:

.exceptionDialog {
   overflow: auto;
   display: block;
   margin-left: 5%;
   margin-right: 5%;
   height: 500px;
   background-color: white;
   border-left: 2px solid #E07000;
   border-right: 2px solid #E07000;
   border-bottom: 2px solid #E07000;
   -moz-border-radius-bottomright: 10px;
   -moz-border-radius-bottomleft: 10px;
}

.exceptionCloseLink {
   display: block;
   margin-left: 5%;
   margin-right: 5%;
   background-color: ThreeDFace;
   padding-top: 3px;
   padding-left: 5px;
   padding-bottom: 3px;
   font-weight: bold;
   color: #00;
   cursor: pointer;
   cursor: hand;
   border-left: 2px solid #E07000;
   border-right: 2px solid #E07000;
   border-top: 2px solid #E07000;
   -moz-border-radius-topright: 10px;
   -moz-border-radius-topleft: 10px;
}



Thanks a lot.

--
Haipeng Du
Software Engineer
Comphealth,
Salt Lake City


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: WG: IOC TapestryException creating a sample application

2007-02-07 Thread Massimo Lusetti

On 2/7/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


I just checked in a fix for your problem.

The new behavior is as I described, the /Foo.html is really the html
event triggered on the root component of page Foo. You will likely not
have any onHTML() event handler methods, and the default behavior will
be to redirect back to page foo (i.e., /foo) for rendering.


This could be used to provide events handler on a page (root
component) to stream binary data to the client.
Infact i've encountered the same problem when experimenting with
binary streaming without recognizing the effective cause.

--
Massimo
http://meridio.blogspot.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



An observation on Tap 4.1.2 DirectLink updateComponents parameter

2007-02-07 Thread Shing Hing Man
I have noticed that if the DirectLink parameter 
updateComponents is specified, then the request is 
always asynchronous, irrespect of whether the async
parameter is true or false.

The above is probably what most people want.
Maybe it will be a bit clearer if it is stated in the
documentation.

Shing 

Home page :
  http://uk.geocities.com/matmsh/index.html





___ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at 
the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: An observation on Tap 4.1.2 DirectLink updateComponents parameter

2007-02-07 Thread Norbert Sándor

This is a reported issue: http://issues.apache.org/jira/browse/TAPESTRY-1252

BR:
Norbi

Shing Hing Man írta:
I have noticed that if the DirectLink parameter 
updateComponents is specified, then the request is 
always asynchronous, irrespect of whether the async

parameter is true or false.

The above is probably what most people want.
Maybe it will be a bit clearer if it is stated in the
documentation.

Shing 


Home page :
  http://uk.geocities.com/matmsh/index.html





___ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tap 4.1.1 Cancel button not Async?

2007-02-07 Thread Daniel Tabuenca

I have a simple form:

form jwcid=@Form delegate=ognl:delegate async=true
listener=listener:submit cancel=listener:cancel

with a simple cancel button:

input jwcid=@Submit async=true submitType=cancel value=Cancel/


When it renders the page tapestry generates:

input type=submit
onclick=tapestry.form.cancel('Form','Submit_0',{async:true,json:false,url:/residency/residency/html/Login,$PasswordRecover.$Form.sdirect?state:residency/html/Login=BrO0ABXcPAQAACG1vZHVsZUlkc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cDsrzkil5pr3})
value=Cancel id=Submit_0 name=Submit_0/

However.. this seems to not be donde throuh an asynchronous request
and the entire page loads. Any ideas why this could be happening?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get Tap4.1.2 SNAPSHOOT? Need help with pom.xml

2007-02-07 Thread Pedro Viegas

Thanks!
Works like a charm!

Regards,

On 2/7/07, Shing Hing Man [EMAIL PROTECTED] wrote:



Add the following after /dependencies

repositories
repository
idapache.snapshots/id

urlhttp://people.apache.org/repo/m2-snapshot-repository/url
/repository
/repositories

Shing


--- Pedro Viegas [EMAIL PROTECTED] wrote:

 I there.
 I'm not a Maven guy, so I don't really now how to
 set up a pom.xml do get
 the Tap 4.1.2 snapshoot.
 I have seen the instructions page...

 http://tapestry.apache.org/tapestry4.1/download.html

 But some more is needed to get the files right?

 I set up the pom.xml like this...

 project
modelVersion4.0.0/modelVersion
groupIdmy.group/groupId
artifactIdmy-project/artifactId
packagingwar/packaging
version0.1.1-SNAPSHOT/version
descriptionMy description/description
nameMy project name/name

dependencies
dependency
groupIdorg.apache.tapestry/groupId

 artifactIdtapestry-framework/artifactId
version4.1.2-SNAPSHOT/version
/dependency
dependency
groupIdorg.apache.tapestry/groupId

 artifactIdtapestry-annotations/artifactId
version4.1.2-SNAPSHOT/version
/dependency
dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-contrib/artifactId
version4.1.2-SNAPSHOT/version
/dependency
/dependencies
 /project

 And I get...

 $ mvn install
 [INFO] Scanning for projects...
 [INFO]



 [INFO] Building My project name
 [INFO]task-segment: [install]
 [INFO]



 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom
 1K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom
 3K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom
 6K downloaded
 Downloading:

http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
 3K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar
 13K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
 1K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
 14K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom
 1K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.jar
 14K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
 981b downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
 6K downloaded
 Downloading:


http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
 8K downloaded
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered
 resources.
 [INFO]


 [ERROR] BUILD ERROR
 [INFO]


 [INFO] Failed to resolve artifact.

 Missing:
 --
 1)

org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT

   Try downloading the file manually from the project
 website.

   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-annotations
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file

   Path to dependency:
 1) my.group:my-project:war:0.1.1-SNAPSHOT
 2)

org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT

 2)

org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT

   Try downloading the file manually from the project
 website.

   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-framework
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file

   Path to dependency:
 1) my.group:my-project:war:0.1.1-SNAPSHOT
 2)

org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT

 3)

org.apache.tapestry:tapestry-contrib:jar:4.1.2-SNAPSHOT

   Try downloading the file manually from the project
 website.

   Then, install it using the command:
   mvn install:install-file

-DgroupId=org.apache.tapestry-DartifactId=tapestry-contrib
 \
   -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar
 

Re: Tapestry 5 + Continuity

2007-02-07 Thread Howard Lewis Ship

This is my thoughts give or take. I'm building something so compelling
that it *should* be a disruptive technology.  Will it be?  Depends on
the community.

The technology is just the starting point.

I have been focusing on documentation and have started tutorials along
with the screencasts.

As I mentioned on TSS, I just don't see me doing this again ... too
much work. Further, a significant part of T5 is to belatedly lay the
foundation for future improvements that don't break backwards
compatibility.

On 2/5/07, Jan Vissers [EMAIL PROTECTED] wrote:

Just read the announcement on TSS Tapestry 5.0.1 Preview Release Now
Available (http://www.theserverside.com/news/thread.tss?thread_id=44119).

From the looks of it the major overhaul Howard has put in into T5, will
enable us to write (even better performing) web applications even more
quickly and elegantly. What I would like to see happening is that this
version, is going to stick around for a long(er) time. It would be a very,
very good idea to (re) build the Tapestry community around this version
and to improve documentation, collateral and support for T5. IMHO this
will help us, who try to leverage the framework in our daily assignments
(commercial challenges), to provide a complete story for our customers.
Apart from that T5 will need continued support for Ajax enabled webbapps,
as well as JSR-168/JSR-268 support.

What do you think?
-J.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



@EventListener and unrendered components.

2007-02-07 Thread Daniel Tabuenca

I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it
works great, except that if the event is on a component that is
conditionally rendered, it breaks with the following error:

FATAL exception raised: bad srcObj for srcFunc: onclick

This is understandable since dojo cannot connect the requested event
because the element does not exist.

Is there a way to deal with this? Or should event listeners not be
used with conditionally rendered components? Is there away to
conditionally enable/disable EventListeners?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to link to another website

2007-02-07 Thread Daniel Tabuenca

You mean to another non-tapestry website? You just do a
href=WEBSITE_URL /a

If you don't want to use a static URL in your template then you could
also use the @GenericLink component.
On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:

Hello,

 I want to a link to another website. Anyone can tell me how to do
it?

Thanks you in advance!



Yours Stony




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to link to another website

2007-02-07 Thread Stony Zhang
Thanks Daniel,
But WEBSITE_URL need be got in server side.
and I can't use ognl:weburl to do that.

Best wishes,
Stony

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 11:53 AM
To: Tapestry users
Subject: Re: How to link to another website

You mean to another non-tapestry website? You just do a
href=WEBSITE_URL /a

If you don't want to use a static URL in your template then you could
also use the @GenericLink component.
On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:
 Hello,

  I want to a link to another website. Anyone can tell me how to do
 it?

 Thanks you in advance!



 Yours Stony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to link to another website

2007-02-07 Thread Daniel Tabuenca

Like I said, if you need to generate the url use @GenericLink. Also,
keep in mind that you can add dynamic content to any tag using the
@Any component. For example:
a jwcid=@Any href=ognl:weburlCLiCK ME/a
On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:

Thanks Daniel,
But WEBSITE_URL need be got in server side.
and I can't use ognl:weburl to do that.

Best wishes,
Stony

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 11:53 AM
To: Tapestry users
Subject: Re: How to link to another website

You mean to another non-tapestry website? You just do a
href=WEBSITE_URL /a

If you don't want to use a static URL in your template then you could
also use the @GenericLink component.
On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:
 Hello,

  I want to a link to another website. Anyone can tell me how to do
 it?

 Thanks you in advance!



 Yours Stony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to link to another website

2007-02-07 Thread Stony Zhang
Thanks a lot. I have done that with @Any...

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 1:11 PM
To: Tapestry users
Subject: Re: How to link to another website

Like I said, if you need to generate the url use @GenericLink. Also,
keep in mind that you can add dynamic content to any tag using the
@Any component. For example:
a jwcid=@Any href=ognl:weburlCLiCK ME/a
On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:
 Thanks Daniel,
 But WEBSITE_URL need be got in server side.
 and I can't use ognl:weburl to do that.

 Best wishes,
 Stony

 -Original Message-
 From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 08, 2007 11:53 AM
 To: Tapestry users
 Subject: Re: How to link to another website

 You mean to another non-tapestry website? You just do a
 href=WEBSITE_URL /a

 If you don't want to use a static URL in your template then you could
 also use the @GenericLink component.
 On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote:
  Hello,
 
   I want to a link to another website. Anyone can tell me how to
do
  it?
 
  Thanks you in advance!
 
 
 
  Yours Stony
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]