Re: Pass parameter as custom url, www.example.com/pic?id=12345

2007-04-10 Thread Andrea Chiumenti
Hi, use the ExternalPageLink and derive your page from IExternalPage, that's all. http://tapestry.apache.org/tapestry4.1/components/link/externallink.html kiuma On 4/10/07, Josh Joy [EMAIL PROTECTED] wrote: Hi, For the most part, I think Tapestry is generating urls for me and with me

T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
I'm using T5 to do some experimental testing, creating some mockup applications to teach me more about the framework. My question is, how do you best handle multi-part layouts? For instance, a Layout can be composed of a Body and a Sidebar. The Sidebar can be a component. My current approach

Re: Visit Object deprecated

2007-04-10 Thread Gareth
Thanks everyone for the confirmation about the visit object - I've been using the ASO idea, but sticking to a visit object at present - worried about drifting too far down aisles unknown (to me a beginner) and getting stuck! - Original Message From: Howard Lewis Ship [EMAIL PROTECTED]

Downloading an offline copy of the 4.1 documentation

2007-04-10 Thread Gareth
Hi, Can anyone tell me how to create an off-line version of the tapestry 4.1 website? I tried to download it by getting the tapestry-site project from svn, and build it with maven - something I've not used before, by following instructions on the tapestry site, but, 1. the instructions didn't

Re: T5: Best page templating strategy

2007-04-10 Thread Stephane PAQUET
Just one question, why don't you use a CSS layout + ASSET in stead of component (this does not apply to the sidebar). Rgds, SP On Apr 10, 2007, at 8:28 AM, Yann Ramin wrote: I'm using T5 to do some experimental testing, creating some mockup applications to teach me more about the

Re: session persistance?

2007-04-10 Thread Stephane PAQUET
Yes, from what I understand persist is just to keep value between request. so every-time you request the page the object is in this case recreated. If you want to keep this object across a session you need ASO (see T5 doc on persistence). You can also (but will not be kept a session

Re: T5: Best page templating strategy

2007-04-10 Thread Howard Lewis Ship
If the sidebar really changes for each page, then it can be a Block parameter to the layout component. This will allow the layout component to control where, within its templates, the sidebar appears. Check out the t:parameter documentation. On 4/10/07, Stephane PAQUET [EMAIL PROTECTED] wrote:

Re: [T4.0.2] Does anybody have any insight about Portlets

2007-04-10 Thread sunilmanu
I am also interested in portlets, very similar to this requirements. I also could not find much help. Anyone any pointers ?? thanks, Sunil jake123 wrote: Hi All, at our company we are going to build a page where our clients will be able to choose from maybe 10-15 different Portlets to be

Is OGNL 2.7 compatible with JDK 1.4 ?

2007-04-10 Thread Hugo Palma
I'm asking because i'm getting this error running it: Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer; at ognl.ASTProperty.toSetSourceString(ASTProperty.java:548) at

Re: T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
I got a good start on this, but still missing something fundamental. In Page.java, I have the Sidebar component. In Page.html, I pass the component in a parameter t:parameter name=sidebar t:sidebar/ /t:parameter In Layout.java I have a sidebar block @Parameter(required=true) private

Re: contrib:Tree linking to other tapestry pages

2007-04-10 Thread tapuser
Hi, I am also having the same issue. I want add a button to the tree table's row. Any idea? Thanks. Sri anil wrote: Hi - I'm using the contrib:TreeView and related components (TreeDataView TreeNodeView) to display a table of contents for a book. I'd like to keep the

Re: T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
Just figured out you can return the block in a render stage to get it to render. Deceptively simple, but the docs (from my reading), didn't mention it. @BeforeRenderBody Block doSidebar() { return _sidebar; } Yann Ramin wrote: I got a good

Re: T5: Best page templating strategy

2007-04-10 Thread Howard Lewis Ship
This could also be written as: Block onBeforeRenderBody() { return _sidebar; } On 4/10/07, Yann Ramin [EMAIL PROTECTED] wrote: Just figured out you can return the block in a render stage to get it to render. Deceptively simple, but the docs (from my reading), didn't mention it.

Re: Tap 4.1.1 problem: async direct link returns empty ajax response

2007-04-10 Thread Matt Larson
Jesse, Thanks for your response. This feels like the problem, that the IDs on the div tags are not being matched. However due to my lack of knowledge about Tapestry's internals, I haven't been able to implement your suggestion. What I can't figure out is how to get the clientId out of the

Re: Tap 4.1.1 problem: async direct link returns empty ajax response

2007-04-10 Thread Jesse Kuhnert
You want to do something like this instead for your divs: div jwcid=[EMAIL PROTECTED] Then your updateComponents statement becomes updateComponents=ognl:{page.components.foo.clientId,page.components.someOtherDiv.clientId} On 4/10/07, Matt Larson [EMAIL PROTECTED] wrote: Jesse, Thanks for

Re: Tap 4.1.1 problem: async direct link returns empty ajax response

2007-04-10 Thread Matt Larson
Hi Jesse, I did try this approach previously, thinking OGNL would use the Map key as a property like in your example (I think that's what it's doing in your example?). But following your example very closely, I get this exception: Unable to read OGNL expression...source is null for

Re: Tap 4.1.1 problem: async direct link returns empty ajax response

2007-04-10 Thread Jesse Kuhnert
No things should still work the same with 4.1.1. .(but upgrading might be a good idea either way) The error you got means that you don't have a component defined in your page with an id of div1. Your example before on how you were defining your div blocks was incorrect and I provided an example

T5 ... assets and paths changing?

2007-04-10 Thread Bruce Petro
It appears that T5.0.3 has removed @Asset and @Path How do we then load an image to be used either directly or as a BG image? I've looked all over including the Introduction page where you appear to keep a running feature changes list. Thanks @Inject @Path(../edit.png)

RE: T5 ... assets and paths changing?

2007-04-10 Thread Bruce Petro
Ah... the docs must be 5.0.4 compatible, but I assumed they were older not newer. THANKS! -Original Message- From: robert zeigler [mailto:[EMAIL PROTECTED] On Behalf Of Robert Zeigler Sent: Tuesday, April 10, 2007 5:00 PM To: Tapestry users Subject: Re: T5 ... assets and paths changing?

T4.1.1 stateless contrib:table

2007-04-10 Thread Shawn Church
I am needing to provide sortable contrib:Tables in my application, but I need them to survive a session timeout. I normally buckle and make the TableView source persist in the session, but that is never a very nice solution. I am providing my own IBasicTableModel, so I'm reloading the table data

Re: Is OGNL 2.7 compatible with JDK 1.4 ?

2007-04-10 Thread Jesse Kuhnert
oops Guess I need to run the ognl unit tests in 1.4 occasionally... On 4/10/07, Hugo Palma [EMAIL PROTECTED] wrote: I'm asking because i'm getting this error running it: Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchMethodError:

EventListener questions

2007-04-10 Thread Chris Chiappone
Hi I was wondering what the correct way would be to create an EventListener that returns a confirm when a button is clicked. I have the following that doesn't work: @EventListener(elements=deleteButton, events=onclick) public String testThis(){

Re: T5 ... assets and paths changing?

2007-04-10 Thread Howard Lewis Ship
The documentation is always ahead of the non-snapshot JARs. On 4/10/07, Bruce Petro [EMAIL PROTECTED] wrote: Ah... the docs must be 5.0.4 compatible, but I assumed they were older not newer. THANKS! -Original Message- From: robert zeigler [mailto:[EMAIL PROTECTED] On Behalf Of Robert

RE: EventListener questions

2007-04-10 Thread Anna Vo
If you are using a DirectLink or a Submit button you do not need to use the @EventListener annotation. You can specify using updateComponents which elements to refresh. See http://tapestry.apache.org/tapestry4.1/components/link/directlink.html and