Tacos this.form.event has no properties

2007-07-17 Thread RachelS
I am using Tapestry 4.0.2 and Tacos 4.0.1 On a page, I have 2 forms * the first is on a component and is not ajaxy in any way * the second is on the page and is an ajax form In the component (which is not an ajax form) there is a property selection which causes the form to refresh using the onch

Recursion of components

2007-07-17 Thread Dmitry Sidorenko
Hi all. In my project I need to generate edit form for a class like this: class Section{ List subSectionList; List fieldList; } I tried to implement SectionEditComponent with following html template: value="ognl:subsection" element="tr"> section="ognl:subsection"/> elemen

RE: T5 - Authentication filter

2007-07-17 Thread Bret Gregory
That was it. Thanks for the help! -Original Message- From: Davor Hrg [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 2:27 AM To: Tapestry users Subject: Re: T5 - Authentication filter it may be usefull, please check that you havent put your ASO class in components package or pages

Re: Recursion of components

2007-07-17 Thread Francois Armand
Dmitry Sidorenko wrote: Hi all. Hi, In my project I need to generate edit form for a class like this: class Section{ List subSectionList; List fieldList; } > [...] Probably I'm doing something wrong, maybe my task should be done in completely different manner.. Any ideas? Is there any

Re: [T5] Is there a working Acegi example available?

2007-07-17 Thread Thomas Beckmann
Hi, Am Montag, 2. Juli 2007 20:21 schrieb Daniel Jue: > Dear List, > > I'm sorry, I think I found my problem, and it was a stupid one. It > took a 3rd cup of coffee to make it appear. > > I wasn't prefixing my Authority strings with "ROLE_" > > i.e. my DB had "ADMIN" stored in a field instead of

Re: T4.1.2, Ajax and EventListeners

2007-07-17 Thread Patrick Klein
Hello, again, i found a workable solution for the problem below. I simply make sure some active element is present for each element i use a listener for. Not elegant but it works. Now i stumbled over another oddity/problem: My eventlisteners look very much like @EventListener(elements={DOM-IDs}

Re: [T5] Equivilent of T4's @Any(renderInformalParameters=true)?

2007-07-17 Thread Massimo Lusetti
On 7/13/07, Dan Adams <[EMAIL PROTECTED]> wrote: In t4 you could create some random element in the middle of a bunch of other components and then render your informal parameters on it. How do you do the same thing with T5? You could look at template expansions, they could do (maybe) what you'r

RE: css overrides (ie6, ie7,firefox) ?

2007-07-17 Thread Ken nashua
Thanks kiuma, How can I integrate json into my web app? Or does it exist already in tapestry-4.0? Is it something I need to populate the context with (source code)? Or is it a deopendency that maven can scoop up? I tried to checkout your latest jfly but svn server non-existent. Best regards

[T5] Head Script Injection

2007-07-17 Thread Todd Orr
Is there any way to inject a script tag (via a block) defined in a nested component into the page's head section? I'm trying to create a component that utilizes some specific js, but I find that including the js at the point in the page where the component is rendered hacky. I think that this wou

Re: Encoding and Upload component

2007-07-17 Thread Steven Coco
Hi. I'm sorry, but don't have any solutions for you. I also don't know if there's been an issue filed on this. What my response to that posting was about, was to check the actual HTML generated by Tapestry. Doug posted that it seemed the browsers were posting bad data; but certain things in th

Re: contrib:Timeout

2007-07-17 Thread Henry Chen
Nobody had the similar experience? Can anybody help? Thank you very much in advance. Henry Chen wrote: > > I'm using the latest Tap4.1.2. > > Did anybody successfully use contrib:Timeout? > I tried to use it in the my border component as below. > > > > I set the session time in web.xml to 1

RE: Tap 4.1.2 Bug found ???

2007-07-17 Thread Marcus.Schulte
Ok, I did my best to reproduce the problem - without success. Please pay attention to how you specify the id of the form to be submitted. Maybe you can post your EventListener annotation? > -Original Message- > From: Bastian Voigt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 10, 2007 2

Properties Files and I18N Charsets (Russian symbols, and others...)

2007-07-17 Thread Steven Coco
A blog posting by Felipe Gaucho, about properties files encoding, was highlighted on the front page of Java.net. I Just thought I'd share the link quickly, since it's on the same topic as some recent threads here! http://weblogs.java.net/blog/felipegaucho/archive/2007/07/the_backslash_o.html Ci

Re: contrib:Timeout

2007-07-17 Thread Hugo Palma
Did the session actually expire after the 10 minutes wait ? What parameters did u provide to the TimeoutComponent and what are their values ? Did u check for javascript errors on the page ? Henry Chen wrote: Nobody had the similar experience? Can anybody help? Thank you very much in advance.

[T5] Passing Pages into Components

2007-07-17 Thread bayk
Hi! I have a problem passing a page into a component. Its quite simple... The component contains a form, which is responsible for the navigation (it returns a Page by the onSuccess-Method). To allow further customization I want to pass the page to the component by a parameter (e.g. nextPage). I

Re: css overrides (ie6, ie7,firefox) ?

2007-07-17 Thread Andrea Chiumenti
Ken, for jfly subversion sf has recently remapped it. Now it's on: https://tapestry-jfly.svn.sourceforge.net/svnroot/tapestry-jfly for json sample it's in T4.1.2 Autocompleter component, check it! Ciao, kiuma On 7/17/07, Ken nashua <[EMAIL PROTECTED]> wrote: Thanks kiuma, How can I integrate

Re: user access control

2007-07-17 Thread Chris Lewis
So all pages that are restricted must extend a page that implements the security checks perms and handles enforcement, correct? Regarding jaas, I've not used it before, but the HttpServletRequest#isUserInRole method uses it? It looks like this method checks against a role list in the deplyment d

Re: Tacos this.form.event has no properties

2007-07-17 Thread Andreas Andreou
tacos had to override some of tapestry's logic - so it includes its own version of form.js which doesn't does NOT add additional functions to dom nodes Anyway, try tacos.refreshForm(frmId) On 7/17/07, RachelS <[EMAIL PROTECTED]> wrote: I am using Tapestry 4.0.2 and Tacos 4.0.1 On a page, I h

Re: contrib:Timeout

2007-07-17 Thread Henry Chen
Thank you for helping. Sorry I didn't realize that the code is missing from my original post. Here it is: There is no js error. I read the generated js code and it looks like warningTime should be in millisecond. So I tried the following which didn't work either. HugoPalma wrote: > > D

Re: user access control

2007-07-17 Thread Andrea Chiumenti
yes for every Q! "It looks like this method checks against a role list in the deplyment descriptor" -> JAAS (if u mean web.xml) Ciao, kiuma On 7/17/07, Chris Lewis <[EMAIL PROTECTED]> wrote: So all pages that are restricted must extend a page that implements the security checks perms and hand

RE: contrib:Timeout

2007-07-17 Thread Henry Chen
For some reason, when I post from Nable the code parts were lost. I'm reposting from outlook this time. Thank you for helping. Sorry I didn't realize that the code is missing from my original post. Here it is: There is no js error. I read the generated js code and it looks like warningTime sh

Re: user access control

2007-07-17 Thread Chris Lewis
Thanks Kiuma, Being that when a new user is added to the system, the system should create a default role/set of perms, I don't think relying on web.xml is workable. It seems like a db table (mapped via hibernate) would be the best way, but as I'm just migrating to tapestry/java web development

RE: css overrides (ie6, ie7,firefox) ?

2007-07-17 Thread Ken nashua
ok, i am integrating dojo now... tap-4.0 I will let you know how I make out. Best regards Ken in nashua Original Message Follows From: "Ken nashua" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], users@tapestry.apache.org Subject: RE: css overrides (ie6, ie7,firefox) ? Date: Tue, 17 Jul 20

Re: contrib:Timeout

2007-07-17 Thread Hugo Palma
Are you sure ur application is creating a session ? Add this to ur page class: @InjectObject("infrastructure:request") public abstract WebRequest getRequest(); public boolean isInSession() { return getRequest().getSession(false) != null; } and print out the value of the inSessio

Re: [T5] Head Script Injection

2007-07-17 Thread Siddhartha Argollo
Hi, You could do something like this (on a render method): Element head = writer.getDocument().find("html/head"); head.elementAt(0, "link", "rel", "stylesheet", "type", "text/css", "href", this.defaultCss.toClientURL()); In this case I'm inserting a CSS link. Todd Orr wrote: Is

RE: contrib:Timeout

2007-07-17 Thread Henry Chen
Yes. I'm sure it has session. It is not a trivial application, we used session everywhere. And I used your way to confirm it too. The value is true. Here is the js part from generated html. tapestry.TimeoutTimerConfirm=function(){}; tapestry.TimeoutProlongSessionTime=function(){}; tapest

[T5] Method interceptor around component events

2007-07-17 Thread Ben Tomasini
I mentioned this before in a different context. Hope this is not redundant. I am looking to be able to wrap component events in transactions. I took a look at how the hibernate sessions are managed in tapestry-hibernate. Trouble with that model is that some of the code needs to be outside of a

is json supported in tapestry-4.0 ?

2007-07-17 Thread Ken nashua
Best regards Ken in nashua _ http://newlivehotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5] Head Script Injection

2007-07-17 Thread David Avenante
I think something like that work : @Environmental private PageRenderSupport renderSupport; @Inject @Path("myScript.js") private Asset myScript; renderSupport.addScriptLink(myScript); - To unsubscribe, e-mail: [EMA

RE: css overrides (ie6, ie7,firefox) ?

2007-07-17 Thread Ken nashua
Well it seems dojo stretchpane is the widget I am looking for. Since I am at tap-4.0 for now I will try that. Best regards Ken in nashua Original Message Follows From: "Ken nashua" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], users@tapestry.apache.org Subject: RE: css overrides (ie6, ie

Re: [T5] Head Script Injection

2007-07-17 Thread Todd Orr
Thanks! These both work, sort of. The renderSupport puts the script tag in the body tag (5.0.5). So, its not a huge improvement. While the more manual solution of adding the element works well enough, neither of these solutions easily allow arbitrary blocks to be inserted. I think this would be th

T4.1.2 When will it reach ibiblio?

2007-07-17 Thread Geoff Callender
When will 4.1.2 reach ibiblio? ie. http://www.ibiblio.org/maven2// tapestry Geoff

Re: T5 - Authentication filter

2007-07-17 Thread Marcus
Hi All, We're using onActivate() public abstract class ProtectedPage { @ApplicationState private Visit _visit; public Visit getVisit() { return _visit; } public void setVisit(Visit _visit) { this._visit = _visit; } Object onActivate() { if (!_visit.isLogged())

T5 and IE Conditional Comments

2007-07-17 Thread mogulwraith
I tried using the IE downlevel-hidden conditional comment to suggest an IE compatible version of my stylesheet but it seems Tapestry might be interfering with that. Is that what is happening here? If so is there a way to change the stylesheet based on browser? -- View this message in context: ht

RE: [T5] navigation component

2007-07-17 Thread Waldo Mendoza
Hello Ognen! I have made some similar behavior for a past Tapestry version, i think 5.0.2, but the idea should be standard: 1.- Read the files inside the pages folder that is subfolder of tapestry.app-package init param, of course filtering with a FilenameFilter, instead of that you can buil

The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread 小司
hi: The method onActionFrom[componentId] doesnot work in my application . I use OnEvent annotation does not work too.When i click the submit button ,The method onActionFromSumm is not invoked. but the method onSuccess(),setupRender(),onActivate(),pageLoaded() all work well. I can not find the mis

Re: user access control

2007-07-17 Thread damien
> Thanks Kiuma, > > Being that when a new user is added to the system, the system should > create a default role/set of perms, I don't think relying on web.xml is > workable. It seems like a db table (mapped via hibernate) would be the > best way, but as I'm just migrating to tapestry/java web deve

Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread Korben Zhang
You can use form's action. As you define, you can use: void onActionFromXxxForm(){ } void onSuccess() should work, You can choose one. On 7/18/07, 小司 <[EMAIL PROTECTED]> wrote: hi: The method onActionFrom[componentId] doesnot work in my application . I use OnEvent annotation does not wor

Re: T4.1.2, Ajax and EventListeners

2007-07-17 Thread Jesse Kuhnert
IE doesn't fire onchange events reliably for checkboxes/radios. You usually have to add in onclick for those types specifically. On 7/16/07, Patrick Klein <[EMAIL PROTECTED]> wrote: Hello, i got the following stituation at hand for which i search for a workable solution. The construct in the

Re: T5: Can I redirect to another page in setupRender()?

2007-07-17 Thread Korben Zhang
Yes, you can. See T5 core components, such as 'If'. use Object setupRender() {...} See page http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html remember boolean is an object too. On 7/17/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Access validation should be done in on

Re: [T5] Head Script Injection

2007-07-17 Thread David Avenante
To have a better controle on script you can implement like me your own DocumentScriptBuilderImpl And override the existing with this code in your app module : public PageRenderInitializer buildMyPageRenderInitializer(final List configuration,

Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread Nick Westgate
Your "Summ" component is a Submit, which does not send an "Action" event. This is not well documented - perhaps only in the reference for Submit: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html You can also check the source for Submit to see the event is "Selected". S

Re: T5: Can I redirect to another page in setupRender()?

2007-07-17 Thread Nick Westgate
No, I'm pretty sure you can't. Read the documentation again, and look at: ComponentPageElementImpl.RenderPhaseEventHandler.handleResult() It seems to confirm that returning a component will render that component and then _continue_ with the rendering phases for the current component. Render pha

Re: T5: Can I redirect to another page in setupRender()?

2007-07-17 Thread Donyee
I do this in the beforeRenderTemplate(),and works fine! boolean beforeRenderTemplate() throws IOException, ServletException { if (!isLogined()) { if (appState == null) { appState = new AppState(); }

Re: T5: Can I redirect to another page in setupRender()?

2007-07-17 Thread Nick Westgate
Previous versions of Tapestry allowed redirection exceptions to be thrown precisely to avoid code like this. (Controversial, but better IMO.) Anyway, access validation shouldn't require a client side redirect. If you are working against the framework, there's probably a better way. Cheers, Nick.

Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread 小司
Thanks to Nick Westgate and Korben Zhang.I know the mistake where I make. I confused the Action Event and Component Event. Thank you very much. 2007/7/18, Nick Westgate <[EMAIL PROTECTED]>: Your "Summ" component is a Submit, which does not send an "Action" event. This is not well documented -

RE: T4.1.2 When will it reach ibiblio?

2007-07-17 Thread Marcus.Schulte
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tapestry/tapest ry-framework/4.1.2/ ? > -Original Message- > From: Geoff Callender [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 17, 2007 11:32 PM > To: Tapestry users > Subject: T4.1.2 When will it reach ibiblio? > > When will

Re: Tacos this.form.event has no properties

2007-07-17 Thread RachelS
Thank you for your reply. So if I understand correctly, tapestry has a form.js and tacos has a form.js and when you have both a normal form and an ajax form on the page, the tacos form.js is the one that gets used? I tried adding the tacos.refreshForm instead, but now when I click on that proper

AW: Properties Files and I18N Charsets (Russian symbols, and others...)

2007-07-17 Thread Peter Schröder
thx for the link -Ursprüngliche Nachricht- Von: Steven Coco [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. Juli 2007 16:59 An: Tapestry users Betreff: Properties Files and I18N Charsets (Russian symbols, and others...) A blog posting by Felipe Gaucho, about properties files encoding,