Re: page render without

2010-05-25 Thread Paul Stanton
solution from stackoverflow: public class MyPage { @Inject private Response response void onActivate() throws IOException { PrintWriter writer = response.getPrintWriter("text/html"); writer.append("foobar"); writer.close(); } } this makes the page behave more like a servlet, but within

Re: [T5] debugging in eclipse

2010-05-25 Thread Dmitry Gusev
I noticed that also, thats make debugging a hard process. May be during transformation in non-production mode T5 should assign value to corresponding field also, not just to conduit? Its not good to declare realXXX fields in a class while original field not used. On Wed, May 26, 2010 at 06:08, Th

Re: page render without

2010-05-25 Thread Paul Stanton
If that is impossible, is it possible to expose the tapestry Ioc to a servlet in the same app? Paul Stanton wrote: Hi All, I've been looking but can't find the the documentation: Is there a way to have a page render a response without the wrapping HTML elements and just print whatever is pro

page render without

2010-05-25 Thread Paul Stanton
Hi All, I've been looking but can't find the the documentation: Is there a way to have a page render a response without the wrapping HTML elements and just print whatever is provided in the body of the tml or alternatively whatever is set in MarkupWriter.write during @BeginRender? I need a p

Re: [T5] debugging in eclipse

2010-05-25 Thread Thiago H. de Paula Figueiredo
On Tue, 25 May 2010 20:28:44 -0300, Dariusz Majewski wrote: Hi All, Hi! @Parameter(value="120") private int maxWidth; Now my problem is that when I debug onMyCustomEvent method I can't see the real value of maxWidth parameter. That's Tapestry doing it heavy wizardry: when it

[T5] debugging in eclipse

2010-05-25 Thread Dariusz Majewski
Hi All, I'm having problems debugging my tapestry application. I'm using Eclipse 3.5.0 and tapestry 5.2-SNAPSHOT. I have a custom component with parameter @Parameter(value="120") private int maxWidth; which is then set during my component invocation inside page now I have a ev

Re: Multiple browser windows handling with sessions

2010-05-25 Thread Geoff Callender
Do they use javascript to detect they are in a freshly created window? Do windows natively have an id that can be used in the conversation id? JumpStart's wizard solution lets you open more than one window and run a wizard in each window - it is the act of entering the wizard that starts a uniqu

Re: [ANN] JumpStart 4.9 released

2010-05-25 Thread françois facon
Hi Geoff, it work's fine on my eclipse 3.5.1 Cocoa. Thanks

Re: Multiple browser windows handling with sessions

2010-05-25 Thread Kalle Korhonen
Regarding Tynamo's conversations, that's technically correct but the driving principle is "many small conversations rather than one big one". For a shopping cart, I'd certainly argue that to implement it properly, the state of a shopping cart needs to be stored in a database. Of course, the right c

Re: T5: ProgressiveDisplay - Possibly not reloading properly on Safari when user uses browser 'Back' Button

2010-05-25 Thread Howard Lewis Ship
It can be hard to say; too often, the browser is doing something clever for you (the way it often fills in user name and password fields for you). Doing a hard refresh (cmd-R) usually clarifies whether the problem is the browser or Tapestry. On Tue, May 25, 2010 at 6:55 AM, Chris Darlaston wrote:

Re: Multiple browser windows handling with sessions

2010-05-25 Thread Matheus Eduardo Machado Moreira
Moritz, some time ago I read a bit about JBoss Seam and I think it solves the "session per window" problem. Maybe the solution could be adapted to be used by Tapestry applications. Sincerely, Matheus Eduardo Machado Moreira matheus@gmail.com "Violence is the last refuge of the inco

session.persist saves object with id 0

2010-05-25 Thread Genís Pujol
Hello, After checking the tutorial I was trying to do a basic crud app, but somehow after submiting the form (beaneditform) the new object is saved into the database with id 0. I'm also new to hibernate so I don't know why in the tapestry tutorial is enough with session.persist(object), wha

Re: Multiple browser windows handling with sessions

2010-05-25 Thread Geoff Callender
Tynamo favours a conversation in a single page. If you need a conversation across multiple pages then have a look at: http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingpages1 Geoff On 26/05/2010, at 12:22 AM, Thiago H. de Paula Figueiredo wrote: > Take a look at

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread si...@taz
Thiago H. de Paula Figueiredo wrote: > > > In this case, the approach I suggest you is to create a service (or many) > that is a factory of domain objects. This factory would get the > dependencies, using @Inject or constructor injection, and inject them into > the domain objects. AFAIK,

Re: Multiple browser windows handling with sessions

2010-05-25 Thread Thiago H. de Paula Figueiredo
Take a look at http://communitymapbuilder.org/display/TYNAMO/tapestry-conversations+guide. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br

Multiple browser windows handling with sessions

2010-05-25 Thread Moritz Gmelin
Hi, Does anybody know of a practicle way to handle the situation that a user opens multiple browser windows and does persistant changes in one window that will of course be reflected in the session of the other window too since both windows share the same session (as long as it is the same brow

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Thiago H. de Paula Figueiredo
On Tue, 25 May 2010 09:14:29 -0300, si...@taz wrote: There is nothing bad with constructor injection, only that I don't know how to utilize it for my problem, see my reply Thiago, where I outlined the scenario. Thanks for your advice ... In this case, the approach I suggest you is to crea

T5: ProgressiveDisplay - Possibly not reloading properly on Safari when user uses browser 'Back' Button

2010-05-25 Thread Chris Darlaston
Hi, I have a t:radiogroup set of buttons in a t:progressivedisplay. On selection of the radio button, another zone is updated (which contains a drop down list) is done via a t:mixins. In Firefox 3, IE 8, it works perfectly and on using 'Back' from the browser, the t:progressivedisplay componen

Re: [Taspetry IoC] Using Tapestry IoC with JavaFX

2010-05-25 Thread Thiago H. de Paula Figueiredo
On Tue, 25 May 2010 08:50:45 -0300, Antoine Mischler wrote: Hi guys, Hi! followed by a bunch of unrecognized methods. I think these methods are automatically generated by the javafx compiler. So my question is: is there a way to make the registry less sensible to unrecognized methods? T

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread si...@taz
Martin Strand-4 wrote: > > What's bad with constructor injection? > I would personally even prefer to have constructor injection in component > classes too. > There is nothing bad with constructor injection, only that I don't know how to utilize it for my problem, see my reply Thiago, where

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread si...@taz
On Tue, 25 May 2010 07:07:05 -0300, Andreas Berg wrote: > The only way I see so far is to pass the service as parameters or by > constructor to my > domains objects, which is not very nice. It seems, I didn't fully understand constructor injection. In the documentation, I see examples to us

[Taspetry IoC] Using Tapestry IoC with JavaFX

2010-05-25 Thread Antoine Mischler
Hi guys, I've been working happily with Tapestry IoC in the past, and now I'm trying to use it with JavaFX. Actually, annotations are not supported in JavaFX but I thought it should be possible to use it by building the registry manually and getting the services explicitly. So I wrote something li

Re: DateField not working in updated Form (IE only)

2010-05-25 Thread anton.litvinenko
Hello Peter! I am running into the same problem! Were you able to fix it? Thanks, Anton -- View this message in context: http://tapestry-users.832.n2.nabble.com/DateField-not-working-in-updated-Form-IE-only-tp4846375p5097955.html Sent from the Tapestry Users mailing list archive at Nabble.com.

[ANN] JumpStart 4.9 released

2010-05-25 Thread Geoff Callender
Hi all, JumpStart 4.9 adds a demonstration of layouts and menus and it is ready to use. It also fixes a couple of bugs that were in the AJAX CRUD examples; it uses Inge Solvoll's upgraded ZoneUpdater; it makes components preview-able by replacing t:container; and more. The full list of enhancem

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Thiago H. de Paula Figueiredo
On Tue, 25 May 2010 07:07:05 -0300, Andreas Berg wrote: Hi Hi! I make use of tapestry 5 services in implementations of pages and components by something like @Inject private XyService xyService; @Inject fields will only be injected in classes instantiated by Tapestry

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Kristian Marinkovic
hi markus, contribute a HibernateConfigurer to the HibernateSessionSource that adds a (Hibernate) PostLoadEventListner. This listener then uses a "InjectorService" to inject services into entities... maybe with some javassist magic :) g, kris Von:Markus Feindler An: Tapestry users

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Markus Feindler
Hi, how would I pass services to a domain object? what do I have to configure? For Example if I read some objects from a database via hibernate, where I dont have any control of instantiation. Martin Strand schrieb: On Tue, 25 May 2010 12:07:05 +0200, Andreas Berg wrote: The only way I see

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Martin Strand
On Tue, 25 May 2010 12:07:05 +0200, Andreas Berg wrote: The only way I see so far is to pass the service as parameters or by constructor to my domains objects, which is not very nice. What's bad with constructor injection? I would personally even prefer to have constructor injection in compon

Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Andreas Berg
Hi I make use of tapestry 5 services in implementations of pages and components by something like @Inject private XyService xyService; and it works fine. If I do the same in domain objects, that are themselves neither pages, components or services, xyServices is alway null. The o

Re: T5: LinkSubmit should be generic

2010-05-25 Thread Inge Solvoll
https://issues.apache.org/jira/browse/TAP5-1167 On Fri, May 21, 2010 at 4:07 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 21 May 2010 10:55:17 -0300, Bryan Lewis > wrote: > > Cool. It reminds me of a question I've been meaning to ask. >> > > LinkSubmit is a componen

Re: comet implementation issue

2010-05-25 Thread P . Stavrinides
Using a dispatcher may prevent the pool becoming exhausted, but that just shifts the real problem elsewhere... DWR's long poling technique places a huge load on web servers, it is a pretty nasty hack on the HTTP protocol, which is not really a Tapestry problem as such. long poling won't play ni

Breakpoints under Tapestry 5.2

2010-05-25 Thread Greg Pagendam-Turner
Guys, I've got another issue with Tapestry 5.2. Changing the dependency to the 5.2.0 snapshot I get the following error when triggering a breakpoint in Eclipse: Unable to install breakpoint in com.liftyourgame.application.components.LygActionPlan$containingPageDidLoad$invocation_128ce3fc093