Re: @OnEvent annotated methods not firing

2009-08-11 Thread Sebastian Hennebrueder

ApocB schrieb:

Thiago,

I just tried this, and it's still not working... It should work... I can't
seem to find what i'm missing...

You may create a minimal sample application and post the code or at 
least post the complete code of the page including template.



--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Dynamically selecting a component to render output

2009-08-11 Thread kartweel

Ok... This has probably been dealt with, but I can't find an answer or must
be searching the wrong thing...

I need a component to be dynamically selected at runtime rather than being
static in the template and using an t:if (or delegate and blocks, etc) to
show it. Any pointers to be able to do this?

The functionality i am trying to get:

I have a page which lists a whole bunch of rows of data. When the user
clicks a row I want a section to open underneath which displays an editor
for that row. Now the editor displayed will be dependent on the type of data
in that row (each editor will have a different class and template, I can
make all the editors inherit from a base class if needed). My ideal lookup
mechanism for what editor would be to load it using the class name which
matches data in the row so I can simply add new editors by just adding a new
class.

Now I've thought about doing this with the block and delegate method, but
then I need to edit a master template every time I add a class. Other
thoughts were using an iframe and loading it as a page rather than embedding
a component, but I like the component idea better coz it gives me more
flexibility.

Ok Thanks everyone!
-- 
View this message in context: 
http://www.nabble.com/Dynamically-selecting-a-component-to-render-output-tp24912684p24912684.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Dynamically selecting a component to render output

2009-08-11 Thread Ulrich Stärk

Block and delegate are indeed meant for those situations. I'd take that 
approach.

Uli

On 11.08.2009 09:02 schrieb kartweel:

Ok... This has probably been dealt with, but I can't find an answer or must
be searching the wrong thing...

I need a component to be dynamically selected at runtime rather than being
static in the template and using an t:if (or delegate and blocks, etc) to
show it. Any pointers to be able to do this?

The functionality i am trying to get:

I have a page which lists a whole bunch of rows of data. When the user
clicks a row I want a section to open underneath which displays an editor
for that row. Now the editor displayed will be dependent on the type of data
in that row (each editor will have a different class and template, I can
make all the editors inherit from a base class if needed). My ideal lookup
mechanism for what editor would be to load it using the class name which
matches data in the row so I can simply add new editors by just adding a new
class.

Now I've thought about doing this with the block and delegate method, but
then I need to edit a master template every time I add a class. Other
thoughts were using an iframe and loading it as a page rather than embedding
a component, but I like the component idea better coz it gives me more
flexibility.

Ok Thanks everyone!


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 Re: Portlets?

2009-08-11 Thread Christine

spaway wrote:

liferay supports tapestry - meaning you can develop liferay's portlet in
tapestry as a plugin - I suppose!  check liferay's wiki/blog very well!
  
I couldn't find anything. It would be really nice if Tapesty5 would 
support portlets.


dagdag
Christine

2009/8/6 Christine christ...@christine.nl

  

A friend told me that Tapestry will support portlets at some point. Is that
true? One of my clients is switching to Liferay and I'd like to develop the
portlets with Tapestry

dagdag
Christine

--
dagdag is just a two-character rotation of byebye.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






  



--
dagdag is just a two-character rotation of byebye.



Re: T5 Re: Portlets?

2009-08-11 Thread Kristian Marinkovic
see the roadmap section of http://tapestry.apache.org/tapestry5.1/

High priorities for 5.2 include Spring Web Flow integration, and support 
for developing Tapestry applications as Portlets. 

g,
kris




Christine christ...@christine.nl 
11.08.2009 10:19
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
T5 Re: Portlets?






spaway wrote:
 liferay supports tapestry - meaning you can develop liferay's portlet in
 tapestry as a plugin - I suppose!  check liferay's wiki/blog very well!
 
I couldn't find anything. It would be really nice if Tapesty5 would 
support portlets.

dagdag
Christine
 2009/8/6 Christine christ...@christine.nl

 
 A friend told me that Tapestry will support portlets at some point. Is 
that
 true? One of my clients is switching to Liferay and I'd like to develop 
the
 portlets with Tapestry

 dagdag
 Christine

 --
 dagdag is just a two-character rotation of byebye.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 


 


-- 
dagdag is just a two-character rotation of byebye.




Re: T5 Re: Portlets?

2009-08-11 Thread Ulrich Stärk
Quoting http://tapestry.apache.org/tapestry5.1/: High priorities for 5.2 include Spring Web Flow 
integration, and support for developing Tapestry applications as Portlets.


Uli

On 11.08.2009 10:19 schrieb Christine:

spaway wrote:

liferay supports tapestry - meaning you can develop liferay's portlet in
tapestry as a plugin - I suppose!  check liferay's wiki/blog very well!
  
I couldn't find anything. It would be really nice if Tapesty5 would 
support portlets.


dagdag
Christine

2009/8/6 Christine christ...@christine.nl

 
A friend told me that Tapestry will support portlets at some point. 
Is that
true? One of my clients is switching to Liferay and I'd like to 
develop the

portlets with Tapestry

dagdag
Christine

--
dagdag is just a two-character rotation of byebye.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






  





-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Jetty 6.16 and T5.0.13

2009-08-11 Thread Eldred Mullany
Hi All 

 

I am having a strange problem with an old t5.0.13 app and jetty. When I
startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such as t:form  throws an exception
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components. I then built a
war file and deployed it under tomcat and it worked fine. 

 

So the problem seems to be jetty, but not sure what's causing it not to
resolve classes, does anyone have any suggestions on what the cause of
this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
corrupt, all classes reside in their respective packages. It would'nt
have worked in tomcat if my libraries were corrupt. 

 

Thanks

Eldred Mullany  

 



Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Sebastian Hennebrueder

Eldred Mullany schrieb:
Hi All 

 


I am having a strange problem with an old t5.0.13 app and jetty. When I
startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such as t:form  throws an exception
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components. I then built a
war file and deployed it under tomcat and it worked fine. 

 


So the problem seems to be jetty, but not sure what's causing it not to
resolve classes, does anyone have any suggestions on what the cause of
this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
corrupt, all classes reside in their respective packages. It would'nt
have worked in tomcat if my libraries were corrupt. 

 


Thanks

Eldred Mullany  

 



I use Jetty 6.1.18 with Tapestry 5.1 and it works. I only know that JSF 
has deployment problems and requires to pack the JSF libs in the Jetty 
lib folder. But this is JSF. It should work. I remember that 5.0 
provides sometimes no exception messages. Just try another version.

Best Regards
Sebastian


--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: Using a checkbox in a grid component

2009-08-11 Thread Alfie Kirkpatrick
As Sebastian points out if the boolean selected field is part of your
pojo it is trivial to bind this to a checkbox in the grid. This was my
initial approach for simplicity but in my case the pojos were Hibernate
entities and I didn't want this field to be persisted or to clutter up
the entity as a transient field, so I went with a different approach
which might work for you...

I created a session-persisted hashset in my page where the elements are
the ids of the entities being selected (you can use the items themselves
if they support hashcode/equals properly).

My code looked something like this:

MyPage.java
---
private HashSetString selectedSet=new HashSetString();

public boolean getCurrentSelected() {
return selectedSet.contains(current.getId());
}

public void setCurrentSelected(boolean value) {
if ( value ) {
selectedSet.add(current.getId());
} else {
selectedSet.remove(current.getId());
}   
}

MyPage.tml
--
t:grid t:id=selectProgrammesGrid 
source=availsList 
row=current 
add=select
p:selectcell
t:checkbox value=currentSelected/
/p:selectcell
/t:grid

Hope it helps, I thought it was rather tidy!
Alfie.

-Original Message-
From: Scot Mcphee [mailto:scot.mcp...@gmail.com] 
Sent: 10 August 2009 06:41
To: users@tapestry.apache.org
Subject: Using a checkbox in a grid component

Hello

Does any one have a short recipe how to use a checkbox in a grid  
component?

What I need to do is fairly simple - let the use select (for example)  
three of five available options presented in a grid component, and  
submit their selections, which are then processed. A good example  
would be a remove checkbox on a list of items in a shopping cart,  
where the items are are only in the user's session so database IDs  
won't do.

I've tried looking through the wiki, searching google, searching the  
mailing list with google, and looking through the 'Tapestry 5 Building  
Web Applications' book which I bought as a PDF, but alas, I can't find  
find a simple recipe for doing this.

I'd like to use the Grid because the data will be fairly complex (it  
isn't for the time being, once I get this technique functional it will  
be). I'd like the selection to change a value in the underlying POJO  
(e.g. Pojo.selected) that's backing the Grid. I have been unable to  
get this anywhere near any semblance of working.  Therefore  
currently any sort of technique that could possibly work would be  
appreciated, for example to have an ListPojo originalList and  
ListPojo selectedList - I've tried to see what convention might give  
me that behaviour but so far, been unable to uncover it.


scot



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Page lifecycle and ComponentClassTransformWorker

2009-08-11 Thread Alfie Kirkpatrick
Hi, I am attempting to implement an annotation for page classes and
corresponding ComponentClassTransformWorker for this. I'm using
IncludeJavaScriptLibraryWorker and the AbstractIncludeAssetWorker base
class as an example.

 

The problem I'm facing is that the custom perform() method I'm creating
is called relatively late in the page lifecycle. Specifically it's
called after the onActivate() method of my class and I need it to be
called earlier.

 

Is there a simple way to have my worker code executed earlier in the
lifecycle?

 

Thanks, Alfie. 

 

 



Re: Using a checkbox in a grid component

2009-08-11 Thread Geoff Callender

Here's a working example of a similar technique.


http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1

HTH,

Geoff

On 11/08/2009, at 7:24 PM, Alfie Kirkpatrick wrote:


As Sebastian points out if the boolean selected field is part of your
pojo it is trivial to bind this to a checkbox in the grid. This was my
initial approach for simplicity but in my case the pojos were  
Hibernate

entities and I didn't want this field to be persisted or to clutter up
the entity as a transient field, so I went with a different approach
which might work for you...

I created a session-persisted hashset in my page where the elements  
are
the ids of the entities being selected (you can use the items  
themselves

if they support hashcode/equals properly).

My code looked something like this:

MyPage.java
---
private HashSetString selectedSet=new HashSetString();

public boolean getCurrentSelected() {
return selectedSet.contains(current.getId());
}

public void setCurrentSelected(boolean value) {
if ( value ) {
selectedSet.add(current.getId());
} else {
selectedSet.remove(current.getId());
}   
}

MyPage.tml
--
t:grid t:id=selectProgrammesGrid
source=availsList
row=current
add=select
p:selectcell
t:checkbox value=currentSelected/
/p:selectcell
/t:grid

Hope it helps, I thought it was rather tidy!
Alfie.

-Original Message-
From: Scot Mcphee [mailto:scot.mcp...@gmail.com]
Sent: 10 August 2009 06:41
To: users@tapestry.apache.org
Subject: Using a checkbox in a grid component

Hello

Does any one have a short recipe how to use a checkbox in a grid
component?

What I need to do is fairly simple - let the use select (for example)
three of five available options presented in a grid component, and
submit their selections, which are then processed. A good example
would be a remove checkbox on a list of items in a shopping cart,
where the items are are only in the user's session so database IDs
won't do.

I've tried looking through the wiki, searching google, searching the
mailing list with google, and looking through the 'Tapestry 5 Building
Web Applications' book which I bought as a PDF, but alas, I can't find
find a simple recipe for doing this.

I'd like to use the Grid because the data will be fairly complex (it
isn't for the time being, once I get this technique functional it will
be). I'd like the selection to change a value in the underlying POJO
(e.g. Pojo.selected) that's backing the Grid. I have been unable to
get this anywhere near any semblance of working.  Therefore
currently any sort of technique that could possibly work would be
appreciated, for example to have an ListPojo originalList and
ListPojo selectedList - I've tried to see what convention might give
me that behaviour but so far, been unable to uncover it.


scot



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Dynamically selecting a component to render output

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 04:11:59 -0300, Ulrich Stärk u...@spielviel.de  
escreveu:


Block and delegate are indeed meant for those situations. I'd take that  
approach.


Me too. There's an example here:  
http://tapestry.apache.org/tapestry5.1/cookbook/switch.html.
Another option is using block and delegate, but using blocks from other  
pages. That's what BeanEditor, BeanEditForm and Grid do. Take a look at  
their sources fro inspiration.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 02:56:27 -0300, Eldred Mullany  
eldred.mull...@easypay.co.za escreveu:



Hi All


Hi!


I am having a strange problem with an old t5.0.13 app and jetty. When I
startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such as t:form  throws an exception
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.


Please post the whole stack trace. It could be a classpath issue.
I've been developing Tapestry 5 applications with Jetty since Tapestry  
5.0.4 whitout any problems.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Bryan Lewis
I'm building Tapestry 5.0.18 apps in Eclipse with Jetty with no problem.
What plugin are you using to run jetty in eclipse?  At first I tried
JettyLauncher because it was recommended in the Tapestry tutorial (for older
versions of Jetty and Eclipse), but I got ClassNotFoundExceptions when
running with Jetty 6 and Eclipse 3.4.  I switched to run-jetty-run.

Can you run in jetty outside eclipse?


On Tue, Aug 11, 2009 at 1:56 AM, Eldred Mullany 
eldred.mull...@easypay.co.za wrote:

 Hi All



 I am having a strange problem with an old t5.0.13 app and jetty. When I
 startup the application in Eclipse it shows that it connects to db,
 starts up all services etc, however when hit a web page that contains
 any component such as t:form  throws an exception
 java.lang.ClassNotFoundException: caught an exception while obtaining a
 class file for org.apache.tapestry5.corelib.components. I then built a
 war file and deployed it under tomcat and it worked fine.



 So the problem seems to be jetty, but not sure what's causing it not to
 resolve classes, does anyone have any suggestions on what the cause of
 this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
 corrupt, all classes reside in their respective packages. It would'nt
 have worked in tomcat if my libraries were corrupt.



 Thanks

 Eldred Mullany






Re: Creating multipart responses

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 07:42:15 -0300, Pedro Januário prnjanua...@gmail.com  
escreveu:



Hi,


Hi!


How it's possible to build multipart response with tapestry.


I've never tried, but I guess the solution is to return a StreamResponse.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Page lifecycle and ComponentClassTransformWorker

2009-08-11 Thread Thiago H. de Paula Figueiredo

Hi!

While implementing a security package for Tapestry, I faced the same  
issue. Then Robert, Howard and Massimo gave me the solution: my  
ComponentClassTransformWorker sets a meta property (model.setMeta(String,  
String)) that is used by a Dispatcher. The code is here:  
http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-security/trunk/.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Custom validation for @Validate

2009-08-11 Thread P . Stavrinides
Is it correct that the AppModule methods are static or
 is the recommend way to make them non static. Both seems to work.
For the most part, static is the correct approach

regards,
Peter

- Original Message -
From: Sebastian Hennebrueder use...@laliluna.de
To: Tapestry users users@tapestry.apache.org
Sent: Thursday, 6 August, 2009 17:35:38 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Custom validation for @Validate

Hello,
while describing the validation mechanism of Tapestry in my article, I 
used my findings to update the Wiki.

http://wiki.apache.org/tapestry/CreatingCustomValidators

Could someone please review it, as I am not experienced with Tapestry. 
Is it correct that the AppModule methods are static or
is the recommend way to make them non static. Both seems to work.

Personally, I believe that this information belongs to the normal 
documentation and not the Wiki. I checked the Validation page but it is 
already to large.
What do you think about refactoring the guide documentation and moving 
all custom extension docs to a dedicated group?
This would leave the doc shorter for standard users and give still a 
quick pointer for people customizing their Tapestry appl

-- 
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



tapestry request processing diagram

2009-08-11 Thread Ulrich Stärk
In case anyone wants to have an overview of how the different pipelines, chain of commands and 
filters responsible for request processing interact, here [1] is an overview. It is missing the 
RequestFilters though, maybe I'll add them later.


Cheers,

Uli

[1] http://uli.spielviel.de/~uli/tapestry_request_processing.png

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Fernando Padilla
So.. read the exception stack trace fully..  If down at the bottom it 
talks about slf4j or some logging issue.. then it's because Jetty 
purposefuly hides the slf4j libraries from tapestry (because jetty ships 
with slf4j for itself ) and you have to add a particular vmarg to fix 
that.  At least this is what we do, you might be having the same issue, 
but no guarantees.



vmargs:

-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true or false

(At the moment I can't get to my eclipse, so I can't remember if have to 
set to true or false)




But here are the docs for this property:

http://docs.codehaus.org/display/JETTY/Classloading
http://docs.codehaus.org/display/JETTY/SystemProperties




On 8/10/09 10:56 PM, Eldred Mullany wrote:

Hi All



I am having a strange problem with an old t5.0.13 app and jetty. When I
startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such ast:form   throws an exception
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components. I then built a
war file and deployed it under tomcat and it worked fine.



So the problem seems to be jetty, but not sure what's causing it not to
resolve classes, does anyone have any suggestions on what the cause of
this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
corrupt, all classes reside in their respective packages. It would'nt
have worked in tomcat if my libraries were corrupt.



Thanks

Eldred Mullany






-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry-spring-security-2.1.0 logout issue

2009-08-11 Thread Norman Franke
The JavaDoc on org.apache.tapestry5.service.Request states that  
getSession(false) should return NULL if the session is invalidated.  
This is not happening, it returns the invalidated session.


I think this is because tapestry-spring-security is using the  
HttpServletRequest and thus the HttpSession instead of the Tapestry  
Sesssion in LogoutServiceImpl. Invalidating the HttpSession does NOT  
invalidate the Tapestry session causing all sorts of issues. If I  
invalidate the Tapestry session first, then call  
logoutService.logout() it seems to work.


Can this be fixed in tapestry-spring-service?

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Aug 10, 2009, at 6:58 PM, Norman Franke wrote:

When I try to logout via tapestry-spring-security-2.1.0 (as in the  
example, logoutService.logout() in my event handler for the logout  
link), I get this error all the time:


How can I logout without error and go back to the main page?
java.lang.IllegalStateException: setAttribute: Session already  
invalidated
	 
org 
.apache 
.catalina.session.StandardSession.setAttribute(StandardSession.java: 
1291)
	 
org 
.apache 
.catalina.session.StandardSession.setAttribute(StandardSession.java: 
1256)
	 
org 
.apache 
.catalina 
.session 
.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
	 
org 
.apache 
.tapestry5 
.internal.services.SessionImpl.restoreDirtyObjects(SessionImpl.java: 
129)
	 
org 
.apache 
.tapestry5 
.internal 
.services 
.RestoreDirtySessionObjects 
.requestDidComplete(RestoreDirtySessionObjects.java:38)
	 
org 
.apache 
.tapestry5 
.internal 
.services 
.EndOfRequestEventHubImpl.fire(EndOfRequestEventHubImpl.java:40)
	 
$ 
EndOfRequestEventHub_1230686f209 
.fire($EndOfRequestEventHub_1230686f209.java)
	org.apache.tapestry5.services.TapestryModule 
$4.service(TapestryModule.java:782)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	org.apache.tapestry5.services.TapestryModule 
$3.service(TapestryModule.java:767)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	 
org 
.apache 
.tapestry5 
.internal.services.StaticFilesFilter.service(StaticFilesFilter.java: 
85)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	org.apache.tapestry5.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:90)
	org.apache.tapestry5.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:81)
	 
org 
.apache 
.tapestry5 
.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java: 
85)
	 
org 
.apache 
.tapestry5 
.internal 
.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java: 
103)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
$RequestHandler_1230686f221.service($RequestHandler_1230686f221.java)
	org.apache.tapestry5.services.TapestryModule 
$HttpServletRequestHandlerTerminator.service(TapestryModule.java:197)
	 
org 
.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
org 
.apache 
.tapestry5 
.internal 
.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
	 
$ 
HttpServletRequestFilter_1230686f220 
.service($HttpServletRequestFilter_1230686f220.java)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
	org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke 
(FilterSecurityInterceptor.java:109)
	org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter 
(FilterSecurityInterceptor.java:83)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.HttpServletRequestFilterWrapper 
.service(HttpServletRequestFilterWrapper.java:52)
	 
$ 
HttpServletRequestFilter_1230686f21d 
.service($HttpServletRequestFilter_1230686f21d.java)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.SpringSecurityExceptionTranslationFilter 
.doFilterHttp(SpringSecurityExceptionTranslationFilter.java:100)
	 
org 
.springframework 
.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java: 
53)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.HttpServletRequestFilterWrapper 
.service(HttpServletRequestFilterWrapper.java:52)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 

Re: tapestry request processing diagram

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 12:24:27 -0300, Ulrich Stärk u...@spielviel.de  
escreveu:


In case anyone wants to have an overview of how the different pipelines,  
chain of commands and filters responsible for request processing  
interact, here [1] is an overview. It is missing the RequestFilters  
though, maybe I'll add them later.


I can only think a word about it: awesome!

What software did you use?

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry request processing diagram

2009-08-11 Thread Ulrich Stärk

Thiago H. de Paula Figueiredo schrieb:
Em Tue, 11 Aug 2009 12:24:27 -0300, Ulrich Stärk u...@spielviel.de 
escreveu:


In case anyone wants to have an overview of how the different 
pipelines, chain of commands and filters responsible for request 
processing interact, here [1] is an overview. It is missing the 
RequestFilters though, maybe I'll add them later.


I can only think a word about it: awesome!

What software did you use?



Visio

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry 5.1 running in Google App Engine (GAE)

2009-08-11 Thread Christian Köberl

I've finally managed to run a Tapestry 5.1 application in GAE. I used the
Tapestry integration test app: http://tapestry-test.appspot.com/

For more background on this see:
http://derkoe.wordpress.com/2009/08/11/tapestry-5-1-in-the-cloud/
-- 
View this message in context: 
http://n2.nabble.com/Tapestry-5.1-running-in-Google-App-Engine-%28GAE%29-tp3426158p3426158.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: @Validate a user defined property

2009-08-11 Thread Michael Gentry
To open up an old can of worms, the documentation shows doing
validation in onSuccess() ...

http://tapestry.apache.org/tapestry5/guide/validation.html


On Mon, Feb 23, 2009 at 10:54 PM, Thiago H. de Paula
Figueiredothiag...@gmail.com wrote:
 On Sun, Feb 22, 2009 at 6:48 PM, Luther Baker lutherba...@gmail.com wrote:
 I can create a t:form and manually validate this 'onSuccess' (

 You should perform validations on onValidate(), not onSuccess(). The
 'success' word here means that validation was successful.

 --
 Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Possible bug in Hidden component

2009-08-11 Thread Sebastian Hennebrueder

Hello,

an empty hidden field is not properly decoded. If foo is null, I get
Caused by: java.lang.RuntimeException: Coercion of  to type 
java.lang.Integer (via String -- Long, Long -- Integer) failed: For 
input string: 
   at 
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.coerce(TypeCoercerImpl.java:69)
   at 
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.coerce(TypeCoercerImpl.java:133)

   at $TypeCoercer_1230b108ecc.coerce($TypeCoercer_1230b108ecc.java)
   at 
org.apache.tapestry5.internal.services.TypeCoercedValueEncoderFactory$1.toValue(TypeCoercedValueEncoderFactory.java:45)
   at 
org.apache.tapestry5.corelib.components.Hidden.processSubmission(Hidden.java:109)

   a

Here is the sample form I used.

Could someone confirm that this is a bug or not?

t:form
   t:hidden t:id=foo value=foo/
   t:submit/
/t:form

public class Sample {
   @Property
   private Integer foo;

   Object onSuccess(){
   System.out.println(foo);
   return null;
   }
}

--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry-spring-security-2.1.0 logout issue

2009-08-11 Thread Robin Helgelin
On Tue, Aug 11, 2009 at 17:46, Norman Frankenor...@myasd.com wrote:
 The JavaDoc on org.apache.tapestry5.service.Request states that
 getSession(false) should return NULL if the session is invalidated. This
 is not happening, it returns the invalidated session.

 I think this is because tapestry-spring-security is using the
 HttpServletRequest and thus the HttpSession instead of the Tapestry Sesssion
 in LogoutServiceImpl. Invalidating the HttpSession does NOT invalidate the
 Tapestry session causing all sorts of issues. If I invalidate the Tapestry
 session first, then call logoutService.logout() it seems to work.

 Can this be fixed in tapestry-spring-service?

Sure, if we can work out the proper way to solve this. If I understand
you, the logoutService invalidates the HttpSession, which makes
Tapestry session throw an exception?

Currently the LogoutService logs out the following two cases:
public static void contributeLogoutService(
final OrderedConfigurationLogoutHandler cfg,
@InjectService(RememberMeLogoutHandler)
final LogoutHandler rememberMeLogoutHandler) {
cfg.add(securityContextLogoutHandler,
new SecurityContextLogoutHandler());
cfg.add(rememberMeLogoutHandler, rememberMeLogoutHandler);
}

My guess is that one probably should add a tapestry logout handler,
which should invalidate the tapestry session?, but I'm not sure
whether this should be default or up to the user. But if the
LogoutService is unusable without the tapestry logout handler I guess
it's of use be default :)

-- 
regards,
Robin

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry request processing diagram

2009-08-11 Thread Robert Zeigler

Very nice. Thanks for putting that together.

Robert

On Aug 11, 2009, at 8/1110:24 AM , Ulrich Stärk wrote:

In case anyone wants to have an overview of how the different  
pipelines, chain of commands and filters responsible for request  
processing interact, here [1] is an overview. It is missing the  
RequestFilters though, maybe I'll add them later.


Cheers,

Uli

[1] http://uli.spielviel.de/~uli/tapestry_request_processing.png

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry-spring-security-2.1.0 logout issue

2009-08-11 Thread Norman Franke

On Aug 11, 2009, at 5:20 PM, Robin Helgelin wrote:


On Tue, Aug 11, 2009 at 17:46, Norman Frankenor...@myasd.com wrote:

The JavaDoc on org.apache.tapestry5.service.Request states that
getSession(false) should return NULL if the session is  
invalidated. This

is not happening, it returns the invalidated session.

I think this is because tapestry-spring-security is using the
HttpServletRequest and thus the HttpSession instead of the Tapestry  
Sesssion
in LogoutServiceImpl. Invalidating the HttpSession does NOT  
invalidate the
Tapestry session causing all sorts of issues. If I invalidate the  
Tapestry

session first, then call logoutService.logout() it seems to work.

Can this be fixed in tapestry-spring-service?


Sure, if we can work out the proper way to solve this. If I understand
you, the logoutService invalidates the HttpSession, which makes
Tapestry session throw an exception?

Currently the LogoutService logs out the following two cases:
   public static void contributeLogoutService(
   final OrderedConfigurationLogoutHandler cfg,
   @InjectService(RememberMeLogoutHandler)
   final LogoutHandler rememberMeLogoutHandler) {
   cfg.add(securityContextLogoutHandler,
   new SecurityContextLogoutHandler());
   cfg.add(rememberMeLogoutHandler, rememberMeLogoutHandler);
   }

My guess is that one probably should add a tapestry logout handler,
which should invalidate the tapestry session?, but I'm not sure
whether this should be default or up to the user. But if the
LogoutService is unusable without the tapestry logout handler I guess
it's of use be default :)

--
   regards,
   Robin



I think it should be the default, since one is using it with Tapestry,  
after all, and invalidating the HttpSession really does confuse  
Tapestry, making logoutService rather useless.


Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



Re: @Validate a user defined property

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 17:15:52 -0300, Michael Gentry mgen...@masslight.net  
escreveu:



To open up an old can of worms, the documentation shows doing
validation in onSuccess() ...

http://tapestry.apache.org/tapestry5/guide/validation.html


String onSuccess()
{
if (!authenticator.isValid(userName, password))
{
form.recordError(passwordField, Invalid user name or  
password.);

return null;
}

return PostLogin;
}

I would say that input validation is not being done in onSuccess(). IMHO,  
that's view logic being invoked, not input validation per se. :)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.1 running in Google App Engine (GAE)

2009-08-11 Thread Angelo Chen

Hi,

That's a great news and the app runs quite fast in GAE,  seems not hibernate
samples, is hibernate option supported in GAE/T5 as well?

Angelo


Christian Köberl-2 wrote:
 
 
 I've finally managed to run a Tapestry 5.1 application in GAE. I used the
 Tapestry integration test app: http://tapestry-test.appspot.com/
 
 For more background on this see:
 http://derkoe.wordpress.com/2009/08/11/tapestry-5-1-in-the-cloud/
 -- 
 View this message in context:
 http://n2.nabble.com/Tapestry-5.1-running-in-Google-App-Engine-%28GAE%29-tp3426158p3426158.html
 Sent from the Tapestry Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5.1-running-in-Google-App-Engine-%28GAE%29-tp24923950p24927028.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Geoff Callender

Use true.
You can see a setup that works in the second half of this page: 
http://jumpstart.doublenegative.com.au/jumpstart4.4/installation.html

On 12/08/2009, at 1:32 AM, Fernando Padilla wrote:

So.. read the exception stack trace fully..  If down at the bottom  
it talks about slf4j or some logging issue.. then it's because Jetty  
purposefuly hides the slf4j libraries from tapestry (because jetty  
ships with slf4j for itself ) and you have to add a particular vmarg  
to fix that.  At least this is what we do, you might be having the  
same issue, but no guarantees.



vmargs:

-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true or false

(At the moment I can't get to my eclipse, so I can't remember if  
have to set to true or false)




But here are the docs for this property:

http://docs.codehaus.org/display/JETTY/Classloading
http://docs.codehaus.org/display/JETTY/SystemProperties




On 8/10/09 10:56 PM, Eldred Mullany wrote:

Hi All



I am having a strange problem with an old t5.0.13 app and jetty.  
When I

startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such ast:form   throws an exception
java.lang.ClassNotFoundException: caught an exception while  
obtaining a
class file for org.apache.tapestry5.corelib.components. I then  
built a

war file and deployed it under tomcat and it worked fine.



So the problem seems to be jetty, but not sure what's causing it  
not to
resolve classes, does anyone have any suggestions on what the cause  
of

this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
corrupt, all classes reside in their respective packages. It would'nt
have worked in tomcat if my libraries were corrupt.



Thanks

Eldred Mullany






-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: @Validate a user defined property

2009-08-11 Thread Geoff Callender
There's a long-standing problem with recording errors in onSuccess().  
I think that's what Michael's referring to.


https://issues.apache.org/jira/browse/TAPESTRY-1972

So the example should be changed to this:

   String onValidateForm()
   {
   if (!authenticator.isValid(userName, password))
   {
   form.recordError(passwordField, Invalid user name or  
password.);

   }
   }

   String onSuccess()
   {
   return PostLogin;
   }

I've lodged https://issues.apache.org/jira/browse/TAP5-812 .

Geoff


On 12/08/2009, at 8:34 AM, Thiago H. de Paula Figueiredo wrote:

Em Tue, 11 Aug 2009 17:15:52 -0300, Michael Gentry mgen...@masslight.net 
 escreveu:



To open up an old can of worms, the documentation shows doing
validation in onSuccess() ...

http://tapestry.apache.org/tapestry5/guide/validation.html


   String onSuccess()
   {
   if (!authenticator.isValid(userName, password))
   {
   form.recordError(passwordField, Invalid user name or  
password.);

   return null;
   }

   return PostLogin;
   }

I would say that input validation is not being done in onSuccess().  
IMHO, that's view logic being invoked, not input validation per se. :)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.1 running in Google App Engine (GAE)

2009-08-11 Thread Thiago H. de Paula Figueiredo
Em Tue, 11 Aug 2009 16:11:01 -0300, Christian Köberl  
tapestry.christian.koeb...@gmail.com escreveu:



I've finally managed to run a Tapestry 5.1 application in GAE. I used the
Tapestry integration test app: http://tapestry-test.appspot.com/
For more background on this see:
http://derkoe.wordpress.com/2009/08/11/tapestry-5-1-in-the-cloud/


Awesome! (I've used this word twice in this mailing list, that's a good  
sign. :))
My next project will be hosted on GAE, so I'm very happy with this  
announcement. :D


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.1 running in Google App Engine (GAE)

2009-08-11 Thread Marcus Veloso
Nice work, Christian!


Re: tapestry request processing diagram

2009-08-11 Thread Geoff Callender

Very nice. Deserves a place in the official doco.

On 12/08/2009, at 4:57 AM, Ulrich Stärk wrote:


Thiago H. de Paula Figueiredo schrieb:
Em Tue, 11 Aug 2009 12:24:27 -0300, Ulrich Stärk u...@spielviel.de  
escreveu:
In case anyone wants to have an overview of how the different  
pipelines, chain of commands and filters responsible for request  
processing interact, here [1] is an overview. It is missing the  
RequestFilters though, maybe I'll add them later.

I can only think a word about it: awesome!
What software did you use?


Visio

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org