Re: Layout Component

2007-04-06 Thread bjornharvold
I must be daft. I can't make sense of this example. I'm using 5.0.3. We have a layout like so: (filename: Layout.html) http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Hello This layout goes in the "pages" directory. Then we have a page like so: (filen

Re: Layout Component

2007-04-06 Thread bjornharvold
HAHA Like I said. I am daft :-p -- View this message in context: http://www.nabble.com/Layout-Component-tf3494445.html#a9878953 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Tapestry 5 Component Inheritance and Performance

2007-04-23 Thread bjornharvold
Hi, This is a best practices question. What is the impact of component level inheritance as far as performance is concerned? Is the the best solution to keep components as flat as possible? Thanks bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-Component-Inheritance-and

Templating with Tapestry 5

2007-04-27 Thread bjornharvold
Ok, I've been barking up a tree the whole day... and I'm not even sure it's the wrong one. I want to be able to do real component templating like struts has it's tiles. So my page (CoolPage) would look something like this: .. a one liner My CoolPage.java would have some string properties refer

Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
that is > wrapper to the page content. > > Feels weird initially but works well. > > --- bjornharvold <[EMAIL PROTECTED]> wrote: > >> >> Ok, I've been barking up a tree the whole day... and >> I'm not even sure it's >> the wrong one.

Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
t goes > here. > > And individual pages look like this; > ><-- this is the first page > line > .. > Meaningful page content > .. > > > --- bjornharvold <[EMAIL PROTECTED]> wrote: > >> >> Konstantin, >> >> Can you give m

Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
Nice - thanks :-) -- View this message in context: http://www.nabble.com/Templating-with-Tapestry-5-tf3659025.html#a10226122 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL P

Tapestry 5 and Template Reloading

2007-04-30 Thread bjornharvold
I can't seem to get template reloading to work. Classes reload just fine. I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have the same problem or better yet, the solution? thx bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloadi

Re: Tapestry 5 and Template Reloading

2007-05-01 Thread bjornharvold
start, and changes STILL don't come up. I have to CLEAN in order for it to update which leaves me to believe this is some caching issue on jetty or eclipse. Problem still not solved :-( thx bjorn bjornharvold wrote: > > I can't seem to get template reloading to work. Classes reloa

Re: Tapestry 5 and Template Reloading

2007-05-01 Thread bjornharvold
no I am using /src/main/webapp. kristian.marinkovic wrote: > > did you use the target/ directories to configure jetty? the target > directory is refreshed only after a new build. make sure jetty points to > src/main/webapp/ and not tp target/webapp... -bjornharvold > &l

Tapestry 5 Mixins Remoting JSON

2007-05-01 Thread bjornharvold
I have a front-end that wants JSON data from the back-end. Using a regular webapp I would integrate JSON-RPC. I started out doing this with my t5 app and quickly realized I had to write something to put the jsonrpc bridge in the session (like a listener) and then some component that would have acc

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread bjornharvold
ns are useful when you want to add new ajax behavior to already > existent > "non ajax" aware components(if i'm not wrong.. ). > > hope it helps, > Alex > > > On 5/1/07, bjornharvold <[EMAIL PROTECTED]> wrote: >> >> >> I have a front-en

Re: Tapestry 5 Mixins Remoting JSON

2007-05-02 Thread bjornharvold
StreamResponse > return streamResponse; > } > > hope i haven't forgot anything. > > Alex > > > On 5/2/07, bjornharvold <[EMAIL PROTECTED]> wrote: >> >> >> Sounds interesting. I looked at component events. Are you saying that you >> ca

Re: Tapestry 5 and Template Reloading

2007-05-04 Thread bjornharvold
The problem was resolved. 1. I couldn't even get Jetty to run with 5.0.4-SNAPSHOT in Eclipse (this worked fine in Intellij / Tomcat). I reverted to 5.0.3. 2. The files had gotten jumbled around with html files in src/main/java and java files in src/main/resources. Real mess. 3. Maven adds the sr

Re: Tapestry 5 and Template Reloading

2007-05-07 Thread bjornharvold
Version 5.0.3 works fine. This is what I get when starting up Jetty with JettyLauncher inside eclipse 3.2.2. I have cleaned eclipse and built from scratch. main] INFO 2007-05-07 09:43:05,703 http.SocketListener - Started SocketListener on 0.0.0.0:8080 org.mortbay.util.MultiException[java.l

Re: Tapestry 5 Mixins Remoting JSON

2007-05-08 Thread bjornharvold
Alexandru, How could you add runtime parameters to this Ajax call? e.g. you want to call isUsernameAvailable with parameter "jsmith"? Thanks bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-Mixins-Remoting-JSON-tf3676880.html#a10378474 Sent from the Tapestry - User maili

Re: Tapestry 5 Mixins Remoting JSON

2007-05-08 Thread bjornharvold
Thank you for the lightning response! the parameter "jsmith" is of course the runtime text the user enters as his username so there is no way for me to hard code that into the getUrlFromClass method. Javascript is the only thing that knows what the username is at the time of checking. Can I use t

Re: Tapestry 5 and Template Reloading

2007-05-08 Thread bjornharvold
FYI: it works great when just downloading the t 5 archetype and running it with jetty launcher etc. HOWEVER, My app has several modules with dependencies on spring, hibernate, xfire etc etc. This is where the problem must be. I think recalling seeing another post with this issue and the solution

Re: Tapestry 5 Mixins Remoting JSON

2007-05-08 Thread bjornharvold
WORKS GREAT! :-D -- View this message in context: http://www.nabble.com/Tapestry-5-Mixins-Remoting-JSON-tf3676880.html#a10384351 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EM

Re: Tapestry 5 and Template Reloading

2007-05-09 Thread bjornharvold
Another FYI, I can start my application using mvn jetty:run without problems using 5.0.4. It's the jettylauncher and eclipse that is the problem. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10394244 Sent from the Tapestry - User maili

Re: Tapestry 5 and Template Reloading

2007-05-10 Thread bjornharvold
This is still an issue. I have installed t5 5.0.4 with my app on two PCs and 1 mac. Jetty launcher does not like jdk 1.6. All my laptops give me the same stacktace as noted. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10420939 Sent fr

Re: Tapestry 5 and Template Reloading

2007-05-11 Thread bjornharvold
Hi Andreas, Thanks for this. It's still not working. Still getting: [ main] INFO 2007-05-11 09:40:12,460 http.SocketListener - Started SocketListener on 0.0.0.0:8080 org.mortbay.util.MultiException[java.lang.RuntimeException: Error building service proxy for service 'Alias' (at org.apache.t

Re: Tapestry 5 and Template Reloading

2007-05-14 Thread bjornharvold
I gave up on the JettyLauncher for now. I cannot figure it out. However, on a good note. I did move my pages to WEB-INF and launching the app from the command line using mvn jetty:run now works fine. I guess that will take care of reloading the pages when I save in Eclipse. I haven't figured out h