Re: List of logged users

2006-05-04 Thread Adam Zimowski
Hi, You can also check out dev.opendating.org/javadoc/ . It does exactly that as well. SessionListener deletes user session record when session is destroyed. Kind Regards, adam On 5/4/06, Mike Snare <[EMAIL PROTECTED]> wrote: That's what I do, and it works for me. -Mike On 5/4/06, James Car

Re: [OT] OMG! A dynamic div component in JSF

2006-04-26 Thread Adam Zimowski
>A decent eCom application based on simple plugable components (hmm???) >developed and maintained on the cheap offshore, could blow away some of >these bloated eCom frameworks. If it hasn't happend yet, it will in a year >or so I'd guess, and then it will be game over for a lot of consultants with

Fwd: final question: opendating.org

2006-04-24 Thread Adam Zimowski
Date: Mon, 24 Apr 2006 08:21:35 -0700 (PDT) From:"Adam Zimowski" <[EMAIL PROTECTED]>  Add to Address Book  Add Mobile Alert Subject: Re: no time? To:[EMAIL PROTECTED] CC:[EMAIL PROTECTED], [EMAIL PROTECTED] Hi Ingmar,This weekend was very busy for me, I had no

Re: Problem With Application Behind Apache

2006-04-17 Thread Adam Zimowski
I'm using mod_jk2 to connect Apache and Tomcat. Both point to same root directory and works without problems. Are you using mod_jk2 ? On 4/17/06, James Carman <[EMAIL PROTECTED]> wrote: > Step 4: > > http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html > > > > -Original Message- > Fro

Re: Looking for a CATCHPA

2006-04-17 Thread Adam Zimowski
Using Captcha as a separate servlet is very un-Tapestry like. The way to do it in Tapestry is to setup a Hivemind service. My app uses it like this (hivemodule.xml):

Re: Looking for a CATCHPA

2006-04-17 Thread Adam Zimowski
Check out www.opendating.org which uses JCaptcha. The source code is easily browsable from http://www.opendating.org/dev/javadoc/. RegistrationCaptchaPage is what you want. You can download complete source code from sourceforge.net/projects/opendating. Regards, Adam On 4/17/06, Oscar Picasso <[E

Re: tapestry for a webwork developer

2006-04-14 Thread Adam Zimowski
Just curious What is in your optionion wrong with inheritance-based security model ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: page without a .page

2006-04-12 Thread Adam Zimowski
What does your directory structure look like? Where is Home.html ? On 4/12/06, Robin Ericsson <[EMAIL PROTECTED]> wrote: > On 4/12/06, Mark <[EMAIL PROTECTED]> wrote: > > Do you have Home.html? And do you have the proper Upper/lower-case spelling? > > Yes, > > Home.html exists and case shouldn't b

Re: Page injection question

2006-04-12 Thread Adam Zimowski
've moved on and am using the injection of the > name. Thanks for the help, though. > > -Mike > > On 4/12/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > Hi Mike, > > > > I inject my pages with constants as well (I too have a constant page > > class). I

Re: Page injection question

2006-04-12 Thread Adam Zimowski
Hi Mike, I inject my pages with constants as well (I too have a constant page class). I however, do a static import and annotation which works rather nicely with JDK 1.5. I haven't tried yet injecting page via XML, but seems to me that you need to return an instance of the actual page not the valu

Re: Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
{ > return getVal(FOO_PROP); >} > >public static final String getBar() { > return getVal(BAR_PROP); >} > >public static final String getVal(String key) { > // get it... > } > > } > > I don't really see much benefit to a hive

Re: Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
nfigure my properties.. Adam On 4/3/06, Mike Snare <[EMAIL PROTECTED]> wrote: > I don't think so, but why are you using a service for this? Seems > like it could be done in a static class or just an interface full of > constants. > > -Mike > > On 4/3/06, Adam Zimowsk

Simple property Hivemind service.

2006-04-03 Thread Adam Zimowski
I have an interface ISettings with a bunch of getters all returning String which are simple constant string settings: public interface ISettings { public String getApplicationName(); public String getApplicationVersion(); public String getCookieJSessionId(); public

Re: Hivemind startup error

2006-04-02 Thread Adam Zimowski
I installed Resin 3.0.18 to: /opt/resin-3.0.18 I also have a symbolic link /opt/resin that points to /opt/resin-3.0.18 Standard Resin libs are in: /opt/resin/lib. So instead of cluttering up resin's lib directory, I created /opt/resin/lib-tapestry-4.0 and added the following: commons-codec-1.3

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
a package=" > org.opendating" to see if that fixes it. > > > On 4/1/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > > > Okay... but I have all tapestry JARs in there. And because Resin > > kicked off my servlet, it obviously is seeing Tapestry libs..

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
a problem with Tapestry initialization, instead of Hivemind. > > -- > Ing. Leonardo Quijano Vincenzi > DTQ Software > > > Adam Zimowski wrote: > > If I comment out "offending" contributions, I get another hivemind > > exception clearly stating someth

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
at com.caucho.server.resin.Resin.main(Resin.java:623) On 4/1/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > Very weird, isn't it? I've been on it all night.. > > Resin 3.0.18, Tap 4.0, hivemind 1.1.1. JDK 1.5, Slackware Linux. > > Adam > > On 4/1/06, Leonardo Quijan

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
jano Vincenzi > DTQ Software > > > Adam Zimowski wrote: > > Sure. I'm missing XML schema declaration at the top. Could that be it? > > I also don't have a hivemind DTD. > > > > 500 Servlet Exception > > > > org.apache.hivemind.Applicati

Re: Hivemind startup error

2006-04-01 Thread Adam Zimowski
- hivemodule.xml On 4/1/06, Leonardo Qu

Hivemind startup error

2006-04-01 Thread Adam Zimowski
Hi, I'm trying to deploy my app to Resin, but I'm getting exception from Hivemind on startup about unknown configuration point tapestry.services.ApplicationServices. When testing it under Tomcat the app works just fine, so I'm guessing something Hivemind wants is missing. I basically created lib-t

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
I'm so silly sometimes... I just changed rootLogger to ERROR and now Hivemind is happy, but isn't logging debugs. You know your stuff James. Thanks a Lot ! Adam On 3/31/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > Heh... Sure enough, rootLogger wasn't configured

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
; wrote: > Try this: > log4j.rootLogger=DEBUG,A1 > > -Original Message- > From: Adam Zimowski [mailto:[EMAIL PROTECTED] > Sent: Friday, March 31, 2006 11:45 AM > To: Tapestry users > Subject: Re: log4j appender for > org.apache.hivemind.impl.XmlModuleDescriptorProvider > > #

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
ttern=%-4r %C{1} [%M] %-5p - %m%n Thanks for looking into this. Adam On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote: > I think you'll have to paste it in. I just need the one that you're using > during unit testing. > > -----Original Message- > From: Adam

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
wrote: > My JUnit tests log just fine using HiveMind. What does your configuration > file look like? > > > -Original Message- > From: Adam Zimowski [mailto:[EMAIL PROTECTED] > Sent: Friday, March 31, 2006 11:26 AM > To: Tapestry users >

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
rking, you know... Adam On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote: > Do you have your log4j.properties file on your JUnit test classpath? Are > other things being logged properly? > > -----Original Message- > From: Adam Zimowski [mailto:[EMAIL PROTECTED] > Sen

Re: log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-31 Thread Adam Zimowski
> > I'am attaching a example > > saludos. > > 2006/3/30, Adam Zimowski <[EMAIL PROTECTED]>: > > Hi, > > > > My DAOs are provided by Hivemind so I do Registry lookup. When I test > > them thru JUnit, I get a log4j error about missing Hivemind log

log4j appender for org.apache.hivemind.impl.XmlModuleDescriptorProvider

2006-03-30 Thread Adam Zimowski
Hi, My DAOs are provided by Hivemind so I do Registry lookup. When I test them thru JUnit, I get a log4j error about missing Hivemind logger. Is there a standard log4j configuration I should have setup for Hivemind? log4j:WARN No appenders could be found for logger (org.apache.hivemind.impl.XmlMo

Re: Dealing with OOME when Tap caching is disabled.

2006-03-30 Thread Adam Zimowski
e: > Tap caching is a development time only device and has know problems > like OOMEs. You should not deploy an application to a production > server with caching disabled. > > Geoff > > On 3/30/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > Mornin' again. &g

Dealing with OOME when Tap caching is disabled.

2006-03-30 Thread Adam Zimowski
Mornin' again. So I'm finally done with coding initial version of my app. I've survived countless OOEM's after hot-redeploys of my app during developement (I had caching disabled of course), but I knew about those OutOfMemoryExceptions from numerous thread posts here and elsewhere on the net. Now

Re: Newbie editing object values in a simple form...

2006-03-29 Thread Adam Zimowski
So I checked it out... This may be of use to me :-) Question: so once the object is done (ie flashed), will this invalidate/destroy the session if it had to create one? I would be interested in something like this because my app avoids creating a session under "guest" user at all possible costs. I

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
No, I haven't but I'm looking at it and am blown away! This is awesome. Are you working on this? I love it. Is it free? Adam On 3/28/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > Have you looked at TapDoc http://www.erinors.com/product/tapdoc ? > > > Cheers &g

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
nverts using xsl. > The ant task is available on the hivemind site and you can look at the > maven.xml file to use it -- though hopefully you don't have to > actually use maven to get it to work. > > -Mike > > On 3/28/06, Adam Zimowski <[EMAIL PROTECTED]> wrote

Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
Mornin' Hi, I'd like to generate Javadoc on my custom components and hivemind configuration. Anybody knows how Howard generated documentation for Components and HiveDoc ? I'm guessing he wrote some custom doclets, and ran a JavaDoc on it. If that's the case, anyone knows where to get them? Regard

Re: Setting a component property in another page

2006-03-28 Thread Adam Zimowski
Nima, I'd be curious to see the code for your "next" page. I'm guessing you don't have: @InjectComponent("nameofyourcomponent") public abstract ConversationInfoJwc getConversationInfoJwc(); Then, from the previous page (the one you showed us), just call the abstract getter to get ahold of compon

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Adam Zimowski
Come on man. Someone ripping on Howard about a silly logo. That ain't cool. So we're ripping back on him :-) Take it easy. Adam On 3/28/06, Detlef Schulze <[EMAIL PROTECTED]> wrote: > This list is getting noisy. > > Would you mind discussing this somewhere else as it is way off-topic? > > --

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Adam Zimowski
> Kids didn't wear 'beanies' where I came from either. ;-) He,he You're too funny man adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tapestry Support Network

2006-03-27 Thread Adam Zimowski
> In the meantime, of course our intent is to build as many apps as possible > that > use Tapestry. But as an example - most people don't know that Zillow.com was > built using Tapestry, Spring and Hibernate - nor do they care. How do we make > people care? How do we work with a company like Zi

Re: Tapestry Support Network

2006-03-27 Thread Adam Zimowski
> In regard to the future: I want us to have a larger Tapestry ecology - I see > a > future with open source and commercial tools, where there are Tapestry CMS > products, E-commerce, support, etc. There was a thread regarding promoting > Tapestry - how can we as a community follow up with this

Re: Best Practice: Controlling Page Names

2006-03-27 Thread Adam Zimowski
value from wrote: > Eclipse will automatically update the page name string in your > @InjectPage annotations when you rename the page class, so it's really > no problem to use raw strings. You just have to check the "Update > textual matches in comments and strings" box. &g

Re: Best Practice: Controlling Page Names

2006-03-27 Thread Adam Zimowski
or it... Adam On 3/27/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: > Anyone found a way to make this happen? > Seems like a very important point. Refactoring happends all the time. Is > everyone using these string constants all over the place or not simply using > the InjectPage

Re: Once again OGNL in Tapestry *sigh*

2006-03-26 Thread Adam Zimowski
Just tried Tapestry-Prop and works painlessly with my Tap4 app. Whatta way to go. And since I already took aggresive approach to keep OGNL simple, this certainly will eliminate a good half of my OGNL calls. Adam On 3/26/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > How nice. Learning

Re: Once again OGNL in Tapestry *sigh*

2006-03-26 Thread Adam Zimowski
> > But anyway , is there any plan to improve the performance of OGNL , > > since Tapestry 4.0 already released? > > > > On 3/26/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > > >> Hi Andreas, > >> > >> FYI, OGNL is one of the biggest bottlencec

Re: Protected scope for OGNL calls ?

2006-03-26 Thread Adam Zimowski
> more sense to me. If I understand correctly, you want to make a > method in the page class protected and still be able to access it from > the template, correct? Yeah, that's what I meant :-) > . If you > really want to expose only those methods

Re: Protected scope for OGNL calls ?

2006-03-26 Thread Adam Zimowski
<[EMAIL PROTECTED]> wrote: > Sounds kind of like a design issue. If you really need to access it > so badly from a non-subclass/non-package class, should it really be > protected? > > -Mike > > On 3/26/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > Yeah, thanks

Re: Protected scope for OGNL calls ?

2006-03-26 Thread Adam Zimowski
thodName(); > } > > > } > > > 2006/3/25, Adam Zimowski <[EMAIL PROTECTED]>: > > Hi, > > > > I'm not sure if this should be OGNL forum question, or something that > > can be addressed by Tapestry. Seems like OGNL requires m

Protected scope for OGNL calls ?

2006-03-25 Thread Adam Zimowski
Hi, I'm not sure if this should be OGNL forum question, or something that can be addressed by Tapestry. Seems like OGNL requires methods be public. Anybody knows of a workaround to use protected scope methods for OGNL calls? Regards, Adam -

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Adam Zimowski
> I really appreciate using OGNL expressions but as at many places > in computer science: Comfort is expensive.. You're right :-) Good luck. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Adam Zimowski
Hi Andreas, FYI, OGNL is one of the biggest bottlencecks in Tapestry. I'm learning about it from performance testing my own app, but I could not say it better than what Patrick explained a while back on this list. His post was regarding Tap 3.0.3, but from my Tap4 tests, the OGNL performance is st

Re: CookieSource Limitation

2006-03-21 Thread Adam Zimowski
new Cookie("JSESSIONID", null); cookie.setPath(aRequest.getContextPath()); cookie.setMaxAge(0); aResponse.addCookie(cookie); } Adam On 3/21/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > I have found the problem, and traced it to what I see

CookieSource Limitation

2006-03-21 Thread Adam Zimowski
ption I think is missing. Thoughts? Also, anybody knows how I could force my own implementation of CookieSource? Best Regards, Adam On 3/21/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > Hello Gurus, > > I have a working session persistence layer in my application. > Everything is

Removing stale JSESSIONID cookie value.

2006-03-21 Thread Adam Zimowski
Hello Gurus, I have a working session persistence layer in my application. Everything is great except one little annoyance.. My app takes advantage of Tapestry's intelligent session management, and doesn't create one unless needed (actually Tapestry controls that). Once session is created and pes

Re: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Adam Zimowski
tServlet(); > > Is there a way w/o using the Inject annotation, because I'ld like to be able > to do this in a Global object that wont be declared as abstract. > > Thx, > Asim > > > On 3/21/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > > >

Re: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Adam Zimowski
@InjectObject("service:tapestry.globals.HttpServletRequest") public abstract HttpServletRequest getServletRequest(); Tapestry will do the magic and give you a valid reference. On 3/21/06, Asim Khaja <[EMAIL PROTECTED]> wrote: > I'd like to get the HTTPServletRequest and HTTPServle

Re: Cactus and Testing

2006-03-20 Thread Adam Zimowski
Grinder is used for performance testing. He's not asking for that. He wants a tool similar to JUnit to test Tapestry pages. Try HttpUnit: http://httpunit.sourceforge.net/ Adam On 3/20/06, Konstantin Ignatyev <[EMAIL PROTECTED]> wrote: > TheGrinder3 is the best way to test IMO. http://grinder.so

Re: java.util.ConcurrentModificationException

2006-03-20 Thread Adam Zimowski
Hi Nima, You can't modify your list using iterator, because it changes the state and the iterator "gets confused", so you're getting the exception. If you want to populate the list, do a simple loop and invoke add(Object) method. Use iterator only to read list content, or update objects stored in

Re: Tapestry WIKI code License

2006-03-20 Thread Adam Zimowski
I only have one class containing WIKI code which I then slightly modified (http://wiki.apache.org/jakarta-tapestry/PagesAndComponentsInWEB-INF). The class currently looks as below. Anybody has a problem with me releasing it like that? If I don't hear otherwise I consider it's okay, otherwise I'll r

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-19 Thread Adam Zimowski
* * Created on Mar 18, 2006, 9:42:05 AM CST * Created by Adam Zimowski * * Copyright (C) 2005-present OpenDating.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation;

Re: Tap3 Multiple instances of a page

2006-03-17 Thread Adam Zimowski
AFAIK Tap should create two separate page instances. But to be sure you could check page pool size with a small prototype appliction. Another way to check, you could implement a static counter in your shared page class and increment it in the constructor. Then you'd know for sure. On 3/17/06, Andr

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
you'll have a tough time making sure people > use it right. Spend some extra time documenting the proper use and > move on to the next thing on your list. > > If what you're really worried about is other people within your > organization using the APIs incorrectly you can use

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
trying to impose an arbitrary restriction. If it really > *needs* to be a singleton then make it so and move on. Accessing it > via hivemind becomes of secondary importance at that point. > > On 3/16/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > You're awesome.

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
tance() -- assuming you made it an > instance. In that scenario the request is unnecessary. The exists() > method may be unnecessary too, I was just trying to sort of mimic the > functionality available in standard ASO usage. > > On 3/16/06, Adam Zimowski <[EMAIL PROTECTED]> wro

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
req.getSession().getAttribute(DAO_KEY); > } >} > >public boolean getDAOExists() { > return req.getSession().getAttribute(DAO_KEY) != null; >} > } > > Wherever you need the ISessionDAO, just inject the daoprovider service > and call getDAO... >

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
ionDAORetriever service. Noone would then know the type. > > > > -Mike > > > > On 3/16/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > > Silly me :-) How simple and elegant ! I've been thinking in the > > > spring context, yet Ta

Re: POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
tSessionDAO(); > > works fine too; i'm using it with tapestry-spring > > > > > "Adam Zimowski" > <[EMAIL PROTECTED] > .com> An >

Tapestry WIKI code License

2006-03-16 Thread Adam Zimowski
Is the code on Tapestry WIKI pages in public domain? I'm writing an open source applicatation based on Tapestry which will be released under GPL2. I'd like to copy code from the WIKI and release it as part of my app under GPL2. Can I do that? Adam --

Re: .page/.html/.jwc in different directories

2006-03-16 Thread Adam Zimowski
Great. I'm gonna try it then. On 3/16/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: > On 16. Mär 2006 - 07:32:58, Adam Zimowski wrote: > | Does anybody know if there are performance implications associated > | with this solution? Is the lookup cached, or executed eve

Re: .page/.html/.jwc in different directories

2006-03-16 Thread Adam Zimowski
Does anybody know if there are performance implications associated with this solution? Is the lookup cached, or executed every time? On 3/16/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: > Just tried, and > the code from the Wiki works for me. > > I configured the delegate using hivemind > > > An

POJO dependency injection (with interface) into TAP4 application

2006-03-16 Thread Adam Zimowski
Hi there, I'd like to inject my DAOs from Hivemind as an interface such that my app is not aware of implementation. I only know I can do this: Then, in my class I'd do: @InjectState("sessionDAO") public abstract SessionDAO getSessionDAO(); I have a few problems with this: 1) I'd like

Tapestry and Cookies

2006-03-13 Thread Adam Zimowski
Hi I extended ApplicationServlet to do some non-Tapestry work. From my servlet I need to set a persistent cookie after super.doGet, but when Tapestry's doGet is finished response is already committed and my setting a cookie does not take effect: @Override public void doGet(HttpServletRequest aReq

Re: Tapestry Session Bug ?

2006-03-12 Thread Adam Zimowski
tied to request listener - stupid me - I had a bug request.getSession() instead of request.getSession(false), and so new sessions were created. I'm sorry again! All is perfect with our awesome framework. -adam On 3/11/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > I attached a standard

Tapestry Session Bug ?

2006-03-11 Thread Adam Zimowski
I attached a standard session listener and observed the most bazaar behavior. If you include an enclosed by tapestry will create a session for each such image. The session is empty as no attributes are added (I sniffed for those as well). I had 9 images on the page, and 9 sessions got created. E

Re: Anyone have any idea about this exception?

2006-03-11 Thread Adam Zimowski
This is interesting. I read your other post as well, and I use annotations all over in my code in much the same way as you do. Never once did I get this exception. This leads me to a question. What servlet container are you using? Perhaps it'd be worth for you to try a different container and see i

Re: Ruby vs Tapestry

2006-03-06 Thread Adam Zimowski
I think your question should be adjusted: Ruby on Rails vs. Tapestry Tapestry without Java is nothing. Much like Ruby by itself is not going to help you with your web project. On 3/6/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > You can't really compare them. Ruby is a programming language, Ta

Re: Best Practice: Controlling Page Names

2006-03-06 Thread Adam Zimowski
ass.getSimpleName(); > > > > > -Original Message- > > From: Adam Zimowski [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 03, 2006 9:04 PM > > To: Tapestry users > > Subject: Re: Best Practice: Controlling Page Names > > > > Enums wo

Re: Custom Validator/Translator

2006-03-06 Thread Adam Zimowski
they get called/used when > submitting the form). > > My problem is the order of execution not that I don't know how > to use a custom delegate/translator/validator ;) > > Sincerly and thanks again anyway, > Andreas > > On 06. Mär 2006 - 10:28:28, Adam Zimowski wrot

Re: Datepicker, is there a better way for birth dates?

2006-03-06 Thread Adam Zimowski
Yup. Three. :) On 3/6/06, Stanczak Group <[EMAIL PROTECTED]> wrote: > You mean three, right? Yes, I just finished creating that. I just > thought it wouldn't hurt to ask real quick. > > Adam Zimowski wrote: > > How about creating custom component with tree dropdowns

Re: Custom Validator/Translator

2006-03-06 Thread Adam Zimowski
In your page class you can populate delegate object with your custom validations. For instance, if you add the following to you page class: @Bean public abstract ValidationDelegate getDelegate(); you then can add errors to this delegate in your listener (onSubmit or whatever). I s

Re: Datepicker, is there a better way for birth dates?

2006-03-06 Thread Adam Zimowski
How about creating custom component with tree dropdowns and your custom validator? This can be done quickly and can give you complete control over the data you put in it (and how you validate it). On 3/6/06, Stanczak Group <[EMAIL PROTECTED]> wrote: > Some users don't like the calendar for selecti

Re: File upload with extension limit

2006-03-06 Thread Adam Zimowski
You can certainly detect extension of the uploaded file (see andyhot's post), but as you know any user can forge it by simply renaming a file. In case of graphics though, almost every format includes some form of METADATA which you can use with Java imaging API to detect if the submitted file is t

Re: Tapestry 4 logging [solved]

2006-03-06 Thread Adam Zimowski
I must agree with Sebastian, unless I'm missing something as well. With little work up front, I can setup: LoggablePage, LoggableComponent, LoggableObject, etc and derive a class from that with all my log stuff setup and ready to go. I still get the fine grained control of Log4j, can have many l

Re: How do I specify a callback method in a custom component?

2006-03-04 Thread Adam Zimowski
a member object (which gets put in * the session), and returning back to the same page. * * @author Adam Zimowski */ public interface IAuthenticate { /** * * @param aError true if login error occurred, false otherwise. * @return destination page after su

Re: Best Practice: Controlling Page Names

2006-03-03 Thread Adam Zimowski
Enums wouldn't work because .toString() would result in a non-constant expression. So let's assume every page has: public static final String NAME = "page_name as defined in *.application file"; Then: @InjectPage(Page.NAME) Is this a clean way to do this? On 3/3/06, A

Re: How to improve Tapestry

2006-03-03 Thread Adam Zimowski
Question: if there were an exciting open source enterprise level web application that is based on Tapestry (and also Spring), and which could appeal to general public Would this be something that: 1) you'd consider in helping to grow (develop) 2) you'd consider as possibly a source of good d

Best Practice: Controlling Page Names

2006-03-03 Thread Adam Zimowski
I'd like to hear what you folks would recommend for controlling when referring to pages via their names, such as: @InjectPage("Registration") etc.. If I have the same page injected in 20 places, then rename the page it would be a pain to refactor. Since I'm on JDK 1.5, I'm thinking of creating p

Re: Difference between @Persist("session") and @InjectState() ?

2006-03-02 Thread Adam Zimowski
onent on another page the value will not be kept. > > a state object is shared by all components/pages. > > Cheers, > Ron > > > Adam Zimowski wrote: > > Hi, > > > > I noticed that whether I do: > > > > @Persist("session") > > pu

Re: anyone buy Kent's Tapestry Book that has PDF version?

2006-03-01 Thread Adam Zimowski
I like the good old book though... Nothing like being able to read parts whenever you get time, especially when you got kids running around slamming your laptop.. BTW, his book is awesome. Higly recommend to anyone. And Kent, if you read this, you should think about contracting with Manning to do

Re: [NEWB] DatePicker Date format

2006-03-01 Thread Adam Zimowski
Not sure if I understand exactly, so please correct me if my suggestion is not what you're looking for. DatePicker returns java.util.Date, and you could use DateFormat to get any format you want, including String conversion. Is this what you're looking for? Regards, Adam On 3/1/06, Jorge Quiroga

Re: Difference between @Persist("session") and @InjectState() ?

2006-03-01 Thread Adam Zimowski
Yes. Annotations are there to make it easier on developer by minimizing inolvement with XML. But anything you do with annotations, can be done with XML configuration wheather it's .page or .jwc file. For example: @InjectState("memberId") public abstract Long getMemberId(); is the same as: I

Difference between @Persist("session") and @InjectState() ?

2006-03-01 Thread Adam Zimowski
Hi, I noticed that whether I do: @Persist("session") public abstract void setMemberId(Long id); or @InjectState("memberId") public abstract void setMemberId(Long id); new session is created. However, my: @InjectStateFlag("memberId") public abstract boolean isLoggedIn(); returns true only if

Re: What is Tapestry's equivalent of getRemoteAddr() ?

2006-02-27 Thread Adam Zimowski
vletRequest getServletRequest(); > > and then do whatever with the HttpServletRequest > > > best regards. > > Raul Raja. > > Lindsay Steele wrote: > > getRequestCycle().getRequestContext().getRequest().getRemoteAddr(); > > > > works for me - but throw

What is Tapestry's equivalent of getRemoteAddr() ?

2006-02-26 Thread Adam Zimowski
Mornin' I need to obtain IP address from the requester of the page. With Servlet API I'd use HttpServletRequest getRemoteAddr(). I checked WebRequest interface in Tapestry and do not see the equivalent. Anyone knows how to get this information? Thank You ---

Tapestry's automatic component naming

2006-02-16 Thread Adam Zimowski
Let's say we have the following scenario: 1) Billy works on a very large team (say 100+ developers) on a Tapestry project 2) The team has a huge component library, and it's hard to look up every component's internal structure. Rather, the team reads the documentation and uses it (much like Tapest

Re: How to dynamically obtains component's form id?

2006-02-16 Thread Adam Zimowski
hod > >called: > > > >public static IForm getForm(IRequestCycle cycle, IComponent component) > > > >Which will return you the current form instance (assuming you are calling > >this from a form component or any component contained by a form ). > > > >

How to dynamically obtains component's form id?

2006-02-15 Thread Adam Zimowski
Hi, Suppose I have a custom component built around a @TextField such that I can drop this component inside any new @Form and it will magicall work. From within my @TextField component I know nothing about the host @Form, but I need to know it's ID at runtime. How can I do this? -adam ---

Re: Applying CSS to Validators

2006-02-13 Thread Adam Zimowski
Hi Izak. Yes, you can do this pretty easily. I output my validator messages with tags. You bind your validators as normal: Then, page specifications you bind delegate to the form:

Re: Tapestry4 in Action, 2nd edition?

2006-02-13 Thread Adam Zimowski
p Live blog here - http://www.jroller.com/page/warneronstine > > The early access of Tap Live should be ready in late March/early April > > -warner > > On Feb 13, 2006, at 11:49 AM, Adam Zimowski wrote: > > >

Tapestry4 in Action, 2nd edition?

2006-02-13 Thread Adam Zimowski
Anybody knows is Howard is planning on a sequel to the original book based on Tap 3? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LinkFactory problem

2006-02-13 Thread Adam Zimowski
ind should give you some warning in the logs, I think. > > hth, Marcus > > > -Original Message- > > From: Adam Zimowski [mailto:[EMAIL PROTECTED] > > Sent: Sunday, February 12, 2006 8:16 PM > > To: tapestry-user@jakarta.apache.org > > Subject: LinkFacto

LinkFactory problem

2006-02-12 Thread Adam Zimowski
Hello, I'm trying automatically generate a URL for image source on the custom service I wrote which provides Captcha image through jCaptcha. It worked when I had a hard coded URL but I want the URL to be provided by the service itself. So I created a Hivemind service-point to set linkFactory, but

Re: MultiplePropertySelection

2006-02-04 Thread Adam Zimowski
public static IPropertySelectionModel APPTYPES = new > > StringPropertySelectionModel( > > SelectionModelBuilder.getAllApplicationTypeNames > (false)); > > > > > > public abstract List getAppList(); > > > >

  1   2   >