Re: Grid Sorting images changed - One of the approaches provided

2009-12-03 Thread sandeepraj singh
Hi Thiago, I agree to your point that changing css should be the ideal way to change images. The problem was that when we changed image through css, the position was to be decided for each column seperately. Hence as a temporary measure we have put this script which works fine sortImage : function

[Tapestry Central] Tapestry and Kaptcha

2009-12-03 Thread Howard
Another bit of interesting work I did, for another client, was to implement a CAPTCHA system. I chose the library Kaptcha and built services and components around it. If you follow the documentation for Katpcha, you'll see that you're supposed to configure it inside web.xml and add a servlet. That'

Linksubmit gets javascipt error T5.2.0-SNAPSHOT?

2009-12-03 Thread buckofive
Hi, The latest snapshot when using FF, generates a javascript error (and does not submit). specified in .tml as: --- Save The javascript error: --- this.form.select is not a function --- [Break on this error] if (this.form.select("input#" + ...is.element.id + "-hidden").length == --- 0)\n --

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Geoff Callender
Hi Steven, give this a try: Box.java: package myproject.model; public class Box { private String name = "noname"; public Box() { } public Box(String name) { this.name = name; } public String getName() { return na

Re: passing URL parameters

2009-12-03 Thread Andreas Andreou
Well, to answer the original question - after the quick commercial :) -, you generally want to let the framework generate the urls or the links for you... Check out ExternalLink [1] component and implement IExternalPage in your page [1] http://tapestry.apache.org/tapestry4.1/components/link/extern

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Josh Canfield
>> Pretty much like this >> >> >> >> >> but this is obviously wrong. Is there a way to do so ? > > This looks obviously right to me. :) What could be wrong about placing a > component inside a loop or a grid? For each iteration, a new instance be be > created. Component instances are cre

Re: passing URL parameters

2009-12-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Dec 2009 19:48:08 -0200, mpaniagua escreveu: Hello there! Hi! I'm a Tapestry beginner. I'm using Tapestry 4 If you're a beginner, why don't you use Tapestry 5.1? Unless you need to work in an existing Tapestry 4 project, there's no reason to use a past and harder to l

passing URL parameters

2009-12-03 Thread mpaniagua
Hello there! I'm a Tapestry beginner. I'm using Tapestry 4 and I need to build a url to pass some parameters, i.e. a costumer id, something like: http://localhost:8080/StockQuote/app?page=home/232 where 232 is a costumer id. Is there a listener or something to catch the reque

Re: Zone update effect in T5

2009-12-03 Thread Alfonso Quiroga
I use update="show" too, because if I clicked a lot for updating the zone, javascript got crazy and it just kept the zone yellow for ever, until I reload the page, bye On Thu, Dec 3, 2009 at 12:18 PM, Benny Law wrote: > Thanks Michael. I am using update="show" now and it works. > > Benny > > On T

Re: tapestry-jpa needs some advice

2009-12-03 Thread Piero Sartini
> �...@commitafter("unit1") > >  JPA already defines something like this does anyone have an opinion on using > @Inject vs. @PersistenceContext("unit1")? Hard to say, but I would prefer @Inject. I like to know that I am working with the tapestry stuff, not in the JavaEE context. Could be confusin

[Tapestry Central] TestNG and Selenium

2009-12-03 Thread Howard
I love working on client projects, because those help me really understand how Tapestry gets used, and the problems people are running in to. On site training is another good way to see where the theory meets (or misses) the reality. In any case, I'm working for a couple of clients right now for wh

Re: How to insert in a Grid

2009-12-03 Thread Howard Lewis Ship
Remember that the Grid can sometimes only take you so far; if you look at its implementation, you'll see that much of it is driven by reusable sub-components. I expect, in 5.2, to create an AbstractGrid that will be easier to subclass and extend. On Thu, Dec 3, 2009 at 3:44 AM, Thiago H. de Paula

Re: tapestry-jpa needs some advice

2009-12-03 Thread Pierce T. Wetter III
> This has come up recently; the simple idea is that the when injecting > a Hibernate Session and additional annotation may be present to > identify *which* session to inject. i.e. @CommitAfter("unit1") JPA already defines something like this does anyone have an opinion on using @Injec

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Ville Virtanen
Hi again, also forgot to mention great source to learn from: http://jumpstart.doublenegative.com.au:8080/jumpstart/ (http://jumpstart.doublenegative.com.au/home.html) - Ville Steven Tönsing wrote: > > Hi, > i'm completely new to tapestry and i got a very fundamental (for my > project) que

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Ville Virtanen
Hi, Don't loop your components, loop your data. If it is the name of the component that is your data, then loop over the names and give those as parameter to your boxes. Normally it would be orders or products or users or what not that are looped through. You don't have to give unique identifier

Re: [T5] IE 8+Stack Overflow At Line:0

2009-12-03 Thread ningdh
I can confirm that my page has 25 zones works fine in IE8, so I don't think it is a frameword problem. Maybe please show key code of your page, then others can help. DH - Original Message - From: "wesleywj2" To: Sent: Thursday, December 03, 2009 11:21 PM Subject: [T5] IE 8+Stack Over

[T5] IE 8+Stack Overflow At Line:0

2009-12-03 Thread wesleywj2
hi, I got this weird problem on 1 of the tml page of mine, it uses quite intensive amount of zone and updates. whenever i refresh the view, specifically only IE prompt this message out "Stack Overflow At Line:0" and i need to click the ok button several times to ge rid of it. googling around, it

Re: Zone update effect in T5

2009-12-03 Thread Benny Law
Thanks Michael. I am using update="show" now and it works. Benny On Thu, Dec 3, 2009 at 10:06 AM, Michael Gentry wrote: > I believe the first reply by Hugo works: > > > http://old.nabble.com/How-do-I-remove-the-yellow-fade-that-occurs-when-updating-the-Zone-component--tt23493373.html > > > On We

Re: Zone update effect in T5

2009-12-03 Thread Michael Gentry
I believe the first reply by Hugo works: http://old.nabble.com/How-do-I-remove-the-yellow-fade-that-occurs-when-updating-the-Zone-component--tt23493373.html On Wed, Dec 2, 2009 at 8:37 PM, Benny Law wrote: > Can someone show me how I can turn off the fading yellow effect when a zone > is update

Re: T5 returns garbage !?

2009-12-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Dec 2009 11:39:25 -0200, Jan Jirout escreveu: Hi, Hi! I had the same when I generate images. Images was created by class implementing org.apache.tapestry5.services.Dispatcher. I forgot to properly close output stream and it sometimes caused same error. Why haven't you used

Re: T5 returns garbage !?

2009-12-03 Thread Jan Jirout
Hi, I had the same when I generate images. Images was created by class implementing org.apache.tapestry5.services.Dispatcher. I forgot to properly close output stream and it sometimes caused same error. Jan Gunnar Eketrapp wrote: That did the trick! Super Thank You! /Gunnar 2009/12/3 nin

Re: T5 returns garbage !?

2009-12-03 Thread Gunnar Eketrapp
That did the trick! Super Thank You! /Gunnar 2009/12/3 ningdh > I got this issue in tomcat6+enable gzip option. > > But in tomcat5.5, even gzip was enabled, it worked fine. > > I suggest you disable the gzip option. > > DH > - Original Message - > From: "Gunnar Eketrapp" > To: "Tapestr

Re: T5 returns garbage !?

2009-12-03 Thread ningdh
I got this issue in tomcat6+enable gzip option. But in tomcat5.5, even gzip was enabled, it worked fine. I suggest you disable the gzip option. DH - Original Message - From: "Gunnar Eketrapp" To: "Tapestry users" Sent: Thursday, December 03, 2009 8:42 PM Subject: T5 returns garbage !?

T5 returns garbage !?

2009-12-03 Thread Gunnar Eketrapp
Hi! Sometimes our pages returns totally garbage. When reloading the page it usually works and the page is delivered fine. The T5 app runs inside a Tomcat 5.5 app server in a linux evironment. Has anyone else encountered the same problem? Thanks in advance, Gunnar Eketrapp ����=P���IUxj�=�

Re: Grid Sorting images changed - One of the approaches provided

2009-12-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Dec 2009 05:23:43 -0200, sandeepraj singh escreveu: Hi, Hi! We have a component MyGrid which has embedded Tapestry5 Grid component. We needed to change the sorting images with our own and had first applied the changes through css. However, it was giving problems of space cons

Re: How to insert in a Grid

2009-12-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Dec 2009 07:41:57 -0200, Christian Riedel escreveu: Rewriting the generated DOM sounds so easy but... How can I accomplish that? I'll copy here a slighlty modified mixin I've made that adds a select tag in each header column. It would be simplified if I used XPath, I guess. I

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Dec 2009 07:21:16 -0200, Steven Tönsing escreveu: Hi, Hi! So this is my sitiation : I'm using tapestry 5.1 and i have a collection of components (Boxes) which can be placed on a page (in a certain order) the only thing i whant to do now is to get this collection of componen

Re: How to insert in a Grid

2009-12-03 Thread Christian Riedel
Rewriting the generated DOM sounds so easy but... How can I accomplish that? I'm facing some problems with that approach... I tried to make that dummy-code working: .tml my footer First problem was to get a tag rendered around the block "foot" that I specified as a parameter f

collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Steven Tönsing
Hi, i'm completely new to tapestry and i got a very fundamental (for my project) question. So this is my sitiation : I'm using tapestry 5.1 and i have a collection of components (Boxes) which can be placed on a page (in a certain order) the only thing i whant to do now is to get this colle