Re: Spring beans and ASO objects

2007-03-30 Thread James Carman
You can create your own Spring FactoryBeanI believe. On 3/30/07, Simon Raveh <[EMAIL PROTECTED]> wrote: Hi, I'm developing web application using Tapestry 4.0 and Spring 2.0. I'm using the Tapestry-String project to do the integration with Spring. I need help with the Injection of Tapestry ASO

Re: Has anyone managed to deploy 'HILO' onto Oracle's J2EE Container successfully.

2007-03-29 Thread James Carman
Shouldn't you just filter "/*"? On 3/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Does /hilo/start work? I've noticed a few oddities w.r.t. filtering "/". Servlet containers don't agree on this! On 3/29/07, Jan Vissers <[EMAIL PROTECTED]> wrote: > Hilo on Apache Tomcat (as it is buid

Re: T5.0.2. Deployment on OC4J 10.1.3

2007-03-28 Thread James Carman
It probably doesn't like Javassist (I'm assuming you're using Javassist, Howard). We had the same problems with T4 and HiveMind in general in OC4J. On 3/28/07, Jan Vissers <[EMAIL PROTECTED]> wrote: Hi, Deploying the Starter application - similar to hilo from the tutoral, but without the Mav

Re: tapestry-acegi, how does SecurityUtilsImpl.accessDecisionManager get set?

2007-03-21 Thread James Carman
f hivemodule.xml For whatever reason, I must have a old copy of the tapestry-acegi project because the hivemodule.xml that I have been looking at is very different... Thanks. Phillip - Original Message ----- From: "James Carman" <[EMAIL PROTECTED]> To: "Tapestry users"

Re: tapestry-acegi, how does SecurityUtilsImpl.accessDecisionManager get set?

2007-03-21 Thread James Carman
Sorry, I hit "Send" too quickly. Here's the hivemodule (anonymous/anon to login of course): http://svn.javaforge.com/svn/hivemind/hivemind-acegi/trunk/src/main/resources/META-INF/hivemodule.xml On 3/21/07, James Carman <[EMAIL PROTECTED]> wrote: The AccessDecisionMana

Re: tapestry-acegi, how does SecurityUtilsImpl.accessDecisionManager get set?

2007-03-21 Thread James Carman
The AccessDecisionManager is defined by the hivemind-acegi module. On 3/21/07, Phillip Rhodes <[EMAIL PROTECTED]> wrote: I am implementing acegi/tapestry and pulling apart the wonderful work of James Carman (preserving the copyrights!) and re-implementing for my purposes. My @S

Re: JBoss dependency causes ClassCastException

2007-03-18 Thread James Carman
The dependency should be declared as provided in tapestry-contrib's pom.xml flie. On 3/18/07, Andreas Andreou <[EMAIL PROTECTED]> wrote: in your pom, where you define the dependency to tapestry-contrib, have it exclude jboss-j2ee On 3/18/07, Marcel Schepers <[EMAIL PROTECTED]> wrote: > > Hello

Re: Cant Checkout tapestry-spring project

2007-03-18 Thread James Carman
uot; on sf.net. (http://sourceforge.net/projects/honeycomb) Even if you only used them for svn and still kept your http sitesIt's looking a little ridiculous sometimes with no one knowing how to get to things all the time..(imho) On 3/18/07, James Carman <[EMAIL PROTECTED]> wrote:

Re: Cant Checkout tapestry-spring project

2007-03-18 Thread James Carman
26.164757-10.jar Thanks. Phillip - Original Message ----- From: "James Carman" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, March 14, 2007 8:41:18 PM (GMT-0500) America/New_York Subject: Re: Cant Checkout tapestry-spring project anonymous/anon On 3/14/07

Re: Cant Checkout tapestry-spring project

2007-03-14 Thread James Carman
anonymous/anon On 3/14/07, Miguel Angel Hernández <[EMAIL PROTECTED]> wrote: Hi all, I cant CO tapestry-spring trunk: Authentication realm: Subversion Repository Username: svn: PROPFIND request failed on '/svn/tapestry/tapestry-spring/trunk' svn: PROPFIND of '/sv

Re: Accessing EJB3s via annotations?

2007-03-13 Thread James Carman
I don't know. Would the enhancement workers allow you to enhance a field like that, though? I can see where putting it on a method would be fairly straight-forward, but a field might be a bit tricky. On 3/13/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: It's not for the casual visitor of cours

Re: plugins for a tapestry app?

2007-03-02 Thread James Carman
r hibernate, how do you have it contribute new > entities? > > On Thu, 2007-03-01 at 23:49 -0500, James Carman wrote: > >> Since HiveMind is already integrated with T4, I'd say use it. It has >> the ability to dynamically discover new modules like you're wanti

Re: plugins for a tapestry app?

2007-03-02 Thread James Carman
you have it contribute new entities? On Thu, 2007-03-01 at 23:49 -0500, James Carman wrote: > Since HiveMind is already integrated with T4, I'd say use it. It has > the ability to dynamically discover new modules like you're wanting. > I came up with a similar architecture to

Re: Write html directly from a db

2007-03-01 Thread James Carman
You can tell the @Insert component to not escape stuff... http://tapestry.apache.org/tapestry4.1/components/general/insert.html On 3/2/07, Hernâni Cerqueira <[EMAIL PROTECTED]> wrote: Hello all, I'm a newbie in wath counts to tapestry, and wath i wan't to do is the following: I have a tabl

Re: plugins for a tapestry app?

2007-03-01 Thread James Carman
Since HiveMind is already integrated with T4, I'd say use it. It has the ability to dynamically discover new modules like you're wanting. I came up with a similar architecture to allow multiple modules to contribute to my Hibernate configuration dynamically. All you had to do is drop in the jar,

Re: T5 + Jetty + Hibernate

2007-02-26 Thread James Carman
That's not exactly a good separation of concerns, though. Your view layer shouldn't be talking directly to your ORM layer. I'd put a DAO layer in between for some encapsulation (and to help with unit testing). On 2/26/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 2/25/07, Olivier Jacquet

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread James Carman
t I don't do database operations before I do the validation, which is simple enough. Kalle On 2/24/07, James Carman <[EMAIL PROTECTED]> wrote: > > Can you just mark your session factory bean as lazy init in your > spring application context file? Or, mark the whole xml file as

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread James Carman
Can you just mark your session factory bean as lazy init in your spring application context file? Or, mark the whole xml file as lazy by default? On 2/24/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: Using Tapestry 4.0.2 and this is much more a hivemind question really, but I wonder if anybody

Re: OutOfMemoryError after serving N pages

2007-02-22 Thread James Carman
Are you disabling page/component class caching? Of course, I think that causes the permgen stuff as mentioned before, but it may be part of your problem. On 2/22/07, Joe Trewin <[EMAIL PROTECTED]> wrote: If you're using Tomcat and have access to the startup scripts, I'd suggest turning on JMX s

Re: Record locking

2007-02-21 Thread James Carman
You use the session id so that you don't maintain the reference to the actual session. When the session listener sees that the session dies, he removes all object locks for that session. Now, this still doesn't solve the problem of one user opening multiple windows and trying to edit the same ob

Re: Record locking

2007-02-21 Thread James Carman
If the browser dies, then the session will timeout. The record will not stay locked (if you just keep an in-memory record of who is editing what). You could use a "do you want to save your changes" notification (a la GMail and others) to either save the data or send a request to clear the lock w

Re: Record locking

2007-02-20 Thread James Carman
The suggestion of using the http session (its id actually) was pretty cool I thought. That allows you to "timeout" the checkout/lock. You need to make sure (as pointed out) that the locks don't get orphaned, thereby locking everyone out of the object/record perpetually (obviously you could write

Re: Variable numbers of rows

2007-02-20 Thread James Carman
Yes, tapestry will also use hidden fields to manage the state, but you don't have to worry about it. On 2/20/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I think T4.1 does this sort of mundane state mgmt kind of stuff for you. On 2/19/07, Michael Prescott <[EMAIL PROTECTED]> wrote: > Sorry, Tap

Re: Record locking

2007-02-20 Thread James Carman
; soon. We, developers, have a tendency to avoid transactions and > isolation > > levels like plague... Not easy development and test subjects as the lack > of > > answers indicates... > > > > Good luck and let us know what solution you end up with, I am curious. > &g

Re: Problems with Tapestry 5 and JBoss

2007-02-20 Thread James Carman
Does that package exist (com.ec.tap5.pages)? On 2/20/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: > Is Javassist a part of the "shared" classpath in JBoss 4.x? Yes, javassist is the culprit for that part of the pr

Re: Record locking

2007-02-19 Thread James Carman
Just use the session id and set up an HttpSessionListener to remove user's locks when their session expires. On 2/19/07, Luis Rodrigo Gallardo Cruz <[EMAIL PROTECTED]> wrote: On Mon, Feb 19, 2007 at 08:17:02PM -0500, James Carman wrote: > I would say just put a property on the ob

Re: Record locking

2007-02-19 Thread James Carman
ibernate Interceptor. For obtaining the application level "lock" you can use optimistic locking; this is sort of the same as doing svn lock. Kalle On 2/19/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: > > James Carman carmanconsulting.com> writes: > > You can use optimi

Re: T5: Spring Integration

2007-02-19 Thread James Carman
ne to your web.xml: org.springframework.web.context.ContextLoaderListener On 2/19/07, James Carman <[EMAIL PROTECTED]> wrote: > > Of course, you have to set up the ContextLoaderListener, right? > > > On 2/19/07, D&J Gredler <[EMAIL PROTECTED]> wrote: > > Yo

Re: T5: Spring Integration

2007-02-19 Thread James Carman
Of course, you have to set up the ContextLoaderListener, right? On 2/19/07, D&J Gredler <[EMAIL PROTECTED]> wrote: You can just inject the following into your pages: @Inject private ApplicationGlobals globals; And then use the servlet context inside the globals object to get the appli

Re: Tapestry Bamboo Site

2007-02-19 Thread James Carman
We're actually thinking of using Bamboo at work, so if you find that this is a big issue, could you let the list (or me directly) know? Is it just a matter of starting the JVM with more heap memory? On 2/19/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Yep, we're still working on that. On 2

Re: Record locking

2007-02-19 Thread James Carman
You can use optimistic locking. When the user submits and they have outdated data, then you just merge the object's data with what is in the data store and show it back to the user for them to confirm it. On 2/19/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi Jesse Kuhnert gmail.com> wr

Re: Problems with Tapestry 5 and JBoss

2007-02-18 Thread James Carman
Is Javassist a part of the "shared" classpath in JBoss 4.x? On 2/18/07, Geoff Callender <[EMAIL PROTECTED]> wrote: I've hit the same problem had the same problem with Tapestry 5 in JBoss 4.0.5. When I put the Tapestry jars in the deployed file I get the stack trace below. It shows that tapestr

Re: My crap development environment

2007-02-15 Thread James Carman
The current jetty plugin uses jetty6. On 2/15/07, Joe Trewin <[EMAIL PROTECTED]> wrote: If you want to use the JettyLauncher plugin for Eclipse - I think it only works with Jetty 5, not Jetty 6. If you want to use Jetty 6 then you can't use the plugin, but you can launch from Eclipse easily eno

Re: My crap development environment

2007-02-14 Thread James Carman
You could run mvn jetty:run to fire up your application in Jetty. It works pretty well and it automatically picks up any changes you make and redeploys your webapp. On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I have suffered long and hard under Eclipse and Tomcat. Is it

Re: Tapestry 4.1 startup errors

2007-02-14 Thread James Carman
Check out: http://maven.apache.org/ That's how Tapestry is built and a lot of projects are starting to go that route (including most all of Apache). On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: James Carman carmanconsulting.com> writes: > Have you tried maven2

Re: Tapestry 4.1 startup errors

2007-02-14 Thread James Carman
Have you tried maven2? It, along with its Jetty launcher for testing, might help your situation. As for the error you're getting, are you using tapestry-spring? On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I'm getting this error: Error: An error occured processing annota

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-12 Thread James Carman
l be more than one implementation of a service I want to inject..95% of the time there isn't so no thought / looking up of service id's are required... Great work James, and thank you! ;) On 2/11/07, James Carman <[EMAIL PROTECTED]> wrote: > No problem. I think the property &qu

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread James Carman
e 10 févr. 07 à 21:11, James Carman a écrit : > Have you tried tapestry-autowire > (http://svn.javaforge.com/svn/tapestry/tapestry-autowire/trunk)? You > can check out the source code (anonymous/anon login) and build it > yourself since there hasn't been an official release

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread James Carman
. Do I have to go through all my pages to find properties that are defined in the .page and which are not abstract ? What can I do ? Thanks A lot Numa Le 10 févr. 07 à 21:13, James Carman a écrit : > By the way, there has to be exactly one service point which is of the > type that yo

Re: Custom annotation

2007-02-11 Thread James Carman
What version of Tapestry? If you're on 4.x, you can look at what I did in tapestry-acegi, which looks for the @Secured annotation on methods/classes. http://svn.javaforge.com/svn/tapestry/tapestry-acegi/trunk The login is anonymous/anon On 2/11/07, VitalyA <[EMAIL PROTECTED]> wrote: Hi all,

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-10 Thread James Carman
By the way, there has to be exactly one service point which is of the type that you need injected in order for it to be autowired, but that's traditionally the case when it comes to DAOs. On 2/10/07, James Carman <[EMAIL PROTECTED]> wrote: Have you tried tapestry-aut

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-10 Thread James Carman
Have you tried tapestry-autowire (http://svn.javaforge.com/svn/tapestry/tapestry-autowire/trunk)? You can check out the source code (anonymous/anon login) and build it yourself since there hasn't been an official release. Or, just upgrade to 4.1 and it'll automatically inject HiveMind services i

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread James Carman
nce and use the same result for all components? Thanks! Toby Original-Nachricht ---- Datum: Fri, 9 Feb 2007 10:24:05 -0500 Von: "James Carman" <[EMAIL PROTECTED]> An: "Tapestry users" CC: Betreff: Re: Tapestry & Hivemind: Caching multiple method calls per requ

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread James Carman
What does the method that fetches the domain object look like? Does it cache its results or does it call the IDomainSource every time? On 2/9/07, Tobias Marx <[EMAIL PROTECTED]> wrote: Hi there! I am using Hivemind to generate a Map of Domain name related objects as a singleton on startup, ca

Re: [very OT] group conventions for people use testng?

2007-02-01 Thread James Carman
pgraded my version of the plugin, perhaps this is a feature they've added. I also want to see if parallel works properly in a more recent version. On 2/1/07, James Carman <[EMAIL PROTECTED]> wrote: > Have you tried -excludegroups ? > I think that works. > > On 2/1/07, Howard

Re: [very OT] group conventions for people use testng?

2007-02-01 Thread James Carman
Have you tried -excludegroups ? I think that works. On 2/1/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: I really only structure things in two ways: fast vs. slow, aka default vs. integration. I think if I was building an application, I may add additional groups to cover tests that need spe

Re: Exception when trying to configure tapestry-acegi.jar

2007-01-30 Thread James Carman
I believe you need hivemind-utils.jar in your classpath. On 1/30/07, jake123 <[EMAIL PROTECTED]> wrote: Hi, I have some problems when I try to use the tapestry-acegi.jar. My Jboss server starts up fine without any exceptions, but as soon as I try to access my application I get this exception:

Re: Spindle for tapestry 4,4.1, and 5?

2007-01-29 Thread James Carman
"- project wizard that downloads all dependencies and create a ready to run project with a module builder, a configured web.xml and a Home page. - page creation wizard." Can you say maven archetype? :-) On 1/29/07, Hugo Palma <[EMAIL PROTECTED]> wrote: Actually, in this case less is more. T5 d

Re: Aspects in tapestry pages using spring

2007-01-26 Thread James Carman
stry code. This could be a little over the top - I'm wondering is there some less invasive way to record page loads per session without resorting to copying and pasting the same code into every page to accomplish this? Is there something in hivemind that'll allow me to record this informatio

Re: Aspects in tapestry pages using spring

2007-01-26 Thread James Carman
You can also use AspectJ within Tapestry using hivemind-aspectj (at JavaForge). You still have to make sure you weave the aspects into your code, but hivemind-aspectj can inject HiveMind services into your singleton (the default) AspectJ aspects. That way, you can inject all of Tapestry's HiveMi

Re: Acegi and Visit object

2007-01-22 Thread James Carman
By the way, you don't *have* to implement your UserDetailsService inside a Spring container. You can do so, but you lose the easy ability to have other HiveMind services automatically injected into your implementation instance. Since you're just implementing an interface, I really see no need to

Re: Acegi and Visit object

2007-01-19 Thread James Carman
TED]> wrote: andyhot wrote: > > James Carman wrote: >> This is the main reason that I wrote Tapestry-Acegi, so that you get >> the best of both worlds. You can get at all the good Tapestry >> framework stuff and have the Acegi stuff too. > > James, it was useful

Re: Acegi and Visit object

2007-01-19 Thread James Carman
Sure, send it along. Actually, if the plugin is available via some maven repo, then I can just include it in my maven build and have it in there as one of the reports. On 1/19/07, andyhot <[EMAIL PROTECTED]> wrote: James Carman wrote: > This is the main reason that I wrote Tapestry-

Re: Acegi and Visit object

2007-01-19 Thread James Carman
o specific roles. As for examples, I don't really have one, but somebody wrote a nice Wiki page detailing how to set it up. On 1/19/07, jake123 <[EMAIL PROTECTED]> wrote: James Carman wrote: > > This is the main reason that I wrote Tapestry-Acegi, so that you get > the best

Re: Acegi and Visit object

2007-01-19 Thread James Carman
This is the main reason that I wrote Tapestry-Acegi, so that you get the best of both worlds. You can get at all the good Tapestry framework stuff and have the Acegi stuff too. On 1/19/07, andyhot <[EMAIL PROTECTED]> wrote: Actually, I'm not sure that the UserDetailsService is the best option

Re: Page Visitor IP Address/Port

2007-01-17 Thread James Carman
You can also include tapestry-autowire.jar into your application and have Tap automatically inject it by doing (no annotations necessary): public abstract HttpServletRequest getServletRequest(); Also, the port is available on the request. Try getServerPort(). On 1/17/07, Lukas Ruetz <[EMAIL P

Re: New Tapestry feature suggestion: EditForm generation

2007-01-15 Thread James Carman
That was my idea and I haven't really seen any development going on with Trails. I haven't spoken to Chris Nelson in a while (we live in the same city), so he may be really busy with work or something. On 1/15/07, D&J Gredler <[EMAIL PROTECTED]> wrote: Are there still plans to modularize Trails

Re: Recommendation...

2007-01-12 Thread James Carman
The tapestry-acegi allows you to use Acegi's @Secured annotation (declarative security) in Tapestry without the Spring container. On 1/12/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: I am very happy using Tapestry for the WEB portion of my application and Spring 2.0 to wire up and configure m

Re: Tapernate and ASO

2007-01-12 Thread James Carman
If you're referring to the persistence strategies, then you're limited to wherever Tapestry uses the persistence strategies (pages/components). On 1/12/07, Stephane Decleire <[EMAIL PROTECTED]> wrote: Am i wrong or Tapernate is limited to classes implementing IComponent ? I mean, can i benefit o

Re: DojoAjaxResponseBuilder and OpenSessionInViewFilter

2007-01-12 Thread James Carman
How do you have your OpenSEssionInViewFilter mapped? What url-mapping are you using? On 1/12/07, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi, I've got a strange behavior in my T4.1.1 application when triggering a DirectLink with the DojoAjaxResponseBuilder : @Component(id="selectLink

Re: download a file

2007-01-10 Thread James Carman
Shing's code didn't show you what you needed? On 1/10/07, Holger Stolzenberg <[EMAIL PROTECTED]> wrote: I am very intrested! Please share your code -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von James Carman Gesendet: Mitt

Re: download a file

2007-01-09 Thread James Carman
back. Not rocket science by any means. The hardest part of it is the "servicey" bits. p.s. For the record, that's two phrases that I coined in the same email :-) On 1/9/07, Robert J. Walker <[EMAIL PROTECTED]> wrote: James Carman wrote: > I did this by creating my o

Re: download a file

2007-01-09 Thread James Carman
I did this by creating my own "service" in T4. On 1/9/07, Dennis Sinelnikov <[EMAIL PROTECTED]> wrote: Robert's Tapestry 3's method works, but Tapestry 4's method might cause some problems, at least it did when I tried it. I believe it has to do with closing the response outputstream before rew

Re: Extending existing component and .page file

2007-01-09 Thread James Carman
What are you looking to do? What version of Tapestry are you using? If you're looking to automatically inject a HiveMind service into all of your pages/components, you can either use tapestry-autowire (tap 4.0) or upgrade to tap 4.1 which has tapestry-autowire built in. Using tapestry-autowire, i

Re: Tapestry/Hivemind + Terracotta

2007-01-05 Thread James Carman
I would be willing to take a look at it when I get some breathing room. On 1/4/07, KEGan <[EMAIL PROTECTED]> wrote: Hi, Unfortunately, I am no expert in Hivemind. Would anyone from the Hivemind's contributor be willing to champion this project ? On 1/4/07, Eugene Kuleshov <[EMAIL PROTECTED]

Re: Tapestry-acegi auth

2007-01-05 Thread James Carman
Sorry, but I haven't had time to reply to this thread, but have you looked at the Wiki page: http://wiki.apache.org/tapestry/AcegiSpringJava5 On 1/5/07, Firas Adiler <[EMAIL PROTECTED]> wrote: Hi Kevin, This exception is "thrown if an Authentication object does not hold a required authority"

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread James Carman
I don't think that'll work. The ApplicationStateManager needs a reference to the current web request (eventually the session). On 1/4/07, Ben Dotte <[EMAIL PROTECTED]> wrote: Hi, You could do something like this: ((ApplicationStateManager) ((Registry) context.getAttribute("org.apache.tapestr

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread James Carman
Actually, Marcus, you can use the text value of an XML element in your schema. You use the push-content rule. On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thanksgetting closer! Now I only have to solve the id generator problem. Error building service honeycomb.hibernate.Hibern

Re: Raw values in contrib:table

2007-01-03 Thread James Carman
I would think so, since the table doesn't know what you're actually displaying in your block, so it has no idea how to sort it. On 1/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hmm, is there any chance that by in doing this, I've broken the sorting functionality provided by contrib:table

Re: ServletException with acegi tapestry

2007-01-02 Thread James Carman
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Sunday, December 31, 2006 6:46 PM To: Tapestry users Subject: Re: ServletException with acegi tapestry Yeah, I've seen that before. I was able to work around it because it was an actual programming error in my case

Re: ServletException with acegi tapestry

2006-12-31 Thread James Carman
Yeah, I've seen that before. I was able to work around it because it was an actual programming error in my case. But, the whole thing is quite brittle, as you've figured out! :-) There needs to be better error-handling, IMHO. On 12/31/06, Henry Chen <[EMAIL PROTECTED]> wrote: I'm using tapern

Re: PropertySelection populated from database

2006-12-30 Thread James Carman
There is a standard ISO code for countries. I'd use that. On 12/30/06, RonPiterman <[EMAIL PROTECTED]> wrote: yes, this is the case if you use list index as value in your model. This should only be done if you know the list will not change across requests. If it does, use a databse primary key

Re: ServletContextListener equivalent in Tapestry

2006-12-28 Thread James Carman
method is being called. I do though see that my startup code is being executed. Do I need to update the hivemind.xml or another config file? Thanks for your help, Josh James Carman wrote: > Have your implementation class implement > org.apache.hivemind.events.RegistryShutdownListener i

Re: ServletContextListener equivalent in Tapestry

2006-12-27 Thread James Carman
All, I was able to implement the below for hivemind.startup...however is there such a thing as hivemind.shutdown? I'm looking for the equivalent of contextDestroyed? Thanks, Josh James Carman wrote: > You let HiveMind inject stuff into your service that runs at startup: > > pu

Re: tapestry-acegi and tapestry 4.1

2006-12-26 Thread James Carman
I haven't tried it, but it should work as far as I know. You can override the dependency in your own pom file On 12/26/06, Robert Binna <[EMAIL PROTECTED]> wrote: Hi I justed wanted to use tapestry-acegi on a project of mine that uses tapestry 4.1. Has someone get it working because the curre

Re: hook into T4's page creation process

2006-12-23 Thread James Carman
The tapestry-acegi library does exactly this. When it sees an Acegi @Secured annotation on a class/method, it uses a worker to enhance the class. So, you can either use what I've already created or refer to the source to see how to do what you want. If you have any questions about the code, don

Re: Can you comment on this?

2006-12-21 Thread James Carman
Can you please take this off-line? The rest of us Tapestry users don't need to hear this, IMHO. On 12/21/06, D&J Gredler <[EMAIL PROTECTED]> wrote: LOL. Francis == Emmanuel? On 12/21/06, Francis Amanfo <[EMAIL PROTECTED]> wrote: > > Hi, > > Seems like you've missed some pasta today. I urge yo

Re: T-Acegi: An AuthenticationManager is required

2006-12-18 Thread James Carman
No, I'm not using tapestry-spring. Well, HiveMind needs to know how to find the Spring objects. So, just drop tapestry-spring.jar into your WEB-INF/lib dir and see if that fixes it (as long as your spring config file is named/located appropriately). What is the alternative way to configure

Re: Proper way to get ApplicationStateManager?

2006-12-15 Thread James Carman
ssage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of James > Carman > Sent: Thursday, December 14, 2006 10:53 PM > To: Tapestry users > Subject: Re: Proper way to get ApplicationStateManager? > > > And, the coolest thing is that this sort of thing *can*

Re: T-Acegi: An AuthenticationManager is required

2006-12-15 Thread James Carman
I didn't use Spring to set up my stuff, but in theory that should work. Are you using tapestry-spring? On 12/15/06, Firas Adiler <[EMAIL PROTECTED]> wrote: Hello James, >> The tapestry-acegi library works... I don't doubt it >> ...and it's been working flawlessly I had it working that way to

Re: Proper way to get ApplicationStateManager?

2006-12-14 Thread James Carman
ounds promising, and I am now on 4.1.1-SNAPSHOT... > > public abstract ApplicationStateManager getASM(); > > > As easy as declaring this in a BasePage subclass??? > > > -Greg > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of

Re: Proper way to get ApplicationStateManager?

2006-12-14 Thread James Carman
What version of Tapestry are you using? 4.1? If so, then it can autowire stuff for you out of the HiveMind registry. Just declare an abstract getter that returns an ApplicationStateManager. If you're on 4.0, you can download the tapestry-autowire source and build it (via SVN http://svn.javafor

Re: T-Acegi: An AuthenticationManager is required

2006-12-14 Thread James Carman
The tapestry-acegi library works (we use it at work currently and it's been working flawlessly). I don't know about the wiki page, but it appears to be quite well written. I'm glad someone took the time to document my work for me. :-) On 12/14/06, Firas Adiler <[EMAIL PROTECTED]> wrote: Hell

Re: Hivemind and EJB access

2006-12-13 Thread James Carman
You would lookup the Home object using JNDI. On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > Well, I was answering the question of whether HiveMind's > EJBProxyFactory supports stateful session beans and it does not (the > reason is that the cr

Re: Hivemind and EJB access

2006-12-13 Thread James Carman
up in your hivemodule.xml file. Basically, you use EJBProxyFactory rather than BuilderFactory to construct your implementation object. On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > No, because typically with SFSBs, you have to pass in a paramter to > the cre

Re: Hivemind and EJB access

2006-12-13 Thread James Carman
No, because typically with SFSBs, you have to pass in a paramter to the create method and there's no way to set up the proxy to do that for you automatically. With SLSBs, there is no parameter to the create method. On 12/13/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, After had some pratic

Re: @Secured from tapestry-acegi

2006-11-29 Thread James Carman
: There are some pre-defined implementations of UserDetailsService, but to get the idea working you can provide a dummy implementation just to make sure everything is pieced together correctly. On 11/29/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > Ahh yes. You do nee

Re: @Secured from tapestry-acegi

2006-11-28 Thread James Carman
Ahh yes. You do need to tell Acegi how you want to authenticate, so you need to have an implementation defined for the AuthenticationManager service point I define. On 11/28/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > You don't need spring at all. You woul

Re: @Secured from tapestry-acegi

2006-11-28 Thread James Carman
box." On 11/28/06, Cyrille37 <[EMAIL PROTECTED]> wrote: James Carman a écrit : > The @Secured annotation is from the Acegi library (you have to get the > "tiger" jar). Thanks a lot. I'm a beginner ... Are directives in the hivemodule.xml from tapestry-acegi.jar are su

Re: @Secured from tapestry-acegi

2006-11-28 Thread James Carman
The @Secured annotation is from the Acegi library (you have to get the "tiger" jar). On 11/28/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, I'm trying to integrate Acegi by using tapestry-acegi from carmanconsulting.com. I've imported com.javaforge.tapestry.acegi.enhance.* but Java do not re

Re: binary for tapestry-spring

2006-11-22 Thread James Carman
Use anonymous/anon. On 11/22/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, It is always the little newbie... Where can I found a binary version (.jar) of tapestry-spring ? I have tried to checkout from http://svn.javaforge.com/svn/tapestry/tapestry-spring/trunk but the server ask for usernam

Re: Tapernate Access multiple database

2006-11-21 Thread James Carman
The majority of applications use one database, so Tapernate (actually hivemind-hibernate3, which Tapernate is built upon) doesn't officially support multiple databases. Tapernate allows you to just drop jars into your classpath, which makes it very simple to use. It wouldn't be so simple to set

Re: How to share hivemind registry between HiveMindFilter an ApplicationServlet?

2006-11-16 Thread James Carman
They didn't use our filter because they load a whole bunch of different hivemodule files from non-standard locations. On 11/16/06, Jean-Francois Poilpret <[EMAIL PROTECTED]> wrote: Hi Nick, Although I don't know much about Tapestry way to create the Registry and give access to it, what you migh

Re: Re: tapestry-acegi questions

2006-11-14 Thread James Carman
Oh, sorry, Robin. I read your last email, but only through the "thanks, I've got it working" part. :-) I didn't see the questions at the bottom. Do you have something that will let you debug the HTTP traffic? That might help you see what's going on for sure. On 11/14/06, Robin Ericsson <[EMA

Re: object injection and class cast

2006-11-11 Thread James Carman
The object you get is actually a proxy to the actual service implementation. The dynamic proxy only knows that it needs to support the javax.servlet.Filter interface, so that's all it supports. You can't downcast it to the implementation class. What you can do is come up with your own service i

Re: tapestry-acegi questions

2006-11-10 Thread James Carman
AIL PROTECTED]> wrote: On 11/3/06, James Carman <[EMAIL PROTECTED]> wrote: > Maybe you could just create your own Tapestry form (just like you do > for any other page) and submit it. Within the form's processing, you > could use the Acegi API > (SecurityContextHolder.g

Re: Stale Sessions

2006-11-07 Thread James Carman
You can use an InfrastructureOverride for that: On 11/7/06, Peter Stavrinides <[EMAIL PROTECTED]> wrote: As far as I can tell from googling a bit it no longer works like that. I think you need to implement some sort of Infrastructure override service in the hivemodule.xml Regards, Peter L

Re: Question regarding Block/RenderBlock

2006-11-07 Thread James Carman
You can create a page that has a bunch of @Blocks in it and you can use those blocks in other pages. We do that in Trails and it works quite nicely. Check out the org.apache.tapestry.util.ComponentAddress class. It allows you to "look up" components on other pages. So, you can use it this way.

Re: Need help getting started

2006-11-06 Thread James Carman
ue this user reported is exactly the same as the one I am facing. I guess WSAD is only using 1.4 for the JRE but still using the 1.3 JDK. I didn't see a thread indicating how the HiveMind JDK 1.3 issue was resolved. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: Need help getting started

2006-11-06 Thread James Carman
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Monday, November 06, 2006 11:51 AM To: Tapestry users Subject: Re: Need help getting started What version of WSAD? There's an "Interim Fix 008 for WebSphere Application Developer v5.1.2" that has som

  1   2   3   4   5   >