Re: Is there a way to pregenerate Component/Page classes?

2006-08-30 Thread Bryan Lewis
You're asking to preload all the pages in the app, to check for syntax errors in the html and page specs. Things the compiler doesn't catch, that normally you wouldn't discover until you visit the page. I used to do that. It's not supported directly by Tapestry, but in Tapestry3 it wasn't to

Re: Trace clients actions

2006-09-06 Thread Bryan Lewis
Right... that's been working well for us. I have a request listener method in a POJO: import org.apache.log4j.MDC; public class EventListener implements ServletRequestListener // among others { public void requestInitialized(ServletRequestEvent sre) { HttpServletRequest req = (Ht

Re: Expired Session message

2006-09-12 Thread Bryan Lewis
The one difference I see between your code and what's been working for me in my custom Engine class is one more line: cycle.activate(page); renderResponse(cycle); [EMAIL PROTECTED] wrote: > Hi. > > When the session expires, how can I handle this and redirect to a customiz

Re: Expired Session message

2006-09-14 Thread Bryan Lewis
Hmm, I thought from your previous post that this method was in your custom Engine class. The handleStaleSessionException() method in the Engine is what gets called when the exception occurs. If this method is in a page or component it won't be called. Still, if you named your exception-reporting

Re: Expired Session message

2006-09-14 Thread Bryan Lewis
(AdminVisit) getVisit(); > if (!theVisit.hasPermission(requiredPermission)) > { > IPage permDenied = cycle.getPage("PermissionDenied"); > PropertyUtils.write(permDenied, "permissionRequired", > requiredPermission); > thro

Re: How to listent for the Request Cycle End

2006-09-19 Thread Bryan Lewis
It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestList

Re: How to listent for the Request Cycle End

2006-09-20 Thread Bryan Lewis
ike a hack:) > > What do you think if I override the Engine's method: > > public void service(WebRequest request, WebResponse > response) throws IOException { > super.service(request, response); > // insert code here > } > > Is this a bad approach? > > &g

Re: How to listent for the Request Cycle End

2006-09-22 Thread Bryan Lewis
>> correct >> >>>>> that it would avoid the >>>>> >>>>>> visit-from-session inelegant bit. It would >>>>>> >> be >> >>>>> conceptually similar to &

Re: Listing Current User Sessions

2006-09-29 Thread Bryan Lewis
Daniel Jue gmail.com> writes: > Does anyone have an example of listing current user sessions... This tool might make things easier for you. I haven't tried it yet. http://messadmin.sourceforge.net/ - To unsubscribe, e-mail

Re: Component timeouts and an NPE

2007-02-16 Thread Bryan Lewis
The easy solution is, don't use private variables like that. Declare them as persistent page properties. Do your development with caching disabled so that the problem appears right away, rather than after a ten-minute garbage-collection period. Mark Stang wrote: > Hi, > I am seeing Tapestry 3 c

Re: Converting From tapestry 4.0 to 4.1. Stale Link Errors

2007-03-29 Thread Bryan Lewis
Just in case it helps We had a surprise StaleLinkException in our 4.0.1 apps recently, after creating a complex component with multiple loops and conditions. The reason was that we were still using the old Foreach component for our loops; it hadn't given us any trouble before. Switching fro

Re: Anybody have the FCKEditor working in IE7?

2007-04-19 Thread Bryan Lewis
I have FCKEditor 2.3.2 working in IE7. I don't remember doing anything special to make it work there. Looking back at my notes, I did have some trouble with the Google toolbar's spell-checker blanking out the text area on IE7. But then it started working and I never went back and pinned down exa

overriding a translator

2009-10-07 Thread Bryan Lewis
g something. Tapestry insists on calling my contributeTranslatorSource() with an unorderd Configuration. Thanks! Bryan Lewis

Re: overriding a translator

2009-10-07 Thread Bryan Lewis
a > MappedConfiguration so that you identify the > translator by name for override purposes. > > Have you added an issue for this? > > On Wed, Oct 7, 2009 at 10:32 AM, Bryan Lewis > wrote: > > Hi. (I just said that so I could get one of Thiago's Hi's. :-

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-10-14 Thread Bryan Lewis
I tried your dependency and got the same error. Change "chenillekit-project" to "chenillekit-tapestry". The complete dependency from my pom is: org.chenillekit chenillekit-tapestry 1.2.0 jboss j

Re: How to create same functionality as TriggerFragment, but for actionLink

2009-10-19 Thread Bryan Lewis
You might like the TitlePane add-on component at http://lombok.demon.co.uk/tapestry5Demo/. Or at least start with its code. It can hide any arbirtary section of a page with an onclick, using the prototype api. On Mon, Oct 19, 2009 at 4:29 AM, Andrey Larionov wrote: > All examples what i found

Re: @IncludeJavaScriptLibrary with external script files ...

2009-11-22 Thread Bryan Lewis
Hmm. Maybe this page will help. It had a tip that worked for me. http://bbwebcraft.blogspot.com/2009/01/task-5-customize-eclipse-for-tapestry-5.html @Inject @Path("SomeFileName.js") private Asset someScript; @Environmental private RenderSupport renderSupport; void setupRender() { renderSu

Re: Change Event on Select Component

2009-11-25 Thread Bryan Lewis
It's on page 225 of my paper copy. A simple bit of javascript: On Wed, Nov 25, 2009 at 9:49 AM, Jim O'Callaghan wrote: > Hi, > > I had a requirement to do this previously and used the example provided in > Tapestry 5: Building Web Applications, around page 281 - the book (or at > least ex

Re: Number Formatting in TextField (T5)

2009-12-27 Thread Bryan Lewis
I'd like to see either or both of the techniques. I thought that it wasn't possible to override Tapestry's built-in translators. (See TAP-725, "You cannot define two different translators for a single field type.") When I tried to add custom translators for String and BigDecimal types, either my

Re: Number Formatting in TextField (T5)

2009-12-27 Thread Bryan Lewis
Thiago wrote: > > As of 5.1.0.5, it isn't possible to override them for a given type > globally, but you can override it in a given TextField instance (translate > parameter). > > Really? I wish that was my experience. Here's what I'm seeing; maybe you can point out what I've done wrong. I have

Re: Number Formatting in TextField (T5)

2009-12-27 Thread Bryan Lewis
ic FieldTranslator getCurrency() { return new CurrencyTranslator(); } Where CurrencyTranslator implements FieldTranslator. On Sun, Dec 27, 2009 at 3:37 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Sun, 27 Dec 2009 17:58:07 -0200, Bryan Lewis >

Re: reloading of javascript files (sometimes) fails

2010-01-08 Thread Bryan Lewis
Maybe this is what you're seeing. This article helped me when Jetty was unable to reload stylesheet files. http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows On Fri, Jan 8, 2010 at 4:01 PM, Andy Pahne wrote: > > I use mavens jetty plugin and Eclipse. Template (css, images ...) and

Re: Installing easyfckeditor

2010-01-09 Thread Bryan Lewis
I've had better luck using the fckeditor in chenillekit. My pom.xml: org.chenillekit chenillekit-tapestry 1.2.0 A simple template: On Sat, Jan 9, 2010 at 8:47 AM, oskar_a wrote: > > Hi Ville, > > thank you for your advice. I installed the

Re: 5.1.0.6-SNAPSHOT ?

2010-01-26 Thread Bryan Lewis
If I want to upgrade from 5.1.0.5 to the 5.1.0.6 snapshot, I can't simply bump the version in my project's pom, can I? I'd have to check out the source and build locally? On Mon, Jan 25, 2010 at 10:04 PM, Andreas Andreou wrote: > no - there's more! > > http://repository.apache.org/snapshots/or

Re: 5.1.0.6-SNAPSHOT ?

2010-01-26 Thread Bryan Lewis
M, Ulrich Stärk wrote: > No, just change the version and configure the repository location > correctly. I.e. create one pointing to > http://repository.apache.org/snapshots > > HTH, > > Uli > > On 26.01.2010 15:25 schrieb Bryan Lewis: > > If I want to upgrade from

Re: 5.1.0.6-SNAPSHOT ?

2010-01-26 Thread Bryan Lewis
Okay, I tried it again. The maven update worked this time. It picked up the new build with the -3 suffix. However, now I'm getting an error on one of my pages that contains the tapx-datefield component, A javascript error pops up in a Blackbird console: Tapestry.Initializer.tapxDateField()

Re: 5.1.0.6-SNAPSHOT ?

2010-01-26 Thread Bryan Lewis
formos.com repository from my pom. Sorry, changed two things at once. Maven still feels a bit too much like magic to me. (Yeah, I know, any sufficiently advanced technology...) On Tue, Jan 26, 2010 at 8:45 PM, Bryan Lewis wrote: > Okay, I tried it again. The maven update worked this time.

Re: 5.1.0.6-SNAPSHOT ?

2010-01-27 Thread Bryan Lewis
Agreed. I was sort of blaming the messenger. On Tue, Jan 26, 2010 at 9:29 PM, Kalle Korhonen wrote: > On Tue, Jan 26, 2010 at 5:57 PM, Bryan Lewis > wrote: > > I thought of another way to kick-start it. I put my pom's Tapestry > version > > back to 5.1.0.5 and the

Re: Autocomplete mixin css

2010-03-27 Thread Bryan Lewis
http://tapestry.apache.org/tapestry5/guide/css.html Basically, you'll look at Tapestry's built-in stylesheet -- default.css in the org.apache.tapestry5 folder of tapestry-core-5.1.0.5.jar or whatever version you have -- and take note of the style names that matter to you. For autocomplete, look fo

getting full file path for an upload

2010-03-30 Thread Bryan Lewis
I've been using the Upload component with good results. Now I need to get the full client-side path where the file came from. I've tried UploadedFile.getFilePath() but that gives me only the base filename, like "foo.txt", not the absolute path. The comments in UploadedFile say that getFilePath()

unknown prefix for asset path, only when testing with tapx-datefield

2010-04-02 Thread Bryan Lewis
I have a simple page test based on Testify/TestNG. It's only a smoke test, merely renders the page to make sure I haven't broken anything. public void test1() { Document doc = tester.renderPage("contacteditor/200"); String contents = doc.toString(); assertTrue(!con

once-only onActivate method

2009-04-19 Thread Bryan Lewis
I need a method that will get called exactly once when a page is first invoked, and not again when a form in the page is submitted. In Tapestry 4 the activateExternalPage() method was good for that. I don't think the new onActivate() method is a replacement, nor is the SetupRender-annotated metho

Re: once-only onActivate method

2009-04-20 Thread Bryan Lewis
don't know how Cayenne works so this might not apply, but I've noticed that > this is best practise for our apps w/ hibernate.) > > - Ville > > > JoelGrrrr wrote: > > > > This might help... PageLoaded ... > > > http://tapestry.apache.org/tapestry5/a

Re: Tapestry5 future compatiblity?

2009-04-30 Thread Bryan Lewis
That agrees well with my T3-4-5 experience over the last five years. Once I committed to T5, it wasn't as bad as I'd feared from all the mailing-list discussion. (Note to self: The list is mainly about problems.) It felt familiar, the "concepts translated well". Getting accustomed to Maven and

Re: Upgrade from T4 to T5.1

2009-05-12 Thread Bryan Lewis
We're in a similar situation and the same history. Recently I did a little work on mixing new Tap5 pages with an older Tap4 app. It works but it feels a bit awkward and we haven't acid-tested it in production. I'd be interested in your results if you try it. Basically I deployed the new Tap5 pa

Re: T5: Host and cookies

2009-06-04 Thread Bryan Lewis
Can't you just use cookie.setDomain()? Set both cookies to the same domain. Doesn't sound Tapestry- or javascript-related. On Wed, Jun 3, 2009 at 9:37 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 03 Jun 2009 21:02:06 -0300, Angelo Chen < > angelochen...@yahoo.com.h

Re: Announcment: T5 FCK editor integration library

2009-07-24 Thread Bryan Lewis
It looks good. Thanks for contributing! When I tried it (after manually adding the jar to my web-app project), I got: java.lang.UnsupportedClassVersionError: Bad version number in .class file EasyFCKEditor is compiled with JDK 1.6, while we have to run with JDK 1.5.

Re: Announcment: T5 FCK editor integration library

2009-07-24 Thread Bryan Lewis
No hurry. I'm doing okay with the editor in chenillekit for now. Just letting you know. On Fri, Jul 24, 2009 at 9:15 AM, Ville Virtanen wrote: > > Damn, we're on 1.6 only... I'll roll another 1.5 compiled release tonight > if > I have the time after work. >

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Bryan Lewis
This might help: http://tapestry.apache.org/tapestry5/guide/validation.html You can access your form and input components by injection, and then do form.recordError(field, ...). 2009/7/31 Vjeran Marcinko > Hello, > > I have created multi-form-field component (eg, DateRangeEditor component >

Re: Jetty 6.16 and T5.0.13

2009-08-11 Thread Bryan Lewis
I'm building Tapestry 5.0.18 apps in Eclipse with Jetty with no problem. What plugin are you using to run jetty in eclipse? At first I tried JettyLauncher because it was recommended in the Tapestry tutorial (for older versions of Jetty and Eclipse), but I got ClassNotFoundExceptions when running w

Re: multiselect

2010-05-21 Thread Bryan Lewis
If "multiselect" means what I think it does... we've had good luck with the ChildSelect component in the lombok library. http://lombok.demon.co.uk/tapestry5Demo/test/components/DynamicSelect 2010/5/21 Genís Pujol > Hello, > > Is there any documentation/examples about multiselect controls in >

Re: T5: LinkSubmit should be generic

2010-05-21 Thread Bryan Lewis
Cool. It reminds me of a question I've been meaning to ask. What's the best way to define the default value for component parameters? Is it: @Parameter(defaultPrefix = BindingConstants.LITERAL) private String clientEvent = "change"; or: @Parameter(value = "change", defaultPrefix =

Re: Testify unable to locate the @IncludeStylesheet

2010-06-08 Thread Bryan Lewis
I've used Testify with no real problems. I tried your line of initialization code and it worked for me. I've done no special configuration, just righ-clicked on my tet class and Debug as TestNG Test. The exception says it's looking for a file src/main/webapp/css/grid.css. On Tue, Jun 8, 2010 at

Re: Testify unable to locate the @IncludeStylesheet

2010-06-09 Thread Bryan Lewis
I'm on an older version of testify, 1.0.0. Maybe that's a clue. On Wed, Jun 9, 2010 at 8:26 AM, paha wrote: > > Doesn't work for me either. Neither PageTester nor Testify (based on it) > seem > to handle asset:context: properly. I have no other explanation, why the > same > things work in tape

Re: Custom tab panel

2010-07-22 Thread Bryan Lewis
Why not use a Loop in your component and pass in a List? On Thu, Jul 22, 2010 at 6:03 AM, Jabbar wrote: > Hello all, > > I'm trying to make a custom tab component. I want to use it like the > following > > > > > > > > > > > > > > In my java tab component class I don't know

Re: Refresh zone periodicaly

2010-08-13 Thread Bryan Lewis
I've had very good results with this mixin that I heard about from this list. On Thu, Aug 12, 2010 at 9:14 PM, Mite wrote: > > Hi > Is there a way to refresh a zone on a fixed period automatically? > > Thanks > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Refresh-z

Re: Refresh zone periodicaly

2010-08-13 Thread Bryan Lewis
Let me try that again. I've had very good results with this PeriodicUpdate mixin that I heard about from this list. http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5 On Fri, Aug 13, 2010 at 9:06 AM, Bryan Lewis wrote: > I've had very good results with this mixin

weird datefield pop-up position in IE

2010-08-18 Thread Bryan Lewis
I have a page with a form containing a DateField. The form is long enough that the user might have to scroll down a little to get to the DateField. After that, when the user clicks on the calendar icon, the widget pops up in some seemingly random location not near the field. Sometimes even outside

Re: weird datefield pop-up position in IE

2010-08-18 Thread Bryan Lewis
Sorry, didn't mention my Tapestry version. 5.1.0.5. On Wed, Aug 18, 2010 at 10:31 AM, Bryan Lewis wrote: > I have a page with a form containing a DateField. The form is long enough > that the user might have to scroll down a little to get to the DateField. > After that, when t

Re: Selct object which depends on other select object

2010-08-24 Thread Bryan Lewis
I had good results with this: http://lombok.demon.co.uk/tapestry5Demo/ On Mon, Aug 23, 2010 at 12:19 PM, tas85 wrote: > > Hi Tapestry, > > Is it possible to create 2 Select Box of Objects, as: > > List1: Car, Motor, Bicyle > List2: depend on List1, if on choose car, List2 will be Mercedes, Au

Re: Call function periodically

2010-08-31 Thread Bryan Lewis
I had good results with the PeriodicUpdate mixin described at http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5 On Tue, Aug 31, 2010 at 6:25 PM, Mite wrote: > > I need to have a function called every one minute from the moment the > application is deployed on the server, that do

Re: T5 - Refresh 1 second Ajax method

2010-10-14 Thread Bryan Lewis
This tutorial might be helpful. It shows a page being periodically updated. http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/ On Thu, Oct 14, 2010 at 7:04 AM, LLTYK wrote: > > I don't think there's an existing howto floating around so you're gonna > have > to put something tog

Re: How to render label for dynamically rendered radiogroup?

2010-12-12 Thread Bryan Lewis
I use a RadioGroup with a Loop frequently. I think you only need to change the way you specify the label. Here's an example from my code: On Sun, Dec 12, 2010 at 8:18 AM, Anton Mezerny wrote: > Hi all, > I'm trying to render dynamic RadioGroup like here: > > > > >

Re: translators in 5.2, and re-use as formatters

2010-12-22 Thread Bryan Lewis
I don't have a great answer, but since you asked again... I had a similar surprise a year ago because I was expecting things to work as they did in Tap4: http://www.mail-archive.com/users@tapestry.apache.org/msg39593.html But someone (Thiago probably) pointed out that it wasn't so hard to specify

Re: Inject Cookies into a SessionState object

2010-12-29 Thread Bryan Lewis
Here's what's been working for us, constructor injecion. (My syntax might be a bit old and deprecated by now?) public Visit(@InjectService("Cookies") Cookies cookieService) { this.cookieService = cookieService; } // Just to make sure I don't try to do 'new Visit()', hide

Re: Inject Cookies into a SessionState object

2010-12-29 Thread Bryan Lewis
even need the @InjectService or @Inject annotations for injection > to be done in constructors of services. > > Naming your session state class Visit makes me 99% sure you were a Tapestry > 4 or 3 user. :P > > > On Wed, 29 Dec 2010 18:19:12 -0200, Bryan Lewis > wrote:

Re: Best Practice for flash Messages?

2011-01-06 Thread Bryan Lewis
Interesting idea, I plan to try it... I've had occasional difficulties getting the built-in persistence methods to work just right. If I use flash, the message doesn't always survive the redirect, say if I return null from onSuccess(). But I'm curious about the original statement, "Generics are d

Re: datefield - no option to cancel?

2011-01-09 Thread Bryan Lewis
I switched our apps some time ago to Tapx Datefield and we've been happy with it. The only annoyance about it was the inability to easily override the date parser. I was asked to make it accept two-digit years and I had to hack the source. But we were totally happy with it before that requirement

Select with zone failing intermittently

2011-02-24 Thread Bryan Lewis
I've been trying to figure out a weird bug today, and before I lose the night over it I thought I'd ask the list. I'm using the cool new "chained select" feature. One Select has a zone, and triggers an onValueChanged() method that affects another Select. It works fine on my machine and when most

Re: Select with zone failing intermittently

2011-02-25 Thread Bryan Lewis
t 6:41 AM, Ulrich Stärk wrote: > Can you see the request hitting the server after the first zone's value is > changed? > > Uli > > On 24.02.2011 23:43, Bryan Lewis wrote: > > I've been trying to figure out a weird bug today, and before I lose the > > night

Re: Select with zone failing intermittently

2011-02-25 Thread Bryan Lewis
posting and have an insight. On Fri, Feb 25, 2011 at 10:24 AM, Bryan Lewis wrote: > Nope. In the failing cases, the ajax request did not arrive at my > AppModule's request filter. That's why the Select's onValueChanged() isn't > getting called. I don't thin

Re: Select with zone failing intermittently

2011-02-25 Thread Bryan Lewis
ect. The >> second select does an onchange form submit. Crude and a bit slower but it >> works. >> >> In other words it stumped me. Maybe some day someone else will see this >> posting and have an insight. >> >> >> On Fri, Feb 25, 2011 at 10:24 AM,

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Bryan Lewis
The stack trace says you have an NPE in your onSuccess method, at SelectPlayers.java:246. The ComponentEventException has little to do with it... it's only saying the exception occurred during the 'success' event. On Tue, Mar 1, 2011 at 7:18 AM, robnangle wrote: > I have seen a couple thru the

slow page reload

2011-04-06 Thread Bryan Lewis
When I make a trivial change to a Tapestry page in development and refresh my browser to cause a hot reload, it's taking about 11 seconds which is getting annoying. I don't know exactly when this started (months ago), but in an older workspace the page-reload time is about 0.3 second. Both are us

Re: slow page reload

2011-04-07 Thread Bryan Lewis
ing > for content, or is the content up immediately, but doesn't reflect the > new code & resources? > > On Wed, Apr 6, 2011 at 5:30 PM, Bryan Lewis wrote: > > When I make a trivial change to a Tapestry page in development and > refresh > > my browser to cause a

Re: How to setup favicon?

2011-04-08 Thread Bryan Lewis
I haven't had any trouble defining a favicon, and I run in Jetty both on my dev machine ond on our production server. I put the icon file in src/main/webapp/i. My layout component does: ${title} (I forget why I needed both links and maybe I don't any more... some browser inc

Re: Link to root

2011-04-24 Thread Bryan Lewis
One way to do it: @Inject private Request request; ... int port = request.getServerPort(); String serverName = request.getServerName(); On Sun, Apr 24, 2011 at 7:28 PM, Mark wrote: > What is the best way to get the url of the root of a web application? In > other wor

Re: page automatically scrolling to component on load

2011-05-21 Thread Bryan Lewis
Tapestry automatically puts the focus into the first field of the page unless you tell it not to. Try adding the 'autofocus' attribute to the form declaration: On Sat, May 21, 2011 at 5:53 AM, Joel Halbert wrote: > Hi, > > We've got a upload file form using the Upload component: > >

Re: Live class reloading very slow

2011-05-24 Thread Bryan Lewis
Maybe you did the same thing I did? http://tapestry.1045711.n5.nabble.com/slow-page-reload-td4287502.html On Tue, May 24, 2011 at 1:06 PM, Davor Hrg wrote: > I've updated run-jetty, > and tried with and without page-pool > still 5-6 seconds load time. > > > I decided to try to go as simple as p

Re: Live class reloading very slow

2011-05-24 Thread Bryan Lewis
I put it back into the src/main/resources line of .classpath, like: My templates are being copied to the expected place, like ... target\classes\com\companyname\appname\pages\PageName.tml. Maybe there's something else amiss with your maven/build configuration. Does your pom.xml have the se

running eclipse in production

2011-10-10 Thread Bryan Lewis
This might be a silly idea, but I'll ask it anyway... Would it be bad to run a Tapestry application inside Eclipse on a production server? The objective would be to have full hot-swapping, as I have in my local development workspace, but maybe it would be bad for memory consumption or stability.

Re: running eclipse in production

2011-10-11 Thread Bryan Lewis
Yes, I'm sure that's what he meant. Version 5.3 will turn off live class reloading in production, which is why he's saying you'll have to run in development mode. To clarify my original question (now that it's a dead horse)... I wasn't worried about reloading of the pages and other top-tier clas

Re: Clearing form errors problem

2011-11-11 Thread Bryan Lewis
I had a related problem. An Ajax form submit stopped working after the page returned a StreamResponse. Manually refreshing the page fixed it, which provided the clue to a better fix. (Aided by this list -- there were a couple of posts on 9/4 and 9/24 about it... maybe this is corrected in a late

Re: help upgrading T4 code

2012-09-15 Thread Bryan Lewis
Maybe this will help. I haven't tried it myself. http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html On Sat, Sep 15, 2012 at 5:40 PM, Ken in Nashua wrote: > > Folks, > > Any help is appreciated. > > Formerly (in T4) OGNL was used to perform delicate property handling and > p

Re: is there a way to refer to a Class type in a tml ?

2012-09-29 Thread Bryan Lewis
This might help: http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html On Friday, September 28, 2012, Ken in Nashua wrote: > > Thanks Thiago... that worked for my one class. > > But... > > @java.lang.Math@min(collection.size,itemsPerPage) > > the above statement... I am sure you

Re: [Bug] t:zone update loses background style

2012-10-31 Thread Bryan Lewis
I wonder if it's related to this issue: https://issues.apache.org/jira/browse/TAP5-707 As of version 5.2, tapestry.js sets the background color inside a zone, trying to prevent a partially faded yellow. On Wed, Oct 31, 2012 at 3:50 PM, membersound wrote: > Sometimes if a t:zone is updated, I'm

Re: [Bug] t:zone update loses background style

2012-10-31 Thread Bryan Lewis
etStyle('background-color')) this.endcolor = this.element.getStyle('background-color').parseColor('#ff'); On Wed, Oct 31, 2012 at 5:53 PM, Bryan Lewis wrote: > I wonder if it's related to this issue: > https://issues.apache.org/jira/browse/TAP5-707 >

Re: Retrieveing what page user is located in?

2012-11-02 Thread Bryan Lewis
What I use: @Inject private ComponentResources componentResources; /** * @return the containing page. */ public BasePage getPage() { return (BasePage) componentResources.getPage(); } On Fri, Nov 2, 2012 at 3:02 PM, o3005659 wrote: > How can I simply find

Re: Retrieveing what page user is located in?

2012-11-04 Thread Bryan Lewis
Sorry, BasePage is our internal class, the root class for all our pages. I assumed you'd replace it with something similar of your own. It could be only an interface. If you don't have such a thing, don't add a cast at all... componentResources.getPage() returns a Component and that should be g

Re: using onActivate to see if this is the correct page .

2012-11-12 Thread Bryan Lewis
Tapestry invokes the Index page when it receives a request for a page that doesn't exist. I couldn't quickly find where this is explained in detail, but I did find this footnote at http://tapestry.apache.org/error-page-recipe.html "... any invalid path, which would normally generate a 404 error,

Re: ProgressiveDisplay UnknownValueException

2013-01-23 Thread Bryan Lewis
I've seen this error message when there was a JavaScript error elsewhere in my page. On Wednesday, January 23, 2013, George Christman wrote: > My bad, I pasted my test component exception with a different event > handler. > Anyhow, same exception with correct event handler. > > ioc.Registry A com

Re: ioc registry error after webapp running all day/night on tomcat

2013-03-03 Thread Bryan Lewis
I've seen this error message when I was playing with an automatic (timed) page refresh with a bit of javascript that did a location.reload. After a form submission the auto-refresh generated a URL like /pagename.form which caused this form-get exception. Yeah, it's a long shot but I thought I'd t

Re: graceful exception handling - user interface

2013-03-23 Thread Bryan Lewis
It sounds like this might be helpful: http://tapestry.apache.org/overriding-exception-reporting.html On Sat, Mar 23, 2013 at 9:34 AM, Ken in Nashua wrote: > I guess I am wondering if i can catch these exceptions in a centralized > place and just present the most meaningful text in a popup dialo

returning StreamPageContent causes ajax error

2013-04-17 Thread Bryan Lewis
Recently I started using the StreamPageContent feature to show the user an error message without losing the original page's address. For example: Object onActivate(Policy p) { if (p == null) { return new StreamPageContent(ErrorPage.class, "Invalid item"); }

Re: returning StreamPageContent causes ajax error

2013-04-18 Thread Bryan Lewis
o) if it sees an ajax request. On Wed, Apr 17, 2013 at 5:28 PM, Bryan Lewis wrote: > Recently I started using the StreamPageContent feature to show the user an > error message without losing the original page's address. For example: > > Object onActivate(Policy p) &

Re: Creating specific url link for specific object

2013-05-10 Thread Bryan Lewis
When I read the original post, I thought all he needed was a proper pair of onActivate/onPassivate methods. To get the first form of the url anyway. On Fri, May 10, 2013 at 7:51 AM, Taha Siddiqi wrote: > Please go through http://tapestry.apache.org/url-rewriting.html. > > Also http://blog.tap

Re: What is your tapestry project setup like (build tool/ide)

2012-01-16 Thread Bryan Lewis
Just in case it's related to your question... Last year I had a problem with m2eclipse being painfully slow but it was caused by my mis-configuration. http://tapestry.1045711.n5.nabble.com/slow-page-reload-td4287502.html On Mon, Jan 16, 2012 at 6:04 PM, Lenny Primak wrote: > When did this improv

Re: Fails to injecting a textarea

2012-03-04 Thread Bryan Lewis
A quick guess at the easy typo... missing 't:' before 'id'. On Sun, Mar 4, 2012 at 7:51 AM, Gunnar Eketrapp wrote: > I fail to inject a textarea .. > > Tml extract > value="message" style="height: 50px;"/> > > > Java extract > > > Neither .. > @InjectComponent > private TextAre

Re: Fails to injecting a textarea

2012-03-04 Thread Bryan Lewis
s needed. > > /Gunnar > > 2012/3/4 Bryan Lewis > > > A quick guess at the easy typo... missing 't:' before 'id'. > > > > > > On Sun, Mar 4, 2012 at 7:51 AM, Gunnar Eketrapp > > wrote: > > > > > I

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Bryan Lewis
We had the same problem. After a StreamResponse, an Ajax link on the same page stopped working. Where "stopped working" means, the link did invoke a server-side method, but no results appeared in the browser. A few work-arounds were discussed in this list (search for "windowunloaded"), such as t

Re: referencing a form from JS

2012-05-12 Thread Bryan Lewis
We dealt with this issue by writing a javascript function to find the mangled ID, based on the original ID. Maybe it'll help. We''l pass the ID of the containing element, often a div, to narrow the search. // Returns the ID of a component with a name beginning with the partialId. // When Tapestr

Re: [t5.3.x] Potential Static Util Class Concurrency Issue

2012-05-21 Thread Bryan Lewis
I experienced a fourth possibility, although it could be considered a variant of the third one. I was storing an object map (a Cayenne ObjectContext) in a ThreadLocal and I wasn't clearing the ThreadLocal immediately at the end of each request. In rare circumstances, when a second user started a

Grid with split rows

2012-06-13 Thread Bryan Lewis
I've been asked to add a number of columns to a Grid. It'll end up with 13 columns, a few of them rather wide , so the whole thing won't fint in a page width. We used to handle this by doing the editing in a separate page, but our users are asking if it's possible to do all the editing in-place.

Re: Grid with split rows

2012-06-13 Thread Bryan Lewis
Thanks. But me being a "pragmatic" programmer (aka lazy), I solved it by inelegantly stuffing the extra row tags into the last grid cell, like: Last cell's contents On Wed, Jun 13, 2012 at 4:05 PM, Lance Java wrote: > You could write a mixin which manipulates

Re: Grid with split rows

2012-06-14 Thread Bryan Lewis
The lightbox idea is cool. So is the AddGridRow component idea, if my users can't stand the idea of a pop-up dialog. I gave it a quick try and it works well, produces valid html. (And it hides the ugly markup from the template, to preserve a facade of self-respect.) Thanks, y'all.

Re: component initialization on post back

2012-07-23 Thread Bryan Lewis
Try onActivate() or onPrepareForSubmit(). On Mon, Jul 23, 2012 at 7:19 AM, ZKN __ wrote: > Hi, > I have a custom component that needs to be initialized every time before > use. For this I wrote a method like this: > @SetupRender > public void prepare() { > But this method only gets invo

Re: weird datefield pop-up position in IE

2012-07-25 Thread Bryan Lewis
gt; that the user has to scroll to get to it. When they use the datefield, the > popup appears in a completely different part of the page, above the form. > The user has to scroll back up to even see it. The form and datefield > works > fine in Chrome. > > Thanks > > > Bryan

Re: Is it possible to obtain page instances programmatically by name?

2012-07-26 Thread Bryan Lewis
I've been doing: @Inject private ComponentSource componentSource; public MyBasePage getPage(String pageName) { return (MyBasePage) componentSource.getPage(pageName); } On Thu, Jul 26, 2012 at 10:12 AM, Christian Riedel wrote: > You could inject the ComponentResources i

Re: datefield onchange

2012-08-20 Thread Bryan Lewis
Ah yes, the problem of not catching changes made by clicking on the little calendar icon. Here's a crude work-around I'm using in 5.2.6, catching the click event. String scriptlet = "Event.observe('" + dateFieldId + "-trigger', 'click', function() { setChanged(true); });" javaScriptSuppor

Re: How to make datefield input box readonly

2012-08-23 Thread Bryan Lewis
Try setting the 'readonly' attribute on the datefield. Works for me. On Thu, Aug 23, 2012 at 6:44 AM, karthi wrote: > Hi, > > > I am using date field in my UI where I don't want the users to type > anything > in the box provided, I surely need that input box coming with the date > field > and I

  1   2   >