Re: t5: Returning block works in Firefox but not in IE

2008-06-30 Thread Lance Java
With me, I had a javascript bug so tapestry's javascript did not execute. I fixed my javascript bugs and everything started working. 2008/6/30 Weisu <[EMAIL PROTECTED]>: > > Hi Lance, I have the same error message. Could you kindly show the steps to > make this work? > Thanks in advance. > Weisu.

Re: t5: Returning block works in Firefox but not in IE

2008-06-30 Thread Tan [EMAIL PROTECTED]
tapestry 5.0.13 have solved the problem on IE On Mon, Jun 30, 2008 at 4:14 PM, Lance Java <[EMAIL PROTECTED]> wrote: > With me, I had a javascript bug so tapestry's javascript did not execute. > I fixed my javascript bugs and everything started working. > > 2008/6/30 Weisu <[EMAIL PROTECTED]>: >

Creating new components on the fly in T5 using AJAX/JSON

2008-06-30 Thread Denis McCarthy
Hi, I'm working on a somewhat complex page at the moment. This page consists of several input boxes that users fill in. I've got various onblur AJAX mixins that fire on this page when fields are filled in by a user. Currently, based on the values that users put into these text boxes, other text box

Re: Creating new components on the fly in T5 using AJAX/JSON

2008-06-30 Thread Lance Java
I only know how how to populate zones with form submits or event links. I'm sure you can take a look at the eventlink component and copy / paste. Then all you need to do specify the zone to populate and return: - A class object for your component - The name (String) of the component - A component

Re: Creating new components on the fly in T5 using AJAX/JSON

2008-06-30 Thread Udo Abel
Hi Denis, that's a similiar problem I had (and partly still have): to render a component based on current application data. The suggested solution was to either - use the "if" - component to include the rendering of a component based on a test-condition. The test-condition is an application pr

Re: T5: Dynamic zone id

2008-06-30 Thread Theo vN
Inject the editZone in your page: @Component @Id("editZone") private editZone; Have a property, say getZone() on your FundGraph.java that exposes your page's editZone. In your FundGraph.tml's actionlink/form have: 2008/6/26 Lance Java <[EMAIL PROTECTED]>: > Consider the following example: > >

Re: [T5] Grid paging refresh the whole document , can it be done in AJAX-way ?

2008-06-30 Thread Tan [EMAIL PROTECTED]
i'm using java 1.5. but the problem still the same. is there any parameter or java code that need to code before it able to function properly? On Sun, Jun 29, 2008 at 11:59 PM, faramos <[EMAIL PROTECTED]> wrote: > > hi... > > Someone mentioned that with java 1.6 does not work but with java 1.5 wo

[T5] tapestry grid inplace.

2008-06-30 Thread Tan [EMAIL PROTECTED]
hi all, is any one have workable tapestry5 grid inplace sample? i think i have miss out some coding. it show me "here is no data to display". REGards, Cyber

PageLink or ActionLink in new Window

2008-06-30 Thread 滕训华
I want to make a link through the pageLink or actionLink component ,how to put the new page into a popup window and keeping the old window.

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Yunhua Sang
Have you put the grid in a zone? On Mon, Jun 30, 2008 at 10:48 AM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi all, > > is any one have workable tapestry5 grid inplace sample? i think i have miss > out some coding. > it show me "here is no data to display". > > > REGards, > Cyber >

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Tan [EMAIL PROTECTED]
no. do you have any sample ? On Tue, Jul 1, 2008 at 12:39 AM, Yunhua Sang <[EMAIL PROTECTED]> wrote: > Have you put the grid in a zone? > > On Mon, Jun 30, 2008 at 10:48 AM, Tan [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > hi all, > > > > is any one have workable tapestry5 grid inplace samp

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Tan [EMAIL PROTECTED]
may i know how to code it? because i have tried as what u have mentioned. but still come out the message. there is no a data. On Tue, Jul 1, 2008 at 12:44 AM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > no. do you have any sample ? > > > On Tue, Jul 1, 2008 at 12:39 AM, Yunhua Sang <[EMAIL

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Yunhua Sang
So when you remove the inPlace attribute, it works well, right? May I have a look at your code? On Mon, Jun 30, 2008 at 12:48 PM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > may i know how to code it? because i have tried as what u have mentioned. > but still come > out the message. there

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Tan [EMAIL PROTECTED]
${materialType.id} thank you On Tue, Jul 1, 2008 at 12:57 AM, Yunhua Sang <[EMAIL PROTECTED]> wrote: > So when you remove the inPlace attribute, it works well, right? > > May I have a look a

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Yunhua Sang
Is materialTypes with annotation @Persist? By the way, you don't need to put the t:grid in a zone, my mistake. if inPlace set to ture, the grid is with a zone aromatically. Yunhua On Mon, Jun 30, 2008 at 1:01 PM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >t:source="materia

Re: [T5] Ajax request and expired session

2008-06-30 Thread Julian Wood
I've been interested in a solution to this too. When I place a header in the response object in an AJAX handler, however, it is always there, regardless of whether the application has timed out or not. The AJAX response content is still just {}. Is it possible to tell from within the app wh

Re: [T5] Ajax request and expired session

2008-06-30 Thread Josh Canfield
Without more detail it's hard to say why your response is empty. You don't need a session to return a response from your AJAX handler. You could check your objects that you are getting from the session and if they are null set the response header. On Mon, Jun 30, 2008 at 11:08 AM, Julian Wood <[EM

Re: [T5] Getting the source of an event

2008-06-30 Thread Thiago H. de Paula Figueiredo
Em Fri, 27 Jun 2008 13:05:46 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: This would be tricky, the information is somewhat compartmentalized and the other problem is how to communicate the Event object to the event handler method. We could change Event to expose the source Component

Loop Component

2008-06-30 Thread Peter Courcoux
Hi all, When the loop component sets the value from the iterator, it seems to miss properties inherited from a base class. So if I'm iterating over a set of objects of class B which extends A, I'm only seeing the properties of B set. All the properties which are inherited from A are null.

Re: Loop Component

2008-06-30 Thread Sven Homburg
the OGNL binding should help you http://code.google.com/p/tapestry5-components/ http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html 2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>: > Hi all, > > When the loop component sets the value from the iterator, it seems to miss > prope

ClassNameLocatorImpl in OSGi

2008-06-30 Thread Igor Drobiazko
In my company we are trying to embed a Tapestry application into an OSGi application. We are using Equinox (http://www.eclipse.org/equinox/) as an implementation of the OSGi R4 specification. Via OSGi Http service it is possible to embed a simple Servlet into OSGi. But we are experiencing classpath

Re: part-time Tapestry job

2008-06-30 Thread Patrick Moore
As someone pointed out I should describe what the project is/will do. AmpFlow takes existing ideas about web wizards and extends them in new and interesting ways. Specifically: - completely decouples the web front-end from the database - unifies wizard creation with API definition (when yo

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Tan [EMAIL PROTECTED]
thank you YunHua. because lack of @Persist :) On Tue, Jul 1, 2008 at 2:00 AM, Yunhua Sang <[EMAIL PROTECTED]> wrote: > Is materialTypes with annotation @Persist? > > By the way, you don't need to put the t:grid in a zone, my mistake. if > inPlace set to ture, the grid is with a zone aromatically

Re: Creating new components on the fly in T5 using AJAX/JSON

2008-06-30 Thread Brian Lough
You can. Adding a contributer to BeanBlockSource for a given property will allow you to "check" if it should be displayed, and if so, generate the html markup to display or present the input for the given property. IMHO, since most [other] framework coders just "hide" whatever property they d

Re: The chinese characters can not be saved correctly

2008-06-30 Thread dhning
That should be not related to Tapestry. What's your DB? Google it with relevant charset problem. Make sure the connection encode and db table charset consistent and valid. Thanks! DH - Original Message - From: "滕训华" <[EMAIL PROTECTED]> To: "'Tapestry users'" Sent: Tuesday, July 01

initial disabled element enabled using javascript seems not to keep value

2008-06-30 Thread Martijn Brinkers (List)
In a component template I initially disable an input element when a specific page property returns true Example: (where checked is the page property returning a boolean value). I also have a checkbox that enables the input element when the checkbox is unchecked (and disables it when checked).

Re: The chinese characters can not be saved correctly

2008-06-30 Thread dhning
But my environment works well in form. Mysql DB: gbk DB Table: gbk connection url: jdbc:mysql://localhost/db-name I can input Chinese and can view it correctly in page. In your case, how you test with your develop tool (and what is it)? Have you tested some sample text with direct jdbc connectio

T5 first time loading very slow.

2008-06-30 Thread Tan [EMAIL PROTECTED]
hi all, my T5 first time loading very slow. it need to take 45sec ~1mins++ by using Core2Duo. is there any way to tune it? Thank you. REgards, TAnMH

Re: T5 first time loading very slow.

2008-06-30 Thread Angelo Chen
does the page contain some javascripts? sometimes it takes to download, try using Firefox's firebug to check how many Ks downloaded. Tan [EMAIL PROTECTED] wrote: > > hi all, > > my T5 first time loading very slow. it need to take 45sec ~1mins++ by > using > Core2Duo. > is there any way to tune

Re: T5 first time loading very slow.

2008-06-30 Thread Tan [EMAIL PROTECTED]
Hi, i have tried even pure tapestry code without javascript. it will take me 45sec ~ 1mins ++. is that pagepool took too long to load up? Thank you. Cyber On Tue, Jul 1, 2008 at 1:32 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > does the page contain some javascripts? sometimes it takes to dow

Re: T5 first time loading very slow.

2008-06-30 Thread Robert Zeigler
Hi Tan, I'm pretty sure this is NOT tapestry. I have multiple apps of varying degrees of complexity, and it only ever takes a few seconds at most to startup T5. You might consider profiling... Robert On Jul 1, 2008, at 7/112:46 AM , Tan [EMAIL PROTECTED] wrote: Hi, i have tried even pure

Re: T5components crash with mysql jdbc??

2008-06-30 Thread Robert Zeigler
That looks more like you have a pooling mechanism enabled, but the connection is timing out. It's definitely not t5component/mysqljdbc interaction; just today, I created a new project using both mysql's connector/J, and t5components, and I've had no issues. Robert On Jun 29, 2008, at 6/291

Re: t5: Returning block works in Firefox but not in IE

2008-06-30 Thread Weisu
I am using Firefox 3.0 and T 5.0.13, still has this problem. Tan [EMAIL PROTECTED] wrote: > > tapestry 5.0.13 have solved the problem on IE > > On Mon, Jun 30, 2008 at 4:14 PM, Lance Java <[EMAIL PROTECTED]> > wrote: > >> With me, I had a javascript bug so tapestry's javascript did not execute

Re: T5 first time loading very slow.

2008-06-30 Thread José Paumard
Hello, If you have an Hibernate module in yout T5 application, then it's most probably the time taken by Hibernate to scan the table in your DB schema. I'm working on an app with both a Tomcat only and a Tomcat + JBoss deployment environment, in the 2nd case, it's JBoss that takes care of this