Page configuration and activation not exactly separated?

2011-02-23 Thread Vjeran Marcinko
Hello all, I just wanted to hear if current state of page configuration and activation is the desired one? (this is the reason for one of my architectural problems, but I don't want to go into details here since it will boil down to - why don't I use RequestFilters insted of page hiererchy fo

Re: Problem deploying tapestry webapp

2011-02-23 Thread Marek Matus
I had similar problem - the problem was that the class loader cannot load sax parser. I had to explicit define which sax parser should be loaded by setting: -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser Marek 2011/2/23 Ulrich Stärk > Can you give us some more inform

Re: Problem deploying tapestry webapp

2011-02-23 Thread Ulrich Stärk
Can you give us some more information? What request was sent to the server, can you post some code (page/component class and template)? Uli On 23.02.2011 22:35, Andreas Deininger wrote: > Hi all, > > I just created a first tapestry webapp. I can run mvn tomcat:run > locally, and everything is f

Problem deploying tapestry webapp

2011-02-23 Thread Andreas Deininger
Hi all, I just created a first tapestry webapp. I can run mvn tomcat:run locally, and everything is fine. However, after running mvn package and deploying the app to my server (apache tomat 6.0.10) I'm getting the error listed below. Any idea what's wrong here? Thanks Andreas Stacktrace: org.ap

Re: [5.1] NPE when re-rendering Zone with Blocks containing Forms

2011-02-23 Thread Rich M
Ah, thanks for the example! It was obvious right away what I was doing wrong. Turned out to be I simply forgot the t:zone parameter for the Form and ActionLink components encapsulated by the Zone, which would explain why Tapestry had been complaining when I was doing zone.getBody() as returns f

Re: [5.1] NPE when re-rendering Zone with Blocks containing Forms

2011-02-23 Thread Josh Canfield
> Hi, > > I'm getting the following error I can't reproduce the error. Can you create a cut down version that causes the problem? Here is my attempt to recreate. @Property private String blockId = "one"; @Component private Zone blockZone; @Component private Form oneFor

[5.1] NPE when re-rendering Zone with Blocks containing Forms

2011-02-23 Thread Rich M
Hi, I'm getting the following error Caused by: java.lang.NullPointerException at org.apache.tapestry5.corelib.components.Form._$environment_read_renderSupport(Form.java) at org.apache.tapestry5.corelib.components.Form.beginRender(Form.java:245) at org.apache.tapestry5.corelib.comp

Using HTTPS to secure tapestry pages

2011-02-23 Thread Matias Moran
Dear Tapestry users, how have you been? I'm writing this time to ask you about using HTTPS with Jetty. I followed the advices of the page http://tapestry.apache.org/tapestry5/guide/secure.html and others, but I wasn't able to make it work for all the pages at once. What I'm trying to do is secu

Re: Radio Button Event ??

2011-02-23 Thread Josh Canfield
> I do not find an event dispatched by the Radio allowing me to update the > "disabled" property of the select and textInput from my java code. Why do you need an event? Use the value bound to the radio button as the value of the disabled parameter. If you want to dynamically change the form the

Re: Radio Button Event ??

2011-02-23 Thread LLTYK
I'd do it in more or less pure javascript, since you will have to add a javascript listener to the radio button either way (either to trigger an event java side or to directly add/remove the disabled attribute from the fields). -- View this message in context: http://tapestry-users.832.n2.nabble

Radio Button Event ??

2011-02-23 Thread leandroaispuru
Hi everyone, I am having a problem with a page that has two Radio buttons, a Select and a TextInput. I need the Select or the TextInput to be disabled depending on the Radio that has been clicked. What is the best way to do it? I do not find an event dispatched by the Radio allowing me to update th

Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
awesome, thanks. R. On Wed, 2011-02-23 at 07:59 -0800, LLTYK wrote: > See the ZoneUpdater code: > http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html > > Disable the builtin actionlink behavior and do all you want your self > (zoneupdater shows how to do the zone part, with con

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
See the ZoneUpdater code: http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html Disable the builtin actionlink behavior and do all you want your self (zoneupdater shows how to do the zone part, with context parameter for sending little bits of information). I assume "fire back any

Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
Basically the page I have renders a filesystem tree, which the user can browse and select nodes in. It's built completely dynamically in javascript, within a Tap zone. When a user has finished browsing and clicks "Save" I need to a) fire back any selected nodes and b) update the zone. What I se

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
The wiki examples aren't terribly different, just change RenderSupport to JavaScriptSupport. And the addScript method may have changed slightly as well. var SomeMixin = Class.create(); SomeMixin.prototype = { initialize : function(element,zone) { Event.observe($(el

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
hi thiage, you're right HttpSessionActivationListener is another possibility :) i dont recreate the registry in my HttpSessionListener, i just reuse the one created by my tapestry listener My TapestryListener snippet (could be a filter): public class TapestryListener implements ServletContex

Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
With respect to the below question, it occurs to me that as I am wanting to submit data with my own js, i need to wait for the response before continuing with the actionlink event (update zone if good, don't otherwise) An alternative approach would be to include my data in the actionlink POST req

T5.2 mixin example

2011-02-23 Thread Richard Hill
Hi, I'm new to mixins and am looking for an example on how to create one. The one on the wiki is out of date (uses renderSupport). Basically what I want to do is have my own js function added to a single actionlink instance which, when the link is clicked, does an ajax update of some data on the

Localization resources precedence

2011-02-23 Thread Hugo Palma
Hi, i was hopping to clarify if the following is expected behavior or if it's some kind of bug. My application is running on the locale "pt_PT", and some component in a library doesn't have a SomeComponent_pt_PT.properties but has a SomeComponent.properties with the property "someProperty" set. I

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Thiago H. de Paula Figueiredo
On Wed, 23 Feb 2011 06:18:24 -0300, Kristian Marinkovic wrote: we've written an own listener (you can create a filter as well) that starts tapestry. this listener saves the registry in the servlet context so another serlvet listener can then access it. we use it in a HttpSessionListener to cl

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread jqzone
Can you show me the code ? 2011/2/23 Kristian Marinkovic > we've written an own listener (you can create a filter as well) that > starts tapestry. this listener saves the registry in the servlet context > so another serlvet listener can then access it. we use it in a > HttpSessionListener to cle

RE: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
we've written an own listener (you can create a filter as well) that starts tapestry. this listener saves the registry in the servlet context so another serlvet listener can then access it. we use it in a HttpSessionListener to clear lock if the user session expires. g, kris Von:jqzon

Re: Tapestry 5 - cache issue when accessed via proxy

2011-02-23 Thread sunmoor007
Yes Josh. Thats the only option we are trusting upon because setting "no-cache" related option in header doesnt seems to be working. Thanks Sundar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p3396707.html Sent

Re: Tapestry 5 - cache issue when accessed via proxy

2011-02-23 Thread sunmoor007
Hi Pablo Appreciate your response. We tried the option you mentioned but strangely still seeing the problem. We are still exploring other options. thanks Sundar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p339