T5: Get remote IP address without Request/GlobalRequest?

2009-01-08 Thread Kit Yeung
Hi all, I have some utilities classes (that is not in Page nor Component so I can't @Inject request) and I want to get remote IP from those classes, is there any way to get IP address directly without passing the request/globalrequest object from the Page/Component? Thanks Kit

Re: T5: Get remote IP address without Request/GlobalRequest?

2009-01-08 Thread Francois Armand
Kit Yeung wrote: Hi all, I have some utilities classes (that is not in Page nor Component so I can't @Inject request) and I want to get remote IP from those classes, is there any way to get IP address directly without passing the request/globalrequest object from the Page/Component? In fact

Re: Rapid turnaround with Tapestry 5 blog post

2009-01-08 Thread Hugo Palma
I'm using IDEA8 and live class reloading is working just fine for both page/component classes and templates. I've also configured a run configuration that executes in my case the tomcat:run goal. The tomcat plugin then runs the application inplace looking for the classes in the target/classes dir w

RE: [ANN] ChenilleKit Release 1.0.0

2009-01-08 Thread Newham, Cameron
Nice and thanks for the hard work, but please provide some **documentation** !!! I see very little information on the Chenille Kit site - some parts, like the Scripting page, are just blank. I'm currently using the t5 Components library and would move to this new version but without documentation

Re: Tapestry 5 + Scala : an hello world example

2009-01-08 Thread Andreas Andreou
org.codehaus.groovy.maven.runtime gmaven-runtime-default 1.0-rc-3 org.codehaus.groovy.maven gmaven-plugin 1.0-rc-3

Re: [T5] Any component nullpointer

2009-01-08 Thread Ville Virtanen
Hi again. Should have read the documentation properly: the clientid is available only after the component has rendered itself. Sorry for bothering, I'll close the JIRA now. - Ville Ville Virtanen wrote: > > Hello all. > > I have opened JIRA with instructions to replicate. See > > https:/

[T5] How to get a list of the current instances of an ASO?

2009-01-08 Thread Ovidiu Hurducas
Greetings! I want to access the list of currently logged in users in my application and display it (along with user name, log in time, etc). The user at log in time initialize an ASO and stores all the required data in it. There is a way to access all those ASOs for all the users that exists at a

Re: [T5] How to get a list of the current instances of an ASO?

2009-01-08 Thread Ulrich Stärk
Ovidiu Hurducas schrieb: Greetings! I want to access the list of currently logged in users in my application and display it (along with user name, log in time, etc). The user at log in time initialize an ASO and stores all the required data in it. There is a way to access all those ASOs for all

Re: [T5] How to get a list of the current instances of an ASO?

2009-01-08 Thread Ovidiu Hurducas
Thanks! I was thinking on a list too. Because the application runs in a clustered environment this list must be sync-ed on all nodes. I think I will try to use this with a caching technique like JBoss cache. I was lazy and I thought there is a ready made tapestrish solution for this :) On Thu, J

Re: [ANN] ChenilleKit Release 1.0.0

2009-01-08 Thread Massimo Lusetti
On Thu, Jan 8, 2009 at 11:26 AM, Newham, Cameron wrote: > Nice and thanks for the hard work, but please provide some > **documentation** !!! You and all others who have pointed out this are just plain right! The main goal for the next version is just that... documentation. Have a nice day -- M

using prop: binding to evaluate an expression?

2009-01-08 Thread Brian Long
Hi, in tapestry 4 you could use ognl to check a page property in a expression like disabled="ognl:!nextAvailable" or ognl:(nextAvailable == false)", I'm wondering is we can do something similar in T5 without using ognl, just using the prop: binding prefix alone, for example public final b

Re: [T.5.0.18] Errors_it.properties encoding problem

2009-01-08 Thread Massimo Lusetti
On Wed, Jan 7, 2009 at 7:40 PM, Roberto Iannone wrote: > The .../corelib/components/Errors_it.properties is encoded in ISO-8859-1 and > it's a problem because (if I don't misunderstand) tapestry reads the > properties using UTF-8. You're right. The localization properties file was submitted long

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Andy Pahne
Hi, this is definetly not possible with T 5.0.x. I think Howard already checked in some changes in T 5.1 that make it possible. As a workaround you could use ognl as in T4. See http://www.chenillekit.org/chenillekit-tapestry/ognlbinding.html Andy Brian Long schrieb: Hi, in tapestr

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Andy Pahne
Ah, and you could also do it like this: public boolean isNextPageLinkDisabled{ return ! sth; } Andy Brian Long schrieb: Hi, in tapestry 4 you could use ognl to check a page property in a expression like disabled="ognl:!nextAvailable" or ognl:(nextAvailable == false)", I'm wonderin

RE: Tapestry Upgrade problem

2009-01-08 Thread Mike Wasserman
It now makes sense to me why the _components map is empty when getComponent() is called. The map is never populated because no componentIds are found when PageLoder.construct() tries to get them off the IComponentSpecification, (PageLoader line: 358). The loop that in which the component creatio

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Howard Lewis Ship
I've been making improvements to the property expression language for 5.1, and there will soon be a boolean not operator. Already you can now invoke methods with parameters, and the upper/lower bounds on range expressions are themselves expressions. (i.e, you can now say "from .. to" where from an

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Hugo Palma
Is support for accessing class static fields also planned ? That would be great. On Thu, Jan 8, 2009 at 5:10 PM, Howard Lewis Ship wrote: > I've been making improvements to the property expression language for > 5.1, and there will soon be a boolean not operator. > > Already you can now invoke me

Re: T5's Ajax/Zone implementation has substantial limitations

2009-01-08 Thread Chuck Kring
I think it's important to separate the core tapestry zone infrastructure from the Javascript zone wrappers. I have a lot of Ajax in my application - it's a systems management console /dashboard - and pretty early on I decided to use the Tapestry zone Javascript as template and use my own javas

RE: Tapestry Upgrade problem

2009-01-08 Thread Mike Wasserman
We've tracked the problem further and it appears to be a thread safety problem in the PageLoader class. We have pop-ups in our app that are seperate Tapestry pages and we think that they may be clobbering each other when getting loaded. Is this possible? From:

Re: Tapestry Upgrade problem

2009-01-08 Thread Andreas Andreou
I want to take a look, but got two questions... - you said you tried several VMs, does that include 1.6 ones? - Does https://issues.apache.org/jira/browse/TAPESTRY-2708 seem related? On Thu, Jan 8, 2009 at 8:18 PM, Mike Wasserman wrote: > We've tracked the problem further and it appears to be a t

Tapestry AssetSource

2009-01-08 Thread raulmt
Hi, I'm trying to obtain the URL of an image (which is in the context, but the path is obtained from the DB) to pass it to a Flash application. This is the line i'm using: String imageURL = assetSource.getAsset(null, sewerGraph.getMapImagePath() , threadLocale.getLocale()).toClientURL(); The va

Re: Tapestry Upgrade problem

2009-01-08 Thread Andreas Andreou
Also, add an issue at https://issues.apache.org/jira/browse/TAPESTRY in order to track this and add more info, e.t.c. On Thu, Jan 8, 2009 at 9:03 PM, Andreas Andreou wrote: > I want to take a look, but got two questions... > - you said you tried several VMs, does that include 1.6 ones? > - Does h

Re: Tapestry Upgrade problem

2009-01-08 Thread Howard Lewis Ship
Sounds like you may be on to something! On Thu, Jan 8, 2009 at 10:18 AM, Mike Wasserman wrote: > We've tracked the problem further and it appears to be a thread safety > problem in the PageLoader class. > We have pop-ups in our app that are seperate Tapestry pages and we think that > they may b

Re: Tapestry AssetSource

2009-01-08 Thread Howard Lewis Ship
The Link interface has a method, toAbsoluteURI(), that does what you want. Unfortunately, Asset doesn't have that method. One approach would be to override the symbol SymbolConstants.FORCE_ABSOLUTE_URIS to "true". This turns off the request path optimizations that are causing you trouble. On Th

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Howard Lewis Ship
Hadn't really planned on it; the last thing I want is for some OGNL-like messiness with fully qualified class names in the template. On Thu, Jan 8, 2009 at 9:16 AM, Hugo Palma wrote: > Is support for accessing class static fields also planned ? That would be > great. > > On Thu, Jan 8, 2009 at 5

Re: Tapestry AssetSource

2009-01-08 Thread raulmt
Thanks Howard. But is it normal that the path optimization doesn't considers the context params of a page then? Are there cases where the context params shouldn't be considered? (I understand that is the problem with the path optimization, doesn't it?). Howard Lewis Ship wrote: > > The Link int

Re: Tapestry AssetSource

2009-01-08 Thread Howard Lewis Ship
The relative paths are only relevant when rendering a page. At that time, the base URL of the rendered page is known, it is the current request path. The issue for you is that you are effectively changing the base URL on the fly on the client side, and Tapestry isn't prepared for that. On Thu, J

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread Hugo Palma
I don't either, but i think there are ways to get this working without that messiness. My suggestion is for the property resolver to look for static fields. So that the expression "prop:myComponentProperty.SOME_STATIC_FIELD" could be resolved, even if myComponentProperty resolves to null. This wo

problem with t:formdata

2009-01-08 Thread jgn
t:formdata is too big on a page that I have (5MB or more). I have a form with only 12 fields and I display a table with 14 rows, the problem is that if the loop component that displays the tables is inside the form, the t:formdata becomes huge. If is not inside the form, it works just fine :D. T

Re: using prop: binding to evaluate an expression?

2009-01-08 Thread jgn
There is a Link to t5components on the tapestry home page. there you can find a way to use ognl on t5 while t5.1 is released: http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html Just download the jars (do not forget the dependencies) and you can use ognl. I have used and

Re: problem with t:formdata

2009-01-08 Thread Fernando Padilla
by default t:loop serializes the source list into t:formdata, so that in can have predictable form processing. But if you can reconstitute the source list used by the loop, and understand that the form might behave erratic in some edge cases ( if the list changes between form render and form h

Google and t:grid

2009-01-08 Thread James Hillyerd
Google is indexing the different sorted versions of my grid components. ie: http://simobjects.net/manufacturer/view.grid.columns:sort/aircraftType?t:ac=5 This makes it look like I have a bunch of pages with identical content, which google doesn't like. It also makes the site more brittle, becaus

Re: problem with t:formdata

2009-01-08 Thread jgn
Thank you, It works :). I think that I won't have any problem because I do not have fields on the loop, just LinkSubmit components, thank you. Fernando Padilla wrote: > > by default t:loop serializes the source list into t:formdata, so that in > can have predictable form processing. But if yo

Re: is T4 dead ?

2009-01-08 Thread Inge Solvoll
Good question. As far as I can see, more than half of all posts to this mailing list is about T5. Wouldn't it be better if the mailing lists were splitted into two, to improve focus for both parts? Let's face it, T4 and T5 have very little in common, apart from a small group of people who support