Re: T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Robert Zeigler
Right. You can certainly use request parameters, and the poster, in fact, / is/ using request parameters currently. But that's painful. You have to manage the parameters and wrangle type coercion manually. If you're doing this a lot, that's a lot of repetitive boiler-plate code. Which sound

Re: T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Geoff Callender
Have you tried "Request Parameters". They do the job well. See: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/state/passingdatabetweenpages1 Geoff http://jumpstart.doublenegative.com.au On 09/05/2009, at 8:29 AM, Robert Zeigler wrote: That should work. I think it c

Re: Apache Tapestry on Google Maps

2009-05-08 Thread Andreas Andreou
btw, there's also this map: http://www.ohloh.net/p/4017 On Sat, May 9, 2009 at 3:11 AM, Howard Lewis Ship wrote: > 've shared a map with you called Apache Tapestry Users: > You can view and edit this map at > http://maps.google.com/maps/ms?source=s_q&hl=en&geocode=&ie=UTF8&oe=UTF8&msa=0&msid=1066

Apache Tapestry on Google Maps

2009-05-08 Thread Howard Lewis Ship
've shared a map with you called Apache Tapestry Users: You can view and edit this map at http://maps.google.com/maps/ms?source=s_q&hl=en&geocode=&ie=UTF8&oe=UTF8&msa=0&msid=106662057515738259524.0004696f8216ba268b74a Note: To edit this map, you'll need to sign into Google with this email addre

Clarification on discardPersistentFieldChanges

2009-05-08 Thread Chuck Kring
Hi, I have a question about ComponentResources discardPersistentFieldChanges. The page in question is a configuration page and contains a large number of components that each have some persisted state and I'm currently calling discardPersistentFieldChanges on the page onSubmit.. I want to m

Re: T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Robert Zeigler
That should work. I think it could be interesting, though, if tapestry provided an additional persistence mechanism, ala: @Persist(PersistenceConstants.QUERY_PARAMETER) private String p; @Persist(PersistenceConstants.QUERY_PARAMETR) private Integer irn; which would then take the values in p

Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA

2009-05-08 Thread Thiago H. de Paula Figueiredo
Em Fri, 08 May 2009 18:33:28 -0300, Shing Hing Man escreveu: After some debugging, I am not convinced that ClassNameLocatorImpl.scanURL(String, Collection, URL) line: 117 caters for URL like org.jboss.virtual.plugins.vfs.VirtualFileURLConnection:vfszip:/home/matmsh/installed/jbosses/jboss-5

Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA

2009-05-08 Thread Shing Hing Man
Thanks for the reply! I have tried your suggestion, but I still have the same error. After some debugging, I am not convinced that ClassNameLocatorImpl.scanURL(String, Collection, URL) line: 117 caters for URL like org.jboss.virtual.plugins.vfs.VirtualFileURLConnection:vfszip:/home/matmsh/ins

Re: T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Thiago H. de Paula Figueiredo
Em Fri, 08 May 2009 17:39:07 -0300, Andy Buckley escreveu: So, is there a Tapestry meachnism for doing something like this? I can do it right now, but I'd rather not have to fight the system. I would expect Tapestry to do it a bit prettier than what I've shown, maybe *something* like ..

T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Andy Buckley
Hi, I've been using T5 to develop a scientific database Web frontend, and a requirement is that Web visitors need to be able to bookmark pages, i.e. the parameters of what paper, dataset, etc. have to be in the URL. Having looked at the Web documentation and the Packt book, it seemed that PageLi

Re: Loop in javascript?

2009-05-08 Thread Christine
Thiago H. de Paula Figueiredo wrote: One way of doing it: in your page or component class, @Inject RenderSupport and generate Javascript through RenderSupport.addScript(). I made the loop in javascript, then added an Ajax.Request to get json data from an onEvent in my component. The ajax request

Re: FW: Tapestry upgrade

2009-05-08 Thread Andreas Andreou
http://jira.opensymphony.com/browse/OGNL but it looks like it's inactive for some time now... I'd say it's fastest to rename getMessage(org.springframework.context.MessageSourceResolvable key) in your base class or write a simple binding prefix that has the request injected to it and that simply

Building osgi application by using Tapestry-OSGi

2009-05-08 Thread donf yang
Hi, I was just built a new project for osgi solution of tapestry, and the quickstart has posted in tapestry-osgi's google group. Tapestry-OSGi Quickstart: http://groups.google.com/group/tapestry-osgi/web/building-osgi-application-by-using-tapestry-osgi Tapestry-OSGi Google Group: http://groups.g

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
Em Fri, 08 May 2009 13:15:21 -0300, Eric Ma escreveu: Yes, that did the trick. Thanks for the suggestion. Looks like the lifecycle of a component has changed between T5.1 and T5.0. The lifecycle itself hasn't changed, but its internal implementation was optimized by Howard since 5.1 --

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
Thiago H. de Paula Figueiredo wrote: > > Try using lazy loading on getPage(), avoing calling > resources.getPage() in your field initializer. Something like: > > public BasePage getPage() { > if (page == null) { > page = (BasePage) resources.getPage(); > } > retu

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
Try using lazy loading on getPage(), avoing calling resources.getPage() in your field initializer. Something like: public BasePage getPage() { if (page == null) { page = (BasePage) resources.getPage(); } return this.page; } -- Thiago -

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
Thiago H. de Paula Figueiredo wrote: > > It looks like your base component class invokes Component.getPage() > inside its constructor. Am I right? Could you post its code here? > > Thiago > You are right. Code is in the attached file. Thanks, http://www.nabble.com/file/p23448232/component_c

FW: Tapestry upgrade

2009-05-08 Thread Howard.Kelsey
Hi I think this is a bug. I’ve had no response from you, should I just raise it as a bug? Any advice would be appreciated. Regards Howard -- This email and any files transmitted with it are confidential and proprie

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
It looks like your base component class invokes Component.getPage() inside its constructor. Am I right? Could you post its code here? -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comma

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Howard Lewis Ship
No guesses, not without seeing some code. You're doing something in an initializer that's odd. On Fri, May 8, 2009 at 8:14 AM, Eric Ma wrote: > > After upgrading from 5.0.18 to 5.1.0.5, custom components on my page now > cause the following exception: > > 2009-05-08 11:08:15,184, ERROR, > [org.ap

[T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
After upgrading from 5.0.18 to 5.1.0.5, custom components on my page now cause the following exception: 2009-05-08 11:08:15,184, ERROR, [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler], line 62, Processing of request failed with uncaught exception: Exception assembling root

Re: [ANNOUNCE] Apache Tapestry 5.1.0.5 (stable release)

2009-05-08 Thread Howard Lewis Ship
I'm re-running the site build now. On Fri, May 8, 2009 at 1:04 AM, Sergey Didenko wrote: > Hi, > > a number of links including > http://tapestry.apache.org/tapestry5.1/apidocs/ does not work > > Regards, Sergey > > - > To unsubsc

Re: t5: use image for submit

2009-05-08 Thread Geoff Callender
Another option, using css: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/styling/linksandsubmits1 Geoff On 08/05/2009, at 5:54 PM, DH wrote: Another option: DH - Original Message - From: "Ulrich Stärk" To: "Tapestry users" Sent: Thursday, May 07, 2009 6

Re: Encoding with exceptions

2009-05-08 Thread Christian Edward Gruber
That's also possible. I could do that and then render... hmm... Christian. On 8-May-09, at 03:18 , Otho wrote: Is html input mandatory? Id not, how about using bbcode or some wiki markup language? 2009/5/7 Christian Edward Gruber Yeah - I don't, at least not yet. I probably will use su

Re: Pause after successfull authentication

2009-05-08 Thread Peter Stavrinides
This is not an uncommon scenario, but surely this is a question for the Spring - Aecgi forums. you will get a better answer there. >Now i override the onSuccessfullAuthentication method and put all extra role >checking and other stuff in it I don't use Aecgi, but I don't think thats the correct ap

Re: Pause after successfull authentication

2009-05-08 Thread aahsanJamshaid
Peter Stavrinides wrote: > >> Is there any configuration in acegi/spring to wait until request fwded >> manually >> or adding some delay. > Unfortunately I can't help you, you have not given sufficient information, > please post your code and explain clearly what you are trying to do. If > this

Re: Pause after successfull authentication

2009-05-08 Thread aahsanJamshaid
Ok let me try to explain my scenario in detail: I have custom filter extending AuthenticationProcessingFilter. So as user tries to logon i call attemptAuthentication method of custome class. After user is authenticated SUCCESSFULLY i have to: 1- made extra checks based upon roles assigned to use

Re: t5: model with same entry got two 'selected'

2009-05-08 Thread Ulrich Stärk
You could try with option groups. See http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry5/SelectModel.html Uli Am 08.05.2009 11:02 schrieb Angelo Chen: Hi, In a drop down list using select, I have a list of countries, to make it easier, I put some common countries in the

t5: model with same entry got two 'selected'

2009-05-08 Thread Angelo Chen
Hi, In a drop down list using select, I have a list of countries, to make it easier, I put some common countries in the top, rest at bottom, the common countries got repeated as well, now when Tapestry 5 generates the html code, it generates two 'selected' entries in the html list, this is logica

Re: Solving the T5 Documentation Dilemma

2009-05-08 Thread Sergey Didenko
-1 for forums +1 for wiki Wiki is much better to create "persistent" knowledge, imho. We can try it open for guests thus it would be easier to start for occasional users. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apa

Re: [ANNOUNCE] Apache Tapestry 5.1.0.5 (stable release)

2009-05-08 Thread Sergey Didenko
Hi, a number of links including http://tapestry.apache.org/tapestry5.1/apidocs/ does not work Regards, Sergey - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.a

Re: t5: use image for submit

2009-05-08 Thread DH
Another option: DH - Original Message - From: "Ulrich Stärk" To: "Tapestry users" Sent: Thursday, May 07, 2009 6:01 PM Subject: Re: t5: use image for submit > Am 07.05.2009 11:57 schrieb Angelo Chen: >> Hi, >> >> Is there a way to use image for submit? seems, we have only > t:typ

Re: Pause after successfull authentication

2009-05-08 Thread Peter Stavrinides
> Is there any configuration in acegi/spring to wait until request fwded > manually > or adding some delay. Unfortunately I can't help you, you have not given sufficient information, please post your code and explain clearly what you are trying to do. If this is a spring configuration issue then

Re: Encoding with exceptions

2009-05-08 Thread Otho
Is html input mandatory? Id not, how about using bbcode or some wiki markup language? 2009/5/7 Christian Edward Gruber > Yeah - I don't, at least not yet. I probably will use such an editor > later, but I need a protected output system so I'm not using > since that's quite dangerous when writi

Re: t5: usual practice for page test

2009-05-08 Thread Peter Stavrinides
Mostly our pages are kept quite clean and simple, so we write unit tests for business logic mostly, I use JUnit and sometimes Easymock for that. > using test driven development for pages? No, (although thinking of looking at PageTester at some point) but we do some black box testing using Seleni