Re: Single Page Application

2018-05-30 Thread Michael Gentry
sier ways to do SPAs. > > > https://killertilapia.blogspot.com/2013/06/resteasy-tapestry-with-angularjs.html > > On Wed, May 30, 2018 at 1:31 AM, Michael Gentry > wrote: > > > Tapestry RESTEasy is also quite nice: > > > > http://www.tynamo.org/tapestry-resteasy+

Re: Single Page Application

2018-05-29 Thread Michael Gentry
Tapestry RESTEasy is also quite nice: http://www.tynamo.org/tapestry-resteasy+guide/ On Fri, May 18, 2018 at 5:40 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, May 18, 2018 at 6:36 PM, Juan wrote: > > > Hello, are there any good example of doing a single page

Session-Based HMAC

2017-07-20 Thread Michael Gentry
Has anyone modified Tapestry's built-in HMAC support to include support for session-based HMAC? There was a mailing list thread a while back talking about it (ending with please file a Jira), but I couldn't find anything else about it:

T5 + Tynamo RESTEasy + UriInfo

2017-02-08 Thread Michael Gentry
This is an FYI in case it helps others. Converting a non-T5 REST-based application into a T5 + Tynamo RESTEasy version. The original application used: @Context private UriInfo uriinfo; to inject UriInfo to construct URLs to other REST services. but this didin't work with Tynamo's RESTEasy.

Re: AMP pages with Tapestry

2016-11-30 Thread Michael Gentry
Hi Carlos, I've never used AMP, but see if the following markup will work with it: mrg On Tue, Nov 29, 2016 at 3:36 PM, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > Hello Tapestry users, > > I would like to create an amp version of my pages into a tapestry5.4 > webapp.

Re: Activation event handler regression after upgrading from 5.4-beta-22 to 5.4-beta-31

2015-04-22 Thread Michael Gentry
I wonder if it might have something to do with the superclass signature being: void activate(EventContext) and the subclass signature being: Object activate(EventContext) I know I've used similar patterns in 5.3, but haven't tried in 5.4 yet. mrg On Wed, Apr 22, 2015 at 6:56 AM, Chris

Re: SymbolConstants.SECURE_PAGE missing?

2015-04-09 Thread Michael Gentry
for testing/production.) Thanks, mrg On Wed, Apr 8, 2015 at 3:33 PM, Dimitris Zenios dimitris.zen...@gmail.com wrote: Hi SECURE_PAGE is part of MetaDataConstants not SymbolConstants What exactly are you trying to achieve? Thanks On Wed, Apr 8, 2015 at 10:22 PM, Michael Gentry mgen

SymbolConstants.SECURE_PAGE missing?

2015-04-08 Thread Michael Gentry
Hello, I was trying to inject this symbol value into one of our pages, but it appears to not be present in SymbolConstants. Is this an oversight or is this symbol not intended to be visible? Thanks, mrg PS. If it matters, I'm on 5.4b26.

Re: Two fundamental questions.

2015-01-21 Thread Michael Gentry
Hi Charles, We generally don't use any kind of special integration with our Tapestry+Cayenne applications here. A couple general scenarios are: 1. Your application is session-heavy (ours are). In this case you store your Cayenne objects in your session objects (page/component-based or global)

Re: 5.4 Upload / Long Response Issue?

2014-09-04 Thread Michael Gentry
FWIW, I just tested in Tomcat and it works fine. I'm going to assume it is something with the Maven Jetty plugin and not a Tapestry 5.4 issue. Thanks! mrg On Fri, Aug 29, 2014 at 8:40 AM, Michael Gentry mgen...@masslight.net wrote: H Lance, There were no exceptions and I was using

Re: 5.4 Upload / Long Response Issue?

2014-08-29 Thread Michael Gentry
H Lance, There were no exceptions and I was using VisualVM to monitor the heap/GCs/etc and there was plenty of memory available, even when processing both threads. (About 150-200MB used out of 1GB allocated.) mrg On Fri, Aug 29, 2014 at 3:17 AM, Lance Java lance.j...@googlemail.com wrote:

5.4 Upload / Long Response Issue?

2014-08-28 Thread Michael Gentry
Hi everyone, I'm currently using 5.4B6 and we are doing uploads of XML data (using the standard Tapestry Upload/UploadFile mechanism -- no multi-file AJAX/etc extensions). When we upload a small file, it processes just fine, but on a larger file (which takes several minutes to process), multiple

Re: 5.4 Upload / Long Response Issue?

2014-08-28 Thread Michael Gentry
Hi Lance, All 3 browsers issue a single request. The second thread and onValidate/onSuccess occur 30 seconds after the original upload using all 3 browsers (and repost/redeliver the original payload it seems, since the complete XML file is available to the new thread(s)). Thanks, mrg On

Re: 5.4 Upload / Long Response Issue?

2014-08-28 Thread Michael Gentry
Hi again Lance, 1) No proxy. Directly connecting to Jetty @ http://localhost:6789/ 2) No other filters. I'm using Tapestry's IOC for services and trying to keep things lean. FWIW, when I dropped the file in as a unit test, it would import just fine using the T5 service without spawning

Re: 5.4 Upload / Long Response Issue?

2014-08-28 Thread Michael Gentry
be the Maven plugin, perhaps. On Thu, Aug 28, 2014 at 4:17 PM, Michael Gentry mgen...@masslight.net wrote: I can try Tomcat, but i'll be a day or two or so before I can get to that. mrg On Thu, Aug 28, 2014 at 3:35 PM, Lance Java lance.j...@googlemail.com wrote: Totally weird, can you try

Re: Provide application version in jetty pom definition

2014-08-21 Thread Michael Gentry
Hi Boris, Perhaps it didn't get e-mailed out very well, but you appear to have one too many tapestry. strings in your name and your name is missing a bracket. Try: nametapestry.application-version/name mrg On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat horvat.z.bo...@gmail.com wrote: Hi

Re: Provide application version in jetty pom definition

2014-08-21 Thread Michael Gentry
, 2014 at 11:13 PM, Michael Gentry mgen...@masslight.net wrote: Hi Boris, Perhaps it didn't get e-mailed out very well, but you appear to have one too many tapestry. strings in your name and your name is missing a bracket. Try: nametapestry.application-version/name mrg

Re: Browser Detection

2014-08-12 Thread Michael Gentry
Here is what I currently use (which may not be the best approach, but works for my present needs). UserAgent Service: https://gist.github.com/mrg/b814a42d86597440c9d9 I primarily use it in this IEWarning component, which I have in my Layout: https://gist.github.com/mrg/ba7395fa89a48a4c423d

Re: JSONobject as return value of event handler

2014-08-05 Thread Michael Gentry
Hi Charlouze, I've not used d3.json before, but the fact you are getting Return type org.apache.tapestry5.json.JSONObject can not be handled indicates that d3.json isn't setting the XMLHttpRequest flag (see Tapestry Request's isXHR() method), so Tapestry is trying to convert the return type into

Re: tapestry5-d3 - d3 integration

2014-07-08 Thread Michael Gentry
? ;-) Régis. 2014-07-07 18:12 GMT+02:00 Michael Gentry mgen...@masslight.net: Hi Régis (and others), We just did a simple D3 integration into our Tapestry 5.4 Beta 6 application and with RequireJS/jQuery/etc being provided by Tapestry now it seems a pretty simple integration. For our

Re: tapestry5-d3 - d3 integration

2014-07-07 Thread Michael Gentry
Hi Régis (and others), We just did a simple D3 integration into our Tapestry 5.4 Beta 6 application and with RequireJS/jQuery/etc being provided by Tapestry now it seems a pretty simple integration. For our Java class (with stuff removed to just show invoking the module): @Import(stylesheet = {

Re: Invalidating a session

2014-05-16 Thread Michael Gentry
Hi Thiago, I wasn't aware there could be additional consequences, so thanks for the information. mrg On Wed, May 14, 2014 at 3:37 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 14 May 2014 11:02:24 -0300, Michael Gentry mgen...@masslight.net wrote: Generally, yes

Re: autocomplete data source

2014-05-16 Thread Michael Gentry
Hi Ilya, onActivate() gets called for both normal page render requests and AJAX/XHR requests (used by the autocomplete). Have you tried: @Inject private Request request; and calling the isXHR() method in request in your onActivate() to determine if the request is normal or AJAX? onActivate()

Re: Invalidating a session

2014-05-14 Thread Michael Gentry
Generally, yes, but sometimes you need access to methods not available in Request. On Tue, May 13, 2014 at 8:09 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 12 May 2014 11:04:40 -0300, Michael Gentry mgen...@masslight.net wrote: Hi Sanket, We use: @Inject

Re: Invalidating a session

2014-05-12 Thread Michael Gentry
Hi Sanket, We use: @Inject private HttpServletRequest request; ... if (request.getSession(false) != null) request.getSession(false).invalidate(); However, since we also use an SSO, we have to remove all cookies associated with the SSO, etc. mrg On Wed, May 7, 2014 at

Re: Asset placement t5.4

2014-05-11 Thread Michael Gentry
Hi George, You can put your CSS/Less files in: src/main/resources/META-INF/assets/css and then import them with: @Import(stylesheet=css/filename.css) (or .less) mrg On Wed, May 7, 2014 at 1:48 PM, George Christman gchrist...@cardaddy.comwrote: Hi everyone, I'm getting the following

Re: StylesheetOptions().withCondition(IE) not working in 5.4

2014-04-28 Thread Michael Gentry
Hi George, I created a UserAgent service to query some basic browser information. Since this is done entirely in Java, the approach could work for you, I think. Here is what the interface looks like: public interface UserAgent { public String getUserAgent(); public boolean isIE();

Re: form submit on pressing Enter inside a TextField

2014-04-17 Thread Michael Gentry
Hi Ilya, As far as I know, this is standard browser/form behavior, regardless of the web framework you are using (Tapestry, PHP, etc). You can use JavaScript to change the behavior or CSS to do tricky things, like move the positions of the submit buttons when they render so that the one you want

Re: tapestry-wro4j errors

2014-03-28 Thread Michael Gentry
A quick Google search found this, which might help: https://groups.google.com/forum/#!msg/wro4j/LYmnDGEgyLI/5ibuL33Scp0J On Fri, Mar 28, 2014 at 11:24 AM, Nathan Quirynen nat...@pensionarchitects.be wrote: Thanks for the hint Apparently another dependency was pulling in

[5.4B3] File Upload Error

2014-03-24 Thread Michael Gentry
Hi everyone, I was trying to add a file upload component to a page. After adding the tapestry-upload dependency to my POM, I kept getting exceptions trying to convert CoffeeScript Files to JavaScript files: [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with

Re: [5.4B1] StyleSheet/Stack Bug?

2014-03-20 Thread Michael Gentry
I tried with getClasspathAsset() and 5.4B3, neither of which found the CSS under src/main/resources. Is this a bug or should I just move the CSS to src/main/webapp? Thanks, mrg On Wed, Mar 19, 2014 at 6:49 PM, Michael Gentry mgen...@masslight.netwrote: On Wed, Mar 19, 2014 at 5:56 PM

Re: [5.4B1] StyleSheet/Stack Bug?

2014-03-20 Thread Michael Gentry
; ... public ListStylesheetLink getStylesheets() { ListStylesheetLink stylesheetLinks = new ArrayListStylesheetLink(); stylesheetLinks.add( new StylesheetLink( fontAwesomeStylesheet ) ); ... HTH -- Chris On Thu, Mar 20, 2014 at 12:26 PM, Michael Gentry mgen

[5.4B1] StyleSheet/Stack Bug?

2014-03-19 Thread Michael Gentry
Hi everyone, It may be that I did something wrong, but I think there is an issue with JS Stacks in 5.4 (CSS handling). I decided to create a Stack for the DataTables component we use instead of specifying the CSS/etc on each page. I originally had *

Re: How do you turn off prototype in 5.4

2013-11-08 Thread Michael Gentry
} namespace)./code */ INITIALIZERS; } Cheers, Dragan Sahpaski On Fri, Nov 8, 2013 at 6:42 PM, Michael Gentry mgen...@masslight.net wrote: Hi George, I did it this way in AppModule.java: public static void contributeApplicationDefaults(MappedConfigurationString

Re: [Ann] tapestry-rss

2013-10-06 Thread Michael Gentry
Hi Thiago, I have no idea the differences, but I had this Tapestry RSS project starred from a while back: https://github.com/spreadthesource/tapestry5-rome mrg On Sat, Oct 5, 2013 at 3:13 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: Hi! I'm releasing yet another package

Re: [Ann] tapestry-rss

2013-10-06 Thread Michael Gentry
BTW, I hope I didn't sound negative. I was just pointing out a similar project (which hasn't been updated in a while) and maybe there are good ideas in it, etc. mrg On Sun, Oct 6, 2013 at 8:41 AM, Michael Gentry mgen...@masslight.netwrote: Hi Thiago, I have no idea the differences, but I

Re: loop inside loop

2013-09-21 Thread Michael Gentry
Hello Jan, There was recently a discussion about t:context (and other things) not working as you would expect in a t:ajaxformloop compared to a t:loop. You may want to read through that discussion thread here:

Re: t:submit with context inside a loop

2013-08-27 Thread Michael Gentry
...@gmail.com wrote: By design. Default value of LinkSubmit's defer parameter is true. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/LinkSubmit.html On 27 August 2013 01:27, Michael Gentry mgen...@masslight.net wrote: Hi Ilya, I just used the standard Tapestry

Re: t:submit with context inside a loop

2013-08-26 Thread Michael Gentry
source code. On Sun, Aug 25, 2013 at 10:07 AM, Ilya Obshadko ilya.obsha...@gmail.comwrote: Thank you. Original LinkSubmit has exactly the same issue. On Sunday, August 25, 2013, Michael Gentry wrote: Hi Ilya, I was struggling with the same exact problem yesterday. Apparently

Re: t:submit with context inside a loop

2013-08-24 Thread Michael Gentry
Hi Ilya, I was struggling with the same exact problem yesterday. Apparently the AjaxFormLoop doesn't work like a regular Loop and the submit handler always receives the last iteration value/context. Even using t:defer on the Submit didn't help. I ended up using a LinkSubmit* with some CSS to

Re: Liquibase for Tapestry5

2013-08-14 Thread Michael Gentry
Hi Dmitry, Like Borut, we have many Maven profiles set up to do Flyway migrations in all of our environments and have set up our DBAs with Maven/etc in order for them to do our production migrations. On the Tapestry side, our AppModule has an @Startup method that does a Flyway validate() to

Re: Liquibase for Tapestry5

2013-08-14 Thread Michael Gentry
. But for the same reason of often deploys I prefer to run migrations from within the cloud during application start. And it works well for me so far. On Wed, Aug 14, 2013 at 5:22 PM, Michael Gentry mgen...@masslight.netwrote: Hi Dmitry, Like Borut, we have many Maven profiles set up to do

Re: Tapestry 5.4 url paths in css

2013-07-24 Thread Michael Gentry
Hi Thiago and Peter, I believe this re-opened JIRA already covers it: https://issues.apache.org/jira/browse/TAP5-2106 Howard fixed some of the CSS URL rewriting a while back (we are using it in a production-deployed application now), but perhaps more issues still remain. Thanks, mrg On Wed,

Re: Sessions getting mixed up

2013-06-17 Thread Michael Gentry
Could Tapestry throw an exception if you use @SessionState in a service? Thanks, mrg On Mon, Jun 17, 2013 at 9:25 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Mon, Jun 17, 2013 at 8:36 AM, Nathan Quirynen nat...@pensionarchitects.be wrote: Hi, Hello! I

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-28 Thread Michael Gentry
Hi Eli, This would be clever, but you can always have a single @Startup method that then calls all of your other startup methods in the order you want. In some ways, I think this is easier to read/understand. The startup order is clearly defined in a single spot instead of having to go decipher

Re: Stopping/Removing a job from PeriodicExecutor

2013-05-22 Thread Michael Gentry
Hi Chris, PeriodicExecutor returns a PeriodicJob which you can cancel if you hang onto the return value. See: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/cron/PeriodicJob.html mrg On Wed, May 22, 2013 at 1:21 PM, Chris Cureau cmcur...@gmail.com wrote: Hi

T5.4 + #default#VML URLs

2013-04-15 Thread Michael Gentry
Hello, I'm using T5.4 (Alpha 3) and just tried adding Leaflet to the application, but the Leaflet IE-specific CSS specifies: behavior: url(#default#VML); This causes T5.4 to blow up with: Render queue error in AfterRender[Index:layout.iequirks]: Unable to locate asset

Re: T5.4 + #default#VML URLs

2013-04-15 Thread Michael Gentry
15, 2013 at 1:54 PM, Michael Gentry mgen...@masslight.net wrote: Hello, I'm using T5.4 (Alpha 3) and just tried adding Leaflet to the application, but the Leaflet IE-specific CSS specifies: behavior: url(#default#VML); This causes T5.4 to blow up with: Render queue error

Re: Tapestry 5.3.6 and Debian/ppc

2013-03-05 Thread Michael Gentry
at 7:23 AM, Michael Gentry mgen...@masslight.net wrote: Hi Thiago, I saw the same exception a week or two ago when attempting to upgrade our project from 5.3.3 to 5.3.6. Turns out one of the external Tapestry libraries we were using specified 5.3.3 and Maven included that JAR for either

Re: Tapestry 5.3.6 and Debian/ppc

2013-03-04 Thread Michael Gentry
Hi Thiago, I saw the same exception a week or two ago when attempting to upgrade our project from 5.3.3 to 5.3.6. Turns out one of the external Tapestry libraries we were using specified 5.3.3 and Maven included that JAR for either tapestry-core or tapestry-ioc (I forget which one at the moment,

Re: HTML form input value via client side

2013-01-03 Thread Michael Gentry
Try using a normal HTML input (non-T5 component, could be the hidden one you mentioned) and then: import org.apache.tapestry5.services.Request; ... @Inject private Request request; ... request.getParameter(name); On Thu, Jan 3, 2013 at 12:44 PM, owzim tapes...@owzim.com wrote: Hi, how can I

Re: HTML form input value via client side

2013-01-03 Thread Michael Gentry
PS. My memory is rusty, it might also be the getAttribute() method, but try getParameter() first. On Thu, Jan 3, 2013 at 2:16 PM, Michael Gentry mgen...@masslight.netwrote: Try using a normal HTML input (non-T5 component, could be the hidden one you mentioned) and then: import

Re: Access this page object from the template

2012-12-31 Thread Michael Gentry
An interesting documentation glitch is the header for the ComponentResourcesCommon (and Locatable) box reads like this (at least in Chrome): Methods inherited from interface org.apache.tapestry5. ComponentResourcesCommon is a hyperlink in the same color as the box background, so you don't see it

Re: use symbol value in POJO

2012-11-01 Thread Michael Gentry
On Thu, Nov 1, 2012 at 6:06 AM, devnull2...@gmx.de wrote: I don't even know what CayenneService is ;) A typo on my part. I was trying to reference the previous TapestryCayenneService. For deleting/committing I inject an ObjectContext (with annotation @OCType(...) or ObjectContextProvider

Re: use symbol value in POJO

2012-11-01 Thread Michael Gentry
On Thu, Nov 1, 2012 at 6:46 AM, devnull2...@gmx.de wrote: public class Foo extends _Foo { @Inject @Symbol(value=baseDir) // not possible String baseDir; public String getAbsoluteLocalFilepath() { return baseDir + / + toUser.getId() + / + getFilename(); } } The

Re: use symbol value in POJO

2012-10-31 Thread Michael Gentry
Hi Bjello, I think Lance was onto the best ideas. The easiest would be to create a Tapestry service for creating your Cayenne objects (pseudo-code): public class TapestryCayenneService { @Inject @Symbol(value=...) ... public Foo newFoo(ObjectContext oc) { Foo foo =

Re: compression extension

2012-10-28 Thread Michael Gentry
Hi Ray, Without actually knowing the answer, I would guess it means the resource has been stripped of extraneous whitespace (packed) before being gzipped. You could save off one of those resources and gunzip it to see if that is actually the case. mrg On Thu, Oct 25, 2012 at 7:59 AM, Ray

Re: hmac sample

2012-10-15 Thread Michael Gentry
Hi Howard, If your application requires session state to function, it would error out regardless. Perhaps the random approach is better for session-heavy applications and the fixed/stable approach is better for session-free applications? Thanks, mrg On Sun, Oct 14, 2012 at 1:39 PM, Howard

Re: Update your application version number after changing your Tapestry depenency

2012-10-05 Thread Michael Gentry
Hi Howard, Couldn't the Tapestry-generated URLs include both the Tapestry version number + your application version number as part of the asset URL? This way if all you do is upgrade Tapestry (5.3.4 - 5.3.5), then it'll automatically request new URLs that weren't cached. Of course, I'm probably

Re: page instances to particular threads

2012-08-20 Thread Michael Gentry
Hi Özkan, Does it mean that a page is bound to a thread and it will always get executed by the same thread? No, it means that when the request for a page comes in it is handled by the same thread until the response goes out. A subsequent request for the same page could be handled by a different

Re: redirecting in the same page class

2012-08-17 Thread Michael Gentry
Hi Angelo, Can't you just have #2 call #1? Something like: Object onActivate((String code, String entry) { this.entry = entry; return onActivate(code); } mrg On Thu, Aug 16, 2012 at 10:29 PM, Angelo C. angelochen...@gmail.com wrote: turned out, T5 already has this: Link lnk =

Re: Hourglass during fle upload

2012-06-25 Thread Michael Gentry
I haven't tried this, but perhaps you could use a little JavaScript to set the cursor property on the BODY tag or something when they click the upload button? http://www.echoecho.com/csscursors.htm mrg On Mon, Jun 25, 2012 at 8:29 AM, Markus Grell tapes...@military.de wrote: Greetings! I'm

Re: websites/apps powered by tapestry5

2012-05-02 Thread Michael Gentry
http://www.qualidator.com/WQM/en/Reports/GeneratorInfo.aspx?generatorName=Apache%20Tapestry%20Framework Probably not detailed enough, though ... On Sat, Apr 28, 2012 at 9:00 AM, Bob Harner bobhar...@gmail.com wrote: Relatedly, does anyone know how to do an Internet search for sites that have

Re: Difference between tml and java importing js

2012-03-14 Thread Michael Gentry
How about this, instead: JAVA *component* @Import(library=../dimitriy/bogdanov/bootstrap-dropdown.js) and TML *component* If your component is rendered multiple times in a page, then the TML method will import the JS repeatedly. Tapestry is smart enough, even in the Java component, to know if

Re: The prefix p for element p:else is not bound.

2012-02-13 Thread Michael Gentry
You have to define the p: prefix at the top of your TML: html ... xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter mrg On Mon, Feb 13, 2012 at 9:13 AM, sommeralex alexander.som...@gmail.com wrote: Hi! I just want to use a simple t:if

Re: [5.3] JSONArray Error while submitting forms

2012-02-03 Thread Michael Gentry
, 2012 at 12:08 AM, Bob Harner bobhar...@gmail.com wrote: Is anyone still seeing this problem after clearing the browser cache? If not, we'll be able to close TAP5-1777. On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry mgen...@masslight.net wrote: Hi Josh (and others), I was using

Re: Preselect radio option

2012-01-23 Thread Michael Gentry
Hi Markus, Set your capacity value before rendering. You have: t:radiogroup value=capacity This gets/sets the value of the radio group. mrg On Mon, Jan 23, 2012 at 8:06 AM, Markus Grell tapes...@military.de wrote: On Mon, 23 Jan 2012 10:29:20 -0200, Markus Grell tapes...@military.de

Re: [5.3] JSONArray Error while submitting forms

2011-12-14 Thread Michael Gentry
Hello, We also had the error appear in Jetty. Didn't try Tomcat/etc. Unfortunately, we've been under a multiple-deploy crunch and didn't really have time to explore the issue and went back to 5.2.6 for now. Thanks, mrg On Mon, Dec 12, 2011 at 4:21 PM, mart.schneider mart.schnei...@gmail.com

Re: Tapestry 5.3.x binary release

2011-12-14 Thread Michael Gentry
Hi Jose, Can you download the binaries from the Maven repository? http://search.maven.org/#search%7Cga%7C1%7Ctapestry mrg On Wed, Dec 14, 2011 at 9:31 AM, Jose Luis Sanchez joseluis.sanc...@m-centric.com wrote: Hi everyone, This is a public petition for , mainly, Tapestry maintainers. As

Re: prototypejs is dead - time to bring t5-jquery in?

2011-12-14 Thread Michael Gentry
Tapestry 6 anyone? :-) mrg On Wed, Dec 14, 2011 at 2:07 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 14 Dec 2011 16:36:18 -0200, Hugi Thordarson h...@karlmenn.is wrote: As a new Tapestry user with no legacy code whatsoever… +1 ;-) I'll need to change my Tapestry

Re: Jetty Restarts every time i save

2011-11-16 Thread Michael Gentry
On Wed, Nov 16, 2011 at 1:08 PM, derkoe tapestry.christian.koeb...@gmail.com wrote: I think live reloading doesn't work when starting with mvn jetty:run That's almost always how I start Jetty (with T5) and it works fine, including live class-reloading. mrg

Re: Binding form fields to map elements

2011-11-15 Thread Michael Gentry
Hi Thiago, Would it be reasonable for Tapestry to handle binding to maps? It seems to me if you had: t:textfield t:value=aMap.firstName/ Tapestry could tell aMap was an instance of Map and automatically use/generate: aMap.get(firstName); aMap.put(firstName, value); I sometimes used this

Re: Web services using Tapestry

2011-11-08 Thread Michael Gentry
If you have access to the HttpSession, though, you can grab the service. I had something that listened for session timeouts: import org.apache.tapestry5.TapestryFilter; import org.apache.tapestry5.ioc.Registry; ... public class SessionTimeoutNotifier implements HttpSessionBindingListener,

Re: Free Tapestry Laptop Stickers

2011-09-16 Thread Michael Gentry
Looks like they can be used on non-laptops, too ... :-) mrg On Thu, Sep 15, 2011 at 6:20 PM, Howard Lewis Ship hls...@gmail.com wrote: I just got in the second batch of Tapestry laptop stickers.  Do you want one?  They're free --- all I ask is that you share your Tapestry story (or tell me

Re: tapestry ready for production?

2011-09-12 Thread Michael Gentry
Hi Alfonso, 5.2.6 is actually the latest stable release. mrg On Sun, Sep 11, 2011 at 9:07 PM, Alfonso Quiroga alfonsose...@gmail.com wrote: Well, I think I'll go ahead with tapestry 5.2.5 (the last archetype points to that version).

AjaxFormLoop/AddRowLink + Client-Side Callback?

2011-09-01 Thread Michael Gentry
Hi everyone, I have an AjaxFormLoop with an AddRowLink in it. I was wondering if anyone had an elegant way to do a client-side callback when a row is added? I currently have a hack in place, but was wondering if there were better ideas around. Also, would it make sense for AddRowLink to have a

Re: Tapestry principles/tips learned during training session

2011-08-08 Thread Michael Gentry
Hi Les, Thanks for sharing! One comment, though, is you actually can have onActivate without onPassivate. I've done this many times. Thanks, mrg On Sat, Aug 6, 2011 at 2:54 PM, robert baker les.baker1...@gmail.com wrote: Hi, I've been in Tapestry training for the past week, have really

Re: Tapestry principles/tips learned during training session

2011-08-08 Thread Michael Gentry
/passivate.  But I could be wrong ... tell us about your use case ... On Mon, Aug 8, 2011 at 5:26 AM, Michael Gentry mgen...@masslight.net wrote: Hi Les, Thanks for sharing! One comment, though, is you actually can have onActivate without onPassivate.  I've done this many times. Thanks, mrg

Re: Ajax callback for checkbox component?

2011-07-11 Thread Michael Gentry
The ZoneUpdater mixin also works for checkboxes: t:radiogroup t:id=costType t:validate=required t:radio t:id=regularCostType t:mixins=cb/zoneUpdater t:zone=addzone t:clientEvent=click event=change / ... mrg On Mon, Jul 4, 2011 at 8:11 AM, Dmitriy Vsekhvalnov

Re: Java Magic has 10000+ hits

2011-06-29 Thread Michael Gentry
Google Reader says you have over 30 subscribers (at least in Google Reader). mrg On Wed, Jun 29, 2011 at 12:10 AM, Mark mark-li...@xeric.net wrote: If I remember correctly, Wordpress.com uses javascript to count views, so it won't count things when someone's RSS reader just checks for an

Re: [Snippet] T5: A mixin to rewrite the markup of element

2011-06-12 Thread Michael Gentry
In the past, I had trouble with IE6 and multiple buttons in a FORM. You couldn't distinguish which button was clicked on. I don't know if this issue still exists in IE7+ because I just stopped using BUTTON. Just something you may want to keep in mind if you have to support older versions of IE

Re: Tapestry 5.1 Page Pool Exhausted

2011-05-09 Thread Michael Gentry
Without trying to sound too flippant, is there a chance you can migrate to Tapestry 5.2? (It no longer has page pools.) Also, it sounds like your application is either high-volume, your HomeInfoArea page renders really slowly (we had that happen when a page relied on an external service that

Re: contribute to head from a page

2011-05-06 Thread Michael Gentry
Just use @Import in your page's class: @Import(library = context:js/something.js, stylesheet = context:css/something.css) mrg PS. You should probably use that in your layout's class, too. On Fri, May 6, 2011 at 1:17 PM, stephanos2k stephan.beh...@googlemail.com wrote: I have a layout L and

Re: contribute to head from a page

2011-05-06 Thread Michael Gentry
Oh, and if you need more than one something, use curly braces: @Import(library = { context:js/something1.js, context:js/something2.js}, stylesheet = context:css/something.css) mrg On Fri, May 6, 2011 at 1:29 PM, Michael Gentry mgen...@masslight.net wrote: Just use @Import in your page's class

Re: 10 Minute Web Application Demo

2011-02-16 Thread Michael Gentry
Hi Mark, Keep in mind that a lot of companies block YouTube access (and other media sites), so putting it on YouTube might actually restrict access more than you intended. mrg On Wed, Feb 16, 2011 at 12:44 PM, Mark mark-li...@xeric.net wrote: Thanks.  I switched it over to youtube so if you

Re: 10 Minute Web Application Demo

2011-02-16 Thread Michael Gentry
That's not an option for some of us, either. :-) On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: That's what the your mobile device is for :) On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote: Hi Mark, Keep in mind that a lot of companies block YouTube access

Re: 10 Minute Web Application Demo

2011-02-16 Thread Michael Gentry
Sure, but I don't general show people Tapestry 5 at home. I'll bet most of us don't do that, either. :-) mrg On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel cr.ml...@googlemail.com wrote: don't you have internet at home? :p Am 16.02.2011 um 19:54 schrieb Michael Gentry: That's

Re: Noticed another stackoverflow question on Tapestry 5, go vote

2011-02-09 Thread Michael Gentry
Hi, This isn't a Tapestry issue. I don't know anything about the tap-hibernate extension, but Tapestry itself isn't stopping you from accessing multiple databases. mrg On Wed, Feb 9, 2011 at 3:31 AM, antalk ant...@intercommit.nl wrote: True, But they have forgotten to ask if the original

Re: Tynamo Conversations Java 5

2011-02-04 Thread Michael Gentry
The other day on the Cayenne list we were talking about dropping support for Java 1.5 in Cayenne 3.1. Someone pointed out that PowerPC Macs (which are still in use -- desktops and servers) don't have the option of Java 1.6 yet, so we decided to stick with Java 1.5 for the time being since Java

@SessionState Bug?

2011-01-06 Thread Michael Gentry
Hi everyone, Given the following page class: public class Bug { @Inject private Logger log; @SessionState(create=false) private ListBoolean booleans; @SessionState(create=false) private ListString strings; void onActivate() { log.debug(booleans = +

Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
that it doesn't know). All it can do is give a warning at List strings2 = strings because you're doing some potentially type unsafe things. On Thu, Jan 6, 2011 at 9:38 AM, Michael Gentry mgen...@masslight.netwrote: Hi everyone, Given the following page class: public class Bug {   �...@inject

Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
On Thu, Jan 6, 2011 at 10:14 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 06 Jan 2011 13:09:43 -0200, Michael Gentry mgen...@masslight.net Thanks for the explanation, but the types might be a red herring.  I'm less concerned about that than the fact that Tapestry seems

Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
that (or can be), but that sums up the typical use-case. Robert On Jan 6, 2011, at 1/69:55 AM , Michael Gentry wrote: On Thu, Jan 6, 2011 at 10:14 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 06 Jan 2011 13:09:43 -0200, Michael Gentry mgen...@masslight.net Thanks

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
On Thu, Jan 6, 2011 at 11:56 AM, Josh Canfield joshcanfi...@gmail.com wrote: In 5.2 there is SessionAttribute which pulls the value from the session by name, defaulting to the name of the field... Hi Josh, SessionAttribute sounds much more promising to me. Thanks for the tip! mrg

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
On Thu, Jan 6, 2011 at 11:56 AM, Josh Canfield joshcanfi...@gmail.com wrote: In 5.2 there is SessionAttribute which pulls the value from the session by name, defaulting to the name of the field... Hi Josh, @SessionAttribute is working great so far. Thanks again for the tip. For discussion by

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
. Or, a backwards compatible solution is just to make it common practice for session variable names to be prefixed with the project/library name to prevent these conflicts. On Thu, Jan 6, 2011 at 2:21 PM, Michael Gentry mgen...@masslight.netwrote: On Thu, Jan 6, 2011 at 11:56 AM, Josh Canfield joshcanfi

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
in user or a shopping basket. Usually you have only one instance of such an object in your app, so it is absolutely fine to same only one instance per app. Regards On Thu, Jan 6, 2011 at 8:21 PM, Michael Gentry mgen...@masslight.netwrote: On Thu, Jan 6, 2011 at 11:56 AM, Josh Canfield

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
, and not a guarantee of safety. Thanks! mrg On Thu, Jan 6, 2011 at 2:45 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 06 Jan 2011 17:21:32 -0200, Michael Gentry mgen...@masslight.net wrote: I'd like to suggest that @SessionState be deprecated in favor of @SessionAttribute

Re: Re: @SessionState Bug?

2011-01-06 Thread Michael Gentry
Hi Thiago, I meant to mention that I don't consider @SessionState has been used as it is since Tapetry 5 exists. to be a very good reason/excuse because @IncludeJavaScriptLibrary and @IncludeStylesheet are now deprecated. Things sometimes change (and hopefully for the better). :-) Cheers, mrg

Re: T5.2.4 How to discard persistent fields when the user leaves a page ?

2010-12-27 Thread Michael Gentry
discardPersistentFieldChanges() will discard @Persist values, but the original question was how to do it when the user leaves the page. Read Howard's message here along with the following messages: http://markmail.org/message/67dbxuwf3rw3naja In a nutshell, it was easy to implement pageReset,

  1   2   3   >