Re: Upload breaks ZoneUpdater

2010-09-22 Thread Kalle Korhonen
Bah. Tripped myself up with a client regexp validation that was associated to the upload component, which caused the page init to partially fail. Why is it always the smallest things that take the longest? Kalle On Wed, Sep 22, 2010 at 8:53 AM, Kalle Korhonen wrote: > How odd. I have a conventi

Re: [T5.1] Generate AjaxFormLoop entry from ActionLink

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Thu, 23 Sep 2010 00:12:15 -0300, Yohan Yudanara wrote: Because when user click on an hyperlink, I want to populate *multiple* rows. Populate means: I want to clear all rows on AjaxFormLoop and generate multiple rows based on calculation in the server side. Now I got what you want to do

Re: [T5.1] Generate AjaxFormLoop entry from ActionLink

2010-09-22 Thread Yohan Yudanara
Because when user click on an hyperlink, I want to populate *multiple* rows. Populate means: I want to clear all rows on AjaxFormLoop and generate multiple rows based on calculation in the server side. Is it possible to do this with AddRowLink / RemoveRowLink? On Thu, Sep 23, 2010 at 9:42 AM, Thi

Re: throw new PageRedirectException

2010-09-22 Thread asianCoolz
IEngineService pageService = getPageService(); >String pageName = "NextTapestryPage"; >ILink link = pageService.getLink(false, pageName); >throw new RedirectException(link.getAbsoluteURL()); if page is IPage, and i set parameter to the page.setExtraParameter(abc); how to get absoluteu

Re: [T5.1] Generate AjaxFormLoop entry from ActionLink

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 23:36:19 -0300, Yohan Yudanara wrote: Is it possible to do AddRowLink / RemoveRowLink from java class? Because what I want to do is: populate some rows in AjaxFormLoop from server side (java class). This event (populate some rows) is triggered from clicking AJAX actionLi

Re: [T5.1] Generate AjaxFormLoop entry from ActionLink

2010-09-22 Thread Yohan Yudanara
Is it possible to do AddRowLink / RemoveRowLink from java class? Because what I want to do is: populate some rows in AjaxFormLoop from server side (java class). This event (populate some rows) is triggered from clicking AJAX actionLink. I thought this is not possible, so I'm decided to refresh who

Re: PropertyEditContext not available from Environment

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 19:48:08 -0300, Jim O'Callaghan wrote: Thanks for the reply Thiago. Could you give me a pointer on where / how in the cycle to push and then pop the PropertyEditContext into / out of the Environment, or point to any resource I could work through as an example? A bit

RE: PropertyEditContext not available from Environment

2010-09-22 Thread Jim O'Callaghan
Thanks for the reply Thiago. Could you give me a pointer on where / how in the cycle to push and then pop the PropertyEditContext into / out of the Environment, or point to any resource I could work through as an example? A bit lost on this. Regards, Jim. -Original Message- From: Thia

Re: PropertyEditContext not available from Environment

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 19:20:30 -0300, Jim O'Callaghan wrote: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment When you're using BeanEditor/BeanEditForm, they push the appopriate PropertyEditContext into the Environment. Grid pushes a Pr

Re: Textfield disabled return a null value

2010-09-22 Thread Pablo dos Reis
*Another option is you change the style.display to none or use the method hide() of prototype element.hide(); * 2010/9/22 Cucchietti Denis > Hi Katia, > > Thanks for your answer i have used an hidden field and its works! > > -Message d'origine- > De : Katia Aresti Gonzalez [mailto:katia

PropertyEditContext not available from Environment

2010-09-22 Thread Jim O'Callaghan
I have a custom data type that I am displaying / updating successfully in beanDisplays and beanEditForms, after making BeanBlockContributions for edit and display, and also using a CustomPropertyEditor that defers environment.pop(PropertyEditContext.class) until after rendering is complete. Recent

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
Hi again, You can simply adapt the plugin's values ${set your tld uri here} ${set your tld defaut namespace here} Once TLD generated, you can add N user catalogues in Eclipse (one per tld file) and you will have to explicitly change the URI and short name's values which are unique. We have alre

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi
Hi, I managed (with some pain really) to install the tag library inside eclipse, I followed the tutorial on the "Tapestry5 How Tos" and it works fine for installing the t5.tld entry. But if I repeat the same procedure to install also the tld generated by your plugin, then eclipse either

Upload breaks ZoneUpdater

2010-09-22 Thread Kalle Korhonen
How odd. I have a conventional non-ajax form with one field that's using Inge's ZoneUpdater for checking value's uniqueness and displaying the results in a zone. As soon as I add the Upload component (the standard, non-ajax one), the zone update breaks saying "Ajaz Zone does not have an associated

RE: Textfield disabled return a null value

2010-09-22 Thread Cucchietti Denis
Hi Katia, Thanks for your answer i have used an hidden field and its works! -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:42 À : Tapestry users Objet : Re: Textfield disabled return a null value Why do you need to disabl

Re: Tapestry 5.2.1 upgrade woes

2010-09-22 Thread P . Stavrinides
Indeed, my bad, I do combine a few maven modules that use Tapestry IoC, and I simply missed a spot. Thanks Thiago, Peter - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Wednesday, 22 September, 2010 18:19:06 GMT +02:00 Athens, Beirut, Bucharest,

Re: Tapestry 5.2.1 upgrade woes

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 12:13:11 -0300, wrote: Hi, Hi! java.lang.NoClassDefFoundError: org/apache/tapestry5/internal/services/RequestPathOptimizer You seem to have two versions of Tapestry in the classpath at the same time. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapest

Re: Creating Grid component at runtime

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Sep 2010 07:22:03 -0300, kamath_svk wrote: 2. I need to Use Grid component. As far as I know each row of grid is stored as objects & grid uses getters to retrieve the values. Ex. Assume a table named TableA consists of Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9 a

Re: Redirect when session is destroyed

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 05:51:44 -0300, kamath_svk wrote: I am new to tapestry so can you please tell me how to use dispatcher using some example?? There are many examples in this mailing list archives and in the wiki. Reading the Dispatcher JavaDoc also helps. most importantly, i want to

Tapestry 5.2.1 upgrade woes

2010-09-22 Thread P . Stavrinides
Hi, I saw this recent change: https://issues.apache.org/jira/browse/TAP5-1267 Which accounts for the removal of RequestPathOptimizer but I am getting the following exception, so am wandering if I am missing something? 2010-09-22 18:10:43.418:WARN::failed contexthandlercollect...@7fa5f230: jav

Creating Grid component at runtime

2010-09-22 Thread kamath_svk
Hello All, I am new to tapestry & facing lot of problem in understanding internal working of grid. I have a requirement where I need to display certain data from database obtained as result list using grid. 1. I use query to retrieve certain column names of a particular table depending

Re: SendRedirect is giving NullPointerException

2010-09-22 Thread kamath_svk
I too have a similar requirement. Since i am new to tapestry, i did not understood the answer. Can you please explain that in detail giving some example. -- View this message in context: http://tapestry.1045711.n5.nabble.com/SendRedirect-is-giving-NullPointerException-tp2843561p2847823.html Sen

Re: T5 Internet Browser Detection?

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 04:33:38 -0300, ael wrote: Is it possible that tapestry can detect web browser? Yes. Just @Inject Request and use request.getParameter("User-Agent") to get the user agent string. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consult

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Laurent Guerin
Happy to see that you could generate your TLD. The generated XML "tldgen-components-info.xml" is a temporary file used to collect Javadoc informations on components. We are aware about the m2Eclipse issue, it's already referenced in the FAQ. Thank you for your feedback. We will check the classes.

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi
Hi, I am using maven from eclipse (It did not worked) but apparently launching it from is fine. This is the printout of the tld file: http://java.sun.com/xml/ns/javaee " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Laurent Guerin
Hi Alessio, Thanks for your tests. which Maven version did you use ? We have only tested the plugin with versions 2.0.10 and 2.2.1 and only on Windows and Linux OS. We will try to make some tests on Mac as soon as possible. Laurent. 2010/9/22 Alessio Gambi > Hi, > > you had a very good idea

Re: throw new PageRedirectException

2010-09-22 Thread Martin Strand
This is in Tapestry 4, right? To send the client to a different URL you can throw a RedirectException instead: void redirectToNextPage() { IEngineService pageService = getPageService(); String pageName = "NextTapestryPage"; ILink link = pageService.getLink(false, pageName); throw new R

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
I meant to dire "executing" maven ... ^_^ 2010/9/22 Katia Aresti Gonzalez > Hi ! > > Thanks for testing ! Are you lancing maven with an eclipse plugin, from the > console or another way ? > We found some problems with eclipse m2 plugin. > > Katia > > 2010/9/22 Alessio Gambi > > Forgot to say I

Re: SendRedirect is giving NullPointerException

2010-09-22 Thread P . Stavrinides
Since you have done this: session.removeAttribute(AppModule.USER_LOGGED_IN) All you need to do is implement a small dispatcher to check for it in state, contribute your dispatcher to AppModule, and redirect from within it. Your dispatcher would require the ApplicationStateManager and Request ser

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
Hi ! Thanks for testing ! Are you lancing maven with an eclipse plugin, from the console or another way ? We found some problems with eclipse m2 plugin. Katia 2010/9/22 Alessio Gambi > Forgot to say I am using tapestry 5.1.0.5 > > > > On Sep 22, 2010, at 10:50 AM, Laurent Guerin wrote: > > Fo

Re: throw new PageRedirectException

2010-09-22 Thread Katia Aresti Gonzalez
http://tapestry.apache.org/tapestry5/guide/pagenav.html 2010/9/22 asianCoolz > with throw new PageRedirectException("NextTapestryPage"); , i was redicectd > to > another page, but the url on the browser address bar is not change. is > there > any method i can call "forward", so that use 'forwa

Re: Redirect when session is destroyed

2010-09-22 Thread P . Stavrinides
You really need to do some reading... go through the servlet api, the Tapestry docs, also the wiki: http://wiki.apache.org/tapestry/Tapestry5HowTos Then use Jumpstart which has all the hands on examples you need to feel confident with Tapestry: http://jumpstart.doublenegative.com.au/home.html

Re: [5.1.0.5] Firing javascript from page class from mixin handler method

2010-09-22 Thread LLTYK
My favorite reply, a mixin on a component in a zone will get it's javascript run again on zone update. So you make a mixin that handles both disabling and enabling, it will run on page render, and run again whenever you update the zone. Oh, and use renderSupport.addScript, like in here: http://j

Re: [T5.1] Generate AjaxFormLoop entry from ActionLink

2010-09-22 Thread LLTYK
You just use AddRowLink and RemoveRowLink to add and remove. Alot easier than trying to refresh the whole thing. http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/ajaxformloop1 -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-1-Generate-AjaxFormLoop-en

Re: [T5.1] Preserve user input while refreshing form inside zone

2010-09-22 Thread LLTYK
The usual way to save input is to do a form submit. Link the form to the zone, and then submitting will trigger the update on the zone after sending the data to the server. However, this does not work if the form is not filled out and valid. In that case there's a longer way: I used the ZoneUpda

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi
Forgot to say I am using tapestry 5.1.0.5 On Sep 22, 2010, at 10:50 AM, Laurent Guerin wrote: For those interested in using Eclipse code completion with tml files, EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a Maven plugin that allow you to generate a tld describing

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi
Hi, you had a very good idea with this plugin! I tried to install and use the plugin but I got a NullPointerException (see the stack) as explained in the web page. Maybe I set the plugin wrongly... (BTW I did not this: "Carefully javadoc your component classes and their attributes annotate

Re: SendRedirect is giving NullPointerException

2010-09-22 Thread kamath_svk
Hi, I found a site for session handling using Tapestry5. http://eubauer.de/kingsware/2010/02/04/track-login-and-logout-of-users-with-tapestry-5/ when ever session is destroyed, sessionDestroyed() method in SessionListener[user-defined] class which is added in services package of tapestry is au

Re: Redirect when session is destroyed

2010-09-22 Thread kamath_svk
I am new to tapestry so can you please tell me how to use dispatcher using some example?? most importantly, i want to know how to Redirect to some other page!! Kristian Marinkovic wrote: > > provide a Dispatcher that checks whether your AppModule.USER_LOGGED_IN > attribute is available from

throw new PageRedirectException

2010-09-22 Thread asianCoolz
with throw new PageRedirectException("NextTapestryPage"); , i was redicectd to another page, but the url on the browser address bar is not change. is there any method i can call "forward", so that use 'forward' to another page ---

Eclipse IDE and TML code completion

2010-09-22 Thread Laurent Guerin
For those interested in using Eclipse code completion with tml files, EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a Maven plugin that allow you to generate a tld describing any Tapestry 5 components library. The plugin uses both Javadoc and @Parameter annotation to perform

Re: T5 Internet Browser Detection?

2010-09-22 Thread Kristian Marinkovic
you'd have to implement a HttpServletRequestFilter or better a Dispatcher that analyzes the http headers and redirects to other pages or sets some global state that is used during page rendering. A Dispatcher is more convenient as you can use all the tapestry services and don't have to use the

Re: Redirect when session is destroyed

2010-09-22 Thread Kristian Marinkovic
you can't redirect from a SessionListener as it is called by the servlet container and does not involve any user interaction. provide a Dispatcher that checks whether your AppModule.USER_LOGGED_IN attribute is available from the current HttpSession; if it is not redirect the current request t