Re: Need to tabulate something inside a select

2007-09-21 Thread Andreas Andreou
Create your own IOptionRenderer that uses printRaw to output the values See https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/DefaultOptionRenderer.java On 9/21/07, manugarciac <[EMAIL PROTECTED]> wrote: > > > I have a big select wi

Re: OGNL Methode called several times

2007-09-21 Thread Gusti Benawi
Thanks for the info. Could you tell me if there is anything I can do to temporary fix this until it is removed in a newer release? Thanks in advanced, Gusti Benawi Andreas Andreou wrote: No, it's ognl related - perhaps measuring performance or something like that... Jesse knows ;) On 9/20

[T5] How to replace a service that is used by Automatic Dependency Resolution

2007-09-21 Thread Josh Canfield
> > Service interface org.apache.tapestry.services.Environment is matched by 2 > services: Environment, MyEnvironment. Automatic dependency resolution > requires that exactly one service implement the interface. > It appears that I can't Alias Environment with my own implementation because I can'

Re: [T5] Page with same name as package

2007-09-21 Thread patrick whalen
Ugh. Nevermind. Apparently I was excluding the final '/' in the URL. This apparently caused the 404 error. I've tested it a few times now, and that was the problem. Perhaps in the future Tapestry will automatically insert a missing '/' at the end for sloppy folks like myself. Sorry for the clu

Re: [T5] more tutorials or sample projects?

2007-09-21 Thread Robert A. Decker
Ok, so I checked out the tapestry trunk with subversion, then cd'd into the directory and ran 'mvn install'. It seems to be stuck on the "Running Integration Tests" step (after opening a browser with the link http://localhost:/selenium-server/core/SeleneseRunner.html? sessionId=119041845

Re: [T5] Page with same name as package

2007-09-21 Thread patrick whalen
Strangely, this only works if there's another class in the same package, and you visit that page first. If you don't visit that page first, you get a 404 error. If you do, it works. After that, you can delete that other class and it will continue to work, even if you restart the application. To s

Re: [T5] Page with same name as package

2007-09-21 Thread patrick whalen
I see now that it does work to put a class of the same name as the package, inside the package. The redundant name is then filtered out. Chris Lewis-5 wrote: > > Check out: > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html > > Specifically the section on "Sub

Request Parameters

2007-09-21 Thread mogulwraith
>From Javascript I try to build a link something like: var link = "${requestlink}" + "?firstparam=" + paramA + "&secondparam=" + paramB; But when this gets back to the server the only parameter available with request.getParameter is the first one. How can I accomplish this? -- View this messag

Re: [T5] Page with same name as package

2007-09-21 Thread patrick whalen
Right in front of my nose. I practically stole my example right out of the chapter. Any insight though into the main part of my question where I am trying to create a page that has the same name as a package? It doesn't seem as though the optimizations described in that chapter should have an ef

Need to tabulate something inside a select

2007-09-21 Thread manugarciac
I have a big select with several elements. I'm showing them in the select with this method: public String getIndentedDescription(){ String indentation = ""; for(int i=0; ihttp://www.nabble.com/Need-to-tabulate-something-inside-a-select-tf4497817.html#a12827

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Fernando Padilla
T5 Does have Coercion, which are like the old DataSqueezers: http://tapestry.apache.org/tapestry5/tapestry-core/guide/coercion.html But the key thing is that it uses the "/" dir separator as the parameter separator; I don't think it support natively having one parameter take up multiple path pa

Re: [T5] Page with same name as package

2007-09-21 Thread Chris Lewis
Check out: http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html Specifically the section on "Sub-folders / Sub-packages." This deals exactly with your situation. With your example: One other behavior that seems related is that if I have the following page class (and

[T5] Page with same name as package

2007-09-21 Thread i_hate_screen_names
Is there a way to create a page/class that has the same name as the package it's in? It would be similar behavior to the way placing an index.html file in a directory served by Apache will let you access that file via the name of the directory, excluding 'index.html' in the URL. For example, in:

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Christian Gorbach
I'm also interested in pluggable rewrite strategies. I did some tests with http://tuckey.org/urlrewrite/ some weeks ago. One of the problems was that tap5 if not a servlet, but a catch-all filter. The filter chaining didn't work for me. Anybody ? c)hristian Britske wrote: > > Thanks these al

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Britske
Thanks these all seem valid approaches. What i'm looking for is a stretching the possibilities i guess but here it goes anyway: I want a way in which I can plug a 'rewrite strategy'. This means that not only I have to translate urls from 'nice' to 'tapestry5' -internal but also the other way aro

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Robin Helgelin
On 9/21/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > I went down this path and decided that mod_rewrite is a much cleaner way to > achieve something like this. Or maybe an urlfilter bundled with your war, there are a few usable ones. -- regards, Robin -

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Daniel Leffel
I went down this path and decided that mod_rewrite is a much cleaner way to achieve something like this. On 9/21/07, Britske <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I'm looking for a way to have flexible / nice urls when using tapestry5. > I know that with tapestry 5, supplied parameters are

Re: T 4.1.2 Autocompleter

2007-09-21 Thread Frank
Hi Marcus, Yes the getter is public. 2007/9/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > nope, is your getter public? > > > -Original Message- > > From: Frank [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 20, 2007 10:19 PM > > To: Tapestry users > > Subject: T 4.1.2 Autocompl

url-rewriting in Tapestry 5

2007-09-21 Thread Britske
Hi all, I'm looking for a way to have flexible / nice urls when using tapestry5. I know that with tapestry 5, supplied parameters are appended to the path instead of to the querystring, but i'm looking for a bit more control. For example I want a Venue bean with name venueX and id=123 to show

Tapestry page not get translated into normal html

2007-09-21 Thread Ritesh.S
Hello everyone, I am new to Tapestry. I integrated Tapestry 5 with spring by adding following configurations into web.xml file. tapestry.app-package net.project.resources

Re: T5: nested loop

2007-09-21 Thread Angelo Chen
got it, thanks. Nick Westgate wrote: > > Uh, add a Java accessor which multiplies them? > Really this is totally up to your domain model. > > Cheers, > Nick. > > -- View this message in context: http://www.nabble.com/T5%3A-nested-loop-tf4492636.html#a12814643 Sent from the Tapestry - User

Re: T5: nested loop

2007-09-21 Thread Nick Westgate
Uh, add a Java accessor which multiplies them? Really this is totally up to your domain model. Cheers, Nick. Angelo Chen wrote: Hi Robin, if I do that, then I'll have : now, how to uses these two values to access the element of List of size 12? Robin Helgelin wrote: On 9/21

Re: T5: nested loop

2007-09-21 Thread Angelo Chen
Hi Robin, if I do that, then I'll have : now, how to uses these two values to access the element of List of size 12? Robin Helgelin wrote: > > On 9/21/07, Angelo Chen <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I have a nested loop to create a table, the data displayed is from a Li

Re: T5: nested loop

2007-09-21 Thread Robin Helgelin
On 9/21/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > I have a nested loop to create a table, the data displayed is from a List of > 12 elements: > > > > > > element of List to be displayed here > > > > > > Since th

Re: T5 NullPointerException during Form submitting

2007-09-21 Thread Janko Muzykant
if anyone is interested why the problem arises, here is some explanation: http://jroller.com/agrebnev/entry/how_do_not_lose_data in short, the problem is acegi itself. it does not restore POST data after re-authentication. anyway, it would be nice to have such a case validated inside tapestry :)

T5: nested loop

2007-09-21 Thread Angelo Chen
Hi, I have a nested loop to create a table, the data displayed is from a List of 12 elements: element of List to be displayed here Since the List is not directly specified as source, I can't use value to access its curr

Re: [T5] more tutorials or sample projects?

2007-09-21 Thread Davor Hrg
you can run "mvn install" from downloaded tapestry source and use 5.0.6-SNAPSHOT in your pom On 9/21/07, Francois Armand <[EMAIL PROTECTED]> wrote: > > Robert A. Decker wrote: > > [...] > > It looks like those annotation classes exist in the latest version > > (the svn export) but not in version 5

RE: T 4.1.2 Autocompleter

2007-09-21 Thread Marcus.Schulte
nope, is your getter public? > -Original Message- > From: Frank [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 20, 2007 10:19 PM > To: Tapestry users > Subject: T 4.1.2 Autocompleter > > Hi, > > This is driving me crazy ;-) I just can't figure out why I > get a Unknown property

Re: t5: ActionLink-ing to a different page.

2007-09-21 Thread Nick Westgate
To be more precise Francois is suggesting you use PageLinks with a context and handle the "actions" in the destination page onActivate. If that really doesn't fit your use case I suppose another avenue to explore would be to expose the pages' resources: (This could go in a base class.) @Inje

Re: Antwort: [T5] how to read the value of a component parameter within a mixin

2007-09-21 Thread Kristian Marinkovic
hi nick, i've logged this case asTAPESTRY-1764 as a major improvement. i hope it will be considered soon :) g, kris Nick Westgate <[EMAIL PROTECTED]> 20.09.2007 18:27 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Re: Antwort: [T5] how to read the value of a component