Re: Strange behaviour in tapestry app

2011-06-01 Thread Greg Pagendam-Turner
Thanks for reply. Looks the error was caused by a missing xmlsec-2.0. On 1/06/2011 9:17 PM, LLTYK wrote: Tapestry always rewrites page classes. I haven't had much trouble debugging them in in 5.2 though. 5.2.4 did the null variable thing, 5.2.5 'fixed' it. Stepping around in the debugger would

What to use for multiple select => (MultiplePropertySelect || Select with Multiple=true)

2011-06-01 Thread nazarhussain_s
Hi, Thanks Andreou, By adding that line my application is working fine. Any body please suggest How I must implement Multiple Select and What Component do I must use if there are more than 100+ options to be shown in a drop down. Can I use MultiplePropertySelection or ordinary Select

Re: Simpler Select configuration

2011-06-01 Thread Bob Harner
Inge, Interesting ideas. I agree that it would be nice to have a SelectModel created automatically from the parameters passed to the Select component. In fact, Select can do this already, with some limitations. That is, if you provide a property of type List for the "model" parameter (and don't pr

Re: Clean sheet security design suggestions?

2011-06-01 Thread Kalle Korhonen
Yeah, same here on JAAS - it's good for locking parts of the codebase if you really needed to but way too cumbersome for web app security. Heh, as the committer and maintainer both in Tynamo and Shiro, I kind of have to recommend them. Kalle On Wed, Jun 1, 2011 at 2:35 PM, Lenny Primak wrote: >

Re: Clean sheet security design suggestions?

2011-06-01 Thread Lenny Primak
The closest to CMA that I've used was JAAS. I didn't like it. Sounds like you are recommending tynamo and shiro. On Jun 1, 2011, at 5:19 PM, Kalle Korhonen wrote: > I see - should have said I assume you are using CMA. I'm biased of > course, but when ever I've used CMA, I've found it too cum

Re: Clean sheet security design suggestions?

2011-06-01 Thread Kalle Korhonen
I see - should have said I assume you are using CMA. I'm biased of course, but when ever I've used CMA, I've found it too cumbersome and limiting. Kalle On Wed, Jun 1, 2011 at 2:03 PM, Lenny Primak wrote: > Thanks!  I am not using CMA actually, it is JSP home-grown security, > which I am lookin

Re: Clean sheet security design suggestions?

2011-06-01 Thread Lenny Primak
Thanks! I am not using CMA actually, it is JSP home-grown security, which I am looking to replace. In your opinion, should I look use CMA or go with tynamo & shiro? I guess I can do a bake-off but I would rather not. On Jun 1, 2011, at 4:29 PM, Kalle Korhonen wrote: > The big three for Java ar

Re: Clean sheet security design suggestions?

2011-06-01 Thread Mark
Keep in mind that Tynamo's security package is Apache Shiro (http://shiro.apache.org/) with additions that make it easy to work with Tapestry. If you want something that isn't Tapestry specific, take a look at Shiro by itself. If you are wanting other Tapestry options, look at: http://code.google.

Re: Clean sheet security design suggestions?

2011-06-01 Thread Kalle Korhonen
The big three for Java are CMA (Container Managed Authentication) which you are using, Spring Security (ex-Acegi Security, Tapestry integration provided by tapestry-spring-security module) and Apache Shiro (ex-JSecurity, Tapestry integration provided by Tynamo's tapestry-security). I've spent more

Re: Clean sheet security design suggestions?

2011-06-01 Thread Lenny Primak
Thanks guys I'll definitely look at tynamo security. There is a lot of homegrown code in our implementation that feels like it should be a part of a framework that's already been written. I guess that tynamo security is that framework. Anything else I should be l should be looking at in this s

Re: Hibernate-Search

2011-06-01 Thread Mark
Thanks! On Wed, Jun 1, 2011 at 1:44 PM, Sven Homburg wrote: > thats my solution: > >        /** >         * build the full text session. >         * >         * @param logger                 the system logger >         * @param sessionManager hibernate session manager >         * >         * @ret

Re: Hibernate-Search

2011-06-01 Thread Sven Homburg
thats my solution: /** * build the full text session. * * @param logger the system logger * @param sessionManager hibernate session manager * * @return full text session */ @Scope(ScopeConstants.PERTHREA

Hibernate-Search

2011-06-01 Thread Mark
I'm working on a project where I want to user Hibernate-Search (uses lucene queries and analyzers for stemming, etc.). However, it appears that the session I'm getting from tapestry-hibernate is different enough that I can't use it to create a FullTextSearch. https://issues.apache.org/jira/browse

Re: Clean sheet security design suggestions?

2011-06-01 Thread Mark
Definitely look at Tynamo's tapestry-security which uses Shiro and the tynamo-federatedaccounts add on. I believe you can have multiple types of authentication simply by contributing different entity realms. It has built in support for Facebook and OpenId is coming. Mark On Wed, Jun 1, 2011 at 1

Re: Clean sheet security design suggestions?

2011-06-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Jun 2011 14:33:47 -0300, Lenny Primak wrote: My current project is to refresh a client's web site using tapestry. The web site currently uses JSP. We have a JEE/web service backend that uses JPA/EJB3.1 which we will continue to use. We now have a JEE based authorization service

Re: Component inheritance - Unable to locate method onAction...

2011-06-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Jun 2011 06:15:57 -0300, Markus Jung wrote: Hi, Hi! Unable to locate Method public java.lang.Object onActionFromLogout(): ... LayoutActiveSession.onActionFromLogout() What package is Layout in? What's the visibility of onActionFromLogout? By the way, why don't you use Ev

Component inheritance - Unable to locate method onAction...

2011-06-01 Thread Markus Jung
Hi, I have created a basic Layout component and template that contains a navigation menu containing a Logout ActionLink, the event handler is onActionFromLogout is defined in the Layout component. If a user has a active session and is authenticated I use a layout with a side bar that displays so

Clean sheet security design suggestions?

2011-06-01 Thread Lenny Primak
My current project is to refresh a client's web site using tapestry. The web site currently uses JSP. We have a JEE/web service backend that uses JPA/EJB3.1 which we will continue to use. We now have a JEE based authorization service API based on plain method calls now. What we want is to k

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
works now. thanks! On Wed, Jun 1, 2011 at 9:32 AM, Ray Nicholus wrote: > > > : > onchange="$('addToLightboxForm').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);" > value="selectedLightboxName" label="literal:Add To Lightbox"/> > > > > On the Java side: > > p

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
The form will change it's id on a zone update, so either manualy generate it or maybe do it like this @InjectComponent private Form addToLightboxForm; public String getAddToLightboxFormId(){ return addToLightboxForm.getClientId(); } and onchange="$('${addToLightboxFormId}').fire(Tapestry.FORM_

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
: On the Java side: public Object onSubmitFromAddToLightboxForm() { if (selectedLightboxName.equals(AddToLightboxModel.NEW_LIGHTBOX_NAME)) { return onAddToNewLightbox(); } onAddToLightbox(); return this; } On Wed, Jun 1, 2011 at 9:29 AM, dragan.sahpa

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
This is causing all sorts of other odd issues. First, the onSubmit for the form is only called occasionally now. I can't predict when it will and will not be called. On Wed, Jun 1, 2011 at 9:08 AM, dragan.sahpas...@gmail.com < dragan.sahpas...@gmail.com> wrote: > For example use it in a submit

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
It works good for me. Paste the entire code here. Cheers, Dragan Sahpaski On Wed, Jun 1, 2011 at 4:22 PM, Ray Nicholus wrote: > This is causing all sorts of other odd issues. First, the onSubmit for the > form is only called occasionally now. I can't predict when it will and > will > not be

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
For example use it in a submit element like this: onchange="$('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);" Cheers, Dragan Sahpaski On Wed, Jun 1, 2011 at 4:04 PM, Ray Nicholus wrote: > Thanks for the info. Where exactly do I put the javascript dragon listed? > > On Wed, Jun 1, 2011

Re: updating a zone on form submit

2011-06-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Jun 2011 10:51:09 -0300, Ray Nicholus wrote: I guess I'm not sure what zone I need to specify in the form tag or why I need to specify a zone at all. Tapestry only sets up an AJAX form submit if you use the zone parameter. When returning a MultiZoneUpdate, the value of this par

Re: updating a zone on form submit

2011-06-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Jun 2011 11:04:07 -0300, Ray Nicholus wrote: Thanks for the info. Where exactly do I put the javascript dragon listed? Recommended ways: in a .js file added to the page by @Import or via JavaScriptSupport.addScript(). -- Thiago H. de Paula Figueiredo Independent Java, Apach

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
Thanks for the info. Where exactly do I put the javascript dragon listed? On Wed, Jun 1, 2011 at 9:02 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 01 Jun 2011 10:51:09 -0300, Ray Nicholus > wrote: > > I guess I'm not sure what zone I need to specify in the form tag

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
I guess I'm not sure what zone I need to specify in the form tag or why I need to specify a zone at all. I only want to update a zone if one particular option in the form's Select component is selected. In fact, when a new item in the Select is selected, I am submitting the form via javascript (o

Re: updating a zone on form submit

2011-06-01 Thread Taha Tapestry
Is it an Ajax submission. Have u set zone parameter of form to a proper zone value Regards Taha Sent from my iPhone On Jun 1, 2011, at 7:09 PM, Ray Nicholus wrote: > Any idea how I can do this? When I return a MultiZoneUpdate from my submit > handler, I get the following exception: > > Retu

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
Probably the request is not ajax. You can do it like this, but don't forget to bind the zone parameter in the form $('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT); Cheers, Dragan Sahpaski On Wed, Jun 1, 2011 at 3:39 PM, Ray Nicholus wrote: > Any idea how I can do this? When I return a

updating a zone on form submit

2011-06-01 Thread Ray Nicholus
Any idea how I can do this? When I return a MultiZoneUpdate from my submit handler, I get the following exception: Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled.

Re: Who uses Tapestry ? ... eOfficeo!!!

2011-06-01 Thread mkariji
The english version is available at this address https://demo.officeo.fr/demo/332827 Best regrards 2011/5/13 mourad kariji > Hi , > Now you have a running demo application for eofficeo : * > https://demo.officeo.fr/demo* > The English version will be finished in a few weeks, but the current >

Re: Getting "Library 'contrib' not found in application namespace" Exception while using MultiplePropertySelection Component

2011-06-01 Thread Andreas Andreou
Do you have in your .application file? On Wed, Jun 1, 2011 at 15:33, nazarhussain_s wrote: > Hi, >        In my Home.html i am having a multi-select drop down. While running > the Application i am getting the following Exception > > [ +/- ] Exception: Library 'contrib' not found in applicatio

Getting "Library 'contrib' not found in application namespace" Exception while using MultiplePropertySelection Component

2011-06-01 Thread nazarhussain_s
Hi, In my Home.html i am having a multi-select drop down. While running the Application i am getting the following Exception [ +/- ] Exception: Library 'contrib' not found in application namespace. org.apache.hivemind.ApplicationRuntimeException location: context:/WEB-INF/Home.html,

Re: Strange behaviour in tapestry app

2011-06-01 Thread LLTYK
Tapestry always rewrites page classes. I haven't had much trouble debugging them in in 5.2 though. 5.2.4 did the null variable thing, 5.2.5 'fixed' it. Stepping around in the debugger would result in you finding code Tapestry added to your methods (logging at the start/end of a method if you used @

Needed a demo example for MultiplePropertySelection model

2011-06-01 Thread nazarhussain_s
Hi, Can anybody provide an example program/link of an example program demonstrating the MultiplePropertySelection Functionality. Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Needed-a-demo-example-for-MultiplePropertySelection-model-tp813p813.

Needed a demo example for MultiplePropertySelection model

2011-06-01 Thread nazarhussain_s
Hi, Can anybody provide a demo example for a MultiplePropertySelection mode example in Tapestry 4.0? Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Needed-a-demo-example-for-MultiplePropertySelection-model-tp809p809.html Sent from the Tapestry - U

Re: tapestry-security users: are you using shiro.ini?

2011-06-01 Thread Massimo Lusetti
On Wed, Jun 1, 2011 at 3:43 AM, Kalle Korhonen wrote: > FYI, this is implemented now. For the impatient, see Oh... this makes it a lot more desirable, thanks Tynamo team. Cheers -- Massimo http://meridio.blogspot.com - To uns

Re: [Slightly OT] Jetty "manager"/deployer

2011-06-01 Thread Massimo Lusetti
On Wed, Jun 1, 2011 at 6:20 AM, Mark wrote: > The cargo plugin for tomcat makes it easy to redeploy from the command line. > I think it works with jetty to. ... Wasn't aware of Cargo. It seems to do what I need and it use a "standard web application" to do so plus a combination of java api, ant