Re: Activation Context of the Login page

2009-07-21 Thread P . Stavrinides
> Are you sure that this is necessary? Yes, if i understand what you are trying to do, a "rule of thumb" is to make the contents of onPassivate mirror onActivate... read the docs, Quote: "We can improve the previous example ... using a passivation and activation context to avoid the session and

Re: Activation Context of the Login page

2009-07-21 Thread Stephan Windmüller
p.stavrini...@albourne.com schrieb: >> Are you sure that this is necessary? > Yes, if i understand what you are trying to do, a "rule of thumb" is > to make the contents of onPassivate mirror onActivate... read the > docs, Quote: "We can improve the previous example ... using a > passivation and

How to create a Layout and have multiple insertion points.

2009-07-21 Thread marcanti
On the tapestry documentation about Layouts, it is stated that the only insertion point in the Layout template is at the . How can I have mulitple insertion points, something like "include" functionality in jsf? -- View this message in context: http://www.nabble.com/How-to-create-a-Layout-and-ha

Re: Activation Context of the Login page

2009-07-21 Thread Peter Stavrinides
Post the stack trace. - Original Message - From: "Stephan Windmüller" To: "Tapestry users" Sent: Tuesday, 21 July, 2009 11:17:29 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Activation Context of the Login page p.stavrini...@albourne.com schrieb: >> Are you sure that t

RE: How to create a Layout and have multiple insertion points.

2009-07-21 Thread De Saint Steban Emmanuel
By creating parameters and give block // here principal content In your layout, you will print it like a variable ${sidebarleft} (using get and set in the .java file) -Message d'origine- De : marcanti [mailto:mario_luis_go...@yahoo.com] Envoyé : mardi 21 juillet 2009 11:02 À : user

Re: How to create a Layout and have multiple insertion points.

2009-07-21 Thread Juan E. Maya
The base tapestry project created by the maven archetype uses parameter and a block as Emmanuel told you. u may take a look at it if u still need an example. On Tue, Jul 21, 2009 at 11:27 AM, De Saint Steban Emmanuel wrote: > By creating parameters and give block > > > // here principal content >

Anyone using Java Rebel and T5?

2009-07-21 Thread Alfie Kirkpatrick
Hi, have recently installed the trial of Java Rebel and wondered if anyone else has been using it and found issues, etc. So far it seems to be reloading my services no problem which is a big win now that I'm so used to having this ability for page/component classes. But have not really used it

Re: t5: moving to 5.1.0.5 and can't find @Inject

2009-07-21 Thread Sergey Didenko
Thanks for the link! I used findjar.com to resolve dependencies manually. On Thu, Jul 16, 2009 at 3:45 PM, Joakim Olsson wrote: > Hi, > > I would recommend you (and anyone else looking for classes) to take a > look at http://www.jarvana.com > > http://www.jarvana.com/jarvana/search?search_type=cl

Re: Tapestry-Spring Security & Page Testing

2009-07-21 Thread Sergey Didenko
What a beautiful solution! Thanks, Paul. On Fri, Jul 17, 2009 at 4:43 PM, Paul Field wrote: > I have an IOC module TestInfrastructureModule that is included only in my > tests. It contains this contribution: > - To unsubscribe,

Making the outside loop value available to the inside loop?

2009-07-21 Thread cajmrn
Hi Guys, Me again with another question :). I have the following setup an outer loop construct and an Inner loop. I want the outer loop to generate the table header of the each table that is generated. This is coming from the keyset() of a hashmap. The inner loop should contain an arraylist, com

Re: T5 Page field persistance and multithread problems

2009-07-21 Thread Sergey Didenko
I think that can be done on a framework level with optional parameter or annotation such as: @Persist("lazy-thread-safe-session") that locks in the beginning of the request and unlocks in the end. However I don't think it's a priority feature. As for me it's enough to just put reminder to "Pers

Re: Making the outside loop value available to the inside loop?

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 09:13:28 -0300, cajmrn escreveu: How is the outerloop value made available to the inner loop? and passed to the inner get function? Your template looks like it should work as is. You don't need to pass values from one component to the other. Just make sure the outer loop

T5.1.0.5: StackMapTable format error

2009-07-21 Thread Newham, Cameron
Hi, I'm still trying to move to 5.1.0.5 but have had to fight quite a few fires. I've finally wrestled it into getting my app up, but have now hit a brick wall. My Index page comes up fine when running my app from Jetty in Eclipse. However, as soon as I attempt to log in and Tapestry tries

Re: How to create a Layout and have multiple insertion points.

2009-07-21 Thread marcanti
Thanks for the tip. Why is this not documented in the tapestry website? I must say that the lack of documentation for Tapesty 5 makes it hard to start using it. Hope it gets better otherwise I guess many developers will chose another web framework... Juan E. Maya wrote: > > The base tapestry p

Re: Making the outside loop value available to the inside loop?

2009-07-21 Thread cajmrn
Thanks for your response Thiago. This is my java code for that page. public class Contact { @SessionState private jiraDataSource jDO; private HashMap > issuesList; private Collection> issuesSet; private Collection issueKeys;

Re: T5.1.0.5: StackMapTable format error

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 10:18:21 -0300, Newham, Cameron escreveu: Hi, Hi! My Index page comes up fine when running my app from Jetty in Eclipse. However, as soon as I attempt to log in and Tapestry tries to go to the app "home" page I get a StackMapTable format error. Typically, strange err

Re: Making the outside loop value available to the inside loop?

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 10:24:42 -0300, cajmrn escreveu: Thanks for your response Thiago. You're welcome! Two issues: What exactly is not working? Your description is quite vague. Instead of using OGNL, use Tapestry's prop binding. It will be much easier to debug than when you put logic in you

Re: T 5.1 Error building service proxy for service 'ServletApplicationInitializer'

2009-07-21 Thread Ritesh_121
Hello Howard, Thanks for your reply. :-) Actually there are no old Tapestry 5.0.18 jars in the application and no dependencies as well. While debugging the source to find the cause, I found the problem in ModuleImpl.java where it was giving null Proxy object for one of the spring services defin

Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-21 Thread Stephan Windmüller
Hello! On a page I want the user to create a new task and add users to it. The list of users should be extended with a button "Add another user" and is displayed through a loop component. | | | | | | | | | | | | | | | | To realize this I annotated the task and the list of use

Dynamic templates

2009-07-21 Thread Kai Weber
Hello Tapestriers: I have a template.tml with should look something like this http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${content} ${content} should be filled from properties/file/database whatever. My problem: it can contain links to other pages in my application. In the e

Re: Activation Context of the Login page

2009-07-21 Thread Stephan Windmüller
Peter Stavrinides schrieb: > Post the stack trace. While provoking a stack trace I found the solution. The URL was not correct, so I am building it from the request object now. The hint was in the link you gave me, which stated that I can use URL objects. Thank you! What remains is the problem o

Re: Making the outside loop value available to the inside loop?

2009-07-21 Thread cajmrn
Hi Thiago, Forgive the vagueness of my questions, its a bit difficult to bring across what im trying to do without overstating the issues plus I've probably got too many projects running concurrently :). the code I had pasted does not display the issue objects in the arraylist that is returned

Re: Dynamic templates

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 13:32:05 -0300, Kai Weber escreveu: Hello Tapestriers: Hi! ${content} should be filled from properties/file/database whatever. My problem: it can contain links to other pages in my application. I would use a template engine like Velocity or Freemarker (better choice

Re: Dynamic templates

2009-07-21 Thread Juan E. Maya
If u want to explore the template alternative proposed by Thiago Chenillkit has a module that provides freemarker and velocity services. http://www.chenillekit.org/chenillekit-template/index.html On Tue, Jul 21, 2009 at 7:01 PM, Thiago H. de Paula Figueiredo wrote: > Em Tue, 21 Jul 2009 13:32:05

Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Franz Amador
Our Tapestry5/Dojo web app works just fine everywhere except on one customer's laptop. There he gets this error: Return type org.apache.tapestry5.json.JSONObject can not be handled. Configured return types are java.lang.Class, java.lang.String, java.net.URL, org.apache.tapestry5.Link, org.apach

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Howard Lewis Ship
Is JavaScript disabled for that client's laptop? On Tue, Jul 21, 2009 at 10:55 AM, Franz Amador wrote: > > Our Tapestry5/Dojo web app works just fine everywhere except on one > customer's laptop.  There he gets this error: > > Return type org.apache.tapestry5.json.JSONObject can not be handled. >

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Howard Lewis Ship
To expand: that error is associated with an event handler method returning a value (JSONObject) that is appropriate for an Ajax response, but doing so during a traditional (i.e., non-Ajax) request. So for some reason, either it was a traditional request, or something on the browser side prevented T

[T5] Problems with commitAfter

2009-07-21 Thread jose luis sanchez
Hello all. I'm experiencing weird problems with the @CommitAfter tag ... Have a hibernate schema, a configuration, and everything ok ( it runs , checked ), now, the only WAY of getting a data to be persisted into database is using a transaction, like this @OnEvent(component="addCustomer",

Re: [T5] Problems with commitAfter

2009-07-21 Thread Juan E. Maya
Hi Jose, did u remember configure the HibernateTransactionAdviser as described at the bottom of: http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html ? On Tue, Jul 21, 2009 at 9:13 PM, jose luis sanchez wrote: > Hello all. > > I'm experiencing weird problems with the @CommitAft

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 00:02:20 -0300, Daniel Jones escreveu: I don't understand why I should have to configure this. I have another tapestry 5.0.18 application which does not have this behaviour. Maybe this was introduced by the asset versioning added in 5.1.0.x. It surely looks like a ser

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-21 Thread Daniel Jones
Hi Thiago, Yes this doesn't seem right to me. Are you seeing the same problem? Regards, Daniel Thiago H. de Paula Figueiredo wrote: > > Em Tue, 21 Jul 2009 00:02:20 -0300, Daniel Jones > escreveu: > >> I don't understand why I should have to configure this. I have another >> tapestry 5.

Re: again on webservices

2009-07-21 Thread Thibaut Gadiolet
Hi folks, I was browsing nabble looking for something about Axis2 integration when I found this topic. So here is my question: I have a web application based on Tapestry/Hibernate/Spring built by Maven. My boss asked me to create a new Java Class and make it a Web Service. So Andrea, how did you

Re: [T5] Problems with commitAfter

2009-07-21 Thread Howard Lewis Ship
On Tue, Jul 21, 2009 at 12:19 PM, Juan E. Maya wrote: > Hi Jose, > > did u remember configure the HibernateTransactionAdviser as described > at the bottom of: > http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html The advisor is only necessary when using @CommitAfter with your ow

Re: [T5] Problems with commitAfter

2009-07-21 Thread Juan E. Maya
Ups...Sorry Jose i didn't notice u were using the @CommitAfter inside ur components. On Tue, Jul 21, 2009 at 10:55 PM, Howard Lewis Ship wrote: > On Tue, Jul 21, 2009 at 12:19 PM, Juan E. Maya wrote: >> Hi Jose, >> >> did u remember configure the HibernateTransactionAdviser as described >> at the

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-21 Thread Julian Wood
We're seeing the same problem - in 5.0.18 as well. One solution: private static final HashSet protectedAssets = new HashSet(Arrays.asList("class", "tml", "properties", "sql", "xml")); public void contributeHttpServletRequestHandler (OrderedConfiguration configuration)