[RELEASE] Tapestry 4.0-alpha-3

2005-05-20 Thread Howard Lewis Ship
The latest alpha release of the Tapestry web application framework is
now available. This release fixes some minor problems in the prior
alpha release, and adds several important new features:

 * Submit components by default defer invoking their listener until
the end of the form submission.
 * Submit components can pass listener parameters into listener methods.
 * Meta data and parsed script templates can now be injected into
pages and components.
 * Listener methods are now invoked in a pipeline that can be extended.
 * Validator objects can now be specified using a validator: binding prefix.

-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [RELEASE] Tapestry 4.0-alpha-3

2005-05-20 Thread Ben Eng
On Fri, May 20, 2005 at 10:24:51AM -0400, Howard Lewis Ship wrote:
  * Meta data and parsed script templates can now be injected into
 pages and components.

This sounds interesting. Does this mean that we can now dynamically
instantiate components onto a page without having to declare them
statically? I'm dying to know how.

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is wrong with this upload filename (UTF-8) encoding?

2005-05-20 Thread Lauriberto Alves \(Engenharia-BSB\)
Hi!

 

I was trying to submit a html form which has a html:file tag and others 
html:text and html:textarea tags. I have specified 
multipart/form-data to the parameter enctype in html:form and I have 
set character-encoding in all JSP pages through the following tag: 

 

%@ page

  language=java 

  pageEncoding=UTF-8 

  contentType=text/html;charset=utf-8 %

 

I have override the method handleRequest() in a subclass of 
org.apache.struts.upload.CommonsMultipartRequestHandler

 

and I have put the following tag in struts-config file:

 

controller

  contentType=text/html;charset=utf-8 

  locale=true 

  nocache=true

  multipartClass=br.com.agenciaclick.struts.MyMultiPartClassHandler/

 

but it was not enough, because the following conflict: If the enctype of form 
is set to multipart/form-data, the file submmited are well parsed and 
received by the server, but the text fields have not their own enctype. Thus 
the enctype found to each text field are null and the method 
addTextParameter() inside 
org.apache.struts.upload.CommonsMultipartRequestHandler class treat them as 
ISO-8859-1, like this line of code:

 

value = item.getString(ISO-8859-1);

 

It would better if the information configured through controller tag in 
struts-config file was passed as parameter through the methods until here, and 
then the line of code above should use the character encoding specified by the 
programmer.

 

I have implemented this solution in my project and it has working well.

 

Thanks for this opportunity

 

Lauriberto Mximo Alves

System Analist and System Engineer

AgenciaClick Braslia - Brazil

E-mail: [EMAIL PROTECTED] 

Phone Number   : +55 (61)  424-5800

Work FAX Number: +55 (61)  424-5820

Mobile Phone Number: +55 (61) 9974-3514



What is wrong with this upload filename (UTF-8) encoding?

2005-05-20 Thread Lauriberto Alves \(Engenharia-BSB\)
Hi!

 

I was trying to submit a html form which has a html:file tag and others 
html:text and html:textarea tags. I have specified 
multipart/form-data to the parameter enctype in html:form and I have 
set character-encoding in all JSP pages through the following tag: 

 

%@ page

  language=java 

  pageEncoding=UTF-8 

  contentType=text/html;charset=utf-8 %

 

I have override the method handleRequest() in a subclass of 
org.apache.struts.upload.CommonsMultipartRequestHandler

 

and I have put the following tag in struts-config file:

 

controller

  contentType=text/html;charset=utf-8 

  locale=true 

  nocache=true

  multipartClass=br.com.agenciaclick.struts.MyMultiPartClassHandler/

 

but it was not enough, because the following conflict: If the enctype of form 
is set to multipart/form-data, the file submmited are well parsed and 
received by the server, but the text fields have not their own enctype. Thus 
the enctype found to each text field are null and the method 
addTextParameter() inside 
org.apache.struts.upload.CommonsMultipartRequestHandler class treat them as 
ISO-8859-1, like this line of code:

 

value = item.getString(ISO-8859-1);

 

It would better if the information configured through controller tag in 
struts-config file was passed as parameter through the methods until here, and 
then the line of code above should use the character encoding specified by the 
programmer.

 

I have implemented this solution in my project and it has working well.

 

Thanks for this opportunity

 

Lauriberto Mximo Alves

System Analist and System Engineer

AgenciaClick Braslia - Brazil

E-mail: [EMAIL PROTECTED] 

Phone Number   : +55 (61)  424-5800

Work FAX Number: +55 (61)  424-5820

Mobile Phone Number: +55 (61) 9974-3514



Announce: JaxMe 0.4

2005-05-20 Thread Jochen Wiedmann

Hi,

I'm glad to announce the availability of Apache JaxMe 0.4. Apache
JaxMe is a Java/XML binding framework and aims to become an
implementation of the JAXB specification.

Version 0.4 is a feature release: Compared to version 0.3, it adds
support for nested groups and the indexed collection type.

Jochen

JaxMe 0.4 download: http://ws.apache.org/jaxme/downloads.cgi
More details on Apache JaxMe: http://ws.apache.org/jaxme/
More details on JAXB: http://java.sun.com/xml/jaxb/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is wrong with this upload filename (UTF-8) encoding?

2005-05-20 Thread Simon Kitching
Hi,

On Fri, 2005-05-20 at 17:09 -0300, Lauriberto Alves (Engenharia-BSB)
wrote:
 I was trying to submit a html form which has a html:file tag 

This general@jakarta.apache.org list is intended for messages related to
administration of the jakarta project.

Your message looks useful, but unfortunately won't reach the right
readers here. Please post your message on the struts user list instead:
  http://struts.apache.org/mail.html

Thanks,

Simon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]