[T5] JPF-Plugins (or any other plugin-framework) to add page content?

2009-07-27 Thread Tobias Wehrum
Hello everyone, I need to write an application where multiple page contents should be added in later via plugins - for example different ways to output things, other payment modi, or statistics. Currently I am reading into http://jpf.sourceforge.net/index.html, but it is not necessairly a JP

Re: [T5] Persistent fields may not be updated until after the page has finished loading

2009-04-22 Thread Tobias Wehrum
Does that mean that for every persistent variable you have to write a if (field == null) field = new Anything(); in the SetupRender? Is there no easier way? Cheers, Tobias Marcel Sammut schrieb: I had the same problem when moving to 5.0.16. It was pretty simple for me, since what I was doing

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
the value. For a good example of how to use checkboxes and radio buttons take a look at this page example: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/component/coreinputcomponents Jayson Tobias Wehrum wrote: Hello, while I've never worked with the Radio Co

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
I have three items: Blue, Green and Red. So I want to print the value of "Colors" by selected item. I need simple example. 2009/1/6 Tobias Wehrum Hello, I'm not seeing where you are using the Radio Component? I suggest you take

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
Hello, I'm not seeing where you are using the Radio Component? I suggest you take a look at http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Radio.html and combine it with your loop. Hope that helped, Tobias Gutemberg A. Da Silva schrieb: Hi guy

Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Tobias Wehrum
Sorry, my bad: I forgot to update with the project I tested it. Andy Pahne schrieb: Tobias Wehrum schrieb: Hi, URL encoding works fine for me: [EMAIL PROTECTED]: abc%40abc.com two words: two%20words - Tobias http://localhost:8080/oos/administration/task/list/type/two%20words Response

Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Tobias Wehrum
Hi, URL encoding works fine for me: [EMAIL PROTECTED]: abc%40abc.com two words: two%20words - Tobias Andy Pahne schrieb: I have the same problem, except that my string contains a space character. Regular URL encoding does not seem to work. Andy Angelo Chen schrieb: Hi, public Object

Re: T5: help required: Context and PageLink

2008-10-27 Thread Tobias Wehrum
Hi, the problem is not your pagelink, the problem is your stylesheet link. When it trys to load, it seems to search in "viewMetadata/style.css", thus being passed as an activation context which of course cannot be coerced to long. Anyway, in my opinion the best way to pass the stylesheet is

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Tobias Wehrum
Hello namesake, Since I've never heared about this too, I searched the Mailing List and JIRA and didn't find any issue which you could've meant. Where did you hear that? - Tobias [EMAIL PROTECTED] schrieb: I have heard there are some issues with "Session bleedings" in Tapestry5. Will those

Re: 5.0.15 asset NullPointerException

2008-10-16 Thread Tobias Wehrum
Hi, this may be related to http://www.nabble.com/tapestry-5.0.15-NPE-by-loading-pages-tp20009941p20009941.html Ulrich Stärk suggested there to use the 5.0.16-SNAPSHOT to try if the problem vanished there. - Tobias Jack Nuzbit schrieb: Hi All, I've just switched over to tapestry 5.0.15 an

Re: T5 Override 404 Page

2008-10-14 Thread Tobias Wehrum
Maybe this, for example? http://www.nabble.com/t5%3A-a-default-page-for-non-exist-path-tp18980767p18980767.html - Tobias Ulrich Stärk schrieb: There has been some discussions about this in the past. I can't give you a link without searching myself so I suggest you search nabble or markmail for

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-11 Thread Tobias Wehrum
Hi Thiago, You don't need to use the list binding. Just use the prop binding: [...] building the context in the java class seems somewhat cumbersomely to me, and also a bit confusing, since you cannot directly see what context the PageLink gets and have to lookup the method in the correspond

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-10 Thread Tobias Wehrum
Same here. We have some sites too which need several parameters, and furthermore not all of them are set at any given time. The list: Binding used with null for empty parameters is an okay workaround, but having any sort of named context parameters (though I don't know how they would look like?

Re: [T5] Change validation message key

2008-10-09 Thread Tobias Wehrum
Hi Julien, may I ask where the problem was and how you solved it? - Tobias Julien schrieb: Hi, Thanks for your reply, and sorry for my bad english (i'm french) ;) Using the app.properties file isn't really a good solution for me, since I replaced the default MessagesSource to used a databas

Re: T5: how to fire an event from a component

2008-10-09 Thread Tobias Wehrum
Hi Stephane, ComponentResources.triggerEvent may be what you search for. - Tobias Stephane Decleire schrieb: Hi, I would like to be able to fire an event from one of my component to tell its parent that a cache should be invalidated. What is the way to do this in the Tapestry spirit ? Than

Re: T5 - Localization and Templating Questions

2008-10-08 Thread Tobias Wehrum
Hi there, a late answer, but maybe good to have in the archive when somebody browses it: 1) You can use the method getMessages() of the service ComponentResources to get the message bundle of the Template. - Tobias Filip S. Adamsen schrieb: Hi, Welcome to the list. :) Regarding your que

Re: [RESOLVED] Re: T5.0.15 Problem with localized app.properties

2008-10-01 Thread Tobias Wehrum
easy workaround once you know it), it is not yet resolved. - Tobias TNO schrieb: No I didn't... and now it works The third issue of Tapestry Thanks a lot Tobias Wehrum a écrit : Hi Thomas, do you have a global app.properties? See https://issues.apache.org/jira/browse/TAP5-3 -

Re: T5.0.15 Problem with localized app.properties

2008-10-01 Thread Tobias Wehrum
Hi Thomas, do you have a global app.properties? See https://issues.apache.org/jira/browse/TAP5-3 - Tobias TNO schrieb: Hi everybody, I'm trying to localize my application, it works very well with properties files for components or pages! But when I try to use the application message catalog

Re: [T5] AJAX Tapestry Forms? / strange behavior of AjaxComponentEventRequestHandler

2008-08-22 Thread Tobias Wehrum
CORRECTION: "I spent some time with the debugger and it seems that 104: if (callback.isAborted()) return; just doesn't get called" would be "I spent some time with the debugger and it seems that in 104: if (callback.isAborted()) return; callback.aborted == false" To

Re: [T5] AJAX Tapestry Forms? / strange behavior of AjaxComponentEventRequestHandler

2008-08-22 Thread Tobias Wehrum
after the method in triggerContextEvent in 92 returns, the callback.aborted is false. Anybody's got a clue what's going on here - or, even better, a solution? - Tobias Tobias Wehrum schrieb: Hi there, as the title suggests, I want to submit a form without refreshing the page. I

Re: t5: debugging with jetty

2008-08-22 Thread Tobias Wehrum
Hi limonn, to start Jetty, we use an org.mortbay.jetty.Server object started in a simple public static void main - so we can debug our program like any other java program too. The "no restart needed"-Feature is enhanced by debugging the application this way: When simply run, "no restart needed

[T5] AJAX Tapestry Forms?

2008-08-22 Thread Tobias Wehrum
Hi there, as the title suggests, I want to submit a form without refreshing the page. I don't even want to refresh a zone, but I need to specify a javascript function handling the return value of my function. While this is quite easy with normal HTML forms, I don't want to break with Tapestry

Re: loom, a tiny eclipse-plugin for tapestry5

2008-08-21 Thread Tobias Wehrum
Hi Christian, after installing, I cannot switch from .java to .tml using Ctrl+Alt+X, other way works. - Tobias Christian Scheid schrieb: hey list, just thought i let you guys know that i released a new (beta) version of the loom plugin. See http://loom-t5.googlecode.com for release notes.

Re: T5 Components site down.

2008-08-15 Thread Tobias Wehrum
Hi Andy, do you mean http://87.193.218.134:8080/t5components/index.html ? Works fine for me. - Tobias Blower, Andy schrieb: The T5 components site has been down for a couple of days now, any chance of it coming back up.

[T5] Rendering a block new - per Java Script

2008-07-18 Thread Tobias Wehrum
Hi there, still developing my tree component, now I have a new problem. My tree consists of a recursive list, each entry is a rendered block. While this works great while being in the rendering phase (by returning the correct block from my beginRender method, and looping said method by return

Re: [T5] Fixed param on PageLink

2008-07-10 Thread Tobias Wehrum
Hi Fabio, just use the literal binding: context="literal:testing">Visualise test (See http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html "Binding Expressions" for further reference. Standard for "context" is "prop", as you can see here: http://tapestry.apache.org/tape

[T5] Read informal parameters

2008-07-10 Thread Tobias Wehrum
Hi everyone, is there any way to read the informal parameters a component received? componentResources.getBlockParameter makes it easy for blocks - but how can I do it with strings, for example? Furthermore, is there maybe any way to get a list of the informal parameters? I looked in the sou

Re: [T5] Rendering a block a component received as parameter

2008-07-10 Thread Tobias Wehrum
inRender and finish it in afterRender... In the case you've laid out though, it might be easier to just create a template. Josh On Wed, Jul 9, 2008 at 8:56 AM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: Hi there, I am developing a tree component which can take several classes as nodes.

[T5] Rendering a block a component received as parameter

2008-07-09 Thread Tobias Wehrum
Hi there, I am developing a tree component which can take several classes as nodes. Each class should have it's own body, stored in parameters - and then rendered, of course. Now, lets say I have I have this code in my Test.tml: ---

Re: [T5] Looped component question

2008-07-08 Thread Tobias Wehrum
Ah, sorry, it seems I was halfly asleep when I answered. I completely misread your question. (And sure you are right about the identifier part.) José Paumard schrieb: Thank you for your answer Tobias, but it wont work, because a component ID has to be a valid Java identifier. José Tobias

Re: [T5] Looped component question

2008-07-07 Thread Tobias Wehrum
Hi José, I currently have no time to test it, but did you try t:mixins="autocomplete"/> ? - Tobias José Paumard schrieb: Hello all, I'm using a "component in a loop" T5 feature, that looks like this : encoder="encoder" index="index"> t:value="message:e

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tobias Wehrum
e. is that two t5components.jar physically need to copy to the WEB-INF/lib? On Thu, Jun 26, 2008 at 5:44 PM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: Hi Cyber, in case you use Maven, just include the the dependencies in the POM. In case you don't, just include the jars like any other j

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tobias Wehrum
Hi Cyber, in case you use Maven, just include the the dependencies in the POM. In case you don't, just include the jars like any other jar via Project->Properties->Java Build Path->Libraries. Did you try including the code shown at the demo page ( http://87.193.218.134:8080/t5c-demo/accordio

Re: [T5] How to implement , click on an external actionLink , submit a form (actionLink is not inside the form)

2008-06-20 Thread Tobias Wehrum
Hi CG, something like this? http://www.javascript-coder.com/javascript-form/javascript-form-submit-example.html Not exactly an ActionLink, but it may be useable too. Hope that helps, Tobias CG schrieb: I would like to put an actionLink outside a form , and let user click to submit the form ,

Re: What's new with 5.0.13 and Groovy

2008-06-17 Thread Tobias Wehrum
Why should fixing the bug "Groovy classes can no longer be used as component classes because of the public metaClass field" make it harder to work with Groovy and Tapestry? Anyway... maybe https://issues.apache.org/jira/browse/TAPESTRY-2425 ? Hugo Palma schrieb: The news item for 5.0.13 state

Re: Exception when using a grid in a form [T5]

2008-06-11 Thread Tobias Wehrum
You're welcome, glad it helped. And now I know why I didn't see this message on the mailing list: The T5 in the subject was missing. zack1403 schrieb: On #tapestry, TobiasW suggested to add the columns through beanmodel instead of in my tml which turned out to work just fine. Definitely look

T5.0.12: java.lang.NoClassDefFoundError: org/apache/tapestry/contrib/services/ImageService

2008-05-23 Thread Tobias Wehrum
Hi, when I switch to the current T5.0.12-SNAPSHOT, I get the following exception while starting: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tapestry/contrib/services/ImageService at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.private

Re: T5 setting initial sort order for grid in T5.0.11

2008-05-20 Thread Tobias Wehrum
Hi Martin, with _grid.getSortModel().getColumnSort("month") you can test whether month is sorted, and which way, and with updateSort("month") you can cycle through the states. To sort descending, I call: -

Re: Tapestry 5 Release Date (not beta)

2008-05-08 Thread Tobias Wehrum
Hi Jason, last thing I've heard about it was: http://www.nabble.com/Tapestry-5.0.12-td16847409.html Howard said there: 'Tapestry 5 is getting very close to a next release (which I think may even be a release candidate), but that's no reason to ship it early. Let me continue to "use it in an

Re: T5 actionlink, ajax zone and user onclick handler

2008-05-02 Thread Tobias Wehrum
g some function reference replacement voodoo, but that's a tad nasty. Perhaps this logic would be better factored into the components. Any other thoughts, anyone? Tobias Wehrum wrote: Hi Chris, first let me please thank you for the example you've written. It's quite informative. I'

Re: [T5]: Persistent bean for BeanEditForm?

2008-05-02 Thread Tobias Wehrum
Hi Andy, maybe I'm leaning to much out of the window because I have not enough Hibernate knowledge, but I don't think Hibernate stores its sessions in the entities - more like vice versa storing references to the entities in the session. (Don't count to much on my word - like I said, it's just

Re: T5: Display Zone after form Submission?

2008-04-30 Thread Tobias Wehrum
Hi Joshua, http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Form.html Is the "zone" parameter what you look for? If you mean BeanEditForm: According to JIRA (TAPESTRY-2280) it will have one too in 5.0.12. Hope that helps, Tobias Joshua Jackson sch

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Tobias Wehrum
Hi Chris, first let me please thank you for the example you've written. It's quite informative. I've discovered a problem with updating a zone - I think it's no problem of your mixin, but you may have an idea how to fix it. The problem is: When I use have an actionlink with the confirm mixi

Re: T5: Capture a component body as a block?

2008-04-21 Thread Tobias Wehrum
Hi Bill, do you mean ? Tobias Bill Holloway schrieb: In a couple of places I have Some interesting content. My need is to to capture whatever the "body" of MyComponent is into a block. Is there a better way to accomplish this? --

Re: T5: Is there a simple way to display property of embedded instance in Grid?

2008-04-21 Thread Tobias Wehrum
you need - I tend to implement both), and add "location" to your model. IIRC, you will need to build your model in code to say that the "location" column is sortable. Jonathan -Original Message- From: Tobi

Re: T5: Is there a simple way to display property of embedded instance in Grid?

2008-04-18 Thread Tobias Wehrum
, Tobias Thanks for reply. I am newbie of customizing grid component. I guess what you mean like this?: But exception message still exists: "Bean editor model for User does not contain a property named 'location_city'". Thanks! DH - Original Mess

Re: T5: Is there a simple way to display property of embedded instance in Grid?

2008-04-18 Thread Tobias Wehrum
Hi DH, you can teach Location a standard way to be outputted by overwriting the toString() function of Location. Now you can output the String returned by toString() simply by including "location". If you want to output different properties of Location and not in one cell, I think you will

Re: T5: Teaching the BeanModel to always add my class

2008-04-16 Thread Tobias Wehrum
Hi Filip, it's good to hear that it is just a leftover, so I can ignore it and stop wondering. Thanks again for your help! Tobias Filip S. Adamsen schrieb: Hi, On 2008-04-15 19:13, Tobias Wehrum wrote: Thank you, Filip! Looking through the page you suggested, I found the missing pie

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
tatus"); } -- And now it works! :) Just because I'm curious: What does contributeTranslatorDefaultSource do? Using it didn't seem to have any effect. Tobias Tobias Wehrum schrieb: Hi there, yes, maybe I caused confusion. To furthe

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
r class. I don't know what else there is to do, then. -Filip On 2008-04-15 18:41, Filip S. Adamsen wrote: Hi, You might need to add a new property editor, see Adding New Property Editors at http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html. -Filip On 2008-04-1

T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
Hi there, I have a class named "Status" which implements toString(). But still when I have class A, which has a property of type Status, I always have to add the Status property to the BeanModel with model.add("myStatus"). Obviously implementing toString() isn't enough to teach my the BeanMod

T5: Calling functions at page template (in a grid) costs very much time

2008-04-15 Thread Tobias Wehrum
Sorry, I forgot: Tapestry 5. Tobias Wehrum schrieb: Hello, in my template, I'm using a grid similar to this simplified model: ${someFunctionGeneratingSomething} When i comment out the parameter block, it is significantly faster compared to

Calling functions at page template (in a grid) costs very much time

2008-04-15 Thread Tobias Wehrum
Hello, in my template, I'm using a grid similar to this simplified model: ${someFunctionGeneratingSomething} When i comment out the parameter block, it is significantly faster compared to when getSomeFunctionGeneratingSomething() is called. (When it costs 2 seconds to show

T5: Updating (multiple) t:parameter values in a t:beaneditform via AJAX

2008-03-25 Thread Tobias Wehrum
Hello there, I have a t:beaneditformwith multiple selectObject components (custom component; http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects ), each in a t:parameter. Now when the value of the first selectObject changes, I want the (two) other t:parameter to be updated. Whil

Re: [T5] java.io.IOException while using prototype with T5Components and Jetty

2008-03-19 Thread Tobias Wehrum
Regards, Tobias Tobias Wehrum schrieb: Hi there, I do not know if thats something directly related to Tapestry, but since Tapestry is using prototype (which seems to be related) I hope someone encountered this problem too and has a solution to it. I use the t5components/OnEvent-mixin. Now

Re: [T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-17 Thread Tobias Wehrum
Hi there, just to let you know, I now figured out what the problem was: I was still using T5Components 0.5.10, and I suppose that refered to org.apache.tapestry.internal.services.ClassNameLocator. Updating to T5C 0.5.11 solved this problem. Regards, Tobias Tobias Wehrum schrieb: It&#

Re: [T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-14 Thread Tobias Wehrum
It's tapestry-ioc-5.0.11.jar. Just downloaded via maven: org.apache.tapestry tapestry-ioc 5.0.11 Howard Lewis Ship schrieb: Check your version of tapestry-ioc. ClassNameLocator moved there in 5.0.11. On Fri, Mar 14, 2008 at 5:49 AM, Tobias Wehrum <[EMAIL P

[T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-14 Thread Tobias Wehrum
loads correctly. (But a whole lot of others occurs on the sites, presumably due to missing hibernate configuration, so this is not even usable as work-around.) Regards, Tobias Wehrum - To unsubscribe, e-mail: [EMAIL PROTECTED]

[T5] java.io.IOException while using prototype with T5Components and Jetty

2008-03-14 Thread Tobias Wehrum
est and Jetty shouldn't, or what should the filter do? Thankful for every hint, Tobias Wehrum - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem after upgrade to 5.0.10

2008-02-26 Thread Tobias Wehrum
Hi, I do not know how to fix this error, but maybe this helps searching: Add "-Dtapestry.production-mode=false" to your JVM arguments to get the detailed exception again. Regards, Tobias Tim Sawyer schrieb: Hi, I've just upgraded my app from 5.0.6 to 5.0.10 and I have the following error. W

[T5] Problem while testing with AbstractIntegrationTestSuite

2008-01-04 Thread Tobias Wehrum
Hi there, I seem to have a basic problem with testing with the AbstractIntegrationTestSuite. While it starts up and runs the test, said test always fails because no matter which URL I open, the source is always - a blank page. My testing file looks like this:

Re: Adding extra rows to a BeanEditForm / extra columns to a Grid (T5!)

2007-12-17 Thread Tobias Wehrum
Hello Thiago, Well, in Tapestry 5.0.6, if you just add a column using BeanModel.add, it doesn't show any label, unless you have a -label entry in your app.properties. Don't even have such a property file, but yes - it shows a label (just tried it again to make sure). In your example down th

Re: Adding extra rows to a BeanEditForm / extra columns to a Grid (T5!)

2007-12-14 Thread Tobias Wehrum
ge it, but giving null, an empty string or a whitespace results in a tapestry exception stating "Parameter label was null or contained only whitespace". Regards, Tobias Thiago H de Paula Figueiredo schrieb: On Fri, 14 Dec 2007 13:57:54 -0200, Tobias Wehrum <[EMAIL PROTECTED]> wrote

Adding extra rows to a BeanEditForm / extra columns to a Grid

2007-12-14 Thread Tobias Wehrum
Hello everyone! Is there a way to add extra rows to a BeanEditForm and extra columns to a Grid - rows / columns which doesn't represent a property of the given model? I need it to edit or show values which are relevant for the model, but like I said not included in it, as well as present links

Re: Adding extra rows to a BeanEditForm / extra columns to a Grid (T5!)

2007-12-14 Thread Tobias Wehrum
Tobias Wehrum schrieb: Hello everyone! Is there a way to add extra rows to a BeanEditForm and extra columns to a Grid - rows / columns which doesn't represent a property of the given model? I need it to edit or show values which are relevant for the model, but like I said not included

Problem with not-showing-property in BeanEditorForm

2007-11-22 Thread Tobias Wehrum
erty customer from start because it doesn't know how to render it. If I try to override the presentation of another property, this other property will be overwritten with the correct content. How can I solve this? Is there any way to tell the BeanEditForm

Re: T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Tobias Wehrum
enium. As a convenience, it implements all the methods of the Selenium interface (buts adds improved exception reporting). That interface has changes since 0.8.1. On Nov 15, 2007 10:08 AM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: Hi there, I have a problem including the AbstractIntegrati

T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Tobias Wehrum
Hi there, I have a problem including the AbstractIntegrationTestSuite in my little tapestry application. Maybe the solution is easy, but being a newbie to java development in general and Tapestry as well as Selenium in particular doesn't help at all to solve it - so I ask you. The code is as

Re: T5: Loop with variables

2007-11-06 Thread Tobias Wehrum
the Loop component to point to this property. However, IntegerRange is an internal class, so be aware that it is free to change at any time. Or you could return a List or int[] of the desired values from the method. On Nov 6, 2007 9:02 AM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: Hi a

T5: Loop with variables

2007-11-06 Thread Tobias Wehrum
Hi all, I am currently working with the tutorial 1 at the Tapestry 5 homepage ( http://tapestry.apache.org/tapestry5/tutorial1/hilo.html ). Now, one of the further tasks there is "As we guess, we're identifying ranges of valid and invalid numbers. Can you only show valid guesses to the user?