Re: Tapestry 5.1.0.5 and HTML 5 Doctype
Hi Benny, In order to use html5 in our Web Mobile Solution, I have ask Robin to work on html5 compatibility last year. He had post our feedback in the mailing list. The thread is here http://tapestry.1045711.n5.nabble.com/State-on-HTML5-integration-woodstox-rollback-td2470926.html I suggest you also to have a look on the related Jira https://issues.apache.org/jira/browse/TAP5-840 If you don't want to patch Tapestry, you have to know that currently most of modern browser run html5 tag even if you are not using !DOCTYPE html. For client side detection Modernizr http://www.modernizr.com/%20is very fine. 2011/1/12 Benny Law benny.mk@gmail.com I am trying to convert my pages to HTML5 but am having problem getting the correct DOCTYPE to be output. The !DOCTYPE html I put in the .tml file is ignored, and the generated HTML code has no DOCTYPE. I'm interested in how people are working around this. Thanks. Benny
Re: Discussion- the verdict
Hi Guys, I gave up on Tapestry. This was based on the overwhelmingly negative comments I've been reading about Tapestry on the Internet. Outside of this forum, I see no positive message about Tapestry anywhere. And that makes me very suspicious about the viability of this framework, besides all the nice and charming messages I have heard from you guys in this thread. So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Again, sorry for this news :-( Bye, George On Tue, Dec 21, 2010 at 11:48 AM, George Banus georgeba...@gmail.comwrote: Hi, I am a newbie to Tapestry and while googling to learn more about tapestry, I found this discussion going on at http://www.theserverside.com/news/thread.tss?thread_id=61537. Some of the comments look very disappointing. Is Tapestry really used for serious projects? George
Re: Discussion- the verdict
George that's your problem not ours .. And the title verdict indicates that you have som legal authority ... I think we T5:ers have a competitive advantage and really see no need for spreading the light ... :-) T5 - Code less - Deliver more One could add Gossip less and shut down TSS Gunnar Eketrapp 2011/1/12 George Banus georgeba...@gmail.com Hi Guys, I gave up on Tapestry. This was based on the overwhelmingly negative comments I've been reading about Tapestry on the Internet. Outside of this forum, I see no positive message about Tapestry anywhere. And that makes me very suspicious about the viability of this framework, besides all the nice and charming messages I have heard from you guys in this thread. So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Again, sorry for this news :-( Bye, George On Tue, Dec 21, 2010 at 11:48 AM, George Banus georgeba...@gmail.com wrote: Hi, I am a newbie to Tapestry and while googling to learn more about tapestry, I found this discussion going on at http://www.theserverside.com/news/thread.tss?thread_id=61537. Some of the comments look very disappointing. Is Tapestry really used for serious projects? George -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Discussion- the verdict
George, we wish you a nice journey with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2011/1/12 George Banus georgeba...@gmail.com: Hi Guys, I gave up on Tapestry. This was based on the overwhelmingly negative comments I've been reading about Tapestry on the Internet. Outside of this forum, I see no positive message about Tapestry anywhere. And that makes me very suspicious about the viability of this framework, besides all the nice and charming messages I have heard from you guys in this thread. So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Again, sorry for this news :-( Bye, George On Tue, Dec 21, 2010 at 11:48 AM, George Banus georgeba...@gmail.comwrote: Hi, I am a newbie to Tapestry and while googling to learn more about tapestry, I found this discussion going on at http://www.theserverside.com/news/thread.tss?thread_id=61537. Some of the comments look very disappointing. Is Tapestry really used for serious projects? George - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [ANN] A Tapestry5 Based Security Module
Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.comwrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.comwrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner
Re: Discussion- the verdict
On Wed, 12 Jan 2011 08:53:41 -0200, George Banus georgeba...@gmail.com wrote: Hi Guys, Hi! So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Please check the stability and consistency of all releases since Tapestry 5.1, the first T5 stable release. And don't believe everything you read on in the Internet. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [ANN] A Tapestry5 Based Security Module
Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Discussion- the verdict
Thiago, don't waste your time. Most probably the guy is yet another troll. He wrote 2 messages to the list: both about the TSS thread. On Wed, Jan 12, 2011 at 12:50 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 12 Jan 2011 08:53:41 -0200, George Banus georgeba...@gmail.com wrote: Hi Guys, Hi! So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Please check the stability and consistency of all releases since Tapestry 5.1, the first T5 stable release. And don't believe everything you read on in the Internet. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko http://tapestry5.de
Re: [ANN] A Tapestry5 Based Security Module
Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.comwrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Discussion- the verdict
Hi Igor We should answer these threads as these threads come up in search engines when some newbie is searching tapestry related information. It is threads like these which prevented me from considering Tapestry in my projects for so long. regards Taha On Wed, Jan 12, 2011 at 6:08 PM, Igor Drobiazko igor.drobia...@gmail.comwrote: Thiago, don't waste your time. Most probably the guy is yet another troll. He wrote 2 messages to the list: both about the TSS thread. On Wed, Jan 12, 2011 at 12:50 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 12 Jan 2011 08:53:41 -0200, George Banus georgeba...@gmail.com wrote: Hi Guys, Hi! So, I'm sorry I have to say that I'm saving my time and effort in learning Tapestry for something else. This is my decision for now, though I might change it in 3 or 4 years time after I notice some stability and consistencies in Tapestry releases. Please check the stability and consistency of all releases since Tapestry 5.1, the first T5 stable release. And don't believe everything you read on in the Internet. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko http://tapestry5.de
Re: [ANN] A Tapestry5 Based Security Module
No, it can't. Role model is not enough here. I don't want _any_ manger to update _any_ foo instance. I want that *only manager created the foo instance* could update it. Can I do that with your lib? On Wed, Jan 12, 2011 at 16:04, Taha Hafeez tawus.tapes...@gmail.com wrote: Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: [ANN] A Tapestry5 Based Security Module
Will this work interface BuisnessObject { public String getOwner(); } class Foo implements BusinessObject { } class BusinessObjectVoter extends AuthorityVoterBusinessVoter { public void vote(Subject, Object object, Vote vote){ if(object instanceof BuisnessObject){ BusinessObject bs = (BusinessObject)object; if(bs.getOwner().equals(subject.getName()){ vote.allow(); }else { vote.deny(); } } } public boolean supports(Object object){ return object instanceof BusinessObject; } } regards Taha On Wed, Jan 12, 2011 at 6:58 PM, Dmitry Gusev dmitry.gu...@gmail.comwrote: No, it can't. Role model is not enough here. I don't want _any_ manger to update _any_ foo instance. I want that *only manager created the foo instance* could update it. Can I do that with your lib? On Wed, Jan 12, 2011 at 16:04, Taha Hafeez tawus.tapes...@gmail.com wrote: Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: [ANN] A Tapestry5 Based Security Module
Yes, I guess it might work. Do you already have AuthorityVoter support? On Wed, Jan 12, 2011 at 16:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Will this work interface BuisnessObject { public String getOwner(); } class Foo implements BusinessObject { } class BusinessObjectVoter extends AuthorityVoterBusinessVoter { public void vote(Subject, Object object, Vote vote){ if(object instanceof BuisnessObject){ BusinessObject bs = (BusinessObject)object; if(bs.getOwner().equals(subject.getName()){ vote.allow(); }else { vote.deny(); } } } public boolean supports(Object object){ return object instanceof BusinessObject; } } regards Taha On Wed, Jan 12, 2011 at 6:58 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: No, it can't. Role model is not enough here. I don't want _any_ manger to update _any_ foo instance. I want that *only manager created the foo instance* could update it. Can I do that with your lib? On Wed, Jan 12, 2011 at 16:04, Taha Hafeez tawus.tapes...@gmail.com wrote: Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Tapestry 5.1.0.5 and HTML 5 Doctype
Hi François, Thanks for the info. I am aware of TAPS-840 but haven't studied the patch. It looks like that's the only solution for now. Without !DOCTYPE html, Firefox 3.6 renders the page in Quirks mode instead of Standards compliance mode, and I have already noticed some minor issues. I hope this patch gets integrated with Tapestry soon. Benny 2011/1/12 François Facon francois.fa...@atosorigin.com Hi Benny, In order to use html5 in our Web Mobile Solution, I have ask Robin to work on html5 compatibility last year. He had post our feedback in the mailing list. The thread is here http://tapestry.1045711.n5.nabble.com/State-on-HTML5-integration-woodstox-rollback-td2470926.html I suggest you also to have a look on the related Jira https://issues.apache.org/jira/browse/TAP5-840 If you don't want to patch Tapestry, you have to know that currently most of modern browser run html5 tag even if you are not using !DOCTYPE html. For client side detection Modernizr http://www.modernizr.com/%20is very fine. 2011/1/12 Benny Law benny.mk@gmail.com I am trying to convert my pages to HTML5 but am having problem getting the correct DOCTYPE to be output. The !DOCTYPE html I put in the .tml file is ignored, and the generated HTML code has no DOCTYPE. I'm interested in how people are working around this. Thanks. Benny
Re: [ANN] A Tapestry5 Based Security Module
yes there is. I am working on a tutorial about this module taha On Wed, Jan 12, 2011 at 7:15 PM, Dmitry Gusev dmitry.gu...@gmail.comwrote: Yes, I guess it might work. Do you already have AuthorityVoter support? On Wed, Jan 12, 2011 at 16:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Will this work interface BuisnessObject { public String getOwner(); } class Foo implements BusinessObject { } class BusinessObjectVoter extends AuthorityVoterBusinessVoter { public void vote(Subject, Object object, Vote vote){ if(object instanceof BuisnessObject){ BusinessObject bs = (BusinessObject)object; if(bs.getOwner().equals(subject.getName()){ vote.allow(); }else { vote.deny(); } } } public boolean supports(Object object){ return object instanceof BusinessObject; } } regards Taha On Wed, Jan 12, 2011 at 6:58 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: No, it can't. Role model is not enough here. I don't want _any_ manger to update _any_ foo instance. I want that *only manager created the foo instance* could update it. Can I do that with your lib? On Wed, Jan 12, 2011 at 16:04, Taha Hafeez tawus.tapes...@gmail.com wrote: Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: [ANN] A Tapestry5 Based Security Module
This is cool, I'd like to try it. On Wed, Jan 12, 2011 at 17:47, Taha Hafeez tawus.tapes...@gmail.com wrote: yes there is. I am working on a tutorial about this module taha On Wed, Jan 12, 2011 at 7:15 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Yes, I guess it might work. Do you already have AuthorityVoter support? On Wed, Jan 12, 2011 at 16:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Will this work interface BuisnessObject { public String getOwner(); } class Foo implements BusinessObject { } class BusinessObjectVoter extends AuthorityVoterBusinessVoter { public void vote(Subject, Object object, Vote vote){ if(object instanceof BuisnessObject){ BusinessObject bs = (BusinessObject)object; if(bs.getOwner().equals(subject.getName()){ vote.allow(); }else { vote.deny(); } } } public boolean supports(Object object){ return object instanceof BusinessObject; } } regards Taha On Wed, Jan 12, 2011 at 6:58 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: No, it can't. Role model is not enough here. I don't want _any_ manger to update _any_ foo instance. I want that *only manager created the foo instance* could update it. Can I do that with your lib? On Wed, Jan 12, 2011 at 16:04, Taha Hafeez tawus.tapes...@gmail.com wrote: Can't that be achieved by securing service/dao methods @RequiresLogin public interface FooDAO { @RequiresRole(ADMIN) public void add(Foo foo); @RequiresRole(MANAGER) public void update(Foo foo); } regards Taha On Wed, Jan 12, 2011 at 5:25 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi Is it possible using your library to implement security assertions based on business rules? For instance, only allow object owner or admins to edit this object? On Wed, Jan 12, 2011 at 14:38, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I have made a number of changes in the project to support @Requires* annotations. There is support for voting and adding new voters and providers. Adding custom annotation is also very easy. There is also support for regular-expression based page-authorization if you don't like annotations or like to keep security in AppModule only It is an example of how easy tapestry5 is. Even implementing a full authorization module is so easy!!! The link is http://code.google.com/p/tapestryauth http://code.google.com/p/tapestryauth regards Taha On Fri, Dec 31, 2010 at 12:01 AM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi Werner I think it can be... It can act as a tapestry-layer over any security/authentication framework... Will try to add an example for such a use but overall I want this as a standalone role-based access and permission-based access model for tapestry which is apt for small projects and can be extended to larger projects too.. But any suggestions will be more than helpful and especially corrections and criticism,,, regards Taha On Thu, Dec 30, 2010 at 11:47 PM, Werner Keil werner.k...@gmail.com wrote: Hi, Is this related or may be used with SSO technologies like OpenID, SAML or OAuth? Werner -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Tapestry5 and pop-up parameters
Thank you this works... Sorry i am stupid in java advance class usage, but what abaout strange behaviour @InjectPage private Sign sign; sign.setReturnPage(Failid); sign.setSeisund(FAILID); return linkSource.createPageRenderLink(Sign.class); And if i use so then Sign.class is some as priavte Sign sign. WHY ? And why i cant use just return linkSource.createPageRenderLink(sign); [javac] G:\digileping\arendus5_1_0_5\digileping\src\ee\softpro\pages\Failid.java:486: cannot find symbol [javac] symbol : method createPageRenderLink(ee.softpro.pages.Sign) [javac] location: interface org.apache.tapestry5.services.PageRenderLinkSource [javac] return linkSource.createPageRenderLink(sign); i got error. Argo 2011/1/11 Josh Canfield joshcanfi...@gmail.com There isn't much information in your request so I'm not going to write a book guessing every possible thing you might be talking about. If you know the parameters that you want to pass when you are rendering the page that opens the popup then you can use something like: @Inject PageRenderLinkSource linkSource; public String getPopupLink() { return linkSource.createPageRenderLinkWithContext(pagename, param1, param2); // to create the link } script window.open('${popuplink}'); /script I haven't compiled/run this code so please forgive typos etc. Josh On Tue, Jan 11, 2011 at 3:58 AM, Argo Vilberg wilps...@gmail.com wrote: hi, How to add parameters into Tapetstry page java object if i open page with javascript pop-up windows ? Argo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry5 and pop-up parameters
And if i use so then Sign.class is some as priavte Sign sign. WHY ? @InjectPage grabs the page from a request level cache. This means that no matter how many times or in how many components you inject a page you get the same instance for the entire request (within the same thread). When the PageRenderLinkSource grabs the page via its class it is getting the same instance you injected in your page/component/service. It's important to remember that each time you call createPageRenderLink, without a context or setting override to true, the page you are referring to is passivated (onPassivate() is called). This means that you get a link to the page that represents it's current state. This is also true when you use the t:pagelink component in your templates, not binding a context attribute tells the page to passivate. And why i cant use just return linkSource.createPageRenderLink(sign); Considering how @InjectPage works I'm guessing that the API isn't there because it doesn't add value. Josh On Wed, Jan 12, 2011 at 10:45 AM, Argo Vilberg wilps...@gmail.com wrote: Thank you this works... Sorry i am stupid in java advance class usage, but what abaout strange behaviour @InjectPage private Sign sign; sign.setReturnPage(Failid); sign.setSeisund(FAILID); return linkSource.createPageRenderLink(Sign.class); And if i use so then Sign.class is some as priavte Sign sign. WHY ? And why i cant use just return linkSource.createPageRenderLink(sign); [javac] G:\digileping\arendus5_1_0_5\digileping\src\ee\softpro\pages\Failid.java:486: cannot find symbol [javac] symbol : method createPageRenderLink(ee.softpro.pages.Sign) [javac] location: interface org.apache.tapestry5.services.PageRenderLinkSource [javac] return linkSource.createPageRenderLink(sign); i got error. Argo 2011/1/11 Josh Canfield joshcanfi...@gmail.com There isn't much information in your request so I'm not going to write a book guessing every possible thing you might be talking about. If you know the parameters that you want to pass when you are rendering the page that opens the popup then you can use something like: @Inject PageRenderLinkSource linkSource; public String getPopupLink() { return linkSource.createPageRenderLinkWithContext(pagename, param1, param2); // to create the link } script window.open('${popuplink}'); /script I haven't compiled/run this code so please forgive typos etc. Josh On Tue, Jan 11, 2011 at 3:58 AM, Argo Vilberg wilps...@gmail.com wrote: hi, How to add parameters into Tapetstry page java object if i open page with javascript pop-up windows ? Argo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 as document management system
I have just one question? Does anyone suggest me how to build DMS in T5? For example: On server side i have DB (Postgres) and i am storing files (pdf, doc, ods, jpg, all) in a Blob. Now, i want to show these files in client side (browser), but not in default viewer, but in some viewer which is embeded on the T5 page. How can i do this? Thanks... -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-as-document-management-system-tp3338936p3338936.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
On Wed, 12 Jan 2011 19:29:55 -0200, stipenovi stipenovok...@gmail.com wrote: I have just one question? Does anyone suggest me how to build DMS in T5? For example: On server side i have DB (Postgres) and i am storing files (pdf, doc, ods, jpg, all) in a Blob. Now, i want to show these files in client side (browser), but not in default viewer, but in some viewer which is embeded on the T5 page. How can i do this? I can't see how this question is specifically for Tapestry instead of being a generic one about web development in Java in general. The problem here, as far as I can see, is how to provide the viewing part. Do you have any viewer in mind? PDFBox can render PDF to images. JPG, PNG, GIF, BMP and SVG are already handled by all decent browsers (IE doesn't handle SVG yet, not a decent browser). For them, create a page that returns a StreamResponse on its onActivate() method. I have no idea of viewers for Word and ODF files. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry Devs in the Portland, OR area
Any *other* Tapestry users in the Portland, OR area? I have some leads into an interesting position at a local green company. -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: T5 as document management system
You can run openoffice headless (without gui) on a web server and it works as a service that can convert documents from one format to another - lets say doc to pdf. You can run firefox headless to render a webpage to virtual framebuffer. And in unix world there are many binary tools that can be used in the background to process files so probably there will be some tool to extract the text to create a description, to render page by page into jpeg, to ocr an image into text etc... Many opensource DMS work in this way ... investigate on it. Learn how they do it. -original message- From: Thiago H. de Paula Figueiredo method. I have no idea of viewers for Word and ODF files. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
Thanks for prev. answer. You are right - it is both generic an T5 question for me. I was wondering is there some API for T5 similar to googleDocs, so i can manipulate with rendered stream? Thing is that user when see image/pdf must not have option to RightClick and for example do Copy, if this is an image, he can just see picture and read document, no printing, no nothing... -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-as-document-management-system-tp3338936p3339091.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
On Wed, 12 Jan 2011 21:29:34 -0200, stipenovi stipenovok...@gmail.com wrote: Thanks for prev. answer. You are right - it is both generic an T5 question for me. I was wondering is there some API for T5 similar to googleDocs, so i can manipulate with rendered stream? You're talking about very different things here. T5 is a web framework, while Google Docs is a web site, a web app. On the other hand, if there's a Java package out there that has similar features to Google Docs, it will probably be easy to use inside T5. Thing is that user when see image/pdf must not have option to RightClick and for example do Copy, if this is an image, he can just see picture and read document, no printing, no nothing... I'm not following you. Do you want your users to be able to copy content text or not? Even if a document is converted to images, you can still print it from your browser. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org