Re: t5: forwarding in index

2009-04-16 Thread Peter Stavrinides
>I was quite disappointed as this issue was closed so quickly Yes, its a pity, the two types of redirects are distinctly different and equally important. RequestDipsatcher.forward() is the preferred redirection approach for many banking sites / payment gateways etc because redirection is perform

Re: t5: forwarding in index

2009-04-16 Thread Massimo Lusetti
On Thu, Apr 16, 2009 at 9:58 AM, Peter Stavrinides wrote: > I hope Howard will reconsider. You could look at the archives and look for something like "server side redirect/forward" where Howard say to fire a Jira issue to have this feature, he also hypothesize the name of the API. Regards -- M

Re: t5: forwarding in index

2009-04-16 Thread martijn.list
no I do not have any information, sadly. I had to ditch the concept of having tapestry form together with tapestry-spring-security. Perhaps I misunderstand what you are trying to do but I do have a Tapestry form that uses Spring security to authenticate the user. My form looks like: Nam

T5: Customizing validation messages

2009-04-16 Thread Inge Solvoll
Hi! In our existing app, we always used the following pattern for the standard validation messages: validation.message.required = The field {0} is required. Please enter a value and try again. validation.message.date = You need to enter a valid date in the {0} field. You probably get the pattern

Get Value from For-loop

2009-04-16 Thread Fevzi Yuekseldi
Hi all. I have a for loop(Tapestry 4.1.1) in a component and now i want to implement something like AJAX. The for-loop has a article-number(Textfield), description(Insert), and a price(Insert) 5 times... At the beginning all the fields are empty. I set a method in the component-class with a @Ev

Re: @Inject @Symbol doesn't appear to work in pages?

2009-04-16 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 16, 2009 at 1:31 AM, daniel joyce wrote: > This doesn't seem to work in a page model file > >   �...@inject >   �...@symbol(value=SymbolConstants.PRODUCTION_MODE) >    private Boolean productionMode; > I get a nullpointerexception when I try and use it. Try boolean instead of Boolean.

Re: message that i do not understand

2009-04-16 Thread Jorge Saridis
Howard, I use chenillekit and equanda. At the bottom of the js script generated by tapestry, I found this: Tapestry.init({"validate":[["descripcionAperturaExportacion",[["string","[[missing key: string-format-exception]]"],["required","Debe ingresar la descripción adicional"]]],["talle",[["requi

How to pass multiple parameters to the next page

2009-04-16 Thread Anton Marchenkov
Hello! What is the best way to pass multiple parameters to the next page on OnSubmit event in Tapestry 5.1? -- Best Regards, Anton Marchenkov. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional co

Re: How to pass multiple parameters to the next page

2009-04-16 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 16, 2009 at 11:04 AM, Anton Marchenkov wrote: > Hello! > > What is the best way to pass multiple parameters to the next page on > OnSubmit event in Tapestry 5.1? One way to do it: class Page1 { @InjectPage private Page2 page2; public Object onSubmit() { page2.setP

Re: How to pass multiple parameters to the next page

2009-04-16 Thread Peter Stavrinides
There is no best way, but you have a few of options: You can simply return a link object: @Inject private ComponentResources _resources; private Class _callback; private Object[] _context; Object onSuccess() { Link link = _resources.createPageLink(_callback, true, _context); return link; } O

How to prevent formatting of HTML comments?

2009-04-16 Thread Borut Bolčina
Hi, maybe this will sound very obscure, but if I write a html comment in a tml file, for example: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> the rendered HTML is: Notice the space before F and space after R. Some external software is checking for presence of and is

Re: How to prevent formatting of HTML comments?

2009-04-16 Thread Howard Lewis Ship
Use the OutputRaw component? On Thu, Apr 16, 2009 at 8:03 AM, Borut Bolčina wrote: > Hi, > > maybe this will sound very obscure, but if I write a html comment in a > tml file, for example: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >         > > > the rendered HTML is: > > > >

Re: How to pass multiple parameters to the next page

2009-04-16 Thread Howard Lewis Ship
Peter; Thiago has the right solution; inject the target page, configure it and return it. Thiago's approach was to store the data inside persistent fields, using the flash strategy. I would tend, instead, to use a page activation context; like any event context, it allows multiple values, return

Re: How to pass multiple parameters to the next page

2009-04-16 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 16, 2009 at 12:32 PM, Howard Lewis Ship wrote: > I would tend, instead, to use a page activation context; like any > event context, it allows multiple values, returned as an array or > list. I didn't suggest that because he wanted to pass the parameters at a form submission. Anyway, m

Re: How to pass multiple parameters to the next page

2009-04-16 Thread Peter Stavrinides
>Thiago has the right solution; inject the target page, configure it > and return it. I use both, but if you maintain that is the best way then I can't argue the contrary... nevertheless, flash persistence has its failings, I prefer using the onActivate and onPassivate patten which is more reliab

maven jetty:run problems

2009-04-16 Thread Andy Pahne
Has anybody ever seen this? After making a maven multi module project from a few seperate modules, I cannot start my apps anymore with mvn jetty:run. Everything else (initializing a spring context from a filter defined in web.xml or locating classes from our business object packages) works

Re: @CommitAfter

2009-04-16 Thread Christian Köberl
Whats the best way to manually acquire and manage a session/transaction in tapestry? You can inject HibernateSessionManager (see http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/hibernate/HibernateSessionManager.html) -- View this message in context: http://n2.nabble.com/%40

Re: @Inject @Symbol doesn't appear to work in pages?

2009-04-16 Thread Borut Bolčina
Hi, I am doing this and it works: @Inject @Symbol(SymbolConstants.PRODUCTION_MODE) private boolean productionMode; -Borut 2009/4/16 daniel joyce : > This doesn't seem to work in a page model file > >   �...@inject >   �...@symbol(value=SymbolConstants.PRODUCTION_MODE) >    private Boole

Re: @Inject @Symbol doesn't appear to work in pages?

2009-04-16 Thread daniel joyce
http://tapestry.formos.com/nightly/tapestry5/guide/lifecycle.html has The annotations / method names are: * PageLoaded annotation, or method name "pageLoaded" * PageAttached annotation, or method name "pageAttached" * PageDetached annotation, or method name "pageDetached" I'll try y

Re: @Inject @Symbol doesn't appear to work in pages?

2009-04-16 Thread Howard Lewis Ship
Seems to me it should work for boolean or Boolean. I'm not sure why it doesn't. On Thu, Apr 16, 2009 at 5:35 AM, Thiago H. de Paula Figueiredo wrote: > On Thu, Apr 16, 2009 at 1:31 AM, daniel joyce > wrote: >> This doesn't seem to work in a page model file >> >>   �...@inject >>   �...@symbol(v

Re: message that i do not understand

2009-04-16 Thread leechj
Jorge, We ran into this exact same problem. For us, we would get this error at random upon deployment. Sometimes when we would deploy, this error would occur. On other times we wouldn't experience this error at all. Today we realized that we weren't actually using anything from Equanda and took i

Re: How to prevent formatting of HTML comments?

2009-04-16 Thread Borut Bolčina
Hi, funny thing. This gives me org.xml.sax.SAXParseException The value of attribute "value" associated with an element type "t:OutputRaw" must not contain the '<' character. while renders ok as So, character > is permited, while < is not??? Of course works as well. I am using 5.0.18

Re: maven jetty:run problems

2009-04-16 Thread Borut Bolčina
Hi, try mvn clean install from the parent project and the mvn jetty:run from the child war project, but then again seeing your POMs would help. -Borut 2009/4/16 Andy Pahne : > > Has anybody ever seen this? > > After making a maven multi module project from a few seperate modules, I > cannot star

Re: Java support added to Google AppEngine

2009-04-16 Thread Christian Köberl
I grepped over the tapestry-core sources for "javax.xml.stream" and only found them imported in TemplateParser and StaxTemplateParser. Would it then be sufficient to just contribute another TemplateParser which isn't using Woodstox (maybe the one from 5.0.1.8)? I just tried to eliminate Woodsto

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-16 Thread akira
Hi, Jun, Have you tested the site on Safari, Mac OS X? In safari 4, your index page flash div is pushing other elements out of place. Other than that, is very responsive. http://www.1king1.com From China. using Tapestry5.0. -- regards, Jun Tsai Wilson

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-16 Thread Borut Bolčina
Hi, today we are launching an OpenID provider. Currently we have 150K unique visitors/day and gradually we expect "some of them" to register an account on T5 id server. The functionality will be somehow similar to myopenid.com but augmented with facebook connect principle of authentication. I wil

Tapestry 4.1 long sql execution causes tapestry engine ints

2009-04-16 Thread Bogdan Stojkovic
Hi all, I have small problem, if anyone can help I'm using tapestry 4.1, in one page I have link in witch I go to DB, execute sql and this result set is displayed in table. This sql execution takes >10sec. If in that time I click on link again -> tapestry engine init is happend, but old sql

Re: Tapestry 4.1 long sql execution causes tapestry engine ints

2009-04-16 Thread Howard Lewis Ship
That's going to be a challenge; have you thought about addressing this either at the database end (optimize your database, indexes, etc.) or at the client end (javascript to prevent re-submits)? On Thu, Apr 16, 2009 at 2:35 PM, Bogdan Stojkovic wrote: > Hi all, > > I have small problem, if anyone

Re: How to prevent formatting of HTML comments?

2009-04-16 Thread Howard Lewis Ship
Another option is to put the FOOBAR into your .properties file: ... or write a single-line component: public class Cout { @Parameter(...) private String value; boolean beginRender(MarkupWriter writer) { writer.writeRaw(""); return false; } } On Thu, Apr 16, 2009 at 12:37 PM,

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-16 Thread Jun Tsai
sorry,I had test on IE and firefox.I will fix the bug.thanks. 2009/4/17 akira > Hi, Jun, Have you tested the site on Safari, Mac OS X? In safari 4, your > index page flash div is pushing other elements out of place. > Other than that, is very responsive. > > >http://www.1king1.com > >

Re: Java support added to Google AppEngine

2009-04-16 Thread Alex Kotchnev
I'm not sure about everyone else, but for me this is a BIG issue and is one of the reasons holding me back from moving my app to the 5.1 beta. Most likely I'll hold off on upgrading to 5.1 final if it doesn't support GAE. Howard was asking earlier about any showstoppers preventing 5.1 from moving

Re: Java support added to Google AppEngine

2009-04-16 Thread Thiago H. de Paula Figueiredo
Em Fri, 17 Apr 2009 00:42:45 -0300, Alex Kotchnev escreveu: I'm not sure about everyone else, but for me this is a BIG issue and is one of the reasons holding me back from moving my app to the 5.1 beta. Most likely I'll hold off on upgrading to 5.1 final if it doesn't support GAE. The funny

Re: Java support added to Google AppEngine

2009-04-16 Thread Christian Edward Gruber
Well, I did, but I wasn't allowed to say anything. ;p Christian. On 16-Apr-09, at 23:58 , Thiago H. de Paula Figueiredo wrote: Em Fri, 17 Apr 2009 00:42:45 -0300, Alex Kotchnev escreveu: I'm not sure about everyone else, but for me this is a BIG issue and is one of the reasons holding me

Order of rendering of page versus components in page?

2009-04-16 Thread daniel joyce
I have a datagrid that is embedded in a page. Its datasource is built by a method in the page, and the grid component references it through a property that calls that method. It seems that method is getting called before the page's OnActivate is ever called, and the data needed to initialize that