Re: Tapestry-Hibernate
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 really comes down to how you handle your hibernate session using the patterns discussed in the hibernate documentation such as session-per-request or session-per-conversation. At what point do you actually get lazy loading problems? On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: 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 do for me? Does it really solve the lazy-loading problem? Are there decent docs? I would HATE to have to abandon tapestry to work around performance problems falling out of non-lazy-loading. Thanks, Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tacos:ProgressBar and tap 4.1
Is there any plans to add tacos:progressBar to Tapestry 4.1.x ? or there is already similar component?
Tapestry-Hibernate
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 do for me? Does it really solve the lazy-loading problem? Are there decent docs? I would HATE to have to abandon tapestry to work around performance problems falling out of non-lazy-loading. Thanks, Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help on using Block and RenderBlock...
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 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 do it? I wrote a sub-class of Block and override the renderBody method to throw a RedirectException. But it just redirect to the jsp page. It will be greatly appreciated if someone can lead me to the right way. Thanks. Edgar -- "Budgets are moral documents." -- Ann Richards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ComponentParameter value to Persistent ComponentProperty
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 put in a persist collection. I guess that tapestry can´t bind objects of an collection ?!?!?!? Jessek wrote: > > Generally speaking you really ~don't~ want to store persistent fields in a > component if you can help it. Make everything a parameter. > > On 11/2/06, Skorpien126 <[EMAIL PROTECTED]> wrote: >> >> >> SOLVED: >> >> created a bean but not using the property-attribute of the bean >> tag... >> instead i make use of getBeans().getBean("beanname")... SURELY not the >> most >> intuitiv way... an lot of casting around but it seems to work!! >> >> >> >> Skorpien126 wrote: >> > >> > I have found several posts here where this problem is discribed.. but >> > >> > "no one" works in my case... >> > >> > One described: Overwrite the pageBeginRender ... i tried but i use a >> > @For-Component so that this doesnt work because the property is >> > persistent. Error ("Change to persistent property ... has been ignored. >> > Persistent properties may only be changed prior to the rendering of the >> > response page." ) >> > >> > Another one make use of a bean... I also tried this... overwriting the >> > bean-value with the parameter value in the pageBeginRender method but >> this >> > also throws an error. in correspondending abstract class i make use of >> the >> > property normally generated on rendering (discribed here >> > http://tapestry.apache.org/tapestry4.1/usersguide/spec.html ->bean >> > specification). >> > This throw also an error "ognl.NoSuchPropertyException >> > >> > org.apache.tapestry.bean.BeanProvider.persistItem " >> > >> > Here my bean specification: >> > > > class="myobject"> >> > >> > Has anyone an idea... or better a solution??? ^^ >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf245.html#a7146931 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > -- View this message in context: http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf245.html#a7154502 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
help on using Block and RenderBlock...
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 do it? I wrote a sub-class of Block and override the renderBody method to throw a RedirectException. But it just redirect to the jsp page. It will be greatly appreciated if someone can lead me to the right way. Thanks. Edgar
Re: Overriding HomeService
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 same way that the regular HomeService does. Without my implementation xml in place the standard HomeService gets initialized (calls to setResponseRenderer() and setPageName()) when it is referenced in tapestry.services.impl.ServiceMapImpl.resolveEngineService(). But when I've got my MyHomeService in place that same routine does not result in the calls to setResponseRenderer and setPageName - which basically makes it impossible to work. Huh? I would have thought that the service would have been treated the same - is there more configuration I have to set up somewhere? Thanks, Kevin Whitley podtech.net On Nov 3, 2006, at 11:03 AM, James Carman wrote: > 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 this is expected and trivial. >> >> I created a test class to try this out - MyHomeService. And then in >> my hivemodule.xml file I have: >> >> > package="net.podtech.ui.tapestry.Xx"> >> >> > class="net.podtech.ui.tapestry.MyHomeService"/> >> >> >> >> But when HiveMind is initializing I get complaints that "Module >> podtech contributed to unknown service point podtech.home". On a >> guess I tried changing the service-id to "tapestry.home" but I got >> the same error ("unknown service point tapestry.home"). >> >> I'm basing the service-override on the HiveMind "overriding a service >> doc" at http://hivemind.apache.org/override.html. Is this the right >> approach? hivemodule.xml the right place? What is the service-id >> that is needed? Do I need to have this in a particular module? (Is >> there some way to ask HiveMind for an enumeration of legal service >> points?) >> >> By the way, once I get my HomeService hooked in, I assume that >> overriding the getPageName() method will be all I need to do to >> redirect to different pages? >> >> Thanks for any advice, >> Kevin Whitley >> Podtech.net >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suppressing id attribute in @Any
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 *.className {} or span.className {} or .someOtherContainer .className {} ? On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: > > " 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 around it by generated the attribute > style="...". That's the inline override. > > Bill > > On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > 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 are using CSS # style attributes to apply rules to more than > one > > element in a document with the same ID that probably isn't exactly the > best > > way to do it anyways. Use . CSS rules for these kinds of > things > > instead. > > > > You're going to be fighting an uphill battle trying to do what you want > as I > > am trying to prevent exactly what you want as much as I possibly can. :) > > When weighing in factors of importance like javascript vs CSS id > selectors > > that are technically not correct I have to go with option 1. > > > > So, it's "by design". Use class="your class name" instead. > > > > On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: > > > > > > 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? > > > > > > Thanks! > > > Bill > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Jesse Kuhnert > > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > > > Open source based consulting work centered around > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > > > > > > -- > "Budgets are moral documents." > > -- Ann Richards > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- "Budgets are moral documents." -- Ann Richards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suppressing id attribute in @Any
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]> wrote: " 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 around it by generated the attribute style="...". That's the inline override. Bill On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > 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 are using CSS # style attributes to apply rules to more than one > element in a document with the same ID that probably isn't exactly the best > way to do it anyways. Use . CSS rules for these kinds of things > instead. > > You're going to be fighting an uphill battle trying to do what you want as I > am trying to prevent exactly what you want as much as I possibly can. :) > When weighing in factors of importance like javascript vs CSS id selectors > that are technically not correct I have to go with option 1. > > So, it's "by design". Use class="your class name" instead. > > On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: > > > > 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? > > > > Thanks! > > Bill > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > -- "Budgets are moral documents." -- Ann Richards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Overriding HomeService
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 it is referenced in tapestry.services.impl.ServiceMapImpl.resolveEngineService(). But when I've got my MyHomeService in place that same routine does not result in the calls to setResponseRenderer and setPageName - which basically makes it impossible to work. Huh? I would have thought that the service would have been treated the same - is there more configuration I have to set up somewhere? Thanks, Kevin Whitley podtech.net On Nov 3, 2006, at 11:03 AM, James Carman wrote: 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 this is expected and trivial. I created a test class to try this out - MyHomeService. And then in my hivemodule.xml file I have: But when HiveMind is initializing I get complaints that "Module podtech contributed to unknown service point podtech.home". On a guess I tried changing the service-id to "tapestry.home" but I got the same error ("unknown service point tapestry.home"). I'm basing the service-override on the HiveMind "overriding a service doc" at http://hivemind.apache.org/override.html. Is this the right approach? hivemodule.xml the right place? What is the service-id that is needed? Do I need to have this in a particular module? (Is there some way to ask HiveMind for an enumeration of legal service points?) By the way, once I get my HomeService hooked in, I assume that overriding the getPageName() method will be all I need to do to redirect to different pages? Thanks for any advice, Kevin Whitley Podtech.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suppressing id attribute in @Any
" 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 around it by generated the attribute style="...". That's the inline override. Bill On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: 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 are using CSS # style attributes to apply rules to more than one element in a document with the same ID that probably isn't exactly the best way to do it anyways. Use . CSS rules for these kinds of things instead. You're going to be fighting an uphill battle trying to do what you want as I am trying to prevent exactly what you want as much as I possibly can. :) When weighing in factors of importance like javascript vs CSS id selectors that are technically not correct I have to go with option 1. So, it's "by design". Use class="your class name" instead. On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: > > 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? > > Thanks! > Bill > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- "Budgets are moral documents." -- Ann Richards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suppressing id attribute in @Any
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 are using CSS # style attributes to apply rules to more than one element in a document with the same ID that probably isn't exactly the best way to do it anyways. Use . CSS rules for these kinds of things instead. You're going to be fighting an uphill battle trying to do what you want as I am trying to prevent exactly what you want as much as I possibly can. :) When weighing in factors of importance like javascript vs CSS id selectors that are technically not correct I have to go with option 1. So, it's "by design". Use class="your class name" instead. On 11/3/06, Bill Holloway <[EMAIL PROTECTED]> wrote: 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? Thanks! Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Suppressing id attribute in @Any
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? Thanks! Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding HomeService
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 this is expected and trivial. I created a test class to try this out - MyHomeService. And then in my hivemodule.xml file I have: But when HiveMind is initializing I get complaints that "Module podtech contributed to unknown service point podtech.home". On a guess I tried changing the service-id to "tapestry.home" but I got the same error ("unknown service point tapestry.home"). I'm basing the service-override on the HiveMind "overriding a service doc" at http://hivemind.apache.org/override.html. Is this the right approach? hivemodule.xml the right place? What is the service-id that is needed? Do I need to have this in a particular module? (Is there some way to ask HiveMind for an enumeration of legal service points?) By the way, once I get my HomeService hooked in, I assume that overriding the getPageName() method will be all I need to do to redirect to different pages? Thanks for any advice, Kevin Whitley Podtech.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help getting started
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: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found I am using WSAD 5.1 and I have the latest jdk and Tapestry versions installed. Is there a configuration file that I might be missing? Can anyone suggest how to fix this error? Below are the main files created for this application. Thanks and regards, == web.xml == http://java.sun.com/dtd/web-app_2_3.dtd";> HelloWorld HelloWorld ApplicationServlet org.apache.tapestry.ApplicationServlet 1 HelloWorld /app = Home.page = http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"; > = application.xml = http://java.sun.com/dtd/application_1_3.dtd";> HelloWorldEAR HelloWorld.war HelloWorld - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overriding HomeService
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 - MyHomeService. And then in my hivemodule.xml file I have: package="net.podtech.ui.tapestry.Xx"> class="net.podtech.ui.tapestry.MyHomeService"/> But when HiveMind is initializing I get complaints that "Module podtech contributed to unknown service point podtech.home". On a guess I tried changing the service-id to "tapestry.home" but I got the same error ("unknown service point tapestry.home"). I'm basing the service-override on the HiveMind "overriding a service doc" at http://hivemind.apache.org/override.html. Is this the right approach? hivemodule.xml the right place? What is the service-id that is needed? Do I need to have this in a particular module? (Is there some way to ask HiveMind for an enumeration of legal service points?) By the way, once I get my HomeService hooked in, I assume that overriding the getPageName() method will be all I need to do to redirect to different pages? Thanks for any advice, Kevin Whitley Podtech.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How can I pass a component as a parameter to my custom component
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 "listeners:nameOfFunction" - I can't remember offhand. Also, if you look in the javadocs at the IActionListener class and related, you should see how you can use it. Hopefully, that will get you started. Also, there is a description in the tap 4 user guide of how to go about adding a listener parameter to your own components. That might also be helpful to you. --sam On 11/3/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: > 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 parameter a listener method(if is > possible to be done). I need this because I have a component which prepare > all the form elements, like the text field, the checkboxes. This component > is repeated lot of times, then I want to call different methods depending on > the situation. Then I want to pass a listener to the parameter. > > Thanks in advance, robert > > On 10/24/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: > > > > thanks you very much ! > > > > I didn't know about this component ... Finally I realized that I can use > > the RenderBody component in an smarter way and solve my problem. > > > > r. > > > > On 10/24/06, Jiří Mareš <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > > In component-specification: > > > > > > > > > ... > > > > > > ... > > > > > > > > > Then in component template can be component referenced e.g.: > > > > > > > > > > > > And when you use the component and wants to pass the component as > > > parameter: > > > > > > > > > > > > Jirka > > > > > > > I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5. > > > > > > > > I would like to create my own component. This component should receive > > > a > > > > parameter (not required) that specify another component (in this case > > > is a > > > > submit button component), I would like to use the container defined > > > > component in the custom component, but I don't know how to do this. > > > I'll > > > > try > > > > to explain this more carefully with an example: > > > > > > > > containerPage.page > > > > ... > > > > > > > >listener:onSubmit > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > componentPage.jwc (here is my biggest doubt!) > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > componentPage.html > > > > ... > > > > > > > > ... > > > > > > > > The componentPage.html should show the button passed as a parameter > > > from > > > > the > > > > containerPage.page ... this parameter will call the onSubmit of the > > > class > > > > containerPage. > > > > > > > > Any one has done this ??? There is an easy and clean way to do this ? > > > > > > > > Thanks in advance. > > > > > > > > > > -- > > > Jiří Mareš (mailto:[EMAIL PROTECTED]) > > > ČSAD SVT Praha, s.r.o. ( http://www.svt.cz) > > > Czech Republic > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Robert Ramírez Vique > > Computer Science Engineer > > > > > > -- > Robert Ramírez Vique > Computer Science Engineer > -- Thanks, Karthik
Re: Re: How can I pass a component as a parameter to my custom component
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 should see how you can use it. Hopefully, that will get you started. Also, there is a description in the tap 4 user guide of how to go about adding a listener parameter to your own components. That might also be helpful to you. --sam On 11/3/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: 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 parameter a listener method(if is possible to be done). I need this because I have a component which prepare all the form elements, like the text field, the checkboxes. This component is repeated lot of times, then I want to call different methods depending on the situation. Then I want to pass a listener to the parameter. Thanks in advance, robert On 10/24/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: > > thanks you very much ! > > I didn't know about this component ... Finally I realized that I can use > the RenderBody component in an smarter way and solve my problem. > > r. > > On 10/24/06, Jiří Mareš <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > In component-specification: > > > > > > ... > > > > ... > > > > > > Then in component template can be component referenced e.g.: > > > > > > > > And when you use the component and wants to pass the component as > > parameter: > > > > > > > > Jirka > > > > > I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5. > > > > > > I would like to create my own component. This component should receive > > a > > > parameter (not required) that specify another component (in this case > > is a > > > submit button component), I would like to use the container defined > > > component in the custom component, but I don't know how to do this. > > I'll > > > try > > > to explain this more carefully with an example: > > > > > > containerPage.page > > > ... > > > > > >listener:onSubmit > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > componentPage.jwc (here is my biggest doubt!) > > > ... > > > > > > > > > > > > > > > > > > ... > > > > > > componentPage.html > > > ... > > > > > > ... > > > > > > The componentPage.html should show the button passed as a parameter > > from > > > the > > > containerPage.page ... this parameter will call the onSubmit of the > > class > > > containerPage. > > > > > > Any one has done this ??? There is an easy and clean way to do this ? > > > > > > Thanks in advance. > > > > > > > -- > > Jiří Mareš (mailto:[EMAIL PROTECTED]) > > ČSAD SVT Praha, s.r.o. ( http://www.svt.cz) > > Czech Republic > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Robert Ramírez Vique > Computer Science Engineer > -- Robert Ramírez Vique Computer Science Engineer
Re: ANN: Tapestry Support for Netbeans 5.5
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 base dir > for Tapestry (4.0.2) as is, the plugin needs to find a dir which contains the main tapestry jar and then all dependencies in a lib subfolder... I've added a zip with the above at https://nbtapestrysupport.dev.java.net/files/documents/5599/43257/tapestry4.0.2.zip > and click finish, the dialog box just stucks (and no > templates are generated). JDK version is 1.5 update 7. > > TYA > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image localization with css
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 size, as we're cooking them up ourselves. Thanks Denis Kristian Marinkovic wrote: of course you could move this @Import statement into your HTML template :) Kristian Marinkovic [EMAIL PROTECTED] "Tapestry users" > Kopie 03.11.2006 13:02 Thema RE: Image localization with css Bitte antworten an "Tapestry users" <[EMAIL PROTECTED] pache.org> 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 are different (background-image,) */ g, kris Denis McCarthy <[EMAIL PROTECTED] letech.com>An Tapestry users 03.11.2006 12:52 Kopie Bitte antwortenThema an Image localization with css "Tapestry users" <[EMAIL PROTECTED] pache.org> 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 according to the style and locale selection It's possible to localize the images using the @Image component, but I'm not sure whether its possible to get this to play well with multiple stylesheets (css doesn't seem to allow the definition of the src attribute for img classes). My only solution I have at the moment is the rather awkward one of having a css file per locale per style - I'd prefer to only have a css file per style and let tapestry look after the localization - including the images. Has anyone had this requirement before, and how did they solve it? Thanks Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
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 HttpSessionContextIntegrationFilter will take care of storing it in the session for you so that each subsequent request will be authenticated. I should maybe look at integrating the "remember me" stuff into the pipeline. I could create a special module called tapestry-acegi-rememberme or something so that you could just drop in a jar to allow "remember me" services. On 11/3/06, James Carman <[EMAIL PROTECTED]> wrote: 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 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 > > > For Acegi I have added this mapping: > > AcegiFilter > org.acegisecurity.util.FilterToBeanProxy > > targetClass > org.acegisecurity.ui.webapp.AuthenticationProcessingFilter > > > > Acegi Filter Chain Proxy > /j_acegi_security_check > > > Jesper > > -- > Jesper Zedlitz E-Mail : [EMAIL PROTECTED] > Homepage : http://www.zedlitz.de > ICQ# : 23890711 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
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 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 For Acegi I have added this mapping: AcegiFilter org.acegisecurity.util.FilterToBeanProxy targetClass org.acegisecurity.ui.webapp.AuthenticationProcessingFilter Acegi Filter Chain Proxy /j_acegi_security_check Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
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 For Acegi I have added this mapping: AcegiFilter org.acegisecurity.util.FilterToBeanProxy targetClass org.acegisecurity.ui.webapp.AuthenticationProcessingFilter Acegi Filter Chain Proxy /j_acegi_security_check Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image localization with css
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: - the server generates a different "src" attribute depending on your criteria (you probably already know that) - the "src" attribute is changed dynamically with Javascript on the client browser. Not really CSS, but quite a good solution. - a blank/transparent image is used as a "src" image and the real images are used as background images for the IMG element in your different CSS files. The problem here is that you have to deal with the sizes of the images, which might be an issue for you if you have all images of the same size or if you specify the sizes in the CSS file for the background images, otherwise they can get cropped or off-center, etc... Hope this helps. Fred --- Denis McCarthy <[EMAIL PROTECTED]> wrote: > 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 according to the style and locale selection > > It's possible to localize the images using the @Image component, but > I'm > not sure whether its possible to get this to play well with multiple > stylesheets (css doesn't seem to allow the definition of the src > attribute for img classes). > > My only solution I have at the moment is the rather awkward one of > having a css file per locale per style - I'd prefer to only have a > css > file per style and let tapestry look after the localization - > including > the images. > > Has anyone had this requirement before, and how did they solve it? > Thanks > Denis > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
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 Acegi? Here is a short summary what I tried until now: * Login page forwards to "/j_acegi_security_check?...". * add a filter that maps "/j_acegi_security_check" to Acegi => need Spring to create a AuthenticationProcessingFilter bean * After creating a couple of Spring beans Acegi will authenticate the user. But somehow the content of ACEGI_SECURITY_CONTEXT (in the session) gets lost. Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Trouble
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]> wrote: Hi James, Thanks for the response, I tried it and it throws an exception: /"Schema and extension point ids should be simple names with no punctuation."/ Is this what you meant? package="com.albourne.web"> James Carman wrote: > Try com.albourne.web.PortfoliosInterface as the service id. It's > fully qualified by using the module id followed by '.' and then the > service id. > > On 11/2/06, Peter Stavrinides <[EMAIL PROTECTED]> wrote: >> Hi >> >> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I >> would also like to change some of the namespaces, but when I do, I break >> the application and I can no longer find many of my service points. I >> suspect that my packages may be incorrectly mapped, can anyone PLEASE >> point me in the right direction: >> >> This is the error: / >> "Service point com.albourne.web.services.hfdb.PortfoliosInterface does >> not exist."/ >> >> .application file: >> > engine-class="org.apache.tapestry.engine.BaseEngine"> >> >> > value="com.albourne.web.pages"/> >> > value="com.albourne.web.components"/> >> > specification-path="/org/apache/tapestry/contrib/Contrib.library"/> >> >> >> Packages: >> com.albourne.web.components.ui >> com.albourne.web.pages >> com.albourne.web.services.castle >> com.albourne.web.services.hfdb >> com.albourne.web.application >> etc... >> >> hivemodule.xml: >> >> >> >> >> > interface="com.albourne.web.services.hfdb.PortfoliosInterface"> >> >> >> > service-id="tapestry.state.ApplicationStateManager"/> >> >> >> >> >> >> Thanks, >> Peter >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing template locations
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 or selenium testing, not rearranging files in a webapp. -Steve Mark Stang wrote: Package them as Tapestry Libraries. Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Steve Shucker [mailto:[EMAIL PROTECTED] Sent: Thu 11/2/2006 4:59 PM To: Tapestry users Subject: Changing template locations Is there a way to change the location where tapestry looks for html templates? I've got a component library project with a standard maven2 file structure. I'm writing specless components. I've created a /src/main/webapp directory containing a basic *.application and web.xml file and I use the maven jetty plugin to test. However, running this project as a webapp requires me to move my *.html files into /src/main/webapp/WEB-INF. I'd much rather configure hivemind to look for these files under the classpath where the *.java files are located and packaged for the component library. A SpecificationResolverDelegate doesn't appear to address this issue - the fact that my component backing classes are in the classpath is causing tapestry to assume the *.html files are in WEB-INF. I'd prefer to add an additional search location, but I'd settle for putting another hivemodule.xml in my test WEB-INF folder to search the classpath instead of WEB-INF. -Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Trouble
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 extension point ids should be simple names with no punctuation."/ Is this what you meant? James Carman wrote: > Try com.albourne.web.PortfoliosInterface as the service id. It's > fully qualified by using the module id followed by '.' and then the > service id. > > On 11/2/06, Peter Stavrinides <[EMAIL PROTECTED]> wrote: >> Hi >> >> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I >> would also like to change some of the namespaces, but when I do, I break >> the application and I can no longer find many of my service points. I >> suspect that my packages may be incorrectly mapped, can anyone PLEASE >> point me in the right direction: >> >> This is the error: / >> "Service point com.albourne.web.services.hfdb.PortfoliosInterface does >> not exist."/ >> >> .application file: >> > engine-class="org.apache.tapestry.engine.BaseEngine"> >> >> > value="com.albourne.web.pages"/> >> > value="com.albourne.web.components"/> >> > specification-path="/org/apache/tapestry/contrib/Contrib.library"/> >> >> >> Packages: >> com.albourne.web.components.ui >> com.albourne.web.pages >> com.albourne.web.services.castle >> com.albourne.web.services.hfdb >> com.albourne.web.application >> etc... >> >> hivemodule.xml: >> >> >> >> >> > interface="com.albourne.web.services.hfdb.PortfoliosInterface"> >> >> >> > service-id="tapestry.state.ApplicationStateManager"/> >> >> >> >> >> >> Thanks, >> Peter >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: prepareForRender or pageBeginRender - which one should i use?
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 the middle of the aforementioned for loop, pageBeginRender would still be called only once. Depending on the type of initialization your component needs to do, either one might be appropriate. However, if you're using any complex block trickery (ie blocks contained in page x are rendered in page y), see: http://www.jroller.com/page/genjitsuteki for some risks of pageBeginRender. Robert Karthik N wrote: > Hi, > > I would like to do some initialization in a custom component that I'm > writing up. > > I observe that I can do it in two ways: > > 1. Implement the PageBeginRenderListener and use pageBeginRender > 2. Override prepareForRender > > My question is: Which one should I use? > > Thanks, Karthik > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Image localization with css
of course you could move this @Import statement into your HTML template :) Kristian Marinkovic Kopie 03.11.2006 13:02 Thema RE: Image localization with css Bitte antworten an "Tapestry users" <[EMAIL PROTECTED] pache.org> 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 are different (background-image,) */ g, kris Denis McCarthy <[EMAIL PROTECTED] letech.com>An Tapestry users 03.11.2006 12:52 Kopie Bitte antwortenThema an Image localization with css "Tapestry users" <[EMAIL PROTECTED] pache.org> 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 according to the style and locale selection It's possible to localize the images using the @Image component, but I'm not sure whether its possible to get this to play well with multiple stylesheets (css doesn't seem to allow the definition of the src attribute for img classes). My only solution I have at the moment is the rather awkward one of having a css file per locale per style - I'd prefer to only have a css file per style and let tapestry look after the localization - including the images. Has anyone had this requirement before, and how did they solve it? Thanks Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image localization with css
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 are different (background-image,) */ g, kris Denis McCarthy <[EMAIL PROTECTED] letech.com>An Tapestry users 03.11.2006 12:52 Kopie Bitte antwortenThema an Image localization with css "Tapestry users" <[EMAIL PROTECTED] pache.org> 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 according to the style and locale selection It's possible to localize the images using the @Image component, but I'm not sure whether its possible to get this to play well with multiple stylesheets (css doesn't seem to allow the definition of the src attribute for img classes). My only solution I have at the moment is the rather awkward one of having a css file per locale per style - I'd prefer to only have a css file per style and let tapestry look after the localization - including the images. Has anyone had this requirement before, and how did they solve it? Thanks Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image localization with css
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 according to the style and locale selection It's possible to localize the images using the @Image component, but I'm not sure whether its possible to get this to play well with multiple stylesheets (css doesn't seem to allow the definition of the src attribute for img classes). My only solution I have at the moment is the rather awkward one of having a css file per locale per style - I'd prefer to only have a css file per style and let tapestry look after the localization - including the images. Has anyone had this requirement before, and how did they solve it? Thanks Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I pass a component as a parameter to my custom component
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 parameter a listener method(if is possible to be done). I need this because I have a component which prepare all the form elements, like the text field, the checkboxes. This component is repeated lot of times, then I want to call different methods depending on the situation. Then I want to pass a listener to the parameter. Thanks in advance, robert On 10/24/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: thanks you very much ! I didn't know about this component ... Finally I realized that I can use the RenderBody component in an smarter way and solve my problem. r. On 10/24/06, Jiří Mareš <[EMAIL PROTECTED]> wrote: > > > Hi, > > In component-specification: > > > ... > > ... > > > Then in component template can be component referenced e.g.: > > > > And when you use the component and wants to pass the component as > parameter: > > > > Jirka > > > I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5. > > > > I would like to create my own component. This component should receive > a > > parameter (not required) that specify another component (in this case > is a > > submit button component), I would like to use the container defined > > component in the custom component, but I don't know how to do this. > I'll > > try > > to explain this more carefully with an example: > > > > containerPage.page > > ... > > > >listener:onSubmit > > > > > > > > > > > > > > > > > > > > componentPage.jwc (here is my biggest doubt!) > > ... > > > > > > > > > > > > ... > > > > componentPage.html > > ... > > > > ... > > > > The componentPage.html should show the button passed as a parameter > from > > the > > containerPage.page ... this parameter will call the onSubmit of the > class > > containerPage. > > > > Any one has done this ??? There is an easy and clean way to do this ? > > > > Thanks in advance. > > > > -- > Jiří Mareš (mailto:[EMAIL PROTECTED]) > ČSAD SVT Praha, s.r.o. ( http://www.svt.cz) > Czech Republic > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Robert Ramírez Vique Computer Science Engineer -- Robert Ramírez Vique Computer Science Engineer
Re: use unique id's generated by tapestry
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 component (the one I want to unequivocally identify), but I've tried accessing inside the component class to the getClientId but always return to me the same ID. Thanks you in advance, robert On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: IComponent.getClientId() or IComponent.getId() getClientId() is only relevant "in context"...ie calling it inside a For loop would be good. On 11/2/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: > > Hello! > > I want to use something that I supose tapestry already made for me. > > I'll try to explain because probably some of you have, or have had this > question, and probably the answer to my question is that this is not > possible or shouldn't be done, but I'm not sure. > > I want to use the tapestry generated Id's. I have seen that in tapestry, > when an element is inside a For component (supose we have a TextField with > id= name), and this element is part of a dynamic form, is generated with a > different id in each loop, this Id use to be like: tapestryIdName_X (where > X > is the index in the loop, or the index-1). I want to know if is possible > to > use the clientId that I've debugged and saw that is the correct one. > I would like to use this id in two situations, one just to know the id of > a > TextField and the other to know the Id of my own component. > > Thanks you, > -- > Robert Ramírez Vique > Computer Science Engineer > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Robert Ramírez Vique Computer Science Engineer
Re: ANN: Tapestry Support for Netbeans 5.5
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 dialog box just stucks (and no templates are generated). JDK version is 1.5 update 7. TYA
Re: tapestry-acegi questions
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 filter that maps "/j_acegi_security_check" to Acegi => need Spring to create a AuthenticationProcessingFilter bean * After creating a couple of Spring beans Acegi will authenticate the user. But somehow the content of ACEGI_SECURITY_CONTEXT (in the session) gets lost. Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use unique id's generated by tapestry
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 tapestry 4.0, and you are using 4.1 since you can access to IComponent.clientId :P Thanks, robert On 11/3/06, Patrick Moore <[EMAIL PROTECTED]> wrote: I just realized that what I said was not completely clear. if you have this: with mycomponent template like this: you would end up with generated out put like this: so the second instance of the div tag would refer to the first instance of the hidden field, not the second like it should. I hope that is clearer. If anyone discovers I am wrong please let me know the solution. -Pat On 11/2/06, Patrick Moore <[EMAIL PROTECTED]> wrote: > However see : > http://issues.apache.org/jira/browse/TAPESTRY-1131 > > > use clientId does not always generate a unique Id on a page level > basis. If another component tried to access the first component's > clientId, the result returned would be the first id not the correct > uniquified value. > > -Pat > > On 11/2/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > IComponent.getClientId() or IComponent.getId() > > > > getClientId() is only relevant "in context"...ie calling it inside a For > > loop would be good. > > > > On 11/2/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: > > > > > > Hello! > > > > > > I want to use something that I supose tapestry already made for me. > > > > > > I'll try to explain because probably some of you have, or have had this > > > question, and probably the answer to my question is that this is not > > > possible or shouldn't be done, but I'm not sure. > > > > > > I want to use the tapestry generated Id's. I have seen that in tapestry, > > > when an element is inside a For component (supose we have a TextField with > > > id= name), and this element is part of a dynamic form, is generated with a > > > different id in each loop, this Id use to be like: tapestryIdName_X (where > > > X > > > is the index in the loop, or the index-1). I want to know if is possible > > > to > > > use the clientId that I've debugged and saw that is the correct one. > > > I would like to use this id in two situations, one just to know the id of > > > a > > > TextField and the other to know the Id of my own component. > > > > > > Thanks you, > > > -- > > > Robert Ramírez Vique > > > Computer Science Engineer > > > > > > > > > > > > -- > > Jesse Kuhnert > > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > > > Open source based consulting work centered around > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert Ramírez Vique Computer Science Engineer
Re: ANN: Tapestry Support for Netbeans 5.5
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 linux. >> Anyone got any suggestions? > > Wink does the job fairly well. One of these days it might even include > audio recording, but it's perfectly usable as it is. doh... had tried wink but failed to make it export to swf. found it now :) Whenever you feel like developing something along the lines of a, say, tap plugin for netbeans, I'll be more than happy to provide all the info I can about usefull tools to document how to use what you've written. :) t.n.a. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ComponentParameter value to Persistent ComponentProperty
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 ?!?!?!? Jessek wrote: > > Generally speaking you really ~don't~ want to store persistent fields in a > component if you can help it. Make everything a parameter. > > On 11/2/06, Skorpien126 <[EMAIL PROTECTED]> wrote: >> >> >> SOLVED: >> >> created a bean but not using the property-attribute of the bean >> tag... >> instead i make use of getBeans().getBean("beanname")... SURELY not the >> most >> intuitiv way... an lot of casting around but it seems to work!! >> >> >> >> Skorpien126 wrote: >> > >> > I have found several posts here where this problem is discribed.. but >> > >> > "no one" works in my case... >> > >> > One described: Overwrite the pageBeginRender ... i tried but i use a >> > @For-Component so that this doesnt work because the property is >> > persistent. Error ("Change to persistent property ... has been ignored. >> > Persistent properties may only be changed prior to the rendering of the >> > response page." ) >> > >> > Another one make use of a bean... I also tried this... overwriting the >> > bean-value with the parameter value in the pageBeginRender method but >> this >> > also throws an error. in correspondending abstract class i make use of >> the >> > property normally generated on rendering (discribed here >> > http://tapestry.apache.org/tapestry4.1/usersguide/spec.html ->bean >> > specification). >> > This throw also an error "ognl.NoSuchPropertyException >> > >> > org.apache.tapestry.bean.BeanProvider.persistItem " >> > >> > Here my bean specification: >> > > > class="myobject"> >> > >> > Has anyone an idea... or better a solution??? ^^ >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf245.html#a7146931 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > -- View this message in context: http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf245.html#a7154502 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]