@Block, accessing the caller's properties

2006-08-10 Thread Firas Adiler
Hello, Can a Block-component access the page/component that's calling RenderBlock? Assume page C contains this call: jwcid=@RenderBlock block=ognl:someBlock Can someBlock access page C's properties? Thanks for your time! /Firas

Re: @Block, accessing the caller's properties

2006-08-10 Thread Norbert Sándor
Check out Block's getInvoker() method. Try blockComponent.getInvoker().getPage().getSomePageProperty() Regards, Norbi Firas Adiler wrote: Hello, Can a Block-component access the page/component that's calling RenderBlock? Assume page C contains this call: jwcid=@RenderBlock

Validation

2006-08-10 Thread Tim Sawyer
I have a page which has mandatory validation on some of the fields. If I leave mandatory values blank, and change the value in other fields, when the form is submitted the changed values seem to be updated in the model even when errors are shown for the mandatory values. If I then leave my

Re: Validation

2006-08-10 Thread Karthik N
this is how tapestry works. field-level validations of one field are not known to other fields. we have a similar situation where we wanted to avoid DTOs and use Domain Objects (the exposed domain pattern). we find that the underlying objects can get dirtied in a number of ways. validation is

Re: new submitType parameter

2006-08-10 Thread Jesse Kuhnert
It is required with a default value, so no one actually ever needs to specify it if they don't want to. On 8/10/06, Bernard Lange [EMAIL PROTECTED] wrote: Jesse Kuhnert wrote: I've added a new submitType parameter to all of the form submission components. (

how to get the session id

2006-08-10 Thread Tapestry User List
Hello, I need to retrieve the session ID (JSESSIONID) from IRequestCycle. Is there way to do that ? Would be nice if someone have the solution of this non-urgent problem. Cheers, Didier

Re: how to get the session id

2006-08-10 Thread Mika Tammilehto
Hi! You can get the Session id like this: cycle.getInfrastructure().getRequest().getSession(true).getId(); Cheers, Mika Tapestry User List wrote: Hello, I need to retrieve the session ID (JSESSIONID) from IRequestCycle. Is there way to do that ? Would be nice if someone have the

Component Design questions

2006-08-10 Thread Vinicius Carvalho
Hello there! First, I'm sorry about the previous e-mail, I really thought that the name was being duplicated :(. Sorry for the spam I got stuck into a problem here. I'm building my datetime component. First I thought using a template for it, but later I figured that I needed to extend

Ajax in Tap 4.1

2006-08-10 Thread Denis Souza
Hi, Still playing around with Tapestry 4.1 it seems I just can't get Ajax to work in any case. I created the following simple example which doesn't do Ajax. It just makes a regular request: My html: a href=# jwcid=[EMAIL PROTECTED] listener=listener:listen

Re: [OT] tomcat not letting my app serve up templates

2006-08-10 Thread Rui Pacheco
Check your web.xml to make sure you configured Tapestry to handle that particular extension. On 8/10/06, Dan Adams [EMAIL PROTECTED] wrote: Ok, when I run the app in jetty this works fine and I don't remember having this problem with other tomcat installs. When I request a path that is a file

Re: [OT] tomcat not letting my app serve up templates

2006-08-10 Thread Rui Pacheco
I have this: servlet-mapping servlet-nameapp/servlet-name url-pattern*.html/url-pattern /servlet-mapping On 8/10/06, Dan Adams [EMAIL PROTECTED] wrote: Ok, when I run the app in jetty this works fine and I don't remember having this problem with other tomcat installs. When I

Hidden fields in multiple forms don't have unique ids.

2006-08-10 Thread Andrew Ofisher
Not sure if this is a bug or how it was intended. I'm using Tap 4.0.2. I have a component that has a Form and some Hidden components within it. I'm using the id of the hidden components to update the field in javascript on the client side. My problem is, on a page that has more than one of

RE: Ajax in Tap 4.1

2006-08-10 Thread Denis Souza
Yes, that's it! Don't know how I could have missed that. Thank you! Denis Souza -Original Message- From: Norbert Sándor [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 10 de agosto de 2006 13:26 To: Tapestry users Subject: Re: Ajax in Tap 4.1 I didn't try but maybe parameter async=true

tapernate anonymous svn access?

2006-08-10 Thread Danny Mandel
I'm having problems getting to Tapernate's SVN repository without a username and password (the url from the webpage is: http://svn.javaforge.com/svn/tapestry/tapernate/trunk). Is anyone else having problems or have I done something silly? Thanks, Danny

Question about validation

2006-08-10 Thread Vinicius Carvalho
Hello there! I'm having problems with validators... First, my page is not validating required fields anymore (at least not when I set a new ValidationDelegate): public class CustomDelegate extends ValidationDelegate { public void writeAttributes(IMarkupWriter writer, IRequestCycle

Tapestry4.1 TimeTracker source code

2006-08-10 Thread Shing Hing Man
Could someone please let me know where I can download the source code for Tapestry4.1 TimeTracker demo ? Shing Home page : http://uk.geocities.com/matmsh/index.html ___ Copy addresses and emails from any email

RE: @Block, accessing the caller's properties

2006-08-10 Thread Firas Adiler
Hello Norbi, I used this ognl expression: components.MyBlock.invoker.page.someProperty and it worked like a charm. Thank you! /Firas -Original Message- From: Norbert Sándor [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:46 AM To: Tapestry users Subject: Re: @Block,

Re: Hidden fields in multiple forms don't have unique ids.

2006-08-10 Thread Jesse Kuhnert
I could be wrong, but I don't think you'll have this problem in 4.1. (Specifically it would be better to use the latest 4.1.1-SNAPSHOT build. ) On 8/10/06, Andrew Ofisher [EMAIL PROTECTED] wrote: Not sure if this is a bug or how it was intended. I'm using Tap 4.0.2. I have a component that

Contrib:Table problems with layout

2006-08-10 Thread Vinicius Carvalho
Hello there! *I've seen some discussions regarding this topic but didn't find one that could help* I was having problems with the layout of my table, but I was ignoring, thinking that might have been a tag opened that I left open. Today I look it closer and found out that seems to be a bug. My

Re: Checkbox inside contrib:table (again)

2006-08-10 Thread Vinicius Carvalho
Sorry taking so long, I was busy with my datetime component, almost ready, hope post it here soon :) That did not work, could you post a more clear explanation? maybe a full example if its not asking much On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: table jwcid=[EMAIL PROTECTED]:Table

Re: Contrib:Table problems with layout

2006-08-10 Thread Murray Collingwood
This sounds like an HTML issue. Tapestry components are added into standard HTML, they do not generate any different HTML than you have already specified. For example, you say the contribTable appears at the right of the page, perhaps you are specifying widths on your static tables - maybe

Re: Checkbox inside contrib:table (again)

2006-08-10 Thread robertz
On Fri, Aug 11, 2006 at 08:26:51AM +1000, Murray Collingwood wrote: When you are using the contrib:Table you specify the columns parameter for each column to appear in your table. I think you understand this but you haven't mentioned much detail. So, in Robert's example there are 3

Properties file export

2006-08-10 Thread Peter Dawn
guys, is there a way for me to export all my properties file content into another file. or if i need to backup my content is there a way for me to somehow export this content into another file and then store it somewhere. i hope i make sense :-) thanks.

Re: Hidden fields in multiple forms don't have unique ids.

2006-08-10 Thread Andrew Ofisher
I'd be happy to use 4.1 when it becomes stable (I'm not sure it is production quality yet? Am I wrong?). Meanwhile I just threw together my own component to generate a hidden field with a unique id. Andrew On 8/10/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: I could be wrong, but I don't think

Colour Picker and XY co-ordinates

2006-08-10 Thread Peter Dawn
guys, i am trying to create a sort of colour picker. what i want to do is, i want to load an image and then when the user moves their mouse over the image, i want to display the RGB values at the mouse tooltip (and possibly also the X and Y co-ord). has anyone done something like this before.

Re: How to store the query parameters in a Table component?

2006-08-10 Thread Jun Tsai
use persist=client 2006/8/8, Gurps [EMAIL PROTECTED]: Hi, this is exactly my problem too. Have you found the solution? many thanks -- View this message in context: http://www.nabble.com/How-to-store-the-query-parameters-in-a-Table-component--tf1685056.html#a5701412 Sent from the Tapestry -