Re: Loop inside a form

2007-03-22 Thread Sam Gendler
when a form rewinds, the loop executes over the set of objects, in the same order in which they were originally iterated, so the fields naturally populate the correct object as the form rewinds. For this reason, it is important that the collection you are iterating over does, indeed, remain in th

Loop inside a form

2007-03-22 Thread Bogdan Calmac
Hi all, I'm trying to understand how the Loop component works inside a form and I couldn't find too much info in the docs. My main curiosity is how do the right objects get updated when the form is submitted. I would guess it has something to do with the PrimaryKeyEncoder, but how does tapestry k

Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert
Try getAbsoluteURL() on the page link...It's opening a new window with a url of ("/pingfederate" - which your browser won't know how to handle so it defaults to thinking you must be trying to open a local file. On 3/22/07, Mark Stang <[EMAIL PROTECTED]> wrote: Well, I am having a bit of a proble

RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Well, I am having a bit of a problem. I used the code that Jesse sent me and it returns: /pingfederate/app?service=page/SamlEndpointsPopUp Which when I pass to the popup, opens a popup that doesn't contain my page, but rather my main menu... And in my log file, I get: 16:12:39,456 WARN [Resou

RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Jesse, Thanks for the response. It looks like it will put an .html into a pop-up. It requires a URL, I have a .page that I am displaying. Thoughts? Thanks! Mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message-

Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert
Well...Looking at the javadocs I'd say you need to do something more like: cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle, page, new Object[] { "Your .page name "}).getURL() You can also try getAbsoluteURL() if it's not putting the http//context/ stuff in there for some reason

RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
This is what I get: HTTP ERROR: 404 Not Found RequestURI=/pingfederate/help/account-number-help.html Powered by Jetty:// I specifically used an html page that doesn't exist. I guess the question is how I would specify a .page... Mark J. Stang Senior Engineer/Architect office: +1 303.468.29

Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert
That's annoying...Well..However you get a reference to the page service in T3 (i don't remember off hand ) should be enough for you to do a getLink().buildURL() call to generate a url for that page. On 3/22/07, Mark Stang <[EMAIL PROTECTED]> wrote: Jesse, Thanks for the response. It looks like

RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Thanks, I will see what I can monkey up...:-) Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thu 3/22/2007 3:24 PM To: Tapestry users Subject: Re: Tapestry 3.0.3

Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert
You can use the PopupLink component to have them go to the same window name or control it yourself via target="". (i think) On 3/22/07, Mark Stang <[EMAIL PROTECTED]> wrote: Hi, Every time I have an external link pop up a window, I get a new window. Even if it is the same link. Any idea how t

Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Hi, Every time I have an external link pop up a window, I get a new window. Even if it is the same link. Any idea how to have it re-use the same window? I think it is a parameter to the javascript, but I don't know how to pass the value down to the javascript. Application Endpoints thanks,

.script unique function names

2007-03-22 Thread Tomić Mirko
I have function in my .script file whose name is set unique with let: insertRow Now I need to insert that unique function name in html file. How to that? I inserted script component in jwc: and inserted tableScript in html. ---

Re: T5: contributing to component class resolver

2007-03-22 Thread Peter Beshai
Sorry, I can't help with your tapestry problem, but to search the tapestry page you can use google. Simply enter (in the google search field on google.com) "site:http://tapestry.apache.org/tapestry5/ %s" where %s is your search query. On 3/22/07, Ted Steen <[EMAIL PROTECTED]> wrote: After creat

Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Stephan Schwab
Howard Lewis Ship wrote: > > By putting the ASO class into the pages package, Tapestry created an > enhanced version of the ASO class, as if it were a component. This > enhanced class is in the class loader used for pages, components and > mixins. The reference to the ASO in the page is a refer

T5 Action link

2007-03-22 Thread Anjana Gopinath
Hi, If i add an action link to a plain html button, it looks like the event method is getting called twice. was wondering whether this is a bug or we are not supposed to put an actionlink around a button? value="Add"/> @OnEvent(value = "action",component="select1") void addApps(){

Re: T5: PageTester and Spring Integration

2007-03-22 Thread Kent Tong
skipoles.co.uk> writes: > So, my question... is there a way that I can get spring integration working > within PageTester? If not, then some thoughts... You may want to create a feature request at https://issues.apache.org/jira/browse/TAPESTRY and upload a test case. There is no guarantee tha

T5: contributing to component class resolver

2007-03-22 Thread Ted Steen
After creating a component library and packing it all in a jar I tried to include the jar in my T5 project and contribute the ComponentClassResolver like this public static void contributeComponentClassResolver(Configuration configuration, Log log) { log

AW: [T4] PageRedirectException

2007-03-22 Thread Holger Stolzenberg
If you can try something like this to get a fresh instance of the desired page. @InjectPage("NameOfMyPage") public abstract MyPage getMyPage(); With the instance acquired by this method you can do something like this (pseudo code): IPage page = getMyPage(); Use the page instance to get the

Help: TAPESTRY-1379 solved

2007-03-22 Thread Andrea Chiumenti
Hi, since here @ work was very anoying, I've played with tapestry and I've found the solution and discovered other two bugs. For what concerning TAPESTRY-1379 it's sufficinet to append to the bottom of core.js the line dojo.require("tapestry.widget.Widget"); and it magically works ;-) The other

Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Howard Lewis Ship
By putting the ASO class into the pages package, Tapestry created an enhanced version of the ASO class, as if it were a component. This enhanced class is in the class loader used for pages, components and mixins. The reference to the ASO in the page is a reference to the enhanced version, not the

Re: T5 - Property binding enhancements

2007-03-22 Thread Howard Lewis Ship
After you de-reference a value from a list, you end up knowing only type java.lang.Object which contains no accessible properties. Generics is a fiction enforced at compile time, but there is some runtime information that Tapestry might be able to leverage to allow this kind of reference. On 3/22

T5 - Property binding enhancements

2007-03-22 Thread Bogdan Calmac
Hi Howard, Is there any plan to support List and Map access in the prop: binding for the final release of Tapestry 5? This would be nice and save a lot of boilerplate code in the page classes, because lists an maps appear quite frequently in the data model for a page. I'm thinking of something li

Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Bogdan Calmac
Hi Peter, I see your point. Any class in the pages package can be accessed through an URL and it doesn't make sense to store anything else than pages there. But on the other hand, the behaviour that I reported is totally obscure and not in line with the nice error reporting of tapestry. If someb

Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Anjana Gopinath
I beleive you are supposed to put only your page classes in the page folder. Refer tapestry 5 tutorial, page 19. Anjana Gopinath On Mar 22, 2007, at 10:07 AM, Bogdan Calmac wrote: After creating my own ASO object, I kept getting the ClassCastExeception below when accessing it, until

Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Peter Beshai
Not 100% sure, but it seems like Tapestry has designated my.package.pagesfor Tapestry Pages (convention) and my.package.components for Tapestry Components (convention again). So Tapestry will treat the classes in those packages as pages/components respectively. It is likely a better idea anyway to

Re: Tapestry 5 tutorial: classes don't exist on package

2007-03-22 Thread Peter Beshai
Perhaps try public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add("tapestry.supported-locales", "en"); } ApplicationDefaults not RequestHandler. contributeRequestHandler takes an OrderedConfiguration not a MappedConfiguratio

T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Bogdan Calmac
After creating my own ASO object, I kept getting the ClassCastExeception below when accessing it, until I had the inspiration to move the ASO in a different package than the page. Then it worked fine. Is this just a bug or intentional design? This is the exception (with 5.0.3). The ASO reader thr

Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Andreas Andreou
Please, go ahead and add a JIRA request for this - describing what you have in mind... Andreas Pardeike PS: I would really love to see some error checking on this. It's really hard to catch any errors resulting from asset linking problems. -- -- Andreas Andreou - [EMAIL

[T4] PageRedirectException

2007-03-22 Thread Kolesnikov, Alexander GNI
I am using contrib:Table to display the results of a search. If a search returns zero results, I want to treat this as an error and to show the search form again with this error in the same way as if it was a faulty user input validation. It seems to me that a good solution to throw a PageRedirect

Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Andreas Pardeike
Maximilian, Now we fond another posting http://www.nabble.com/Why-is-IE6-freezing--tf3377078.html#a9399366 that reports the excat same problem, but the solution given seems not to work for us. You referred to my posting. Here are comments on quotes of it: On 20 mar 2007, at 18.30, baleksan

AW: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Maximilian Weißböck
> -Ursprüngliche Nachricht- > Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. März 2007 19:44 > An: Tapestry users > Betreff: Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing! > > IE is a little less forgiving with javascript errors, so if > you get one all o

Re: Default ServiceParameterNames

2007-03-22 Thread Skorpien126
Damn ... as simlpy as silliy. Turn off UrlRewrite ... make a decoder before the service and in decode Method of the decoder I make my mapping. Skorpien126 wrote: > > Hi @All, > some of my colleagues asked me, why we have to map the indexed > ServiceParamters.(we use "FriendlyUrls") ... so I a

Re: Strange Exception page T4.1.1

2007-03-22 Thread Andreas Andreou
Tapestry 4.1.2-SNAPSHOT added a nice css for the (ajax) exception page, so it's much more readable by default. On 3/22/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Using Firebug I managed to nail down the problem. Great tool. On 22.3.2007 9:06, Borut Bolčina wrote: > The exception page renders

Antwort: Re: Session

2007-03-22 Thread Kristian Marinkovic
i think a better strategy is to reduce the sesion-timeout in the web.xml to lets say 2mins and to implement a javascript function that issues periodic keep-alive requests every 1.5mins or so. thus preventing the session from expiring... and when someone closes his browser the session will not sta

Re: Strange Exception page T4.1.1

2007-03-22 Thread Borut Bolčina
Using Firebug I managed to nail down the problem. Great tool. On 22.3.2007 9:06, Borut Bolčina wrote: The exception page renders over the content. When I click the plus icon of the Tree component (Tacos 4.1.0-SNAPSHOT on Tapestry 4.1.1) I get unreadable exception page. Can this exception be w

Re: Session

2007-03-22 Thread Tim Sawyer
I believe the timeout for this is configured through web.xml 30 Hello, > > We have an admin side with a user login etc. > > The problem is, the session times out after soo many minutes(we run under > tomcat) of being idle and they user has to log back in. > > Is there any way to make this ind

Maven jetty problem

2007-03-22 Thread Christoph Jaeger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I tried to follow the steps described on http://tapestry.apache.org/tapestry5/quickstart/ to get a first small tapestry application running. The first maven command worked without problems (mvn archetype:create ...), at least it told me that ev

T5: No tag rendered when using enum

2007-03-22 Thread Erik Johansson
Hi, when using the Select component with an Enum the options within the select tag wont render the tag. Example: The enum public enum TestEnum { ONE,TWO,THREE; } will render the select One Two Three Is this a known bug? (I'm not familiar with JIRA so I do

Strange Exception page T4.1.1

2007-03-22 Thread Borut Bolčina
The exception page renders over the content. When I click the plus icon of the Tree component (Tacos 4.1.0-SNAPSHOT on Tapestry 4.1.1) I get unreadable exception page. Can this exception be written out to console, so I can read it? Here's how it looks like: http://flickr.com/photo_zoom.gne?id=