Re: T5: 5.0.14 Bizarre ClassNotFoundException

2008-09-26 Thread Ben Gidley
Russell, Are you using a main class to start your app? If so you need the line // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); In your class - see http://wiki.apache.org/t

RE: T5: 5.0.14 Bizarre ClassNotFoundException

2008-09-26 Thread Russell Brown
Thanks. I think that is the second time you have told me. I'll remember this time, I'm sure. Cheers Russell -Original Message- From: Ben Gidley [mailto:[EMAIL PROTECTED] Sent: Fri 9/26/2008 8:03 AM To: Tapestry users Subject: Re: T5: 5.0.14 Bizarre ClassNotFoundException Russell, Are

Previewable image component

2008-09-26 Thread Borut Bolčina
Hello, is this: http://wiki.apache.org/tapestry/Tapestry5ImageComponent the preferred and only way of having previewable images? Cheers, Borut

Re: [T5] AJAX and partial updates of forms ? [Zone AjaxFormLoop FormInjector FormFragment and the like]

2008-09-26 Thread Francois Armand
Francois Armand wrote: Hello guys, [..] [1] Ex of what I want : Update info // in real life, I whould like to use a mixin for that, trigger on some action on a field ... [here goes a lot of stuff with fields and components and the like] Nobody to that ? -- Francois Armand Etudes

Anchor problem: other components being affected

2008-09-26 Thread Daniel Alonso Sanchez
Well, i must confess i really didn't know how to title this post, so... my apologizes for the name. The thing is that I have an anchor that looks like this: Subtitle3 A first glance to this code made me think that everthing will we ok, but my surprise after the rendering of the tml was that th

Re: Creating inner components on the fly in a form custom component

2008-09-26 Thread Kristian Marinkovic
hi, you cannot create T5 components dynamically but you can simulate it :) you can define Blocks with any (nested) T5 components and HTML fragments that can be re-used multiple times to render a page. take a closer (source code) look at the BeanEditor. it creates input fields for every p

Re: Anchor problem: other components being affected

2008-09-26 Thread Ulrich Stärk
First, you have to use a mail client (nabble isn't one) or escape your code correctly, i.e. use html entities. Otherwise your code won't reach us because nabble messes it up and we can't help you. Uli Am Fr, 26.09.2008, 10:37, schrieb Daniel Alonso Sanchez: > > Well, i must confess i really didn'

Re: Anchor problem: other components being affected

2008-09-26 Thread Daniel Alonso Sanchez
ooops, my apologizes for that, i have no idea of that. I will try immediately. Thanks a lot ;D -- View this message in context: http://www.nabble.com/Anchor-problem%3A-other-components-being-affected-tp19684509p19684919.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Rm: Anchor problem: other components being affected

2008-09-26 Thread Daniel_ Alonso Sanchez
Sorry for the previous post, I hope this will be ok :(. Well, i must confess i really didn't know how to title this post, so... my apologizes for the name. The thing is that I have an anchor that looks like this: Subtitle3 A first glance to this code made me think that everthing will we ok, b

Re: Anchor problem: other components being affected

2008-09-26 Thread Daniel_ Alonso Sanchez
Sorry for the previous post, I hope this will be ok :(. Well, i must confess i really didn't know how to title this post, so... my apologizes for the name. The thing is that I have an anchor that looks like this: Subtitle3 A first glance to this code made me think that everthing will we ok, b

T5 + Acegi .. how to get user on Page?

2008-09-26 Thread spamglik
HI I have a problem accesing logged in user on a page. I tried to use ASO but have no idea how to create ASO in UserDetailService implementation. I saw some previous disscussions on forum but still it doesn't ring a bell. Maybe somebody have some example? or any tips? kind regards Mateusz -

Re: T5 + Acegi .. how to get user on Page?

2008-09-26 Thread Hugo Palma
You can get the logged user like this: @Inject private RequestGlobals requestGlobals; ... ... requestGlobals.getHTTPServletRequest().getUserPrincipal(); Then if you need to get more information about the user you just inject the UserDetailsService into you component / page and use it to retriev

Re: T5 + Acegi .. how to get user on Page?

2008-09-26 Thread spamglik
Cool it helps thx. m HugoPalma wrote: > > You can get the logged user like this: > > @Inject > private RequestGlobals requestGlobals; > ... > ... > requestGlobals.getHTTPServletRequest().getUserPrincipal(); > > Then if you need to get more information about the user you just inject > the Use

[T5] Select component: howto create a SelectModel out of List

2008-09-26 Thread Andy Pahne
I have a simple list of Strings that should be the source of a SelectModel. How do I create one? I had a look at http://wiki.apache.org/tapestry/Tapestry5SelectObject but it's outdated (before the T5 package name refactoring) and just looks to complicated for my simple purpose. Also I am n

Re: Anchor problem: other components being affected

2008-09-26 Thread Filip S. Adamsen
Hi, For what you're trying to do, it's a lot easier to put an id on the h3 and just refer to that as your anchor. -Filip On 2008-09-26 11:11, Daniel_ Alonso Sanchez wrote: Sorry for the previous post, I hope this will be ok :(. Well, i must confess i really didn't know how to title this pos

Re: [T5] Select component: howto create a SelectModel out of List

2008-09-26 Thread Filip S. Adamsen
Hi, Just implement org.apache.tapestry5.SelectModel. You can extend org.apache.tapestry5.util.AbstractSelectModel when you do. -Filip On 2008-09-26 12:20, Andy Pahne wrote: I have a simple list of Strings that should be the source of a SelectModel. How do I create one? I had a look at

Re: Previewable image component

2008-09-26 Thread Grigoris Ioannou
Borut, I believe this is what you're looking for: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/ThumbNail.html I hope it works for you, Grigoris On Fri, Sep 26, 2008 at 11:05 AM, Borut Bolčina <[EMAIL PROTECTED]>wrote: > Hello, > > is this: > htt

Re: [T5] Select component: howto create a SelectModel out of List

2008-09-26 Thread Ulrich Stärk
If you want to use it with the select component then there is no need to write your own selectmodel. Just provide an array of strings to the model parameter, e.g. or where strings is an array or list in your page class. Uli Am Fr, 26.09.2008, 12:32, schrieb Filip S. Adamsen: > Hi, > > Just impl

Development Environment

2008-09-26 Thread Borut Bolčina
Hello, since JettyLauncher is not working with Eclipse Ganymede, this should be mentioned at http://tapestry.apache.org/tapestry5/tutorial1/env.html I looked at http://code.google.com/p/run-jetty-run/ but some posts suggest that it is not working with m2eclipse plugin.But I will try it out... It

Re: Previewable image component

2008-09-26 Thread Borut Bolčina
Hi Grigoris, thanks for the link, but no, I am looking for previewability for designers, so they can see how the page will look like. -Borut 2008/9/26 Grigoris Ioannou <[EMAIL PROTECTED]> > Borut, > > I believe this is what you're looking for: > > http://87.193.218.134:8080/t5components/t5c-com

T5: return Index.class problem

2008-09-26 Thread photos
Hi, I am implementing an access controller as specified in the Wiki HOW-TOs http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess On a logout ActionLink I do: return Index.class; In the past this has been working fine. Today I tried using the link and I get an exception: [ERROR]

Re: T5: return Index.class problem

2008-09-26 Thread Filip S. Adamsen
Hi, This was changed between 5.0.14 and 5.0.15 and subsequently reverted in 5.0.16. See https://issues.apache.org/jira/browse/TAPESTRY-2675. -Filip On 2008-09-26 13:05, [EMAIL PROTECTED] wrote: Hi, I am implementing an access controller as specified in the Wiki HOW-TOs http://wiki.apache.o

Re: T5: return Index.class problem

2008-09-26 Thread Ulrich Stärk
This should have been fixed as https://issues.apache.org/jira/browse/TAP5-132. Please try a more recent version (5.0.16-SNAPSHOT). Uli Am Fr, 26.09.2008, 13:05, schrieb [EMAIL PROTECTED]: > Hi, > > I am implementing an access controller as specified in the Wiki HOW-TOs > > http://wiki.apache.org/

Re: [T5] Select component: howto create a SelectModel out of List

2008-09-26 Thread Andy Pahne
Ulrich Stärk schrieb: If you want to use it with the select component then there is no need to write your own selectmodel. Just provide an array of strings to the model parameter, e.g. or where strings is an array or list in your page class. Uli That's the easier way I thought of, thanks.

Re: T5: return Index.class problem

2008-09-26 Thread photos
Quoting "Filip S. Adamsen" <[EMAIL PROTECTED]>: Hi, This was changed between 5.0.14 and 5.0.15 and subsequently reverted in 5.0.16. See https://issues.apache.org/jira/browse/TAPESTRY-2675. -Filip Ok, thanks. That will be why. cheers, p.

Re: [T5] Select component: howto create a SelectModel out of List

2008-09-26 Thread Thiago H. de Paula Figueiredo
Em Fri, 26 Sep 2008 08:35:11 -0300, Andy Pahne <[EMAIL PROTECTED]> escreveu: That's the easier way I thought of, thanks. I was tricked by the component reference, which states that the type of the parameter is SelectModel. The parameter type *is* SelectModel, but Tapestry has coercions: c

Re: append checkbox to grid list

2008-09-26 Thread Marcelo Lotif
wesley, Considering that your onSubmitFromMy and onActionFromCheckPage methods are switched with each other and you used a non-existent model in your tml, your code has no problems. I ran exactly the same lines you put here and everything went fine. I change you Pt.pt with System.out.println and th

Re: append checkbox to grid list

2008-09-26 Thread wesley
hi Marcelo, thanks with the feedback, the version of Tapestry that i'm using is 5.0.14. based on your comment, the switched method, non existing model and the println method; does it make difference? perhaps i should use the latest T5 library? Marcelo Lotif wrote: > > wesley, > Considering t

access @Border in subfolder of web-inf

2008-09-26 Thread michael lim
i access my page like this http://localhost:8080/TestApp/app?service=page&page=test/index i have Border.html and Border.page inside /web-inf/test/* folder.. inside my index.html file. how do i define the border ? //this doesnt work -

Re: append checkbox to grid list

2008-09-26 Thread Marcelo Lotif
On Fri, Sep 26, 2008 at 11:40 AM, wesley <[EMAIL PROTECTED]> wrote: > > hi Marcelo, > > thanks with the feedback, the version of Tapestry that i'm using is > 5.0.14. I'm using 5.0.14 too. > based on your comment, the switched method, non existing model and the > println method;

Re: Development Environment

2008-09-26 Thread Kevin Menard
Hi Borut, Please file JIRA issues for these ideas, otherwise they're bound to be lost. -- Kevin On Fri, Sep 26, 2008 at 6:53 AM, Borut Bolčina <[EMAIL PROTECTED]> wrote: > Hello, > > since JettyLauncher is not working with Eclipse Ganymede, this should be > mentioned at > http://tapestry.apac

Re: access @Border in subfolder of web-inf

2008-09-26 Thread Andreas Andreou
you need a Border.jwc file cause it's a component not a page On Fri, Sep 26, 2008 at 5:33 PM, michael lim <[EMAIL PROTECTED]> wrote: > i access my page like this > > http://localhost:8080/TestApp/app?service=page&page=test/index > > > i have Border.html and Border.page inside /web-inf/test/* folde

RE: Development Environment

2008-09-26 Thread Jonathan Barker
I was recently cast out of the Garden of Eden for eating the forbidden fruit: m2eclipse (updated). I was running the old JettyLauncher with the old (and rather limited) m2eclipse, on Eclipse 3.3 / MyEclipse 6.0. Life was good. Easy debugging, hot reloading. I had JettyPlus configured so I coul

Re: access @Border in subfolder of web-inf

2008-09-26 Thread michael lim
yes, i have Border.jwc file //this will access Border.html in /web-inf/Border.html with no problem // can this be used to access /web-inf/test/Border.html ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Development Environment

2008-09-26 Thread Luther Baker
For what its worth, I've had no trouble running Tomcat 6 with Eclipse WTP with MAVEN m2 plugins. I have NOT had to customize the tomcat instance at all. -Luther 2008/9/26 Jonathan Barker <[EMAIL PROTECTED]> > > I was recently cast out of the Garden of Eden for eating the forbidden > fruit: m2

[T5] How to dynamically render a set of checkboxes

2008-09-26 Thread Eric Ma
I am using T5 5.0.11. What I want to achieve is the following: I have 2 lists, one with all possible options, and the other pre-selected options. I want to dynamically create a group of checkboxes that correspond to all the possible options, with the ones matching the pres-selected values check

T4 AJAX Timer Updates Problems

2008-09-26 Thread Norman Franke
I'm using Tapestry 4.1.2 and I'm attempting to get a JavaScript timer to periodically refresh a block on my page. This is that block: Page load time: Value Refreshed time: Value dojo.require("tapestry.form"); function timer() { tapestry.form.submitAsync("update");

Re: T4 AJAX Timer Updates Problems

2008-09-26 Thread Andreas Andreou
try document.timer = function() { tapestry.form.submitAsync("update"); setTimeout(document.timer, 5000); } setTimeout(document.timer, 5000); On Sat, Sep 27, 2008 at 1:58 AM, Norman Franke <[EMAIL PROTECTED]> wrote: > I'm using Tapestry 4.1.2 and I'm attempting to get a JavaScript ti

Encoder may not be instantiated directly.

2008-09-26 Thread Keith Bottner
I am trying to use a bundle a select component for the specific case of displaying a list of countries and from the all the documentation that I have run across and I always get an exception when the page is rendered. It says: Component class com.shared.base.CountryEncoder may not be instan

Re: Encoder may not be instantiated directly.

2008-09-26 Thread Ted Steen
You should not put non-component code under component packages. see http://tapestry.apache.org/tapestry5/guide/component-classes.html move the CountryEncoder to something like com.shared.util instead. 2008/9/27 Keith Bottner <[EMAIL PROTECTED]>: > I am trying to use a bundle a select component for