I put the validator in my component as the follow:
input type=text t:type=TextField t:id=field_startDate
t:value=value_startDate t:validate=regexp /
And I define the validate message in the app.properties
The validate work well,but the error message display around the
component,how can I
When I input the chinese character and save it into table of SQL Server,but
the Chinese is changed into “”.How can I set it and save Chinese
character correctly.
My environment: Tapestry5.0.13
Window XP
T5C 0.5.13
utfStr=;
try{
utfStr=new String(滕训华.getBytes(),UTF-8);
}
catch(UnsupportedEncodingException e){
}
return new TextStreamResponse(text/html,utfStr);
}
My javascript code:
function customerChangeEvent
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.
Use the actionlink to navigate other page and want to pass a parameter
excepting with the @Persist, is there other method?
I have a component in my tml page:
t:select model=questionStatusBeans encoder=questionStatusBeans
value=selectQuestionStatus/
And in my page class:
private TblQuestionStatus selectQuestionStatus;
private GenericSelectModelTblQuestionStatus questionStatusBeans;
plugin to help you convert
encoding automatically.
Thanks!
DH
- Original Message -
From: 滕训华 [EMAIL PROTECTED]
To: 'Tapestry users' users@tapestry.apache.org
Sent: Wednesday, June 25, 2008 8:44 AM
Subject: Chinese can not display correctly
I use the ${message:labelKey} in the tml
I use the ${message:labelKey} in the tml and define the labelKey in the
properties with Chinese characters,but when the page display ,the Chinese
can not display correctly.
By the way,my properties file is define with UTF-8
Hi,does anybody can tell me how to trap the event of select change on the
select component in T5?Thanks
Hi,everyone:
I used the popup window of the t5c 0.5.13,how can i refresh the parent window
and refresh it.
Hi,Sven,
Today,I made some test and I found t5component 5.0.13 can not work with
t5.0.11 and if I change t5component 5.0.11,all will be fine.
with Tapestry 5.0.11, only 5.0.13 and up.
-Filip
滕训华 skrev:
Do the t5Components 5.0.13 really can work with t5.0.11?
But I found that org.apache.tapestry5. is used as the importing
package names of the t5components 5.0.13 source. tapestry 5.0.11 's package
name is org.apache.tapestry
I found that t5.0.13 can download,so I download it and replace the jars with
new version and change org.apache.tapestry into org.apache.tapestry5,but why
I can not start the tomcat server in eclipse
What i forget to do ?
On Thu, 2008-06-19 at 13:24 +0800, 滕训华 wrote:
I found that t5.0.13 can download,so I download it and replace the jars
with
new version and change org.apache.tapestry into org.apache.tapestry5,but
why
I can not start the tomcat server in eclipse
What i forget to do
Hi,Sven,
It's so awful,when i copy the t5c-commons-0.5.13.jar into /WEB-INF/lib
directory,when i start the tomcat server in elipse,it will give me an error:
2008-06-17 22:27:42,742 INFO
[org.springframework.web.context.ContextLoader] - Root WebApplicationContext:
initialization
I made some test,perhaps because of my new tapestry 5.0.13 jars ,I made several
times from the source,but it still had the problem.
Do yo have the compiled jar files,can you send it to me.My email is:[EMAIL
PROTECTED],I am very appreciate to you.
- Original Message -
From: 滕训华 [EMAIL
My enviroment is :spring+spring-acegi+hibernate+tapestry.
It can not clear exception ,but i found that the t.5.011(now i am using)
package name is org.apache.tapestry
but the t.5.0.14 is org.apache.tapestry5,is this error related with this
point?
The console information when start
org.apache.catalina.startup.Catalina start
信息: Server startup in 11376 ms
- Original Message -
From: Sven Homburg [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, June 17, 2008 11:23 PM
Subject: Re: Tapestry5 and new Window
send us the thrown exception
2008/6/17 滕训华 [EMAIL PROTECTED
is
org.apache.tapestry5.
- Original Message -
From: Sven Homburg [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, June 18, 2008 12:06 AM
Subject: Re: Tapestry5 and new Window
t5components 5.0.13 cant used with tapestry 5.0.11
2008/6/17 滕训华 [EMAIL PROTECTED
tapestry5-coponent 5.0.13 does not work with tapestry 5.0.11,does’t it?
I copy the t5c-commons-0.5.13.jar and t5c-contrib-0.5.13.jar into my lib
directory, and my tapestry version is t5.0.11,when I start my tomcat server
it gives me a error:
2008-6-18 9:07:17
attach the @CommitAfter annotation to method like this:
@CommitAfter
Object onSuccess()
{
customerManager.saveCustomer(customer);
return Customers.class;
}
2008/6/16 滕训华 [EMAIL PROTECTED]:
In my edit tml page there are two methods:
void onActivate(long customerId
When I put a beanEditForm component in my tml file as following:
t:beaneditform t:id=customer submitlabel=message:create-user/
And in page class
public class EditCustomer {
@Persist
private TblMenuItem customer;
public TblMenuItem getCustomer() {
return
Hi,friends,please give me some idea,thanks.
-邮件原件-
发件人: 滕训华 [mailto:[EMAIL PROTECTED]
发送时间: 2008年6月11日 9:04
收件人: 'Tapestry users'
主题: About refresh action of grid component
Hi:
I have a question about the grid component of T5.I made a page with a
grid component and a search
?
2008/6/11 滕训华 [EMAIL PROTECTED]:
Hi,friends,please give me some idea,thanks.
-邮件原件-
发件人: 滕训华 [mailto:[EMAIL PROTECTED]
发送时间: 2008年6月11日 9:04
收件人: 'Tapestry users'
主题: About refresh action of grid component
Hi:
I have a question about the grid component of T5.I made a page
Hi:
I have a question about the grid component of T5.I made a page with a
grid component and a search filed.At first the grid display all data from
one table,but i do not know how to refresh the grid component when enter
some words and get the sub recordset.Who can give me some idea about
I made my own login.tml and integrate acegi for my security.But when I run
the login page in IE,there is a error icon after username and password filed
even the first time to access it.
I don’t know why,
The login.tml is:
html
Login.tml
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
head
link href=${asset:context:css/style.css} rel=stylesheet
type=text/css /
titleYOUR TITLE HERE!/title
/head
body scroll=no
div class=header
div class=header_interiorimg
I want to integrate the spring and tapestry and spring-acegi. I have already
integrated the spring and tapestry or tapestry and spring-acegi,but how can
I integrate this three parts.
When I integrated the spring and tapestry, I use the follow filter:
filter
and spring-acegi
Why don't you have a look at tapestry-acegi ?
(http://www.localhost.nu/java/tapestry5-acegi/)
Stephane
滕训华 a écrit:
I want to integrate the spring and tapestry and spring-acegi. I have
already
integrated the spring and tapestry or tapestry and spring-acegi,but how
can
I integrate
I have a grid component in the page of T5 and its sources is got from
db.There is also another search field to filter the records.
I defined 2 method in my service class:
ListCustomerInfo getAllCustomers()
ListCustomerInfo search(String key)
when init this page will
Yes,I think you are right,follow is the relate source files
=== CustomerList.tml
t:pagelayout t:pageTitle=${message:label_pageTitle}
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
head
/head
body
t:form t:id=customerListForm
table
Yes, you can easily do this with javascript and WITHOUT extending the
grid by using a mixin.
chris
滕训华 wrote:
Hi,erveryone,I want to know whether can I extend the grid function in 5.0.
I
want to add the follow action:if I select a row of the grid then I change
the backcolor of it or double
Hi,erveryone,I want to know whether can I extend the grid function in 5.0.I
want to add the follow action:if I select a row of the grid then I change
the backcolor of it or double click the row to display a detail page.These
functions can be finished by extend the grid through my javascripts and
Because 5.0.6 need the template files are under the context path,but 5.0.11
need the files are under the root
-邮件原件-
发件人: Natia Gdzelishvili [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月8日 14:34
收件人: Tapestry users
主题: from T5.0.11 to T5.0.6
I change my application from tapestry 5.0.11
I have a form in a page and when the form is submitted,it will open another
page which is under the securePage path.But when it turn to this page,the
“securePage” is change to “securepage”,which leads to some js or css can
not read.why and how to solve this?
You only need to move the template files to up level (Webcontext not
WEB-INF) and rename their extension as .tml,it will be ok
-邮件原件-
发件人: Natia Gdzelishvili [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月8日 15:13
收件人: Tapestry users
主题: Re: from T5.0.11 to T5.0.6
if you dont recomend then
matter if a link is made to SecurePage, securepage, securePage, or
even SeCuRePaGe - it will reach the page.
chris
滕训华 wrote:
I have a form in a page and when the form is submitted,it will open
another
page which is under the securePage path.But when it turn to this page,the
“securePage
anyone help..
2008/4/8 Natia Gdzelishvili [EMAIL PROTECTED]:
tamplates are in webcontext, as thy were before
2008/4/8 滕训华 [EMAIL PROTECTED]:
You only need to move the template files to up level (Webcontext not
WEB-INF) and rename their extension as .tml,it will be ok
-邮件原件-
发件人
Now I hardcode in my program with the ../securePage ,the program run
normally.
Before I used a const class and define a static field with securePage as its
value, it would occur this problem.
-邮件原件-
发件人: 滕训华 [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月8日 15:20
收件人: 'Tapestry users'
主题: 答复
import java.io.IOException;
import org.apache.tapestry.services.Request;
import org.apache.tapestry.services.Response;
public class AccessController implements Dispatcher {
public boolean dispatch(Request request, Response response) throws
IOException {
boolean
You can find from http://code.google.com/p/tapestry5-components/ ,but I can
not find the document this,so I don't know how to use it
-邮件原件-
发件人: Ahmad Maimunif [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月7日 13:54
收件人: users@tapestry.apache.org
主题: is there tapestry 5 component for htmlarea?
Thanks ,I will try.
-邮件原件-
发件人: Angelo Chen [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月7日 14:17
收件人: users@tapestry.apache.org
主题: Re: About redirect page
response.sendRedirect(request.getContextPath() + /login);
return true;
txhdeve wrote:
import java.io.IOException;
import
Yes,do this in dispatcher is the right way,I have been successful in this
way according the articles of the wiki.thanks Angelo.
-邮件原件-
发件人: Angelo Chen [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月8日 7:14
收件人: users@tapestry.apache.org
主题: Re: How to redirect in component
Hi Francois,
You
I am a new to tapestry and I learn the component of tapestry.But now I can
not decide which should be used. The layout components or the frame
page.Because I think if layout component is used in every page then when we
switch the page,it must reload related components ,is it right?
Any
: select Component or iframe?
I think they are different. Frame is used in frameset page, but layout
component is to provide a common page structure.
Just like when you write html, you can't decide use frame or div.
Thanks!
DH
- Original Message -
From: 滕训华 [EMAIL PROTECTED]
To: 'Tapestry
users
主题: 答复: select Component or iframe?
IMHO frames are bad practice... from a pure HTML view
i'd rather go with layout components
g,
kris
滕训华 [EMAIL PROTECTED]
03.04.2008 09:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
'Tapestry users' users@tapestry.apache.org
Kopie
When we create html or tml with dreamwaver,it will create many “nbsp;” in
the td element.But when we use the file to run,tapestry will report error
because of the nbsp; except clearing all “nbsp;” ,how to slove this
problem?
According the book[Tapestry.5.Building.Web.Applications] --Create own
component ,but when i create the dateinput component and run it in a simple
page,i get the follow error:
An unexpected application exception has occurred.
Exception constructing service 'ValueEncoderSource': Error invoking
Why need hibernate.jar?I use tapestry5.0.11 but I do not need to integrate
with hibernate and my web.xml as follow:
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Yes,I remove the tapestry-hibernate-5.0.11.jar and hibernate3.jar,but the
error still has.
-邮件原件-
发件人: Tomasz Dziurko [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月3日 13:37
收件人: Tapestry users
主题: Re: TapestryHibernate
Maybe you also have tapestry-hibernate-5.0.11.jar in your lib
directory?
50 matches
Mail list logo