Re: T5: access control (again)
On Jan 6, 2008 10:29 AM, Chris Lewis [EMAIL PROTECTED] wrote: I remember reading in the acegi docs that it was possible to swap-out the usage of spring. I feel like you'll find it's not too difficult to do. I realize I say this out of ignorance but T5 IoC is quite easy to get your head around, and as you know your way around spring and acegi... Anyway, thanks for the input and do let me know how you find it. My acegi package tapestry5-acegi, doesn't require any knowledge or explicit use of spring. Yes, acegi uses spring internally, but it's completely transparent from the developer if they choose not to use spring. As far as the documentation is lacking, I agree, but there should be enought information on the wiki and webpage to get you started. http://www.localhost.nu/java/tapestry5-acegi -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: access control (again)
I understand - I have looked through the tapestry-acegi wiki and the site, and they only talk about the T5 side (where as you agreed that the docs are lacking, your are right in that they are sufficient). Where I'm lost is how to set up acegi, how its invocations work, what the schema requirements are, how its loaded, etc etc. The acegi site clearly says spring can be removed from acegi, but it basically says that would be dumb, and of course says you must know spring to follow the docs. That's seems a bit circular. Of course the response could be that I'm too lazy to learn spring and perhaps that'd be somewhat water proof. I'd word it by saying I have no legitimate need and zero interest in learning spring - I want access control, not another ioc container. Let me close by clarifying my tone as I've been told I come across as harsh. I am not bashing spring, acegi, or the tapestry integration. What I am saying is that as a developer with no use for spring, using the t5 acegi module appears to be a bad choice for me as I do not know acegi at all, and learning it, by way of transitive dependencies, requires me to learn spring. chris Robin Helgelin wrote: On Jan 6, 2008 10:29 AM, Chris Lewis [EMAIL PROTECTED] wrote: I remember reading in the acegi docs that it was possible to swap-out the usage of spring. I feel like you'll find it's not too difficult to do. I realize I say this out of ignorance but T5 IoC is quite easy to get your head around, and as you know your way around spring and acegi... Anyway, thanks for the input and do let me know how you find it. My acegi package tapestry5-acegi, doesn't require any knowledge or explicit use of spring. Yes, acegi uses spring internally, but it's completely transparent from the developer if they choose not to use spring. As far as the documentation is lacking, I agree, but there should be enought information on the wiki and webpage to get you started. http://www.localhost.nu/java/tapestry5-acegi
Re: T5: access control (again)
On Jan 6, 2008 11:35 AM, Chris Lewis [EMAIL PROTECTED] wrote: Let me close by clarifying my tone as I've been told I come across as harsh. I am not bashing spring, acegi, or the tapestry integration. What I am saying is that as a developer with no use for spring, using the t5 acegi module appears to be a bad choice for me as I do not know acegi at all, and learning it, by way of transitive dependencies, requires me to learn spring. I can't disagree with that, it's true :). However, I'm glad to help with adding things to the acegi module that will make things even easier, so that you don't have to look at spring at all. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] disable form validation
hi all, is there a way to disable form validation. i got some address editing component, whose fields are set disabled using a parameter. when the component is set to disabled and it's just used for displaying data, the text fields still perform validation. I'd like to disable the validation, because the user could not make changes to the fields anyways... any ideas? ty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] disable form validation
Hi Harald, i had an issue like this, for cancel button in form. (there is no need to validation when cancel button clicked) i changed my button like this : input type=button value=${message:cancel} onclick=location.href='list';/ you can use some way like this On Jan 6, 2008 5:25 PM, Harald Graf [EMAIL PROTECTED] wrote: hi all, is there a way to disable form validation. i got some address editing component, whose fields are set disabled using a parameter. when the component is set to disabled and it's just used for displaying data, the text fields still perform validation. I'd like to disable the validation, because the user could not make changes to the fields anyways... any ideas? ty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi
Re: T5: access control (again)
Ok :-). Here's my wish list: 1. Remove Spring as a dependency. However stupid this is according to the Spring developers, it would be valuable to me (and I;m sure others like me). Apparently this isn't too difficult to do: http://www.acegisecurity.org/standalone.html 2. Provide some kind of quick start that includes what you shared in the wiki, but also covers getting acegi bootstrapped properly (schema, etc etc). Of course the line between what you should provide and what is already provided is a bit blurry. I've started reading through http://www.acegisecurity.org/guide/springsecurity.html, which covers pretty much everything from A-Z. The unfortunate part, and unfortunately unexpected given java's rep, is that it is so complex and verbose. I don't personally think that implementing a simple but secure authentication system with users and roles has to be so complicated. Again it's clearly not your job to document acegi, but a simple quick start or common use case would get us close to not needing spring docs, or require us to digest the whole acegi manual. My 2 cents. Thanks for listening and contributing. chris Robin Helgelin wrote: On Jan 6, 2008 11:35 AM, Chris Lewis [EMAIL PROTECTED] wrote: Let me close by clarifying my tone as I've been told I come across as harsh. I am not bashing spring, acegi, or the tapestry integration. What I am saying is that as a developer with no use for spring, using the t5 acegi module appears to be a bad choice for me as I do not know acegi at all, and learning it, by way of transitive dependencies, requires me to learn spring. I can't disagree with that, it's true :). However, I'm glad to help with adding things to the acegi module that will make things even easier, so that you don't have to look at spring at all.
T5 Grid How to show embedded property-values?
Hi all, How is it possible to show properties of embedded objects in a grid? Example: class Master { String name; Slave slave; } class Slave { String name; Date enslaved; } The grid should show: Name (master) - Name (slave) - Date enslaved When I constuct a BeanModel for this with fieldnames like String[] {name, slave.name, slave.enslaved} ist doesn't work and I could not find an easy way to combine BeanModels for Master and Slave. Is there any possibility not using Transfer-Objects? Regards, Otho
Re: T5 Grid How to show embedded property-values?
That's supposed to work. Please show more of your code. On Jan 6, 2008 7:48 AM, Otho [EMAIL PROTECTED] wrote: Hi all, How is it possible to show properties of embedded objects in a grid? Example: class Master { String name; Slave slave; } class Slave { String name; Date enslaved; } The grid should show: Name (master) - Name (slave) - Date enslaved When I constuct a BeanModel for this with fieldnames like String[] {name, slave.name, slave.enslaved} ist doesn't work and I could not find an easy way to combine BeanModels for Master and Slave. Is there any possibility not using Transfer-Objects? Regards, Otho -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does tapestry provide UI composition/layout solution?
Hi, Can somebody direct me to the relevant doc or examples that demonstrate the UI composition (similar to tiles or facelets) capability for both Tapestry 4 and 5. I am about to convert an existing tiles based application as part of the WEB MVC framework evaluation process and this is the first thing that got me stumbled. Thanks, Xiaohong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Grid How to show embedded property-values?
I created a service to create beanmodels like this: public class BeanModelHelperImpl implements BeanModelHelper { /** * Create a BeanModel for a class from an ordered array of * Strings for the fieldnames. * * @param clazz the class for which the model is to be built * @param fields the Fieldnames * @return the created BeanModel */ public BeanModel createBeanModel(Class clazz, String[] fields, BeanModelSource beanModelSource, ComponentResources componentResources) { HashSetString fieldNames = new HashSetString(); for (String s : fields) { fieldNames.add(s.toLowerCase()); } BeanModel beanModel = beanModelSource.create(clazz, false, componentResources); ListString actualProperties = beanModel.getPropertyNames(); for (String s : actualProperties) { if (!fieldNames.contains(s.toLowerCase())) beanModel.remove(s); } beanModel.reorder(fields); return beanModel; } } If I call this with a line like Beanmodel model = beanModelHelper.createBeanModel(Master.class, new String[]{name,slave.name,slave.enslaved, source, resources); an exception is thrown: Bean editor model for entities.Master does not contain a property named 'slave'. Available properties: name. This is to be expected since the beanModel created by the beanModelSource contains only the primitive (and Date) properties of any given class it seems, so when I have a property which itself is a class with primitive properties as in the example there seems to be no easy way get these into a BeanModel save by creating a new class with the needed properties as a kind of transferobject.
T5 How to bypass TapestryFilter?
Hi guys I have a protected folder /private under the root but inside the folder i am only going to serve static contents like images and pdf but when i try to access the resource /myApp/private/images/1.jpg i got an exception saying there is no such page Unable to resolve 'private/images/1' to a known page name. how to bypass the TapestryFilter? juz let the tomcat handle the request as per normal ??? thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry Contrib Table to MS-Excel
I have one tapestry page in which i am using Tapestry's Contrib Table which contains some data. Now i want to export this table/data to MS-Excel file using a button. How to do this pls help me by sending a code for the same. -- View this message in context: http://www.nabble.com/Tapestry-Contrib-Table-to-MS-Excel-tp14659255p14659255.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 and Acegi
Dear all, Has anyone integrated T5 with Acegi already? Can use the default configuration from Acegi, or do we need to add additional configurations? Thanks in advance -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 How to bypass TapestryFilter?
there are few ways.. one is to extend tapestryFilter and use that version in web.xml Davor Hrg On Jan 7, 2008 6:21 AM, Dapeng [EMAIL PROTECTED] wrote: Hi guys I have a protected folder /private under the root but inside the folder i am only going to serve static contents like images and pdf but when i try to access the resource /myApp/private/images/1.jpg i got an exception saying there is no such page Unable to resolve 'private/images/1' to a known page name. how to bypass the TapestryFilter? juz let the tomcat handle the request as per normal ??? thx - 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: T5 and Acegi
there is a module: quote: - I was looking at various solutions to this and found the Tapestry 5 acegi library, http://www.localhost.nu/java/tapestry5-acegi/ It has a really nice secured annotation to do a similar thing e.g. @Secured(ROLE_ADMIN) public class AdminPage { } end quote--- search mailing list for some discussions, they might be helpful Davor Hrg On Jan 7, 2008 8:06 AM, Joshua Jackson [EMAIL PROTECTED] wrote: Dear all, Has anyone integrated T5 with Acegi already? Can use the default configuration from Acegi, or do we need to add additional configurations? Thanks in advance -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.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]
What's heartbeat ?
Hi list, As I start to read the code on components I often see heartbeat @Environmental private Heartbeat heartbeat; with heartbeat.begin and heartbeat.end Can someone explain the role of this object and its methods invocations (begin and end) beacause it's not really clear in my mind. Thanks a lot. -- Michael Courcy http://courcy.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]