Re: cometd in tapestry 5

2010-11-06 Thread Alessio Gambi
I used the DWR 2.0 and it worked fine. But I did not really liked the solution for some reasons: - you need to add the DWR servlet along tapestry and do some "tricks" to forward the dwr calls to it while tapestry maintains the state of your application. - the solution was too *framework specifi

Re: cometd in tapestry 5

2010-11-06 Thread Robert R. Sanders
I would think some integration for a high/medium level framework like atmosphere, or the dojo CometD api could potentially avoid tying T5 to a specific server. On 11/6/2010 7:11 PM, Howard Lewis Ship wrote: Not at this time, perhaps in 5.3. I know I'd use that capability if it was available,

Re: cometd in tapestry 5

2010-11-06 Thread Howard Lewis Ship
Not at this time, perhaps in 5.3. I know I'd use that capability if it was available, even if it tied Tapestry to Jetty specifically. On Sat, Nov 6, 2010 at 4:27 PM, Halil Karakose wrote: > Hi, > I found that tacos supports cometd for tapestry 4. What about tapestry 5? > Does tapestry support c

cometd in tapestry 5

2010-11-06 Thread Halil Karakose
Hi, I found that tacos supports cometd for tapestry 4. What about tapestry 5? Does tapestry support cometd? thanks

Re: how do you gracefully shutdown run-jetty-run ?

2010-11-06 Thread Paul Stanton
clearly the question is regarding the "run-jetty-run" plugin for eclipse. anyone? On 6/11/2010 9:15 PM, Christian Riedel wrote: Interesting question. If you use some unix-based system you can easily kill the process from the command line. $ jps 29741 Launcher $ kill 29741 Shutdown hook comp

Re: i give up

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 16:44:22 -0200, Muhammad Mohsen wrote: First you have to understand it well because it's almost like nothing you have been seen before with respect to productivity and programming models (did I use the term right ?) Part of its fundamental concepts (pages and components

Re: i give up

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 16:40:13 -0200, Josh Kamau wrote: Thanks guys, You're welcome! My menubar thing worked. Am proceeding very well now and am liking it. Cool! What was your error? I'm very curious to know. :) I am planning on starting a blog and sharing my lessons with the world. T

Re: i give up

2010-11-06 Thread Josh Kamau
Thanks Muhammad. I hope to be good enough to help someone. On Sat, Nov 6, 2010 at 2:44 PM, Muhammad Mohsen wrote: > Congrats :) > > I'd say that tapestry is not easy to be a second nature to anyone..but it's > developers ! > First you have to understand it well because it's almost like nothing

Re: i give up

2010-11-06 Thread Muhammad Mohsen
Congrats :) I'd say that tapestry is not easy to be a second nature to anyone..but it's developers ! First you have to understand it well because it's almost like nothing you have been seen before with respect to productivity and programming models (did I use the term right ?) Anyway, stay on it.

Re: i give up

2010-11-06 Thread Josh Kamau
Thanks guys, My menubar thing worked. Am proceeding very well now and am liking it. I am planning on starting a blog and sharing my lessons with the world. regards. On Sat, Nov 6, 2010 at 1:22 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 06 Nov 2010 12:55:09 -0200,

Re: i give up

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 12:55:09 -0200, Josh Kamau wrote: Thiago, Hi! I am using Eclipse with maven and running it via mvn jetty:run. I am fine with restarting jetty when i make a change so i dont care much about enabling live reloading. You'll learn and develop way faster with live class r

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 12:48:38 -0200, Josh Kamau wrote: This is exactly what i am talking about. How am i supposed to know that something like exists? The documentation needs improvement, no doubt, but this information is no hard to find: it's under 'component templates' in the current d

Re: i give up

2010-11-06 Thread Howard Lewis Ship
When you define a component in the Java class, using a field with the @Component annotation, it has to "bind" to an element of the template with the matching t:id attribute. Your template, Index.tml, does not have an element with t:id="menuBar". On Sat, Nov 6, 2010 at 8:16 AM, Josh Kamau wrote:

Re: i give up

2010-11-06 Thread Josh Kamau
Sven Seems like i am getting somewhere. Kindly tell me, what causes this: An unexpected application exception has occurred. - org.apache.tapestry5.ioc.internal.OperationException Embedded component(s) menuBar are defined within component class com.josh.tcontacts.pages.Index (or a super

Re: i give up

2010-11-06 Thread Sven Homburg
${value} in the Menubar template should be ${item} with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/11/6 Sven Homburg : > class Menubar > { > �...@property >  private List menuItems; > > �...@property >  private String item; > > �...@component

Re: i give up

2010-11-06 Thread Josh Kamau
Thanks alot. Am on my eclipse trying it out. regards. On Sat, Nov 6, 2010 at 11:06 AM, Sven Homburg wrote: > class Menubar > { > @Property > private List menuItems; > > @Property > private String item; > > @Component(parameters = {"source=menuItems", "value=item"}) > private Loop itemL

Re: i give up

2010-11-06 Thread Sven Homburg
class Menubar { @Property private List menuItems; @Property private String item; @Component(parameters = {"source=menuItems", "value=item"}) private Loop itemLoop; @SetupRender void initSomeVars() { menuItems = new ArrayList() menuItems.add("First Item"); menuIte

Re: i give up

2010-11-06 Thread Josh Kamau
Thiago, I am using Eclipse with maven and running it via mvn jetty:run. I am fine with restarting jetty when i make a change so i dont care much about enabling live reloading. What i am doing is very simple. All i want is to have markup contained in a file e.g what is in my Menubar.tml to be ins

Re: Creating custom component

2010-11-06 Thread Josh Kamau
Thanks Sven, This is exactly what i am talking about. How am i supposed to know that something like exists? what what else is out there? and what else am i using the wrong way? you get my point.? I think the Hotel-booking application should be made complicated enough to use as many tapestry featu

Re: Creating custom component

2010-11-06 Thread Sven Homburg
you can also use this template code: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> I am a menubar the let tapestry know, that all code between and is relevant for your component and strips all away outside this tag. it is the better way, if you use design tools like dreamwe

Re: i give up

2010-11-06 Thread Katia Aresti
Hi Josh, Recently one Tapestry committer - Christophe Cordenier -[1] posted an announce to make people to join him to create some projects together in order to learn Tapestry. This initiative is helping to build Tapestry demos in order to make beginners life easier. Ho

Re: i give up

2010-11-06 Thread Sven Homburg
i remember my early days wirth tapestry. i was in the same situation as nearly most tapesty beginners, i "feel" that tapestry is a big pitch but i was far away from understanding the philosophy behind tapestry. it was a stony way, without personal help and no books. but since a few years (since Ta

Re: i give up

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 11:30:36 -0200, Josh Kamau wrote: Here is my scenario. You're layout seems ok. That way i never repeat any markup . Now i wanted to achieve the same with tapestry and i know its possible. As far as I know, Wicket is the most similar framework to Tapestry. How ever,

Re: i give up

2010-11-06 Thread Josh Kamau
Taha, I think i identify alot with you. I am already comfortable with wicket and have done several projects. But i was feeling that i would be more productive with tapestry. I even bought a book to learn from. This is my second attempt to tapestry. I think a framework as good as tapestry and with

Re: i give up

2010-11-06 Thread Josh Kamau
Thanks Thiago for your encouragement. Here is my layout class. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> package com.josh.tcontacts.components; import org.apache.tapestry5.annotations.Import; @Import(stylesheet={"context:css/style.css"}) public cl

Re: i give up

2010-11-06 Thread Taha Hafeez
Hi Josh, To be frank enough, I gave up tapestry atleast 5 times and this time even the start was difficult... (Previous 4 times I went back to wicket, which is also a very good framework). But then it is so good that you keep coming back to it. This is what I will suggest 1. Follow Tutorial #1 h

Re: i give up

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 09:42:17 -0200, Josh Kamau wrote: I give up. In my humble opinion, you're giving up too fast. In addition, your chosen path wasn't the best one. I think you should try to learn how to write pages and *use* components first. You should try to write your own componen

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 08:47:03 -0200, Josh Kamau wrote: xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> I am a menubar You're trying to use the component in it itself. The root element should be . now how do i add it to my page? i have added it by putting or and

i give up

2010-11-06 Thread Josh Kamau
I give up. I cant get simple things to work and the scattered documentation is not helping . I will wait till the year when there will be a Tapestry5 in action book.

Re: Creating custom component

2010-11-06 Thread Josh Kamau
thanks Thiago, I have fixed the component as follows : http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> I am a menubar now how do i add it to my page? i have added it by putting or and its not appearing. this is my index page. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 08:36:40 -0200, Josh Kamau wrote: Hi guys; Hi! Don't use the tag in components' templates (unless you're creating a Layout-style one). And don't forget that the name of the template is case-sensitive, so MenuBar.java -> MenuBar.tml. -- Thiago H. de Paula Figueire

Re: Assembling a page from custom components

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 08:23:53 -0200, Josh Kamau wrote: Thanks. Is t:container a special tapestry component? No. Tapestry treats some tags specially (, , etc), but anything else is treated as a component name. Tapestry treats every component the same way, making no distiction between the

Creating custom component

2010-11-06 Thread Josh Kamau
Hi guys; I am trying to compose a page but assembling various sections e.g the menu bar, the header and the footer as separate components. I have my Index page which "inherits" from the main layout. Now i have made the menu bar as follows menubar.tml http://tapestry.apache.org/schema/tapestry_

Re: Assembling a page from custom components

2010-11-06 Thread Josh Kamau
Thanks. Is t:container a special tapestry component? On Sat, Nov 6, 2010 at 6:01 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 06 Nov 2010 07:27:20 -0200, Josh Kamau > wrote: > > Hi guys; >> > > Hi! > > > I am trying to assemble a page using components. I am confuse

Re: how do you gracefully shutdown run-jetty-run ?

2010-11-06 Thread Christian Riedel
Interesting question. If you use some unix-based system you can easily kill the process from the command line. $ jps 29741 Launcher $ kill 29741 Shutdown hook complete :) Am 06.11.2010 um 07:46 schrieb Paul Stanton: > i've just started using the run-jetty-run plugin for eclipse. > > since

Re: Assembling a page from custom components

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 07:27:20 -0200, Josh Kamau wrote: Hi guys; Hi! I am trying to assemble a page using components. I am confused by the options provided in various tutorials/book on the internet. I would specifically like some information on how and where to use the following. http://t

Assembling a page from custom components

2010-11-06 Thread Josh Kamau
Hi guys; I am trying to assemble a page using components. I am confused by the options provided in various tutorials/book on the internet. I would specifically like some information on how and where to use the following. 1. t:border and t:body 2. t:container 3. can i nest borders together? Gat