Re: asset expansion question

2011-03-15 Thread jqzone
Here is my code. TemplateResource.java public class TemplateResource implements Resource{ private URI uri; public TemplateResource(String uri) { try { this.uri = new URI(uri); } catch (URISyntaxException e) { throw new RuntimeException(e); } } public TemplateResource(URI uri) throws MalformedUR

Re: Grid Header Override and Sorting

2011-03-15 Thread Rich M
Apologies for the rambling here. It occurred to me that I could implement the Link class to return in the event handler. So, I made an implementation that will return a URI to the grid.columns:sort event as stated, and everything works nicely. It still feels like a dirty approach though, if an

Re: asset expansion question

2011-03-15 Thread Josh Canfield
> I want the server root path http://people.apache.org/~uli/ to > be configurable ,so it can be configured using tapestry symbols.I tried > this > > using AssetFactory,URIResource,and symbols,but failed > >  Can anyone help me? Please define failed? What is the error, or what does the generated HT

Re: Grid Header Override and Sorting

2011-03-15 Thread Rich M
On 03/14/2011 02:14 PM, Rich M wrote: Hi, I found this thread http://tapestry.markmail.org/thread/ighytyllingci364 that referenced overriding the grid header ala ... , but it seems there was no response. I'm working on overriding the headers for most of the grids in my application to use b

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 Mar 2011 09:28:21 -0300, sunmoor007 wrote: Hi Thiago Hi! Thanks for the response. I checked the blog but it talks only about incoming url. Tapestry has outgoing URL rewriting too, but it's just not documented yet. Maybe for your scenario it's easier to create a LinkCreationLis

Re: JasperReports integration

2011-03-15 Thread degressor
Thank you, for quick answers. I have to use Ant in this project. Today I tried the same code in project created throw maven, like in the tutorial, and it works fine. -- View this message in context: http://tapestry.1045711.n5.nabble.com/JasperReports-integration-tp3415368p3702654.html Sent fro

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-15 Thread sunmoor007
Hi Thiago Thanks for the response. I checked the blog but it talks only about incoming url. What about the redirect url's. Do we have a control over it. I observed that because of the redirect after post patten in tapestry, i see that for a simple action request there are two requests to the serve

Re: Session State not setting user?

2011-03-15 Thread robnangle
Can it be used aswel as @SessionState? And in the other class how do i get the user then? Just inject it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3701009.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Session State not setting user?

2011-03-15 Thread Richard Hill
@Inject private ApplicationStateManager stateManager; User user = stateManager.get(User.class); On Tue, 2011-03-15 at 12:54 +0100, Kristian Marinkovic wrote: > just declare it in your constructor and create your service with tapestry > ioc. > > take a look at the tapestry ioc documentation

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
just declare it in your constructor and create your service with tapestry ioc. take a look at the tapestry ioc documentation to see how injection works g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:49 Betreff:Re: Session State not setting user?

Re: Session State not setting user?

2011-03-15 Thread robnangle
Cheers.. Is that difficult done? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3699526.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
@SessionState/@Property only works in Pages, Components and Mixins. To access session state objects in your services you need to inject the ApplicationStateManager g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:28 Betreff:Session State not setting u

Tapestry5 - Grid with variable "row" type

2011-03-15 Thread nquirynen
Hi, I have a page where i load a list of objects depending on some other variables. This list of objects can be of the type of 1 of several type of entity objects. So I have declared it as : private List tableData; and t:grid source="tableData" ... This works, but the problem is when de

Session State not setting user?

2011-03-15 Thread robnangle
Hi, I am using at session state throughout my application but in one class it does not seem to be setting/getting the user in one class? Any idea's? public class JoinLeague { private Connection conn; private PreparedStatement prep; @Property @SessionState

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 Mar 2011 04:27:28 -0300, sunmoor007 wrote: Hi All Hi! we have checked the proxy logs and issue seems to be because of the presence of proxy server. Proxy server caches the url. As we dont have the search criteria in the url, Why not? That's the best approach in most scenari

asset expansion question

2011-03-15 Thread jqzone
Hallo,I have a new question! I'm writing a asset expansion like this http://people.apache.org/~uli/images/tapestry.png} /> I implememt a Resource using URI, and add a asset configure,It works well Now I want to change it like this I want the server root path http://people.apache.org/~uli/ to

Re: Tapestry5 - Grid with variable "row" type

2011-03-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 Mar 2011 04:58:52 -0300, nquirynen wrote: Hi, Hi! This works, but the problem is when defining the "row" attribute, I can't use a variable of type "Object", as I won't be able to use this as needed. This is not entirely correct. private Object row; and ${row.action} You

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-15 Thread sunmoor007
Hi All we have checked the proxy logs and issue seems to be because of the presence of proxy server. Proxy server caches the url. As we dont have the search criteria in the url, the same url is getting passed. We modified few settings in proxy server so that our app url doesnt get cached. It worke