Re: Problem on Nested Body component
It's not clear to me what you're trying to do here. Try posting some simplified example source code. Cheers, Nick. wong wayne wrote: Hello all I'm developing a system which using tapestry v3.03. I have some problem on Rollover directLink component. When I using directLink to redirect a page - a static html page(actually is render the page in a page border), it works fine but when i added Rollover component, it need include into Body component and caused Body components may not be nested. More than one Body component added, is any convenient way to remove the Body component when it exist more than one time? Please comment, thanks. regards wayne Access over 1 million songs - Yahoo! Music Unlimited (http://music.yahoo.com/unlimited) - 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: Problem on Nested Body component
Thanks for your comment, problem resolved. A stupid bug, $Content$ missed for the border page. Thanks --- Nick Westgate [EMAIL PROTECTED] wrote: It's not clear to me what you're trying to do here. Try posting some simplified example source code. Cheers, Nick. wong wayne wrote: Hello all I'm developing a system which using tapestry v3.03. I have some problem on Rollover directLink component. When I using directLink to redirect a page - a static html page(actually is render the page in a page border), it works fine but when i added Rollover component, it need include into Body component and caused Body components may not be nested. More than one Body component added, is any convenient way to remove the Body component when it exist more than one time? Please comment, thanks. regards wayne Access over 1 million songs - Yahoo! Music Unlimited (http://music.yahoo.com/unlimited) - 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] We have the perfect Group for you. Check out the handy changes to Yahoo! Groups (http://groups.yahoo.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you manually change the page of the Contrib TablePages component
Is there a simple way of resetting the Contrib library TablePages component so as it reverts back to page 1? Thank you. Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you manually change the page of the Contrib TablePages component
Try looking at the Table.reset() method...it just ends up making a call to the TableView.reset() method anyway, so if you've exploded your Table into its composite parts, find a way to call the reset method on the TableView object. HTH, Tom -Original Message- From: Gareth [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 6:30 AM To: Tapestry users Subject: How do you manually change the page of the Contrib TablePages component Is there a simple way of resetting the Contrib library TablePages component so as it reverts back to page 1? Thank you. Send instant messages to your online friends http://uk.messenger.yahoo.com - 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]
Translator message
Using Tap 4.1 I do not use any validators. How can I make a translator display my own error message in case of translation error ? I try the following : input jwcid=[EMAIL PROTECTED] value=ognl:EndDate translator='translator:date,pattern=dd.MM. HH:mm,message=error test message' size=20/ In case of a translation error I get red asterics displayed after my text field, but no trace of any error message. Any advice is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
James Carman wrote: I haven't implemented form-based authentication in tapestry-acegi, yet. But, I don't think it's that difficult, really. Your need to use the AuthenticationProcessingFilter (I don't define it in my hivemodule.xml, but it would be easy to do so in yours) and your form has to have two fields named j_username and j_password and it should post to j_acegi_security_check. The filter will pick up that request and handle it. You would override the symbol tapestry.acegi.authenticationProcessingFilter to point to your authentication filter I have added these entries to my hivemodule.xml: contribution configuration-id=hivemind.ApplicationDefaults default symbol=tapestry.acegi.authenticationProcessingFilter value=de.zedlitz.tapestry.acegi.FormProcessingFilter/ default symbol=tapestry.acegi.authenticationEntryPoint value=de.zedlitz.tapestry.acegi.FormAuthenticationEntryPoint/ !-- you have to adjust this text according to your module id -- /contribution service-point id=FormProcessingFilter interface=javax.servlet.Filter invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter initialize-method=afterPropertiesSet set property=authenticationFailureUrl value=/LoginFailed.html/ set property=defaultTargetUrl value=/app/ set property=filterProcessesUrl value=/j_acegi_security_check/ /construct /invoke-factory /service-point service-point id=FormAuthenticationEntryPoint interface=org.acegisecurity.ui.AuthenticationEntryPoint invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint set property=loginFormUrl value=/app?page=Loginamp;service=page/ set property=forceHttps value=false/ /construct /invoke-factory /service-point and created Login.html and Login.java according to the tutorial http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+Guide When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? Jesper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: tapestry-acegi questions
Acegi's AuthenticationProcessingFilter is, by default, coded to intercept any web request to j_acegi_security_check. You can override the actual name of the servlet with the filterProcessesUrl parameter of that class. So all you need to do to link Tapestry and Acegi is just throw a RedirectException in your Login.java Tapestry page to the j_acegi_security_check url and the Acegi filter pipeline should pick it up, parse out the username password, hand it off to the authenticationManager, etc. etc. If you're not getting that behavior, make sure your web.xml has this filter and filter-mapping section: filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classorg.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-valueorg.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter-mapping filter-nameAcegi Filter Chain Proxy/filter-name url-pattern/*/url-pattern /filter-mapping === FYI, here's some Login.java code that backs my Tapestry page (the username and password params are abstract getters a la Tapestry form bindings, abnd the cipherText method just encodes the password using a non-salted MD5 hash): public void login(IRequestCycle cycle) throws RedirectException { String ciphertext = getCipherText(getPassword()); LOG.debug(User + getUsername() + is attempting login.); String acegiUrl = cycle.getAbsoluteURL( /j_acegi_security_check?j_username= + getUsername() + j_password= + ciphertext); throw new RedirectException(acegiUrl); } === Tom -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz Sent: Wednesday, November 01, 2006 8:52 AM To: users@tapestry.apache.org Subject: Re: tapestry-acegi questions James Carman wrote: I haven't implemented form-based authentication in tapestry-acegi, yet. But, I don't think it's that difficult, really. Your need to use the AuthenticationProcessingFilter (I don't define it in my hivemodule.xml, but it would be easy to do so in yours) and your form has to have two fields named j_username and j_password and it should post to j_acegi_security_check. The filter will pick up that request and handle it. You would override the symbol tapestry.acegi.authenticationProcessingFilter to point to your authentication filter I have added these entries to my hivemodule.xml: contribution configuration-id=hivemind.ApplicationDefaults default symbol=tapestry.acegi.authenticationProcessingFilter value=de.zedlitz.tapestry.acegi.FormProcessingFilter/ default symbol=tapestry.acegi.authenticationEntryPoint value=de.zedlitz.tapestry.acegi.FormAuthenticationEntryPoint/ !-- you have to adjust this text according to your module id -- /contribution service-point id=FormProcessingFilter interface=javax.servlet.Filter invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter initialize-method=afterPropertiesSet set property=authenticationFailureUrl value=/LoginFailed.html/ set property=defaultTargetUrl value=/app/ set property=filterProcessesUrl value=/j_acegi_security_check/ /construct /invoke-factory /service-point service-point id=FormAuthenticationEntryPoint interface=org.acegisecurity.ui.AuthenticationEntryPoint invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPo int set property=loginFormUrl value=/app?page=Loginamp;service=page/ set property=forceHttps value=false/ /construct /invoke-factory /service-point and created Login.html and Login.java according to the tutorial http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+ Guide When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? Jesper - 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: Re: tapestry-acegi questions
With Tapestry-Acegi, we're not using the Acegi servlet filter. On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Acegi's AuthenticationProcessingFilter is, by default, coded to intercept any web request to j_acegi_security_check. You can override the actual name of the servlet with the filterProcessesUrl parameter of that class. So all you need to do to link Tapestry and Acegi is just throw a RedirectException in your Login.java Tapestry page to the j_acegi_security_check url and the Acegi filter pipeline should pick it up, parse out the username password, hand it off to the authenticationManager, etc. etc. If you're not getting that behavior, make sure your web.xml has this filter and filter-mapping section: filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classorg.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-valueorg.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter-mapping filter-nameAcegi Filter Chain Proxy/filter-name url-pattern/*/url-pattern /filter-mapping === FYI, here's some Login.java code that backs my Tapestry page (the username and password params are abstract getters a la Tapestry form bindings, abnd the cipherText method just encodes the password using a non-salted MD5 hash): public void login(IRequestCycle cycle) throws RedirectException { String ciphertext = getCipherText(getPassword()); LOG.debug(User + getUsername() + is attempting login.); String acegiUrl = cycle.getAbsoluteURL( /j_acegi_security_check?j_username= + getUsername() + j_password= + ciphertext); throw new RedirectException(acegiUrl); } === Tom -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz Sent: Wednesday, November 01, 2006 8:52 AM To: users@tapestry.apache.org Subject: Re: tapestry-acegi questions James Carman wrote: I haven't implemented form-based authentication in tapestry-acegi, yet. But, I don't think it's that difficult, really. Your need to use the AuthenticationProcessingFilter (I don't define it in my hivemodule.xml, but it would be easy to do so in yours) and your form has to have two fields named j_username and j_password and it should post to j_acegi_security_check. The filter will pick up that request and handle it. You would override the symbol tapestry.acegi.authenticationProcessingFilter to point to your authentication filter I have added these entries to my hivemodule.xml: contribution configuration-id=hivemind.ApplicationDefaults default symbol=tapestry.acegi.authenticationProcessingFilter value=de.zedlitz.tapestry.acegi.FormProcessingFilter/ default symbol=tapestry.acegi.authenticationEntryPoint value=de.zedlitz.tapestry.acegi.FormAuthenticationEntryPoint/ !-- you have to adjust this text according to your module id -- /contribution service-point id=FormProcessingFilter interface=javax.servlet.Filter invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter initialize-method=afterPropertiesSet set property=authenticationFailureUrl value=/LoginFailed.html/ set property=defaultTargetUrl value=/app/ set property=filterProcessesUrl value=/j_acegi_security_check/ /construct /invoke-factory /service-point service-point id=FormAuthenticationEntryPoint interface=org.acegisecurity.ui.AuthenticationEntryPoint invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPo int set property=loginFormUrl value=/app?page=Loginamp;service=page/ set property=forceHttps value=false/ /construct /invoke-factory /service-point and created Login.html and Login.java according to the tutorial http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+ Guide When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? Jesper - 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: Re: tapestry-acegi questions
Ohhh...sorry 'bout that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Wednesday, November 01, 2006 9:08 AM To: Tapestry users Subject: Re: Re: tapestry-acegi questions With Tapestry-Acegi, we're not using the Acegi servlet filter. On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Acegi's AuthenticationProcessingFilter is, by default, coded to intercept any web request to j_acegi_security_check. You can override the actual name of the servlet with the filterProcessesUrl parameter of that class. So all you need to do to link Tapestry and Acegi is just throw a RedirectException in your Login.java Tapestry page to the j_acegi_security_check url and the Acegi filter pipeline should pick it up, parse out the username password, hand it off to the authenticationManager, etc. etc. If you're not getting that behavior, make sure your web.xml has this filter and filter-mapping section: filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classorg.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-valueorg.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter-mapping filter-nameAcegi Filter Chain Proxy/filter-name url-pattern/*/url-pattern /filter-mapping === FYI, here's some Login.java code that backs my Tapestry page (the username and password params are abstract getters a la Tapestry form bindings, abnd the cipherText method just encodes the password using a non-salted MD5 hash): public void login(IRequestCycle cycle) throws RedirectException { String ciphertext = getCipherText(getPassword()); LOG.debug(User + getUsername() + is attempting login.); String acegiUrl = cycle.getAbsoluteURL( /j_acegi_security_check?j_username= + getUsername() + j_password= + ciphertext); throw new RedirectException(acegiUrl); } === Tom -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz Sent: Wednesday, November 01, 2006 8:52 AM To: users@tapestry.apache.org Subject: Re: tapestry-acegi questions James Carman wrote: I haven't implemented form-based authentication in tapestry-acegi, yet. But, I don't think it's that difficult, really. Your need to use the AuthenticationProcessingFilter (I don't define it in my hivemodule.xml, but it would be easy to do so in yours) and your form has to have two fields named j_username and j_password and it should post to j_acegi_security_check. The filter will pick up that request and handle it. You would override the symbol tapestry.acegi.authenticationProcessingFilter to point to your authentication filter I have added these entries to my hivemodule.xml: contribution configuration-id=hivemind.ApplicationDefaults default symbol=tapestry.acegi.authenticationProcessingFilter value=de.zedlitz.tapestry.acegi.FormProcessingFilter/ default symbol=tapestry.acegi.authenticationEntryPoint value=de.zedlitz.tapestry.acegi.FormAuthenticationEntryPoint/ !-- you have to adjust this text according to your module id -- /contribution service-point id=FormProcessingFilter interface=javax.servlet.Filter invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter initialize-method=afterPropertiesSet set property=authenticationFailureUrl value=/LoginFailed.html/ set property=defaultTargetUrl value=/app/ set property=filterProcessesUrl value=/j_acegi_security_check/ /construct /invoke-factory /service-point service-point id=FormAuthenticationEntryPoint interface=org.acegisecurity.ui.AuthenticationEntryPoint invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPo int set property=loginFormUrl value=/app?page=Loginamp;service=page/ set property=forceHttps value=false/ /construct /invoke-factory /service-point and created Login.html and Login.java according to the tutorial http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+ Guide When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? Jesper - 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
Re: tapestry-acegi questions
On 11/1/06, Jesper Zedlitz [EMAIL PROTECTED] wrote: When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? This is where I am too. I was thinking of inject the AuthenticationManager (defined in hivemind-acege) and plug it directly into that. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-acegi questions
The value you gave for the symbol de.zedlitz.tapestry.acegi.FormProcessingFilter, is that a service id or a class name (I guess it could be both)? It definitely needs to be a service id, though. On 11/1/06, Jesper Zedlitz [EMAIL PROTECTED] wrote: James Carman wrote: I haven't implemented form-based authentication in tapestry-acegi, yet. But, I don't think it's that difficult, really. Your need to use the AuthenticationProcessingFilter (I don't define it in my hivemodule.xml, but it would be easy to do so in yours) and your form has to have two fields named j_username and j_password and it should post to j_acegi_security_check. The filter will pick up that request and handle it. You would override the symbol tapestry.acegi.authenticationProcessingFilter to point to your authentication filter I have added these entries to my hivemodule.xml: contribution configuration-id=hivemind.ApplicationDefaults default symbol=tapestry.acegi.authenticationProcessingFilter value=de.zedlitz.tapestry.acegi.FormProcessingFilter/ default symbol=tapestry.acegi.authenticationEntryPoint value=de.zedlitz.tapestry.acegi.FormAuthenticationEntryPoint/ !-- you have to adjust this text according to your module id -- /contribution service-point id=FormProcessingFilter interface=javax.servlet.Filter invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter initialize-method=afterPropertiesSet set property=authenticationFailureUrl value=/LoginFailed.html/ set property=defaultTargetUrl value=/app/ set property=filterProcessesUrl value=/j_acegi_security_check/ /construct /invoke-factory /service-point service-point id=FormAuthenticationEntryPoint interface=org.acegisecurity.ui.AuthenticationEntryPoint invoke-factory construct class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint set property=loginFormUrl value=/app?page=Loginamp;service=page/ set property=forceHttps value=false/ /construct /invoke-factory /service-point and created Login.html and Login.java according to the tutorial http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+Guide When I try to access a secured page it works fine and I get to the login page. After submitting the login form I will be redirected to /j_acegi_security_check But how do I wire this URL to Acegi? Jesper - 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: direct link question
Can you use a a href= http://tapestry.apache.org/tapestry4.1/components/link/servicelink.html ServiceLink/a? On 11/1/06, James Sherwood [EMAIL PROTECTED] wrote: Hello all, Is there a way in a directlink to send the user to a service instead of a page. IE can I MAKE a url and send them to it from a direct kind of the same way as you do cycle.activate(Pagename); ? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gotta find my destiny, before it gets too late.-- Ian Curtis
RE: direct link question
Or if you want to do it in the DirectLink's listener you could do: throw new RedirectException(theURL) -Original Message- From: Paul Cooley [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 8:47 AM To: Tapestry users Subject: Re: direct link question Can you use a a href= http://tapestry.apache.org/tapestry4.1/components/link/servicelink.html ServiceLink/a? On 11/1/06, James Sherwood [EMAIL PROTECTED] wrote: Hello all, Is there a way in a directlink to send the user to a service instead of a page. IE can I MAKE a url and send them to it from a direct kind of the same way as you do cycle.activate(Pagename); ? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gotta find my destiny, before it gets too late.-- Ian Curtis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANN: Tapestry Support for Netbeans 5.5
Well then, this is good news! One more Tapestry plugin. Thanks Andy! Been curious about trying current NetBeans that SUN so boasts about latelly so this just might be the push I needed. Tell me Andy, couldn't there be a joint effort between IDE Tap plugins projects so that all shared a common status and funcionallity grator then the one each one can provide in solo effort? Have you talked to Hugo (TapIDEA) for instance? Sorry if I'm getting out of my place instanted the just giving the deserved thanks, but just trying to make things easier to all of us. Best regards and once again thanks for your effort. On 10/30/06, andyhot [EMAIL PROTECTED] wrote: Just released the first version of nbtapestrysupport https://nbtapestrysupport.dev.java.net/ ( https://nbtapestrysupport.dev.java.net/ ). It provides: * Hyperlink support in Tapestry configuration files for class names, files and libraries... CTRL+click everywhere!!! * Autocomplete in Tapestry configuration files for class names, files and others * Templates for new Tapestry files Download the 2 nbms https://nbtapestrysupport.dev.java.net/servlets/ProjectDocumentList ( from https://nbtapestrysupport.dev.java.net/servlets/ProjectDocumentList), then install the generic module first and then the tapestry module. -- 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] -- Pedro Viegas
Getting the ordinal # in the Contrib:Table
I *hope* there's a really straightforward answer to this and that I'm just a complete donkey for overlooking it, but. . . If you want to have a table that iterates over a List and (for example) spit out some properties of each element in the List, to wit: --- |Aaron |(202) 123-4567| --- |Bob |(202) 987-6543| --- etc.etc. That's really easy. But now say you want to just add an ordinal number as the first column of the table, like this: - | 1 | Aaron | (202) 123-4567| - | 2 | Bob | (202) 987-6543| - | 3 | etc. etc. That seems to be harder. The only way I see how to do it is to: A) Define a custom columnValue @Block B) Map that columnValue to some MyTable.java getOrdinal() method C) In my getOrdinal() method, get the Object associated with getTable().getTableRow(); D) Assume the source data for the Table is a java.util.List, use the List.indexOf() method on the Object from step (C) to figure out what element it is and return that int value as the ordinal Please tell me I'm a donkey... Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ComponentParameter value to Persistent ComponentProperty
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: bean name=persistItemBean lifecycle=page property=persistItem class=myobject/bean Has anyone an idea... or better a solution??? ^^ -- View this message in context: http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf245.html#a7121297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANN: Tapestry Support for Netbeans 5.5
Thanks for this big contribution! Any chance of doing a screencast of the plugin in action? On 10/30/06, andyhot [EMAIL PROTECTED] wrote: Just released the first version of nbtapestrysupport https://nbtapestrysupport.dev.java.net/ ( https://nbtapestrysupport.dev.java.net/ ). It provides: * Hyperlink support in Tapestry configuration files for class names, files and libraries... CTRL+click everywhere!!! * Autocomplete in Tapestry configuration files for class names, files and others * Templates for new Tapestry files Download the 2 nbms https://nbtapestrysupport.dev.java.net/servlets/ProjectDocumentList ( from https://nbtapestrysupport.dev.java.net/servlets/ProjectDocumentList), then install the generic module first and then the tapestry module. -- 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] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: Getting the ordinal # in the Contrib:Table
The method getCurrentPages in org.apache.tapestry.contrib.table.components.TablesPages returns the current page of your table. The ordinal number of the first row of the current page should be something like (tablesPages.getCurrentPage() - 1) * PAGE_SIZE) + 1 Shing --- [EMAIL PROTECTED] wrote: I *hope* there's a really straightforward answer to this and that I'm just a complete donkey for overlooking it, but. . . If you want to have a table that iterates over a List and (for example) spit out some properties of each element in the List, to wit: --- |Aaron | (202) 123-4567| --- |Bob | (202) 987-6543| --- etc.etc. That's really easy. But now say you want to just add an ordinal number as the first column of the table, like this: - | 1 | Aaron | (202) 123-4567| - | 2 | Bob | (202) 987-6543| - | 3 | etc. etc. That seems to be harder. The only way I see how to do it is to: A) Define a custom columnValue @Block B) Map that columnValue to some MyTable.java getOrdinal() method C) In my getOrdinal() method, get the Object associated with getTable().getTableRow(); D) Assume the source data for the Table is a java.util.List, use the List.indexOf() method on the Object from step (C) to figure out what element it is and return that int value as the ordinal Please tell me I'm a donkey... Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Home page : http://uk.geocities.com/matmsh/index.html Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic components from database
Hi, I'd like to create a tapestry page that contains component based on the user's settings that are stored in a database. So components should be created dynamically. There are many postings that suggest usage of RenderBody / RenderBlock combinations or usage of @If conditions. I don't like this Idea because this looks not very flexible. Is this something that is not possible at all (or not suggested) with tapestry? Is the @Delegator component a way to go ? How can I create a concrete instance of an abstract BaseComponent subclass ? Thanks for any clues. Moritz Gmelin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic components from database
In WebObjects, I think this is the WOSwitchComponent - where you can specify the component name to be rendered/substituted as a binding. I don't believe such a dynamic component exists in Tapestry. (In 3.x) I've resorted to @If / @If / @If .. to implement solution (bleh). I didn't try @Delegator. Please share if you find a smoother solution. Thanks-Matt On Nov 1, 2006, at 16:06 , Moritz Gmelin wrote: Hi, I'd like to create a tapestry page that contains component based on the user's settings that are stored in a database. So components should be created dynamically. There are many postings that suggest usage of RenderBody / RenderBlock combinations or usage of @If conditions. I don't like this Idea because this looks not very flexible. Is this something that is not possible at all (or not suggested) with tapestry? Is the @Delegator component a way to go ? How can I create a concrete instance of an abstract BaseComponent subclass ? Thanks for any clues. Moritz Gmelin - 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]
Simple table with SimpleSqlTableDataSource
Hi, I want to display the contents of a JDBC ResultSet with Tapestry. The most obvious examples would be to use a For to iterate over a Collection() type object. I'd rather not have to dump the result set into one large object like a List(), since it just seems inefficient, although I _would_ like the ability to make some summations on the column data. I don't need the sorting or paging capabilities of the Contrib:table right now. (The sorting and grouping has multiple arguments in the SQL, and even though the sorting feature would make sense to me, the users would get confused. =( ) Paging is not a requirement now, so I'd rather leave that out to keep things simple. Also, the SQL used to get the ResultSet is too complex for BIRT to handle efficiently, and sometimes I call stored procedures that return Ref Cursors (gasp). So I figured that since I could get the data into a ResultSet as sort of a common denominator, I should be able to get the data on the screen relatively easy. For the Contrib:table examples I've seen, I need to provide a number for the total number of rows. It would be nice if I didn't have to call a select count(), since the query takes long enough as it is. In my Googling, i came across javadocs for SimpleSqlTableDataSource, but I haven't seen any examples of how this might help my problem. For some more background, the app is for ~100 users, and each have ~80 of these data pages available to them, with different parameters. Thanks, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JOB] Tapestry Developer
Hi Steve, I need the job, please further explain on technology and project concerns. Let me tell you a little bit about my experience. I'm certified as SCJP 1.4. I have completed handful of projects with Tapestry 3 . All them using Hibernate. No real working experience with Spring but willing to learn. Also I'm a fan of rich content apps. AJAX: not Tacos but GWT. Please review my CV, then drop me an email if you feel I could be of any help. Regards, Omar Valerio M [EMAIL PROTECTED]On 11/1/06, Steve Motola [EMAIL PROTECTED] wrote:Current need for a Tapestry developer for client project.Familiarity with Tapestry 3 and 4.Versed in Hibernate and Spring.Tacos a plus.Send resumes and questions to [EMAIL PROTECTED]. Steve Motola[EMAIL PROTECTED](310) 422-5521The Lab, LLChttp://www.thelabllc.comContent is for intended recipient only. This message was sent using IMP, the Internet Messaging Program.- 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: [JOB] Tapestry Developer
Sorry List I somehow forget to change the recipient... :(