Re: Delete confirmation with beaneditform

2011-07-25 Thread Thiago H. de Paula Figueiredo
On Mon, 25 Jul 2011 23:29:20 -0300, TG wrote: I use beaneditform to generate my CRUD UI and web tiers automagically. I would like to have Delete action prompt me to confirm or cancel the action, no customization required, plain confirmation box. Most of what you want is done by using a Bean

Delete confirmation with beaneditform

2011-07-25 Thread TG
I use beaneditform to generate my CRUD UI and web tiers automagically. I would like to have Delete action prompt me to confirm or cancel the action, no customization required, plain confirmation box. I saw some threads in this forum, it does not seem to have any one link annotation or codes that ca

Re: tapestry-security and sso

2011-07-25 Thread Nicolas Barrera
Thanks clement, will take it into account when implementing sso (although that would be in some time from here) cheers all and thanks again! Nicolás.- 2011/7/22 Clément OUDOT > 2011/7/22 Nicolas Barrera : > > Hi, > > > > just wondered... (nothing concrete) > > > > about a tapestry app implem

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread George Christman
As Taha indicated, you probable should use PageRenderLinkSource instead of LinkSource. Good luck! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beginner-needs-help-with-PageActivationContext-and-page-navigation-in-Tapestry-tp4631566p4632134.html Sent from the Tapestry -

Re: running Tapestry on Google App Engine

2011-07-25 Thread mat --
Hi there, That was a quick answer :-) For some reasons, I was able to build, but not run tynamo-example-federatedaccounts I was more lucky with tynamo-example-conversations --indeed runs well on GAE. Thanks a lot, Kalle! Mat On Mon, Jul 25, 2011 at 8:45 PM, Kalle Korhonen wrote: > 5.2.x runs on G

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Julien Martin
It works. Thanks, J. 2011/7/25 George Christman > opps my bad, try this > >import org.apache.tapestry5.Link; > >@Inject >private LinkSource linkSource; > >Link onActionFromModify(String contextId) { > Link link = linkSource.createPageRenderLinkWithContext(Index.class, > con

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread George Christman
opps my bad, try this import org.apache.tapestry5.Link; @Inject private LinkSource linkSource; Link onActionFromModify(String contextId) { Link link = linkSource.createPageRenderLinkWithContext(Index.class, contextId); return link; } -- View this message in c

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Taha Hafeez
Hi Julien LinkSource is an internal serivce, you should use PageRenderLinkSource http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLinkWithContext(java.lang.Class, java.lang.Object...) regards Taha On Tue, Jul 26, 2011 at 12:22

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Julien Martin
Hello George, It seems this method does not exist... See here: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/internal/services/LinkSource.html Regards, Julien. 2011/7/25 George Christman > I think something like this might do the trick. > > @Inject > private LinkSource _linkSo

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread George Christman
I think something like this might do the trick. @Inject private LinkSource _linkSource; Class onActionFromModify(String contextId) { return linkSource.createPageRenderLinkWithContext(YourClass.class, contextId); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/B

Re: Issue with configuration of IDE used for a Tapestry project

2011-07-25 Thread Julien Martin
thanks for your reply Josh. 2011/7/21 Josh Canfield > >For instance I have a beaneditform in one of my > > templates and I can't use auto-completion for some of the attribute i.e. > the > > *clientValidation* attribute. > > I don't think the Intellij plugin is sophisticated enough to do that > k

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Julien Martin
Actually, I am not sure how to to it you way Igor. Here is what I tried: * @OnEvent(value = EventConstants.ACTION, component = "modify") Object modifyJobPosting() { return componentResources.createEventLink(EventConstants.ACTION, jobPosting); } * *modify2* However I know it does not make sense.

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Julien Martin
Thanks to both of you. @NilleHammer: it works with the page link. Thanks. @Igor: if I want to follow your suggestion, can I still use an actionLink or do I need an Eventlink instead? J. 2011/7/25 nillehammer > Me again, I have a typo in the pagelink (damn copy and paste). The value > for > the

Re: running Tapestry on Google App Engine

2011-07-25 Thread Kalle Korhonen
5.2.x runs on GAE without issues, a few Tynamo (http://tynamo.org) examples are deployed there. Use the maven-gae-plugin to deploy (assuming you are using Maven), for example see http://svn.codehaus.org/tynamo/trunk/tynamo-example-federatedaccounts/pom.xml. Kalle On Mon, Jul 25, 2011 at 10:37 AM

running Tapestry on Google App Engine

2011-07-25 Thread mat --
Hello, Can recent versions of Tapestry be deployed on Google App Engine? This page http://code.google.com/p/googleappengine/wiki/WillItPlayInJava lists 5.0.18 version as compatible and 5.1 version as incompatible with GAE. I was told that Tapestry has a few configuration options that need to be

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread nillehammer
Me again, I have a typo in the pagelink (damn copy and paste). The value for the context parameter must be "jobPosting" of course. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beginner-needs-help-with-PageActivationContext-and-page-navigatio

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Igor Drobiazko
Returning page's class in a handler method you tell Tapestry where to navigate to, but yor target page needs a context. Just create a Link with context and return it instead of class. 25.07.2011, в 19:06, Julien Martin написал(а): Hello, I have a page that lists job postings (beans) as fo

Re: Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread nillehammer
Hi Julien, to call your ModifyJobPosting page from JobPostingsTable page use a page link instead of an action link. The template would look like: modify This makes the method modifyJobPosting redundant. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.na

Beginner needs help with PageActivationContext and page navigation in Tapestry

2011-07-25 Thread Julien Martin
Hello, I have a page that lists job postings (beans) as follows: Template: *http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> activate modify * Java

Re: Error page recipe not working anymore after update to t5.2.6

2011-07-25 Thread nillehammer
I think, in the version you updated from there was no index page but still the start page mechanism. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Error-page-recipe-not-working-anymore-after-update-to-t5-2-6-tp4615889p4630858.html Sent from th

Re: Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
Taha, Thanks. Personally I don't have a need for nested forms. I used them in wicket before, found them somewhat usefull but do not miss them in tapestry. As for my message, I was wrong and there actually was a nested form which I missed initially. Cheers, Joost On 25/07/11 3:28 PM, Taha H

Re: Error page recipe not working anymore after update to t5.2.6

2011-07-25 Thread pieter
Ok, but something must have broken this solution, since it was working before updating to latest version. Anybody who has an idea what caused it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Error-page-recipe-not-working-anymore-after-update-to-t5-2-6-tp4615889p463080

Re: Using RadioGroup inside a Grid

2011-07-25 Thread Thiago H. de Paula Figueiredo
On Mon, 25 Jul 2011 05:22:32 -0300, Stephan Windmüller wrote: Hello! Hi! I am trying to use a RadioGroup inside a Grid component. Each selectable radio option should be displayed in its own column. I don't know if it will work, but have you tried putting the Grid inside the RadioGroup

Re: Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Taha Hafeez
Hi Joost, Nested forms are not supported by html. Tapestry only enforces it. When you render a block(containing a form) within a form, the environmental FormSupport is pushed in twice so it will complains. IMHO, it is not a bug. Other frameworks support nested forms by using javascript based POST

Re: Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
My appologies. Tapestry was not to blame, it was me who overlooked another little form stashed away in a dark corner of my application. Doh! Joost On 25/07/11 3:01 PM, Joost Schouten (ml) wrote: Hi, I have an EventLink that triggers an event method on a component nested in a form (formA) a

Re: How to set 'parameters' on EventLink?

2011-07-25 Thread stephanos2k
Thanks a lot you guys for clearing that up! :-) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-set-parameters-on-EventLink-tp4630532p4630695.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Using RadioGroup inside a Grid

2011-07-25 Thread Taha Hafeez
Hi While trying to answer your question, I came up with an example. Enjoy !! public class RadioGroupDemo { @Property @Persist private List users; @SuppressWarnings("unused") @Property private User user; @SuppressWarnings("unused") @Property @Persist(PersistenceConstan

Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
Hi, I have an EventLink that triggers an event method on a component nested in a form (formA) and returns a Block with in it another form (formB) to update a zone which is outside formA. Tapestry still complains about formB being nested in formA. This is probably because of the fact that the

Re: Ajax Navigation

2011-07-25 Thread Barry Books
Tests are on the todo list, probably in the next day or two. Here is any example that implements tabs with a zone. Image Description In A Room tab0

Re: How to set 'parameters' on EventLink?

2011-07-25 Thread Emmanuel DEMEY
Here is an example : link public void onEventLink(@RequestParameter("name") String value){ System.out.println("# EVENT " + value); } Emmanuel 2011/7/25 kleanthis > The problem is rhat EventLink needs also an Event parameter to function > correctly. > > try > test > text > and it should w

Re: Using RadioGroup inside a Grid

2011-07-25 Thread nillehammer
Hi Stephan, afaik it's easy to ovveride the rendering of a single column in Grid, but it's hard to overide the rendering of a whole row. You could subclass Grid and GridRows to get the desired behavior. Anoter option could be to put your whole radiogroup in just one td and write a mixin that chang

Re: How to set 'parameters' on EventLink?

2011-07-25 Thread kleanthis
The problem is rhat EventLink needs also an Event parameter to function correctly. try test text and it should work. you also need a handler method in the corresponding java file is something similar to this page : http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/coreli

Re: How to set 'parameters' on EventLink?

2011-07-25 Thread nillehammer
Hi stephanos2k, A parameter with just "test" does not make any sense. Url parameters are name/value pairs with equals sign, e.g. ...id=1&sortOrder=asc. That's why taprestry expects a map. In the component/page class, where you want to use the parameters provide a Map as a property and use that in

Re: Date Field with day, month year and datepicker component

2011-07-25 Thread kleanthis
Well this is my component, which does exactly that. However i haven't manage to implement dynamic client side validation(required true/false). have a go and let me know if you improve it. It's based on the chenillekit datepicker component. the java file without package: import java.util.ArrayList

How to set 'parameters' on EventLink?

2011-07-25 Thread stephanos2k
I was trying out the new 'parameters' property of the EventLink, but I don't know how it's supposed to work - I tried: // But I only get /UnknownValueException: "Could not find a coercion from type java.lang.String to type java.util.Map."/ What am I doing wrong? Cheers -- View this mes

Re: How to use ContextResourceSymbolProvider

2011-07-25 Thread Erik Fäßler
Hi again, thank you all for your kind advice! My responses follow: @Josh: This "lazy" approach didn't work for me anyhow. I got just the same NPEs. This really is kind of non-deterministic as it sometimes would work and sometimes it wouldn't. I mean the whole access-the-servlet-context-while-

Using RadioGroup inside a Grid

2011-07-25 Thread Stephan Windmüller
Hello! I am trying to use a RadioGroup inside a Grid component. Each selectable radio option should be displayed in its own column. In pure HTML it would be possible to insert input elements with the same name attribute into each cell but Tapestry requires a surrounding RadioGroup component. Sinc

Re: Ajax Navigation

2011-07-25 Thread dragan.sahpas...@gmail.com
Nice, Do you have some tests for it to see it in action? I couldn't find any using the bind mixin. Cheers, Dragan Sahpaski On Mon, Jul 25, 2011 at 2:12 AM, Barry Books wrote: > If you look in my fork of tapestry5-jquery on github > > https://github.com/trsvax/tapestry5-jquery > > there is a m