Re: How to log page on-load time & page size

2013-01-25 Thread Markus Feindler
sorry, did not see, that the question has already been answered :) > > Original-Nachricht > Datum: Fri, 25 Jan 2013 11:40:00 +0100 > Von: "Markus Feindler" > An: "Tapestry users" > Betreff: Re: How to log page on-load time &a

Re: How to log page on-load time & page size

2013-01-25 Thread Markus Feindler
Hey, I don't think this is technically possible on server side, since assets are retrieved via separate http requests and there is no way for tapestry to determine which request belongs to what "page load". > > Original-Nachricht > Datum: Fri, 25 Jan 2013 01:36:42

Re: How to write a common propertie files for specific languages.

2013-01-11 Thread Markus Feindler
Use app.properties see http://tapestry.apache.org/localization.html ApplicationMessageCatalog > > Original-Nachricht > Datum: Fri, 11 Jan 2013 06:50:06 -0800 (PST) > Von: Anbazhagan > An: users@tapestry.apache.org > Betreff: How to write a common propertie files fo

Re: Disable Prototype / Tapestry default libraries

2012-10-20 Thread Markus Feindler
Got it, I overrode the CoreJavaScriptStack with an EmptyStack. Forgot how easy Tapestry is :) Hey, how would I disable Tapestry provided JavaScript libraries (Prototype, sciptaculous etc.) completely? Greets Markus - To

Disable Prototype / Tapestry default libraries

2012-10-20 Thread Markus Feindler
Hey, how would I disable Tapestry provided JavaScript libraries (Prototype, sciptaculous etc.) completely? Greets Markus - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users

Re: Tapestry-Portlet status?

2012-10-16 Thread Markus Feindler
Hm, it's hard to say since there are some basic features which don't function in the "bridge" (like returning a page or stream response in onactivate). I wouldn't recommend using it. > > Original-Nachricht > Datum: Tue, 16 Oct 2012 11:09:59 -0400 > Von: Lenny Prim

Re: Implement chat function

2012-03-30 Thread Markus Feindler
You might consider using xmpp, if it should be scalable. Hi, For our current project we need a kind of customer service chat function. A logged in user can see if there is an admin online and can start a one-to-one chat (simple text). Is there already something made for Tapestry like this? Or w

Re: T5.3.1 using jQueryMobile

2012-01-26 Thread Markus Feindler
Hi, about the preloading page issue: Isn't it sufficient to remove the HTTP-header X-Requested-With XMLHttpRequest, which is used by tapestry to determine ajax requests? > > Original-Nachricht > Datum: Thu, 26 Jan 2012 14:57:38 - > Von: Peter Stavrinides > An: Ta

Re: EventContext

2011-12-03 Thread Markus Feindler
Use URLEventContext: http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/internal/URLEventContext.html The ContextValueEncoder can be injected. Hi, this works: new PageRenderRequestParameters(Sample.class.getSimpleName(), new EmptyEventContext(), false); but if I

Re: Access component via http request

2011-06-30 Thread Markus Feindler
Then, why don't you use a page at all? Can I access a component out of the context of a page? i.e. does a component have to be bound to a Page to be rendered? I'm trying render a simple html template and fetch it from my JS. On Thu, 2011-06-30 at 17:38 -0300, Thiago H. de Paula Figueiredo wrot

Re: Multiple Portlets / Sharing SSOs

2011-04-19 Thread Markus Feindler
Hey Moritz, have a look at "PortletSessionImpl.class". try to replace session.setAttribute(name, value); by session.setAttribute(name, value, PortletSession.APPLICATION_SCOPE); Do the same for all methods (like getAttribute, getAttributeNames), where a scope can be defined: http://www.blue

Re: Rendering a Block

2011-02-26 Thread Markus Feindler
The thing is, he does not want to work with zones! Heh.. this is funny, but it sounds like the issue I just described in my "Grid with multiple forms" thread. Anyway, to call a Tapestry event from a JavaScript you probably want this in your javascript: function yourJavaScriptMethod(yourParameter

Re: Create a component event link for another page

2011-01-21 Thread Markus Feindler
lass); > return link.toRedirectURI() + ":yourEventName"; > > Add context is required > return link.toRedirectURI() + ":yourEventName/contextValue"; > > There might be a service for it somewhere but not much that can go wrong > here ;-) > > Cheers,

Re: Create a component event link for another page

2011-01-21 Thread Markus Feindler
erto Almagro > An: Tapestry users > Betreff: Re: Create a component event link for another page > > Maybe this can help? > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks > > Alberto > > 2011/1/21 Markus Feindler : &g

Create a component event link for another page

2011-01-21 Thread Markus Feindler
Hi, how to create a Component Event Link for a different page? This is not a suitable solution for my problem: http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html Best Regards Markus -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gm

Re: T5: archiving a page

2010-12-30 Thread Markus Feindler
Have a look at https://xhtmlrenderer.dev.java.net/ , it's exactly what you need. Selenium is neither suitable nor made for your use case. Hi, Is there a way to archive a page? say render it into a jpeg or a pdf ? Angelo -

Re: Dynamic form

2010-09-18 Thread Markus Feindler
Why do I need a notification? the value encoder handles that stuff. Did you try to submit the form after removing SubmitNotifier? Try it out. Because all fields are bound to the same property you need a way to be notified when a field value is set. The SubmitNotifier component is the way to do it

Re: Dynamic form

2010-09-18 Thread Markus Feindler
Why would you need a submit notifier? I checked out your book and it works fine without one. What you need is a combination of Loop, Delegate, and SubmitNotifier components and a couple of blocks inside your template. Check this out: http://code.google.com/p/tapestrybook/source/browse/trunk/tap

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
On Tue, Sep 14, 2010 at 11:05 AM, Markus Feindler wrote: Sounds plausible, but how would a MethodFilter help? It can retrieve the TransformMethodSignature, but how to use that to create an advise? Hmm... just took a look at the code again and I think I see the problem. / This creates

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
eMethod. I'm not sure why the getOrCreate is trying to implement the method if it's already there, but I'd guess it has something to do with your new TransformMethodSignature. Josh On Tue, Sep 14, 2010 at 10:20 AM, Markus Feindler wrote: @Christoph: Same Error @Josh Yes,

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
the interface too (return a raw map)? Have you looked at with a debugger? Stick a breakpoint right before the exception and take a look at the methods in the ctclass. I can't look at it now but I'll try to reproduce the problem tonight. Josh On Tue, Sep 14, 2010 at 9:47 AM, Marku

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
Just tried, does not work :(. Have you tried without specify Generic types ? 2010/9/13 Christophe Cordenier Oh, this is maybe due to generics... 2010/9/13 Markus Feindler public interface RequestParameterExtractor { Map extractRequestParameters(); } is not equal to

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
> Have you tried without specify Generic types ? > > 2010/9/13 Christophe Cordenier > > > Oh, this is maybe due to generics... > > > > 2010/9/13 Markus Feindler > > > >> > >> > >> public interface RequestParame

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
ks good ... The only thing i see is that the method signature is not exactly the same as the one declared in the interface. 2010/9/13 Markus Feindler Am 13.09.2010 22:18, schrieb Thiago H. de Paula Figueiredo: On Mon, 13 Sep 2010 17:02:02 -0300, Christophe Cordenier< christophe.cord

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
Am 13.09.2010 22:18, schrieb Thiago H. de Paula Figueiredo: On Mon, 13 Sep 2010 17:02:02 -0300, Christophe Cordenier wrote: Please, Can you provide your Tapestry Module class that contributes your worker ? And the worker itself? It seems two different worker instances are trying to add th

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
PageResponseRenderer Weird, does you Index page extends a base class ? 2010/9/8 Markus Feindler Sorry to bother you, but Im stuck with a DuplicateMemberException: Caused by: java.lang.RuntimeException: javassist.bytecode.DuplicateMemberException: duplicate method: extractRequestParameters in

jQuery Integration for 5.2

2010-09-09 Thread Markus Feindler
Hi, is there already jQuery Integration for Tapestry 5.2? Regards Markus - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-09 Thread Markus Feindler
rameters in custom > PageResponseRenderer > > Weird, does you Index page extends a base class ? > > 2010/9/8 Markus Feindler > > > Sorry to bother you, but Im stuck with a DuplicateMemberException: > > Caused by: java.lang.RuntimeException: > > javassi

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-08 Thread Markus Feindler
opertyWorker sources to have a simple example) HTH 2010/9/7 Markus Feindler So, I tried to follow your advice, but I don't see how to add a new method after calling "transformation.addImplementedInterface(MyInterface.class)". The documentation states to use transformation.getOrCreat

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-07 Thread Markus Feindler
e page instance, cast it to your interface and call the method. 2010/9/6 Markus Feindler Thats the class I discovered earlier at work. Now my question is how to get ClassTransformation and MutableComponentModel from the Page Object in the PageResponseRenderer? Thanks for you help/hints. Regar

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-06 Thread Markus Feindler
adapt this to your needs and extract values. At the moment, I don't see any other way to identify ActivationRequestParameters during link creation. 2010/9/6 Markus Feindler i would say you can get them from Request directly This only works for the current request. I need to get the param

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-06 Thread Markus Feindler
ng an interface that will contain the method that return the values. I will go deeper to see if there is not a more simple way of doing this. 2010/9/6 Markus Feindler Thats what Im doing right now for the PageActivationContext, but I also need the values for the ActivationRequestParameters (intro

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-05 Thread Markus Feindler
, see PageActivationContextCollector ? This is how it works to create links. 2010/9/5 Markus Feindler No, Im trying to upgrade "my" portlet implementation from 5.1 to 5.2 and up to now the activationrequestparameters aren't put in the url, cause I have to adjust my fo

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-05 Thread Markus Feindler
write output into a stream instead a redirect is done internally in the portlet container. Therefore I have to add the parameters to the ActionReponse (_actionResponse.setRenderParameter). In order to do so I need to get the parameters. That's not enough details. -- Josh On Sep 5, 2010, at

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-05 Thread Markus Feindler
Need it for portlet implementation. Hi What is the purpose ? I guess you are dealing with some kind of dynamic stuff, please can you give more details ? 2010/9/5 Markus Feindler Hey folks, I need to access page field values annotated with ActivationRequestParameters in order to retrieve

Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-05 Thread Markus Feindler
Hey folks, I need to access page field values annotated with ActivationRequestParameters in order to retrieve the values. Reflection doesnt work, because the fields are private and a java.lang.IllegalAccessException is thrown. Whats the right way to retrieve the values / activation request p

Re: Defense class gone in 5.2.1 ?

2010-09-04 Thread Markus Feindler
to their code base. On Sat, Sep 4, 2010 at 8:58 AM, Howard Lewis Ship wrote: Replaced it all with good ole' asserts. Sorry, but it was internal. On Sat, Sep 4, 2010 at 8:54 AM, Markus Feindler wrote: Hey, what happened to the "Defense" class

Re: Defense class gone in 5.2.1 ?

2010-09-04 Thread Markus Feindler
Howard Lewis Ship wrote: Replaced it all with good ole' asserts. Sorry, but it was internal. On Sat, Sep 4, 2010 at 8:54 AM, Markus Feindler wrote: Hey, what happened to the "Defense" class in 5.2.1? Is it replaced? cheers markus

Defense class gone in 5.2.1 ?

2010-09-04 Thread Markus Feindler
Hey, what happened to the "Defense" class in 5.2.1? Is it replaced? cheers markus - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Markus Feindler
Each zone in a loop must have a unique id, so you have to create an id for example like this: ${zoneId} private int idcounter; public String getZoneId() { return "randomtext" + idcounter++; } Otherwise only the first zone will be updated. Use id instead of t:id for zones. Hi All! You are

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Markus Feindler
He should also define the scope of the services, where the session is injected: @Scope(ScopeConstants.PERTHREAD) I'm not sure if it will solve your problem Borut but to get the session in your service, rather than binding your service with a no args constructor in the bind method of your AppMod

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Markus Feindler
The Transaction for the default session (sm.getSession()) is started automatically. So let tapestry handle the transaction stuff and just inject Session via constructor instead of HibernateSessionManager and dont begin a new transaction for the FullTextSession. Yes I have: [INFO] [dependenc

Re: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-11 Thread Markus Feindler
Great news, I enjoyed reading the german version of your book! Congratulations !! ;-) El 11/06/2010 1:03, Igor Drobiazko escribió: Hello folks, great news for all of you who wished my Tapestry 5 book to be translated into English. Manning Publications informed me today that the translation a

Re: context on pages.

2010-06-10 Thread Markus Feindler
Hi, you are missing the onPassivate(){ return blah; } in your page class. Furthermore you don't have to do foo.setBlah(blah) <- should that be setBlah(fooBlah?), because the parameter is bidirectional. Please correct me, if I'm wrong. Markus Hey, I have a page Foo which has a component

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Markus Feindler
Hi, how would I pass services to a domain object? what do I have to configure? For Example if I read some objects from a database via hibernate, where I dont have any control of instantiation. Martin Strand schrieb: On Tue, 25 May 2010 12:07:05 +0200, Andreas Berg wrote: The only way I see

Re: using a landing page to direct to other pages

2010-05-19 Thread Markus Feindler
Well, I think this is what he's trying to avoid: a client redirect (http redirect). He wants to delegate the request to a different page using the same request/response cycle. You would rather use a ComponentRequestFilter for that: Change the PageRenderRequestParameters and send them to the nex

Re: Documentation Request/Suggestion

2010-04-16 Thread Markus Feindler
Howard may be forgiven :) Howard is stuck in London due to Volcano. Never thought that'd be my status. Howard is also jet-lagged, exhausted and sick. On Fri, Apr 16, 2010 at 11:24 AM, Markus Feindler wrote: So?? Howard? So a community-driven documentation effort is out o

Re: Documentation Request/Suggestion

2010-04-16 Thread Markus Feindler
So?? Howard? So a community-driven documentation effort is out of the question unless we come up with a system or procedure that complies with ASF rules. We could just require to sign a CLA for people that want to help out with documentation. This would mean to give rights to modifiy/creat

Re: Asset service issues in GAE

2010-04-13 Thread Markus Feindler
Well, dont you lose the benfits of localisation and versioning when using direct paths? Your files aren't handled by the Asset Dispatcher anymore, instead the request handler for static files does the work > > Original-Nachricht > Datum: Tue, 13 Apr 2010 00:23:57 -

Re: Google Summer of Code 2010

2010-03-25 Thread Markus Feindler
The last issue (https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12314122) does not exist. > > Original-Nachricht > Datum: Thu, 25 Mar 2010 09:41:36 +0100 > Von: "Ulrich Stärk" > An: Tapestry users > Betreff: Google Summer of Code 2

Re: Documentation Request/Suggestion

2010-03-24 Thread Markus Feindler
What about developing such a system in Tapestry, document the code and use it as a guide? Two birds with one stone. > > Original-Nachricht > Datum: Wed, 24 Mar 2010 08:46:30 +0100 > Von: "Ulrich Stärk" > An: Tapestry users > Betreff: Re: Documentation Request/Sugg

My contribution to Portlet Functionality

2010-02-25 Thread Markus Feindler
Hey guys, I have extended the jira portlet commitments by Trun Le Xuan and Kristina B. Taylor. XHR Requests and Resource Serving have been added. Up to now it's only working with liferay, because some features rely on the liferay api (see link for more information). You can find a detailed r