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/
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
20 matches
Mail list logo