I tried to use the latest 4.1.1 snapshot in the repository but got the
following error when I launch the application in the web browser. Can
anybody tell me why this is happening? I'm using tapestry-acegi. Don't know
if that is a problem. I would be very grateful for any help. Thank you.
jav
Hi all!
I have prolem with my Tomcat hangs (sometimes). I can see the following in
my logs:
Dec 6, 2006 4:43:13 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (10) are currently busy, waiting. Increase maxThreads
(10) or check the servlet status
But it occurres even on
Geoff Callender a écrit :
Want to build real world applications with Tapestry, but not sure
where to start? Try JumpStart - it's free!
http://files.doublenegative.com.au/jumpstart
OhOhOh... That's looking great for fresh beginner like me.
I'll try it today !
Thank you for that initiativ
Hi guys...
My goal would be to be able to define a bean in the spring config file like
this:
Code:
In this property class i would habe a setMessages(Messages messages). This
would help me to localize my PropertySelections...
Is there a way to get the messages object of tapestry in
I implemented something js based here: http://www.resa-air.com/a5/be
while wanting for the flights results to come up.
Len
www.len.ro
On Wed, 2006-12-06 at 13:07 -0800, Sam Gendler wrote:
> Does anyone have a mechanism for displaying some kind of please wait
> mechanism while waiting for a slow
Hi..
and how did you get this working?
thx
stefan
Marilen Corciovei wrote:
>
> I implemented something js based here: http://www.resa-air.com/a5/be
> while wanting for the flights results to come up.
>
> Len
> www.len.ro
>
> On Wed, 2006-12-06 at 13:07 -0800, Sam Gendler wrote:
>
>> Does
The concept is simple. You have 2 pages. The one from which you go and
the one which is supposed to follow which is rather slow. The first page
contains a hidden div which gets visible when the user submits the form.
This div is the one which you see with the animated gif. When the slow
page has fi
Hi!
thx for your helpful description!
if you cound create a little simple example it would be great.
thx for your effort
stefan
Marilen Corciovei wrote:
>
> The concept is simple. You have 2 pages. The one from which you go and
> the one which is supposed to follow which is rather slow. The f
If you're running on Java 5, fire up Jconsole and have a look at
Threads Tab. It'll tell you where your threads are hanging.
A common problem is leaking pooled Db-connections - but that's only a
guess.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf
Hi,
Ok it is actually quite ez to reproduce...
@EventListener(targets="chapterChooser",events="onchange",submitForm="f1",async=true)
public void getDistricts(IRequestCycle cycle){
String a = this.getFormA().getChapter();
ArrayList t = new ArrayList();
Thanks Marcus!
The thing is I'm running on hosted environment, I have only an SSH prompt.
I'll see if I can reproduce the problem on my local machine and use the
Jconsole.
For DB access I use Hibernate so I hope it's not leaking db-connections.
On 12/7/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]>
Yeah, you should inject a ValidationDelegate into your page and pass
it to your form as the delegate. Then, you can stick any arbitrary
error messages in the delegate, attached to particular fields or not.
So long as your error handling in the template renders every error,
rather than just the fi
Here it is:
http://www.len.ro/work/articles/please-wait-tapestry-component/view
hope it helps,
Len
On Thu, 2006-12-07 at 01:53 -0800, Stefan Esterer wrote:
> Hi!
>
> thx for your helpful description!
> if you cound create a little simple example it would be great.
>
> thx for your effort
> ste
if you have ssh access, then you can easily connect Jconsole to your
application via an ssh tunnel. Ssh allows you to set up a port on
your local machine which will simple transfer every byte received
across the ssh connection to any arbitrary port and host on the other
side of the connection.
I thought about doing that, but I wasn't convinced I could rely on all
browsers leaving the page visible until it received content for the
next page. Have you used this in IE 6 and 7, Firefox 1.5 and 2, and
Safari 2 by any chance? If not, I guess I'll check it out. It's
probably more typing than
It's probably more typing than my solution because of the number of
onClick handlers I'll have to add
Not sure if you can do it in your context, but instead of calling the JS
function in all buttons onClick, you could just call it in the FORM
onSubmit...
On Thu, 2006-12-07 at 03:45 -0800, Sam Gendler wrote:
> I thought about doing that, but I wasn't convinced I could rely on all
> browsers leaving the page visible until it received content for the
> next page. Have you used this in IE 6 and 7, Firefox 1.5 and 2, and
> Safari 2 by any chance? If n
On 12/7/06, Fred Janon <[EMAIL PROTECTED]> wrote:
>>It's probably more typing than my solution because of the number of
onClick handlers I'll have to add
Not sure if you can do it in your context, but instead of calling the JS
function in all buttons onClick, you could just call it in the FORM
o
To avoid making multiple changes you could wrap your @Submit component
into a @CustomSubmit which passes all informal parameters and add's the
onClick and then overwritting the @Submit with @CustomSubmit in
the .application (worked in 3.* don't know about 4.*)
Len
www.len.ro
On Thu, 2006-12-07 at
Unfortunately, my problem is that I need it on plain links as well as
in forms. Nothing I can't fix by just assigning a new class to any
link that needs the handler and then adding the handler via a
javascript method which iterates over all elements with the
'pleaseWait' class.
--sam
Sounds
if you can get the first bytes of the second (slow) page loaded you can
start that page with the html for a div to appear in the centre of the
screen in front of the "real" content.
The last thing on the page should be the html which moves this either away
to the left (negative coordinates) of t
Thanks for your answer.
I've just a problem with your solution : ILink link =
svc.getLink(false,params) doesn't work. This instruction stop the execution
but don't get any error message...
I've tested it with differents solutions :
1/
@InjectPage("NoviaMail_ReadMail")
public abstr
I haven't used EntityManagers directly, but your code looks fine to me,
especially if it works ;-)
You may want to wrap your flush( ) call in a try/catch block in case
something goes wrong, and roll back the transaction in the catch block.
Once you get more comfortable with things (and if you're
Hello
D&J Gredler a écrit :
I haven't used EntityManagers directly, but your code looks fine to me,
especially if it works ;-)
You may want to wrap your flush( ) call in a try/catch block in case
something goes wrong, and roll back the transaction in the catch block.
It works, but I've made chan
You are missing a required library.
http://tapestry.apache.org/tapestry4.1/tapestry-framework/dependencies.html
On 12/7/06, Henry Chen <[EMAIL PROTECTED]> wrote:
I tried to use the latest 4.1.1 snapshot in the repository but got the
following error when I launch the application in the web brows
Increase the max thread size on your tomcat context threadpool. It
looks to me like the log message is telling you a max of 10 is
currently allocated for this purpose now. (an abnormally low number)
On 12/7/06, Malin Ljungh <[EMAIL PROTECTED]> wrote:
Hi all!
I have prolem with my Tomcat hangs (
len,
on your blog can you please post a screen shot of how the "Please wait"
component display looks?
Thanks
Hi,
My project has the following requirements:
1. It is a poll component that can be inserted in any page, at any place
that user like.
2. We don't have the control on how it should be display in the page, so,
cannot have one global template page (e.g. jsp) to insert inside the page.
But, we can
It looks as you add the content to it's body. An example is here:
http://www.resa-air.com/a5/be
Len
On Thu, 2006-12-07 at 20:09 +0530, Karthik N wrote:
> len,
>
> on your blog can you please post a screen shot of how the "Please wait"
> component display looks?
>
> Thanks
Re
I have found another way to make this work.
Thanks for all
CU
MattHouston
MattHouston wrote:
>
> Hi !
>
> I have a probleme using the XTile component and cycle.activate.
> I do sth in AJAX with XTile and in my Java function who handle requests,
> sometimes i only receive and send request
I need a sanity check. :) So I have the following map of maps which I
need to persist in the user session:
@Persist
public abstract Map> getPageParameters();
public abstract void setPageParameters(Map>
params);
Everything seems to work fine except that if I clear my session by
deleting my cookies
Dennis Sinelnikov wrote:
Dear Fellow Tapestriers :),
I need to implement an EngineService that will return a specific file
living on a filesystem. I need to pass a parameter in the url that
specifies which file to return. I've searched the tapestry list serve
archives for an elegant solutio
What is the correct place to initialize a @Persisted property?
pageAttached() is too early it seems as the properties haven't been
updated but pageBeginRender() is too later since you have to update them
before rendering begins.
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.58
I do it in pageBeginRender. I suppose you could use pageValidate if you
need it a little earlier.
On Thu, 07 Dec 2006 17:20:45 +0100, Dan Adams <[EMAIL PROTECTED]> wrote:
What is the correct place to initialize a @Persisted property?
pageAttached() is too early it seems as the properties have
Spring 2 is released and I want to know if it´s compatible with tapestry
4.0.2 or even with 4.1??? Is there maybe a new Tapestry-spring.jar
available??
--
View this message in context:
http://www.nabble.com/Tapestry-and-Spring-2.0-tf2775514.html#a7742600
Sent from the Tapestry - User mailing li
I think it should be compatible, but don't quote me on that. In any
case I am using Spring 2 with tapestry without using tapestry-spring.
I use spring-2.0 @Configurable annotation to allow me to inject my
beans into any object including Tapestry pages and Hibernate entities.
I also use spring-anno
We are using Spring 2.0 and Tapestry 4.0.2 together with Trails 1.0-SNAPSHOT.
You can quote me on it :) 2.0 interfaces are pretty much the same as in
1.2.6. Context file schema has some minor changes and some test classes have
changed. Overall, there should be no problem switching.
Kalle
On 12/7
So I added an @InitialValue which calls a method to create the initial
map and this seems to have fixed it. After reading the enhancement
source I found out something tricky about this.
SpecifiedPropertyWorker.addReinitializer gets called if you don't set an
initial value and it basically does (fo
Hello all,
I have the following,
.page file,
.html file
What I want to know is if I can have
or something similar ?
--
Thanks
A Jabbar Azam
-
To unsubscribe, e-mail: [EMAIL PROTECT
I've ran into a problem that other people seem to have reported on the
mailing list before. But my unanswered question is: if you use @Persist
and @InitialValue, when does the value get set back from the session?
I've got the same problem someone else did where the property is set to
the same value
Thanks so much!
-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 7:56 AM
To: Tapestry users
Subject: Re: problem with 4.1.1 snapshot
You are missing a required library.
http://tapestry.apache.org/tapestry4.1/tapestry-framework/dependenci
Yes, it doesn't seem they work together - for me too... (on t4.0)
Cheers,
Ron
Dan Adams wrote:
> I've ran into a problem that other people seem to have reported on the
> mailing list before. But my unanswered question is: if you use @Persist
> and @InitialValue, when does the value get set back fr
Hello All,
I've just noticed that tapestry-flash required tapestry and hence
maven loaded tapestry 4.0.1 by default where I'm using currently
4.1.1-SNAPSHOT. What is wrong? Is dependency is incorrect or naming of
the tapestry is not correct in the flash.pom?
--
Best regards,
Renat Zubairov
You just need to add some "exclusions" as done here:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/pom.xml?view=markup
On 12/7/06, Renat Zubairov <[EMAIL PROTECTED]> wrote:
Hello All,
I've just noticed that tapestry-flash required tapestry and hence
maven loaded tapestry 4.0.1 by defau
In tapestry versions prior to 4.1 we rendered email message using tapestry
with the following code.
BaseHTMLMessagePage sendPage = (BaseHTMLMessagePage) getHtmlPage(inner);
ByteArrayOutputStream out = new ByteArrayOutputStream();
IMarkupWriter writer = new MarkupWriterImpl("text/html", new
PrintW
So, how do you set the initial value of a Persisted property to
something non-trivial?
On Thu, 2006-12-07 at 17:58 +0100, Ron Piterman wrote:
> Yes, it doesn't seem they work together - for me too... (on t4.0)
> Cheers,
> Ron
>
> Dan Adams wrote:
> > I've ran into a problem that other people seem
Thanks!
On 07/12/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
You just need to add some "exclusions" as done here:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/pom.xml?view=markup
On 12/7/06, Renat Zubairov <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I've just noticed that tapestry-fl
pageValidate happens when the page is first activated in the cycle.
Any annotations are also executed at this time, so @InitialValue has
already done its work when pageValidate is called
pageAttached happens just after that. It only fires once per request,
whether rewind or render
activateExtern
I don't know 4.1, but if you provide a Response and replace the
outputstream, you'll likely get what you want. You'll just have to
ensure the headers don't get sent, but I believe that is a method you
can overload in the Response.
--sam
On 12/7/06, Dave Kallstrom <[EMAIL PROTECTED]> wrote:
In
Looking in my code, I never set the initial value of a persistent
property to something non-trivial - always null - so I can't help,
other than to offer the .page or .jwc file, since you can certainly do
it in there, or else to initialize without an annotation. If you put
your init code in pageAt
Assuming currentChannel.bean returns a valid translator object, I
don't see why it shouldn't work. It would certainly work outside of
the loop. I do that all the time.
--sam
On 12/7/06, Jabbar <[EMAIL PROTECTED]> wrote:
Hello all,
I have the following,
.page file,
In general, however, you are advsied not to store mutable objects into
the session. The mechanism used to persist into the session should be
opaque to the programmer, and it is likely that a persistence
mechanism will only actually store an object if it has changed since
the last time it was stor
I typed up a long response, but then reread your question and I think
maybe I need some clarification. I included my original response below
in case it answers your question. If you are looking for something
that can be included in any page, rendered by any framework, then I'm
not sure you really
On 12/7/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
Increase the max thread size on your tomcat context threadpool. It
looks to me like the log message is telling you a max of 10 is
currently allocated for this purpose now. (an abnormally low number)
If this is really only occuring with one o
Thank you guys.
Sam, I totally agree with you. Increasing max threads will only delay my
worries. My ISP has increased max thread size to 40 so at least I'm unable
to reproduce my problem on one or two users.
I've tried to get the JConsole to work with SSH but with no luck, seems to
be tricky...
Hello,
Thank for your assistance again! It worked.
On 07/12/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
Assuming currentChannel.bean returns a valid translator object, I
don't see why it shouldn't work. It would certainly work outside of
the loop. I do that all the time.
--sam
On 12/7/06,
I'll clarify a little. In general, you want to keep persistence code,
ui code, and business rules fairly separate. This will keep your
application much more flexible as more and more requirements are added
over time.
In your example code, you've got persistence embedded directly in ui
code. Sh
I didn't do anything. You had it right to begin with ;-) It was a good guess.
--sam
On 12/7/06, Jabbar <[EMAIL PROTECTED]> wrote:
Hello,
Thank for your assistance again! It worked.
On 07/12/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
> Assuming currentChannel.bean returns a valid translat
Wow. Very good summary of best practices!
On 12/8/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
I'll clarify a little. In general, you want to keep persistence code,
ui code, and business rules fairly separate. This will keep your
application much more flexible as more and more requirements are
Hi,
Does anyone has a drag and drop tapestry component to share? Are there plans
to integrate dojo's drag and drop javascript into core tapestry?
Or can someone give me some guidelines as to how to do this in tapestry with
Dojo's javascript?
Thanks,
Emmanuel
I'm running Tapestry 4.1.1 snapshot, tomcat 5.5 on two machines. The speed
is kind of slow. I did a test on the workbench sample. The speed is much
slower than browsing the workbench sample on tapestry website. Does anybody
have this issue too? Any suggestions? Thanks a lot!
Well, at its simplest, you can just put straight dojo js code directly
in your template, a solution which requires absolutely no explicit
support from tapestry at all.
If you need the ability to reuse that code easily, then you could wrap
it up in a component, but nothing truly says you have to d
Do you have caching disabled? If you do, then tapestry is doing all
kinds of extra work on every request in order to detect any changes
that are made to the webapp between requests. Generally, caching will
be enabled via an environment variable set like this:
-Dorg.apache.tapestry.disable-cachin
if you look at the docs for tap 4.1, you'll see the contrib components
there. I haven't used them all, but table definitely works. I
haven't looked to see if it supports async operations now. My guess
is that that work has yet to be completed, but it will still work the
way it used to. I defin
Yes definitely. Disable caching has a HUGE performance hit (more then
you'd think). It also eventually causes your program to run out of
memory I've found.
On 12/7/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
Do you have caching disabled? If you do, then tapestry is doing all
kinds of extra w
I will look again at this problem at friday, and will debug into it to
learn more - this is somewhat heavier because using jboss, so debugging
isn't fun at all :(
Did you ever figure out what was going on with your bug? I had
similar problems a very long time ago (so I can't remember the exact
Damian Krzeminski wrote:
Dennis Sinelnikov wrote:
Dear Fellow Tapestriers :),
I need to implement an EngineService that will return a specific file
living on a filesystem. I need to pass a parameter in the url that
specifies which file to return. I've searched the tapestry list serve
archi
Thanks! You are right. I ran both debug and normal under same windows
console and that -Dorg.apache.tapestry.disable-caching=true is set in the
debug script.
Now much much faster...:D
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam
Gendler
Sent: Thurs
Slower than the website? Not sure what to say. I would probably need
more definitive metrics on what you mean by "slow" .
On 12/7/06, Henry Chen <[EMAIL PROTECTED]> wrote:
I'm running Tapestry 4.1.1 snapshot, tomcat 5.5 on two machines. The speed
is kind of slow. I did a test on the workbench sa
A bit of validation grief here (Tapestry 4.0.2), I hope someone can help or
provide an example of their own of this (besides the one in Kent Tongs
book).
I'm trying to create a custom validator that grabs maxLength and required
info from the data model. The "Bean" I define as the validator takes
ok naturally I stumbled over my own solution not 5 mins after posting this.
The solution was to change the bean-validator method to return true
public boolean getAcceptsNull() {
return true; // was false
}
The giveaway was when I actually typed something in and then got the
validation
Hi,
Wow! Thanks for your reply! I didn't figure out that anyone will bother to
help me out as this is not a technical question.
Actually, I haven't been expressed my question very well. Here are a few
points I like to clarify:
1. The page that my client submit will eventually sit inside the the
Well, the asnwer to your question is still yes, but it isn't a
'normal' use of Tapestry much as it isn't obvious how to do it in
struts, either. As a result, I'd recommend that you don't use
Tapestry. Given your tight schedule and lack of familiarity with the
framework, I suspect you'll have a wo
73 matches
Mail list logo