Re: Persistance

2009-01-14 Thread Kalle Korhonen
On Wed, Jan 14, 2009 at 1:39 AM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > It would be great if Tapestry provided a really nice clear solution to > conversation state (and continuations), but in the meantime the workarounds > are actually not all that hard. Have you looked a

tapestry.formos.com is back up

2009-01-14 Thread Howard Lewis Ship
The Tapestry continuous integration build server, tapestry.formos.com, is now back online. I've run a nightly build, so you can see latest 5.1 snapshots in the maven snapshot repository. There may be some further disruption as I set up a number of additional services on tapestry.formos.com: SVN,

Re: is T4 dead ?

2009-01-14 Thread Kevin Menard
Any reason you couldn't just use one of the multitude of JS frameworks? jQuery works very well for this. -- Kevin On Wed, Jan 14, 2009 at 1:25 PM, Ken in nashua wrote: > > I still am using T4 with dojo-0.4.3 and the tapestry script eFrastructure > that tacos has taken advantage of. > > That

RE: is T4 dead ?

2009-01-14 Thread Ken in nashua
I still am using T4 with dojo-0.4.3 and the tapestry script eFrastructure that tacos has taken advantage of. That should indicate a boat load plenty of loyalty... and thank. It would be nice to see some humble support for these though. One of my most recent peeves was the lack of a coordina

Re: Persistance

2009-01-14 Thread Kalle Korhonen
On Wed, Jan 14, 2009 at 1:29 AM, Ville Virtanen wrote: > I would try to achieve something like that using: > Custom PersistentFieldStrategy > ( > http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PersistentFieldStrategy.html > ) > Custom LinkFactoryListener > ( > http://ta

Re: t5: accessing a text file under resources

2009-01-14 Thread Angelo Chen
Thanks, I found something similar: public InputStream getStream() throws IOException { String fn = this.getClass().getResource("/robots.txt").getFile(); return new FileInputStream(fn); } Tapestry Infodea wrote: > > Hi, > try something like this: > > private st

Re: t5: accessing a text file under resources

2009-01-14 Thread Tapestry Infodea
Hi, try something like this: private static final String WEB_BASED_PATH = "resources/robots.txt"; try { InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(WEB_BASED_PATH); DataInputStream din = new DataInputStream(is);

Re: Tapestry Nightly

2009-01-14 Thread Howard Lewis Ship
I finally got Ubuntu installed on the box yesterday, should have Bamboo up and running fairly soon. On Wed, Jan 14, 2009 at 2:49 AM, Martin Papy wrote: > > Hi, > > It seem's that the Nightly site / builds / maven etc are down for some days > now... > > Is there any previewed date for their come b

Re: example BaseURLSource: T5

2009-01-14 Thread Howard Lewis Ship
Note that you can inject HttpServletRequest instead of RequestGlobals. On Wed, Jan 14, 2009 at 3:50 AM, Onno Scheffers wrote: > This version prepends http or https before the url. In production mode it > builds on a fixed url and in development mode it returns whatever you used > to get to the pa

Re: T5: Jump to Specific Page with Grid

2009-01-14 Thread Jayson Pierringer
:) No problem. I was just playing with the pager yesterday because I had a problem with the page persisting between searches. If I did a search and went to page three and then performed a new search it started on page three. I wanted the new search to start on page one so I used the current

Re: T5: Jump to Specific Page with Grid

2009-01-14 Thread bobheck
Thank you Jayson !!! That was insanely simple. Nothing like spending a day and a half trying to do something only to find out the answer is to set a property. Sigh. (Walks off, muttering "You are a good coderpeople like youyou are valuable...") Jayson Pierringer wrote: > > Bob, > >

Re: T5: Jump to Specific Page with Grid

2009-01-14 Thread Jayson Pierringer
Bob, You can use the setCurrentPage method of your grid component. myGrid.setCurrentPage(1) - Jayson bobheck wrote: I am trying to do something that seems simple, but I am stumped. The grid pager renders links that look like this to jump to a specific page pagepath/pagename.grid.pager/NN wh

Re: Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
hi guy, thanks for your help. 2009/1/14 Harald Geritzer > >> public class Teste { >> private BeanTeste bt; >> >> public Teste () { >> this.bt = new BeanTeste(); >> } >> > >getBt(); { .. } >setBt(BeanTest bt) { .. } > > >} >> > > > you can use t

Re: Mapping Bean For View Layout

2009-01-14 Thread Harald Geritzer
public class Teste { private BeanTeste bt; public Teste () { this.bt = new BeanTeste(); } getBt(); { .. } setBt(BeanTest bt) { .. } } you can use the value property: --

Re: Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
when I say "view layout", I wanna say "view tie". I wanna acess one atribut of the bean across of class of tml. 2009/1/14 Thiago HP > On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva > wrote: > > how do I map 'bean' using the view layout? > > What do you mean by view layout? > By the way

Re: Mapping Bean For View Layout

2009-01-14 Thread Thiago HP
On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva wrote: > how do I map 'bean' using the view layout? What do you mean by view layout? By the way, take a look at the Tapestry forms tutorial: http://tapestry.apache.org/tapestry5/tutorial1/forms.html -- Thiago -

Re: Persistance

2009-01-14 Thread Ville Virtanen
Ok, it uses currentMillis inside the session to differentiate the conversations. It works, but as we are seasoned T5 users we expect everything to just work without all that scary java code :) - Ville Ps. Seriously I appreciate greatly your effort and just want to say Thank you. (I've learned q

EJB questions about Jumpstart

2009-01-14 Thread Sid Ferreira
OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my pers

Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
how do I map 'bean' using the view layout? Example: public class Teste { private BeanTeste bt; public Teste () { this.bt = new BeanTeste(); } } public class BeanTeste { private String name; getName(); setName(); }

Re: Persistance

2009-01-14 Thread Geoff Callender
Try it! What you'll see is that if you open two tabs or windows and then start the Wizard in each one then they will get different conversations. This allows you, for example, to work on two orders at once. If, however, you start the Wizard AND then open a new tab or window AND your brow

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Joachim Van der Auwera
I assume slf4j is on the classpath twice... Thiago HP wrote: Hi! I'm having a very strange exception when trying to run a T5 application (www.arsmachina.com.br/project/example): Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFound

Re: example BaseURLSource: T5

2009-01-14 Thread Onno Scheffers
This version prepends http or https before the url. In production mode it builds on a fixed url and in development mode it returns whatever you used to get to the page (localhost? IP?) and adds the right port-number to it. It is a stripped down version of my actual implementation, since that applic

Re: Persistance

2009-01-14 Thread Ville Virtanen
But still the wizard example requires session in some form and thus the same conversation in two tabs scenario is not possible? - Ville Geoff Callender-2 wrote: > > It would be great if Tapestry provided a really nice clear solution to > conversation state (and continuations), but in the me

Re: [T5] improve documentation

2009-01-14 Thread Peter Stavrinides
A search on the Tapestry site! I have always wandered why there isn't one? these days its a given. Peter - Original Message - From: superoverdr...@gmx.de To: users@tapestry.apache.org Sent: Wednesday, 14 January, 2009 1:05:50 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Thiago HP
On Wed, Jan 14, 2009 at 9:19 AM, Martijn Brinkers wrote: > Have you tried setting parentLoaderPriority? Hi! Thanks for your answer, but it didn't work. That wiki page talks about @Inject'ng a Logger, but in my case the problem happens when instantiating (or getting) a Logger for a Form component.

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Martijn Brinkers
Have you tried setting parentLoaderPriority? See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Wed, 2009-01-14 at 09:11 -0200, Thiago HP wrote: > Hi! > > I'm having a very strange exception when trying to run a T5 > application (www.arsmachina.com.br/projec

Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Thiago HP
Hi! I'm having a very strange exception when trying to run a T5 application (www.arsmachina.com.br/project/example): Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger It seems to be a Tapestry classloadi

Re: RE: [T5] improve documentation

2009-01-14 Thread superoverdrive
Jumpstart would also be a good idea Original-Nachricht > Datum: Wed, 14 Jan 2009 10:22:13 - > Von: "Newham, Cameron" > An: "Tapestry users" > Betreff: RE: [T5] improve documentation > I second this. > > I much prefer the "cookbook" approach as opposed to having to wa

example BaseURLSource: T5

2009-01-14 Thread peibel
Hi, Someone has an example using BaseURLSource, is very important, I'm tired and I don“t get going from http to https from an http link to the page. thanks for your help -- View this message in context: http://www.nabble.com/example-BaseURLSource%3A-T5-tp21453809p21453809.html Sent from the T

Tapestry Nightly

2009-01-14 Thread Martin Papy
Hi, It seem's that the Nightly site / builds / maven etc are down for some days now... Is there any previewed date for their come back ? Regards, Martin -- View this message in context: http://www.nabble.com/Tapestry-Nightly-tp21453644p21453644.html Sent from the Tapestry - User mailing lis

RE: [T5] improve documentation

2009-01-14 Thread Newham, Cameron
I second this. I much prefer the "cookbook" approach as opposed to having to wade through a complete application to find how to do something. Jumpstart is excellent and has helped me many times. All it needs is perhaps a bit more explanation of what's going on, more cases covering solutions to

Re: Persistance

2009-01-14 Thread Geoff Callender
It would be great if Tapestry provided a really nice clear solution to conversation state (and continuations), but in the meantime the workarounds are actually not all that hard. Have you looked at the 3 Wizard examples and the Conversations List at http://jumpstart.doublenegative.com.au:808

Re: Persistance

2009-01-14 Thread Ville Virtanen
Moi Kalle, I would try to achieve something like that using: Custom PersistentFieldStrategy (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PersistentFieldStrategy.html) Custom LinkFactoryListener (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/int

Re: NoSuchElementException in volatile loop

2009-01-14 Thread Joachim Van der Auwera
Problem solved. It seems that for some reason not entirely clear to me, there was a difference in server side and client side state. The end result is the exception below. I believe that either there is a mistake in the comments in the code (about everything being driven by the stored actions

Re: EJB Problem

2009-01-14 Thread Sid Ferreira
Hi Geoff!Thank you for replying. Unfortunelly I worked all based on this example, more exactly: 1) I made Tapestry4nonbelievers 2) Changed the DAOs to a version that works with my database 3) migrated from DAO to EJB. Maybe I forgot something, or maybe I did it wrong dunno. Im starting to believe

Re: EJB Problem

2009-01-14 Thread Geoff Callender
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/state/ejb3 HTH, Geoff On 14/01/2009, at 6:03 AM, Sid Ferreira wrote: Ok, I need to get used about mailing lists... too much years on irc. Im trying to, based on Tapestry 4 non believers, fetch all the data to a grid. Using the s

contributeTranslatorDefaultSource

2009-01-14 Thread Joachim Van der Auwera
When upgrading (or trying to) to 5.1.0.0 I get an exception because the TranslatorDefault service no longer exists. What should I replace my contributeTranslatorDefaultSource methods by? Thanks, Joachim -- Joachim Van der Auwera PROGS bvba, progs.be --