Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread cleverpig
check source code from svn meeting your tapestry version,and look up
the inside of link.addParameter function.
ps: your search.getTitle() return value is correct?

On Fri, Sep 10, 2010 at 5:21 PM, Fanzhen  wrote:
>
>  hey,cleverpig.
> have tried all you guys said .
> I think it is not the problem of the UTF-8 encoding,because it is ok in
> general form submit.
> It is a exception for this page which using Link and URLParameterHelper to
> handle parameters .
>
>
>
> On 2010-9-10 16:55, cleverpig wrote:
>>
>> sure,I'm agreed with ningdh.since your pages are all utf-8 encoding,so
>> remove your utf-8 filter and going to try again.
>>
>> 2010/9/10 ningdh:
>>>
>>> You should try removing your utf8 filter because it is unnecessary in T5.
>>> In my project, all the files are utf-8 and no problem at all.
>>>
>>> DH
>>>
>>> ----- Original Message -----
>>> From: "Fanzhen"
>>> To: "Tapestry users"
>>> Sent: Friday, September 10, 2010 3:21 PM
>>> Subject: Re: Tapestry5 Form submit Encoding (Chinese)!!
>>>
>>>
>>>> On 2010-9-10 13:59, Donyee wrote:
>>>>>
>>>>> T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
>>>>> encoding is GBK,
>>>>> works fine!
>>>>> what is your page charset???
>>>>
>>>> all files of my project are based in UTF8 encoding.
>>>> you meant it does matter with my page encoding,I have tried to change
>>>> the page to GBK encoding,
>>>> but it didn't work .
>>>>
>>>> thank you !
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread Fanzhen


 hey,cleverpig.
have tried all you guys said .
I think it is not the problem of the UTF-8 encoding,because it is ok in 
general form submit.
It is a exception for this page which using Link and URLParameterHelper 
to handle parameters .




On 2010-9-10 16:55, cleverpig wrote:

sure,I'm agreed with ningdh.since your pages are all utf-8 encoding,so
remove your utf-8 filter and going to try again.

2010/9/10 ningdh:

You should try removing your utf8 filter because it is unnecessary in T5.
In my project, all the files are utf-8 and no problem at all.

DH

- Original Message -
From: "Fanzhen"
To: "Tapestry users"
Sent: Friday, September 10, 2010 3:21 PM
Subject: Re: Tapestry5 Form submit Encoding (Chinese)!!



On 2010-9-10 13:59, Donyee wrote:

T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
encoding is GBK,
works fine!
what is your page charset???

all files of my project are based in UTF8 encoding.
you meant it does matter with my page encoding,I have tried to change
the page to GBK encoding,
but it didn't work .

thank you !


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread cleverpig
sure,I'm agreed with ningdh.since your pages are all utf-8 encoding,so
remove your utf-8 filter and going to try again.

2010/9/10 ningdh :
> You should try removing your utf8 filter because it is unnecessary in T5.
> In my project, all the files are utf-8 and no problem at all.
>
> DH
>
> - Original Message -
> From: "Fanzhen" 
> To: "Tapestry users" 
> Sent: Friday, September 10, 2010 3:21 PM
> Subject: Re: Tapestry5 Form submit Encoding (Chinese)!!
>
>
>>
>> On 2010-9-10 13:59, Donyee wrote:
>>> T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
>>> encoding is GBK,
>>> works fine!
>>> what is your page charset???
>>
>> all files of my project are based in UTF8 encoding.
>> you meant it does matter with my page encoding,I have tried to change
>> the page to GBK encoding,
>> but it didn't work .
>>
>> thank you !
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread ningdh
You should try removing your utf8 filter because it is unnecessary in T5.
In my project, all the files are utf-8 and no problem at all.

DH

- Original Message - 
From: "Fanzhen" 
To: "Tapestry users" 
Sent: Friday, September 10, 2010 3:21 PM
Subject: Re: Tapestry5 Form submit Encoding (Chinese)!!


> 
> On 2010-9-10 13:59, Donyee wrote:
>> T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
>> encoding is GBK,
>> works fine!
>> what is your page charset???  
> 
> all files of my project are based in UTF8 encoding.
> you meant it does matter with my page encoding,I have tried to change
> the page to GBK encoding,
> but it didn't work .
> 
> thank you !
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
>

Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread Fanzhen

 On 2010-9-10 13:59, Donyee wrote:
> T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
> encoding is GBK,
> works fine!
> what is your page charset???  

all files of my project are based in UTF8 encoding.
you meant it does matter with my page encoding,I have tried to change
the page to GBK encoding,
but it didn't work .

thank you !


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-09 Thread Donyee
T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project
encoding is GBK,
works fine!
what is your page charset???



-- 
Yet Another Java EE Developer!


Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-09 Thread cleverpig
Hi,man!

I never meet this problem in chinese,and I've not add utf-8 encoding
feature in service module yet.
I mean there would be a trick in your code putSearchCriteriaInALink.
you can inspect seach.getTitle value before call
link.addParameter("searchParam_title", search.getTitle();

On Fri, Sep 10, 2010 at 11:32 AM, Fanzhen  wrote:
>
>  hey,friends
>
> what I code in T5 page class:
>
>
> Link onSuccess() {
> return putSearchCriteriaInALink(_searchFields);
> }
>
> Link putSearchCriteriaInALink(MmsLibrarySearchFields search) {
>
> Link link = _pageRenderLinkSource.createPageRenderLink(this.getClass());
> link.addParameter("searchParam_title", search.getTitle();
> return link;
> }
>
> and I have done UTF-8 filter in my AppModule:
>
> public RequestFilter buildUtf8Filter(
> @InjectService("RequestGlobals") final RequestGlobals requestGlobals) {
> return new RequestFilter() {
> public boolean service(Request request, Response response,
> RequestHandler handler) throws IOException {
> requestGlobals.getHTTPServletRequest().setCharacterEncoding("UTF-8");
> return handler.service(request, response);
> }
> };
> }
>
> public void contributeRequestHandler(
> OrderedConfiguration configuration,
> @InjectService("Utf8Filter") final RequestFilter utf8Filter) {
> configuration.add("Utf8Filter", utf8Filter);
> }
>
>
> the problem is when I input a Chinese title such as "您好" in textfield of
> search form , it does not encode well!!
>
> so, could anyone tell me where I am wrong??
>
> thanks in advance!!!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org