Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-08 Thread BarryDev
Turns out the dwr servlet is lazily loaded and I needed to add 1. BarryDev wrote: > > The ServerContextFactory.get() only works if dwr has been already called > from a dwr initiated thread, otherwise it returns null. > -- View this message in context: http://www.nabble.com/

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-07 Thread BarryDev
The ServerContextFactory.get() only works if dwr has been already called from a dwr initiated thread, otherwise it returns null. BarryDev wrote: > > Got the reverse ajax method working. An interesting gotcha if trying to > trigger a dwr reverse ajax call from a tapestry thread you ne

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-07 Thread BarryDev
Howard Lewis Ship wrote: > > Ooops. I'll check a fix in for that with some other outstanding > changes (no JIRA issue necessary). > > Thanks Howard, Got the reverse ajax method working. An interesting gotcha if trying to trigger a dwr reverse ajax call from a tapestry thread you need to g

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Thiago H. de Paula Figueiredo wrote: > > Em Thu, 06 Nov 2008 11:29:30 -0300, BarryDev <[EMAIL PROTECTED]> > escreveu: > > It should be named AppModule. > > Thanks actually I had it in AppModule but the the problem was I had an Collection in my method signature

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Thanks this makes a lot more sense. Also my above example wasn't working like magic, was getting errors tried to load assets :). I've reverted back and I'm attempted to get the configuration to work. I've added this method to my AppSupport.java class (created from the archetype), public stati

[T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Hey everyone, Just integrated direct web remoting into my tapestry app. Found one gotcha that I thought might be worth sharing. If you start the maven quickstart archetype your filter mapping will be: app /* When you try to add the servlet mapping for dwr d

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-11-02 Thread BarryDev
BarryDev wrote: > > > This returns an empty zone so there is no visible result on the page when > you click submit, is this what's causing my form not to be reset or is > that the expected behaviour. The ideal behaviour would be if there was an > onComplete method that

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-31 Thread BarryDev
I've tried a few different things and I've searched this mailing list archive and the website but I can't figure out a way to clear the textbox in my beaneditform with a zone once I click submit. Here's my OnSuccess Method and my beaneditform/zone definition: @InjectComponent("zone") private Zon

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-29 Thread BarryDev
Thiago H. de Paula Figueiredo wrote: > > > You must return your Zone instance in your onSuccess() method. If you > return a page, it will be a normal, non AJAX request. > I've returned a zone from my onSuccess method which I'm getting using injectComponent, and the behaviour is the same, th

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
BarryDev wrote: > > I'm using jQuery.noConflict(); to stop JQuery stepping on the prototype > injected by using beaneditform. Is this causing the error? > Ok I removed all my JQuery code to see if this was causing the issue and it was, but than I realised I was also retur

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
Thiago H. de Paula Figueiredo wrote: > > > What about a Zone and the BeanEditForm zone parameter? :) > > I tried this with in my .tml onSuccess() gets called the first time I click submit without reloading the page, but the form doesn't get its values reset an

RE: T5: Using with hibernate and Mysql

2008-10-28 Thread BarryDev
Doh typo there, should have been @Column rather than @JoinColumn BarryDev wrote: > > Oh forgot that I'd change the field's name to match the column in that > class. If you want to explicitly join a field to a column use the > @JoinColumn(name = "whatever"

[T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
Hello everyone, I'm still beavering away at getting my chatroom working in tapestry 5. I've got a proper hibernate/spring layer now instead of my singleton and I can reliably capture a user leaving the chatroom page with onbeforeunload. Now I'm trying to add a beaneditform to allow users to s

RE: T5: Using with hibernate and Mysql

2008-10-26 Thread BarryDev
Oh forgot that I'd change the field's name to match the column in that class. If you want to explicitly join a field to a column use the @JoinColumn(name = "whatever") annotation. -- View this message in context: http://www.nabble.com/T5%3A-Using-with-hibernate-and-Mysql-tp20166018p20173523.htm

RE: T5: Using with hibernate and Mysql

2008-10-26 Thread BarryDev
James Sherwood wrote: > > I still cannot find a good Tapestry-Hibernate tutorial though. I have a > rather large database created and would like to generate objects from > it(this tutorial is the other way around). > Do you mean instead of just declaring an entity class and having hibernate

Re: T5 - Catching user leaving a page

2008-10-23 Thread BarryDev
Got the onbeforeunload call to work. On the off chance that someone is doing something similar here's my .tml head. I'm using jQuery to do an ajax call with a onActionFromLink(String name) method in my page to remove the user from my trusty singleton. Interesting gotcha, ie 6 caches all ajax ca

Re: T5 - Catching user leaving a page

2008-10-22 Thread BarryDev
d so on happen -- leaving > current page), in IE it works, but I am not sure about others. > > Thanks! > > DH > > > - Original Message - > From: "BarryDev" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, October 22, 2008 12:16 AM > Subjec

T5 - Catching user leaving a page

2008-10-21 Thread BarryDev
Hi all, I've completed the hi/lo and address tutorial and I'm not trying to write a simple chatroom to learn some more about tapestry. My basic chatroom currently has a login page which forwards to a chatroom which lists the usernames of all logged in users. I'm currently using a singleton to

Re: T5 - Can't get the tapestry 5 quickstart maven archetype to resolve

2008-10-20 Thread BarryDev
settings.xml wasn't correct. BarryDev wrote: > > I was able to get the tapestry 5 quickstart archetype to download > successfully a few days ago but now when I run the command I'm getting the > following output: > > $ mvn archetype:create -Darchetyp

T5 - Can't get the tapestry 5 quickstart maven archetype to resolve

2008-10-18 Thread BarryDev
I was able to get the tapestry 5 quickstart archetype to download successfully a few days ago but now when I run the command I'm getting the following output: $ mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -Dartifa