add following instruction after you have started the thread:
Thread.currentThread().join()
changes are good that you main program (process) is terminated
before the thread is started.
g,
kris
"hua.jiang" <[EMAIL PROTECTED]>
10.09.2008 04:35
Bitte antworten an
"Tapestry users"
An
users@t
I ran mvn eclipse:eclipse from the tapestry-tutorial1 directory and it said
that it built successfully (actually, I was wanting to know how to update
the project via maven from _within_ eclipse), but I am still getting a bunch
of "cannot be resolved" errors for various imports. I had put this pro
Hello, every one. I met the following problem when trying to use tapestry-ioc
in a standalone program. According to the tapestry official site, a service
builder method should be invoked multiple times, if it is annotated with
@Scope("perthread") and the service is used in multi threads. So I wrot
Perhaps it's not much help, but you can see where commons-pool comes from
if you run:
mvn dependency:tree
Martin
On Tue, 09 Sep 2008 19:56:31 +0200, Ken in nashua
<[EMAIL PROTECTED]> wrote:
Well no where in my project is commons-pool specified anywhere. It is
implicitly being drawn i
I do remember the generics being a bit tricky but not too bad.
I will post what I have a bit later tonite.
-Luther
On Tue, Sep 9, 2008 at 12:24 PM, ProAdmin Dariusz Dwornikowski <
[EMAIL PROTECTED]> wrote:
> And it wokred for you ?
>
> public static void contributeAlias(Configuration
> confi
That's how I've been dealing with this scenario up til today, but this event is
fired from a form submission so I can't change the event name. Well I don't
think I can any way. ;-)
And thank you Howard for your explanation. That's fine, I don't think it's a
big deal. I do still think it'd be gr
Just technical reasons inside Tapestry. I still feel, strongly, that
an event that bubbles up should not expose the originating component.
For those following from the sidelines:
P --> A --> B
Page P contains component A which contains component B.
An action event is triggered on B.
A sees th
I think the best practice here is to create your own events, that way you
don't have to build dependencies on child components internal structure.
Your subcomponent would catch the events from it's dependencies and
translate them to events that it exposes.
http://tapestry.apache.org/tapestry5/apido
And it wokred for you ?
public static void contributeAlias(Configuration
configuration) {
configuration.add(AliasContribution.create(MarkupWriterFactory.class,
new XhtmlMarkupWriterFactoryImpl()));
}
I get error after insering that in AppModule. Eclipse says:
I followed the wiki instructions and the other posts here and yes, I am
generating correct XHTML now.
I haven't attempted to remove the superfluous tapestry css file nor have I
convinced the library to put the Content-Type meta tag first - but I'm
satisfied with valid XHTML.
The only other style
What version of Tapestry? This was addressed in 5.0.14, I believe, to
ensure that when overriding a base class event handler method, the
method is not invoked twice.
On Mon, Apr 21, 2008 at 6:25 AM, Leon Derks <[EMAIL PROTECTED]> wrote:
> Hi Davor,
>
> Indeed, I have a BasePage that implements th
Did you manage to achieve it in 5.0.14 ? Im very curious, how to do the Wiki
method in 5.0.14.
2008/9/1 Luther Baker <[EMAIL PROTECTED]>
> Is there a way to adjust the html that is generated - especially in the
> header?
>
> Specifically, the generated head section does not appear to be xhtml
> c
I'll add to that...
Once you have edited your pom to change the release version, and run mvn
eclipse:eclipse, make sure you check your Eclipse project's classpath to
make sure there are no lingering references to the old Tapestry jars.
> -Original Message-
> From: Toby Hobson [mailto:[E
Hi Leon,
I am facing the same problem with the onActivate() method calling twice.
Did you find any solution for this?
Thanks,
Yees.
-Original Message-
From: Leon Derks [mailto:[EMAIL PROTECTED]
Sent: Monday, April 21, 2008 6:56 PM
To: Tapestry users
Subject: Re: T5: onActivate() calle
Em Tue, 09 Sep 2008 11:17:46 -0300, Sven Homburg <[EMAIL PROTECTED]>
escreveu:
sorry, dont mean "spread", mean "advantage"
Faster startup time
Faster (at least it is my impression, no tests made)
More modular
Can be used embedded in an application
...
Thiago
---
sorry, dont mean "spread", mean "advantage"
2008/9/9 Sven Homburg <[EMAIL PROTECTED]>
> i know its off topic, and i dont want to start a discussion about what is
> better,
> only want know the spread of tomcet against jetty !?
>
> 2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]>
>
> Em
i know its off topic, and i dont want to start a discussion about what is
better,
only want know the spread of tomcet against jetty !?
2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]>
> Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]>
> escreveu:
>
> That's it then.
Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]>
escreveu:
That's it then. All my page and component classes are under
WEB-INF/classes.
So I need to either switch to Jetty or find a way to compile all my T5
classes to a jar file under WEB-INF/lib...
I think almost anyon
That's it then. All my page and component classes are under WEB-INF/classes.
So I need to either switch to Jetty or find a way to compile all my T5
classes to a jar file under WEB-INF/lib...
By the way, I did of course annotate the component field. This is not a
problem with syntax, I have a lot o
Em Tue, 09 Sep 2008 10:09:15 -0300, Inge Solvoll <[EMAIL PROTECTED]>
escreveu:
"Embedded component 'keyField' has no type. You should specify a type in
the component template, or define the component inside class
com.myapp.tapestry5.pages.admin.system.SettingsEdit using the @Component
annota
Hi!
1. I created a page and tested that it viewed nicely in my browser
2. I added a component via a private instance variable with type TextField
in my page class
3. I added a reference to that component in my .tml.
4. I get the following error in the browser, indicating that tapestry can't
see my
Hi Rob are you using the maven-eclipse plugin or just running mvn
eclipse:eclipse from the command line to generate the .project file?
Either way I think changing your pom to use the newer version should work.
If you are still having problems you can always delete the contents of your
.m2/reposito
Thanks a lot to you, two!
Regards,
Otho
2008/9/9 Kristian Marinkovic <[EMAIL PROTECTED]>
> hi,
>
> in addition you can add the desired fileName (as the last parameter) to
> the
> context of the ActionLink. this way the user will always see the link to a
> file if
> he hovers over:
>
> eg:
>
> @C
I found the answer by searching the list (see:
http://markmail.org/message/fjev6gt76fpc6akq) but I think the T5 documentation
should be updated to include these details.
I also wonder if allowing more specificity would be useful as an option even if
it did mean that changes in the child compone
I'm trying to handle an event in a parent component of one that fires the event
and it doesn't seem to work unless it's a generic catch all event handler like
onAction(). If I specify the component id like onActionFromThing() or
specifying component="thing" in an OnEvent annotation it doesn't ca
On Tue, Sep 9, 2008 at 10:21 AM, Hugo Palma <[EMAIL PROTECTED]> wrote:
> I've used tapestry-acegi with great success for securing both pages and
> methods:
>
> Check an example here
> http://www.localhost.nu/java/tapestry5-acegi/usage.html
>
> Another possibility, although i never actually tried i
Do you not just need to use literal: prefix on your string? Otherwise
Tapestry assumes it is a property. So how about...
Add a
project
Just a guess from reading
http://tapestry.apache.org/tapestry5/guide/parameters.html CTRL-F
"Binding Expressions"
Cheers
Russell
-Original Message-
hi,
could you post your page class?
if you need some heavy preparation you could inject
the page and call some methods:
public class Page1()
{
@InjectPage
private Page2 page2;
@Component
private ActionLink page2Link
Object onActionFromPage2Link()
{
page2.heavyInit
I've used tapestry-acegi with great success for securing both pages and
methods:
Check an example here
http://www.localhost.nu/java/tapestry5-acegi/usage.html
Another possibility, although i never actually tried it, could be to
define your own Secured annotation and contribute a custom worke
hi,
in addition you can add the desired fileName (as the last parameter) to
the
context of the ActionLink. this way the user will always see the link to a
file if
he hovers over:
eg:
@Component(parameter="context=literal:report.csv")
private ActionLink link
the generated link then will look
Hi,
Securing page access with an access controller injected as a
dispatcher in the render cycle is well described in the T5 wiki. But
How would I secure a service method on a page?
E.G. I have a page "DocumentPage" with a method onDownload(id docID).
When the URL DocumentPage/onDownload/5 is
If you set the "Content-Disposition" header in the response you can.
Add this to your page:
@Inject
private RequestGlobals requestGlobals;
Then somewhere before you return the stream response, do
requestGlobals.getResponse().setHeader("Content-Disposition",
"attachment; filename=" + );
Also, y
Hello all,
by defaullt a TextStreamResponse when meant to be saved on disk gets a
filname composed of for example
export.customers
Is there any way to override that to something like export_customers.csv
without having to rename classes and methods accordingly?
Regards,
Otho
33 matches
Mail list logo