Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
It just stroke me that it could have to with page abbreviations. I have problems with meeting/answers and meeting/list I.e. MeetingAnswers.java & MeetingList.java / MeetingAnswers_sv.properties & MeetingList_sv.properties which both are accessed with short hand format But it works if I skip the

Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
MeetingAnwsers_sv.properties i mean 2012/2/23 Gunnar Eketrapp > It does not have to do with the casing so it must be something else. > > E.g. page MeetingAnswers.java does not pick up texts > from MeetingAnwsers_sv.txt when running in Ubuntu > > The strange thing is that it only some of the page

Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
It does not have to do with the casing so it must be something else. E.g. page MeetingAnswers.java does not pick up texts from MeetingAnwsers_sv.txt when running in Ubuntu The strange thing is that it only some of the pages have this problem. I will add a MeetingAnwsers.txt now to se if that fix

classloader error constructing helper classes within service

2012-02-22 Thread Paul Stanton
Hi all, I'm in the process of upgrading a project from t5.1 to t5.3.2. I have one service which creates a bunch of helper objects and stores them in a map. The helper classes save an instance of another service as a field. public MyServiceImpl(MyOtherService service) { format

Re: Is there any way to use rows per page in loop?

2012-02-22 Thread Steve Eynon
RowsPerPage is defined in the GridPager, the Grid just publishes it up. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/GridPager.html The GridPager is quite independent of Grid and may be used on it's own, well, in combination with a Loop component - sharing th

Re: Vulnerability Scanners

2012-02-22 Thread Steve Eynon
(I remember the T5.1 patch wasn't pretty, by the way - the URL parser just threw a new RuntimeException so we decorated the service and had to parse the exception message looking for "the character 'X' at position X is not valid.") -- Steve --- "If at first you don't suc

Re: Vulnerability Scanners

2012-02-22 Thread Steve Eynon
Hiya, On these errors I usually patch T5 to return a 404 instead - that was with some old T5.1 apps, I'm pretty sure we've done the same with T5.3 but I'm not near the code at the moment... Steve --- "If at first you don't succeed,    so much for skydiving!" On 22

Re: best way to patch tapestry?

2012-02-22 Thread Steve Eynon
Cool, I'll try this myself - for I'm also source patching the same DateField bug (TAP5-841) in multiple projects. It just hadn't annoyed me enough to look for a solution! I also like the idea of a 302 for mis-versioned assets - nice thinking! Steve. --- "If at first yo

Re: Simplest way to detect change of Select component?

2012-02-22 Thread Thiago H. de Paula Figueiredo
Answering the question in the subject With JavaScript, the same way as you would do with static HTML. Answering the test of the e-mail: Select has a zone parameter, just as Form and EventLink do. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant,

Re: component documentation regression

2012-02-22 Thread Howard Lewis Ship
That's a bug; the TextField component needs the @tapestrydoc JavaDoc tag. A strange thing, since I thought I had checked all the components to ensure that they have their @tapestrydoc tag. On Wed, Feb 22, 2012 at 4:47 PM, Chris Mylonas wrote: > Hi Paul, > > The new bunch was to be updated.  Simil

Re: Demo for http://intercommitweavesdemo.intercommit.cloudbees.net/

2012-02-22 Thread ksrijith
Thanks didn't see that there.. - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Demo-for-http-intercommitweavesdemo-intercommit-cloudbees-net-tp5506442p5506710.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: component documentation regression

2012-02-22 Thread Chris Mylonas
Hi Paul, The new bunch was to be updated. Similar question was asked on Igor's blog: http://blog.tapestry5.de/index.php/2011/11/09/javadoc-plugin-for-component-reference-documentation/ That's why I'd like to generate my own javadocs :) See what comes out in the mvn javadoc:javadoc - but I don't

Simplest way to detect change of Select component?

2012-02-22 Thread George Ludwig
I'm trying to implement a select object to control a filter to a grid form. For example, a drop down list box of employee first names followed by a grid of employee data. If I select a first name from the DDLB, I'd like to see only those employees with that first name. I haven't found a good way t

component documentation regression

2012-02-22 Thread Paul Stanton
Hi Tapestry team, I'm confused as to why the 'current' documentation for tapestry components in some cases (eg textfield) does not contain information regarding parameters and example usage we used to have? new: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/component

Re: best way to patch tapestry?

2012-02-22 Thread Paul Stanton
Thanks Thiago, I managed it by decorating ComponentInstantiatorSource and overriding DateFieldStack. No patched jar required now! On 22/02/2012 8:50 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 21 Feb 2012 22:55:30 -0200, Paul Stanton wrote: Hi Thiago, Hi, Paul! I'd love to not ha

Re: Dynamic forms

2012-02-22 Thread Lenny Primak
Something ate your exception (probably Nabble) its not in your post. On Feb 22, 2012, at 6:56 PM, Richard Frovarp wrote: > I'm trying to create dynamic forms that will be configured from an outside > source. I know this question has been asked in the past, but I don't quite > get the answers. I

Dynamic forms

2012-02-22 Thread Richard Frovarp
I'm trying to create dynamic forms that will be configured from an outside source. I know this question has been asked in the past, but I don't quite get the answers. I've tried to create my own BeanModel, but I'm getting exceptions when copying the code from here: http://tapestry.apache.org/b

Re: Demo for http://intercommitweavesdemo.intercommit.cloudbees.net/

2012-02-22 Thread Lenny Primak
https://github.com/intercommit/Weaves Right on the bottom of the page On Feb 22, 2012, at 5:15 PM, ksrijith wrote: > Hi, > I've seen reference for the following demo on the forum quite a few times: > http://intercommitweavesdemo.intercommit.cloudbees.net/ > > Can anyone tell me if I could refer

Demo for http://intercommitweavesdemo.intercommit.cloudbees.net/

2012-02-22 Thread ksrijith
Hi, I've seen reference for the following demo on the forum quite a few times: http://intercommitweavesdemo.intercommit.cloudbees.net/ Can anyone tell me if I could refer to the code for the application shown in this demo. And if so can you please point me to the source for the same. Thanks, Srij

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread Josh Canfield
If all you are after is storing your sessions in the database, have you considered configuring it in the app server? Both Jetty and Tomcat have solutions. On Wed, Feb 22, 2012 at 8:07 AM, tompeter wrote: > Hi, > > I am also trying to use an alternate storage strategy but Tapestry doesn't > load

Re: tapestry-security w/ Remote Login

2012-02-22 Thread Kalle Korhonen
On Wed, Feb 22, 2012 at 11:50 AM, George Christman wrote: > Hi Kalle, I apologize,  I misspoke in my previous post. Our remote sso > doesn't serve as an authorization protocol, I meant to say it serves as a Well, it's partly an authorization protocol if it returns you roles specific to the local

Re: Localization question / problem ...

2012-02-22 Thread Howard Lewis Ship
There are some cases where you need to have the app.properties file for app_sv.properties to be picked up. However, when you hit a problem like this, it is most likely the case of the file name. Windows is case-insenstive, Ubunutu is case sensitive. Thus MyPage.java means MyPage.properties, and

Re: tapestry-security w/ Remote Login

2012-02-22 Thread George Christman
Hi Kalle, I apologize, I misspoke in my previous post. Our remote sso doesn't serve as an authorization protocol, I meant to say it serves as a Authentication protocol. We are using web.xml filters to trigger Authentication. Once the user has been authenticated, the service returns a user Id and l

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread tompeter
Thanks a lot for your help! I was asuming I could add my Strategy to the configuration like this: public void contributeApplicationStatePers**istenceStrategySource( MappedConfiguration configuration, @Local MyStatePersistenceStr**ategy sessionStategy) {

Re: tapestry-security w/ Remote Login

2012-02-22 Thread Kalle Korhonen
Federatedaccounts (http://tynamo.org/tynamo-federatedaccounts+guide) is exactly for these use cases. You would have to implement your own authentication provider. It's interesting that your remote SSO service serves as an authorization protocol as well, I'd probably handle it as a merged local auth

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread Howard Lewis Ship
There's also a symbol that defines the default strategy when @Persist is used without specifying a strategy; this could allow you to easily switch over your application to use your new strategy without editing existing pages and components. On Wed, Feb 22, 2012 at 9:45 AM, Thiago H. de Paula Figue

tapestry-security w/ Remote Login

2012-02-22 Thread George Christman
Hello, our company has decided to build a sso service for all our applications. Up until now, I've always used the tapestry-security project, however I was just directed to add a filter to my web.xml which would handle authorization and role management. The remote login just redirects the user to a

RE: [T5.3] Contributing a Service Override using addInstance()

2012-02-22 Thread Blower, Andy
Yes that works! I had no idea you could do such a thing as I'd not see it anywhere in the documentation. I don't know if an addProxy() method is worth adding, our requirements seem quite unusual. If it would be useful to other Tapestry users then maybe. Thanks for the reply Howard. -Origi

Re: Tapestry ignoring filter in web.xml

2012-02-22 Thread George Christman
Resolved, needed to use /* rather than app -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-ignoring-filter-in-web-xml-tp5505535p5505715.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Tapestry ignoring filter in web.xml

2012-02-22 Thread George Christman
Hello, I've added a couple filters to my web.xml and they don't seem to be invoked. Any ideas? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-ignoring-filter-in-web-xml-tp5505535p5505535.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread tompeter
Hi, I am also trying to use an alternate storage strategy but Tapestry doesn't load mine. Could you give me a hint on what I did wrong? 1. I created my own Strategy in TPGStatePersistencyStrategy.class which implements ApplicationStatePersistenceStrategy and extends SessionApplicationStatePersist

duplicate javascript in one page with a component

2012-02-22 Thread Bo Gao
I have a page which import a.js, and I have a component in this page, the component also import a.js. This component is in a prograssiveDisplay. The result is I get 2 same a.js with different url. This makes some of my function not work. The urls are: http://localhost:8080/assets/0.4.0/stack/en

Tapestry 4 - Bean already defined problem

2012-02-22 Thread zeewolf
Hello, I'm having a problem deploying a Tapestry 4 web application in Tomcat 5/Websphere community edition. The war deploys fine on the contain, but when I attempt to access a page, I get the following: Bean delegate has already been declared at (at Annotation @org.apache.tapestry.annotations.Bea

Re: Is there any way to use rows per page in loop?

2012-02-22 Thread George Christman
RowsPerPage exist within the Grid component. See documentation. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Grid.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-use-rows-per-page-in-loop-tp5504972p5505243.ht

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread karthi
Is there any other way to achieve this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-pass-page-name-with-parameters-in-pagelink-tp5504751p5505240.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Html tag not get layout properly?

2012-02-22 Thread karthi
OutputRaw component solves my problem thank you... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Html-tag-not-get-layout-properly-tp5505092p5505223.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Html tag not get layout properly?

2012-02-22 Thread karthi
Am a bb developer but for the past two days I have been working in tapestry full-fledged & am new to this, so sorry for my silly questions in this forum!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Html-tag-not-get-layout-properly-tp5505092p5505145.html Sent from the

Re: Html tag not get layout properly?

2012-02-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Feb 2012 11:30:02 -0200, karthi wrote: Hi, Hi! When outputting HTML from a class, you should use the OutputRaw component. By the way, why are you using the style attribute instead of proper CSS for the elements? -- Thiago H. de Paula Figueiredo Independent Java, Apache Ta

Re: Html tag not get layout properly?

2012-02-22 Thread Ditso
As the guy in the previous post said, try to read some documentation. For images you probably should use an asset or somelike in tapestry regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Html-tag-not-get-layout-properly-tp5505092p5505110.html Sent from the Tapestr

Html tag not get layout properly?

2012-02-22 Thread karthi
Hi, I have a table like below ${imageExistence} java file: public String getImageExistence() { String imageTag = null; String image = newsItems.get(currIndex).getImgUrl(); if(null != image) { imageTag = ""; } else { imageTag = null; } return imageTag; }

Re: Is there any way to use rows per page in loop?

2012-02-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Feb 2012 10:38:35 -0200, karthi wrote: Hi, Hi! How to split up the datas per page in tapestry loop like below? Again, please read the documentation before posting. There isn't a rowsPerPage parameter, so the answer is no. ChenilleKit has a PagedLoop component. -

Is there any way to use rows per page in loop?

2012-02-22 Thread karthi
Hi, How to split up the datas per page in tapestry loop like below? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-use-rows-per-page-in-loop-tp5504972p5504972.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread karthi
I hardcoded that start index & end index in my code and I just get the context value in a string and print in OnActivate method -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-pass-page-name-with-parameters-in-pagelink-tp5504751p5504883.html Sent from the Tapestry -

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread Ditso
My best guess is that you forgot the endIndex. Either hardcode it in the code or make the page in a way you do not need the end index regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-pass-page-name-with-parameters-in-pagelink-tp5504751p5504872.html Sent from

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread karthi
Thank you for your reply... I've used that context="3" & when I called topnews I retrieved that value 3 but in UI all my layout are get collpased. What would be the reason? After revert back this changes everything works as previous? So this context param would have caused this issue? -- View th

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread Chris Mylonas
Hi, Maybe try something like this... https://tapestry.apache.org/page-navigation.html Read about page activation and have a look at the bottom of that page example. When you do something like: More News You are passing this context into your "next page". The next page, in your case TopNews. T

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread Dusko Jovanovski
tml: More news java: @Inject private PageRenderLinkSource pageRenderLinkSource; public Link getLinkWithParameters() { Link link = pageRenderLinkSource.createPageRenderLink(MoreNews.class); link.addParameter("startIndex", "3"); link.addParameter("endIndex", "11"); return link; } I would recommen

How to pass page name with parameters in pagelink

2012-02-22 Thread karthi
Hi, I have a page link like this: More News It works fine here I have a page with a name TopNews - invokes a page http://localhost:8080/News/topnews I want to pass parameters with this page name like below: More News - here I mean I want to invoke a page like http://localhost:8080/News/topnews?

Create local tapestry javadocs

2012-02-22 Thread Chris Mylonas
Hi Tapestry List, How does one generate their own tapestry javadocs with maven? I just went to my .m2/repository/org/apache/tapestry/tapestry-core/5.2.6 directory where the pom.xml is and ran mvn javadoc:javadoc but it failed. Cheers Chris

Re: best way to patch tapestry?

2012-02-22 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Feb 2012 22:55:30 -0200, Paul Stanton wrote: Hi Thiago, Hi, Paul! I'd love to not have to patch but how can I override the DateField component (java & js) via tapestry-ioc? Decorate or advise or override ComponentClassResolver so its resolveComponentTypeToClassName() metho

Re: best way to patch tapestry?

2012-02-22 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Feb 2012 20:15:52 -0200, Chris Mylonas wrote: Hi Thiago Hi! __With respect__, and I don't know the innards of Tapestry-IoC so well or the problems some of you have - Do you do this and it works, or is it more this-is-how-it-should-be-done-but-YMMV? It does work. Tapestry's

RE: forForm with ComponentEventLinkTransformer

2012-02-22 Thread Jens Reufsteck
Sorry, but there hasn't been an answer to this question - I can't figure out, how to set the forForm-Parameter correctly. Would be grateful for any hint Jens -- Jens Reufsteck -Original Message- From: Jens Reufsteck [mailto:jens.reufst...@staufenbiel.de] Sent: Friday, February 17, 201