If you are moving to maven the you will have the maven plug-in to run your app,
and the default maven setup will work out of the box, so really there is very
little for you to configure.
Add your source folders (and matching resource folders) to the build path,
configure the output folder and
The file synch approach worked nicely. But it would be nice to hear about
other and possibly better solutions, as this is a hack that is a bit
cumbersome to distribute among our developers...
My environment:
T5.1.0.5
Eclipse 3.4
Vista 64 bit
Java 1.6u17 64 bit
Jetty 6.1.12rc1
I have configured j
I have a login page where I am using an external javascript file to validate
the username and password field.
But at times I am getting script error in IE 6,7,8 - 'tapestry' is
undefined.Also in IE 8, error in line 1 of
effects.js,prototype.js,tapestry,js,scriptaculous.js which are added by
tap
Thanks a lot! I'll try it in the afternoon when I get time.
joshcanfield wrote:
>
>
> Here is fully functioning code that accepts search parameters in an
> object on one page and transfers the object to another for rendering.
> ...
>
--
View this message in context:
http://www.nabble.com/pa
Hello again.
What I have to is to have one page with entity:
Then I want to pass this entity to another page, and in that next page I
want to use it's all fields to perform hibernate query to find matching
records and display them on this second page.
Thanks,
Adam
Thiago H. de Paula Fi
Hi,
Also make 100% sure that there aren't multiple javassists (different
versions in classpath) AND that the included javassist version is the right
one. Check this from the produced war, do NOT trust what the ide is saying
;)
Sometimes we have had problems like this, but those were because mave
I haven't seen enough code to really understand what you are doing
wrong. Storing your search criteria in the session is a reasonable
approach. Don't store your search results in the session though, that
would be a scalability nightmare...
Here is fully functioning code that accepts search paramet
Hello,
How can I obtain a service from the IoC registry inside a static
initializer? Injection doesn't seem to work with static members, so I need
to access the registry directly, or is there a better way?
Thanks,
Benny Law
Don't think I can help you much, but I can verify the same sendError
and error configurations work for me on Tomcat 5.5 (haven't tried on
Tomcat 6).
Kalle
On Tue, Oct 6, 2009 at 3:05 AM, Jan Jirout wrote:
> Hi All,
>
> I'm playing some time with t5. I have meet simple problem. I hope that it's
Hi,
Thanks for reply. It seems to me like work around. You suppose me to
change place where I detect that page can't be found to different
one. When I place this logic of detecting invalid page in filer then
I'll do this work two times. Once time in filter and second time I'll
examine th
Em Tue, 06 Oct 2009 17:39:17 -0300, Fermin Da Costa Gomez
escreveu:
Using Eclipse, my Compiler compliance level is set at 1.5 already and
still. What OS are you using?
Ubuntu. But I guess it's not operating-system related.
The @OnEvent i understand but i can't find a 'ready made' entry f
>
> If given a choice between documentation and resolving this particular
>> issue i would always opt for the resolution of the issue. I would even be
>> willing to make a montary donation to get it out of the way!
>>
>
> Howard, the framework creator and main committer, has plans to stop using
>
Em Tue, 06 Oct 2009 17:13:01 -0300, Fermin Da Costa Gomez
escreveu:
If given a choice between documentation and resolving this particular
issue i would always opt for the resolution of the issue. I would even
be willing to make a montary donation to get it out of the way!
Howard, the fra
Hi Thiago,
public class Search {
>>>public List onProvideCompletionsFromFieldName(String partial)
>>> {
>>>return new ArrayList();
>>>}
>>>
>>>
>> this method name is quite long. Did you try to use a shorter one?
>>
>
> Example:
>
> @OnEvent(EventConstants.PROVIDE_COMPLETIONS)
> pu
Hi Gunter,
we were also hit by some spurios javassit failures.
>
> Fermin Da Costa Gomez schrieb:
> > public class Search {
> > public List onProvideCompletionsFromFieldName(String partial)
> {
> > return new ArrayList();
> > }
> >
>
> this method name is quite long. Did you try to
Em Tue, 06 Oct 2009 16:43:29 -0300, 976 escreveu:
Thanks for the reply - I'd have never thought it's stored in context in
such way.
The activation context is a concept I only found in Tapestry (don't know
about other frameworks).
What If I want to store a collection of clients.
It's n
Thanks for the reply - I'd have never thought it's stored in context in such
way. What If I want to store a collection of clients. Anyways, what I do in
SearchClient is running the setClient() method of ClientsList, as I suppose
it's not being used at all how is the data supposed to be placed in t
Em Tue, 06 Oct 2009 14:52:44 -0300, Gunter Winkler
escreveu:
public class Search {
public List onProvideCompletionsFromFieldName(String
partial) {
return new ArrayList();
}
this method name is quite long. Did you try to use a shorter one?
Example:
@OnEvent(EventConsta
Em Tue, 06 Oct 2009 14:36:51 -0300, 976 escreveu:
How should then onActivate and onPassivate look like?
Suppose your Client class has the following properties: id (an Integer),
firstName, lastName.
Your onActivate would look like this (not tested):
private Client client;
public void onA
Sorry for posting this here, but I don't see a convenient way to send an
e-mail to the dev list without subscribing
On this page:
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Errors.html
the entry is unterminated.
I don't think the world wi
One option is to use a hidden iframe, not technically ajax but it achieves
the same result
2009/10/6 Pete Poulos
> Ok, so if what you are saying is correct, then unless I want to use
> yet another technology on this project (which i don't) I will have to
> forget using ajax and reload the whole
Hello Fermin,
we were also hit by some spurios javassit failures.
Fermin Da Costa Gomez schrieb:
> public class Search {
> public List onProvideCompletionsFromFieldName(String partial) {
> return new ArrayList();
> }
>
this method name is quite long. Did you try to use a short
How should then onActivate and onPassivate look like?
When I use onActivate(Client client) - it's not invoked at all.
I know I can put search and results on the same page - even almost decided
to do so but thought that's stupid that I need to change my vision because
I'm not able to sth that seeme
Another option which avoids reliance on class name:
$$('[id^=techFirstName]')[0]
J
One option here is to put your non-Java resources into a folder,
src/main/resources, and mark that folder as a classes folder (not a
source folder). classes folder are simply added to the runtime path
with no copying. This is what I do.
On Tue, Oct 6, 2009 at 7:59 AM, Peter Stavrinides
wrote:
> W
Em Tue, 06 Oct 2009 13:45:47 -0300, 976 escreveu:
It's just:
http://localhost:/crm/client/listclients
in SearchClient on submit button I run:
Object onSuccess() {
listClients.setClient(client);
return listClients;
}
The onActivate() and onP
It's just:
http://localhost:/crm/client/listclients
in SearchClient on submit button I run:
Object onSuccess() {
listClients.setClient(client);
return listClients;
}
the client is the object that holds data thanks to which I want to retrieve
cl
Ok, so if what you are saying is correct, then unless I want to use
yet another technology on this project (which i don't) I will have to
forget using ajax and reload the whole page?
Can does anyone else have a work around on the problem? Can anyone
shed some light on what's going on?
Thanks,
Pe
Hello
- Note that if you want to have only one submit button in one form, it is
possible to use the tapestry grid and loop component with a value encoder to
have a global submit.
- If you want to add rows dynamically, have a look the AjaxFormLoop that
also have an encoder parameter.
By the way,
Hi !
OK I'll try ...
I have a table where each row contains a form with some hidden fields
(year,week) + a field to enter percentage value plus s a submit button.
How would you port this!
Currently I am testing to pass a context to the form and It seems like that
might be the right track
Hi Gunnar
Maybe you could give us a higher level explanation of what you are trying to
achieve i.e. what is the business logic driving this? In my experience when
migrating from a technology like struts or servlets to tapestry it's best to
rethink your whole strategy, instead of thinking in terms
>From my point of view activate/passivate should be used with simple
parameter (numerical ids...) if you want to persist complex object accross
request, @Persist is maybe a better solution that serializing the whole
criterium object in the request.
@Persist("flash") should be deterministic, in you
Hi!
Ok the ${} was a typo ... I havent tested the page yeat you know!
My problem is that each form pass a context (in three hidden fields) back to
the server and how is this best done!
But I just saw that I could pass a t:context attribute to my form so I will
try that solution.
E.g I will now
What is your exact environment / configuration?
- Original Message -
From: "Inge Solvoll"
To: "Tapestry users"
Sent: Tuesday, 6 October, 2009 10:57:30 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Jetty lock on JS-files in classpath breaks eclipse autobuild
Hi!
I'm having pr
Em Tue, 06 Oct 2009 11:51:17 -0300, Gunnar Eketrapp
escreveu:
Hi !
Hi!
The problem is that I would like to take one property as the
inparameter and another as the out parameter.
Why?
Never use ${} as a component parameter. Never!
--
Thiago H. de Paula Figueiredo
Independent Java
Hi !
I am porting a project from a ancient technology (starts with j and ends
with p) and have come across a loop where
a form is created inside the loop.
The form has three hidden fields + a text field and my question is how is
this best done the T5 way ... I looked in the howto's
but couldn't
Can you give us the URL that fails ?
2009/10/6 976
>
> You mean in ListClients?
> When I add EventContext it's always class EmptyEventContext.
>
>
> Thiago H. de Paula Figueiredo wrote:
> >
> >
> > Em Tue, 06 Oct 2009 10:58:03 -0300, 976 escreveu:
> >
> >> Thanks for fast response.
> >> ListCl
You mean in ListClients?
When I add EventContext it's always class EmptyEventContext.
Thiago H. de Paula Figueiredo wrote:
>
>
> Em Tue, 06 Oct 2009 10:58:03 -0300, 976 escreveu:
>
>> Thanks for fast response.
>> ListClients:
>> public void onActivate(){
>
> You're ignoring the activa
When I add EventContext it's always class EmptyEventContext.
Thiago H. de Paula Figueiredo wrote:
>
> Em Tue, 06 Oct 2009 11:07:15 -0300, 976 escreveu:
>
>> When I add parameter the activate method is not being invoked at all -
>> also tried with two different activate methods;(
>
> Try on
Em Tue, 06 Oct 2009 11:07:15 -0300, 976 escreveu:
When I add parameter the activate method is not being invoked at all -
also tried with two different activate methods;(
Try onActivate(EventContext context). It will be called regardless of the
number of parameters. Also take a look at
ht
When I add parameter the activate method is not being invoked at all - also
tried with two different activate methods;(
cordenier christophe wrote:
>
> I think you should add a parameter to your activate method to respond to
> the
> corresponding passivate method.
>
> Christophe
>
>
--
Vie
Em Tue, 06 Oct 2009 10:58:03 -0300, 976 escreveu:
Thanks for fast response.
ListClients:
public void onActivate(){
You're ignoring the activation context. You should get it through an
onActivate(EventContext context) method and then set the field(s)
containing the search criteria
Thanks - as I described in first post - I've tried that.
When I use @Persist this value is ALWAYS there, and I ALWAYS get data
retrieved from client query and I have separate link for SearchClients where
I want to list all clients. When I use flash type the behavior is
nondeterministic.
Is there
I think you should add a parameter to your activate method to respond to the
corresponding passivate method.
Christophe
2009/10/6 976
>
> Thanks for fast response.
> ListClients:
>public void onActivate(){
>System.out.println("___ List activate");
>if(cli
Thanks for fast response.
ListClients:
public void onActivate(){
System.out.println("___ List activate");
if(client==null){
System.out.println("getting all");
clients = clientService.getClients();
Em Tue, 06 Oct 2009 10:55:13 -0300, Newham, Cameron
escreveu:
I've never used onPassivate()
You should. ;)
You need to have @Persist otherwise the value will be null.
That's another solution, as long as you don't need to support different
searches in different tabs.
--
Thiago H. de
I've never used onPassivate()
You need to have @Persist otherwise the value will be null.
-Original Message-
From: 976 [mailto:amsc...@gmail.com]
Sent: 06 October 2009 14:48
To: users@tapestry.apache.org
Subject: Re: passing values between pages (search -> result)
Hi.
Thanks for the i
Can you post your activate and passivate methods ?
2009/10/6 976
>
> Hi.
> Thanks for the info - I've read it all again, and added passivate returning
> my search criteria client in SearchClient and list of clients in ClientList
> and still no luck;(
> I added sysouts in activate and passivate m
Hi.
Thanks for the info - I've read it all again, and added passivate returning
my search criteria client in SearchClient and list of clients in ClientList
and still no luck;(
I added sysouts in activate and passivate methods and one in setter and the
output is:
___setting client with name: John
_
typo ... should have been $$('.billing') ... i need some new glasses!
2009/10/6 Toby Hobson
> I can confirm that both Thiago's and Christophe's approaches work. In the
> end I used Thiago's suggestion because although I gave the example of
> needing to copy one text field, in fact I needed to do
I can confirm that both Thiago's and Christophe's approaches work. In the
end I used Thiago's suggestion because although I gave the example of
needing to copy one text field, in fact I needed to do this for 10 fields so
passing 20 clientIds to a javascript function/constructor was less than
ideal.
Hello
Have you tried with a ComponenRequestFilter instead ?
Christophe
2009/10/6 Jan Jirout
> Hi All,
>
> I'm playing some time with t5. I have meet simple problem. I hope that it's
> not my fault.
>
> So.
>
> I would like to handle "Error 404" in my application so I have in web.xml:
>
>
Hello
Have a look at http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
If you want to use 'activate' you have also to define the pending
'passivate' method.
Christophe.
2009/10/6 976
>
> I'm totally new to Tapestry (2 days playing with it), but I'm stuck with
> quite simple problem;(
Hi All,
I'm playing some time with t5. I have meet simple problem. I hope that
it's not my fault.
So.
I would like to handle "Error 404" in my application so I have in
web.xml:
app
/*
REQUEST
ERROR
I'm totally new to Tapestry (2 days playing with it), but I'm stuck with
quite simple problem;( (At least I guess so).
What I want to to is to create 4 pages for Client entity:
- list (list all clients or ones from search result)
- edit
- add
- find
Didn't have any problems with first three, but
Also consider the validateForm event that gets fired before success and after all individual form
fields have been processed. This is the right point for cross-field validation.
Uli
Am 06.10.2009 09:30 schrieb dirk.latterm...@bgs-ag.de:
Peter Stavrinides schrieb am 06.10.2009
09:07:53:
Val
> Your form does not need the Submit component, just an ordinary HTML tag.
Whether I use a component to render a submit button, or use the standard
submit button doesn't change the fact that the form is calling javascript
that doesn't work. The method, Tapestry.waitForPage(event) that is added
Hi!
I'm having problems with my development environment.
First of all: I have set the useFileMappedBuffer=false in
/etc/webdefault.xml
My problem is that Tapestry 5 Javascript files located in WEB-INF/classes
and subfolders are locked by Jetty. This prevents eclipse from deleting
WEB-INF/classes
Thanks Thiago, never thought about this approach.
Even if class is not unique, we would be able to find my elements like this
too.
Peter Stavrinides schrieb am 06.10.2009
09:07:53:
> Validation question - at which point are property values set before post
They seem to be set after the input field validators complete.
>
> //This code works
> public void onSuccess() throws SQLException {
>
> if(isTerminated()){
>
Hi everyone,
I came across what seems a strange scenario to me, using Tapestry 5 validation.
I am looking for a little understanding more than anything else with regards to
'the point at which properties values are set, before a form posts'... please
examine this code snippet:
//This code wor
61 matches
Mail list logo