Being more precise I wanted to use DWR to re-generate my page once again via
XMLHttpRequest. It looks like this:
- javascript calls my ajax java method
- ajax method calls DWR's forwardToString(..) which is essentialy
getRequestDispatcher.forward and returns as a result html content.
and here i r
I have a running app with t5 and HA
if you follow a convention:
your.package.pages - pages
your.package.services - services and AppModule
your.package.entities
without any extra config besides connection data in hibernate.cfg.xml
your entities will be recognized.
you can do this by following th
Not sure why you would want to.
Inside a T5 application, Tapestry takes care of sending redirects.
From a JSP, a Tapestry page is simply the name of the page, i.e.
foo.jsp:
Back to the Tapestry Menu Page
On 6/7/07, umrzyk <[EMAIL PROTECTED]> wrote:
hi,
as I noticed, it is not possible to c
If you class is called AppModule then the Tapestry Filter name in your
web.xml needs to be app. For example
app
org.apache.tapestry.spring.TapestrySpringFilter
Petros
Ben Tomasini-2 wrote:
>
> I am working on a T5 application, and can't figure out how the AppModule
> is
> wired up t
Looks and works good, thanks for that, it always give me a good feeling
when someone else can use what I have done. I also like the changes
that you have done.
Craig
-Original Message-
From: Andreas Andreou [mailto:[EMAIL PROTECTED] On Behalf Of andyhot
Sent: Friday, 8 June 2007 12:27 PM
Oops. Ognl method calls need the full name:
ognl:messages.getMessage('message.' + value)
Cheers,
Nick.
Paul Stanton wrote:
I couldn't get the ognl call to work. I got the exception:
Method "message" failed for object
[EMAIL PROTECTED]
java.lang.NoSuchMethodException
message(java.lang.Stri
You're right, it works in tomcat too...
The code is now in tacos (with minor changes) + there's a demo page in
tacos-demo, so one
can easily do
mvn tomcat:run-war to see it working :)
Craig Spry wrote:
Andy,
Although I haven't tested this yet I think this will work in other
servlet containers
On workaround would be to write synthetic accessor methods in the User
class for the Address properties you would like to see; e.g.,
pubic String getStreetAddress ()
{
return this.address.getStreetAddress();
}
On 6/7/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Hi,
I'm not sure if this kind of f
I couldn't get the ognl call to work. I got the exception:
Method "message" failed for object
[EMAIL PROTECTED]
java.lang.NoSuchMethodException
message(java.lang.String)
Could be a 4.1.1 thing vs 4.1.2
getMessages().getMessage(String) in my java class works however, so I'll
use that.
Nick
Andy,
Although I haven't tested this yet I think this will work in other
servlet containers, because all the jar files from the Jetty will be
packaged up in the war file. This is only a suspicion and I don't know
what other problems this would have.
Long term I'd like to write a tapestry service
Hi,
I'm not sure if this kind of functionality is available with the
current grid component, but this is a simple example of what I want to
do:
Lets say I have a User class and an Address class.
Lets say a User has an Address object in it.
Now I have a list of Users that I want to pump into a G
Never mind. I renamed the TapestryFilter. Here are the docs that cover my
issue:
From http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html
Tapestry looks for a module builder class in the services package (under the
root package). It capitalizes the and appends "Module". In th
hi,
as I noticed, it is not possible to call
request.getRequestDispatcher("/my/superb/page").forward(...) as such a page
is not a "real" resource. all other resources like "/index.jsp" are obviously
recognized correctly. is it somehow possible to forward request to page
generated by T5 ?
regar
I am working on a T5 application, and can't figure out how the AppModule is
wired up to the IoC container in the quickstart example. In may
application, I am working on extending TapestryFilter and overriding
provideExtraModuleDefs to wire up the module in my web application, but am
convinced the
That would take some doing, it's something I thought of and dismissed.
T4 supports it, and that's one of the reasons it's so complex to
discuss which files are stored where. To me, this would be a
low-priority enhancement.
On 6/7/07, Bruce Petro <[EMAIL PROTECTED]> wrote:
I was thinking for dev
I was thinking for development purposes it might be desirable to have
multiple contexts.
But I don't see how to tie a context-param (which determines which
classes handle the requests) to a filter definition (which specifies a
url pattern to handle)
I'm making a wild guess that in the sample "app
Hmm... It looks like leaving the default mapping in place allows the
tapestry filter to run (and I assume take care of my perthread cleanup) and
does not interfere with my other servlet mappings. Very nice.
Ben
On 6/7/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:
I am running Tap5 from Jetty us
Hello,
Is there a way to customize the default banner "You must correct the
following errors before you may continue." message? I'd like to change
this banner dynamically depending on the error. Specifically, I'd like
to do something like this in my page class:
try {
// deal with form input
}
cat
Thanks Davor,
I got it working, although it seems to require a
myentity.hbm.xml, specified via the hibernate.cfg.xml.
I was hoping I could use the @Entity, @Id, etc, annotations in my
entity classes instead. From the Hibernate docs, it seems like
enabling these "Hibernate Annotations" requires
I am running Tap5 from Jetty using the Maven2 jetty:run plugin.
All works fine with the following in the web.xml:
TapestryFilter
/*
When I change to this:
TapestryFilter
/app/*
and browse to /app/ under the web context, I get a 404. There are no errors
in the logs.
Can a
On Thu, 2007-06-07 at 21:28 +0200, Martin Dietze wrote:
> On Thu, June 07, 2007, Davor Hrg wrote:
>
> > It's a guess, but I think that you just need to persist the property.
> > @Persist("flash")
>
> That's what I thought, but it does not work. It seems to have
> to do with the way T5 initializes
https://issues.apache.org/jira/browse/TAPESTRY-1546
On Thu, 2007-06-07 at 10:56 -0700, Howard Lewis Ship wrote:
> Doesn't exist. Please add an issue.
>
> On 6/7/07, Dan Adams <[EMAIL PROTECTED]> wrote:
> > For instance:
> >
> > @Component(type="Any", inheritInformalParameters=true)
> > public abs
On Thu, June 07, 2007, Davor Hrg wrote:
> It's a guess, but I think that you just need to persist the property.
> @Persist("flash")
That's what I thought, but it does not work. It seems to have
to do with the way T5 initializes its member variables (my
guess)...
Cheers,
Martin
--
---
It's a guess, but I think that you just need to persist the property.
@Persist("flash")
action link generate action requests, if action request does not
return a result it'self, page continues to render phase...
but this does not happen in the same request,
the page gets redirected to it self fir
Let me re-phrase that. I want to use the same URL for both an
IExternalPage and and a DirectService. My ServiceEncoder then needs
to be able to determine if the incoming request is a Direct Service
request or not. Can this be done without modifying the URL?
-Norman
On Jun 6, 2007, at 3:53
Hi,
I want to load a page which displays a particular entry from a
database. To accomplish this I create an action link in the
parent page which causes the parent page's object to call a
method of my display-an-entry page object passing the DB-bean
as a parameter. Within that method I assign this
Doesn't exist. Please add an issue.
On 6/7/07, Dan Adams <[EMAIL PROTECTED]> wrote:
For instance:
@Component(type="Any", inheritInformalParameters=true)
public abstract Any getFieldset();
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857
-
For instance:
@Component(type="Any", inheritInformalParameters=true)
public abstract Any getFieldset();
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Ok it's http://jira.opensymphony.com/browse/OGNL-87
Thanks,
J
On 6-Jun-07, at 6:11 PM, Jesse Kuhnert wrote:
Ok, if you file a jira issue I'll look at it. (in the ognl jira)
On 6/6/07, Julian Wood <[EMAIL PROTECTED]> wrote:
No I wasn't using that latest snapshot. For some reason, I thought
HibernateSessionManager being internal means you shouldn't be
managing it your self.
it's ok to :
@Inject private HibernateSessionManager _sessionmanager;
but creating it manualy is not a good solution,
keep just the inject and tapestry ioc will provide it for you,
Davor Hrg
On 6/6/07, Dani
Hey it's back! Thanks Jesse.
J
On 6-Jun-07, at 6:58 PM, Jesse Kuhnert wrote:
Never mind I'm a liar.Guess I broke it the other day with a
different
change. Is fixed now and will be deployed whenever I run out of
bug fixing
steam.
On 6/6/07, Julian Wood <[EMAIL PROTECTED]> wrote:
Hm
If your submit is async, just specify your form component id (or any
component you want refreshed on submit) in the updateComponents attribute of
the @Form.
2007/6/7, Stephane Decleire <[EMAIL PROTECTED]>:
Hi,
I've got a signon form in a dojo Dialog box.
Is there a way to refresh the content o
Hi,
I've got a signon form in a dojo Dialog box.
Is there a way to refresh the content of the Dialog box in order to show
authentication errors when the submit button is fired ?
Thanks in advance.
Stephane
-
To unsubscribe,
For the moment, you can use the negate parameter of the If component.
I would eventually like to convert the prop: expression language from
ad-hoc into something more formal, based on a real grammar. I don't
think I ever want it to be as sophisticated as OGNL, but it would be
nice if it could ha
So I'm jumping into T5 and most of my ognl expressions like
"foo.bar.baz" all transfer pretty effortlessly into prop. As for other
more complicated expressions like "ognl:foo ? bar : baz" these I can
move into a public method. But often I'll have expressions like "ognl:!
foo". How do simple express
Hi,
Is there a way to set a namespace in the @InjectPage annotation ?
Stephane
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You may want to look into the way the T5 Grid or Palette component is
constructed, since they have their own js, css and images.
I am assuming you are tryign to store the assets along with the page
you are creating. Otherwise, the a good place to put them is:
src/main/webapp/css
src/main/webapp
Hi All,
I use T5.0.4. I packaged some common components to common.jar.
You know, in T3/4, we may add a configuration like contrib to
.application file. But how can I use it in my another project base on T5?
Thanks
Allen Guo
-
Hi All,
Could somebody tell me what's the best place in T5.0.5 to store general (i.e.,
they are not needed by Tapestry, but only to by the page) css files, js
files and images, and where to store CSS/JS etc files specifically needed
for building components?
Thanks
Erik
Hi all,
I have a page with a js script that uses dojo wipe animation. Here is a
fragment of the js:
wi = dojo.lfx.html.wipeIn(node, 400, null, null);
wi.play();
This was working fine cross-browsers with whatever version of dojo that came
with T4.1.1. After I upgraded to 4.1.2, it k
Hi all,
My app has a page with a form having only hidden fields. I use this form to
rewind some values on async events. This was working fine with T4.1.1. After
I upgraded to 4.1.2, and after some (unrelated) tweaks, it was also working
fine on my dev windows laptop.
After I deployed it on a "sem
Sorry, I didn't realise that was about T5 :) Yeah, complete
documentation would be helpful indeed but the world we live in isn't
perfect ;) And the guys who are creating Tapestry are already doing
quite a lot of work, so we need to find ways...
-Original Message-
From: Peter Stavrinides [m
The documentation is not outdated. The example in the tutorial works fine
for Tapestry 4.1.2
If you would post the corresponding parts of your web.xml and
hivemodule.xmlit would be easier to find your problem. And maybe some
lines of the
exception stack trace you are getting.
On 6/7/07, Peter Sta
Thanks guys.
Nick Westgate wrote:
I'm not working with T4, but if you control "value" carefully:
ognl:messages.message('message.' + value)
Cheers,
Nick.
Kolesnikov, Alexander GNI wrote:
I would actually have a method in the page class to retrieve this
message, but I wonder if something like
Thanks Alexander I already have an old copy of Kent's book, and I am not
getting the new one so close to Tapestry 5's release. Also, If I
happened to be new to Tapestry I would be offended by being told to buy
a book because the examples in the documentation don't work. It wouldn't
hurt to upda
On Thu, 2007-06-07 at 10:39 +0200, Michael Maier wrote:
> Am 06.06.2007 um 23:00 schrieb Martin Grotzke:
> > I didn't change the type of _value to be able to use the component
> > with or without multiple="true", but perhaps it's better to have a
> > dedicated multiselect component, so the _value c
I'm not working with T4, but if you control "value" carefully:
ognl:messages.message('message.' + value)
Cheers,
Nick.
Kolesnikov, Alexander GNI wrote:
I would actually have a method in the page class to retrieve this
message, but I wonder if something like this will work:
?
-Original
I would actually have a method in the page class to retrieve this
message, but I wonder if something like this will work:
?
-Original Message-
From: Paul Stanton [mailto:[EMAIL PROTECTED]
Sent: 07 June 2007 09:19
To: Tapestry users
Subject: 4.1 programmatically define message key
Hi
Am 06.06.2007 um 23:00 schrieb Martin Grotzke:
Do you have getters/setters with a Set then? Does the method signature
depend on the value?
no, I use the value-encoder to map the objects in the set to strings
and vice versa...
I didn't change the type of _value to be able to use the component
Kent Tong explains all this nicely in his book.
-Original Message-
From: Peter Stavrinides [mailto:[EMAIL PROTECTED]
Sent: 07 June 2007 09:17
To: Tapestry users
Subject: Re: Tutorial on Friendly URL's
Seen this page already, also tried the example at the bottom, but got
frustrated by
Hi all,
How would I write this without the If, with just one Insert
programmatically selecting the appropriate message key?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Seen this page already, also tried the example at the bottom, but got
frustrated by this line:
StringBuilder builder = new StringBuilder(_url);
This example is a copy paste effort from 4.0, there is no linkFactory ?
Igor Drobiazko wrote:
http://tapestry.apache.org/tapestry4.1/usersguide/fri
hows the release coming?
Jesse Kuhnert wrote:
I think I'm going to start a vote to release it this week, so if that
goes
well possibly this week.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html
Look into the section 'page-service-encoder'
On 6/7/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
Hi All
Can anyone point me to an up-to-date tutorial on friendly URL's, the
ones I have found so far are looking a little da
Hi All
Can anyone point me to an up-to-date tutorial on friendly URL's, the
ones I have found so far are looking a little dated. Ideally for
Tapestry 4.1.2
Thanks
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
55 matches
Mail list logo