Component Replacer service

2013-10-14 Thread Lenny Primak
Voited: https://issues.apache.org/jira/browse/TAP5-1611 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-14 Thread Lenny Primak
I know of its existence but didn't really use it. I can do it with a visitor, but all of these approaches are clunky. It should be implemented in Tapestry itself. I really don't understand why Bootstrap people didn't make horizontal form the default. I guess because it's harder to get right :

Re: [Eloquentia] Failed to execute goal on project eloquentia

2013-10-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Oct 2013 23:17:14 -0300, Chris Mylonas wrote: Hi Thiago & Tapestry Users, Today is my first day of exploring Tapestry (& Security) in many months. Hello, Chris! Nice to see you here in the mailing list again. :) It was a delight to see the announcement of Thiago's project - goo

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Oct 2013 22:29:57 -0300, Lenny Primak wrote: I have tried to implement this using a mixin, but it gets too complicated for my taste. The problem is that the each label and component has to be surrounded with (for example) which requires really digging around elements with Mar

[Eloquentia] Failed to execute goal on project eloquentia

2013-10-14 Thread Chris Mylonas
Hi Thiago & Tapestry Users, Today is my first day of exploring Tapestry (& Security) in many months. It was a delight to see the announcement of Thiago's project - good leadership man! Anyway, I downloaded the zip from githug and ran mvn package [INFO] ---

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-14 Thread Lenny Primak
I have tried to implement this using a mixin, but it gets too complicated for my taste. The problem is that the each label and component has to be surrounded with (for example) which requires really digging around elements with MarkupWriter (error prone) I think BeanEditor should be able to sup

Re: Is there a Tap method that fires in component on ajax request

2013-10-14 Thread George Christman
Yes it does, however I was looking for a method I could use in the component that would get called on ajax request rather than having to deal with getting the data from the page. On Mon, Oct 14, 2013 at 1:44 PM, Lenny Primak wrote: > OnActivate gets called from Ajax requests. Does this not work

Re: PageRenderLinkSource inside periodic executor

2013-10-14 Thread Bob Harner
Just a word of caution that Dmitry's sample code uses an internal class (LinkImpl) subject to change. On Mon, Oct 14, 2013 at 2:54 PM, Dmitry Gusev wrote: > Here is a code snippet I use in my projects to generate links in "offline": > > https://gist.github.com/dmitrygusev/6980210 > > these prope

Re: An idea to improve the documentation

2013-10-14 Thread Barry Books
I don't think you can solve this problem with static online documentation. Something as simple as what are the type coercers is not something you can document online since it's possible to add the dynamically. They only way to solve this is generate the documentation for the running system. This al

Re: An idea to improve the documentation

2013-10-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Oct 2013 17:43:02 -0300, Muhammad Gelbana wrote: I see your point Bob, It could be better the way it is. My point is if we different version of documentations for different versions of tapestry. Then we won't bother with broken source code links since each documentation version wi

Re: An idea to improve the documentation

2013-10-14 Thread Muhammad Gelbana
I see your point Bob, It could be better the way it is. My point is if we different version of documentations for different versions of tapestry. Then we won't bother with broken source code links since each documentation version will statically refer to it's relevant source code. Anyway, if the

Re: An idea to improve the documentation

2013-10-14 Thread Bob Harner
Muhammad: I'd much rather have one good version of the documentation, with notes about the differences, than dozens of mostly redundant versions. Also, I don't see how having separate documentation for each version makes it easier to implement new documentation ideas. Quite the opposite, since you

Re: Safety check if a service has been initialized

2013-10-14 Thread Muhammad Gelbana
@Barry, there are usually tests being carried out killing the server will leave the database in an inconsistent state. So a graceful shutdown is needed @Lance, you are correct, this is a good approach to solve this. I still think having this around (Checking if a service is built) is an addition

PageTester

2013-10-14 Thread Martin Kersten
I am currently rewriting the PageTester to fit a more general overall experience by for example adding Page objects and bundle request and response together and using a new request every time. Also I use threads to render the response and being able to simply issue several requests at a time for pr

Re: Safety check if a service has been initialized

2013-10-14 Thread Lance Java
Why not create your own hub which your db services register with when they are realized / constructed. You then have a single shutdown listener which loops the list in order before finally shutting down the db connection. On 14 Oct 2013 17:38, "Muhammad Gelbana" wrote: > This cannot guarantee th

Re: PageRenderLinkSource inside periodic executor

2013-10-14 Thread Dmitry Gusev
Here is a code snippet I use in my projects to generate links in "offline": https://gist.github.com/dmitrygusev/6980210 these properties should be declared in your app symbols (of course with your own values): tapestry.hostname=localhost tapestry.hostport=8080 tapestry.hostport-secure=8443 ta

Re: PageRenderLinkSource inside periodic executor

2013-10-14 Thread Lance Java
As Barry has said, this might be easier to do inside a real request fired by Hudson. If you want to go down the 'fake' request route then I'll give my tapestry-offline project a plug :) https://github.com/uklance/tapestry-offline

Re: Safety check if a service has been initialized

2013-10-14 Thread Barry Books
I would say if you are really relying on an orderly shutdown you might want to rethink your design. In general you are far more likely to have a crash than an orderly shutdown. Personally I stop my web servers with killall -9 java On Mon, Oct 14, 2013 at 11:37 AM, Muhammad Gelbana wrote: > This

Re: Dynamic Loading of Templates

2013-10-14 Thread Martin Kersten
Well thats one way but I thought about doing it the same way issuing a render command omitting the need of a component. I will give it a try. 2013/10/14 Lance Java > I've never used it myself but I assume it'd be something like: > > Java > - > public class MyDynamicPage { >@Inject >

Re: Is there a Tap method that fires in component on ajax request

2013-10-14 Thread Lenny Primak
OnActivate gets called from Ajax requests. Does this not work for you? > On Oct 14, 2013, at 1:22 PM, George Christman wrote: > > Helo all, I'm wondering if there is a tap method that will fire every time > in a component similar to onActivate or onPrepare when an ajax request > occurs. I'm t

Re: PageRenderLinkSource inside periodic executor

2013-10-14 Thread Barry Books
Why fake one when it's just as easy to have a real one. As I've said on the list before create a webpage and call it from Hudson. If you really what to use a periodic executor then just use url.getContent() in the executor. On Mon, Oct 14, 2013 at 12:25 PM, Dimitris Zenios wrote: > Hello ever

Re: Is there a Tap method that fires in component on ajax request

2013-10-14 Thread George Christman
nvm, I just returned a SelectModel method rather than setting it in setupRender. On Mon, Oct 14, 2013 at 1:22 PM, George Christman wrote: > Helo all, I'm wondering if there is a tap method that will fire every time > in a component similar to onActivate or onPrepare when an ajax request > occurs

PageRenderLinkSource inside periodic executor

2013-10-14 Thread Dimitris Zenios
Hello everyone I am trying to create some links to a tapestry page inside a periodic executor runnable.I am using pageRenderLinkSource to create the urls but it throws an exception when trying to construct the url since Request is null.I know where the problem is (Request is null since periodic ex

Is there a Tap method that fires in component on ajax request

2013-10-14 Thread George Christman
Helo all, I'm wondering if there is a tap method that will fire every time in a component similar to onActivate or onPrepare when an ajax request occurs. I'm trying to build my selectModel which triggers an ajax zone. I just don't want to persist the selectModel. Thanks. -- George Christman www.

Re: An idea to improve the documentation

2013-10-14 Thread abangkis
I think the Android documentation is a great example for this http://developer.android.com/reference/android/app/Activity.html As you see in the link, you can click the (view source) link beside each class name to view the related source code. On Mon, Oct 14, 2013 at 6:17 PM, Bob Harner wrote:

Re: Safety check if a service has been initialized

2013-10-14 Thread Muhammad Gelbana
This cannot guarantee the order of the shutdown procedure. I need this executed after all services are shutdown. However, I can inject another service instead of *RegistryShutdownHub*, this way I can guarantee the order. To explain, I'll inject a service which will hold a set of database connectio

Re: An idea to improve the documentation

2013-10-14 Thread Muhammad Gelbana
May be within topics discussing internal Tapestry logic that is usually a mystique for new users and for me included like injection, request handling, how mixins work. Anywhere possible should be helpful though. And about the documentation in general. Is it possible to have separate documentation

Re: get @RequestParameters on submit

2013-10-14 Thread Lenny Primak
Od you can use tapestry-exceptionpage. It's great at handling things such as this: http://docs.codehaus.org/display/TYNAMO/tapestry-exceptionpage+guide On Oct 14, 2013, at 3:06 AM, Dmitry Gusev wrote: > Probably this can help with exceptions handling? > > http://tapestry.apache.org/component

Re: get @RequestParameters on submit

2013-10-14 Thread George Christman
Thanks man, exactly what I needed. On Mon, Oct 14, 2013 at 3:06 AM, Dmitry Gusev wrote: > Probably this can help with exceptions handling? > > > http://tapestry.apache.org/component-events.html#ComponentEvents-InterceptingEventExceptions > > > On Mon, Oct 14, 2013 at 10:48 AM, George Christman >

Re: Safety check if a service has been initialized

2013-10-14 Thread Lance Java
Why not add the following to your database services: @PostInjection public void addShutdownListener(RegistryShutdownHub shutdownHub) { shutdownHub.addRegistryShutdownListener(new Runnable() { … }); } The shutdown listener will only fire if the service has been realized (constructed)

Re: Safety check if a service has been initialized

2013-10-14 Thread Muhammad Gelbana
My core module shuts down 2 database services but I recently deployed a new application that uses only one schema so when the *RegisteryShutdownHub *service calls the shutdown procedure, the idle database connection service is asked to shutdown by calling *.close()* and this attempts to instantiate

Re: Tapestry Flow

2013-10-14 Thread Lance Java
Perhaps the unit tests will help? https://github.com/apache/tapestry-5/tree/master/tapestry-func/src/test/java/org/apache/tapestry5/func

Re: Safety check if a service has been initialized

2013-10-14 Thread Lance Java
The Scoreboard is a ServiceActivityTracker. I've never needed to do it myself but I'm sure you can register your own custom tracker. On 14 Oct 2013 13:17, "Martin Kersten" wrote: > Sometimes it is very important. I for myself need this in some tests to > recognize some specials in tear down and s

Re: Dynamic Loading of Templates

2013-10-14 Thread Lance Java
I've never used it myself but I assume it'd be something like: Java - public class MyDynamicPage { @Inject private DynamicTemplateParser parser; @Property private DynamicTemplate template; public void onActivate(EventContext context) { // TODO: implement this Resour

Re: Safety check if a service has been initialized

2013-10-14 Thread Martin Kersten
Sometimes it is very important. I for myself need this in some tests to recognize some specials in tear down and set up. And thanks Lance for the hint. I used another way but this Scoreboard is way more cooler. Wasnt aware of this. 2013/10/14 Thiago H de Paula Figueiredo > On Sun, 13 Oct 2013 1

Re: Safety check if a service has been initialized

2013-10-14 Thread Thiago H de Paula Figueiredo
On Sun, 13 Oct 2013 12:14:46 -0300, Muhammad Gelbana wrote: Will many agree with me if I asked for a way to safely check if a service has been initialized or built ? Why do you need that? If you invoke a service method, the service will be initialized and ready to use, even if Tapestry-Io

Re: Safety check if a service has been initialized

2013-10-14 Thread Lance Java
Take a look at the built in ServiceStatus page. You can @Inject ServiceActivityScoreboard and check ServiceActivity.getStatus()

Re: An idea to improve the documentation

2013-10-14 Thread Bob Harner
A good idea, although there is some added risk of broken links as source code gets moved around with new releases. Do you have any specific places in the documentation where you think a link to Tapestry's source code would be helpful? On Mon, Oct 14, 2013 at 7:09 AM, Muhammad Gelbana wrote: > Op

Re: An idea to improve the documentation

2013-10-14 Thread Muhammad Gelbana
Opps ! Just hist a mysterious keyboard shortcut to send emails from GMail !! Anyway, so the documentation page will discuss the subject thoroughly while advanced users and source code explorers will have a better experience and less time finding the relevant source code for the subject being discu

An idea to improve the documentation

2013-10-14 Thread Muhammad Gelbana
How about including references (links or embedded) to relative tapestry source code within a documentation page ? This could be even more informative than the documentation itself since it has every detail, while the documentation only explains *-* *Muhammad Gelbana* http://ww

Re: get @RequestParameters on submit

2013-10-14 Thread Dmitry Gusev
Probably this can help with exceptions handling? http://tapestry.apache.org/component-events.html#ComponentEvents-InterceptingEventExceptions On Mon, Oct 14, 2013 at 10:48 AM, George Christman wrote: > Thanks Taha this resolved my issue, however I now seem to have no way to > handle illegalArgu