Actually, I found that I can do what I need to do in beforeRenderTemplate.
Bill
On Thu, Aug 14, 2008 at 6:42 PM, Bill Holloway <[EMAIL PROTECTED]> wrote:
> Back to this one again! I have two components. One inherits from
> Grid; the other, GridRows. My GridRows subclass has a setupRender and
>
Em Thu, 14 Aug 2008 21:59:16 -0300, Angelo Chen
<[EMAIL PROTECTED]> escreveu:
Object onActivate(Object obj)
obj will always be the first part of the path, example, if I pass
www.mydomian.com/mypage/123
obj contains only 'mypage', is there a way to get also '123'?
Use Object[], List or Event
Hi Filip,
This works very well, just a quick question, in this function:
Object onActivate(Object obj)
obj will always be the first part of the path, example, if I pass
www.mydomian.com/mypage/123
obj contains only 'mypage', is there a way to get also '123'?
angelo
Filip S. Adamsen-2 wrote:
Back to this one again! I have two components. One inherits from
Grid; the other, GridRows. My GridRows subclass has a setupRender and
beginRender.
If either one has arguments (MarkupWriter w, Event e), I get a
java.lang.AbstractMethodError with the stack trace listed at the
bottom of this mess
I'm seeing the same thing. The email constructor is passing Void.class as
the constraintType, but it looks like it should be passing null.
I've filed a jira ticket https://issues.apache.org/jira/browse/TAPESTRY-2585
Josh
On Tue, Aug 12, 2008 at 5:32 PM, Dave Dombrosky <[EMAIL PROTECTED]> wrote:
In order to protect my application against cross site forgeries I am
using a LinkFactory that adds a sid to every link (see:
http://wiki.apache.org/tapestry/Tapestry5CSRF)
Because every action link now contains a sid parameter (ie URL looks
something like "some_url?sid=1234") some Javascript funct
Hi,
This is weird. I run Tapestry 5.0.14 in production on Tomcat 5.5 with no
issues whatsoever wrt. the Expires header.
Can you reproduce this on different systems?
-Filip
On 2008-08-14 23:12, Krishna Caldas wrote:
Hi,
The Expires header parameter (set after fix of
https://issues.apache.or
Hi,
The Expires header parameter (set after fix of
https://issues.apache.org/jira/browse/TAPESTRY-2159) is not working as
expected in JBoss/Tomcat.
For tapestry.js these are the headers:
===
JBoss/Tomcat Response Headers
Server Apache-Coyote/1.1
X-Powered-By
Igor Drobiazko wrote:
As described in TAPESTRY-2519 you need to override the service
ClasspathURLConverter. Something like that:
public class MyClasspathURLConverterImpl implements ClasspathURLConverter
{
public URL convert(URL url)
{
if (url.getProtocol().startsWith("bundle"))
As described in TAPESTRY-2519 you need to override the service
ClasspathURLConverter. Something like that:
public class MyClasspathURLConverterImpl implements ClasspathURLConverter
{
public URL convert(URL url)
{
if (url.getProtocol().startsWith("bundle"))
{
On Thu, Aug 14, 2008 at 12:16 PM, Christian Edward Gruber
<[EMAIL PROTECTED]> wrote:
> On 14-Aug-08, at 15:06 , Thiago H. de Paula Figueiredo wrote:
>>
>> I even started to play with Javassist, but unfortunately I had other
>> things to do at the time.
>> Almost all times I think of it I think of w
On 14-Aug-08, at 15:06 , Thiago H. de Paula Figueiredo wrote:
I even started to play with Javassist, but unfortunately I had other
things to do at the time.
Almost all times I think of it I think of writing a Spring-esque
annotation-driven transaction management package for Tapestry-
IoC .
i wrote a short documentation how to use the scheduler service
http://212.202.126.8:8080/chenillekit/chenillekit-quartz/index.html
i hope its helps someone
2008/8/14 Sven Homburg <[EMAIL PROTECTED]>
> chenillkit has a ready quartz module.
> it works for two of my customers.
>
> the only snag is
Em Thu, 14 Aug 2008 15:54:36 -0300, Howard Lewis Ship <[EMAIL PROTECTED]>
escreveu:
Wait, Javassist has documentation now ? :-)
I was thinking specifically about this tutorial:
http://www.csg.is.titech.ac.jp/~chiba/javassist/tutorial/tutorial2.html.
;) :)
I even started to play with Ja
Wait, Javassist has documentation now ? :-)
The bytecode stuff has a number of advantages over reflection. It's
2x to 5x faster (that number shifts with every JDK release). It can
be inlined and optimized by Hotspot. We don't waste time creating
Object[] arrays for parameters and boxing and unb
Can anyone comment on this?
I have a button rigged up for an entity remove operation.
My listener is being invoked twice.
Is this a known bug? is there a workaround? I do not want to use @Button
because is lacks listeners.
code follows...
Best rega
Good to know.
I just didn't see any code in the repository. ;)
Robert
On Aug 14, 2008, at 8/1411:05 AM , Sven Homburg wrote:
chenillkit has a ready quartz module.
it works for two of my customers.
the only snag is the outstanding documentation.
i hope that i find some minutes to do that this
Em Thu, 14 Aug 2008 12:48:27 -0300, Filip S. Adamsen <[EMAIL PROTECTED]>
escreveu:
I'm not quite sure why Index works and Start doesn't. But it does.
Start was the old Tapestry 5 page name for the root application path. Now
it's Index, and not just for the root application path, but for an
Em Wed, 13 Aug 2008 21:00:01 -0300, Jim Tomlinson <[EMAIL PROTECTED]>
escreveu:
I'm vapor-locking on how to specify a List of values in a Form
component's context parameter. In this form:
Try this instead:
public List getContext() {
List list = new ArrayList();
lis
Em Wed, 13 Aug 2008 18:50:41 -0300, Bill Holloway <[EMAIL PROTECTED]>
escreveu:
I think really that *runtime* reflection is eliminated. I wonder if
the bytecode generation is really faster than reflection. At any
rate, to accomplish elimination of runtime reflection isn't the
bytecode genera
chenillkit has a ready quartz module.
it works for two of my customers.
the only snag is the outstanding documentation.
i hope that i find some minutes to do that this week
2008/8/14 Robert Zeigler <[EMAIL PROTECTED]>
> you could use a dispatcher instead of a request filter, inserted after the
>
I'm not quite sure why Index works and Start doesn't. But it does.
Regarding URL rewriting, I guess that's possible. I wouldn't rely on
this "feature", though. I'm not sure it's supposed to work like that.
-Filip
On 2008-08-14 16:52, Angelo Chen wrote:
Hi Filip,
renaming Start to Index work
Hi Filip,
renaming Start to Index works, don't know why? what's the difference between
Start and Index? this means we can actually do some URL rewriting in the
onActivate(Obj)? that will be easier then using a HttpServletRequestFilter,
say if somebody type:
www.mydomain.com/12345/profile
then w
I suppose you meant @ContentType("text/xhtml").
This doesn't work, though. At least not for me. I get a download prompt
for the page, then.
Same thing happens in Internet Explorer with
@ContentType("application/xhtml+xml"), so that doesn't work either.
Ugh.
-Filip
On 2008-08-14 16:17, How
you could use a dispatcher instead of a request filter, inserted after
the asset dispatcher.
That way, only non-asset requests trigger the db update.
You could adapt your filter to only fire the update on non-asset
requests by explicitly checking the url (for matching patterns, for
instance
Hi,
Try renaming Start to Index and see if that helps.
-Filip
On 2008-08-14 16:30, Angelo Chen wrote:
hi,
This is my Start.tml, i assume it's the same as Index.tml, but the first
onActivate is not called, any idea?
public class Start
{
Object onActivate(Object obj) {
System.out.p
hi,
This is my Start.tml, i assume it's the same as Index.tml, but the first
onActivate is not called, any idea?
public class Start
{
Object onActivate(Object obj) {
System.out.println("index a");
return PageNotFound.class;
}
// use Start to load the home page so th
I need to update that wiki page.
You can also just at @ContentType("text/html") to your page.
On Thu, Aug 14, 2008 at 5:12 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Have a look at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml.
>
> -Filip
>
> On 2008-08-14 14:11, Andy Pahne w
Hi,
I have no experience with OSGi, but perhaps this issue can help:
https://issues.apache.org/jira/browse/TAPESTRY-2519
-Filip
On 2008-08-14 15:09, Atle Prange wrote:
Hi,
i am currrently trying to integrate tapestry into an OSGI container
using apache felix and the ops4j pax web service. (F
Yes, it will. If the path isn't valid, Tapestry will pass it as the
activation context to onActivate on your Index page.
-Filip
On 2008-08-14 15:16, Angelo Chen wrote:
Thanks for the fast response, but I can not quite understand, my setup is
like this:
I have a Start.tmp which in turn call the
Thanks for the fast response, but I can not quite understand, my setup is
like this:
I have a Start.tmp which in turn call the /Home page, based on what you
said, the
Start's onActive(Object obj) will be called if a invalid path is supplied?
Filip S. Adamsen-2 wrote:
>
> Yeah, there is. At leas
Hi,
i am currrently trying to integrate tapestry into an OSGI container
using apache felix and the ops4j pax web service. (For many interesting
reasons, one of them is the possibility to add services to the webapp at
runtime...)
I have managed to register the Tapestry filter, and load my app
Yeah, there is. At least I do that...
I use onActivate on my Index page like this:
Object onActivate(Object obj) {
return ErrorNotFound.class;
}
Then, in my ErrorNotFound page, I set the HTTP Status Code to 404 to
make the search engines happy:
@Inject
private RequestGlobals requ
hi,
how to define a default page that will be shown to the browser if a non
existing path is entered? example:
www.mydomain.com/page1, page1 does not exist, tomcat will display a HTTP
Status 404 - /page1, any way to re-direct this in t5 app to a t5 page?
thanks.
angelo
--
View this message in c
Thanks a lot again!
I'll try that out.
Regards,
Otho
Hi,
Glad it worked.
I have something similar in my application, but instead of using a
RequestFilter I use a PageRenderRequestFilter.
This is only called for pages and has the added benefit of giving you
easy access to the page name, parameters, etc.
There's something similar for component
Hi,
Glad it worked.
I have something similar in my application, but instead of using a
RequestFilter I use a PageRenderRequestFilter.
This is only called for pages and has the added benefit of giving you
easy access to the page name, parameters, etc.
There's something similar for component
Hi,
Have a look at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml.
-Filip
On 2008-08-14 14:11, Andy Pahne wrote:
I have a component, that's renders an img tag.
@BeginRender
public void renderIcon(MarkupWriter writer) {
Asset icon = getSrc();
writer.element("img
I have a component, that's renders an img tag.
@BeginRender
public void renderIcon(MarkupWriter writer) {
Asset icon = getSrc();
writer.element("img",
"src", icon.toClientURL(),
"alt", getAlt());
resources.renderInformalParameters(writer
The equanda project has released a new version.
equanda is a an open source framework which allows generation of a base
JEE application, including DAO layer and tapestry5 based user interface
from a domain model. The DAO layer uses a EJB3 backend with possibility
for powerful declarative const
Just use properties files named the same as your Tapestry 5 filter.
In web.xml:
example
org.apache.tapestry5.TapestryFilter
example.properties, example_fi.properties etc.
Place this file in the same directory as your web.xml.
- 99
Andy Pahne-3 wrote:
>
>
> For localizati
For localization I could use a global message catalogue, because there
are some terms to translate that appear on many pages and inside many
components.
Is such a global message catalogue available?
Andy
-
To unsubscribe
any demos about the FormInjector?
Some link will be great!
I check the apache svn,but it seems not the FormInjector example.
--
Yet Another Java EE Developer!
Hi, I'd like to display an array of string.
on the java class (JobList.java) i have this get method:
public abstract void setKonter(int kont);
public abstract int getKonter();
public String[] getJobGroups() {
try {
this.jo
Thank you very much for the answer. Works perfectly!
But this brought up a new question. The UserActivityFilter is used to track
a users last activity to check for "active users at the moment". The
simplistic approach I use at the moment updates a database table with a
reference to user and a tim
45 matches
Mail list logo