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 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 markus.feind...@gmx.de An: Tapestry users users@tapestry.apache.org Betreff: Re: How to log page on-load time

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 anbazhaga...@snovabits.net An: users@tapestry.apache.org Betreff: How to write a

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:

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

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 Primak

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

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

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

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

Re: Multiple Portlets / Sharing SSOs

2011-04-20 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:

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

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!

Re: Create a component event link for another page

2011-01-21 Thread Markus Feindler
albertoalma...@gmail.com An: Tapestry users users@tapestry.apache.org 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 markus.feind

Re: Create a component event link for another page

2011-01-21 Thread Markus Feindler
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, Joost On 21/01/11 11:22 AM, Markus Feindler wrote: No, I do not want to send

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 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:

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

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
PageResponseRenderer Have you tried without specify Generic types ? 2010/9/13 Christophe Cordenier christophe.corden...@gmail.com Oh, this is maybe due to generics... 2010/9/13 Markus Feindler markus.feind...@gmx.de public interface RequestParameterExtractor

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 Cordenierchristophe.corden...@gmail.com Oh, this is maybe due to generics... 2010/9/13 Markus Feindlermarkus.feind...@gmx.de public interface RequestParameterExtractor { MapString,

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
@Christoph: Same Error @Josh Yes, I also removed the Generic Map from the Interface. Just checked in debug method: the method indeed already exists (breakpoint: line 1443 InternalClassTransformationImpl). But how come? Its never added through my code. Did you take the type parameters off of

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
of getOrCreate'ing it. Josh On Tue, Sep 14, 2010 at 11:05 AM, Markus Feindler markus.feind...@gmx.de 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

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
, 2010, at 9:51 AM, Markus Feindler markus.feind...@gmx.de wrote: 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 Feindlermarkus.feind...@gmx.de Hey folks

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 christophe.corden...@gmail.com wrote: Please, Can you provide your Tapestry Module class that contributes your worker ? And the worker itself? It seems two different worker

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
public interface RequestParameterExtractor { MapString, String extractRequestParameters(); } is not equal to: TransformMethodSignature extractMethod = new TransformMethodSignature(Modifier.PUBLIC, MapString, String, extractRequestParameters, null, null); ? Everything

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-09 Thread Markus Feindler
: Retrieve ActivationRequestParameters in custom PageResponseRenderer Weird, does you Index page extends a base class ? 2010/9/8 Markus Feindler markus.feind...@gmx.de Sorry to bother you, but Im stuck with a DuplicateMemberException: Caused by: java.lang.RuntimeException

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-08 Thread Markus Feindler
need to get the parameters. That's not enough details. -- Josh On Sep 5, 2010, at 9:51 AM, Markus Feindler markus.feind...@gmx.de wrote: 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

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-07 Thread 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.getOrCreateMethod, but where to define the message body? Actually, I would implement a

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-06 Thread Markus Feindler
Thats what Im doing right now for the PageActivationContext, but I also need the values for the ActivationRequestParameters (introduced in 5.2: http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html). Hi So why not passivate the

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-06 Thread Markus Feindler
i would say you can get them from Request directly This only works for the current request. I need to get the parameters, which will be set for the next request/redirect. It would be possible to write get methods for the ActivationRequestParameters, but that would not be the right way. I

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-06 Thread 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. Regards markus Hi Logic is enclosed in ActivationRequestParameterWorker, i think you can

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

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 Feindlermarkus.feind...@gmx.de Hey folks, I need to access page field values annotated with ActivationRequestParameters

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-05 Thread 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 former 5.1 custom response renderer. If the Request is an ActionRequest (see Portlet lifecycle) you can't write output into a

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: Defense class gone in 5.2.1 ?

2010-09-04 Thread Markus Feindler
thanks for your response, I don't want to create a new thread for this: is 5.2.1 dependant on spring and hibernate? when I try to start my application I had to add the hibernate and spring libraries due to NoClassDefFoundErrors. After having added them, I keep getting the following

Re: Defense class gone in 5.2.1 ?

2010-09-04 Thread Markus Feindler
Ah, my bad, had all tapestry libraries in classpath :) thanks for your response, I don't want to create a new thread for this: is 5.2.1 dependant on spring and hibernate? when I try to start my application I had to add the hibernate and spring libraries due to NoClassDefFoundErrors. After

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: [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

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]

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

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 si...@taz.de wrote: The

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

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

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 markus.feind...@gmx.de wrote: So?? Howard? So a community-driven documentation

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=hiderequestId=12314122) does not exist. Original-Nachricht Datum: Thu, 25 Mar 2010 09:41:36 +0100 Von: Ulrich Stärk u...@spielviel.de An: Tapestry users users@tapestry.apache.org

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 u...@spielviel.de An: Tapestry users users@tapestry.apache.org

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