Re: DZone's 40th Refcardz, Apache Tapestry 5.0

2009-02-05 Thread Michael Gerzabek
Awesome! Thank you Howard! Lewis Ship schrieb: DZone Refcardz are a series of free cheat sheets for developers, written by book authors and industry experts on a wide range of technical topics including: Spring, Windows PowerShell, EJB 3, Ajax, Design Patterns,

  not preserved

2009-02-05 Thread rs1050
Hi, I discovered that   is not preserved, and the resulting html has plain space. This is a problem for my site. Example: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns="http://www.w3.org/1999/xhtml"; xml:space="prese

Re: [T5] filesystem asset problems

2009-02-05 Thread Jonathan O'Connor
Manuel, look at the AssetDispatcher class. That will clear up a lot of problems, I think. Ciao, Jonathan On 06/02/2009 00:49, manuel aldana wrote: hi, want to create a new asset-type, which makes images available from filesystem (file:/) to webapp (http:/), but somehow I don't get it... I

[T5] filesystem asset problems

2009-02-05 Thread manuel aldana
hi, want to create a new asset-type, which makes images available from filesystem (file:/) to webapp (http:/), but somehow I don't get it... I am sure at least some of my assumptions are wrong: -with Asset framework I can make resources available through tapestry webapp context (http://xxx ur

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Jonathan O'Connor
Howard, this saves me any more cogitation for now! Ciao, Jonathan On 05/02/2009 20:11, Howard Lewis Ship wrote: The ComponentRequestHandler pipeline (new in 5.1) is for this purpose. You can contribute a ComponentRequestFilter; your filter is passed all the details of the request (page names,

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Jonathan O'Connor
Thiago, I guess you want the Class if your doing annotation based protection, and the string if you have some sort of map. But, as Daniel mentioned, you can get a ComponentSource, and convert the string to a Class, so no problems there. The problem is deciding what a normally dispatched reque

[T5] Dynamically getting a component from IoC

2009-02-05 Thread Dave Greggory
Is it possible dynamically (programmatically) request a component from tapestry's IoC (without using @Inject or passing component via parameter)? I have this MyComponentInterface and a whole bunch of components that implement it (ie. MyComponent1, MyComponent2, etc). I do not know until runtime

Re: DZone's 40th Refcardz, Apache Tapestry 5.0

2009-02-05 Thread Howard Lewis Ship
Yes, they may switch it over to the Alexander's book. On Thu, Feb 5, 2009 at 12:16 PM, Kevin Menard wrote: > Looks pretty good. Although, I'm a bit baffled by the TiA plug. It > is a bit antiquated now. > > -- > Kevin > > > > On Thu, Feb 5, 2009 at 10:44 AM, Howard Lewis Ship wrote: >> >> DZon

Re: [T5] URL Manipulation

2009-02-05 Thread Andreas Andreou
Hi, see http://tuckey.org/urlrewrite/manual/2.6/ (i see they also have a 3.2 version) Just define some outbound-rules (instead of rules) for the cases you're interested, i.e. ^/app/category/product/([0-9]+)?venue=([a-z]+)&locale=([a-z]+)$ /app/$2/$3/category/product/$1 On Fri,

Re: [T5] URL Manipulation

2009-02-05 Thread Howard Lewis Ship
5.1 is pretty stable right now and due to some concerns of my own (*), I'll be pushing to release it fairly soon. I think the Spring Web Flow support may move out to 5.2. It's not going to go 18 releases like 5.0! (*) I have clients of my own who are in the same predicament. Also I think it would

Re: [T5] URL Manipulation

2009-02-05 Thread xfile80303
Hi Andreas, Oh, please don't mistake me for an expert on T5 by any means. :) I just don't see how the filter you mention would help with links generated by T5. For instance, let's say I put the filter in place, and I give a user the URL to access the site: /app/venue_name/en_US/category/produ

Re: [T5] URL Manipulation

2009-02-05 Thread Andreas Andreou
I'm really a T5 novice - what i was saying is that if you do find a way to have that info in the url (nomatter how, even as query params + i'm sure it's possible), you can use that filter to completely transform the look of the urls ... On Thu, Feb 5, 2009 at 10:56 PM, xfile80303 wrote: > > Thank

Re: how to include numbering in grid ? and can t:dateField now allow dd/mmm/yyyy formatting?

2009-02-05 Thread Thiago H. de Paula Figueiredo
The answers you need are in the Grid component documentation. For 1), you'll use the add parameter. For 2), you will override the property grid cell with . Em Thu, 05 Feb 2009 17:47:55 -0300, wesleywj2 escreveu: hi, its alot to ask for i know, 1. but how do i include numbering in gri

Re: [T5] URL Manipulation

2009-02-05 Thread xfile80303
Thank you Andreas. I'm not sure I understand how this would help me with issue #2 (as defined in my original posting). Can you enlighten me? Cheers, Levi Andreas Andreou-2 wrote: > > An alternative is http://tuckey.org/urlrewrite/ > And since Tapestry always calls the servlet container to e

Re: beanModelSource.create deprecated, what to use as an alternative?

2009-02-05 Thread wesleywj2
haha, sweet.. thanks man ;) Thiago H. de Paula Figueiredo wrote: > > Em Thu, 05 Feb 2009 17:42:43 -0300, wesleywj2 > escreveu: > >> hi, >> >> i've been implementing grid list with an added column using >> "beanModelSource.create()", but right after i changed the library to >> T5.0.18, it i

how to include numbering in grid ? and can t:dateField now allow dd/mmm/yyyy formatting?

2009-02-05 Thread wesleywj2
hi, its alot to ask for i know, 1. but how do i include numbering in grid table? like - no| column | column | - 1 | x | xx | - 2 | | y | - 2. is there any date formatting for t:dateField av

Re: beanModelSource.create deprecated, what to use as an alternative?

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 17:42:43 -0300, wesleywj2 escreveu: hi, i've been implementing grid list with an added column using "beanModelSource.create()", but right after i changed the library to T5.0.18, it is marked as deprecated. any alternative i missed? Take a look at BeanModelSource's javad

beanModelSource.create deprecated, what to use as an alternative?

2009-02-05 Thread wesleywj2
hi, i've been implementing grid list with an added column using "beanModelSource.create()", but right after i changed the library to T5.0.18, it is marked as deprecated. any alternative i missed? usually i add column in tml page with the page class code as below:- public BeanModel getModel

Re: [T5] URL Manipulation

2009-02-05 Thread Andreas Andreou
An alternative is http://tuckey.org/urlrewrite/ And since Tapestry always calls the servlet container to encode the url, urlrewrite will work for both generating urls (to output in html) and parsing them (incoming) On Thu, Feb 5, 2009 at 10:31 PM, xfile80303 wrote: > > Hi Thiago, > > Thanks for

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 17:31:12 -0300, wesleywj2 escreveu: oh my... IE really sucks big time It does suck. Many sites simply block IE 6. It seems that IE 7 is a lot better, but still lacking in many aspects (specially CSS compliance). but the most unfortunate thing is there are still m

Re: [T5] URL Manipulation

2009-02-05 Thread xfile80303
Hi Thiago, Thanks for taking the time. I believe I need to do some clarification however. The example URL I mentioned is order specific. Meaning it would not make sense to have the venu_name (or others of these URL parameters) to be at the end of the URL. They need to go into the URL before t

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread wesleywj2
oh my... IE really sucks big time but the most unfortunate thing is there are still many ppl using IE. guess that i need to drop the use of tree viewing. anyway, thanks for the reply thiago. :) Thiago H. de Paula Figueiredo wrote: > > Em Thu, 05 Feb 2009 14:19:25 -0300, wesleywj2 > escr

Re: [T5] URL Manipulation

2009-02-05 Thread xfile80303
Thanks for the reply Howard. Is 5.1 at a state where I can start using it to develop a service which will go to production in a couple months? (i.e. does this help me now?) Levi Howard Lewis Ship wrote: > > I've been doing some cleanup of some internal APIs lately with the > goal to centrali

Re: T5: Hibernate/Session question

2009-02-05 Thread Sven Homburg
ok ;-) 2009/2/5 Thiago H. de Paula Figueiredo > Em Thu, 05 Feb 2009 17:07:24 -0300, Sven Homburg > escreveu: > > i prefer you to use the session.refresh >> > > This will overwrite your object, and sometimes you want it unchanged. As > always, the best option depends on the context. ;) > > -- >

Re: DZone's 40th Refcardz, Apache Tapestry 5.0

2009-02-05 Thread Kevin Menard
Looks pretty good. Although, I'm a bit baffled by the TiA plug. It is a bit antiquated now. -- Kevin On Thu, Feb 5, 2009 at 10:44 AM, Howard Lewis Ship wrote: > > DZone Refcardz are a series of free cheat sheets for developers, written by > book authors and industry experts on a wide range

Re: T5: Hibernate/Session question

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 17:07:24 -0300, Sven Homburg escreveu: i prefer you to use the session.refresh This will overwrite your object, and sometimes you want it unchanged. As always, the best option depends on the context. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, de

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Howard Lewis Ship
The ComponentRequestHandler pipeline (new in 5.1) is for this purpose. You can contribute a ComponentRequestFilter; your filter is passed all the details of the request (page names, nested ids, page activation context, event context) and can decide how to proceed. CRH pipeline is a facade around

Re: T5: Hibernate/Session question

2009-02-05 Thread Sven Homburg
i prefer you to use the session.refresh 2009/2/5 James Sherwood > Hello, > > I used session.update(Object) and it worked, is there any difference? > > --James > > -Original Message- > From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: February-05-09 4:48 PM > To: Tap

Re: T5: Hibernate/Session question

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 16:58:39 -0300, James Sherwood escreveu: Hello, Hi! I used session.update(Object) and it worked, is there any difference? session.update(Object) writes the object to the database, session.lock() not. Both associate the object to the session, so use one or the other

RE: T5: Hibernate/Session question

2009-02-05 Thread James Sherwood
Hello, I used session.update(Object) and it worked, is there any difference? --James -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: February-05-09 4:48 PM To: Tapestry users Subject: Re: T5: Hibernate/Session question Em Thu, 05 Feb 2009 15:59:

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 14:19:25 -0300, wesleywj2 escreveu: hi thiago, Hi! sorry to send you directly on the same topic for this question. I guess you just sent it to the Tapestry mailing list. :) as i've implemented the tree object on my web page FF3 works great. but i just don't under

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 15:20:02 -0300, Jonathan O'Connor escreveu: Thiago, Hi! I thought about the service idea, but what would it look like? Class extractPageClass(String requestPath) would be what I'd want. That's what I want too. I would add a String extractPageName(String reques

Re: T5: Hibernate/Session question

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 15:59:53 -0300, James Sherwood escreveu: Thanks, I do not want to have to change the actual POJOs as I generate them using reverse eng so I think I will just do the lookup.\ One solution is to call session.lock(object, LockMode.NONE) before reading any property values

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Daniel Jones
Hi Jonathan, Thanks for your input so far. I have managed to solve the problem by borrowing some code from ComponentEventDispatcher and PageRenderDispatcher. The beast of a regexp in ComponentEventDispatcher provides a means to get the 'activePageName' but this includes the context as well. Th

RE: T5: Hibernate/Session question

2009-02-05 Thread James Sherwood
Thanks, I do not want to have to change the actual POJOs as I generate them using reverse eng so I think I will just do the lookup.\ Just making sure I was not doing something wrong:) --James -Original Message- From: Sven Homburg [mailto:hombu...@googlemail.com] Sent: February-05-09 2:

Re: T5: Hibernate/Session question

2009-02-05 Thread Sven Homburg
there are two possible solutions: first: you declare the collection for childobjects "read not lazy" second: you attach the parentobject to a new session and re-read the childobjects collection 2009/2/5 James Sherwood > Hello, > > > > I have an application state object(Visit) that is storing

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Jonathan O'Connor
Thiago, I thought about the service idea, but what would it look like? Class extractPageClass(String requestPath) would be what I'd want. However, for each Dispatcher, you'd want a PageClassExtracter as well, and I'm sure there'd be lots of duplication. To stay DRY, I guess we have to add t

T5: Hibernate/Session question

2009-02-05 Thread James Sherwood
Hello, I have an application state object(Visit) that is storing a hibernate entity object. In a page I ask for the visit.object.getchildobject.name and receive this error: [ERROR] hibernate.LazyInitializationException could not initialize proxy - the owning Session was closed org.hibe

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Fernando Padilla
I would review the Form javascript. I bet that there are already ways to hook into the form validation/submittion flow, so that you can add a listener there, and do a popup before the form submits.. Then once you figure out how to do that, I would probably create a new component that adds tha

Re: [T5] URL Manipulation

2009-02-05 Thread Howard Lewis Ship
I've been doing some cleanup of some internal APIs lately with the goal to centralizing Tapestry's logic for generating and parsing component event and page render links. This will allow an application to override how that information is incorporated into the URL. In your case, you could have a D

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 07:40:24 -0300, Jonathan O'Connor escreveu: Daniel, I was looking at this problem the other day, and you should look at the ComponentEventDispatcher. I think you need to first check if you get a matching page, and then check if you have an event. You can then extract

Re: [T5] URL Manipulation

2009-02-05 Thread Thiago H. de Paula Figueiredo
Em Thu, 05 Feb 2009 14:17:32 -0300, xfile80303 escreveu: Greetings all, Hello! :) Specifically, I would like to manipulate the URLs such that I can have "nice" RESTful style URLs which feed information into the page ultimately being rendered. Tapestry is incredibly RESTful, so I guess you

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread wesleywj2
hi thiago, sorry to send you directly on the same topic for this question. as i've implemented the tree object on my web page FF3 works great. but i just don't understand why IE can't render the tree properly. right after i restarted my server. when opening the page contained the tree object, it

[T5] URL Manipulation

2009-02-05 Thread xfile80303
Greetings all, I've searched this list and found several people looking to do the same thing, but no definitive answers, so perhaps someone has some new info. Specifically, I would like to manipulate the URLs such that I can have "nice" RESTful style URLs which feed information into the page ult

Re: [T4] Problem with multiple PropertySelectors and persistence

2009-02-05 Thread Norman Franke
What I do is have some abstract variables (i.e. getters and setters) with @InitialValue("null"). In my pageBeginRender, I read the values and store them in these variables. This happens once per page load. If I want to lazy read, I read if the variable is null whenever I read it and cache.

Re: DZone's 40th Refcardz, Apache Tapestry 5.0

2009-02-05 Thread Francois Armand
Howard Lewis Ship wrote: DZone Refcardz are a series of free cheat sheets for developers, written by book authors and industry experts on a wide range of technical topics including: Spring, Windows PowerShell, EJB 3, Ajax, Design Patterns, Silverlight 2 and many m

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Onno Scheffers
I'd guess the problem is that the LinkSubmit adds its own onclick-handler before your mixin gets a change to add it, so the ordering is wrong. If the ordering is wrong, stopping events or default behavior in Javascript won't do much good. Maybe you can play around with your Confirm mixin by adding

T5: Nice balloon error for 2 text fields possible?

2009-02-05 Thread James Sherwood
Hello, Is it possible to have the nice balloon error run across 2 password fields? IE password and confirm password must equal, if not the balloon error shows(like a required error) instead of having to output a form error? Thanks, --James

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
Does anyone have a confirm mixin (or other js mixin) applied to a LinkSubmit component? If so, howd you do it? Zack Thiago H. de Paula Figueiredo wrote: > > On Thu, Feb 5, 2009 at 9:21 AM, zack1403 wrote: > >> If you read up the thread a bit you would see that that was the last test >> that

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 5, 2009 at 9:21 AM, zack1403 wrote: > If you read up the thread a bit you would see that that was the last test > that was asked to see what was working. People have pasted in that link 3 > times without reading anything else from the thread! I'm sorry, but, at least in my Gmail, th

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
If you read up the thread a bit you would see that that was the last test that was asked to see what was working. People have pasted in that link 3 times without reading anything else from the thread! I already understand how to work with tapestry and js! My issue is applying my confirm or othe

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 5, 2009 at 6:34 AM, zack1403 wrote: > Hey guys sorry to resurrect this issue. I just got around to fixing this bug > :) When I try an inline confirm with javascript on a LinkSubmit (t5) > component it will always submit the form. I know that javascript cant > assure order of events

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Peter Stavrinides
Hi Daniel, > This is similar to the tutorial on the wiki, > although I have used annotations, so I can attach @Secured("ROLE_ADMIN") to > the page class. This works very well and the user is redirected to the > login page if they do not have the required privileges. Prsonally i looked briefly at

Re: New User int the group

2009-02-05 Thread Gutemberg A. Da Silva
Thanks for your helping, nillehammer. 2009/2/4 nillehammer > Hi Gutemberg, > go to the following page: http://tapestry.apache.org/mail-lists.html > There you'll find the email address for subscription > (users-subscr...@tapestry.apache.org). Send a mail to this address. > You'll recieve a confir

Re: Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Jonathan O'Connor
Daniel, I was looking at this problem the other day, and you should look at the ComponentEventDispatcher. I think you need to first check if you get a matching page, and then check if you have an event. You can then extract the Pagename from the request path using that monster Reg exp. Sadly,

Unsubscription action is not working

2009-02-05 Thread Yeeswara Nadapana (HCL Financial Services)
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator

Protecting ActionLinks when using a Dispatcher.

2009-02-05 Thread Daniel Jones
Hi there, I have implemented and contributed a Dispatcher in order to secure access to pages based on the users role. This is similar to the tutorial on the wiki, although I have used annotations, so I can attach @Secured("ROLE_ADMIN") to the page class. This works very well and the user is red

Re: Dynamic Assets

2009-02-05 Thread Sid Ferreira
For now we'll try to replace Cayenne, but, I'll report all jars: cayenne.jar chenillekit-core-1.0.0.jar chenillekit-tapestry-1.0.0.jar commons-codec-1.3.jar javassist-3.8.0.GA.jar log4j-1.2.14.jar postgresql-8.2-508.jdbc3.jar slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar tapestry-core-5.0.18.jar tape

getRealFile from service implementation

2009-02-05 Thread Borut Bolčina
Hi, is there a T5 way to reading a (text) file from the {context-root}/config directory from the service implementation. The context is null if done this way: public class ServiceImpl implements Service { @Inject private Context context; public ServiceImpl() { File file = co

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Thu, Feb 5, 2009 at 10:52 AM, Massimo Lusetti wrote: > On Thu, Feb 5, 2009 at 10:32 AM, Sid Ferreira wrote: > >> Well, I got a long time with deploy errors when using CK (Core+Tapestry) and >> Cayenne. Just adding CK jars in my project was enough to fail the deploy > > I'm sorry about that, so

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Thu, Feb 5, 2009 at 10:32 AM, Sid Ferreira wrote: > Well, I got a long time with deploy errors when using CK (Core+Tapestry) and > Cayenne. Just adding CK jars in my project was enough to fail the deploy I'm sorry about that, so i can see two way to solve the issue: provide an useful feedback

Re: Dynamic Assets

2009-02-05 Thread Sid Ferreira
Well, I got a long time with deploy errors when using CK (Core+Tapestry) and Cayenne. Just adding CK jars in my project was enough to fail the deploy On Thu, Feb 5, 2009 at 06:16, Massimo Lusetti wrote: > On Wed, Feb 4, 2009 at 5:24 PM, Sid Ferreira wrote: > > > Well, the first tries with CK we

Re: Odd Javassist error

2009-02-05 Thread Ben Gidley
Thanks I have now logged it under https://issues.apache.org/jira/browse/TAPESTRY-2728 As it happens the -target 5 workaround is fine for us - but I suspect others may hit this so it is probably worth looking into. THanks Ben On Thu, Feb 5, 2009 at 8:55 AM, Peter Stavrinides < p.stavrini...@albou

Re: T5 - spring integration

2009-02-05 Thread Francois Armand
Damir Bijuklic wrote: Hi, I have actually found a solution in Spring docs. You need to put spring RequestContextFilter before t5 filter, like this: [...] It would be great if you could add an HowTo for this discover, to let the other knows about that - I'm quite sur some other will thank

Re: T5 - spring integration

2009-02-05 Thread Damir Bijuklic
Hi, I have actually found a solution in Spring docs. You need to put spring RequestContextFilter before t5 filter, like this: requestContextFilter org.springframework.web.filter.RequestContextFilter requestContextFilter /* It is working now, so no JIRA issue neede

Re: Odd Javassist error

2009-02-05 Thread Peter Stavrinides
Hi Ben, If you need a workaround in the mean time it might be worth digging through some of these old posts: http://www.nabble.com/TransformationException-ClassNotFoundException-td17156180.html#a17156492 Peter - Original Message - From: "Howard Lewis Ship" To: "Tapestry users" Sent:

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
Hey guys sorry to resurrect this issue. I just got around to fixing this bug :) When I try an inline confirm with javascript on a LinkSubmit (t5) component it will always submit the form. I know that javascript cant assure order of events. Is this basically an issue that doesnt have a solution

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Wed, Feb 4, 2009 at 5:24 PM, Sid Ferreira wrote: > Well, the first tries with CK were epic failures, but I'll try once more... > seem that CK and Cayenne have a small problem to work together, gotta test > it It depends on what modules you brought into your dependencies but the URIAssetFactor