Re: Tapestry 3 DirectLink and stateful

2007-05-02 Thread Mike Davis
Hi, The problem is that I have a page that I'd like users to be able to access with or without a session. This works fine, but calling getVisit() on that page returns null whether or not the user previously had an accessible visit object. Once a user has been to that page, calls to getVisit() from

Re: T5: SelectModel vs T4 IPropertySelectionModel

2007-05-02 Thread William Keller
Thanks for the prompt response. Do you know of an implementation that does similar to what I'm doing? I've been playing with the SelectModel and OptionGroupModel and OptionModel and their underlying implementations I don't think I'm doing this the right way. Care to share your code for this ? On

HttpSession And Hivemodule state-object

2007-05-02 Thread Yohan Yudanara
What is the difference between accessing HttpSession directly using this injection: and using hivemodule.xml state-object like this: Is there any advantages and disadvantages? Which one is recommended? Thanks..

Re: Tapestry 3 DirectLink and stateful

2007-05-02 Thread Andreas Andreou
hey, was there client persistence in Tap 3 ??? On 5/3/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Unless they are using client persistence? In which case yes, you'd lose all of it. (of course you could do something fancy like mixing it up somehow or using cookies but that's something differen

Re: Tapestry 3 DirectLink and stateful

2007-05-02 Thread Jesse Kuhnert
Unless they are using client persistence? In which case yes, you'd lose all of it. (of course you could do something fancy like mixing it up somehow or using cookies but that's something different..) On 5/2/07, Andreas Andreou <[EMAIL PROTECTED]> wrote: not, that's not correct... session is no

Re: Tapestry 3 DirectLink and stateful

2007-05-02 Thread Andreas Andreou
not, that's not correct... session is not invalidated when clicking on a DirectLink having the stateful flag set to false What exactly is the problem you're facing? On 5/3/07, Mike Davis <[EMAIL PROTECTED]> wrote: Hi all, I've been asked to do some work on a Tapestry 3 application (unfortunat

Re: T5: SelectModel vs T4 IPropertySelectionModel

2007-05-02 Thread Weisu
You can use List or TreeMap in T5.0.3. William Keller wrote: > > I briefly tried out T5 (5.0.3) yesterday and was impressed! One of the > areas > I couldn't convert my app easily though, was the Select boxes (that > required > IPropertySelectionModel). Currently, in T4 I use a global static hel

Re: Some Basic Form Handling

2007-05-02 Thread Paul Stanton
http://tapestry.apache.org/tapestry4.1/components/form/form.html in html: in java: public IPage doSubmit() {} Don Heninger wrote: I am a noob when it comes to tapestry but I am looking for some basic instruction on Form handling (not the BeanEditForm) in Tapestry 5. Can anyone point me in th

T5: SelectModel vs T4 IPropertySelectionModel

2007-05-02 Thread William Keller
I briefly tried out T5 (5.0.3) yesterday and was impressed! One of the areas I couldn't convert my app easily though, was the Select boxes (that required IPropertySelectionModel). Currently, in T4 I use a global static helper that automatically prepares my lists as per code: public class Propert

T5: SelectModel vs T4 IPropertySelectionModel

2007-05-02 Thread William Keller
I briefly tried out T5 (5.0.3) yesterday and was impressed! One of the areas I couldn't convert my app easily though, was the Select boxes (that required IPropertySelectionModel). Currently, in T4 I use a global static helper that automatically prepares my lists as per code: public class Propert

Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-02 Thread William Keller
That's a relief! It's good to know we also have a work around though. On 5/2/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Ah...That is fixed in 4.1.2 as well, but I'm glad you have a solution. On 5/2/07, William Keller <[EMAIL PROTECTED]> wrote: > > Christian, > Genius. Wrapped it around a d

Re: how to get maximum component portablity?

2007-05-02 Thread Jesse Kuhnert
If you use the keyExpression / converter / default of the For component - it will in most instances automatically detect that you are in a form and also smartly store each rendered loop iteration persistent state in a hidden form field for you. http://tapestry.apache.org/tapestry4.1/components/ge

Tapestry 3 DirectLink and stateful

2007-05-02 Thread Mike Davis
Hi all, I've been asked to do some work on a Tapestry 3 application (unfortunately I can't upgrade it!) and I'm struggling with a DirectLink/session issue. I would like to allow our users to access certain pages without session, yet still be able to return to pages that require a session, without

Re: how to get maximum component portablity?

2007-05-02 Thread Phillip Rhodes
I don't think tapestry limits the number of persistent properties for declared components, it's just the components that are defined in a For loop. Since tapestry probably reuses the component instance as it iterates through the for loop, each bind/unbind of the component is going to be bound to

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread Alexandru Dragomir
The function rpcFunction() is the async part. I'm using dojo , so the function looks like : function rpcFunction() { var kw = { url:"${urlFromClass}", load:function(type, data, evt) { // do what you want with "data" retrieved from server side

Re: how to get maximum component portablity?

2007-05-02 Thread Jesse Kuhnert
I'm not sure I understood anything from either email. Could you give an example that is more generic ? Tapestry doesn't limit the number of persistent properties that anything can have. On 5/2/07, Phillip Rhodes <[EMAIL PROTECTED]> wrote: Just wanted to add a significant point to email below.

Re: how to get maximum component portablity?

2007-05-02 Thread Phillip Rhodes
Just wanted to add a significant point to email below. Tapestry allows only one instance of a Persistent property per component per page. If you component is in a For loop and your component uses a Persistent property, Your component will be bound to the same persistant property value in each

Some Basic Form Handling

2007-05-02 Thread Don Heninger
I am a noob when it comes to tapestry but I am looking for some basic instruction on Form handling (not the BeanEditForm) in Tapestry 5. Can anyone point me in the right direction? Thanks, Don

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread Bill Holloway
Also, what do you do with yourUrl once you have it? In addition, the JSONRpcClient constructor expects to be talking to a servlet. T5 is a ServletFilter. Bill On 5/2/07, bjornharvold <[EMAIL PROTECTED]> wrote: That's great but is this asynchronous? Alexandru Dragomir wrote: > > Yes , y

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-02 Thread Ben Dotte
Ok, looks like Marcus ran into the same problem: https://issues.apache.org/jira/browse/TAPESTRY-1396 On a separate note I see OGNL Jira is sending out e-mails now.. awesome. -Original Message- From: Ben Dotte [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 1:55 PM To: Tapestry u

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread bjornharvold
That's great but is this asynchronous? Alexandru Dragomir wrote: > > Yes , you could do like this : > > template: > > > > > >rpcFunction() { > var yourUrl=${urlFromClass} >. >} > > > > component class : > > @Inject > private ComponentResources resources; > > p

Re: JAVAFORGE status please

2007-05-02 Thread Patrick Moore
A note: Jesse has a 2.4-SNAPSHOT of the maven-surefire-plugin over at the apache snapshots. This works with testng 5.5 apache.snapshots http://people.apache.org/repo/m2-snapshot-repository/ On 5/2/07, Ken nashua <[EMAIL PROTECTED]> wrote: I decided to look

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-02 Thread Ben Dotte
Thanks. A good example that replicates our setup would be to have a component (not page) template with no spec directly under WEB-INF/app. It would probably also work to just put it directly into WEB-INF. -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, Ma

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-02 Thread Jesse Kuhnert
Yes I think my intention/want now is to have everything "just work" whether you stick things in context or classpath (if possible, some things aren't because of restricted filesystem access ). I'll look in to this later today, but to be sure I'm not mis-interpreting A good example would be ha

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread Alexandru Dragomir
Yes , you could do like this : template: rpcFunction() { var yourUrl=${urlFromClass} . } component class : @Inject private ComponentResources resources; public String getUrlFromClass() { return resources.createActionLInk("rpcTrigger",false).toString(); } StreamResponse

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Joe Chen
+1 both false. Upgrading from 4.0.x to 4.1.2 with the current default of true means that I have to reverse all the page logic in order for my pages to work as they did in 4.0.x. This is just a bad decision for people looking to upgrade. If the default is false, then at least pages render as the

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread bjornharvold
Sounds interesting. I looked at component events. Are you saying that you can invoke a component action based on a javascript event such as "mouseDown"? To me it seems that you can only invoke based on a submit action. I want the UI, through AJAX, to talk to some service and get JSON data back. Th

Re: Tapestry 4.1.2 / Number of Threads

2007-05-02 Thread Jesse Kuhnert
oh...and incidentally they actually end up increasing the throughput of your application - not the other way around. ...Either way it needs to be configurable to handle the scale of all the variously sized tapestry apps. On 5/2/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Those are all coming f

Re: Tapestry 4.1.2 / Number of Threads

2007-05-02 Thread Jesse Kuhnert
Those are all coming from http://jakarta.apache.org/commons/pool/ . I probably should make all of these instances completely configurable though. If you create a tapestry jira issue I'll give it higher priority. On 5/2/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi All, When runnning tapestr

Tapestry 4.1.2 / Number of Threads

2007-05-02 Thread Lionel Touati
Hi All, When runnning tapestry 4.1.2, I see lots of non application / tomcat threads being created. It seems they're tiggered by GenericKeyedObjectPool. Any idea of the consequence in a production environment ? i.e, is there a way to control the number of created threads ? Thanks for the ans

Re: JAVAFORGE status

2007-05-02 Thread Ken nashua
Thanks Jesse (had a dog named jesse once... no offense ... good dog too) :) ... could you validate my usage? I folded in the dependency and built. I cannot seem to get to my target page though on submit. Code follows below. All I did was change my listener to return an ILink and left the r

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-02 Thread Ben Dotte
It looks like the newest snapshot does fix my EventListener and Script problems. However now I am seeing the problem Andreas mentioned, where a component isn't being found where it used to get found. We are specless and our page/component templates are stored in WEB-INF/app. There was a change mad

Re: JAVAFORGE status please

2007-05-02 Thread Jesse Kuhnert
You can download it from http://howardlewisship.com/repository/ . I'm using it in a project right now and it seems to work fine for me. On 5/2/07, Ken nashua <[EMAIL PROTECTED]> wrote: I decided to look at javaforge because of the post-redirect-get solution with @Persist("flash") A small snip

JAVAFORGE status please

2007-05-02 Thread Ken nashua
I decided to look at javaforge because of the post-redirect-get solution with @Persist("flash") A small snippet was offered for the solution but I bargained for dragging in alot more. Help is appreciated abouot it's usability. owhat is the status of this project? Is it usable? owhy d

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread Alexandru Dragomir
I didn't get what you meant by jsonrpc bridge. The way i do it and it works fine is implementing an "onAction" method that returns StreamResponse : StreamResponse onActionFromYourComp() {} The method returns a json object wrapped by the StreamResponse. Mixins are useful when you want to add

Re: OGNL issues

2007-05-02 Thread Jesse Kuhnert
P.S. You're much more likely to get a working fix if you provide enough information in your report for me to re-produce exactly the same method calls /object structure. Doesn't have to be a "component" per say, just need to know method signatures / types on everything. On 5/2/07, Jesse Kuhnert <[

Re: OGNL issues

2007-05-02 Thread Jesse Kuhnert
A fix can probably be made later tonight if you file an issue here: http://jira.opensymphony.com/browse/OGNL On 5/2/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi All, I'm still having issues with OGNL with the latest OGNL / TAP ( out of SVN) combination. This simple invocation for example

RE: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Robert J. Walker
+1 default both to false, and to make changing the default apply at the app or library level rather than globally as indicated in the JIRA issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

OGNL issues

2007-05-02 Thread Lionel Touati
Hi All, I'm still having issues with OGNL with the latest OGNL / TAP ( out of SVN) combination. This simple invocation for example: ognl:getCell(column,row).fareType.name()+'_icone' always fails with the following exception nable to read OGNL _expression_ '' of [EMAIL PROTECTED]: target is

Re: Grid Component question

2007-05-02 Thread Jacob Bergoo
Hi, I tried to take your approach and did this in my java class: package com.mycompany.ui.web.action.securepages.rep; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.HashMap; import j

How to call @EventListener every 60 seconds

2007-05-02 Thread Bastian Voigt
Hi *, for my application, which just migrated to Tap 4.1 I need an AJAX request to be made every 60 seconds to refresh some of my components with new data. In Tap 4.0 I used XTile for this, but I wonder if this can be made simpler with Tap 4.1's EventListener. Is it possible to call an event l

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Tony Nelson
I personally don't care which way you default, but I do think that all tags should have the same default. It's much easier to remember to turn it on/off if I don't have to try and remember which tags have which default. I added: to my Tapestry.application and was able to get the behavior

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Howard Lewis Ship
+1 for false The problem with a hivemind contribution is that it can break behavior of framework components which is worse and more subtle than the bugs cause by changing the default value (in an alpha stage of the framework). On 5/2/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: +1 for both

how to get maximum component portablity?

2007-05-02 Thread Phillip Rhodes
Hi everyone, I am kind of stuck and would like to have some different perspectives on this problem/solutions. Using t4. I have a a list of items that I am displaying. For each order, I display an EditItemLink component. The ItemEditLink takes a parameter of an Item. The ItemEditLink contains

Where is the Path annotation

2007-05-02 Thread Joshua Jackson
Dear all, I wanted to try the guide on assets located here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html But the problem is I can not find @Path anywhere in my tapestry library. Currently I am using the latest tapestry5 (5.0.3) that is downloaded from maven repo. But then

Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-02 Thread Jesse Kuhnert
Ah...That is fixed in 4.1.2 as well, but I'm glad you have a solution. On 5/2/07, William Keller <[EMAIL PROTECTED]> wrote: Christian, Genius. Wrapped it around a div (via an @Any component) and it worked. You just saved me half a head of hair. Thank you big time. Will On 5/2/07, Christian

Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-02 Thread William Keller
Christian, Genius. Wrapped it around a div (via an @Any component) and it worked. You just saved me half a head of hair. Thank you big time. Will On 5/2/07, Christian Dutaret <[EMAIL PROTECTED]> wrote: I use @EventListener annotations to populate select boxes on T4.1.1without any problems on

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Andrea Chiumenti
+1 for both to false, adding a default behaviour into engine settings via hivemind contribution On 5/2/07, Christian Dutaret <[EMAIL PROTECTED]> wrote: Hmmm, just checked my own @If components, I have about 40% relying on the default value to true. I understand the logic behind this change, but

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-02 Thread Christian Dutaret
Hmmm, just checked my own @If components, I have about 40% relying on the default value to true. I understand the logic behind this change, but this forces me to upgrade quite a bunch of pages. so: +0.5 2007/5/2, Patrick Moore <[EMAIL PROTECTED]>: +1 default to false for @If/@Else +1 default t

Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-02 Thread Christian Dutaret
I use @EventListener annotations to populate select boxes on T4.1.1 without any problems on FF, IE6, IE7 and Opera (but not on Konqueror or Safari, but this is another discussion). IE has some known issues with ajax though. Maybe your problem is one of those: - with IE, if you update the select el

TAP 4.1.2 : Table Component and storing state on the client

2007-05-02 Thread Lionel Touati
Hi All, I'm using the table component in a client based state storage application. It seems to work fine, however I encounter some issues as the client state parameter is too big to work with IE. It sometimes also break in firefox. To overcome this issue we isually use a FormLinkRenderer, but