Re: Encoding problem (UTF-8)

2008-04-30 Thread Foror
j> I develop in Ubuntu and changing all to UTF-8 fixed both problems, but on j> Windows dose not works with the JSONObject. The database is on UTF-8, all j> data is saved ok, the only problem I get is when returning data on a j> JSONObject. Some problem with TextStreamResponse (TAPESTRY-2058). Fix

RE: T5: Why isn't there any validate property for RadioGroup ?

2008-04-30 Thread Partogi, Joshua
So Howard, Will there be any plans in the future to support validation for RadioGroup? :) Thanks in advance -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 10:56 PM To: Tapestry users Subject: Re: T5: Why isn't there any validate prope

Re: T5: OpenQA Maven repository location changed

2008-04-30 Thread Christian Edward Gruber
A transition period where both repos were active wouldn't have hurt either. :( Christian. On 30-Apr-08, at 21:00 , Josh Canfield wrote: Also... the 1.0-beta build appears to be incorrectly deployed for remote-control... hopefully they'll fix it eventually

Re: T5: OpenQA Maven repository location changed

2008-04-30 Thread Josh Canfield
Also... the 1.0-beta build appears to be incorrectly deployed for remote-control... hopefully they'll fix it eventually On Wed, Apr 30, 2008 at 4:30 PM, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: > That's not a maven problem, that's a problem with their repository move. > OpenQA put a damn

Re: T5: OpenQA Maven repository location changed

2008-04-30 Thread Christian Edward Gruber
That's not a maven problem, that's a problem with their repository move. OpenQA put a damned html page up for the move, rather than an http redirect, the way the spec says they should. (The http spec). It bit us in the ass today too. :( Christian. On 30-Apr-08, at 15:38 , Joel Wiegman wr

T5: Ajax update of one form field based on change to another form field?

2008-04-30 Thread Franz Amador
Hi, all. I asked about this a while ago, and there was no good answer then, but I'm hoping that there are new options now. I have a bean that holds information about a database connection. I'm editing it with BeanEditForm. One of the fields is the database type, an enum that renders as a dropdo

Re: page activation + components

2008-04-30 Thread Josh Canfield
Here's an app that does what I believe is trying to be done: // Page public class News { @Property private Integer _newsId; public void onActivate(Integer newsId) { _newsId = newsId; } public Integer onPassivate() { r

Re: page activation + components

2008-04-30 Thread Chris Lewis
I do hope we've missed a simpler way, but I don't think it's surfaced yet. Regarding parameters, how would that address the issue? NewsQuote displays a collection of items as links that represent selectable items (expressed as links). The action must be taken based on the user's selection, so a com

Re: page activation + components

2008-04-30 Thread Josh Canfield
> I mean really, how is that any simpler than > dealing directly with query parameters? Hehe... I have to admit that I was solving a much more complicated problem than the original question, probably brought on by an earlier request about dynamic component rendering... I was shooting for completel

Re: page activation + components

2008-04-30 Thread Chris Lewis
this the last of it 4) In our embedding page class, News, we have an event handler to be notified of the selection by handling the "viewitem" event: void onViewitem(long id) { this.currentItem = newsSource.getItemById(id); logger.info("got " + this.currentItem.getTitle

Re: page activation + components

2008-04-30 Thread Chris Lewis
My emails keep getting rejected - I'm sorry to break this up so much. 3) The component writes out links with generated action link URLs, firing the "itemselected" action. We catch handle that action in the component and propagate it by firing a new event, "viewitem": void onItemselected(long

RE: page activation + components

2008-04-30 Thread Joel Wiegman
I may be chiming in a little late on this, but if Janos is just trying to communicate activation context values to child components, isn't this what the @Parameter annotation of a component is for? http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Just kick me out if I'm

Re: page activation + components

2008-04-30 Thread Chris Lewis
(one more coming after this - sorry) 1) There is a service in place - likely a DAO - for accessing the news items (type NewsItem) and is wired up via autobinding in the app module: public static void bind(ServiceBinder binder) { binder.bind(NewsSource.class, NewsSourceExampleImpl.

Re: page activation + components

2008-04-30 Thread Chris Lewis
I see how this whole push on/pull off environment will solve the issue, but it just seems so nasty. I mean really, how is that any simpler than dealing directly with query parameters? I point at this only to highlight that perhaps Janos has brought to light a legitimately rough edge in T5, or else

Re: T5: OpenQA Maven repository location changed

2008-04-30 Thread Daniel Jue
Just noticed that too... Here are the 3 new repos: OpenQA_Release OpenQA Release Repository http://archiva.openqa.org/repository/releases/ OpenQA_Snap

T5: OpenQA Maven repository location changed

2008-04-30 Thread Joel Wiegman
All, I'm sure someone has called this out already, but I noticed that OpenQA's repository (that tapestry-test relies on) has changed locations. Looks like it switched from http://maven.openqa.org to http://archiva.openqa.org/repository/releases/ . I'm guessing this would only get fixed in the ne

Re: page activation + components

2008-04-30 Thread Josh Canfield
Are you trying to keep the news id out of the url? Doesn't sound like it from your response to not doing the redirect. Since that's the case, why not add it to the page context? I suppose if you were building a portal with several components then keeping track of component parameters could get unw

Re: Question about T5 and OpenSessionInViewFilter

2008-04-30 Thread Toby Hobson
That fixed it! ... thanks Jonathan Toby - Original Message From: Jonathan Barker <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Wednesday, 30 April, 2008 6:18:46 PM Subject: RE: Question about T5 and OpenSessionInViewFilter You might want to try reversin

Re: Encoding problem (UTF-8)

2008-04-30 Thread Marcus
Hi, We're using autocomplete mixin with no problem, maybe this help. http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding Marcus

Re: tapestry web app , deployed in tomcat. Need to set as default web app

2008-04-30 Thread Josh Canfield
I deploy my app as ROOT.war in tomcat to get the root context. I'm not sure that is a better option, I'm just throwing it out there. Can you give us more information? Like what the urls are that are failing? Have you tried stepping through the tapestry root dispatcher to see where it might be goin

RE: Question about T5 and OpenSessionInViewFilter

2008-04-30 Thread Jonathan Barker
You might want to try reversing the order of your filter and filter-mapping declarations in web.xml to put OpenSessionInViewFilter first. Other than that, I would need to see your applicationContext.xml file. Jonathan > -Original Message- > From: Toby Hobson [mailto:[EMAIL PROTECTED] >

Re: T5Components help - RatingField exception

2008-04-30 Thread algirdas
Understood. Thank you very much! -- View this message in context: http://www.nabble.com/T5Components-help---RatingField-exception-tp16970977p16987402.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Question about T5 and OpenSessionInViewFilter

2008-04-30 Thread Toby Hobson
Hi guys, Anyone know af any "gotchas" re: using this filter in T5? I'm trying to display a collection of objects in my page but i'm getting hibernate LazyInitialization errors. Here's the relevant code: Start.tml ${photo.na

Re: T5: New Validators and server side validation

2008-04-30 Thread lebenski
+1 I would find this functionality extremely useful. Server-side validation onBlur has so many applications. At the moment the solution I have come up with is: 1) Use the T5Components OnEvent annotation, and attach a blur event to the field. 2) Do my server side validation (in this case checki

Re: T5: Why isn't there any validate property for RadioGroup ?

2008-04-30 Thread Howard Lewis Ship
Because input is so constrained. Even so, I expect to add support for validation, even though only "required" makes sense. Validation is tricker for radio groups, because there is not corresponding client-side element (as there is for ) which means that any client-side validation is a special cas

AW: Encoding problem (UTF-8)

2008-04-30 Thread Martin Kersten
In Windows the Writer and Reader using CP as default encoding/decoding style. Seams like the JSONObject uses such Writer/reader without setting the format explicitly. Got the same Issue with JDOM once. Check your JSONObject.write(...) methods. Where does your Writer comes from and what is i

Re: page activation + components

2008-04-30 Thread Filip S. Adamsen
Nope, that's an often used pattern in web applications, that is, it's a broader version of the Post/Redirect/Get pattern. It's normally only used for forms, but since you can do stuff in components actions that corresponds to what you would do on a form submit, it makes perfect sense. And it ma

Encoding problem (UTF-8)

2008-04-30 Thread jgn
Hi. I am having a problem with encoding. I was using ISO-8859-1 but the Autocomplete did not display the right way some characters (accutes) so I decide to change all to UTF-8 (including the -Dfile.encoding=UTF-8, changing the editor to UTF-8 and the URIEncoder to the connectors on the server.xml)

Re: page activation + components

2008-04-30 Thread Chris Lewis
Ok, now I understand :-). I believe the tapestry way of doing this is to use events, so your NewsQuote would be responsible for listing your news pieces and handling the selection. When one is made, NewsQuote will fire a component indicating the selection, and any components or pages listening for

T5: Problem with tap-acegi accessDenied redirect

2008-04-30 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi List, i'm using the tapestry-acegi component in version 1.0.4-SNAPSHOT in my project (T5.0.11) to manage access control. While securing of listener methods is working since this Snapshot release, i receive a 404 Error | The requested resource (/c

Re: dojo problem

2008-04-30 Thread Andreas Andreou
For the first issue, you're probably using @If, @Else or @For somewhere... Take a look at their renderTag parameter, you'll probably want to set it to false http://tapestry.apache.org/tapestry4.1/components/general/if.html For the second problem, how are you declaring your DatePicker component? Yo

Re: page activation + components

2008-04-30 Thread János Jarecsni
This did the trick! Superb, it works just like I want it :) Actually, having 2 network roundtrips for a single requests sounds a little bad doesn't it? cheers janos 2008/4/30 Filip S. Adamsen <[EMAIL PROTECTED]>: > That's pretty hard to do without some kind of persistence because of the > redire

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi Chris, no! that's the essential part. the same page redisplayed. with the "News" component changing state and showing the requested news. cheers, janos 2008/4/30 Chris Lewis <[EMAIL PROTECTED]>: > Much clearer :-). When you say "when it comes to my 'News' component" do > you mean news page?

dojo problem

2008-04-30 Thread raveendra varma
Hi all, I am upgrading my tapestry project from 4.0.2 to 4.1.5.I made all the java related changes.But i have a problem with dojo generated javascript.As4.1 version of tapestry dojo comes in built with tapestry jars , dojo generated script has some errors like below

Re: page activation + components

2008-04-30 Thread Chris Lewis
Much clearer :-). When you say "when it comes to my 'News' component" do you mean news page? That is, clicking a 'more' link from NewsQuote leads to a News page? János Jarecsni wrote: > Hi Chris, > > I try to explain :) > Say, you have a "NewsQuote" component, which shows a few lines from the 5 >

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi and thx for the info! why would you discourage from doing so? (I will read the page you sent now). cheers janos 2008/4/30 Filip S. Adamsen <[EMAIL PROTECTED]>: > That's pretty hard to do without some kind of persistence because of the > redirect that happens between the component action and th

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi Chris, I try to explain :) Say, you have a "NewsQuote" component, which shows a few lines from the 5 latest news. At the and of each quotations, there a "More" link. Now, when the user clicks on this link (an action link, for that matter), the NewsQuote component will set a request scope info s

Re: page activation + components

2008-04-30 Thread Chris Lewis
Honestly it's difficult for me to imagine a situation where I'd do that because it seems to violate a degree of encapsulation that tapestry imposes as a "freeing law" of the framework. The epicenter of that being that one should not think in terms of low-level idioms such as request parameters, and

Re: page activation + components

2008-04-30 Thread Filip S. Adamsen
That's pretty hard to do without some kind of persistence because of the redirect that happens between the component action and the page render. There's of course tapestry.suppress-redirect-from-action-requests, but I would strongly recommend AGAINST using that. http://tapestry.apache.org/tap

T5 and Spring Security 2.0 integration

2008-04-30 Thread Partogi, Joshua
Dear all, Is there anyone working on T5 and Spring Security integration here? I'd like to ask about the security interceptor that doesn't work if integrated with T5. Best regards, IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended

Re: T5: Page + render parts based on previous action

2008-04-30 Thread Filip S. Adamsen
Hi Leon, A combination of flash persistence and selected events should do the trick: .tml: (add stuff) (edit stuff) .java: @Property @Persist("flash") private boolean add; @Property @Persist("flash") private boolean edit; void onSelectedFromAdd() {

Re: T5: Obtain custom annotation from page class

2008-04-30 Thread Filip S. Adamsen
Hi, I use this: Component page = componentSource.getPage(pageName); Secured secured = page.getClass().getAnnotation(Secured.class); Secured is my own annotation. It works just fine. Remember to put @Retention(RetentionPolicy.RUNTIME) on your annotation. -Filip Adam Zimowski skrev: I'm

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi, I looked everywhere for usage of request scope variables, but found nothing (maybe I'm impatient a bit :)... Is it really that unrealistic to have two components in a page, one (A) having an action link eventhandler where it would set some attribute for the request only (not the session!) and

Re: page activation + components

2008-04-30 Thread Filip S. Adamsen
This is not what @Retain is for. If you use it, the value won't be cleared out at the end of the request. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/annotations/Retain.html -Filip Michael Gerzabek skrev: 6) @Retain could do the job. Your String will be available until the

Re: page activation + components

2008-04-30 Thread Filip S. Adamsen
Nope, you're exactly right. -Filip Blower, Andy skrev: This is not what I understood 'perthread' scope to be. I thought that it meant that each thread using a service gets its own instance of the service to use, even though that instance may not be the same as any previous instance it used.

RE: T-4.1.6 - Ognl Bug or Tapestry Bug ?

2008-04-30 Thread Ken in nashua
Thanks Andy... I will log that when I get a chance later today. I knew it was a bad one. The whole app comes down. I will pear that expression down. Thanks for the confirmation. Good news... Tapestry-4.1.6 Gallery Widget pending... bout' another week. 95% done. Runs beautiful. Best regards

Re: T5 image submit

2008-04-30 Thread Jack Nuzbit
Thanks Daniel, that worked perfectly. On Tue, Apr 29, 2008 at 5:43 PM, Daniel Leffel <[EMAIL PROTECTED]> wrote: > Just look at the source for the regular submit and simply change the > template to be type=image. > > I also added a parameter to the component so I could pass it the image to > use.

Re: page activation + components

2008-04-30 Thread János Jarecsni
Maybe the request approach does not work, as T5 has two requests action+render following each other? And the request attributes are reset between them? Janos 2008/4/30 János Jarecsni <[EMAIL PROTECTED]>: > No, I think then I misunderstood you :) > The essential thing, is I'd like to have somethi

tapestry web app , deployed in tomcat. Need to set as default web app

2008-04-30 Thread Mahen Perera
Hi guys, A quick one. I have this web app , done using T5. Its currently deployed under localhost:8080/myappcontextpath in Tomcat. Now I need to make it the default web app in tomcat. Basically, get the app deployed under localhost:8080/. So, I added the following configurations to t

Re: T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-30 Thread lebenski
Sorry for the shameless bump, but I'd really appreciate some help on this. lebenski wrote: > > Hi everyone, > > Ok this is what i'm looking for: A user types in their desired username, > when the onBlur event happens on that input field (i.e. focus switches to > the next field), IF the name i

RE: T5: Display Zone after form Submission?

2008-04-30 Thread Partogi, Joshua
Thanks Tobias, I'm going to try it out. I saw that 'zone' property from the Form component but didn't have any clue how to implement it. best regards, -Original Message- From: Tobias Wehrum [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 4:20 PM To: Tapestry users Subject: Re:

Re: T-4.1.6 - Ognl Bug or Tapestry Bug ?

2008-04-30 Thread Andreas Andreou
Yea, looks like an ognl issue with your ognl:( (index >= cursor) && (index < (cursor + @[EMAIL PROTECTED](collection.size,itemsPerPage) )) ) expression... My only advice is to simplify it (move parts to java code) and log an issue at http://jira.opensymphony.com/browse/OGNL (stating your ognl vers

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: Tapestry 5 NetBeans 6 plugin - is it worth?

2008-04-30 Thread Andreas Andreou
Hi, i had done https://nbtapestrysupport.dev.java.net/ for NB5.5 and Tapestry 4.0-4.1 I too did it as an exercise... to see how NB worked. So it doesn't really have an exciting feature. It would just let you easily setup a tapestry project, register all tapestry dtd, allow autocomplete in xmls and

Re: page activation + components

2008-04-30 Thread János Jarecsni
No, I think then I misunderstood you :) The essential thing, is I'd like to have something similar to request scoped variables... something that would be available to all components and the page itself in the same request. Intention is to avoid creating a session as far as possible. thx! cheers ja

RE: page activation + components

2008-04-30 Thread Blower, Andy
This is not what I understood 'perthread' scope to be. I thought that it meant that each thread using a service gets its own instance of the service to use, even though that instance may not be the same as any previous instance it used. In other words, nothing to do with user sessions, it's just

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi Kris, I'd like to avoid the session - as far as possible, say until login has done. What I'd like to do is to set a value in the request in one component and read that value in another component (or the page itself) (both components are in the same page). Like in the example I sent: the action l

Re: page activation + components

2008-04-30 Thread János Jarecsni
Hi there, finally I put together a minimalistic test to proof the idea. 1. I have a simple component, named SetRequestParameter, its purpose is to receive something from an actionlink (it is on its template) and set that value in a per-request way. 1.1 the template for this component http://tape

Re: page activation + components

2008-04-30 Thread Kristian Marinkovic
if you inject the Tapestry Request services - available in any pages, components and mixins - you can access the HttpSession in an abstract way via the Session interface. If you want the real stuff you can inject the RequestGlobals instance :) nevertheless i'd not use the HttpSession directly