Re: [T5]: Http Error 500

2007-10-17 Thread Allen Guo
Again, nobody can give me some ideas? Caused by: java.lang.NoSuchFieldError: CONTAINING_PAGE_DID_LOAD_SIGNATURE Allen Guo 写道: Hi All, Everyday I build Tapestry5.0.6 then add to my project. But recently when I visit the pages of my project , I always get the same error like this : HTTP

[T5]: Http Error 500

2007-10-16 Thread Allen Guo
at org.apache.tapestry.internal.services.UnclaimedFieldWorker.transformField(UnclaimedFieldWorker.java:58) What's wrong with it ? Can anybody give me some ideas? Thank you in advance Allen Guo - To unsubscribe, e-mail: [EMAIL PRO

Re: [T5]How can I change session expired time?

2007-08-30 Thread Allen Guo
Marcus 写道: Hi, Use WEB-INF/web.xml: 15 This apply to any Servlet Container (not a Tapestry configuration). Marcus Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

[T5] how to get a dynamic localized key value

2007-08-30 Thread Allen Guo
Hi All, I have a question on how to get a dynamic localized key value Below is a scenario [ ${message:} I hope similar codes above can get the localized key from properties file dynamiclly There may be following data in properties file // **_zh_CN.properties california=加利福尼亚 indiana=印第安那 //

Re: T5:remember the loginned user

2007-08-30 Thread Allen Guo
Angelo Chen 写道: Hi, In my program I'd verify the user and create an ASO until he log out or the ASO expires. Now I'd like to add an option: 'remember me' like the one in yahoo, if checked, program will automatically login the user next time, how to achieve this? thanks. A.C. Try to jsession

Re: [T5] annoying javascript problem

2007-08-27 Thread Allen Guo
I think T5 must support CDATA in stable release. Allen Guo 写道: Hi All, Due to the project requirement, I often add some javascript to .html like this: sample: var s; for (var i=0;i++;i < productCnt){ s += "palcehoder" + i; } . another sample You know, in T5, the html f

[T5] annoying javascript problem

2007-08-27 Thread Allen Guo
Hi All, Due to the project requirement, I often add some javascript to .html like this: sample: var s; for (var i=0;i++;i < productCnt){ s += "palcehoder" + i; } . another sample You know, in T5, the html file must be a strict xml file, So above codes which cotain '>' won't be all

[T5]Encoding Problem while submiting form with a Upload component.

2007-08-27 Thread Allen Guo
Hi All, I have a form with a 'textfield' and a 'upload' field . The Chinese words I input in textfield will be irrecognizable when I submit the form . Or I use the form without a 'upload' but exactly add the property enctype="multipart/form-data", the same error occurr. And I absolutely use

Re: T5 DOCTYPE in templates

2007-08-27 Thread Allen Guo
You can try http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> instead of "http://www.w3.org/TR/html4/loose.dtd";> Good Luck Guoguo Long Peter Stavrinides 写道: Hi all, I am trying to use some special characters in my templates such as   so I tried to add the DOCTYPE header, but I keep

[T5] How to add a extra column for delete/update action using Grid component.

2007-08-21 Thread Allen Guo
Hi All, Usually we display user list using grid component. It's like this As shown above, the source property value is 'users' is just the user list may fetch from database. The result will display all properties of user class in table . Now I want to only display some of properties of user cla

Re: T5.0.5 : How to specify a global meta key/value pair

2007-08-11 Thread Allen Guo
For Global value, can I use static variable ? Shing Hing Man 写道: It works using symbol. Thanks! The following is what I have done. Add the following to AppModule.java : public static void contributeApplicationDefaults( MappedConfiguration configuration) { configura

Re: Select component problem in T5

2007-07-29 Thread Allen Guo
work, implement the SelectModel interface. Daniel Jue posted an interesting generic solution here: http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+5+GenericSelectionModel Cheers, Nick. Allen Guo wrote: I changed OptionModel option = new OptionModelImpl(obj.getName(), true, obj.getCode())

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
I changed OptionModel option = new OptionModelImpl(obj.getName(), true, obj.getCode()); to OptionModel option = new OptionModelImpl(obj.getName(), false, obj.getCode()); It works fine. But I don't know why OptionModelImpl construction need the second parameter. Allen Guo 写道: Hi

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
Sorry, it should be getCurrencyModel(). But the code is similar to getCountryCode() Allen Guo 写道: Hi Nick, Below is definitely code I call the method to get the model . . public SelectModel getCountryModel() { List options = new ArrayList(); List list = service.getBaseCountryDao

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
Last time I asked you to post your model code, but you didn't I'm pretty sure the problem is in your model. Cheers, Nick. Allen Guo wrote: Hi All, When I use select model="currencyModel" value="currency" size="1"/> I always get the generate html cod

Is T5.0.6 in progress

2007-07-26 Thread Allen Guo
Hi All, Recently it seems the T5 trunk haven't any code update. Is T5 dead? Thanks Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Select component problem in T5

2007-07-26 Thread Allen Guo
27;m told I may don't use disable="false" in In fact, I exactlly use disabled="false". But the problem still occurred. Can anybody give me some sugesstion? Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Select Component can't work in TP-5.0.5

2007-07-04 Thread Allen Guo
Hi All, I use select component in html template like this The generated result is like this bug pet I used the latest TP5.0.5(not snapshot). It's really very strange. Can anyone give me a help? Thank you in advance Alle

Re: Select Component Problem in TP5.0.5 Snapshot

2007-06-30 Thread Allen Guo
I still take care this problem Allen Guo 写道: > And I found select component have a attribute named 'disabled'. > Won't it has a conflict with the html ? > > Allen Guo 写道: > >> Hi All >> >> I use select component in html template like this >&g

Re: Build Tapestry5.0.5 error

2007-06-30 Thread Allen Guo
I use Maven 2.0.7. But the same error occurred Howard Lewis Ship 写道: > Use Maven 2.0.5. > > On 6/28/07, Allen Guo <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> Today I build the tapestry-ioc module in eclipse, I get the following >> build error >> >&

Re: Select Component Problem in TP5.0.5 Snapshot

2007-06-30 Thread Allen Guo
And I found select component have a attribute named 'disabled'. Won't it has a conflict with the html ? Allen Guo 写道: > Hi All > > I use select component in html template like this > value="shop.currTemplate.backgroundImage" size="1" disable

Select Component Problem in TP5.0.5 Snapshot

2007-06-30 Thread Allen Guo
Hi All I use select component in html template like this The generated result is like this bug pet It's very strange. Can anyone give me a help? Thank you in advance Allen Guo - To unsubscribe, e-mail: [

field-error-marker error in TP5.0.5

2007-06-29 Thread Allen Guo
Hi All I use T5.0.5 to bind the java field and html field, But I always get the similar error like this Anyway , the page class field value can be display correctlly and pass to backend from html side. It's so strange . Can anybody give me some suggestion? Thank you in advance Allen

Invoke method with pararmeters in TP5.0.5

2007-06-28 Thread Allen Guo
it. It doesn't work. I want to know if tp5 support the feature? If not, do you think if we really need the feature??? Thanks Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Build Tapestry5.0.5 error

2007-06-28 Thread Allen Guo
endency.version' is missing for commons-logging:commons-logging 07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing for org.easymock:easymock 07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing for log4j:log4j How can I

Tapestry-Upload for TP5.0.4

2007-06-23 Thread Allen Guo
ad' be found. I test them again and again. the same error occurr. Could anyone give me an idea? Thanks in advanced Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About component 'loop' usage in T5.0.4

2007-06-09 Thread Allen Guo
Can anybody give some suggestion? Allen Guo 写道: > Hi All, > > If I use loop component in html template like this > > ${_sort.name} > > > I have to define the property in corresponding page class like this > public class SortList { > . > private Sort sort; &g

Re: How can I use javascript in html template with TP5.0.4

2007-06-09 Thread Allen Guo
lerns 写道: > hi allen, > replace your '<' character with '<' in line 19 should fix it. > > regards, > timo > > Allen Guo wrote: > >> Hi All, >> >> I use javascript in my html template file like this. >> 15

How can I use javascript in html template with TP5.0.4

2007-06-09 Thread Allen Guo
Hi All, I use javascript in my html template file like this. 15

About component 'loop' usage in T5.0.4

2007-06-08 Thread Allen Guo
= sort; } . } It seems that the 'sort' must be defined in page class. It's so terrible.:( If I can remove the property 'sort' from page class like T4.1, it will be great. Thanks Allen Guo - To un

T5.0.5 build error due to expired tapestry-ioc-5.0.5-SNAPSHOT.jar

2007-06-08 Thread Allen Guo
tings\guojunlong\.m2\repository\org\apache\tapestry\tapestry-ioc\5.0.5-SNAPSHOT 2. in eclipse, right click project name then click maven2->disable 3. in eclipse, right click project name then click maven2->enable It's woring. that is all. Is there any good way to do it?

Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Allen Guo
Nobody answer me ? :( > Hi All, > > I use T5.0.4. I packaged some common components to common.jar. > You know, in T3/4, we may add a configuration like contrib to > .application file. But how can I use it in my another project base on T5? > >

How to use the third-party T5 Component in another T5 project

2007-06-07 Thread Allen Guo
Hi All, I use T5.0.4. I packaged some common components to common.jar. You know, in T3/4, we may add a configuration like contrib to .application file. But how can I use it in my another project base on T5? Thanks Allen Guo

Trigger different behavior by clicking the different button in Tapestry5.0.4

2007-05-28 Thread Allen Guo
or PageLink, I know how I can do it. But for button type is 'submit', what should I do? Thanks in advanced Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-23 Thread Allen Guo
all images are searchable via the jackrabbit index. Phillip - Original Message ----- From: "Allen Guo" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, May 23, 2007 1:12:11 AM (GMT-0500) America/New_York Subject: Re: How to load a image dynamiclly in tapestry5

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-22 Thread Allen Guo
TED]> wrote: >> >> The book "The Pragmatic Programmer" is an excellent start on learning >> how >> to >> organize your code and your mind and work effectively, >> professionally, and >> pragmatically. >> >> http://www.po

The link is not available in FireFox

2007-05-21 Thread Allen Guo
Hi All, Had anyone visit http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html in FireFox2.0? It won't jump to appropriate position if you click the index link on the page. Allen Guo from Shanghai. ---

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-21 Thread Allen Guo
at if the above solution is insufficient. Assets are useful for accessing resources inside the web application context, or on the classpath, and includes logic related to localization ... but it is not always appropriate when accessing resources that are well outside the web application itself. On 5

How to use loop component in Tapestry5.0.4

2007-05-21 Thread Allen Guo
Hi All, If I use loop component like 1. 2. ${product.name}a> 3. I must craete a property named 'product' in page class. It'll report exception if I don't do like this. Is it necessary? I really don't like so terrible rule:( Than

Re: Create sub-package base on Tapestry5.0.4

2007-05-20 Thread Allen Guo
hip 写道: org.opend.bogo.pages.admin.Shop will search for its template on the classpath as org/opend/bogo/pages/admin/Shop.html or in the web context as WEB-INF/admin/Shop.html. I'm pretty sure this works, because I was demoing it for a client recently ... On 5/19/07, Allen Guo <[EMAIL PR

How to map a html field to a complicated property of page class in Tapestry5.0.4

2007-05-19 Thread Allen Guo
Hi All, There is a page class below. // ProductDetail.java private Goods _goods; public void setGoods(Goods g) { this._goods = g; } public Goods getGoods() { Goods goods = new Goods(); goods.setDescription("Pure Cotton TShirt"); goods.setName("Pumpkin"); this._goods = goods; } ... // ProductDetail

Validation display format not good in IE(Tapestry5.0.4)

2007-05-19 Thread Allen Guo
Hi All, Has anyone tried the validation message display in IE I found the validation message display in IE is not good, but it's fine in FireFox. The test is based on Tapestry5.0.4 or Tapestry5.0.3 Allen Guo - To unsubs

How to load a image dynamiclly in tapestry5.0.4

2007-05-19 Thread Allen Guo
o it using the first approach, exception occured. And I don't know how to the second approach. Can anyone give me an idea? Thank in advance Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

I can’t use enity in template

2007-05-19 Thread Allen Guo
Hi All I cann't still use enities in template in Tapestry5.0.4, the system throw the same exception below Failure parsing template context:WEB-INF/ProductEdit.html: The entity "nbsp" was referenced, but not declar

Re: Create sub-package base on Tapestry5.0.4

2007-05-19 Thread Allen Guo
template on the classpath as org/opend/bogo/pages/admin/Shop.html or in the web context as WEB-INF/admin/Shop.html. I'm pretty sure this works, because I was demoing it for a client recently ... On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote: Hi All, I set the param

Create sub-package base on Tapestry5.0.4

2007-05-19 Thread Allen Guo
can't now. Could anybody give me some suggestion? from Shanghai Allen Guo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]