T5: How to update zone after form submission?

2008-05-08 Thread Partogi, Joshua
Dear all, I want to update a zone and show a message after form is submitted. I could not find the docs regarding this in the component reference. Could someone guide me through this or perhaps you have a sample source code? Thanks in advance IMPORTANT NOTICE: The information in this email (and

Re: T5 ASO & Service

2008-05-08 Thread maxthesecond
oopss! I think I missed the point the ASO aplication state object is merely a container for sharing information across pages and time it shall not have metods, so I'll do as you say. thanks again -- View this message in context: http://www.nabble.com/T5-ASO---Services-tp17134860p17141903.html Se

Re: T5 ASO & Service

2008-05-08 Thread maxthesecond
Sounds good, if it's simply imposible to use services within ASO I'll do that, but I found more natural the other way arround: In the Page _MyAso.addproductttoChart(id); In the ASO MyASO.addproducttoChart(idProduct) { Map _chartMap; @Inject private MyServices _MyServices; Product

Detecting cookies disabled

2008-05-08 Thread Daniel Leffel
Is there a way to deect whether or not cookies are disabled for a visitor session? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5 Spring+Hibernate

2008-05-08 Thread Avi Cherry
So, T5 integrates nicely with Spring (tapestry-spring) and integrates nicely with Hibernate (tapestry-hibernate). What happens, though, if I want to have Spring configure and handle my hibernate sessions (and transactions) for me, but wish to use tapestry- hibernate's HibernateEntityValueEncod

Re: T5 ASO & Service

2008-05-08 Thread Bill Holloway
Of course, you'll have the went-to-null trouble even passing the bits of data into your service as method args :) On Thu, May 8, 2008 at 2:38 PM, maxthesecond <[EMAIL PROTECTED]> wrote: > > How I'm suposed to get services inside an ASO? > > I placed my DAO objects in services I didn't need any ses

Re: T5 ASO & Service

2008-05-08 Thread Bill Holloway
Max, What I do in my app is pass the relevant bits of ASO data into my service methods as arguments. You could pass the entire ASO, but you might risk having it go null on you if the ASO gets set to null somewhere. Bill On Thu, May 8, 2008 at 2:38 PM, maxthesecond <[EMAIL PROTECTED]> wrote: > >

OT: Hibernate Annotations + maven pom

2008-05-08 Thread Daniel Jue
Just a tip: Upgrading from Hibernate Annotations 3.3.0.ga? The "ga" is now "GA", or at least it is on IBiblio. org.hibernate hibernate-annotations 3.3.1.GA

T5 ASO & Services

2008-05-08 Thread maxthesecond
How I'm suposed to get services inside an ASO? I placed my DAO objects in services I didn't need any sesion so far, but at a certain point I need an ASO the wich needs to make use of my DAO services. btw I've notice an old post in wich the willing was the oposit; how to acces the ASO from a Serv

Re: Potential bug in Tapestry 5.0.11 running on Tomcat

2008-05-08 Thread Howard Lewis Ship
It's less than ideal, but there are things that are out of Tapestry's control, such as the file system and some of the class loaders issues, that causes this case sensitivity issue. On Wed, May 7, 2008 at 11:56 PM, Michael Böckling <[EMAIL PROTECTED]> wrote: > I am not worthy. *doh* > Never again

RE: new user help required

2008-05-08 Thread Jonathan Barker
The tutorial starts with Jetty run from Maven, but then switches over to JettyLauncher midway through chapter 2. The fact that you were not able to back out the changes suggests that you may have something either missing, or duplicated in your classpath. Watch out for remnants of the earlier Tap

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
howard commited some changes into tapestry trunk, so the snapshot build starts in some minutes 2008/5/8 Sven Homburg <[EMAIL PROTECTED]>: > lebenski, > > the snapshot build run at 23:45 centrale european time > for faster access, checkout the repository trunk an compile it with "mvn > clean insta

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
lebenski, the snapshot build run at 23:45 centrale european time for faster access, checkout the repository trunk an compile it with "mvn clean install" 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > I have this in my pom: > > > org.apache.tapestry > t5c-contrib >

Re: new user help required

2008-05-08 Thread photos
Thank you Christian and Jonathan for your quick replies. I'm not using Jetty Runner - I did install JettyLoader. I'm running Jetty from Maven command line because, as I recall, that is what is in the Tutorial. Anyway, the observed reloading behaviour is fine - I did suspect that perhaps on

Re: Can't run Tapestry 5.0.11 project

2008-05-08 Thread Josh Canfield
Are you getting errors in the tomcat log file? It looks like your web app is failing to load. On Thu, May 8, 2008 at 6:32 AM, csharpfan <[EMAIL PROTECTED]> wrote: > > > csharpfan wrote: >> >> I am trying to run sample project from >> Tapestry.5.Building.Web.Applications.Jan.2008. >> Environment: E

RE: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Jonathan Barker
Also, clear your browser cache to make sure you pick up the new TC5OnEvents.js > -Original Message- > From: lebenski [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 08, 2008 12:26 PM > To: users@tapestry.apache.org > Subject: Re: T5: Urgent Problem. After clearing cookies communication >

Re: Problem with form submission with callback

2008-05-08 Thread Josh Canfield
Right now, in 5.0.11, there are some holes in the client side events and callbacks. You can get something to work, it requires a bit of wiring. You'll also want to know a bit about Zones and read tapestry.js to get a handle on what's going on. If you attach your form to a zone, then when the form

RE: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Jonathan Barker
Try removing the snapshots from your local maven repository to be sure you pull down the most recent snapshot. Worst case, go to http://code.google.com/p/tapestry5-components/source/checkout to find out how to get the source. > -Original Message- > From: lebenski [mailto:[EMAIL PROTECTE

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
I have this in my pom: org.apache.tapestry t5c-contrib 0.5.12-SNAPSHOT org.apache.tapestry t5c-commons 0.5.12-SNAPSHOT t5components

Re: new user help required

2008-05-08 Thread Christian Edward Gruber
I think this is as simple as the Tutorial not having been updated to the most recent release of T5. Essentially it's a documentation error. You were right to bump to 5.0.11, I suspect. I wouldn't use jetty runner, but would revert back to the older Jetty Launcher. We had one developer ju

RE: new user help required

2008-05-08 Thread Jonathan Barker
If you are running using the jetty launcher in Eclipse, your templates and page and component classes should be automatically reloading. I'm not sure if it's the same running through maven. As I understand it, JettyLancher puts everything in your Eclipse project's classpath into your web applic

new user help required

2008-05-08 Thread photos
Hi, I've had a look through the archive but haven't spotted an explanation for my query. I have used Tapestry 3 in the past and have just started looking at T5. I have not used Maven before and part of my query probably relates to that. I have been doing Howard's tutorial and I note Mav

Re: Tapestry 5 Release Date (not beta)

2008-05-08 Thread Howard Lewis Ship
My schedule opens back up next week, so get ready for a big push! On Thu, May 8, 2008 at 3:22 AM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: > Hi Jason, > > last thing I've heard about it was: > http://www.nabble.com/Tapestry-5.0.12-td16847409.html > > Howard said there: 'Tapestry 5 is getting ver

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
I've just rebuilt my project. I've got this in my pom: t5components T5Components Maven Repository http://87.193.218.134:8080/t5components/maven-repository Should I pick up this change immediately, or will

Re: t5: embedding a link in form error message

2008-05-08 Thread Angelo Chen
Hi Filip, I was able to put the link somewhere else, I think error message should remain as it is now. believe T5 really has enough of features, time to release? Angelo Filip S. Adamsen-2 wrote: > > Doesn't seem to be possible right now. Would be nice if a > block/component could be specifie

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
http://code.google.com/p/tapestry5-components/source/detail?r=663 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > Thanks Sven, > > Any info on what was causing the issue? > > Ben. > > > Sven Homburg wrote: > > > > i commited a fix into the trunk > > > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > > >>

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Thanks Sven, Any info on what was causing the issue? Ben. Sven Homburg wrote: > > i commited a fix into the trunk > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Apparently this message didnt get sent properly last time: >> >> Oh I just noticed that you said you found the problem is

RE: overwrite first element in select

2008-05-08 Thread Blower, Andy
Look at the blankLabel and blankOption attributes for the select component. (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Select.html) There are good examples in the Tapestry 5 jumpstart. (http://files.doublenegative.com.au/jumpstart/) > -Or

Re: overwrite first element in select

2008-05-08 Thread Adam Zimowski
You can do this when you create select model. For example, in my application I have a drop down of catagories fetched by a DAO, with first element being "-- Please Select": @Cached public SelectModel getCategoriesModel() { Schemed schema = _catalog.computeOdsSchema

overwrite first element in select

2008-05-08 Thread Leon Derks
Hello Is it possible to overwrite the first element in a select box? At the moment this is an empty value, but can I for example overwrite this with "All" Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Can't run Tapestry 5.0.11 project

2008-05-08 Thread csharpfan
csharpfan wrote: > > I am trying to run sample project from > Tapestry.5.Building.Web.Applications.Jan.2008. > Environment: Eclipse, Tomcat, Tapestry 5.0.11. > Error: > HTTP Status 404 - /t5first/ > type Status report > message /t5first/ > description The requested resource (/t5first/) is not a

RE: @Persist("flash") question

2008-05-08 Thread Kristian Marinkovic
hi leon, Tapestry 5 uses a redirect to display the result of a component action. Therefore the data has to be saved/stored between the two requests. (i call the first request action request and the second request render request as it will then render the page) "flash" will store the data in the s

Re: Tapestry 4.1 Secure streaming of video files

2008-05-08 Thread Andreas Andreou
Hi, IEngineService are the closest you'll get to servlets from Tapestry This basically means there's only one instance of them - i guess it's easy for people to forget this and start storing state in that (only) instance like you do with mediafile (linkFactory is a hivemind service and webRespone

Re: Problem with form submission with callback

2008-05-08 Thread Sven Homburg
ofcourse 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > By using a vanilla Ajax Request wouldn't you be bypassing all the benefits > you get from the Tapestry Form Event lifecycle and Tesptry forms in > general? > > > Sven Homburg wrote: > > > > if your requirement is a login without a page refresh >

Re: Problem with form submission with callback

2008-05-08 Thread lebenski
By using a vanilla Ajax Request wouldn't you be bypassing all the benefits you get from the Tapestry Form Event lifecycle and Tesptry forms in general? Sven Homburg wrote: > > if your requirement is a login without a page refresh > the using of OnEvent is in this case not the right way > becaus

@Persist("flash") question

2008-05-08 Thread Leon Derks
In my page I have a the following function that is executed when I click on the search button in my page. @Persist("flash") private List importRequests = new ArrayList(); @OnEvent(component = "searchForm", value = "submit") public void doSearch() { importRequests = importDAO.findImpor

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
i commited a fix into the trunk 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > Apparently this message didnt get sent properly last time: > > Oh I just noticed that you said you found the problem is it because the > jsessionid is getting passed on the URL or something else? > > > > lebenski wrote

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Filip S. Adamsen
The jsessionid coming before the username is the problem, I think. Whatever builds the url needs to make sure it's inserted before the ;jsessionid part. Are you building the URL yourself? If so, it shouldn't be too much work to fix. -Filip On 2008-05-08 12:56, lebenski wrote: Oh I just notic

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Apparently this message didnt get sent properly last time: Oh I just noticed that you said you found the problem is it because the jsessionid is getting passed on the URL or something else? lebenski wrote: > > Thanks very much Sven. I appreciate your help on this matter, let me know >

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread Chris Lewis
Sorry, I only saw the messages that mentioned tinyMCE and assumed you were looking for an editor component. chris maxthesecond wrote: > Well, I can't see the relation but anyway thanks! > > > Chris Lewis-5 wrote: > >> I missed the rest of this thread, but if you're looking for an editor >> com

Re: [T4.1.5] problems with file service and IE

2008-05-08 Thread Henrik Schlanbusch
Thanks to your hints I finally found a way to identify the problem. The problem was that on the same page that I load the images, I also have a flash object, that loads sound files through the same service. I am not sure, but it seems like the calls for both the images and the soundfiles conflict w

Re: T5 Event bubling

2008-05-08 Thread maxthesecond
Thanks a lot you solve it! I hope But It seems me not that logical, after all, the url carries all the information, to make such an assert I will have to know the details and how all does it work, I found the current solution a little convoluted. 宁德辉 wrote: > > I think it is easy to understan

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Oh I just noticed that you said you found the problem is it because the jsessionid is getting passed on the URL or something else? Sven Homburg wrote: > > after a debug session, a find the reason for this behavior. > i try to find out a soloution for that > > 2008/5/8 lebenski <[EMAIL PROT

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Thanks very much Sven. I appreciate your help on this matter, let me know if I can be of any assistance, I'll be monitoring this thread all day. Ben. Sven Homburg wrote: > > after a debug session, a find the reason for this behavior. > i try to find out a soloution for that > > 2008/5/8 le

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
after a debug session, a find the reason for this behavior. i try to find out a soloution for that 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > Yeah that sounds exactly like the problem i'm getting. > > FYI here is my initial request (onchange of username field) after deleting > cookies: > > URL= >

Re: T5 Event bubling

2008-05-08 Thread dhning
I think it is easy to understand that Page A doesn't know what's wrapped in component B, like 'addToChart', so you can only deal with event froom B but not 'addToChart'. And I think ActionLink is a more general EventLink, with event name "action". For your case, you can use EventLink to specify

Re: Tapestry 5 Release Date (not beta)

2008-05-08 Thread Tobias Wehrum
Hi Jason, last thing I've heard about it was: http://www.nabble.com/Tapestry-5.0.12-td16847409.html Howard said there: 'Tapestry 5 is getting very close to a next release (which I think may even be a release candidate), but that's no reason to ship it early. Let me continue to "use it in an

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Yeah that sounds exactly like the problem i'm getting. FYI here is my initial request (onchange of username field) after deleting cookies: URL=http://localhost:8080/home.homepage.registerwidget.registerbasicwidget.registerbasic_username:change;jsessionid=1d4snmum7f5cy/tesusername Second request

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
i tested it here in my demo app. if i delete the session cookie the the onevent result is empty even though i refresh the page !?!? 2008/5/8 Sven Homburg <[EMAIL PROTECTED]>: > is there the same behavior if the restart the browser? > > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > > > > for real t

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread maxthesecond
Well, I can't see the relation but anyway thanks! Chris Lewis-5 wrote: > > I missed the rest of this thread, but if you're looking for an editor > component t5components provides one (based on FCK): > http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
is there the same behavior if the restart the browser? 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > for real testing i think its better to delete the cookie and refresh the > page > before you initiate the ajax request cycle. > > This is exactly what i'm doing. I've also tried this from a fresh, >

T5 Event bubling

2008-05-08 Thread maxthesecond
a page: A a wraper component: B a component: C inside wraper having an action link with id=addToChart At the page level by now I can only trap the events from C like @OnEvent(component="B") void whatevernamewilldothejob(String ID){ }

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
for real testing i think its better to delete the cookie and refresh the page before you initiate the ajax request cycle. This is exactly what i'm doing. I've also tried this from a fresh, non-dev machine. I hit my server without doing any shenanigans with deleting cookies and I get the same is

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
thats not correct, the session id ommited by the servlet by every request to the browser so if the user starts the browser and request the www.blabla.com/servletcontext/login or whatever the servlet container response the session id if you delete the cookie or remove the session id from url the s

Re: t5: embedding a link in form error message

2008-05-08 Thread Filip S. Adamsen
Doesn't seem to be possible right now. Would be nice if a block/component could be specified instead of a string, that'd give you 100% control over what's rendered. Maybe something for JIRA? -Filip On 2008-05-08 10:06, Angelo Chen wrote: Hi, I'd like to embed a link in the error messages sent

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
I'm replicating the state in which a new user will hit the site, they won't have any of the cookies set by Tapestry. Sven Homburg wrote: > > why do you delete the cookies ? > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Hi guys, >> >> Ok i've got an urgent problem. I'm using tapestry to

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread Sven Homburg
why do you delete the cookies ? 2008/5/8 lebenski <[EMAIL PROTECTED]>: > > Hi guys, > > Ok i've got an urgent problem. I'm using tapestry to develop a web app, > which I have to present tomorrow to some very important people! > > I've got a very frustrating problem. I will try to explain it as

T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Hi guys, Ok i've got an urgent problem. I'm using tapestry to develop a web app, which I have to present tomorrow to some very important people! I've got a very frustrating problem. I will try to explain it as clearly as possible. I'm using the t5components/OnEvent Mixin to call back to Tapes

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread Chris Lewis
I missed the rest of this thread, but if you're looking for an editor component t5components provides one (based on FCK): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html maxthesecond wrote: > Thanks nicholas I'll give it a try...any way I'

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread maxthesecond
Thanks nicholas I'll give it a try...any way I'm not very disconforted with the script being in the parent after all parent and childs they form the whole component, but I'm glad to see there's a general solution. Thanks nicholas Krul wrote: > > Hi... Sorry it took so long, tonight is the firs

Re: Problem with form submission with callback

2008-05-08 Thread Sven Homburg
if your requirement is a login without a page refresh the using of OnEvent is in this case not the right way because OnEvent doesnt know anything about the username and password values. i think the best way is, write your own Ajax.Request script that submits the form values to tapestry 2008/5/8

Re: Tapestry 5 Beaneditform and TextFlield

2008-05-08 Thread Kristian Marinkovic
does your template have a t:block with the id "text"? what is the problem exactly? Is there an exception... ? if you get an exception you probably dont have a block defined :) g, kris ice96 <[EMAIL PROTECTED]> 08.05.2008 00:45 Bitte antworten an "Tapestry users" An users@tapestry.apache.

Re: Problem with form submission with callback

2008-05-08 Thread stuffhere
It was the only way I could think to do the javascript callback - using onCompleteCallback. I'm pretty new to Tapestry, so most of what I've done has been trial and error, is there a better way to do the callback? -- View this message in context: http://www.nabble.com/Problem-with-form-submis

Re: Tapestry 4.1 Secure streaming of video files

2008-05-08 Thread superoverdrive
Here is the stack trace: 2008-05-07 18:14:13,375 [http-8080-Processor24] INFO com.company.services.MediaAsset - Loading video file from: 2008-05-07 18:14:13,375 [http-8080-Processor24] INFO com.company.services.MediaAsset - file=http://192.160.25.194:8080/videostore/media/CF-1-0002-DE.

Tapestry 4.1 Secure streaming of video files

2008-05-08 Thread superoverdrive
I am trying to stream flash video files in a protected way using this Media Service It works fine, but once 2 people access the same file one of the streams sooner or later just stops and the connection is closed Has anyone tried something similiar and tested the parallel acces on the s

t5: embedding a link in form error message

2008-05-08 Thread Angelo Chen
Hi, I'd like to embed a link in the error messages sent to like this: loginform.recordError("error < a href='#'>click here to know more< /a>"); but this does not work, any idea? Thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-embedding-a-link-in-form-error-message