Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Jens Breitenstein
I believe it strongly depends what you want and use from Tapestry. For example: The BeanEditor is a great component to display something quickly but at the very end I never used it, because you can not (or at least I am to stupid to) control exactly the look and feel / positioning of all field

Re: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 21:30:00 -0200, Asma Merchant wrote: I am a newbie in Tapestry. I tried to search on web on how to pass parameters from javascript to tapestry but couldn't find much information. In my very humble opinion, passing dynamic (i.e. defined in JavaScript) data to Tapestry

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 21:51:40 -0200, Lenny Primak wrote: We have scenario #2 with the caveat that designer used their own tool to edit templates and the IDE runs in the background so they can check how the web site looks live. In the end, with any kind of dynamic page, Tapestry or Wicket

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 21:18:06 -0200, Lenny Primak wrote: I just feel that's not a priority for most of the tapestry team (Thiago excluded). I hope I am wrong. If this is the case though, this functionality will be eroded to non-existent over time. Is it eroding? I really can't see any d

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Rural Hunter
Thiago, Good answer and I learnt from it. Is there a good way to handle the Layout thing? 于 2013/10/30 19:03, Thiago H de Paula Figueiredo 写道: Short answer: no. It never was. That's what I still do and recommend for almost all cases. It is as dead as it was since the first Tapestry 5 alpha w

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 20:55:30 -0200, Geoff Callender wrote: Good helpful responses, thanks, but I'm surprised how broad the range of opinions is! Yay for diversity! :) Thiago is passionately in favour of putting in the effort to be preview-able, while others feel that it's not worth the

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Lenny Primak
We have scenario #2 with the caveat that designer used their own tool to edit templates and the IDE runs in the background so they can check how the web site looks live. > On Oct 30, 2013, at 7:26 PM, Bob Harner wrote: > > Previewable templates are a great marketing bullet point, but whethe

Re: t:jquery.dialogajaxlink

2013-10-30 Thread John
prototype seems to be used in other zone based dialogs for action links and ajax form submits zone="^", so when I suppress prototype these bits of the app are unresponsive John - Original Message - From: Thiago H de Paula Figueiredo To: Tapestry users Sent: Wednesday, October

RE: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Asma Merchant
I am a newbie in Tapestry. I tried to search on web on how to pass parameters from javascript to tapestry but couldn't find much information. Here's my Javascript code: jQuery(document).ready( function(){ jQuery(document).on("click", ".pulseMode", function () { var radioId = jQuer

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Lenny Primak
Just so there is no misunderstandings, I personally love previewable templates. I would love to keep them. That's one of the best parts of tapestry and a great differentiating factor. I just feel that's not a priority for most of the tapestry team (Thiago excluded). I hope I am wrong. If thi

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Bob Harner
Previewable templates are a great marketing bullet point, but whether you use them depends on your circumstances: 1) You have no UI designer (i.e., the developers are the designers) -- there is probably no need for previewable templates. 2) You have designers who are willing to use some developer

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Geoff Callender
Good helpful responses, thanks, but I'm surprised how broad the range of opinions is! Thiago is passionately in favour of putting in the effort to be preview-able, while others feel that it's not worth the effort. Are there any more opinions out there? Cheers, Geoff On 30/10/2013, at 6:04 P

Re: t:jquery.dialogajaxlink

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 15:57:28 -0200, John wrote: btw I can get this to work with suppress prototype = true, not sure I want to do that though!? If you're not using Prototype, so why include it? ;) - Original Message - From: John To: users@tapestry.apache.org Sent: Wednesday,

FF re-requests an image for content-disposition inline

2013-10-30 Thread Kalle Korhonen
Perhaps OT but likely useful for others. I had noticed long ago that onActivate() for our generated images was often invoked twice for the same generated image returned via StreamResponse. I didn't think much of it since the images were small and efficiently cached. Now that I was refactoring some

Re: t:jquery.dialogajaxlink

2013-10-30 Thread John
btw I can get this to work with suppress prototype = true, not sure I want to do that though!? - Original Message - From: John To: users@tapestry.apache.org Sent: Wednesday, October 30, 2013 5:46 PM Subject: t:jquery.dialogajaxlink Is there a working t:jquery.dialogajaxli

t:jquery.dialogajaxlink

2013-10-30 Thread John
Is there a working t:jquery.dialogajaxlink example? I can't get the dialog to display using code similar to below example. I updated to 3.3.7 tapestry5-jquery. The action event is called. 1.. 2.. Open 3..

Re: Tapestry and Bootstrap

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 13:42:54 -0200, Lenny Primak wrote: Yes, this is my guess, only my guess, but, in my professional career, I get paid to accurately estimate software release cycles :) :) That's a very hard thing to do, specially for Tapestry itself, which is a voluntary effort. Also,

Re: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Thiago H de Paula Figueiredo
So the best way of dealing with passing information in this case is to not use the activation context, but adding a query parameter with the radio button id to the EventLink URL using JavaScript. On Wed, 30 Oct 2013 13:49:01 -0200, Asma Merchant wrote: How do you generate the radio butt

Re: uberValidator for all text input fields

2013-10-30 Thread Hendrik Grewe
Barry Books: > You might be able to override the StringTranslator but I have never tried > that. That is exactly what I ended with. To validate all string input for XML I wrote an XMLStringTranslator which throws a ValidationException if disallowed characters where found. Also it does replace all

Re: Deploying .war file to jetty (Something is going wrong - please help!)

2013-10-30 Thread Kalle Korhonen
I fail to understand the logic about posting to Tapestry user list about a problem in Maven plugin. Googling the error message gives you this as the first result: http://stackoverflow.com/questions/4342245/disable-maven-warning-message-selected-war-files-include-a-web-inf-web-xml-wh Kalle On Wed

Re: Deploying .war file to jetty (Something is going wrong - please help!)

2013-10-30 Thread Lenny Primak
Your pom.xml is broken in some way. Are you using eclipse internal maven support or generating via mvn eclipse:eclipse? If latter, you may be out of sync. Doubt anyone can help you without looking at your pom.xml though. On Oct 30, 2013, at 11:40 AM, Steve wrote: > Hi, > > Sorry to bother you

Re: Deploying .war file to jetty (Something is going wrong - please help!)

2013-10-30 Thread Steve
Hi again - sorry to bother everyone with emails, I was stuck for hours trying to fix this, but it seems as soon as I've posted i've managed to get it sorted myself. It is a strange world we live in. It worked, however I still don't know why I get this warning: [WARNING] Warning: selected war file

Re: Deploying .war file to jetty (Something is going wrong - please help!)

2013-10-30 Thread Steve
Hi, Sorry to bother you - the plot thickens. So I have just found if I do: mvn clean war:war It will delete the target folder, and then when I run using the jettyrun plugin, it gives the exception above. However, if after running mvn clean war:war I then go in eclipse and press project>clean, and

RE: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Asma Merchant
>>How do you generate the radio buttons? The buttons are already present on the page i.e. they are static. //Code to generate radio buttons: . . . //Modal Code: ${message:yes } $

Re: Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 11:49:33 -0200, lidijaldo . wrote: @OnEvent(component = DATATABLE_ID, value = EVENT_EDITOR_EDIT) public Object edit(@RequestParameter("action") String action) throws Exception { // edit and save object // refresh module box logger.debug("

Re: Tapestry and Bootstrap

2013-10-30 Thread Lenny Primak
Yes, this is my guess, only my guess, but, in my professional career, I get paid to accurately estimate software release cycles :) Also, this thread could have an effect on speeding things up, which is a good thing. Under-promise and over-deliver, that's what I do! On Oct 30, 2013, at 7:06 AM, Th

Deploying .war file to jetty (Something is going wrong - please help!)

2013-10-30 Thread Steve
Hi, So far I have been using the run jetty eclipse plugin to run my project and it is working fine. I have now got the task of setting this up to run on the production server rather than my localhost. The server is on opensuse rather than my local windows installation, but that shouldn't make a d

Re: Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread Dmitry Gusev
You can find simple example in the maven archetype for tapestry5: http://tapestry.apache.org/getting-started.html Can you post your JSON response here? On Wed, Oct 30, 2013 at 6:25 PM, lidijaldo . wrote: > Thank you for your response. > > I changed the call to addRender: > ajaxResponseRendere

Re: Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread Nathan Quirynen
Why do you return following in the event? return new TextStreamResponse("application/json", response.toString()); Does it work if you return void? On 30/10/13 15:25, lidijaldo . wrote: Thank you for your response. I changed

Re: Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread lidijaldo .
Thank you for your response. I changed the call to addRender: ajaxResponseRenderer.addRender(boxZone); I restarted the application. I'm using Firebug but absolutely nothing happens that's connected to the zone. There's an ajax request to edit the row and I can see the request - the POST paramete

Re: Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread Dmitry Gusev
Looks ok to me at first glance. > ajaxResponseRenderer.addRender("boxZone", boxZone); You don't have to specify clientId when you passing a zone here and this zone has id attribute declared in template. Try inspecting network activity in your browser's developer tools (firebug, etc.) to see h

Simply refresh a zone after datatable record edit - not so simple?

2013-10-30 Thread lidijaldo .
I thought this should be simple but I can't seem to find the solution. I have a datatable displayed on my page. After I successfully edit some row, I would like to refresh a zone on my page. This is the relevant part of my .tml file, let's say I'm trying to refresh current time after I edited a r

Re: Tapestry and Bootstrap

2013-10-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 Oct 2013 06:27:46 -0200, Muhammad Gelbana wrote: 6 months ! Really ?! :'( That's his guess and only his. Maybe even Howard, himself, the main force behind Tapestry, doesn't know. I guess the best answer is "we don't know". In addition, you can use the 5.4-alpha versions right

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Thiago H de Paula Figueiredo
Short answer: no. It never was. That's what I still do and recommend for almost all cases. It is as dead as it was since the first Tapestry 5 alpha was released many years ago, which is not dead. On Wed, 30 Oct 2013 05:04:56 -0200, Geoff Callender wrote: * Invisible instrumentation (see

Re: Eclipse Tapestry5 Plugin update

2013-10-30 Thread Bob Harner
It just keeps getting better and better! I added a mention at http://tapestry.apache.org/community.html#Community-IDEIntegrations On Wed, Oct 30, 2013 at 4:57 AM, Dmitry Gusev wrote: > Version 1.3.3 of the plugin available for update now. > > This update allows you quickly create new tapestry5

Re: Eclipse Tapestry5 Plugin update

2013-10-30 Thread Dmitry Gusev
Version 1.3.3 of the plugin available for update now. This update allows you quickly create new tapestry5 artefacts. You can see full list of new features here: https://github.com/anjlab/eclipse-tapestry5-plugin#quickly-create-files-for-tapestry5 Installation instructions: https://github.com/an

Re: Tapestry and Bootstrap

2013-10-30 Thread Muhammad Gelbana
6 months ! Really ?! :'( *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Sun, Oct 27, 2013 at 3:39 PM, Boris Horvat wrote: > Ok, good to know :) > > Thanks > > > On Sun, Oct 27, 2013 at 2:38 PM, Lenny Primak >wrote: > > > Bootstrap 3. > > As far as the release

Re: onActivate not called / Ajax / Shiro

2013-10-30 Thread Lenny Primak
FlowLogix library also has a couple of solutions to deal with this: @AJAX annotation http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation that will redirect to the login screen if session has expired (among other things) and the SessionMonitor component http://code.google.com/p/flowlogix/wi

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Lenny Primak
It looks so. I think this is a real shame IMHO, because one of the biggest differentiators of the Tapestry framework are previewable templates. In fact, originally, we chose Tapestry for all of our projects mostly because of this feature. On Oct 30, 2013, at 3:04 AM, Geoff Callender wrote: >

Re: onActivate not called / Ajax / Shiro

2013-10-30 Thread Andreas Fink
Hi Jens On Oct 28, 2013, at 19:44 , Lenny Primak wrote: ... >> The statement above would make me think that Tapestry-Security does work for >> AJAX requests too, as onActivate() is invoked for every request for the >> page, render or action. > > The way Tapestry-Securitiy filter is set up is

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Kalle Korhonen
For the past five years, my designers have been perfectly happy running "mvn jetty:run" against an embedded database, then editing the templates on the fly without the faintest idea of the underlying machinery. To this day, they only have superficial knowledge of the "backend", or god forbid, Java.

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Rural Hunter
于 2013/10/30 15:04, Geoff Callender 写道: So, is it time to accept that preview-able TML is dead, drop the techniques above, and teach my web page designer to run the same development environment as me? That's what we have been doing for quite a long time. Cheers, Geoff

[5.4] Is preview-able TML dead?

2013-10-30 Thread Geoff Callender
I'm trying so very hard to keep my templates "preview-able" but it's getting oh-so-difficult. Is it time to stop trying and just get my web designer to use the same development environment as me? When I say "preview-able template", I mean a template coded in such a way that a web page designer