Re: T5 book: update

2007-11-02 Thread Eko S.W.
Oh yeah, I am sorry though May the book bring light on Tap. -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/

Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Oh nevermind, it works now.. stupid browser still caching the old page. thx a lot! ronaldlee wrote: > > Thx Angelo. This seems to make sense, but I cannot make it to work.. will > try more. > > Ronald > > > Angelo Chen wrote: >> >> hi ronaldlee, >> >> you can pass the user name from the Us

Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Thx Angelo. This seems to make sense, but I cannot make it to work.. will try more. Ronald Angelo Chen wrote: > > hi ronaldlee, > > you can pass the user name from the UserProfile page to the layout > component, something like this: > > public class Layout { > @parameter > private String

Re: T5: passing values between layout component and page

2007-11-02 Thread Marcus
Hi Ronald, You can declare same ASO(ApplicationStateObject) in both java classes, passing any values between any components. Basic.java and UserProfile.java ... @ApplicationState private Visit _visit; ... getters and setters Basic.tml ... ${visit.username} Marcus -

Re: T5: passing values between layout component and page

2007-11-02 Thread Angelo Chen
hi ronaldlee, you can pass the user name from the UserProfile page to the layout component, something like this: public class Layout { @parameter private String userName; // getter/setter here } in UserProfile.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> not tested code

T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Hi, I am building a page using layout component so that the layout can be shared among other pages. The question I have is that I want my layout component (lets say "/layout/Basic.tml) to have access to page params/variables. A simple example would be that I have a UserProfile page which uses a

ContextResource getPath()

2007-11-02 Thread Kevin Menard
Hi, Is there any particular reason that ContextResource's getPath() returns a relative path rather than an absolute one? In T4, I'm used to using assets as way to build "safe" links to resources. With ContextResource's getPath() returning relative paths, however, that doesn't work. I've wrapped

[T5] BeanModel and null values

2007-11-02 Thread Kevin Menard
Hi all, I'm working with the Grid component and customizing the BeanModel for display. I'd like to show complex paths in the grid. So, I've added them to the model and everything works well, except when there's a null somewhere along the path. Then in get an NPE in the ConduitWrapper. How does

[Tap 4.1.3] multiple ognl evaluation problem (was Re: [Tap 4.1.2] Problem with repeated calls to an If component)

2007-11-02 Thread Aaron Kaminsky
Hi all, I am on Tap 4.1.3 (using the released binary) and I am also experiencing this behavior. I cannot find any documentation on this situation or a workaround other than Jesse's comments in this thread. Can someone point me to more information on how to work around this multiple ognl eva

Re: T5: component expansion unexpected

2007-11-02 Thread Nick Westgate
You are ending the element before the inner (etc) renders. Instead, you should end the writer in afterRender: void afterRender(MarkupWriter writer) { writer.end(); // } The corelib components are good examples to copy. Cheers, Nick. Angelo Chen wrote: Hi, I have a com

T5: component expansion unexpected

2007-11-02 Thread Angelo Chen
Hi, I have a component : public class ImgDlg2 { @Parameter(required=true) private String _path; boolean beginRender(MarkupWriter writer) { if (_path != null) writer.element("a", "href", _path); else writer.element("a", "href", "#"); writer.end(); ret

Re: T5 book: update

2007-11-02 Thread Howard Lewis Ship
On Nov 1, 2007 2:37 AM, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > The book is not ready yet. I had to completely rewrite chapter 5 upgrading it > to 5.0.6 as Grid and BeanEditForm are so much easier to deal with now. If > everything goes well, the book should become available in

Re: General question regarding Web 2.0 and Tapestry

2007-11-02 Thread Angelo Chen
Hi, Same as you, no idea at all about this web 2.0. came from c/s world hoping web 2.0 can help in developing c/s like app, and after a while, found out that a server framework like T5, Javascript(or better a library like jQuery), html/css/DOM, plus the browser's capability to do background comm

Getting BigDecimal Translator to work

2007-11-02 Thread rkalsi
I have written a BigDecimal translator which converts String -> BigDecimal, but It doesnt seem to work. In my class, I have added the following: public static void contributeTranslatorDefaultSource( MappedConfiguration configuration) { configuration.add(BigDecimal.class

Re: how to translate input into double/float value

2007-11-02 Thread Imran Amajd
How can we add DoubleTranslator.java into Existing application?? Thanks. Nick Westgate wrote: > > You provide a translator. The framework provides one for Double etc: > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/translator/ > > You

Re: General question regarding Web 2.0 and Tapestry

2007-11-02 Thread Ravi Shankar
I don't have a clear definition of web 2.0. THis is what wiki says Web 2.0 websites typically include some of these features: * Rich Internet application techniques, often Ajax-based * Semantically valid XHTML and HTML markup * Microformats enriching pages with additional semantics

Re: Submitting Html Form is not working properly in Tapestry 5

2007-11-02 Thread Nick Westgate
> I am using Tapestry 5. I don't think so. Your code is using Tapestry 4 syntax. Cheers, Nick. Imran Amajd wrote: Hello EveryBody, I am using Tapestry 5. Problem: There is a submit button attached with listener (say OnSave()) and a text field after the Submit button on html form. like

Submitting Html Form is not working properly in Tapestry 5

2007-11-02 Thread Imran Amajd
Hello EveryBody, I am using Tapestry 5. Problem: There is a submit button attached with listener (say OnSave()) and a text field after the Submit button on html form. like when i submit this form, the pageBegin render is called, and form is rewinded. then listner is callled. but i can n