Re: 404 from onActivate

2010-03-25 Thread Christophe Cordenier
Hi

To avoid the problem with Tomcat i use to implement a
ComponentEventResultProcessor to call the sendError()

See this thread for other solutions
http://markmail.org/thread/vfeoddnlptmuxf6e

Regards,
Christophe Cordenier.

Developer of wo...@wookicentral.com

2010/3/25 Joost Schouten (ml) joost...@jsportal.com

 Hi Jan,

 Did you find a solution to this problem on tomcat? I am faced with exectly
 the same situation where the response.sendError(404, null); works great in
 jetty but not on tomcat.

 Cheers,
 Joost


 Jan Jirout wrote:

 Hi,

 thanks for replay. My situation is exactly as you wrote. After all this
 approach works just in case of Jetty. It doesn't work with Tomcat 6.0.20 and
 6.0.24. I have tested it. Only difference between processing page that
 should lead to error404 is that at tomcat page processing continue after
 error 404 in send, so there appears some NullPointerExceptions. I don't see
 this exception at Jetty.

 Jan


 Kalle Korhonen wrote:

 If you want Tapestry to render your error page, you need to configure
 the filter to handle error dispatches:
filter-mapping
filter-nameapp/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherERROR/dispatcher
/filter-mapping

 Entirely possible that Jetty would route this to the app by default
 but I think it's off-spec.

 Kalle


 On Fri, Mar 19, 2010 at 2:50 PM, Jan Jirout jir...@coroptis.com wrote:


 Hi,

 I have same problem. I don't like solution with HTTP redirect to page
 that
 return 404 also. This solution is not fully logic from user perspective.
 I
 would like to by able to show error404 without any redirect.

 I have tried in onActivation method code:

 response.sendError(404, null);

 where:

  @Inject
  private org.apache.tapestry5.services.Response response;

 It works in jetty, but didn't work in Tomcat ;-). I hope, that somebody
 will
 help.

 Regards

 Jan

 Igor Drobiazko wrote:


 Just inject service RequestGlobals [1] into your page, retrieve the
 Response
 from it and send the 404 error to the client.

 [1]


 http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/RequestGlobals.html

 On Fri, Mar 19, 2010 at 6:39 PM, Mike Oestereter
 mike.oestere...@gmail.comwrote:




 That's what I'm doing at the moment, but is not what I want.
 The result from the user's perspective is is a redirect 302 (or
 something) to a 404, which I don't think makes sense?

 On Fri, Mar 19, 2010 at 4:51 PM, Christian Riedel
 cr.ml...@googlemail.com wrote:



 I would create an Error404.java page and redirect to it in case your



 onActivate doesn't find a corresponding entity.



 Am 19.03.2010 um 15:04 schrieb Mike Oestereter:




 Hello

 I've got a page that takes the context as parameter to produce a
 result from db, e.g.:  http:/hostname/app/page/123

 If the db result for 123 does not exist I would like to throw a 404.

 Currently I'm using...

 Object onActivate(EventContext context) {
  //db lookup code to prepare page
 }

 Is the best way to throw a custom error that gets picked up by the
 ExceptionReport page and rendered with a status code of 404?

 Or is there a way to initialize/prepare the page earlier in the
 cycle
 and detect the non existence of resource 123?

 Thanks
 Theo

 -

 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





 -
 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





 -
 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



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




-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Re: Decorate parameter

2010-03-25 Thread Christophe Cordenier
Hi

I just discovered the @BindParameter annotation and new ParameterConduit
API, sadly this is only available in 5.2.

Regards,
Christophe Cordenier.

2010/3/24 Christophe Cordenier christophe.corden...@gmail.com

 Hi

 I am currently trying to decorate the encoder parameter of Select component
 (at least every component that has an encoder parameter) to apply an
 indirection on client Value (see owasp rule A4)

 I have tried to use InternalComponentResources of the container to write a
 new value via the Binding, or the ParameterAccess, but no way...
 It depends on the case but can fail with NullPointerException or because
 default binding is invariant...

 Any hints ?

 --
 Regards,
 Christophe Cordenier.

 Developer of wooki @wookicentral.com




-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Google Summer of Code 2010

2010-03-25 Thread Ulrich Stärk

This is to the students among you.

As in the years before, Google is sponsoring the Google Summer of Code [1]. The Apache Software 
Foundation has been accepted as a GSoC Organization which means that projects inside the ASF can 
come up with tasks that they'd like to see implemented by a participating student. An ASF-wide list 
of available tasks can be found at [2].


Of course we have come up with some Tapestry-specific tasks as well which can be found at [3]. They 
include JPA and EJB3 integration and more nifty components. Thiago and I will be mentoring students 
that whish to carry out those tasks.


The benefits for students are manyfold:

- get in touch with a real open source software project
- learn how to develop software in a truely distributed team
- get a $5000 stipend

Google will accept applications between March 29th and April 9th, so go to [1] and get familiar with 
GSoC, discuss your ideas for an application with us and apply for a stipend with GSoC!


Cheers,

Uli

[1] http://socghop.appspot.com/gsoc/program/home/google/gsoc2010
[2] 
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314021
[3] 
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122

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



Modules Ordering

2010-03-25 Thread Robin Komiwes
Hi,

I'm pretty sure this already have been suggested, but, why not
offering the possibility to order Tapestry Modules via annotations on
Modules classes?

  @Order(before:TapestryModule,after:TapestryIOCModule)
  public class MyModule {
...
  }

It would solve lots of problems like service
instantiation/configuration override ones. Theses problems happens
often when you want to tweak Tapestry.

The good thing is that it seems also backward compatible.

Regards,

Robin

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



Re: Google Summer of Code 2010

2010-03-25 Thread Markus Feindler
The last issue 
(https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122)
 
does not exist.


 
  Original-Nachricht 
 Datum: Thu, 25 Mar 2010 09:41:36 +0100
 Von: Ulrich Stärk u...@spielviel.de
 An: Tapestry users users@tapestry.apache.org
 Betreff: Google Summer of Code 2010
 
 This is to the students among you.
 
 As in the years before, Google is sponsoring the Google Summer of Code 
 [1]. The Apache Software 
 Foundation has been accepted as a GSoC Organization which means that 
 projects inside the ASF can 
 come up with tasks that they'd like to see implemented by a participating 
 student. An ASF-wide list 
 of available tasks can be found at [2].
 
 Of course we have come up with some Tapestry-specific tasks as well which 
 can be found at [3]. They 
 include JPA and EJB3 integration and more nifty components. Thiago and I 
 will be mentoring students 
 that whish to carry out those tasks.
 
 The benefits for students are manyfold:
 
 - get in touch with a real open source software project
 - learn how to develop software in a truely distributed team
 - get a $5000 stipend
 
 Google will accept applications between March 29th and April 9th, so go 
 to [1] and get familiar with 
 GSoC, discuss your ideas for an application with us and apply for a 
 stipend with GSoC!
 
 Cheers,
 
 Uli
 
 [1] http://socghop.appspot.com/gsoc/program/home/google/gsoc2010
 [2] 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314021
 [3] 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


Re: Google Summer of Code 2010

2010-03-25 Thread Ulrich Stärk
I'm sorry. Somehow it seems that the filter I created isn't available to others. I'll check how to 
make it publicly available.


Uli

On 25.03.2010 11:21, Markus Feindler wrote:

The last issue
(https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122)
does not exist.




 Original-Nachricht 
Datum: Thu, 25 Mar 2010 09:41:36 +0100
Von: Ulrich Stärku...@spielviel.de
An: Tapestry usersusers@tapestry.apache.org
Betreff: Google Summer of Code 2010

 This is to the students among you.

As in the years before, Google is sponsoring the Google Summer of Code
[1]. The Apache Software
Foundation has been accepted as a GSoC Organization which means that
projects inside the ASF can
come up with tasks that they'd like to see implemented by a participating
student. An ASF-wide list
of available tasks can be found at [2].

Of course we have come up with some Tapestry-specific tasks as well which
can be found at [3]. They
include JPA and EJB3 integration and more nifty components. Thiago and I
will be mentoring students
that whish to carry out those tasks.

The benefits for students are manyfold:

- get in touch with a real open source software project
- learn how to develop software in a truely distributed team
- get a $5000 stipend

Google will accept applications between March 29th and April 9th, so go
to [1] and get familiar with
GSoC, discuss your ideas for an application with us and apply for a
stipend with GSoC!

Cheers,

Uli

[1] http://socghop.appspot.com/gsoc/program/home/google/gsoc2010
[2]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314021
[3]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122

-
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: Google Summer of Code 2010

2010-03-25 Thread Ulrich Stärk

In the meantime you can manually search the issue tracker for Tapestry 5 issues 
labeled with gsoc.

Uli

On 25.03.2010 11:32, Ulrich Stärk wrote:

I'm sorry. Somehow it seems that the filter I created isn't available to
others. I'll check how to make it publicly available.

Uli

On 25.03.2010 11:21, Markus Feindler wrote:

The last issue
(https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122)

does not exist.




 Original-Nachricht 
Datum: Thu, 25 Mar 2010 09:41:36 +0100
Von: Ulrich Stärku...@spielviel.de
An: Tapestry usersusers@tapestry.apache.org
Betreff: Google Summer of Code 2010

This is to the students among you.

As in the years before, Google is sponsoring the Google Summer of Code
[1]. The Apache Software
Foundation has been accepted as a GSoC Organization which means that
projects inside the ASF can
come up with tasks that they'd like to see implemented by a
participating
student. An ASF-wide list
of available tasks can be found at [2].

Of course we have come up with some Tapestry-specific tasks as well
which
can be found at [3]. They
include JPA and EJB3 integration and more nifty components. Thiago and I
will be mentoring students
that whish to carry out those tasks.

The benefits for students are manyfold:

- get in touch with a real open source software project
- learn how to develop software in a truely distributed team
- get a $5000 stipend

Google will accept applications between March 29th and April 9th, so go
to [1] and get familiar with
GSoC, discuss your ideas for an application with us and apply for a
stipend with GSoC!

Cheers,

Uli

[1] http://socghop.appspot.com/gsoc/program/home/google/gsoc2010
[2]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314021

[3]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12314122


-
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



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



Re: Google Summer of Code 2010

2010-03-25 Thread Piero Sartini
 Of course we have come up with some Tapestry-specific tasks as well which
 can be found at [3]. They include JPA and EJB3 integration and more nifty
 components. Thiago and I will be mentoring students that whish to carry out
 those tasks.

What do you miss from the existing JPA integration [1]?

  Piero

[1] http://tynamo.org/tapestry-jpa+guide

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



Properties persisted (compulsorily?) in the session

2010-03-25 Thread Juan Isern

Hi guys, I hope you're doing great.

I'm pretty new to Tapestry and I'm having some trouble with forms.

It turns out that when some field of a form (e.g. a textfield) references
some property that's accessed by a dot notation (I mean, it's not a simple
page property but a property that belongs to a model object which in turn is
owned by the page) it doesn't clear its value when, for instance, I hit
refresh. Just as if it were persisted in the session.

Simple properties are working okay.

This is the code:

public class ServicePublication {
@Property
private Service service = new Service();
@Property
private String vanillaProperty;

service here seems to be in the session whereas vanillaProperty behaves
normally.

I understand there may be some rationale behind this but I'd like to be able
to control it, in this case I want to work with a fresh Service instance
every time the form is submitted. Does anyone know about a workaround for
this issue?

I'll appreciate your thoughts.
-- 
View this message in context: 
http://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28027934.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: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Matheus Eduardo Machado Moreira
   Hi, folks. I'm just learning Tapestry too but I want to participate in
the list. :-)

   Juan, I don't know much about Tapestry (yet!) but if I'm not mistaken
that declaration of your service isn't adequate. You should use a method to
handle the activate event and there initialize your property:

@Property
private Service service;

public void onActivate() {
this.service = new Service();
}

   Good luck! And I'm looking for learning a lot about Tapestry.

   Atenciosamente,

Matheus Eduardo Machado Moreira
matheus@gmail.com

Violence is the last refuge of the incompetent.
   Salvor Hardin (The Foundation, Isaac Asimov)


2010/3/25 Juan Isern juanis...@gmail.com


 Hi guys, I hope you're doing great.

 I'm pretty new to Tapestry and I'm having some trouble with forms.

 It turns out that when some field of a form (e.g. a textfield) references
 some property that's accessed by a dot notation (I mean, it's not a simple
 page property but a property that belongs to a model object which in turn
 is
 owned by the page) it doesn't clear its value when, for instance, I hit
 refresh. Just as if it were persisted in the session.

 Simple properties are working okay.

 This is the code:

 public class ServicePublication {
@Property
private Service service = new Service();
@Property
private String vanillaProperty;

 service here seems to be in the session whereas vanillaProperty behaves
 normally.

 I understand there may be some rationale behind this but I'd like to be
 able
 to control it, in this case I want to work with a fresh Service instance
 every time the form is submitted. Does anyone know about a workaround for
 this issue?

 I'll appreciate your thoughts.
 --
 View this message in context:
 http://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28027934.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: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Thiago H. de Paula Figueiredo
On Thu, 25 Mar 2010 09:27:21 -0300, Matheus Eduardo Machado Moreira  
matheus@gmail.com wrote:



   Hi, folks. I'm just learning Tapestry too but I want to participate in
the list. :-)


Welcome to this list, Matheus!


   Juan, I don't know much about Tapestry (yet!) but if I'm not mistaken
that declaration of your service isn't adequate.


Absolutely correct. It isn't adequate because every field that hasn't  
annotations (except @Property), after a request, is set to its initial  
value (the one defined in its declaration). In your code, the field always  
point to the same Service object. It isn't in the session: actually, it's  
shared by all users that use that specific page instance. Tapestry page  
instances are pooled. Read more about the pool in the Principle 1 --  
Static Structure, Dynamic Behavior session of  
http://tapestry.apache.org/tapestry5.1/.


You should use a method to handle the activate event and there  
initialize your property:


Or some rendering event handler, like @SetupRender.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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



Re: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Matheus Eduardo Machado Moreira
   Thanks, Thiago. I'm glad to have helped Juan and that my answer was
absolutely correct. ;-)

   Atenciosamente,

Matheus Eduardo Machado Moreira
matheus@gmail.com

Violence is the last refuge of the incompetent.
   Salvor Hardin (The Foundation, Isaac Asimov)


2010/3/25 Thiago H. de Paula Figueiredo thiag...@gmail.com

 On Thu, 25 Mar 2010 09:27:21 -0300, Matheus Eduardo Machado Moreira 
 matheus@gmail.com wrote:

Hi, folks. I'm just learning Tapestry too but I want to participate in
 the list. :-)


 Welcome to this list, Matheus!


Juan, I don't know much about Tapestry (yet!) but if I'm not mistaken
 that declaration of your service isn't adequate.


 Absolutely correct. It isn't adequate because every field that hasn't
 annotations (except @Property), after a request, is set to its initial value
 (the one defined in its declaration). In your code, the field always point
 to the same Service object. It isn't in the session: actually, it's shared
 by all users that use that specific page instance. Tapestry page instances
 are pooled. Read more about the pool in the Principle 1 -- Static
 Structure, Dynamic Behavior session of
 http://tapestry.apache.org/tapestry5.1/.


  You should use a method to handle the activate event and there
 initialize your property:


 Or some rendering event handler, like @SetupRender.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br


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




Re: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Howard Lewis Ship
Actually, what's happening here is that the result of invoking new
Service() is being stored with the page instance and used to reset the
service field to its default value at the end of each request.

This isn't quite the same as storing it in the session, as the Service
instance will be carried with the page and used by multiple
*different* clients. In this way, data can bleed from one client to
another.

On Thu, Mar 25, 2010 at 5:07 AM, Juan Isern juanis...@gmail.com wrote:

 Hi guys, I hope you're doing great.

 I'm pretty new to Tapestry and I'm having some trouble with forms.

 It turns out that when some field of a form (e.g. a textfield) references
 some property that's accessed by a dot notation (I mean, it's not a simple
 page property but a property that belongs to a model object which in turn is
 owned by the page) it doesn't clear its value when, for instance, I hit
 refresh. Just as if it were persisted in the session.

 Simple properties are working okay.

 This is the code:

 public class ServicePublication {
   �...@property
    private Service service = new Service();
   �...@property
    private String vanillaProperty;

 service here seems to be in the session whereas vanillaProperty behaves
 normally.

 I understand there may be some rationale behind this but I'd like to be able
 to control it, in this case I want to work with a fresh Service instance
 every time the form is submitted. Does anyone know about a workaround for
 this issue?

 I'll appreciate your thoughts.
 --
 View this message in context: 
 http://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28027934.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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: Modules Ordering

2010-03-25 Thread Howard Lewis Ship
It's an interesting idea but, of course, where it counts is in service
contributions which already have an ordering mechanism. Also, I don't
think that ordering the entire module is going to be universally
correct for all contributions inside the module.

On Thu, Mar 25, 2010 at 2:07 AM, Robin Komiwes odiss...@gmail.com wrote:
 Hi,

 I'm pretty sure this already have been suggested, but, why not
 offering the possibility to order Tapestry Modules via annotations on
 Modules classes?

 �...@order(before:TapestryModule,after:TapestryIOCModule)
  public class MyModule {
    ...
  }

 It would solve lots of problems like service
 instantiation/configuration override ones. Theses problems happens
 often when you want to tweak Tapestry.

 The good thing is that it seems also backward compatible.

 Regards,

 Robin

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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



[Tapestry Central] Tapestry Trainng Returns to London: April 14 - 16, 2010

2010-03-25 Thread Howard
I'll be returning to SkillsMatter to teach my Tapestry workshop. The
course runs from April 14th to the 16th. I had a great time teaching
the course back in February: SkillsMatter has a great facility, just
perfect for a hands-on class like this one.

--
Posted By Howard to Tapestry Central at 3/25/2010 07:01:00 AM

Re: Modules Ordering

2010-03-25 Thread Christophe Cordenier
Hi,

But how do we do when the service (i.e. ComponentClassResolver) is not
ordered and we want to apply ordering ?
Do we have to override/alias the whole service ?

Best Regards,
Christophe.

2010/3/25 Howard Lewis Ship hls...@gmail.com

 It's an interesting idea but, of course, where it counts is in service
 contributions which already have an ordering mechanism. Also, I don't
 think that ordering the entire module is going to be universally
 correct for all contributions inside the module.

 On Thu, Mar 25, 2010 at 2:07 AM, Robin Komiwes odiss...@gmail.com wrote:
  Hi,
 
  I'm pretty sure this already have been suggested, but, why not
  offering the possibility to order Tapestry Modules via annotations on
  Modules classes?
 
   @Order(before:TapestryModule,after:TapestryIOCModule)
   public class MyModule {
 ...
   }
 
  It would solve lots of problems like service
  instantiation/configuration override ones. Theses problems happens
  often when you want to tweak Tapestry.
 
  The good thing is that it seems also backward compatible.
 
  Regards,
 
  Robin
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.com

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




-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Re: Modules Ordering

2010-03-25 Thread Robin Komiwes
Then, why not also ordering module contributeXXX methods between them?

On Thu, Mar 25, 2010 at 3:38 PM, Christophe Cordenier
christophe.corden...@gmail.com wrote:
 Hi,

 But how do we do when the service (i.e. ComponentClassResolver) is not
 ordered and we want to apply ordering ?
 Do we have to override/alias the whole service ?

 Best Regards,
 Christophe.

 2010/3/25 Howard Lewis Ship hls...@gmail.com

 It's an interesting idea but, of course, where it counts is in service
 contributions which already have an ordering mechanism. Also, I don't
 think that ordering the entire module is going to be universally
 correct for all contributions inside the module.

 On Thu, Mar 25, 2010 at 2:07 AM, Robin Komiwes odiss...@gmail.com wrote:
  Hi,
 
  I'm pretty sure this already have been suggested, but, why not
  offering the possibility to order Tapestry Modules via annotations on
  Modules classes?
 
  �...@order(before:TapestryModule,after:TapestryIOCModule)
   public class MyModule {
     ...
   }
 
  It would solve lots of problems like service
  instantiation/configuration override ones. Theses problems happens
  often when you want to tweak Tapestry.
 
  The good thing is that it seems also backward compatible.
 
  Regards,
 
  Robin
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.com

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




 --
 Regards,
 Christophe Cordenier.

 Developer of wooki @wookicentral.com


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



Re: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Juan Isern

Thank you guys for your answers... now I can see it pretty clearer :)

I was blundering really bad!

Best, Juan



Howard Lewis Ship wrote:
 
 Actually, what's happening here is that the result of invoking new
 Service() is being stored with the page instance and used to reset the
 service field to its default value at the end of each request.
 
 This isn't quite the same as storing it in the session, as the Service
 instance will be carried with the page and used by multiple
 *different* clients. In this way, data can bleed from one client to
 another.
 
 On Thu, Mar 25, 2010 at 5:07 AM, Juan Isern juanis...@gmail.com wrote:

 Hi guys, I hope you're doing great.

 I'm pretty new to Tapestry and I'm having some trouble with forms.

 It turns out that when some field of a form (e.g. a textfield) references
 some property that's accessed by a dot notation (I mean, it's not a
 simple
 page property but a property that belongs to a model object which in turn
 is
 owned by the page) it doesn't clear its value when, for instance, I hit
 refresh. Just as if it were persisted in the session.

 Simple properties are working okay.

 This is the code:

 public class ServicePublication {
   �...@property
    private Service service = new Service();
   �...@property
    private String vanillaProperty;

 service here seems to be in the session whereas vanillaProperty behaves
 normally.

 I understand there may be some rationale behind this but I'd like to be
 able
 to control it, in this case I want to work with a fresh Service instance
 every time the form is submitted. Does anyone know about a workaround for
 this issue?

 I'll appreciate your thoughts.
 --
 View this message in context:
 http://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28027934.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


 
 
 
 -- 
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 
 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!
 
 (971) 678-5210
 http://howardlewisship.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://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28032812.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



.jsp behaviour in tapestry 5 pages

2010-03-25 Thread Manuel Riegler

hi everybody,

I am developing a webapplication using tapestry 5 and I try to implement 
twitter single sign on (SSO with OAuth).
I already implemented that process in a former project with a .jsp. The 
.jsp redirected to twitter, and twitter had the .jsp as callback, soo 
the .jsp handled also the received parameters from twitter. so in the 
.jsp it wasn´t a problem since the java code gets executed everytime the 
page (.jsp) is called.


my question is, how can I provide this behaviour in tapestry? how is it 
possible that a fragment of java code of a tapestry page is executed 
everytime the pages gets called?
@SetupRender does that, but needs void or boolean as return type, 
since I can not navigate to an other page from there. also onActivate() 
isnt a solution, since it is invoked only once at page initialization 
and NOT when a callback from external returns.


I hope someone can give me some hints!
big THANKS in advance,
best regards,
Manuel

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



Re: Properties persisted (compulsorily?) in the session

2010-03-25 Thread Howard Lewis Ship
This is a leaky abstraction around the fact that pages are pooled.
They are just too expensive to reconstruct fresh each request, and
there's a lot of opportunities for optimizations that occur because
the pages are pooled and re-used.

On Thu, Mar 25, 2010 at 11:09 AM, Juan Isern juanis...@gmail.com wrote:

 Thank you guys for your answers... now I can see it pretty clearer :)

 I was blundering really bad!

 Best, Juan



 Howard Lewis Ship wrote:

 Actually, what's happening here is that the result of invoking new
 Service() is being stored with the page instance and used to reset the
 service field to its default value at the end of each request.

 This isn't quite the same as storing it in the session, as the Service
 instance will be carried with the page and used by multiple
 *different* clients. In this way, data can bleed from one client to
 another.

 On Thu, Mar 25, 2010 at 5:07 AM, Juan Isern juanis...@gmail.com wrote:

 Hi guys, I hope you're doing great.

 I'm pretty new to Tapestry and I'm having some trouble with forms.

 It turns out that when some field of a form (e.g. a textfield) references
 some property that's accessed by a dot notation (I mean, it's not a
 simple
 page property but a property that belongs to a model object which in turn
 is
 owned by the page) it doesn't clear its value when, for instance, I hit
 refresh. Just as if it were persisted in the session.

 Simple properties are working okay.

 This is the code:

 public class ServicePublication {
   �...@property
    private Service service = new Service();
   �...@property
    private String vanillaProperty;

 service here seems to be in the session whereas vanillaProperty behaves
 normally.

 I understand there may be some rationale behind this but I'd like to be
 able
 to control it, in this case I want to work with a fresh Service instance
 every time the form is submitted. Does anyone know about a workaround for
 this issue?

 I'll appreciate your thoughts.
 --
 View this message in context:
 http://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28027934.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





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.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://old.nabble.com/Properties-persisted-%28compulsorily-%29-in-the-session-tp28027934p28032812.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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: .jsp behaviour in tapestry 5 pages

2010-03-25 Thread Hugo Palma
Not directly answering your question (Howard already did), but talking of
Twitter SSO, have you tried using RPX (https://rpxnow.com) ?
It works great.

On Thu, Mar 25, 2010 at 18:10, Manuel Riegler 
s0710455...@students.fh-hagenberg.at wrote:

 hi everybody,

 I am developing a webapplication using tapestry 5 and I try to implement
 twitter single sign on (SSO with OAuth).
 I already implemented that process in a former project with a .jsp. The
 .jsp redirected to twitter, and twitter had the .jsp as callback, soo the
 .jsp handled also the received parameters from twitter. so in the .jsp it
 wasn´t a problem since the java code gets executed everytime the page (.jsp)
 is called.

 my question is, how can I provide this behaviour in tapestry? how is it
 possible that a fragment of java code of a tapestry page is executed
 everytime the pages gets called?
 @SetupRender does that, but needs void or boolean as return type, since
 I can not navigate to an other page from there. also onActivate() isnt a
 solution, since it is invoked only once at page initialization and NOT when
 a callback from external returns.

 I hope someone can give me some hints!
 big THANKS in advance,
 best regards,
 Manuel

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




[T5.1.0.5] Big issue with @Secure

2010-03-25 Thread Nicolas Bouillon
Hi,

I have a major (i'm close to putting my app in production) issue with the
@Secure. 

I have a page with the following  onActivate :

public void onActivate(String domainName, Integer domainId)

i have the corresponding on passivate

public Object[] onPassivate() {
return new Object[] { domainName, domainId };
}

The parent class of my page is annoted with @Secure

When i get 

httpS://localhost/myPage/bouil.org/42 everything is fine

when i get http://localhost/myPage/bouil.org/42 (non https),
I got a 302 redirected to 
http://localhost/myPage/$N/$N

So the context is lost !

I'm running Tapestry 5.1.0.5

Any help will be greatly appreciated.

Nicolas.



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



Re: [T5.1.0.5] Big issue with @Secure

2010-03-25 Thread Howard Lewis Ship
I think you are right; there is definitely some interference between
@Secure and your activation context. Please add an issue.

On Thu, Mar 25, 2010 at 11:50 AM, Nicolas Bouillon nico...@bouil.org wrote:
 Hi,

 I have a major (i'm close to putting my app in production) issue with the
 @Secure.

 I have a page with the following  onActivate :

    public void onActivate(String domainName, Integer domainId)

 i have the corresponding on passivate

    public Object[] onPassivate() {
        return new Object[] { domainName, domainId };
    }

 The parent class of my page is annoted with @Secure

 When i get

 httpS://localhost/myPage/bouil.org/42 everything is fine

 when i get http://localhost/myPage/bouil.org/42 (non https),
 I got a 302 redirected to
 http://localhost/myPage/$N/$N

 So the context is lost !

 I'm running Tapestry 5.1.0.5

 Any help will be greatly appreciated.

 Nicolas.



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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: [T5.1.0.5] Big issue with @Secure

2010-03-25 Thread Nicolas Bouillon

Done.
https://issues.apache.org/jira/browse/TAPESTRY-2763

I've enclosed a test project.

Howard Lewis Ship a écrit :

I think you are right; there is definitely some interference between
@Secure and your activation context. Please add an issue.

On Thu, Mar 25, 2010 at 11:50 AM, Nicolas Bouillon nico...@bouil.org wrote:
  

Hi,

I have a major (i'm close to putting my app in production) issue with the
@Secure.

I have a page with the following  onActivate :

   public void onActivate(String domainName, Integer domainId)

i have the corresponding on passivate

   public Object[] onPassivate() {
   return new Object[] { domainName, domainId };
   }

The parent class of my page is annoted with @Secure

When i get

httpS://localhost/myPage/bouil.org/42 everything is fine

when i get http://localhost/myPage/bouil.org/42 (non https),
I got a 302 redirected to
http://localhost/myPage/$N/$N

So the context is lost !

I'm running Tapestry 5.1.0.5

Any help will be greatly appreciated.

Nicolas.



-
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 and SeeSaw talk

2010-03-25 Thread Felix Gonschorek

hi ben,

i am very interested in watching your podcast/video, but somehow this is not 
possible. Instead of the video is see a Sorry message from vimeo, saying that 
i am not allowed to watch your file. Do you have any access restrictions activated?


I would really apreciate to watch your talk.

Thank you!

Felix

Am 24.03.2010 18:29, schrieb Ben Gidley:

Hi,

I did a talk last night on how we used tapestry for SeeSaw.com and if you
are interested there is a video podcast at
http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-real and
the slides are at links.gidley.co.uk/tiafr

Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk



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



Root path / Custom Index page + locale cannot be found - 404

2010-03-25 Thread Christian Riedel
Hi list,

I am currently encountering an unexpected behavior with a custom 
tapestry.start-page-name. 

Configuration #1: Tapestry 5.1.0.5, tapestry.start-page-name = HomePage, tested 
on Tomcat/Jetty

Requests to:

- http://host/ - loads HomePage
- http://host/en/HomePage - loads HomePage
- http://host/en/ - is not handled by Tapestry and results in a 404!

I double checked that by removing the contribution of 
tapestry.start-page-name (so the default is start as I could read from the 
TapestryModule) and created an Index.java + tml. (Configuration #2)

Requests to:

- http://host/ - loads Index
- http://host/en/ - loads Index 

everything is fine :)


Another interesting effect occurred when I set tapestry.start-page-name = 
HomePage again and left the Index page in the project. (Configuration #3)

Requests to:

- http://host/ - loads HomePage
- http://host/en/HomePage - loads HomePage
- http://host/en/ - loads Index 


That's odd, isn't it? Thanks to template inheritance I could just extend 
Index.java from my HomePage.java and put [1] into the Index.tml and prevent 
copypaste my HomePage code.

[1]
t:extend xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
/t:extend


What must be done to make configuration #1 working? Adjust some hidden 
configuration? Add a new JIRA? :)


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



Re: [T5.1.0.5] Big issue with @Secure

2010-03-25 Thread Nicolas Bouillon

I've proposed a patch.
Please don't blame me, it's my first one for Tapestry ;-)

Nicolas Bouillon a écrit :

Done.
https://issues.apache.org/jira/browse/TAPESTRY-2763

I've enclosed a test project.

Howard Lewis Ship a écrit :

I think you are right; there is definitely some interference between
@Secure and your activation context. Please add an issue.

On Thu, Mar 25, 2010 at 11:50 AM, Nicolas Bouillon 
nico...@bouil.org wrote:
 

Hi,

I have a major (i'm close to putting my app in production) issue 
with the

@Secure.

I have a page with the following  onActivate :

   public void onActivate(String domainName, Integer domainId)

i have the corresponding on passivate

   public Object[] onPassivate() {
   return new Object[] { domainName, domainId };
   }

The parent class of my page is annoted with @Secure

When i get

httpS://localhost/myPage/bouil.org/42 everything is fine

when i get http://localhost/myPage/bouil.org/42 (non https),
I got a 302 redirected to
http://localhost/myPage/$N/$N

So the context is lost !

I'm running Tapestry 5.1.0.5

Any help will be greatly appreciated.

Nicolas.



-
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




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



No classdeffound org.apache.tapestry.components.Block

2010-03-25 Thread jaques robert
Hi, 

I'm trying the tutorial inside 
http://wiki.apache.org/tapestry/Tapestry5Training?action=AttachFiledo=viewtarget=Tapestry5TrainingFiles.zip.

However the exercise 14 about customizing Grid leads me to the following error :

java.lang.NoClassDefFoundErrorcom/repository/wizard/tapestry/pages/Mainjava.lang.ClassNotFoundExceptioncaught
 an exception while obtaining a class
 file for 
com.repository.wizard.tapestry.pages.Mainexceptionorg.apache.tapestry5.internal.services.TransformationException:
 javassist.NotFoundException: 
org.apache.tapestry.components.Blockorg.apache.tapestry5.internal.services.TransformationExceptionjavassist.NotFoundException:
 
org.apache.tapestry.components.Bloc

Does it mean that I miss a library somewhere ?

Regards,
Mondes_engloutis.



  

Re: No classdeffound org.apache.tapestry.components.Block

2010-03-25 Thread Thiago H. de Paula Figueiredo
On Thu, 25 Mar 2010 19:15:36 -0300, jaques robert  
mondes_englou...@yahoo.fr wrote:



Hi,


Hi!

java.lang.NoClassDefFoundErrorcom/repository/wizard/tapestry/pages/Mainjava.lang.ClassNotFoundExceptioncaught  
an exception while obtaining a class
 file for  
com.repository.wizard.tapestry.pages.Mainexceptionorg.apache.tapestry5.internal.services.TransformationException:
 javassist.NotFoundException:  
org.apache.tapestry.components.Blockorg.apache.tapestry5.internal.services.TransformationExceptionjavassist.NotFoundException:

org.apache.tapestry.components.Bloc


Please post the full stack trace.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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



Re : No classdeffound org.apache.tapestry.components.Block

2010-03-25 Thread jaques robert
Oups it was due to the fact that I still had the tapestry 3.0 jar in my global 
classpath of jboss :) Remove them and changing the import to the real T5 Block 
interface resolve it...

Regards,
Mondes_engloutis.

--- En date de : Jeu 25.3.10, jaques robert mondes_englou...@yahoo.fr a 
écrit :

De: jaques robert mondes_englou...@yahoo.fr
Objet: No classdeffound org.apache.tapestry.components.Block
À: users@tapestry.apache.org
Date: Jeudi 25 mars 2010, 23h15

Hi, 

I'm trying the tutorial inside 
http://wiki.apache.org/tapestry/Tapestry5Training?action=AttachFiledo=viewtarget=Tapestry5TrainingFiles.zip.

However the exercise 14 about customizing Grid leads me to the following error :

java.lang.NoClassDefFoundErrorcom/repository/wizard/tapestry/pages/Mainjava.lang.ClassNotFoundExceptioncaught
 an exception while obtaining a class
 file for 
com.repository.wizard.tapestry.pages.Mainexceptionorg.apache.tapestry5.internal.services.TransformationException:
 javassist.NotFoundException: 
org.apache.tapestry.components.Blockorg.apache.tapestry5.internal.services.TransformationExceptionjavassist.NotFoundException:
 
org.apache.tapestry.components.Bloc

Does it mean that I miss a library somewhere ?

Regards,
Mondes_engloutis.



      


  

Re: .jsp behaviour in tapestry 5 pages

2010-03-25 Thread Manuel Riegler
thx for your immediate response, but its still not clear for me how this 
works...


You can create the URL for this to pass to your SSO system.

where can I pass the URL which leads to the Twitter website for 
requesting authentication params?
would be enormous help if you could provide some short code snipped 
using the mentioned ComponentResources and ComponentEventCallback.
unfortunately I find nothing which could lighten my mind in the tapestry 
books I use (Tapestry 5, Igor Drobiazko)


Am 25.03.2010 19:16, schrieb Howard Lewis Ship:

What you are describing is a callback; using ComponentResources you
can generate a component event callback to a particular page, or
component within a page. You can create the URL for this to pass to
your SSO system. This is the same technique used in Ajax support to
allow the client to trigger server-side behaviors.

On Thu, Mar 25, 2010 at 11:10 AM, Manuel Riegler
s0710455...@students.fh-hagenberg.at  wrote:
   

hi everybody,

I am developing a webapplication using tapestry 5 and I try to implement
twitter single sign on (SSO with OAuth).
I already implemented that process in a former project with a .jsp. The .jsp
redirected to twitter, and twitter had the .jsp as callback, soo the .jsp
handled also the received parameters from twitter. so in the .jsp it wasn´t
a problem since the java code gets executed everytime the page (.jsp) is
called.

my question is, how can I provide this behaviour in tapestry? how is it
possible that a fragment of java code of a tapestry page is executed
everytime the pages gets called?
@SetupRender does that, but needs void or boolean as return type, since
I can not navigate to an other page from there. also onActivate() isnt a
solution, since it is invoked only once at page initialization and NOT when
a callback from external returns.

I hope someone can give me some hints!
big THANKS in advance,
best regards,
Manuel

-
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: .jsp behaviour in tapestry 5 pages

2010-03-25 Thread Igor Drobiazko
Hello Manuel,

this topic is covered in the book. Please read the pages 68 - 69. The
example is short but should give you an idea of how to trigger your own
events pragmatically.

On Fri, Mar 26, 2010 at 12:27 AM, Manuel Riegler 
manuel.rieg...@students.fh-hagenberg.at wrote:

 thx for your immediate response, but its still not clear for me how this
 works...


 You can create the URL for this to pass to your SSO system.

 where can I pass the URL which leads to the Twitter website for requesting
 authentication params?
 would be enormous help if you could provide some short code snipped using
 the mentioned ComponentResources and ComponentEventCallback.
 unfortunately I find nothing which could lighten my mind in the tapestry
 books I use (Tapestry 5, Igor Drobiazko)

 Am 25.03.2010 19:16, schrieb Howard Lewis Ship:

  What you are describing is a callback; using ComponentResources you
 can generate a component event callback to a particular page, or
 component within a page. You can create the URL for this to pass to
 your SSO system. This is the same technique used in Ajax support to
 allow the client to trigger server-side behaviors.

 On Thu, Mar 25, 2010 at 11:10 AM, Manuel Riegler
 s0710455...@students.fh-hagenberg.at  wrote:


 hi everybody,

 I am developing a webapplication using tapestry 5 and I try to implement
 twitter single sign on (SSO with OAuth).
 I already implemented that process in a former project with a .jsp. The
 .jsp
 redirected to twitter, and twitter had the .jsp as callback, soo the .jsp
 handled also the received parameters from twitter. so in the .jsp it
 wasn´t
 a problem since the java code gets executed everytime the page (.jsp) is
 called.

 my question is, how can I provide this behaviour in tapestry? how is it
 possible that a fragment of java code of a tapestry page is executed
 everytime the pages gets called?
 @SetupRender does that, but needs void or boolean as return type,
 since
 I can not navigate to an other page from there. also onActivate() isnt a
 solution, since it is invoked only once at page initialization and NOT
 when
 a callback from external returns.

 I hope someone can give me some hints!
 big THANKS in advance,
 best regards,
 Manuel

 -
 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




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de/blog