Re: Best way to screenscrape tapestry

2005-11-14 Thread Raul Raja Martinez
Move some of the logic if possible to application state objects that get intialized by hivemind at startup and later inject them when needed. I had the same problem and succesfully solved it this way Best regards RR. Pedro Abelleira Seco wrote: A friend of mine has the exact same problem and

Re: Best way to screenscrape tapestry

2005-11-14 Thread andyhot
I also needed to cache parts of some pages, and so I created the cache component of TapFX ( tapfx.sf.net) which uses EhCache. I use this component a lot in my own apps. However, the latest version for Tapestry 3 contains a bug (so instead get v0.30) and the update for Tapestry beta-13 has broke

Re: Best way to screenscrape tapestry

2005-11-14 Thread Pedro Abelleira Seco
A friend of mine has the exact same problem and I told him to have a look at oscache. The filter aproach could be fine for this, I think. He haven't tried it, though. Just my 2 cents El Lun, 14-11-2005 a las 21:52 -0800, Patrick Casey escribió: > > I've got a couple of pages that ch

RE: contrib:Table type 3 implementation question

2005-11-14 Thread Ashish Raniwala
Thanks, your sample helped a lot to resolve the issue. Not sure why it was behaving like it but I cleaned up lot of code I had e.g. to manage sessionState etc and it came up just fine. -Original Message- From: Gunna Satria Hijrah Kusumah [mailto:[EMAIL PROTECTED] Sent: Monday, November 14

Best way to screenscrape tapestry

2005-11-14 Thread Patrick Casey
I've got a couple of pages that change very rarely, but are rather expensive to generate (lots of conditional logic, db lookups, etc). I'd like to have tapestry generate them once, capture the output, and then either serve them as static pages, or at least serve them out of internal

Re: Component Specification

2005-11-14 Thread Jesse Kuhnert
The code intensive portion looks very unappealing as well. That sort of intensity only makes sense in actual GUI applications, where you don't really have any other place to define these layouts/containers/etc...IMho.. But, Tapestry certainly could be better. Some things aren't always quite as eas

Re: Component Specification

2005-11-14 Thread Matt Welch
Actually, Wicket was at the top of our list of potential frameworks for this new project, however the app we're building will get some fairly high traffic and we were concerned that there we no performance or load testing numbers available for Wicket. We would have had to implement a significant pr

Re: Component Specification

2005-11-14 Thread Robert Zeigler
If you're looking for a code-intensive framework, you might try wicket (http://wicket.sourceforge.net) or click (http://click.sourceforge.net). I haven't used either, personally, but have heard good things about both. Robert On Mon, 2005-11-14 at 22:13 -0600, Matt Welch wrote: > I'm just getting

Component Specification

2005-11-14 Thread Matt Welch
I'm just getting into Tapestry and while I like many of the concepts, I'm finding it to be a little complex. Here's an example. It's my understanding that specifying components for you pages via annotation is new to Tapestry 4.0. I'm a fan of annotations however, in this case they seem a little clu

Re: Create ASO per request from Request Attributes

2005-11-14 Thread hv @ Fashion Content
Good one for reminding me to check 1 :-) The other part involves parsing the context attributes to find all instances of tapestry application servlets. Hardcoding the servlet name isn't really something I want to do. "Ron Piterman" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTE

Re: contrib:Table type 3 implementation question

2005-11-14 Thread Gunna Satria Hijrah Kusumah
Hi, Maybe you can give me your code so i can guess what wrong. But before that, maybe you want to check out this simple example. in Java file, private IBasicTableModel source; private DetailObject rowObject; public DetailObject getRowObject() {

Re: hivemind tutorial for tapestry user

2005-11-14 Thread hv @ Fashion Content
I guess you can, but it is not working when I try it. The ClassEnhancers are not implementing my accessor methods. Been trying to get around the issue for two days now. :( "John Coleman" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > there is a spring prefix, see > http://ja

Re: hivemind tutorial for tapestry user

2005-11-14 Thread hv @ Fashion Content
I followed the tutorial, Spring appears to load fine, as it creates log entries. Yet when I try to inject either by annotations or by tapestry throws an error. Somehow the class enhancers seems to miss the abstract accessor methods that need to be implemented. org.apache.hivemind.Applica

Re: Create ASO per request from Request Attributes

2005-11-14 Thread Ron Piterman
The registry is initialized on the servlet's init() - I don't remember the details but you can set a servlet to initialize on context start - that way the registry will be there before the first request is handled... ציטוט hv @ Fashion Content: I think that is the approach I will go for but

Access service from ognl expression

2005-11-14 Thread hv @ Fashion Content
I don't recall seeing an answer anywhere to: How do you access hivemind service properties/functions using an ognl expression. I want to make a debug page that shows properties of a service using @Insert statements. Henrik --

RE: contrib:Table type 3 implementation question

2005-11-14 Thread Ashish Raniwala
Hi, I am using IBasicTableModel in table type 3 implementation. Currently pagination is not working for me. When I click on << < 1 2 3 > >> to go to next page, I always get recordIndex 0 in getCurrentPageRows(int recordIndex, int pageSize, ITableColumn tableColumn, boolean sortOrder) method of IBa

Re: [ANNOUNCE] Tapestry 4.0-beta-13

2005-11-14 Thread Howard Lewis Ship
@InjectObject("engine-service:restart") public abstract IEngineService getRestartService(); public ILink restartSession() { return getRestartService.getLink(false, null); } On 11/14/05, Alan Chandler <[EMAIL PROTECTED]> wrote: > On Sunday 13 Nov 2005 16:29, Howard Lewis Ship wrote: > > The lat

Re: Create ASO per request from Request Attributes

2005-11-14 Thread hv @ Fashion Content
I think that is the approach I will go for but I need to get around a serious stumbling block. Hivemind Registry is set up in ApplicationServlet. So if I try to access it in a servlet filter, it may not be created yet. Henrik "Ron Piterman" <[EMAIL PROTECTED]> skrev i en meddelelse news:[

Tapestry + AspectJ. Problem: direct access to hivemind registry.

2005-11-14 Thread Alexandr Kundirenko
Hello All, I have an idea to create reusable annotations for tapestry using AspectJ. Here is the example: ANNOTATION: @Target( { ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) public @interface Intercept { String value(); } ASPECT: public aspect InterceptWorker { pointcu

Re: [ANNOUNCE] Tapestry 4.0-beta-13

2005-11-14 Thread Alan Chandler
On Sunday 13 Nov 2005 16:29, Howard Lewis Ship wrote: > The latest beta release of the Tapestry 4.0 is now available. ... > The request cycle > object is now an injectable service, and the signatures of several > methods in several interfaces were changed to remove it. In addition, > a new facili

RE: hivemind tutorial for tapestry user

2005-11-14 Thread Mike Perham
If you want Spring to integrate seamlessly (i.e. no random jar required), please go vote for this issue: http://issues.apache.org/jira/browse/TAPESTRY-538 -Original Message- From: Chris Nelson [mailto:[EMAIL PROTECTED] Sent: Monday, November 14, 2005 4:32 PM To: Tapestry users Subject

Re: Create ASO per request from Request Attributes

2005-11-14 Thread Ron Piterman
What about creating a hivemind service with the threaded model, which will hold your thread-state-values? ציטוט hv @ Fashion Content: Or perhaps I can somehow extend Infrastructure to hold these attributes as well for the duration of the request. "hv @ Fashion Content" <[EMAIL PROTECTED]> skr

Re: hivemind tutorial for tapestry user

2005-11-14 Thread Chris Nelson
Injecting Spring beans into Tapestry 4 is super easy. Check out this wiki entry, download the jar, and you're good to go. I've been doing this in Trails for some time. http://wiki.apache.org/jakarta-tapestry/Tapestry4Spring --- Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote: > There's alr

Re: Help on getting a Cayenne DataContext using HiveMind service

2005-11-14 Thread John Coleman
I am also looking to do something like this Joseph. I imagine creating a set of implementation neutral interfaces for all the IO and providing actual persistence implementation through a service that has a Cayenne flavour. This service would be wired up in hivemind, and receive the DC via another

transient ASO

2005-11-14 Thread hv @ Fashion Content
How do you define a transient ASO. By not defining a scope ? I want an ASO that only exists for the duration of the request. Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Injecting Messages with spring

2005-11-14 Thread Alexandr Kundirenko
Do you mean this? /WEB-INF/selectbox.properties ... ${select.rank} DA> Any way to inject the Messages (ie from getMessages()) into a spring DA> bean? -- aku - To unsubscribe, e-mail: [EMAIL

Re: hivemind tutorial for tapestry user

2005-11-14 Thread Leonardo Quijano Vincenzi
There's already a single JAR (tapestry-spring.jar or something like that) out there that allows you to use this notation: @InjectObject("spring:someSpringService") public abstract SomeSpringService getSomeSpringService() If I'd only remember where did I get that JAR. Go ahead, make a google se

Re: hivemind tutorial for tapestry user

2005-11-14 Thread John Coleman
there is a spring prefix, see http://jakarta.apache.org/hivemind/hivemind/ObjectProviders.html bottom of the page and this regarding bean factory http://jakarta.apache.org/hivemind/hivemind-lib/apidocs/org/apache/hivemind/lib/BeanFactory.html which I presume can be utilised to provide Spring beans

Re: Create ASO per request from Request Attributes

2005-11-14 Thread hv @ Fashion Content
Or perhaps I can somehow extend Infrastructure to hold these attributes as well for the duration of the request. "hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > In my tapestry 3 application I have a servlet filter and an engine service > that are attach

Re: T3 -> T4 Converter

2005-11-14 Thread Ron Piterman
1. Why not put it on the Wiki ? 2. The creator of Trails, chris nelson, has written an XSL which does exactly that. look for a thread called "TP4 upgrade stylesheet". Cheers, Ron ציטוט Mike Perham: Howdy, I don't know about you guys but we have a LOT of .page and .jwc files which need convers

Re: T3 -> T4 Converter

2005-11-14 Thread Chris Nelson
Awhile back I posted a T3->T4 XSLT script to this mailing list. It worked for me, but YMMV. --- Mike Perham <[EMAIL PROTECTED]> wrote: > Howdy, I don't know about you guys but we have a LOT > of .page and .jwc > files which need conversion to the T4 spec. Since > doing this by hand is > a night

Injecting Messages with spring

2005-11-14 Thread Dan Adams
Any way to inject the Messages (ie from getMessages()) into a spring bean? -- Dan Adams Software Engineer Interactive Factory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Create ASO per request from Request Attributes

2005-11-14 Thread Patrick Casey
Couldn't you just set three threadlocals in your filter and then access them through your ASO? That way you'd short-circuit the problem of having to pass them around. --- Pat > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion Content > S

Create ASO per request from Request Attributes

2005-11-14 Thread hv @ Fashion Content
In my tapestry 3 application I have a servlet filter and an engine service that are attach three objects to the request as Servlet Request attributes. As I understand it I could have an ASO on which I set these three as properties, but I would need a scope of only the request. How would I do th

T3 -> T4 Converter

2005-11-14 Thread Mike Perham
Howdy, I don't know about you guys but we have a LOT of .page and .jwc files which need conversion to the T4 spec. Since doing this by hand is a nightmare and I don't know of anything better, I wrote a sed script which will automatically update everything. It has not received much testing but doe

Help on getting a Cayenne DataContext using HiveMind service

2005-11-14 Thread Joseph Hannon
Based on piece at http://wiki.apache.org/jakarta-hivemind/CayenneIntegration, I implemented the following to attempt access to the Cayenne DataContext (DC) from a non Tapestry class (any class). I get my Visit object from HiveMind, so I know HiveMind is working. I am using Tapestry 4.0-beta-11, Cay

Re: Best Approach to Timeout and invalidate session

2005-11-14 Thread Jesse Kuhnert
I think I saw that component in tapestry deli. http://t-deli.com jesse On 11/14/05, Chris Chiappone <[EMAIL PROTECTED]> wrote: > I was wondering what the best approach was to timeout a user due to > inactivity in tap4. I used to set up meta refresh Restart_Service > link in my border delegate in

Best Approach to Timeout and invalidate session

2005-11-14 Thread Chris Chiappone
I was wondering what the best approach was to timeout a user due to inactivity in tap4. I used to set up meta refresh Restart_Service link in my border delegate in tap3. But I would venture to think that there is a better way to do this. -- ~chris ---

Re: hivemind tutorial for tapestry user

2005-11-14 Thread Ron Piterman
Beans have nothing to do with services, but are just a nice method to define member-like objects in components/pages - you do mean in the .jwc/.page, do you? ציטוט John Coleman: Thanks for that Ron, seems quite clear. But it leaves me wondering what the bean factory locator is for? John ---

Re: spring integration working

2005-11-14 Thread hv @ Fashion Content
release version of hivemind I mean "hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Has any others had problems getting spring integration to work. > > I am using the release versions of hibernate btw, not rc1. > > Henrik > > "hv @ Fashion Content" <[EMAIL

Re: hivemind tutorial for tapestry user

2005-11-14 Thread hv @ Fashion Content
I'm sure it is simple. Sorry I'm a little burned out. I have been completely stuck for more than a day on getting the enhancers to inject my Spring created beans. Was trying to figure out how to create them in hivemind, although it isn't really a solution I feel ready for. "John Coleman" <[EMAI

Re: hivemind tutorial for tapestry user

2005-11-14 Thread John Coleman
Thanks for that Ron, seems quite clear. But it leaves me wondering what the bean factory locator is for? John - Original Message - From: "Ron Piterman" <[EMAIL PROTECTED]> To: Sent: Monday, November 14, 2005 8:01 PM Subject: Re: hivemind tutorial for tapestry user > you add a hivemodu

Re: How to create a url to call a listener in a page class

2005-11-14 Thread Leonardo Quijano Vincenzi
Heheh I don't want to be rude or something, but you did ask for a 'pointer' and that's what Geoff gave you. But it's not that hard, trust me. You should checkout how to inject services in the Tapestry's Manual. I think that can help you out. -- Ing. Leonardo Quijano Vincenzi Director Técnico

Re: hivemind tutorial for tapestry user

2005-11-14 Thread Ron Piterman
you add a hivemodule.xml either in /META-INF or in /WEB-INF/ or in /WEB-INF// You use the syntax: alternativley, you can seprate service-point as an empty element, and add the invoke-factory element in an From tapestry you inject the object as or @InjectOb

Re: hivemind tutorial for tapestry user

2005-11-14 Thread John Coleman
you can probably follow this idea for injection of services in your page definitions... http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html#hivemind.inject http://jakarta.apache.org/hivemind/hivemind/ObjectProviders.html You need to just inject a bean property using the bean prefix inste

Re: seen this before? has already been claimed by a different enhancement worker

2005-11-14 Thread hv @ Fashion Content
Sorry found it had in my frustration tried to use both and annotations. So now I am back at org.apache.hivemind.ApplicationRuntimeException Error at context:/WEB-INF/Home.page, line 6, column 81: Method 'abstract com.bluprinted.personal.market.Market com.bluprinted.personal.tapestr

seen this before? has already been claimed by a different enhancement worker

2005-11-14 Thread hv @ Fashion Content
Anyone seen this before? I have defined the method abstract in the class and its superclass, might that cause it? Henrik org.apache.hivemind.ApplicationRuntimeException Error at context:/WEB-INF/Home.page, line 18, column 80: Error adding property accountMonitor t

RE: Holding SelectionModels in the Global object, invalidating them?

2005-11-14 Thread Patrick Casey
I use a similar approach (pooling my select models) and haven't had any problems. Just make sure your selectmodel implementations are themselves thread-safe (because you can't guarantee atomicity of access). Likewise there's no synchronization I can see on access to your pool objec

RE: Creating asset object

2005-11-14 Thread Patrick Casey
I can't speak with huge authority on the minimum effort path in 4.0, but with 3.0.3 I'd recommend just making a new engine service to serve dynamic assets rather than try to bootstrap the existing asset service. --- Pat > -Original Message- > From: Vinicius Carvalho [mail

Creating asset object

2005-11-14 Thread Vinicius Carvalho
Hello there! I need to access resources on the fly. i was thinking in doing this by creating assets to them and then accessing it. Problem is. 1st: How do I inject an ContextAssetFactory in my component? 2nd: After that, in order to create an Asset I need a baseResource and a location, how do I in

hivemind tutorial for tapestry user

2005-11-14 Thread hv @ Fashion Content
Anyone know of a good hivemind tutorial with a tapestry perspective. The info I have found on the Hivemind site seems very confusing and quite different from Tapestry 4 config. Just looking for how to create singleton beans for use with my tapestry pages. Henrik --

spring integration working

2005-11-14 Thread hv @ Fashion Content
Has any others had problems getting spring integration to work. I am using the release versions of hibernate btw, not rc1. Henrik "hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Tapestry 4 beta 13 > JDK 1.5.0-b64 > Tomcat 5.5.9 > > I am in the process o

Re: Tapestry upgrade to beta-13 XTiles

2005-11-14 Thread Ron Piterman
*please* report a bug in JIRA ציטוט seloha .: When upgrading from beta-12 to beta-13 I noticed that all XTile components failed to return a response. Further investigation showed that no parameters were being picked up with the following line: Object[] params = cycle.getListenerParameters();

Re: How to create a url to call a listener in a page class

2005-11-14 Thread Jabbar
Thanks for you answer Geoff, but I need an example. I've been using tapestry for a while but don't consider myself as a expert, like yourself :) On 14/11/05, Geoff Longman <[EMAIL PROTECTED]> wrote: > get a reference to the Direct service and call the getLink() method. > then call getUr() on the I

Tapestry upgrade to beta-13 XTiles

2005-11-14 Thread seloha .
When upgrading from beta-12 to beta-13 I noticed that all XTile components failed to return a response. Further investigation showed that no parameters were being picked up with the following line: Object[] params = cycle.getListenerParameters(); replacing this with: String[] params = cycle.g

RE: Engine service needs cookies

2005-11-14 Thread Tapestry
I've got the same problem with version 4.0-beta-12. Stepping through the debugger the tapestry _request.getCookies() returns null. And I've got a lot of cookies ;-) As this seems to be a bug and I am a newbie to tapestry: How can I manage to workaround this for testing purpose? pvblivs -O

Re: EnumPropertySelectionModel in Tapestry 4?

2005-11-14 Thread Geoff Longman
class JDK15EnumPropertySelectionModel implements IPropertySelectionModel { private Object[] options; @SuppressWarnings("unchecked") public SelectionModel(Class enumType) { this(EnumSet.allOf(enumType));

Re: EnumPropertySelectionModel in Tapestry 4?

2005-11-14 Thread Chris Chiappone
I beleive it was removed in tap4 because of jdk 5 and annotations. On 11/13/05, Human Dunnil <[EMAIL PROTECTED]> wrote: > Hi folks, > I'm reading Tapestry in Action book, in chapter 4 there is class named > EnumPropertySelectionModel, but I can't find it in the latest release of > Tapestry (4 beta

Re: How to create a url to call a listener in a page class

2005-11-14 Thread Geoff Longman
get a reference to the Direct service and call the getLink() method. then call getUr() on the ILink that's returned (Tapestry 3 but T4 should have similar sematic). Geoff On 11/14/05, Jabbar <[EMAIL PROTECTED]> wrote: > Hello all, > I have created a custom component using the @Any tag > > >

How to create a url to call a listener in a page class

2005-11-14 Thread Jabbar
Hello all, I have created a custom component using the @Any tag I want the href attribute to contain the url to call public void doDailyTotalProfile(Date startDate, Date endDate, int width, int height) in my page class. Does anybody have any pointers to how I can do

Holding SelectionModels in the Global object, invalidating them?

2005-11-14 Thread Bogien
Hello, Please tell me if this is a good approach... In my web application, I have many comboboxes (), holding constant sets of values. These sets are represented by Tapestry's IPropertySelectionModels. I hold their instances in my SelectionModelPool object and initialize them lazily when needed.

Re: how to return HTML anchor from action listener

2005-11-14 Thread Petr Fischer
Very nice. pf Jesse Kuhnert píše v Ne 13. 11. 2005 v 20:12 -0500: > Nekkat sam Petr ;) > > I believe something like what you want could be done a different way, > using JS, but thankfully you will be blissfully unaware of it's inner > workings if you choose. http://tacos.sourceforge.net. Go the