Re: Tapestry-Hibernate

2006-11-03 Thread Daniel Tabuenca
What exactly are the issues with Tapestry and Lazy Loading? I've been using hibernate and tapestry extensively and have not run into any lazy loading issue. I really don't see anything in Tapestry that would make lazy loading any more of an issue than it is in any other web framework. It all real

tacos:ProgressBar and tap 4.1

2006-11-03 Thread gant
Is there any plans to add tacos:progressBar to Tapestry 4.1.x ? or there is already similar component?

Tapestry-Hibernate

2006-11-03 Thread Bill Holloway
I've seen recently some criticism of Tapestry in terms of using Hibernate. Problems with lazy loading. I know Tapernate is out there, but the docs are pretty thin. I'm using the threadLocal version of the much-documented HibernateUtil in a DAO layer. Going well. What will Tapernate actually d

Re: help on using Block and RenderBlock...

2006-11-03 Thread Bill Holloway
Tapestry in Action (book) talks about JSP integration. I'm sure there are other docs that do as well. I don't remember anything about RenderBlock there, but you're embedding some JSP. Bill On 11/3/06, Edgar Yip <[EMAIL PROTECTED]> wrote: Hi All, Our company is evaluating Tapestry 4.0 and I

Re: ComponentParameter value to Persistent ComponentProperty

2006-11-03 Thread Jesse Kuhnert
Sure it can...Just go look at the For component. On 11/3/06, Skorpien126 <[EMAIL PROTECTED]> wrote: Oh yeah... this was my first Idea,too ... after reading tapestry in action. but using parameter is not possible because the parameters ( in my case ) are propertys of an object which itself is

help on using Block and RenderBlock...

2006-11-03 Thread Edgar Yip
Hi All, Our company is evaluating Tapestry 4.0 and I have some question with Block and RenderBlock. We want to render some of our jsp within a tapestry page: - I read somewhere that can be achieve with Block and RenderBlock. Is this correct? - What's the correct way to

Re: Overriding HomeService

2006-11-03 Thread James Carman
You might have to inject the same things that the regular home service has injected. Take a look at the HiveDoc for HomeService. On 11/3/06, Kevin Whitley <[EMAIL PROTECTED]> wrote: Thanks - that gets the service instantiated. However, I discover that my service doesn't get initialized the sam

Re: Suppressing id attribute in @Any

2006-11-03 Thread Bill Holloway
Yep, .className {} worked. My tag is It's a tag cloud. Bill On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I don't know.I would say that I use # css attributes about 2% of the time. Instead of #(generated id) .className why don't you just define it as : .className {} or *.clas

Re: Suppressing id attribute in @Any

2006-11-03 Thread Jesse Kuhnert
I don't know.I would say that I use # css attributes about 2% of the time. Instead of #(generated id) .className why don't you just define it as : .className {} or *.className {} or span.className {} or .someOtherContainer .className {} ? On 11/3/06, Bill Holloway <[EMAIL PROTECTED]>

Re: Overriding HomeService

2006-11-03 Thread Kevin Whitley
Thanks - that gets the service instantiated. However, I discover that my service doesn't get initialized the same way that the regular HomeService does. Without my implementation xml in place the standard HomeService gets initialized (calls to setResponseRenderer() and setPageName()) when

Re: Suppressing id attribute in @Any

2006-11-03 Thread Bill Holloway
" I am trying to prevent exactly what you want as much as I possibly can. :)" Grr. :) Well, I think the problem is that class="" isn't enough of a handle on it. The CSS designation would have to be #(your-generated-id) .className { border: ...; } but maybe I'm wrong. I'm getting aroun

Re: Suppressing id attribute in @Any

2006-11-03 Thread Jesse Kuhnert
There's no way to prevent it - unless you subclass @Any. I can provide some other thoughts though. -) Technically speaking, every element in the DOM that outputs an ID attribute has to be unique to be "compliant" as far as having javascript operations work consistently in the browser. -) If you

Suppressing id attribute in @Any

2006-11-03 Thread Bill Holloway
I have an @Any tag inside a @For loop. I notice that the @Any tags that are emitted have an automatically-generated id attribute. Those are blowing my CSS implementations -- unless I can ignore them in css somehow. Is there a way to suppress the emission of those id attributes to the browser?

Re: Overriding HomeService

2006-11-03 Thread James Carman
Try this: On 11/3/06, Kevin Whitley <[EMAIL PROTECTED]> wrote: In Tapestry 4.0 I'd like to override the HomeService (varying the home page depending on the user - unfortunately not as simple as merely changing the home page name). Javadoc comments in HomeService make it sound like th

Need help getting started

2006-11-03 Thread Brooks, Aiyana [CIB-IT]
Hi, I am new to Tapestry and am having some trouble getting the basic (nothing dynamic) "Hello World" application to run. Whenever I run the application I get the following error: Unable to process client request: Failure enhancing class org.apache.tapestry.html.BasePage: java.lang.StringBuffer:

Overriding HomeService

2006-11-03 Thread Kevin Whitley
In Tapestry 4.0 I'd like to override the HomeService (varying the home page depending on the user - unfortunately not as simple as merely changing the home page name). Javadoc comments in HomeService make it sound like this is expected and trivial. I created a test class to try this out -

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Karthik N
Sam is right. is correct We have used this before and it works well. On 11/3/06, Sam Gendler <[EMAIL PROTECTED]> wrote: I've never actually done this, but I imagine that the following statement in the your .page file would pass an IActionListener to your components That might be "listen

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Sam Gendler
I've never actually done this, but I imagine that the following statement in the your .page file would pass an IActionListener to your components That might be "listeners:nameOfFunction" - I can't remember offhand. Also, if you look in the javadocs at the IActionListener class and related, you

Re: ANN: Tapestry Support for Netbeans 5.5

2006-11-03 Thread andyhot
Koka Kiknadze wrote: > Nice news, thank you Andreas. > > Has anyone succeeded using it with Windows version? i haven't but... > Nothing happens when I > add Tapestry 4.0 to the used frameworks for existing project, and for > a new > web project when I check Tapestry 4.0 under frameworks, indicate

Re: Image localization with css

2006-11-03 Thread Denis McCarthy
Kristian, That's slightly a slightly cleaner implementation of the way I was doing it. Thanks. Fred, that's the way we are doing it - the src image is a transparent gif and the background image (specifiable in css) is where the actual image is defined. The images in question will be the same siz

Re: tapestry-acegi questions

2006-11-03 Thread James Carman
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.getContext().setAuthentication() maybe?) to set up the security context, authenticating however you want. The H

Re: tapestry-acegi questions

2006-11-03 Thread James Carman
Maybe the form-based security should declare its own dummy engine service? That might be the way to go. I don't know. I'd have to play around with it some. On 11/3/06, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: James Carman wrote: > What URL mapping are you using for your Tapestry application

Re: tapestry-acegi questions

2006-11-03 Thread Jesper Zedlitz
James Carman wrote: > What URL mapping are you using for your Tapestry application servlet? > This is my mapping without my Acegi experiments: redirect org.apache.tapestry.RedirectFilter tapestry-acegi org.apache.tapestry.ApplicationServlet 0 redirect / tapestry-acegi /app

Re: Image localization with css

2006-11-03 Thread Fred Janon
For client customization, I was looking for a solution in CSS to define or override the IMG "src" attribute. I asked around on a CSS newsgroup and looked at the CSS spec and unfortunately CSS doesn't allow to define/redefine/override the "src" attribute. So far, I know of a couple of solutions: - t

Re: tapestry-acegi questions

2006-11-03 Thread James Carman
What URL mapping are you using for your Tapestry application servlet? On 11/3/06, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: James Carman wrote: > Then you're not really using tapestry-acegi. You don't need Spring at > all to use tapestry-acegi. > But how do I wire "/j_acegi_security_check" to

Re: Configuration Trouble

2006-11-03 Thread Peter Stavrinides
Hi James, Thanks for the tip, I managed to solve it in the end !! Peter James Carman wrote: No, leave the id as "PortfoliosInterface" and just refer to it as "com.albourne.web.PortfoliosInterface" (that would be its new, fully-qualified id). On 11/2/06, Peter Stavrinides <[EMAIL PROTECTED]>

Re: Changing template locations

2006-11-03 Thread Steve Shucker
That's exactly what I'm doing, but I've added a few test pages and the web.xml to the component library project so I can fire it up in jetty and test the components without needing a separate war project to use them. This is a question about how to configure a library project for interactive o

Re: Configuration Trouble

2006-11-03 Thread James Carman
No, leave the id as "PortfoliosInterface" and just refer to it as "com.albourne.web.PortfoliosInterface" (that would be its new, fully-qualified id). On 11/2/06, Peter Stavrinides <[EMAIL PROTECTED]> wrote: Hi James, Thanks for the response, I tried it and it throws an exception: /"Schema and

Re: prepareForRender or pageBeginRender - which one should i use?

2006-11-03 Thread Robert Zeigler
prepareForRender is called every time a component is rendered. So,for instance, if your component is in a for loop that is iterating over 100 items, prepareForRender will be called 100 times. pageBeginRender is called only once per page render and once per page rewind. So if your component was in

RE: RE: Image localization with css

2006-11-03 Thread Kristian Marinkovic
of course you could move this @Import statement into your HTML template :) Kristian Marinkovic

RE: Image localization with css

2006-11-03 Thread Kristian Marinkovic
Hi, you could generated a CSS with a @Import statement that depends on language and style kind of: main.css: /* all default rules that apply to all styles */ /* if lang=en */ @IMPORT url("lang_en.css"); /* else */ @IMPORT url("lang_default.css") /*end */ lang_en.css: /* just the rules that ar

Image localization with css

2006-11-03 Thread Denis McCarthy
Hi, I need to support both localized images and images with several css styles. For example, say I've 2 css files, CSS1 and CSS2, and need to support 2 languages, EN and ES. What I'd like to support is 4 images like this: img_CSS1_EN img_CSS1_ES img_CSS2_EN img_CSS2_ES , each one appearing a

Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Roberto Ramírez Vique
Hello to everybody, I have the problem again but a bit more complex. Probably some of you already have had the same, but I don't know how exactly this problem should be solved using the Tapestry way of work. I'm using Tap 4.0.2, jdk 1.5 , and tomcat 5.5 . My question is how can I pass as a para

Re: use unique id's generated by tapestry

2006-11-03 Thread Roberto Ramírez Vique
Hello Jesse, thanks for your response, but I'm afraid my problem was that I'm using tapestry 4.0 (clientId is public accessible in 4.0, no?). (sorry for not warning you before). Well, As I explained before I've tried using the clientId, always inside a For component. In this For loop I have a co

Re: ANN: Tapestry Support for Netbeans 5.5

2006-11-03 Thread Koka Kiknadze
Nice news, thank you Andreas. Has anyone succeeded using it with Windows version? Nothing happens when I add Tapestry 4.0 to the used frameworks for existing project, and for a new web project when I check Tapestry 4.0 under frameworks, indicate base dir for Tapestry (4.0.2) and click finish, the

Re: tapestry-acegi questions

2006-11-03 Thread Jesper Zedlitz
James Carman wrote: > Then you're not really using tapestry-acegi. You don't need Spring at > all to use tapestry-acegi. > But how do I wire "/j_acegi_security_check" to Acegi? Here is a short summary what I tried until now: * Login page forwards to "/j_acegi_security_check?...". * add a filte

Re: use unique id's generated by tapestry

2006-11-03 Thread Roberto Ramírez Vique
Hello Pat! first of all, thanks you for your comments ! Well, I'm really not an expert developer on tapestry, and for sure you have tried this. But the div tag shouldn't be something like: I tell you this because to me in this way is working .. tapestry uses the clientId for me. Btw, I'm using

Re: ANN: Tapestry Support for Netbeans 5.5

2006-11-03 Thread Tomi NA
2006/11/3, andyhot <[EMAIL PROTECTED]>: Tomi NA wrote: > 2006/11/2, andyhot <[EMAIL PROTECTED]>: >> Howard Lewis Ship wrote: >> > Thanks for this big contribution! Any chance of doing a screencast of >> > the >> > plugin in action? >> >> >> Got trouble finding a decent screencast recorder for li

Re: ComponentParameter value to Persistent ComponentProperty

2006-11-03 Thread Skorpien126
Oh yeah... this was my first Idea,too ... after reading tapestry in action. but using parameter is not possible because the parameters ( in my case ) are propertys of an object which itself is put in a persist collection. I guess that tapestry can´t bind objects of an collection ?!?!?!? Je