Re: DISabling the back button

2006-11-29 Thread Jiří Mareš
Hi, the header forcing browser not cache the page are: Pragma: No-cache Cache-Control: no-cache,no-store,max-age=0 Expires: 1 Jirka PS: It makes problems with downloading file (attachments) in IE via HTTPS, so you have change header for attachemnt downloding for IE to: Cache-Control: max-age

AW: DISabling the back button

2006-11-29 Thread Peter Schröder
you wont find anything like that in http-headers, because its a browser thing. if you enable caching of websites for your browser it will show you a cached version of the site, if you use the back-button. you said, that you want to use it on a terminal? so you have controll about how to configur

Re: Re: Re: @Asset problem

2006-11-29 Thread Srinivas Yermal
Thank you all... Will try them all out. Srini. On 11/28/06, Sam Gendler <[EMAIL PROTECTED]> wrote: Incidentally, in our case, we have a mechanism within spring that will detect the existence of a context file in a location outside the war file and use that to override bean definitions in the co

Re: Multiple browser windows causing session issue

2006-11-29 Thread Dirk Markert
Daniel, I googled for conversations/cookies but really did not find any good links. Do you have any links to the frameworks/conversation technique you mentioned? Dirk 2006/11/29, Daniel Tabuenca <[EMAIL PROTECTED]>: This problem is typical with almost all frameworks. Most frameworks provide s

Re: DISabling the back button

2006-11-29 Thread Nick Westgate
I usually solve (1) with a "Flow Synchronizer". Search this list, and see: http://www.junlu.com/msg/85270.html For (2) I think the only safe way is to close the window. Perhaps you can ask the user to do this, and then do it via a timer in javascript anyway. Using forms might force a refresh whe

Re: Re: insert html tag

2006-11-29 Thread Sam Gendler
or Insert component with raw="ognl:true" will preserve htl tags instead of escaping them. --sam On 11/29/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Use InsertText for <= Tapestry 4 or just "Insert" with a mode of break >= 4.1. http://tapestry.apache.org/tapestry4.1/components/general/insert

Re: Re: dynamic image assets?

2006-11-29 Thread Sam Gendler
Personally, I tend to treat large, dynamic collections of images as though they are stored on some other server, since many apps will find that such collections may require things like a content delivery network in order to efficiently deliver them to users as the collection grows. So I write a c

Re: Re: DISabling the back button

2006-11-29 Thread Sam Gendler
gmail used to disable the back button. Now they've hacked it to do the 'correct' thing. It is apparently browser dependent, however, as the back button still sends you to the previous SITE when using gmail in Safari. In firefox, they must be trapping the back button and sending an ajax request.

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
I concur, the two StateObjectFactories and the tests that I wrote were very light classes. They essentially just copy/inject their immutable state to the new instance they are generating -- functionality that mimics, in a very inflexible and watered down way, the DI facilities provided by Hivemind

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
>> Are you referring to the simplicity of implementing the StateObjectFactory or bypassing >>it? > >Implementing. I concur, the two StateObjectFactories and the tests that I wrote were very light classes. They essentially just copy/inject their immutable state to the new instance they are genera

Re: Multiple browser windows causing session issue

2006-11-29 Thread Robert Breidecker
I agree. It seems like this is something Howard could get into Tapestry 5. I believe JBoss Seam is already supporting something like this. --- Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > This problem is typical with almost all frameworks. > Most frameworks > provide scoping data to the request

Re: DISabling the back button

2006-11-29 Thread Daniel Tabuenca
How does Tacos do it? I see the @DirtyFormWarning won't let you click the back button if you changed the form (It will popup a warning instead). I believe they use javascript with window.onbeforeunload event. Here is a link: http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html An

Re: DISabling the back button

2006-11-29 Thread Cyrille37
Mats Henricson a écrit : 2. After a logout. We don't want our users to be able to use the back button to see the last page, from which he clicked the "Log out" link. We know that going somewhere from that brought back page would lead the user to the login page, but none the less, it would

Re: Multiple browser windows causing session issue

2006-11-29 Thread Daniel Tabuenca
This problem is typical with almost all frameworks. Most frameworks provide scoping data to the request or to the session. In order to handle thee kind of things better you need to have intermediate scopes (called conversations in some frameworks). As you already noticed, turning off cookies uses

Number translator message in 4.1

2006-11-29 Thread Kevin Menard
Hi, Is there any particular reason why the number format message in the number validator changed in 4.1? It used to be: " must be a numeric value." And now is: " must be a numeric value. Format is #." It's not clear to me that adding this format message is going to be beneficial to any of our

Re: DISabling the back button

2006-11-29 Thread Jesse Kuhnert
throw a RedirectException ? You could optionally also probably remove items from their browser history via javaxscript (I think? ) , but the redirect is probably easiest. On 11/29/06, Mats Henricson <[EMAIL PROTECTED]> wrote: This may be elementary, but we have two cases where we don't want our

Re: Multiple browser windows causing session issue

2006-11-29 Thread Peter Beshai
I'm not an expert on this stuff, but tapestry-flash may be of use for the previous/next page problem. http://howardlewisship.com/tapestry-javaforge/tapestry-flash/ -- Peter Beshai Pure Mathematics Student University of Waterloo From: Robert Breidecker <[EMAIL PROTECTED]> Reply-To: "Ta

Re: Multiple browser windows causing session issue

2006-11-29 Thread Robert Breidecker
Sorry, I guess I should have described my application better. Two application windows are not required. However, the users would like to be able to open multiple instances of the application at one time. In addition to the wizard, I was also having problem with my table component and its previous

DISabling the back button

2006-11-29 Thread Mats Henricson
This may be elementary, but we have two cases where we don't want our users to be able to use the browsers back button: 1. After a submit of a form, when we've sent them to a new page saying "Your blah blah blah has been submitted successfully". Allowing users to go back and submitting again,

Re: Dynamic Working with Tapestry...

2006-11-29 Thread Skorpien126
Ron you do a great Job here!!! Now I understand a little bit more how the delegate works. It could be compared with "ExceptionHandler" which catchs "Exceptions" thrown by the included subcomponents. (unimportant how deep the hierachy is). But Now I have another Prob. I have multible Textareas in

Re: Multiple browser windows causing session issue

2006-11-29 Thread Robert Breidecker
Sorry, I guess I should have described my application better. Two application windows are not required. However, the users would like to be able to open multiple instances of the application at one time. In addition to the wizard, I was also having problem with my table component and its previous

Re: Multiple browser windows causing session issue

2006-11-29 Thread Jesse Kuhnert
That's just how it works. With cookie based session management you are identified by a single cookie object that would be available to the server regardless of which tab you operated in (this is a side effect of how they work with browser clients, not the sever) . With jsessionid's the identificat

Multiple browser windows causing session issue

2006-11-29 Thread Robert Breidecker
I have a stateful Tapestry application which includes a wizard that steps the user from one page to another to collect input data. If I run my application in two browser windows (or tabs) within the same browser session, each instance of my application steps on the session variables in the the oth

Re: Problem with back/foward button Tapestry 4.1.1

2006-11-29 Thread Jesse Kuhnert
It doesn't support that functionality, yet. On 11/29/06, Moon Soldier <[EMAIL PROTECTED]> wrote: Hi all, i've updated Tapestry 4.0.2 with tacos to Tapestry 4.1.1 snapshot. I ask me how do i support the back/foward button stuff after comitting my Form. Example: ... some component stuff ...

Re: StateObjectFactory and

2006-11-29 Thread Jesse Kuhnert
Implementing. http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/engine/state/InstantiateClassStateObjectFactory.java?view=markup On 11/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: --> how simple / easy it is to replace StateObjectFacto

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
--> how simple / easy it is to replace StateObjectFactory itself Are you referring to the simplicity of implementing the StateObjectFactory or bypassing it? Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: dynamic image assets?

2006-11-29 Thread spamsucks
I actually did this exact same thing and used stitches for it. Person registers and uploads their image. My library will resize the image in different formats to be used by the imagedisplay components in the tapestry pages. One thing to remember is that outputting gif images is tricky, and I

Re: insert html tag

2006-11-29 Thread Jesse Kuhnert
Use InsertText for <= Tapestry 4 or just "Insert" with a mode of break >= 4.1. http://tapestry.apache.org/tapestry4.1/components/general/insert.html On 11/29/06, wong wayne <[EMAIL PROTECTED]> wrote: Hi all I would like to know is it possible to insert a string with html tag into a page, so th

insert html tag

2006-11-29 Thread wong wayne
Hi all I would like to know is it possible to insert a string with html tag into a page, so that it can insert display format of string. e.g abc 123 will display at next line. Any hint would be appreciate, thanks regards wayne __

Re: dynamic image assets?

2006-11-29 Thread Christian Haselbach
Zitat von Brian Long <[EMAIL PROTECTED]>: > the "pathToImage" returned by my subscriber dataobject is exactly that, a > path to the image. I'd like to use this in the asset component instead of > the path: > > Right, thats why I meant the parameter binding. > > > > > > Change to:

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
Ron Piterman gmx.net> writes: > > check if all yaour attributes are closed properly. > Cheers, > Ron Thanks Ron, that's exactly what it was, missing " on a attribute close! Didn't spot it when I checked the listing. John Ron Piterman gmx.net> writes: > > check if all yaour attributes are

Re: dynamic image assets?

2006-11-29 Thread Brian Long
Gareth, while storing the images in the databases is a possible(?) solution, it's one I'd like to avoid for the time being as I want to keep my database size as small as I can, therefore I just want to store the paths to the files for now. Christian, the "pathToImage" returned by my subscriber

Problem with back/foward button Tapestry 4.1.1

2006-11-29 Thread Moon Soldier
Hi all, i've updated Tapestry 4.0.2 with tacos to Tapestry 4.1.1 snapshot. I ask me how do i support the back/foward button stuff after comitting my Form. Example: ... some component stuff ... In Tacos i could set a back/forward component (DirectLink). How does the back/forward button

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread Ron Piterman
check if all yaour attributes are closed properly. Cheers, Ron John Coleman wrote: This code: Save the record and return Produces this error: Tag on line 125 is a dynamic component, and may not appear inside an ignored block. Is there a simple way around this, I would rather lik

Re: @Secured from tapestry-acegi

2006-11-29 Thread Cyrille37
Thanks a lot James. I did not know about hivemind-acegi-dao.jar. I'll try your tips soon. regards, cyrille James Carman a écrit : If you want to use a DAO-based (where you get auth information from a db or something) authentication manager, you can drop in the hivemind-acegi-dao.jar file into

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread Gareth
I'd start by simplifying the page somewhat... slowly take things out I tend to use the .page file to have all the messy @If condition because it makes the html easier to read. good luck! - Original Message From: John Coleman <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Wedn

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
I can't find a mistake, but I wonder if this @Any code higher up is the real issue as it surounds the whole section, but then I used that at top of page and no problem? Is there something I can use in eclipse to help me with the syntax, like Spindle? John http://www.w3.org/TR/xhtml1/DTD/xhtm

Re: @Secured from tapestry-acegi

2006-11-29 Thread James Carman
If you want to use a DAO-based (where you get auth information from a db or something) authentication manager, you can drop in the hivemind-acegi-dao.jar file into your classpath. Then, you have to provide an implementation for the hivemind.acegi.dao.UserDetailsService service point:

Re: dynamic image assets?

2006-11-29 Thread Gareth
why not store the assets in a database, and write the image direct as raw? - Original Message From: Brian Long <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, 29 November, 2006 10:51:01 AM Subject: dynamic image assets? Hi, I'm sure there's a simple solution to this problem,

Re: dynamic image assets?

2006-11-29 Thread Christian Haselbach
Zitat von Brian Long <[EMAIL PROTECTED]>: > > > Try The value is already an ognl expression (if not declared otherwise). However, this will still depend on named assets in the page. I.e., there must be an asset named like what subsriber.pathToImage evaluates to. You probably want yo

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread Nick Westgate
This is likely to be a typo in code surrounding this block causing parse error. Cheers, Nick. John Coleman wrote: This code: Save the record and return Produces this error: Tag on line 125 is a dynamic component, and may not appear inside an ignored block. Is there a simple way

dynamic image assets?

2006-11-29 Thread Brian Long
Hi, I'm sure there's a simple solution to this problem, but I've yet to figure out just what it is! I have an image associated with each subscriber that registers with my application, and on login I'd like to show them their picture along with their subscriber details. I know I can add an asset

Re: AW: Problems with the UTF-8 standard

2006-11-29 Thread Sam Gendler
You can't do that if you want localization, though. Really, the best way to solve this is to just use a multi-byte character encoding to put messages in the .properties file. That means writing them so that they look correct when viewed with a multi-byte capable text editor. Assuming that Java's

Re: AW: Problems with the UTF-8 standard

2006-11-29 Thread Nick Westgate
That probably helps you if you are declaring the .page encoding to be UTF-8. I.e. But you can set the encoding for templates globally by setting a property in the .application file (and also locally for libraries, pages etc) with: As mentioned by others, this has nothing to do with HTML en

AW: Problems with the UTF-8 standard

2006-11-29 Thread Holger Stolzenberg
I had a similar problem. I am using tap4.0.2 but maybe this helps. I think you should try to specify the submit as an explicit component in the .page with the value as a component binding, like the following example: -Ursprüngliche Nachricht- Von: Michael Siebert [

Re: Page redirect with exception

2006-11-29 Thread Sam Gendler
throw new RedirectException(link.getURL()); --sam On 11/28/06, Renat Zubairov <[EMAIL PROTECTED]> wrote: Hello, How can I create a Page Redirect (not forward) with exception. I know that listener method may return ILink, then page redirect will happen, but what is analogue of the PageRedirect

Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread Sam Gendler
The problem isn't your else block (I don't think). I've only seen this when I've got a component wrapped in a $remove$ block. I've cetainly used the syntax and @Insert components inside an @Else component with no trouble, even when the else block doesn't execute. --sam On 11/29/06, John Colema

Re: Re: Problems with the UTF-8 standard

2006-11-29 Thread Sam Gendler
But, utf-8 vs html entity aside (and cyrille has it right), you can tell tapestry not to escape html characters in an Insert component by using the 'raw' attribute and setting it to true. That will cause the msg to be copied directly to the outputstream, including characters like '&,' which should

span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
This code: Save the record and return on line 125 is a dynamic component, and may not appear inside an ignored block. Is there a simple way around this, I would rather like to use wherever I like. John - T

Re: Problems with the UTF-8 standard

2006-11-29 Thread Cyrille37
Michael Siebert a écrit : Hi All, I have the following problem: My html-templates are designed with the UTF-8 standard For example the german 'ä' is coded as 'ä' Hello, I think 'ä' is not from the UTF-8 standard but a HTML entitie. If all you pages are encoded in UTF-8 and html page heade

Problems with the UTF-8 standard

2006-11-29 Thread Michael Siebert
Hi All, I have the following problem: My html-templates are designed with the UTF-8 standard For example the german 'ä' is coded as 'ä' But if the tapestry engine parses a submit-button component with an 'ä' within the value (or label), this letter isn't parsed as 'ä' but as 'ä' because the '&' i

Re: @Secured from tapestry-acegi

2006-11-29 Thread Cyrille37
James Carman a écrit : Ahh yes. You do need to tell Acegi how you want to authenticate, so you need to have an implementation defined for the AuthenticationManager service point I define. Hello James, Could you please give me a little example, or write a little howto somewhere (tapestry's wik

Re: handling extern-asset Javascript

2006-11-29 Thread 西村 俊夫
I made a component for this purpose. Here are the lines of the source code. protected void renderComponent(IMarkupWrite writer, IRequestCycle cycle) { if (!cycle.isRewinding()) { PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle,this); pageRenderSupp