RE: HibernateSessionSource - error - thx for any assistance

2013-05-27 Thread Ken in Nashua
strange... I can run fine on eclipse in a reverted source code branch... but if I deploy love... it quits with the hibernate session creation failure Seems I need to wait for the release to deploy live again ouch

Re: Can tapestry run on Android

2013-05-27 Thread Ken in Nashua
http://powerplayhockey.noip.us:9011/pphl/home my tapestry app runs fine on my droid III kinda cramped though

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Dmitry Gusev
I can see one problem here -- nothing prevents you from specifying more than one @DefaultValue and you may get a conflict too late, as far as I see you can't control this. Have you thought about it? On Tue, May 28, 2013 at 12:23 AM, Eli Doran wrote: > I've used @Symbols a lot. I appreciate its

Re: Can tapestry run on Android

2013-05-27 Thread Ryan How
Thanks. I will try it, just doing some preliminary investigation before investing some time. I haven't done any android development before, so I only know the basic theory. Thanks, Ryan On 28/05/2013 11:53 AM, Kalle Korhonen wrote: On Mon, May 27, 2013 at 8:44 PM, Ryan How wrote: Sorry, ju

Re: Can tapestry run on Android

2013-05-27 Thread Kalle Korhonen
On Mon, May 27, 2013 at 8:44 PM, Ryan How wrote: > Sorry, just to clarify a bit I mean hosting it on Android. There is a port > of Jetty for Android, so will it run in that, but does Tapestry require > some libs that aren't on android? > The bare bones Tapestry should run fine. It's very simple

Re: Can tapestry run on Android

2013-05-27 Thread Ryan How
Sorry, just to clarify a bit I mean hosting it on Android. There is a port of Jetty for Android, so will it run in that, but does Tapestry require some libs that aren't on android? Thanks, Ryan On 28/05/2013 11:39 AM, Chris Cureau wrote: Tapestry itself runs on a web container, like tomcat. T

Re: Can tapestry run on Android

2013-05-27 Thread Chris Cureau
Tapestry itself runs on a web container, like tomcat. The served pages will operate in chrome in android and probably firefox as well, though I haven't tested it there. You can also use jQuery mobile for added capabilities, but a dedicated project like tapestry-jQuery doesn't exist yet as far as I

Can tapestry run on Android

2013-05-27 Thread Ryan How
Hi, I was just wondering before I look too closely if anyone knows if a Tapestry webapp can run on Android? I see there is an Android port of Jetty. Thanks, Ryan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o

Re: Page Url rewriting in tapestry

2013-05-27 Thread Boris Horvat
I guess I am a bit tiered as I just manage to move the code from one implementation to the other and it worked. So now PageRenderLinkTransformer implementation can handle this transformation. Thanks for the help everyone On Tue, May 28, 2013 at 12:41 AM, Boris Horvat wrote: > At first glance (a

Re: Page Url rewriting in tapestry

2013-05-27 Thread Boris Horvat
At first glance (and small try) this look like something I can use. So here is my idea. I can use this interface "ComponentEventLinkEncoder" to contribute my own logic that will strip the prefixed path from the link. However I am not sure what should I return if dont want any transformation. Shoul

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Bob Harner
Having an optional default value on @Symbol seems useful to me. On Mon, May 27, 2013 at 4:42 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 27 May 2013 17:23:36 -0300, Eli Doran wrote: > > I've used @Symbols a lot. I appreciate its flexibility and coercion >> ability. >

how to trigger onValueChanged from AutoComplete mixin?

2013-05-27 Thread George Ludwig
I've got a custom textfield that uses the autocomplete mixin. Everything is working great except that when the user clicks on an item in the matchlist, the onValueChanged event is not triggered. I'm it's possible, but I'm in over my head. As far as I can tell, I would need to trigger an event base

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Thiago H de Paula Figueiredo
On Mon, 27 May 2013 17:23:36 -0300, Eli Doran wrote: I've used @Symbols a lot. I appreciate its flexibility and coercion ability. I started programming around it though and instead accessing SymbolSource and TypeCoercer directly because it is missing the ability to specify a default value, a

Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Eli Doran
I've used @Symbols a lot. I appreciate its flexibility and coercion ability. I started programming around it though and instead accessing SymbolSource and TypeCoercer directly because it is missing the ability to specify a default value, and the ability to ignore when a value can't be found. I ma

RE: how to inject an environment variable

2013-05-27 Thread Ken in Nashua
Thanks Dmitry, I am able to keep developing. I reverted back to hibernate 3. And making more progress. I stepped too fast into the hibernate revisions and got bit. Appreciate the help. Its a great forum to share and I hope to give back for others when I see too. - cheers

Re: Page Url rewriting in tapestry

2013-05-27 Thread Lance Java
Not sure if this will help but thought it might be of interest. I've written a ComponentEventLinkEncoder which looks for "special" URL prefixes. If a "special" folder is found on the URL, it is removed from the URL and passed on to the normal tapestry component rendering. The "special" folder (whic

RE: Image can't be seen inside a zone

2013-05-27 Thread Nomen Nomanum
Also, in the zone I get following error from the firebug: ConnectioncloseContent-EncodinggzipContent-Typetext/html;charset=UTF-8DateMon, 27 May 2013 18:05:00 GMTServerApache-Coyote/1.1Transfer-EncodingchunkedX-Tapestry-ErrorMessageException%20in%20method%20null%2C%20parameter%20%231%3A%20Exceptio

Tapestry IoC: @Startup with ordering constraint

2013-05-27 Thread Eli Doran
I like the simplicity of using the @Startup annotation compared to the startup contribution method. However, it doesn't have the ability to order its execution as in the contribution method. It seems it would be a simple thing to accept the ordering constraint in the annotation like: > @Startup(

RE: Image can't be seen inside a zone

2013-05-27 Thread Nomen Nomanum
Hi Thiago! OK, my scenario is following. I have stored location of the file to db, and it is being pulled from there by public String getPictures(){ if (picture.getPictureLocation() == null || picture.getPictureLocation().isEmpty()) { return "picturesFolder/no_image.png";

Re: Page Url rewriting in tapestry

2013-05-27 Thread Boris Horvat
I was thinking about that but I dont see it will fit in what I need. Right now what I need is to somehow generate a link to the page that "doesnt exist' since decodePageRenderRequest will make sure that that link is processable. To me at least this looks like a bug, why would a component throw an

Re: Image can't be seen inside a zone

2013-05-27 Thread Thiago H de Paula Figueiredo
On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum wrote: Ok, this behavior is very strange to me now. I have stored key location of my file in db, and it is being pulled via getImages to show the images to the user, however set of images from one article is displayed, and from the others

Re: integration of tapestry-security gives a dependency cycle

2013-05-27 Thread D.R.
ok, seems that another lib is causing this error and not tapestry-security itself. kind regards david On 27.05.2013 09:04, D.R. wrote: > Hi @all, > > i try to add tapestry-security and have provided the two contributions > described on their homepage: > http://tynamo.org/tapestry-security+guide

Re: Page Url rewriting in tapestry

2013-05-27 Thread Alejandro Scandroli
Hi Boris, Have you consider using tapestry.application-folder? http://tapestry.apache.org/configuration.html#Configuration-tapestry.applicationfolder If you are using two instances of the same application using tapestry.application-folder would be your best option. Is that the case? or you want t

Re: how to inject an environment variable

2013-05-27 Thread Dmitry Gusev
@Inject @Symbol("env.VAR_NAME") private String varName; On Mon, May 27, 2013 at 10:35 AM, Ken in Nashua wrote: > Hi Folks, > > Is there a way to inject an environment variable into my page somehow ? > > I would like to automate production mode to anchor off of a OS env var. > been searc

Re: Page Url rewriting in tapestry

2013-05-27 Thread Boris Horvat
So my idea was that in my class that contributes to the tapestry url I would have 2 methods decodePageRenderRequest - that looks for the page under given subfolder and transformPageRenderLink - that strips the actual folder (since i need to put it or pagelink component would fail) My assumption

integration of tapestry-security gives a dependency cycle

2013-05-27 Thread D.R.
Hi @all, i try to add tapestry-security and have provided the two contributions described on their homepage: http://tynamo.org/tapestry-security+guide Accessing my page gives me a warning: [WARN] TapestryModule.ComponentRequestHandler Unable to add 'SecurityFilter' as a dependency of 'PageGlobal

Re: how to inject an environment variable

2013-05-27 Thread Dmitry Gusev
But if all you need is to switch execution mode you should read this: http://tapestry.apache.org/configuration.html#Configuration-SettingExecutionModes and probably http://tapestry.apache.org/symbols.html On Mon, May 27, 2013 at 10:55 AM, Dmitry Gusev wrote: > @Inject @Symbol("env.VAR_NAME