Re: Tapestry Form Fields Query. Please advise.

2007-04-10 Thread Numa Schmeder
Hi, You can persist your field in the session using @Persist or in ".page" file persist="session", or if your fields are encapsulated in an object you can persist the object in the session using ASO. Numa Le 11 avr. 07 à 06:28, tapuser a écrit : Hi, My domain object has 20 Fields. I

T5:Page navigation

2007-04-10 Thread Weisu
Hi, I have a login page, when user logins, it navigates to next page. How can I hide the login page when I click the back button from IE. I am using onActive() in Login page likes: String onActivate() { if (!_user.isLogin()== true) { return null;

Tapestry Form Fields Query. Please advise.

2007-04-10 Thread tapuser
Hi, My domain object has 20 Fields. I am trying to place these fields in two pages ( 10 Each). While I am saving the 1st 10 fields in page one, the remaining 10 fields are getting reset to null values. The same true when I am updating the values in 2nd Page ( 1st Page values are getting reset.

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 http://tapestry.apache.org/tapestry4.1/components/f

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

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: 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: java.lang.Integer.valueO

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: 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?

Re: T5 ... assets and paths changing?

2007-04-10 Thread Robert Zeigler
Actually, T5.0.3 didn't remove path; path was added after 5.0.3. For T5.0.3 you do: @Inject("../edit.png") private Asset _icon; Robert On Apr 10, 2007, at 4/103:55 PM , Bruce Petro wrote: It appears that T5.0.3 has removed @Asset and @Path How do we then load an image to be used either direc

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: 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

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 getPrope

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: 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 your response. This feels

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 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 OGN

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. @Bef

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 st

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 mak

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 In Layout.java I have a sidebar block @Parameter(required=true) private Block _sidebar; What I can't figure out is how t

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 org.apache.tapestry.services.i

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

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: 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 level

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 framework.

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: 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 PROTECTE