Re: Apache FOP integration

2022-01-28 Thread Ivano Luberti

BTW Itext is no more open source, right?

Il 28/01/2022 10:29, Volker Lamp ha scritto:

Hello everybody

Thank you all for your responses. Very useful to learn various libraries
are being used in Tapestry apps. iText, JasperReport, PDFBox, and FOP.

We'll go with Apache FOP in our project as it turns out we can re-use some
FOP stylesheets from another project.

A Tapestry FOP module would be useful for configuring FOP in a Tapestry
manner. Likewise, it would include a service that would hold the FopFactory
instance which (according to the FOP docs) is supposed to be reused if one
plans to render multiple documents during a JVM's lifetime.

As Ilya described, a Tapestry FOP module is, however, not necessary. One
can just read a config file and configure FOP programmatically.

Again, thank you all for your thoughts. Have a nice weekend.

Cheers,

Volker


--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>


dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


Re: Apache FOP integration

2022-01-27 Thread Ivano Luberti

Forgot to say I use pdfbox for pdf and zxing for QRCodes

Il 28/01/2022 08:28, Ivano Luberti ha scritto:

On a related argument, how do you print QRCodes or barcodes on the pdf?

Il 27/01/2022 14:52, Ilya Obshadko ha scritto:

I've been using FOP to generate PDFs from the Tapestry application for
quite a few years. There's nothing specific to Tapestry, you just 
create a
"rendering service" which does all the processing for you. The only 
caveat

I remember is using Saxon instead of Xalan for running initial
transformation (it's *much* faster and has a lower memory footprint).

This is the entire code responsible for producing PDF:

// 1) create transformer
if (fopFactory == null) {
 fopFactory = FopFactory.newInstance();
 final URL fopConfigResource =
getClass().getClassLoader().getResource(FOP_CONFIG_URL);
 final URL fontsDirectoryResource =
getClass().getClassLoader().getResource("your/font/package");
 assert fopConfigResource != null && fontsDirectoryResource != null;
fopFactory.setUserConfig(fopConfigResource.toExternalForm());
fopFactory.getFontManager().setFontBaseURL(fontsDirectoryResource.toExternalForm());
}

// use Saxon instead of Xalan
System.setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
TransformerFactory transformerFactory = 
TransformerFactory.newInstance();


// register Saxon extension functions
TransformerFactoryImpl saxonFactory = (TransformerFactoryImpl)
transformerFactory;
Configuration configuration = saxonFactory.getConfiguration();
extensionFunctions.getAvailableFunctions(activeLocale).forEach(configuration::registerExtensionFunction); 



// initialize transformer
Source template = new StreamSource(templateStream);
Transformer transformer = transformerFactory.newTransformer(template);

// 2) serialize object to xml
File tmpFile = File.createTempFile("fop", ".xml");
FileOutputStream marshallerOutputStream = new FileOutputStream(tmpFile);
JAXBContext jaxbContext = JAXBContext.newInstance(object.getClass());
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(object, marshallerOutputStream);
marshallerOutputStream.close();
logger.info("marshaller result: {}, {} bytes", tmpFile, 
tmpFile.length());


// 3) perform transformation
FileInputStream fopInputStream = new FileInputStream(tmpFile);
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setProducer("producer name");
foUserAgent.setCreationDate(new Date());
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, 
outputStream);

Source xmlSource = new StreamSource(fopInputStream);
Result pdfResult = new SAXResult(fop.getDefaultHandler());
transformer.transform(xmlSource, pdfResult);
fopInputStream.close();
if (!tmpFile.delete())
 logger.warn("unable to remove temporary file {}", tmpFile);


There's basically nothing else. After processing, *outputStream* will
contain your PDF. Note that my example includes:

    - using custom fonts (you probably don't need this);
    - using custom extension functions for Saxon (you probably don't 
need

    this either).

Otherwise it's pretty much straightforward.


On Thu, Jan 27, 2022 at 9:19 AM Volker Lamp  
wrote:



Hello Tapestry users,

Our Tapestry webapp needs to generate printable PDFs including user 
input.

We are currently looking at using Apache FOP for that.

Has anyone integrated FOP in their Tapestry webapp and perhaps a 
Tapestry

module to share?

Suggestions for other approaches are also welcome.

Cheers,

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



--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>


dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


Re: Apache FOP integration

2022-01-27 Thread Ivano Luberti

On a related argument, how do you print QRCodes or barcodes on the pdf?

Il 27/01/2022 14:52, Ilya Obshadko ha scritto:

I've been using FOP to generate PDFs from the Tapestry application for
quite a few years. There's nothing specific to Tapestry, you just create a
"rendering service" which does all the processing for you. The only caveat
I remember is using Saxon instead of Xalan for running initial
transformation (it's *much* faster and has a lower memory footprint).

This is the entire code responsible for producing PDF:

// 1) create transformer
if (fopFactory == null) {
 fopFactory = FopFactory.newInstance();
 final URL fopConfigResource =
getClass().getClassLoader().getResource(FOP_CONFIG_URL);
 final URL fontsDirectoryResource =
getClass().getClassLoader().getResource("your/font/package");
 assert fopConfigResource != null && fontsDirectoryResource != null;
 fopFactory.setUserConfig(fopConfigResource.toExternalForm());
 
fopFactory.getFontManager().setFontBaseURL(fontsDirectoryResource.toExternalForm());
}

// use Saxon instead of Xalan
System.setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
TransformerFactory transformerFactory = TransformerFactory.newInstance();

// register Saxon extension functions
TransformerFactoryImpl saxonFactory = (TransformerFactoryImpl)
transformerFactory;
Configuration configuration = saxonFactory.getConfiguration();
extensionFunctions.getAvailableFunctions(activeLocale).forEach(configuration::registerExtensionFunction);

// initialize transformer
Source template = new StreamSource(templateStream);
Transformer transformer = transformerFactory.newTransformer(template);

// 2) serialize object to xml
File tmpFile = File.createTempFile("fop", ".xml");
FileOutputStream marshallerOutputStream = new FileOutputStream(tmpFile);
JAXBContext jaxbContext = JAXBContext.newInstance(object.getClass());
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(object, marshallerOutputStream);
marshallerOutputStream.close();
logger.info("marshaller result: {}, {} bytes", tmpFile, tmpFile.length());

// 3) perform transformation
FileInputStream fopInputStream = new FileInputStream(tmpFile);
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setProducer("producer name");
foUserAgent.setCreationDate(new Date());
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, outputStream);
Source xmlSource = new StreamSource(fopInputStream);
Result pdfResult = new SAXResult(fop.getDefaultHandler());
transformer.transform(xmlSource, pdfResult);
fopInputStream.close();
if (!tmpFile.delete())
 logger.warn("unable to remove temporary file {}", tmpFile);


There's basically nothing else. After processing, *outputStream* will
contain your PDF. Note that my example includes:

- using custom fonts (you probably don't need this);
- using custom extension functions for Saxon (you probably don't need
this either).

Otherwise it's pretty much straightforward.


On Thu, Jan 27, 2022 at 9:19 AM Volker Lamp  wrote:


Hello Tapestry users,

Our Tapestry webapp needs to generate printable PDFs including user input.
We are currently looking at using Apache FOP for that.

Has anyone integrated FOP in their Tapestry webapp and perhaps a Tapestry
module to share?

Suggestions for other approaches are also welcome.

Cheers,

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



--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>


dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


OT: servlet container and update SSL certificate without reload

2019-07-27 Thread Ivano Luberti
Hello, searching for a solution about how to update SSL certificates
(keystore) without restarting the servlet container.

Looking at the Tomcat docs it seems not possible.

Googling I have found some solution that propose to restart only the ssl
connector,but before starting to try something not really tested I
wanted to see if there is someone outh there that has found a solution:
either switching to another servlet container or implementing something
or using some third party tool.

TIA for any suggestion.


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
facebook: www.facebook.com/archimedeinformaticapisa/
twitter: twitter.com/archicoop
==



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



Re: Tapestry 4 with a modern JVM

2019-02-06 Thread Ivano Luberti
Sorry for the late response.

I tried the same a few years ago but I was never abel to overcame issues
with javassist : version shipped with tapestry 4 was not compatible with
Java 8 and upgrading javasisst  not worked too.


Il 06/02/2019 15:50, Numa Schmeder ha scritto:
> Hi Steve,
>
> I have the same problem, you will have a lot of issues. The best would be to 
> transfer your app to tapestry 5, but you will be loosing all dojo 
> compatibility and quite a lot of rework. 
> I am still hesitating on the best process. You will have to port a lot of 
> code from external libraries (OGNL and many others)
>
> Best regards,
> Numa
>
>
>   <http://www.dfacto.ch/> Numa Schmederwww.dfacto.ch  
> <http://www.dfacto.ch/>
> n...@dfacto.ch <mailto:n...@dfacto.ch>   |   M +41 79 538 30 01 
>
> DIGITAL STRATEGY   |   DESIGN   |   DEVELOPMENT
>
>
>  
>
>> Le 6 févr. 2019 à 15:46, JumpStart  a 
>> écrit :
>>
>> No responses? I think you’re right - it will be try it and see.
>>
>>> On 31 Jan 2019, at 7:57 pm, Steve Shaw  wrote:
>>>
>>> Good morning,
>>>
>>> Short version: is there any information available on running Tapestry 4 
>>> (specifically 4.1.6) with a modern JVM (specifically Java 11, but we’d 
>>> settle for information regarding Java 8)?
>>>
>>> Longer version: I’m assisting a client with a platform modernization 
>>> project. This particular code base is thirteen years old and a lot of the 
>>> core technology has not been upgraded in several years. One of the key 
>>> things we’d like to do is get to a supported version of Java, but I can’t 
>>> find any information on whether this is even possible with the Tapestry 
>>> dependency.
>>>
>>> Right now the project is running on Java 7, which already goes beyond the 
>>> supported JVMs listed at 
>>> https://tapestry.apache.org/supported-environments-and-versions.html 
>>> <https://tapestry.apache.org/supported-environments-and-versions.html> for 
>>> 4.1.
>>>
>>> I understand that the answer might be “try it and see”, but I’d like to 
>>> check with the community to see if there’s any experience with this before 
>>> jumping in.
>>>
>>> Thanks,
>>> Steve
>>>
>>> --
>>> Steve Shaw | Principal Consultant, Shaw Software Solutions | 416-737-6665
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
facebook: www.facebook.com/archimedeinformaticapisa/
twitter: twitter.com/archicoop
==


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



Re: No uploaded file when upgrading to new Tapestry version (Spring Boot jar, embedded Tomcat...)

2018-06-19 Thread Ivano Luberti
Thank you Vjeran


Il 19/06/2018 18:58, Vjeran Marcinko ha scritto:
> Ah, big SORRY for version typo...
>
> I meant that I used 5.3.7 (not 4.3.7), and I wanted to stay there, but
> there was some java-8 related issue during boot, and I had to upgrade
> to 5.3.8 (release notes says some java -8 issue was fixed there).
>
> I didn't want to upgrade , at least not for now because the web app is
> huge, to newest 5.4.x version.
>
> But I managed, with few errors, to start the 5.4.x version of my app,
> just to check single page that uses Upload component, and it seems the
> issue with uploading preserves.
>
> Ugh, dunno whhat to look next...
>
> -Vjeran
>
> On 06/19/2018 06:49 PM, Ivano Luberti wrote:
>> Side questiono on this message: Tapestry 4.3.7 is not compatible with
>> Java 8 ?
>>
>>
>> Il 19/06/2018 18:28, Vjeran Marcinko ha scritto:
>>>   Hi,
>>>
>>> I am upgrading my old Tapestry 4.3.7 app (java-7, standalone
>>> Tomcat...) to newer tech stack (java 8, Spring Boot with embeddable
>>> Tomcat deployed as single jar...). I wan't to leave tapestry untouched
>>> as much as possible, so I just upgraded from 4.3.7 to 4.3.8 because of
>>> Java-8 requirement.
>>>
>>> And practically everything works perfectly except that my Upload
>>> component stopped working. It doesn't raise any error, its just that
>>> after form submit, my UploadedFile instance is always null.
>>>
>>> I debugged a bit, and found out that within Tapestry's
>>> MultipartDecoderImpl there is this part that should parse FileItems
>>> from HTTP request, but it always parses empty list. I udnerstand that
>>> here Taestry uses Apache Commons-FileUpload, but I have no idea what
>>> has changed for this to stop working properly?
>>>
>>> protected ListparseRequest(HttpServletRequest request)
>>> {
>>>  try {
>>>  return createFileUpload().parseRequest(request); }catch
>>> (FileUploadException ex)
>>>  {
>>>  uploadException = ex; return Collections.emptyList(); }
>>> }
>>>
>>> Dunno if Spring Boot and its embeeded Tomcat are making some
>>> difference here...
>>>
>>> Any idea?
>>>
>>> -Vjeran
>>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
facebook: www.facebook.com/archimedeinformaticapisa/
twitter: twitter.com/archicoop
==


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



Re: No uploaded file when upgrading to new Tapestry version (Spring Boot jar, embedded Tomcat...)

2018-06-19 Thread Ivano Luberti
Side questiono on this message: Tapestry 4.3.7 is not compatible with
Java 8 ?


Il 19/06/2018 18:28, Vjeran Marcinko ha scritto:
>  Hi,
>
> I am upgrading my old Tapestry 4.3.7 app (java-7, standalone
> Tomcat...) to newer tech stack (java 8, Spring Boot with embeddable
> Tomcat deployed as single jar...). I wan't to leave tapestry untouched
> as much as possible, so I just upgraded from 4.3.7 to 4.3.8 because of
> Java-8 requirement.
>
> And practically everything works perfectly except that my Upload
> component stopped working. It doesn't raise any error, its just that
> after form submit, my UploadedFile instance is always null.
>
> I debugged a bit, and found out that within Tapestry's
> MultipartDecoderImpl there is this part that should parse FileItems
> from HTTP request, but it always parses empty list. I udnerstand that
> here Taestry uses Apache Commons-FileUpload, but I have no idea what
> has changed for this to stop working properly?
>
> protected ListparseRequest(HttpServletRequest request)
> {
>     try {
>     return createFileUpload().parseRequest(request); }catch
> (FileUploadException ex)
>     {
>     uploadException = ex; return Collections.emptyList(); }
> }
>
> Dunno if Spring Boot and its embeeded Tomcat are making some
> difference here...
>
> Any idea?
>
> -Vjeran
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
facebook: www.facebook.com/archimedeinformaticapisa/
twitter: twitter.com/archicoop
==


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



Re: Hi Everyone in Tapestry Land :-)

2016-11-25 Thread Ivano Luberti
Hope someone is paying you for this, otherwise, to use your language,
you have a lot of fucking spare time.

I envy you, sincerely.


Il 25/11/2016 17:52, Jon W ha scritto:
> Obviously there is no reason to ever use tapestry in the fucking future
> (like the fucking future we are in now for christ's sakes.)
> Anybody who's not writing webapps in Typescript 2 is a hopeless retard.
>
> Anyways, tapestry was useable for a while. If your job is maintaining some
> fucking hopeless legacy shit, i almost feel sorry for u, but i got 99
> problems, and that ain't fucking one of them.
> Howard obviously knows it useless garbage. Where the fuck did he fuck off
> to? LOLLL
>
>
> Anyways, cock-eaters abound.
>
> Back to the original message of this spam email, does anyone know any of
> those dickless trannies at react-os? I've got a 50' cat5 cable that needs
> to get wound round someones neck down there.
>
>
> Peas Out
> Jon
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: Embeding PDF document in Tapestry4 page

2016-11-24 Thread Ivano Luberti
Never tried this but I guess using the link as the source of an IFRAME
should work, doesn't it?


Il 24/11/2016 14:44, Mukesh Chandra ha scritto:
> Thanks Ivano!
>
> I can generate the pdf in a separate window but I am striving to show the 
> same in the same window. My page has some HTML controls. I want the PDF to be 
> displayed after those.
>
> Regards
> Mukesh Chandra
>
> -Original Message-
> From: Ivano Luberti [mailto:lube...@archicoop.it]
> Sent: Thursday, November 24, 2016 4:45 PM
> To: users@tapestry.apache.org
> Subject: Re: Embeding PDF document in Tapestry4 page
>
> Hi Mukesh, I have put some instructions on how to build a service to output a 
> PDF in this file
>
> https://www.dropbox.com/s/bnpq2tq58drbdn0/Tapestry4Pdf.zip?dl=0
>
> I have extrapolated from my code, so is not working code, only instructions 
> of necessary steps: service creation, configuration, building link to invoke 
> it.
>
> Hope it helps.
>
> Cheers
>
>
>
> Il 24/11/2016 10:17, Mukesh Chandra ha scritto:
>> Hi
>>
>> I want to embed a PDF file (generated dynamically) in a Tapestry 4 page.
>>
>> Can you help me in this effort?
>>
>>
>>
>> Regards
>> Mukesh Chandra
>>
>>
>> 
>>
>> NOTICE:
>> This e-mail is intended solely for the use of the individual to whom it is 
>> addressed and may contain information that is privileged, confidential or 
>> otherwise exempt from disclosure. If the reader of this e-mail is not the 
>> intended recipient or the employee or agent responsible for delivering the 
>> message to the intended recipient, you are hereby notified that any 
>> dissemination, distribution, or copying of this communication is strictly 
>> prohibited. If you have received this communication in error, please 
>> immediately notify us by replying to the original message at the listed 
>> email address. Thank You.
>>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-8932061
> web: www.archicoop.it
> ==
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
> 
>
> NOTICE:
> This e-mail is intended solely for the use of the individual to whom it is 
> addressed and may contain information that is privileged, confidential or 
> otherwise exempt from disclosure. If the reader of this e-mail is not the 
> intended recipient or the employee or agent responsible for delivering the 
> message to the intended recipient, you are hereby notified that any 
> dissemination, distribution, or copying of this communication is strictly 
> prohibited. If you have received this communication in error, please 
> immediately notify us by replying to the original message at the listed email 
> address. Thank You.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: Embeding PDF document in Tapestry4 page

2016-11-24 Thread Ivano Luberti
Hi Mukesh, I have put some instructions on how to build a service to
output a PDF in this file

https://www.dropbox.com/s/bnpq2tq58drbdn0/Tapestry4Pdf.zip?dl=0

I have extrapolated from my code, so is not working code, only
instructions of necessary steps: service creation, configuration,
building link to invoke it.

Hope it helps.

Cheers



Il 24/11/2016 10:17, Mukesh Chandra ha scritto:
> Hi
>
> I want to embed a PDF file (generated dynamically) in a Tapestry 4 page.
>
> Can you help me in this effort?
>
>
>
> Regards
> Mukesh Chandra
>
>
> 
>
> NOTICE:
> This e-mail is intended solely for the use of the individual to whom it is 
> addressed and may contain information that is privileged, confidential or 
> otherwise exempt from disclosure. If the reader of this e-mail is not the 
> intended recipient or the employee or agent responsible for delivering the 
> message to the intended recipient, you are hereby notified that any 
> dissemination, distribution, or copying of this communication is strictly 
> prohibited. If you have received this communication in error, please 
> immediately notify us by replying to the original message at the listed email 
> address. Thank You.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==



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



Re: Embeding PDF document in Tapestry4 page

2016-11-24 Thread Ivano Luberti
Hi Mukesh, Tapestry 4 is not suppported anymore but I personally still
have to manage some applications written with that version and in one of
those I wrote a service that outputs a PDF.

Basically you have to write a service and set the response type to
application/pdf

Ti make the user abel to download the PDF you have to build a link with
paramters, the link invokes the service and pass the params to it, the
service builds the PDF and put it in the response. The effect is to open
a new tab in the client browser with the PDF displayed.

Now I'm pretty busy but I can send you some source code later.




Il 24/11/2016 10:17, Mukesh Chandra ha scritto:
> Hi
>
> I want to embed a PDF file (generated dynamically) in a Tapestry 4 page.
>
> Can you help me in this effort?
>
>
>
> Regards
> Mukesh Chandra
>
>
> 
>
> NOTICE:
> This e-mail is intended solely for the use of the individual to whom it is 
> addressed and may contain information that is privileged, confidential or 
> otherwise exempt from disclosure. If the reader of this e-mail is not the 
> intended recipient or the employee or agent responsible for delivering the 
> message to the intended recipient, you are hereby notified that any 
> dissemination, distribution, or copying of this communication is strictly 
> prohibited. If you have received this communication in error, please 
> immediately notify us by replying to the original message at the listed email 
> address. Thank You.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==



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



Re: Tapestry 5.4.1, MessageFormatter gone?

2016-10-04 Thread Ivano Luberti
Il 03/10/2016 18:50, Thiago H de Paula Figueiredo ha scritto:
> On Sat, 01 Oct 2016 13:20:27 -0300, Charles Roth 
> wrote:
>
> As far as I can remember, Ivy uses Maven repositories and does
> transitive dependencies.
>

well it seems they kind of discourage this practice...

http://ant.apache.org/ivy/m2comparison.html

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



(solved ?) tapestry 4.1.6 and pergmen question

2016-04-15 Thread Ivano Luberti
I write this so it goes on web archives and maybe (even though is not
probabile) one day someone will find it useful.

The solution is to avoid this

https://wiki.apache.org/tapestry/EasyBrowserRedirection

never raise that exception.
Instead use

PageRedirectException

in case you want to pass parameters to the page put them in the session
and remove them in rendering phase of the page you are redirecting to

finally be sure PageRedirectException also in the the page you are
redirecting to because it will not be trapped an Tapestry Exception page
will be showed.



---

It seems I have found the glitch.
Following this suggestion

https://wiki.apache.org/tapestry/EasyBrowserRedirection

I had implented redirection in a pageBeginRender method (I'm talking
about T 4.1.6, sorry about that)

Now it seems that when the excpetion is raised PermGen occupation is
increased.

It seems there is a difference with this regard raising the exception in
a listener instead that in pageBeginrender.

Anyone feels its memory activated on this?






Il 07/04/2016 17:37, Kalle Korhonen ha scritto:
> On Thu, Apr 7, 2016 at 12:33 AM, Ivano Luberti  wrote:
>
>> Kalle, Chris, thanks for your answers.
>> Unfortunately the problem is not related to webapp reloading even
>> restarting the Tomcat service leads to out of PermGen in a few days,
>> PermGen itself is quite large and I already use UseConcMarkSweepGC. Down
>> The cause of the space consumption seems to be the presence of a lot of
>> classes of this type
>> org.apache.tapestry.enhance.ClassFactoryClassLoader
>>
> That's a symptom, not a cause.
>
>
>> It seems that the more request the application serves the more PermGen
>> increases and that's led me to think that the page pool is never cleaned up
>> or at least not well cleanedup.
>>
> Most likely, you have a permgen memory leak. Are you using streams and/or
> threads on your pages and are they properly closed, even in case of
> exceptions? I can't tell you how many memory leaks I've plugged over the
> years in thread and stream handling. Invariably, the errors are in your own
> code. See https://plumbr.eu/blog/memory-leaks/what-is-a-permgen-leak for
> possible causes for a permgen memory leak. Also, you are in luck because
> Tomcat 6 added some useful tools for detecting memory leaks (see
> http://wiki.apache.org/tomcat/MemoryLeakProtection, and Tomcat 7 and up is
> even able to recover from some of them). Take a heap dump of the stressed
> out system and load it in your VisualVM.
>
> Kalle
>
>
>
>> Il 06/04/2016 23:24, Kalle Korhonen ha scritto:
>>> If you run out of permgen space very quickly, then it's indicative that
>> the
>>> allocated permgen space is simply too small. Perhaps the new version of
>>> Tomcat requires more of it for itself, leaving less for your application.
>>> Is the webapp restarted at times? If so, that can easily cause permgen
>>> space to fill up because of the way OGNL works. And even if you are not
>>> restarting the app, you need to exercise all parts of your web
>> application
>>> to find out the true permgen space consumption of it.
>>>
>>> Kalle
>>>
>>> On Wed, Apr 6, 2016 at 1:49 PM, Ivano Luberti 
>> wrote:
>>>> Hey Tony, if you don't mind, can you send me all the configuration
>>>> options of Java and Tomcat you are using? So tomcat6.conf and server.xml
>>>> files?
>>>>
>>>> No one else on the list can share its thoughts?
>>>>
>>>> Il 05/04/2016 23:03, Ivano Luberti ha scritto:
>>>>> Hi Tony thanks for the quick answer:
>>>>>
>>>>> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>>>>>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs
>>>> well enough with:
>>>>>> -XX:MaxPermSize=1024m
>>>>> with that setting it fails but...
>>>>>> I also have
>>>>>>
>>>>>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
>>>>> I have only  -Xmx2g
>>>>>
>>>>> I use
>>>>>
>>>>> -XX:+UseConcMarkSweepGC
>>>>>
>>>>> but not
>>>>>
>>>>> -XX:+UseParNewGC
>>>>>
>>>>>
>>>>> but this last one doesn't seem to have an influence on PermGen, does
>> it?
>>>>>
>>>> --
>>>> ==
>>>> d

Re: tapestry 4.1.6 and pergmen question

2016-04-13 Thread Ivano Luberti
It seems I have found the glitch.
Following this suggestion

https://wiki.apache.org/tapestry/EasyBrowserRedirection

I had implented redirection in a pageBeginRender method (I'm talking
about T 4.1.6, sorry about that)

Now it seems that when the excpetion is raised PermGen occupation is
increased.

It seems there is a difference with this regard raising the exception in
a listener instead that in pageBeginrender.

Anyone feels its memory activated on this?






Il 07/04/2016 17:37, Kalle Korhonen ha scritto:
> On Thu, Apr 7, 2016 at 12:33 AM, Ivano Luberti  wrote:
>
>> Kalle, Chris, thanks for your answers.
>> Unfortunately the problem is not related to webapp reloading even
>> restarting the Tomcat service leads to out of PermGen in a few days,
>> PermGen itself is quite large and I already use UseConcMarkSweepGC. Down
>> The cause of the space consumption seems to be the presence of a lot of
>> classes of this type
>> org.apache.tapestry.enhance.ClassFactoryClassLoader
>>
> That's a symptom, not a cause.
>
>
>> It seems that the more request the application serves the more PermGen
>> increases and that's led me to think that the page pool is never cleaned up
>> or at least not well cleanedup.
>>
> Most likely, you have a permgen memory leak. Are you using streams and/or
> threads on your pages and are they properly closed, even in case of
> exceptions? I can't tell you how many memory leaks I've plugged over the
> years in thread and stream handling. Invariably, the errors are in your own
> code. See https://plumbr.eu/blog/memory-leaks/what-is-a-permgen-leak for
> possible causes for a permgen memory leak. Also, you are in luck because
> Tomcat 6 added some useful tools for detecting memory leaks (see
> http://wiki.apache.org/tomcat/MemoryLeakProtection, and Tomcat 7 and up is
> even able to recover from some of them). Take a heap dump of the stressed
> out system and load it in your VisualVM.
>
> Kalle
>
>
>
>> Il 06/04/2016 23:24, Kalle Korhonen ha scritto:
>>> If you run out of permgen space very quickly, then it's indicative that
>> the
>>> allocated permgen space is simply too small. Perhaps the new version of
>>> Tomcat requires more of it for itself, leaving less for your application.
>>> Is the webapp restarted at times? If so, that can easily cause permgen
>>> space to fill up because of the way OGNL works. And even if you are not
>>> restarting the app, you need to exercise all parts of your web
>> application
>>> to find out the true permgen space consumption of it.
>>>
>>> Kalle
>>>
>>> On Wed, Apr 6, 2016 at 1:49 PM, Ivano Luberti 
>> wrote:
>>>> Hey Tony, if you don't mind, can you send me all the configuration
>>>> options of Java and Tomcat you are using? So tomcat6.conf and server.xml
>>>> files?
>>>>
>>>> No one else on the list can share its thoughts?
>>>>
>>>> Il 05/04/2016 23:03, Ivano Luberti ha scritto:
>>>>> Hi Tony thanks for the quick answer:
>>>>>
>>>>> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>>>>>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs
>>>> well enough with:
>>>>>> -XX:MaxPermSize=1024m
>>>>> with that setting it fails but...
>>>>>> I also have
>>>>>>
>>>>>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
>>>>> I have only  -Xmx2g
>>>>>
>>>>> I use
>>>>>
>>>>> -XX:+UseConcMarkSweepGC
>>>>>
>>>>> but not
>>>>>
>>>>> -XX:+UseParNewGC
>>>>>
>>>>>
>>>>> but this last one doesn't seem to have an influence on PermGen, does
>> it?
>>>>>
>>>> --
>>>> ==
>>>> dott. Ivano Mario Luberti
>>>> Archimede Informatica societa' cooperativa a r. l.
>>>> Sede Operativa
>>>> Via Gereschi 36 - 56126- Pisa
>>>> tel.: +39-050- 580959
>>>> tel/fax: +39-050-8932061
>>>> web: www.archicoop.it
>>>> ======
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>

Re: tapestry 4.1.6 and pergmen question

2016-04-08 Thread Ivano Luberti
Thanks Kalle, I know the links you suggest, but I was exlcuding my code
because it has not been chaned much from the one on the old server

Anyway I will keep on investigating, I have no other choice.

Thanks anyway

Il 07/04/2016 17:37, Kalle Korhonen ha scritto:
> On Thu, Apr 7, 2016 at 12:33 AM, Ivano Luberti  wrote:
>
>> Kalle, Chris, thanks for your answers.
>> Unfortunately the problem is not related to webapp reloading even
>> restarting the Tomcat service leads to out of PermGen in a few days,
>> PermGen itself is quite large and I already use UseConcMarkSweepGC. Down
>> The cause of the space consumption seems to be the presence of a lot of
>> classes of this type
>> org.apache.tapestry.enhance.ClassFactoryClassLoader
>>
> That's a symptom, not a cause.
>
>
>> It seems that the more request the application serves the more PermGen
>> increases and that's led me to think that the page pool is never cleaned up
>> or at least not well cleanedup.
>>
> Most likely, you have a permgen memory leak. Are you using streams and/or
> threads on your pages and are they properly closed, even in case of
> exceptions? I can't tell you how many memory leaks I've plugged over the
> years in thread and stream handling. Invariably, the errors are in your own
> code. See https://plumbr.eu/blog/memory-leaks/what-is-a-permgen-leak for
> possible causes for a permgen memory leak. Also, you are in luck because
> Tomcat 6 added some useful tools for detecting memory leaks (see
> http://wiki.apache.org/tomcat/MemoryLeakProtection, and Tomcat 7 and up is
> even able to recover from some of them). Take a heap dump of the stressed
> out system and load it in your VisualVM.
>
> Kalle
>
>
>
>> Il 06/04/2016 23:24, Kalle Korhonen ha scritto:
>>> If you run out of permgen space very quickly, then it's indicative that
>> the
>>> allocated permgen space is simply too small. Perhaps the new version of
>>> Tomcat requires more of it for itself, leaving less for your application.
>>> Is the webapp restarted at times? If so, that can easily cause permgen
>>> space to fill up because of the way OGNL works. And even if you are not
>>> restarting the app, you need to exercise all parts of your web
>> application
>>> to find out the true permgen space consumption of it.
>>>
>>> Kalle
>>>
>>> On Wed, Apr 6, 2016 at 1:49 PM, Ivano Luberti 
>> wrote:
>>>> Hey Tony, if you don't mind, can you send me all the configuration
>>>> options of Java and Tomcat you are using? So tomcat6.conf and server.xml
>>>> files?
>>>>
>>>> No one else on the list can share its thoughts?
>>>>
>>>> Il 05/04/2016 23:03, Ivano Luberti ha scritto:
>>>>> Hi Tony thanks for the quick answer:
>>>>>
>>>>> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>>>>>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs
>>>> well enough with:
>>>>>> -XX:MaxPermSize=1024m
>>>>> with that setting it fails but...
>>>>>> I also have
>>>>>>
>>>>>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
>>>>> I have only  -Xmx2g
>>>>>
>>>>> I use
>>>>>
>>>>> -XX:+UseConcMarkSweepGC
>>>>>
>>>>> but not
>>>>>
>>>>> -XX:+UseParNewGC
>>>>>
>>>>>
>>>>> but this last one doesn't seem to have an influence on PermGen, does
>> it?
>>>>>
>>>> --
>>>> ==
>>>> dott. Ivano Mario Luberti
>>>> Archimede Informatica societa' cooperativa a r. l.
>>>> Sede Operativa
>>>> Via Gereschi 36 - 56126- Pisa
>>>> tel.: +39-050- 580959
>>>> tel/fax: +39-050-8932061
>>>> web: www.archicoop.it
>>>> ==
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-8932061
>> web: www.archicoop.it
>> ==
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: tapestry 4.1.6 and pergmen question

2016-04-08 Thread Ivano Luberti
Thanks Kalle, I know the links you suggest, but I was exlcuding my code
because it has not been chaned much from the one on the old server

Anyway I will keep on investigating, I have no other choice.

Thanks anyway

Il 07/04/2016 17:37, Kalle Korhonen ha scritto:
> On Thu, Apr 7, 2016 at 12:33 AM, Ivano Luberti  wrote:
>
>> Kalle, Chris, thanks for your answers.
>> Unfortunately the problem is not related to webapp reloading even
>> restarting the Tomcat service leads to out of PermGen in a few days,
>> PermGen itself is quite large and I already use UseConcMarkSweepGC. Down
>> The cause of the space consumption seems to be the presence of a lot of
>> classes of this type
>> org.apache.tapestry.enhance.ClassFactoryClassLoader
>>
> That's a symptom, not a cause.
>
>
>> It seems that the more request the application serves the more PermGen
>> increases and that's led me to think that the page pool is never cleaned up
>> or at least not well cleanedup.
>>
> Most likely, you have a permgen memory leak. Are you using streams and/or
> threads on your pages and are they properly closed, even in case of
> exceptions? I can't tell you how many memory leaks I've plugged over the
> years in thread and stream handling. Invariably, the errors are in your own
> code. See https://plumbr.eu/blog/memory-leaks/what-is-a-permgen-leak for
> possible causes for a permgen memory leak. Also, you are in luck because
> Tomcat 6 added some useful tools for detecting memory leaks (see
> http://wiki.apache.org/tomcat/MemoryLeakProtection, and Tomcat 7 and up is
> even able to recover from some of them). Take a heap dump of the stressed
> out system and load it in your VisualVM.
>
> Kalle
>
>
>
>> Il 06/04/2016 23:24, Kalle Korhonen ha scritto:
>>> If you run out of permgen space very quickly, then it's indicative that
>> the
>>> allocated permgen space is simply too small. Perhaps the new version of
>>> Tomcat requires more of it for itself, leaving less for your application.
>>> Is the webapp restarted at times? If so, that can easily cause permgen
>>> space to fill up because of the way OGNL works. And even if you are not
>>> restarting the app, you need to exercise all parts of your web
>> application
>>> to find out the true permgen space consumption of it.
>>>
>>> Kalle
>>>
>>> On Wed, Apr 6, 2016 at 1:49 PM, Ivano Luberti 
>> wrote:
>>>> Hey Tony, if you don't mind, can you send me all the configuration
>>>> options of Java and Tomcat you are using? So tomcat6.conf and server.xml
>>>> files?
>>>>
>>>> No one else on the list can share its thoughts?
>>>>
>>>> Il 05/04/2016 23:03, Ivano Luberti ha scritto:
>>>>> Hi Tony thanks for the quick answer:
>>>>>
>>>>> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>>>>>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs
>>>> well enough with:
>>>>>> -XX:MaxPermSize=1024m
>>>>> with that setting it fails but...
>>>>>> I also have
>>>>>>
>>>>>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
>>>>> I have only  -Xmx2g
>>>>>
>>>>> I use
>>>>>
>>>>> -XX:+UseConcMarkSweepGC
>>>>>
>>>>> but not
>>>>>
>>>>> -XX:+UseParNewGC
>>>>>
>>>>>
>>>>> but this last one doesn't seem to have an influence on PermGen, does
>> it?
>>>>>
>>>> --
>>>> ==
>>>> dott. Ivano Mario Luberti
>>>> Archimede Informatica societa' cooperativa a r. l.
>>>> Sede Operativa
>>>> Via Gereschi 36 - 56126- Pisa
>>>> tel.: +39-050- 580959
>>>> tel/fax: +39-050-8932061
>>>> web: www.archicoop.it
>>>> ==
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-8932061
>> web: www.archicoop.it
>> ==
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: tapestry 4.1.6 and pergmen question

2016-04-07 Thread Ivano Luberti
Kalle, Chris, thanks for your answers.
Unfortunately the problem is not related to webapp reloading even
restarting the Tomcat service leads to out of PermGen in a few days,
PermGen itself is quite large and I already use UseConcMarkSweepGC. Down
here you can read the java settings :


-Djava.awt.headless=true -Dfile.encoding=ISO-8859-1 -Xms512m -Xmx2048m
-XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/var/log/tomcat6 -XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled


The cause of the space consumption seems to be the presence of a lot of
classes of this type

org.apache.tapestry.enhance.ClassFactoryClassLoader

It seems that the more request the application serves the more PermGen 
increases and that's led me to think that the page pool is never cleaned up or 
at least not well cleanedup.








Il 06/04/2016 23:24, Kalle Korhonen ha scritto:
> If you run out of permgen space very quickly, then it's indicative that the
> allocated permgen space is simply too small. Perhaps the new version of
> Tomcat requires more of it for itself, leaving less for your application.
> Is the webapp restarted at times? If so, that can easily cause permgen
> space to fill up because of the way OGNL works. And even if you are not
> restarting the app, you need to exercise all parts of your web application
> to find out the true permgen space consumption of it.
>
> Kalle
>
> On Wed, Apr 6, 2016 at 1:49 PM, Ivano Luberti  wrote:
>
>> Hey Tony, if you don't mind, can you send me all the configuration
>> options of Java and Tomcat you are using? So tomcat6.conf and server.xml
>> files?
>>
>> No one else on the list can share its thoughts?
>>
>> Il 05/04/2016 23:03, Ivano Luberti ha scritto:
>>> Hi Tony thanks for the quick answer:
>>>
>>> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>>>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs
>> well enough with:
>>>> -XX:MaxPermSize=1024m
>>> with that setting it fails but...
>>>> I also have
>>>>
>>>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
>>> I have only  -Xmx2g
>>>
>>> I use
>>>
>>> -XX:+UseConcMarkSweepGC
>>>
>>> but not
>>>
>>> -XX:+UseParNewGC
>>>
>>>
>>> but this last one doesn't seem to have an influence on PermGen, does it?
>>>
>>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-8932061
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==



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



Re: tapestry 4.1.6 and pergmen question

2016-04-06 Thread Ivano Luberti
Hey Tony, if you don't mind, can you send me all the configuration
options of Java and Tomcat you are using? So tomcat6.conf and server.xml
files?

No one else on the list can share its thoughts?

Il 05/04/2016 23:03, Ivano Luberti ha scritto:
> Hi Tony thanks for the quick answer:
>
> Il 05/04/2016 21:50, Tony Nelson ha scritto:
>> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs well 
>> enough with:
>>
>> -XX:MaxPermSize=1024m
> with that setting it fails but...
>> I also have
>>
>> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC
> I have only  -Xmx2g
>
> I use 
>
> -XX:+UseConcMarkSweepGC
>
> but not 
>
> -XX:+UseParNewGC
>
>
> but this last one doesn't seem to have an influence on PermGen, does it?
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: tapestry 4.1.6 and pergmen question

2016-04-05 Thread Ivano Luberti
Hi Tony thanks for the quick answer:

Il 05/04/2016 21:50, Tony Nelson ha scritto:
> I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs well 
> enough with:
>
> -XX:MaxPermSize=1024m

with that setting it fails but...
>
> I also have
>
> -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC

I have only  -Xmx2g

I use 

-XX:+UseConcMarkSweepGC

but not 

-XX:+UseParNewGC


but this last one doesn't seem to have an influence on PermGen, does it?


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==



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



tapestry 4.1.6 and pergmen question

2016-04-05 Thread Ivano Luberti
I know I know, please don't shoot the pianist.
I have an old application written using Tapestry 4.1.6 and I can't get
the budget to rewrite in Tapestry 5.
(BTW I have already and succesfully used Tapestry 5, so I know what I'm
loosing here)
The application run without issues for years on a CentOS+Tomcat 5.5+Java
6 combination but recently  I had to move it to a new server where I
have CentOS+Tomcat 6+Java 6.

Suddenly the application started to quickly run out of memory with the
dreadful PermGen Out Of Meory Error.

I got an heap dump  in an hprof file and found that there thousands
instances of

org.apache.tapestry.enhance.ClassFactoryClassLoader

still alive

Does anyone have any clue of permanent generation memory issues with
Tapestry 4 and Tomcat 6 ?

TIA


-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==



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



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Ivano Luberti
So you are on this list to help us seeing the light? Aren't you?
Like Jesus came down to earth to enlighten people in Israel and all over
the world.
Thank you !
I hope you don't have to suffer like him on a cross.


Il 12/02/2016 10:53, Emmanuel Sowah ha scritto:
> Basile,
>
> You must be foolish to call me a troll. You folks here at Tapestry fail to
> look beyond your small and narrow-minded community. You behave like a sect.
> Even your sect leader, Howard Lewis Ship, has recently been enlightened and
> have left Tapestry. You guys are now struggling with the pieces he left
> behind. You are just fools. It is really insane people are putting Tapestry
> into production. Just can't believe that. Because Tapestry is a dead
> framework walking.
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> is no more using it but using mainly Wicket in all his recent projects? You
> don't need an IQ of Einstein to understand why you also should stop using
> Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
>
> On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris  wrote:
>
>> https://wiki.apache.org/tapestry/Tapestry5Trolls
>>
>>
>> Le 11/02/2016 21:25, JT a écrit :
>>
>>> No wonder itv sucks.
>>> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
>>> wrote:
>>>
>>> No, T5.4 was still firmly headed by Howard. He created the first T5.4
>>>> branch over three years (see for example
>>>> http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
>>>> and you can see the results of his mastermind everywhere in the T5.4
>>>> code.
>>>> I guess you could say it was the first release not finished by Howard.
>>>>
>>>> Kalle
>>>>
>>>>
>>>> On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
>>>> wrote:
>>>>
>>>> Pretty epic, congrats to all who contributed and participated ! Most
>>>>> notably, this seems like the first Tapestry release that was not headed
>>>>>
>>>> by
>>>>
>>>>> Howard (of course, I don't have any stats to back that up).
>>>>>
>>>>> Cheers - Alex K
>>>>>
>>>>> On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
>>>>> wrote:
>>>>>
>>>>> The Apache Tapestry developers are proud to announce that Tapestry 5.4,
>>>>>> a long-awaited major release, is now available for immediate download:
>>>>>>
>>>>>>  http://tapestry.apache.org/download
>>>>>>
>>>>>> Tapestry 5.4 represents a tremendous effort by a large number of
>>>>>> people, and includes almost 200 enhancements and over 300 bug fixes.
>>>>>> Full details are in the release notes, but here are a few highlights:
>>>>>>
>>>>>> * A JavaScript abstraction layer that removes Tapestry's dependence
>>>>>> on Prototype and lets you swap in jQuery (or potentially other
>>>>>> JavaScript framewords) instead.
>>>>>>
>>>>>> * JavaScript modules based on RequireJS
>>>>>>
>>>>>> * A new module, tapestry-webresources, which provides support for
>>>>>> automatically compiling CoffeeScript into JavaScript and Less into
>>>>>> CSS, and for minimizing CSS and JavaScript. And, best of all, this
>>>>>> processing takes place at runtime.
>>>>>>
>>>>>> * Greatly improved asset caching based on the checksums of file
>>>>>> contents, to intelligently cache assets like images and CSS only
>>>>>> until their content changes.
>>>>>>
>>>>>> * The adoption of Bootstrap 3 CSS styling by default, with built-in
>>>>>> glyphicon support.
>>>>>>
>>>>>> ... and many dozens of other significant changes.
>>>>>>
>>>>>> Despite all the changes, Tapestry 5.4 is still mostly a drop-in
>>>>>>
>>>>> replacement
>>>>>
>>>>>> for
>>>>>> 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
>>>>>>
>>>>> require
>>>>>
>>>>>> some
>>>>>> CSS tweaks if you're not already using Bootstrap 3.
>>>>>>
>>>>>> Please see https://tapestry.apache.org/release-notes-54.html for a
>>>>>>
>>>>> full
>>>>> list of
>>>>>> changes and upgrade instructions.
>>>>>>
>>>>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: T5 and Ember

2015-03-24 Thread Ivano Luberti
Oh well, reading further I have found the answer by myself:

> Ember.js favors Convention over Configuration. 

sorry Kalle


Il 24/03/2015 12:00, Ivano Luberti ha scritto:
> Hi Kalle, I don't know a thing about Ember and Angular but I plan to
> learn about javascript frameworks. Hence I don't have an answer for you
> but a question instead (of course totally OT on this list).
>
> First link I get from google searching for "ember angular" is
>
> https://www.airpair.com/js/javascript-framework-comparison
>
> that is a very angular partizan article in reality.
> Maybe explanation on why is the first result is this contained phrase:
>
>> Not only does Angular have the largest community and much more online
>> content than the two others, it is also backed and promoted by Google. 
> Nonetheless motivation for the article to sponsor Angular seem reasonable.
> So question is: what is to like in ember more than in angular?
>
> Il 24/03/2015 04:50, Kalle Korhonen ha scritto:
>> As an experiment, I'm trying to migrate an existing Angular app to Ember
>> (with T5 back-end and serving multiple other "thin" pages). There's a lot
>> to like in Ember vs Angular but I'm wondering if there are anybody else
>> using Ember with T5 and if so, what's your setup? I'm mainly interested in
>> knowing if you've managed to integrate wro4j's EmberJsProcessor or perhaps
>> you have just overlaid an ember-cli setup over T5 folder structure? Also,
>> I'd especially like to know how you handle third-party components if you
>> are using any. Installing snippets using npm and ember-cli seems like a
>> great idea but I find a lot of outdated and broken stuff. I'm using the
>> very latest, the ember-cli 0.2.1 released today (I was battling issues with
>> the previous 0.2.0 release over the weekend) and ember 1.10.0. Perhaps I'm
>> pushing too far on the bleeding edge... if you've gone done this path, I'd
>> appreciate some war stories for things to watch out for.
>>
>> Kalle
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: T5 and Ember

2015-03-24 Thread Ivano Luberti
Hi Kalle, I don't know a thing about Ember and Angular but I plan to
learn about javascript frameworks. Hence I don't have an answer for you
but a question instead (of course totally OT on this list).

First link I get from google searching for "ember angular" is

https://www.airpair.com/js/javascript-framework-comparison

that is a very angular partizan article in reality.
Maybe explanation on why is the first result is this contained phrase:

>
> Not only does Angular have the largest community and much more online
> content than the two others, it is also backed and promoted by Google. 

Nonetheless motivation for the article to sponsor Angular seem reasonable.
So question is: what is to like in ember more than in angular?

Il 24/03/2015 04:50, Kalle Korhonen ha scritto:
> As an experiment, I'm trying to migrate an existing Angular app to Ember
> (with T5 back-end and serving multiple other "thin" pages). There's a lot
> to like in Ember vs Angular but I'm wondering if there are anybody else
> using Ember with T5 and if so, what's your setup? I'm mainly interested in
> knowing if you've managed to integrate wro4j's EmberJsProcessor or perhaps
> you have just overlaid an ember-cli setup over T5 folder structure? Also,
> I'd especially like to know how you handle third-party components if you
> are using any. Installing snippets using npm and ember-cli seems like a
> great idea but I find a lot of outdated and broken stuff. I'm using the
> very latest, the ember-cli 0.2.1 released today (I was battling issues with
> the previous 0.2.0 release over the weekend) and ember 1.10.0. Perhaps I'm
> pushing too far on the bleeding edge... if you've gone done this path, I'd
> appreciate some war stories for things to watch out for.
>
> Kalle
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



strange issue with Eclipse + Tomcat (solved)

2014-12-21 Thread Ivano Luberti
Today I got lost for a few hours trying to solve the following issue.
Since I couldn't find anything googling I thought it worth to spend a
few minutes to write it on the list.

I use Tomcat+Eclipse on a Windows box to develop
To achieve auto-reloading I set the "Serve modules without publishing"
option while developing.

Today I deployed my application on a customer server and after loading
the first page correctly I kept getting the following exception on the
second one

org.apache.tapestry5.ioc.internal.OperationException
Embedded component(s) barCodeForm are defined within component class
it.archicoop.met.obliterazione.pages.BarCode (or a super-class of
BarCode), but are not present in the component template (null).

So clearly Tapestry was not able to load the tml file: but why?
Well of course there was a mistake by me:
I have

BarCode.java

but

Barcode.tml

what of course was misleding me was the fact that I had been able to
develop without issues but when deploying  I hit this kind of issue.
Finally I discovered that also on the dev (windows ) machine, removing
the flag for the "Serve modules without publishing" option causes the issue.

Or better said using "Serve modules without publishing" option Tomcat
seems to be not case sensitive on file names.

Hope this message can save time to someone someday






 

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: problem with jquery.DialogAjaxLink

2014-12-02 Thread Ivano Luberti
Does this affect also version 3.3.8?

Il 02/12/2014 08:38, Christian Riedel ha scritto:
> Yes, there’s a bug in the version you use, which got fixed in 3.4.1-SNAPSHOT 
> (3.4.1 will be released soon, I guess).
> Use the SNAPSHOT version or a custom release based on its code. Check out the 
> master-5.3 branch: https://github.com/got5/tapestry5-jquery/tree/master-5.3
>
>> Am 02.12.2014 um 01:59 schrieb nn kk :
>>
>> I have the following code:
>>
>>>  t:dialog="editDialog" t:zone="editZone" 
>> t:context="0">
>>  
>>  
>>
>>
>> I have the zone and the dialog inside it... And everything works on my 
>> local, when I click the link I see the following request:
>> POST 
>> http://localhost:8080/MyPrj/mainadminpage.halfseasoneditcomponent.linkedit/2
>>
>> The problem comes when I deploy the war on my prod env, and the domain is 
>> not localhost, but it still makes the same request to localhost, so I 
>> receive CORS.
>>
>> Any ideas?!
>>
>> -
>> 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
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: tapestry and jquery

2014-11-25 Thread Ivano Luberti
Thanks for all the comments, here is a cumulative feedback:

I have tried the tapesrty5jquery dialog demo using 3.3.4 and 3.3.7
version in the Tapestry5 tutorial using Tapestry 5.3.7
but didn't work. Asked on their google group (thati moderated) and saw
there are no post since september 2013.
So I was worried about the kind of support I can get: it was not a
complaint, just trying to understand where they are.
Activity on GitHub  seems to keep up. But no feedback neither on twitter.

I have of course googled for help and specifically searched nabble but
(not a surprise) there is almost nothing on this list.

I have to start from scratch : better said I have already implented the
app with no client side feature. And now I want to add javascript/ajax.
Later I will pass it to a colleague for CSS customization.

The application is quite simple and I'm using it as a learning tool.

So maybe porting to 5.4 worths it .

And I wiill use suggestion by Francois to post my actual issue, even
though also the issue tracker doesn't seem to be updated since september
2014





Il 25/11/2014 01:15, Chris Mylonas ha scritto:
> Have you got a link to previous post (on nabble)?wanted 
> Maybe someone can shed some light on it now.
>
> I ask questions and get no answer sometimes - could be the way I ask, not
> tapestry itself or waste of time.
>
> I've used both 5.3 tapestry-jquery really well, and tapestry-5.4-beta22.
>
> Have you already got a HTML/css/jquery prototype ready or are you starting
> from scratch?
> On 25/11/2014 10:12 am, "Ivano Luberti"  wrote:
>
>> Hi guys, in the past days I have posted a question about an issue with
>> tapestry5 jquery.
>> I have got no answer both on this list and (more worrying) on
>> tapestry5jquery moderated google group (freezed at september 29 btw)
>>
>> So my question is: having to start today a small web application in
>> tapestry5 with some jquery, does it worth to engage with tapestry5jquery
>> or better integrating jquery scripts on my own ?
>>
>> Any tapestry5jquery user on this list?
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>>
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



tapestry and jquery

2014-11-24 Thread Ivano Luberti
Hi guys, in the past days I have posted a question about an issue with
tapestry5 jquery.
I have got no answer both on this list and (more worrying) on
tapestry5jquery moderated google group (freezed at september 29 btw)

So my question is: having to start today a small web application in
tapestry5 with some jquery, does it worth to engage with tapestry5jquery
or better integrating jquery scripts on my own ?

Any tapestry5jquery user on this list?

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



tapestry5-jquery throws exception

2014-11-21 Thread Ivano Luberti
t
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at
org.apache.tapestry5.internal.transform.InjectContainerWorker$1$1.get(InjectContainerWorker.java:80)
at
org.got5.tapestry5.jquery.mixins.Autocomplete.conduit_get_field(Autocomplete.java)
at
org.got5.tapestry5.jquery.mixins.Autocomplete.afterRender(Autocomplete.java:134)
at
org.got5.tapestry5.jquery.mixins.Autocomplete.afterRender(Autocomplete.java)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AfterRenderPhase.invokeComponent(ComponentPageElementImpl.java:380)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:138)
... 85 more





-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti
Oh God!
Yes , I messed up with interfaces: too much time using PHP

Thanks Thiago
 
Il 14/11/2014 20:47, Thiago H de Paula Figueiredo ha scritto:
> On Fri, 14 Nov 2014 15:27:51 -0200, Ivano Luberti
>  wrote:
>
>> So B is created in the first page but not bound to the session while
>> some way is visible across pages
>> While A is created at server start-up (why?) but is not visible in
>> the page.
>> If from web.xml  I remove
>>
>> 
>> it.archicoop.met.obliterazione.beans.User
>>
>> 
>
> If you declare your User class like this, for the listening itself,
> the servlet container will create a single User instance and invoke
> its methods. This is completely unrelated to Tapestry's @SessionState.
> Why are you doing that? Using the same class for this listener *and*
> as an @SessionState field makes no sense at all, at least at first.
>
> Shouldn't your User class implement HttpSessionBindingListener instead?
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti


Il 14/11/2014 13:13, Thiago H de Paula Figueiredo ha scritto:
> On Fri, 14 Nov 2014 09:25:47 -0200, Ivano Luberti
>  wrote:
>
>> Hi
>
> Hi!
>
>> When I call the Index page in the browser  onPrepare is called
>
> What's your onPrepare() method? You didn't post it here. By the way,
> you could print a stack trace inside the User constructor to know
> exactly which method is instantiating it.
>

Here is the code: is not onPrepare but setupRender , sorry, I had
changed it from onPrepare but the result has not changed, anyway


@Log
public void setupRender(){
   
   
try {
   
Loginform lf=
user.getWsclient().getLoginForm(requestGlobal.getHTTPServletRequest().getRemoteAddr());
   
monumenti=lf.getMonumenti();
   
postazioni=lf.getPostazioni();
   
idMonumentoSelezionato=lf.getIdMonumentoSelezionato();
   
   
user.setIp(requestGlobal.getHTTPServletRequest().getRemoteAddr());
   
} catch (Exception e) {
   
logger.debug(e.getMessage());
}

   
}


Here are the stack traces produced by the constuctor calls and
sessionCreated and session destroyed methods
You can see that

1) an instance A is created when tomcat starts up

2) instance A is bounded to the session when first page is visited

3) when first page is visited also instance B is created but not bound
to any session

4) on logout instance A id unbound from session

5) on redirection to Index instance B is discarded and instance C is
created but not attached to the session

So B is created in the first page but not bound to the session while
some way is visible across pages
While A is created at server start-up (why?) but is not visible in the page.
If from web.xml  I remove


   
it.archicoop.met.obliterazione.beans.User


of course A is not created anymore but neither are called sessionCreated
and sessionDestroy
While B keep on behaving as described

When I start the application an instance is created and printing a stack
trace produces:


I'm it.archicoop.met.obliterazione.beans.User@4e1a70b8 and I'm created here:
it.archicoop.met.obliterazione.beans.User,,34
sun.reflect.NativeConstructorAccessorImpl,newInstance0,-2
sun.reflect.NativeConstructorAccessorImpl,newInstance,39
sun.reflect.DelegatingConstructorAccessorImpl,newInstance,27
java.lang.reflect.Constructor,newInstance,513
java.lang.Class,newInstance0,357
java.lang.Class,newInstance,310
org.apache.catalina.core.StandardContext,listenerStart,4150
org.apache.catalina.core.StandardContext,start,4705
org.apache.catalina.core.ContainerBase,start,1057
org.apache.catalina.core.StandardHost,start,840
org.apache.catalina.core.ContainerBase,start,1057
org.apache.catalina.core.StandardEngine,start,463
org.apache.catalina.core.StandardService,start,525
org.apache.catalina.core.StandardServer,start,754
org.apache.catalina.startup.Catalina,start,595
sun.reflect.NativeMethodAccessorImpl,invoke0,-2
sun.reflect.NativeMethodAccessorImpl,invoke,39
sun.reflect.DelegatingMethodAccessorImpl,invoke,25
java.lang.reflect.Method,invoke,597
org.apache.catalina.startup.Bootstrap,start,289
org.apache.catalina.startup.Bootstrap,main,414



When I load the Index Page, first is invoked sessionCreated()


[DEBUG] pages.Index [ENTER] setupRender()
I'm bounded and I'm: it.archicoop.met.obliterazione.beans.User@4e1a70b8
in session 4CEC6E6D283C89FAEBCBEFF0D578E0DE
it.archicoop.met.obliterazione.beans.User,sessionCreated,104
org.apache.catalina.session.StandardSession,tellNew,392
org.apache.catalina.session.StandardSession,setId,363
org.apache.catalina.session.StandardSession,setId,345
org.apache.catalina.session.ManagerBase,createSession,906
org.apache.catalina.session.StandardManager,createSession,292
org.apache.catalina.connector.Request,doGetSession,2448
org.apache.catalina.connector.Request,getSession,2157
org.apache.catalina.connector.RequestFacade,getSession,833
$HttpServletRequest_18d69c7688d1,getSession,-1
$HttpServletRequest_18d69c7688cf,getSession,-1
org.apache.tapestry5.internal.services.TapestrySessionFactoryImpl,getSession,44
$TapestrySessionFactory_18d69c7688cc,getSession,-1
org.apache.tapestry5.internal.services.RequestImpl,getSession,115
$Request_18d69c7688f3,getSession,-1
$Request_18d69c7688bb,getSession,-1
org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy,getSession,38
org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy,getOrCreate,49
org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy,get,44
$ApplicationStatePersistenceStrategy_18d69c768994,get,-1
org.apache.tapestry5.internal.services.ApplicationStateManagerImpl$ApplicationStateAdapter,getOrCreate,50
org.apache.tapestry5.internal.services.ApplicationStateManagerImpl,get,133
$ApplicationStateManager_18d69c7688fa,get

Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti
Hi

Il 13/11/2014 15:24, Thiago H de Paula Figueiredo ha scritto:
> On Thu, 13 Nov 2014 12:16:03 -0200, Ivano Luberti
>  wrote:
>
>> Hi all, I have a question about session handling in Tapestry5.
>> I have a
>>
>> @SessionState
>> protected User user;
>
> Shouldn't it be @SessionState(create = false) so user isn't
> instantiated automatically and is null until you set the field?
>

well in my case authentication and authorization is verified using
information that are popultaed only after login, so from my point of
view I had not advantage.
Anyway I followed you  on this.
But nothing changed.

>>
>> that works as expected
>>
>> I wanted to perform some cleanup when calling a logout link: the action
>> link listener is made as this:
>>
>> public Object onActionFromLink() {
>>requestGlobals.getHTTPServletRequest().getSession().invalidate();
>>return Index.class;
>>}
>
> You can (and should) @Inject Request. There's absolutely no reason in
> the last 5 years to use RequestGlobals to get the request object. You
> can also @Inject HttpServletRequest and HttpServletResponse directly
> if needed.
>
> @Inject
> private Request request;
>
> ...
>
> Session session = request.getSession(false);
> if (session != null) {
> session.invalidate();
> }
>

I have done also this but to no avail.
So I try to explain what happens.

I have the following class

package it.archicoop.met.obliterazione.base;

import it.archicoop.met.obliterazione.beans.User;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.annotations.SessionState;
import org.apache.tapestry5.ioc.annotations.Inject;

public class BasePage implements IPage{
   
@SessionState(create=false)
@Property
protected User user;


User is defined as this:

package it.archicoop.met.obliterazione.beans;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;


public class User implements HttpSessionListener {
   
public  User() {
}
   
public void sessionCreated(HttpSessionEvent se) {
   
System.out.println("session started "+se.getSession().getId());
   
}


public void sessionDestroyed(HttpSessionEvent se) {

System.out.println("session ended "+se.getSession().getId());

}
}


Then I have

package it.archicoop.met.obliterazione.pages;
public class Index extends BasePage
{

and

package it.archicoop.met.obliterazione.pages;
public class BarCode extends BasePage
{


Logout link is implemented using  a component

package it.archicoop.met.obliterazione.components;

import it.archicoop.met.obliterazione.pages.Index;

import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.Session;


public class Logout
{
@Inject
private Request request;
   
public Object onActionFromLink() {
   
 
Session session = request.getSession(false);
if (session != null) {
session.invalidate();
}
   
return Index.class;
 
}
   
}


public Object onActionFromLink() {
   
 
Session session = request.getSession(false);
if (session != null) {
session.invalidate();
}
   
   
return Index.class;
 
}


What happens


startup app

User constuctor called

it.archicoop.met.obliterazione.beans.User@2a801059

When I call the Index page in the browser  onPrepare is called

session created

it.archicoop.met.obliterazione.beans.User@2a801059

user field is null so constructor is called explicitly:

it.archicoop.met.obliterazione.beans.User@50862b70

login form submission

it.archicoop.met.obliterazione.beans.User@50862b70

Logout link

BarCode is the container of the Logout component

and user is null (WTF!?)

after session.invalidate is called

Session Destroyed

it.archicoop.met.obliterazione.beans.User@2a801059

Since I redirect to Index, again

onPrepare

user is initially

it.archicoop.met.obliterazione.beans.User@50862b70

then

user null

then recreated

it.archicoop.met.obliterazione.beans.User@4c057cc6

SessionCreated called

it.archicoop.met.obliterazione.beans.User@2a801059


So it seems that the field of type User is not persisted between
different pages.
And there is no relation between the user instances managed by the
servlet containt via SessionListener interface and the one in the pages

As I sadi before: there are other ways to centrailize session boundign
and unbounding but I wanted to know if in Tapestry I can use the
HTTPSessionListener inteface for object persisted in the session




-- 
===

session invalidate in tapestry

2014-11-13 Thread Ivano Luberti
Hi all, I have a question about session handling in Tapestry5.
I have a

@SessionState
protected User user;

that works as expected

I wanted to perform some cleanup when calling a logout link: the action
link listener is made as this:

public Object onActionFromLink() {
   
 
requestGlobals.getHTTPServletRequest().getSession().invalidate();
   
   
return Index.class;
 
}

I don't know if this is important (I guess not) but the method is in a
component and not direclty in a page (so that I can render the link only
in protected pages )

To centralize the cleanup that could happen both on logout action and on
session timeout I have implemented the User with the  HttpSessionListener.

The problem is that after the invalidate() call the method

public void sessionDestroyed(HttpSessionEvent se) {

is called as intended but the User object is empty as it was just
instantiated and in fact debugging I can see that is a different
instance from the one created when the session was started.

I can certainly find other ways (a RequestFilter?) but I would like to
understand what is going on.

TIA


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: default locale question

2014-11-07 Thread Ivano Luberti
that's easy: Italian
I didn't overlooked the part about missing matches :-)





Il 07/11/2014 11:58, Thiago H de Paula Figueiredo ha scritto:
> On Fri, 07 Nov 2014 08:19:26 -0200, Ivano Luberti
>  wrote:
>
>> In firefox:
>>
>> general.useragent.locale = en_US
>> So my initial request is in English and so Tapestry answer?
>
> Yep! Try setting the browser locale to fr and see what locale Tapestry
> picks. :)
>

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: default locale question

2014-11-07 Thread Ivano Luberti
Ok sorry I mssed that..read the page but overlooked it


Il 07/11/2014 11:40, Stephan Windmüller ha scritto:
> On 07.11.2014, Ivano Luberti wrote:
>
>> intl.accept_languages;en-US, en
>> [...]
>> So my initial request is in English and so Tapestry answer?
> That is correct. Please have a look at "Locale Selection" on this page:
>
> http://tapestry.apache.org/localization.html
>
> HTH
>  Stephan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: default locale question

2014-11-07 Thread Ivano Luberti
In firefox:

general.useragent.locale = en_US

services.sync.prefs.sync.intl.accept_languages;true
intl.accept_languages;en-US, en
font.language.group;x-western
browser.translation.neverForLanguages;
browser.translation.detectLanguage;false

So my initial request is in English and so Tapestry answer?



Il 07/11/2014 11:02, Thiago H de Paula Figueiredo ha scritto:
> What's your browser configured locales?
>
> On Fri, 07 Nov 2014 07:28:35 -0200, Ivano Luberti
>  wrote:
>
>> Hi all, a quick question on locales management
>> I want italian as default locale for my application
>>
>> I have found this in the configuration section:
>>
>>> tapestry.supported-locales
>>>
>>> A comma-separated list of supported locales. Incoming requests as
>>> "narrowed" to one of these locales, based on closest match. If no
>>> match can be found, the first locale in the list is treated as the
>>> default.
>>
>> So I have added in AppModule
>>
>> configuration.add(SymbolConstants.SUPPORTED_LOCALES, "it,en");
>>
>> but calling
>>
>> http://localhost:8080/tutorial1/
>>
>> I get English.
>>
>> Calling
>>
>> http://localhost:8080/tutorial1/it
>>
>> I get Italian
>>
>> Calling
>>
>> http://localhost:8080/tutorial1/fr
>>
>> I get English
>>
>>
>> Am I missing something?
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



default locale question

2014-11-07 Thread Ivano Luberti
Hi all, a quick question on locales management
I want italian as default locale for my application

I have found this in the configuration section:

> tapestry.supported-locales
>
> A comma-separated list of supported locales. Incoming requests as
> "narrowed" to one of these locales, based on closest match. If no
> match can be found, the first locale in the list is treated as the
> default.

So I have added in AppModule

configuration.add(SymbolConstants.SUPPORTED_LOCALES, "it,en");

but calling

http://localhost:8080/tutorial1/

I get English.

Calling

http://localhost:8080/tutorial1/it

I get Italian

Calling

http://localhost:8080/tutorial1/fr

I get English


Am I missing something?


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



Re: newbie: beaneditForm with drop down list fed by a List

2014-11-06 Thread Ivano Luberti
Thanks Thiago, you answer quickly as usually and always providing the
fishing rod not the fish :-)

Il 05/11/2014 18:21, Thiago H de Paula Figueiredo ha scritto:
> On Wed, 05 Nov 2014 07:23:03 -0200, Ivano Luberti
>  wrote:
>
>> Hi, I'm trying to figure out how to add a PropertyEditBlock to have drop
>> down lists fed by a List type.
>
> What do you mean by "a List type"? java.util.List?
>

Yes I hoped it was clear from the subect

>> I have found this example:
>>
>> http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock
>>
>> but I see links to code are not working anymore: can someone tell me if
>> that is the right approach before I try it out?
>
> Thank heavens the link to GenericSelectModel is broken, as it was a
> really bad idea.
>
> I prefer http://tapestry.apache.org/beaneditform-guide.html, which is
> a better description than the page you mentioned above.
>

Yes I saw that page, of course but to me, for a newbie it lacks
indications on how to get together the select model with the bean model.
In real world scenarios populating a drop down list from an enum is far
more rare than populating from a Map or a List dynamically generated
from a data source (DB or web service as in my case).

So for a newbie to have a BeanEditForm ready to use with this respect
could be quite important. BeanEditForm in fact is documented in the
Getting Started guide since is correctly deemed as a Basic funcionality.

Another thing is not mentioned in the BeanEditForm guide is the coercion
of Map to SelectModel: I guess  this means that if my data provider give
me Maps I can override the property editor and I'm done.

One more observation on the guide:  BeanModelSource.create is deprecated
:-) : the guide is outdated.

However even turning to BeanModelSource.createEditModel doesn't work for
me because my bean to be created needs the IP address of the client.  I
will give a try later when I will implement other forms...

I fear I will have to use a "normal" Form component.



> http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock
> has something I don't like at all: creating a class (DropDownList)
> just for being used in BeanModel-based components (BeanEditForm,
> BeanEditor, Grid, BeanDisplay), not being the type of the field in
> your domain or entity class, which would be String, int, an enum, some
> other custom class, etc. Instead, I prefer to keep the field in its
> right type, which is the type of the options you want to provide.
>
> The implementation varies a bit depending on what the type of the
> selection is. If it's an enum or some custom class, you can follow the
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock
> example replacing DropDownList by your class and writing an
> appropriate ValueEncoder for it. You don't need to subclass
> AbstractModel yourself: just use the SelectModelFactory service
> methods instead.


I see your point but I'm not sure I'm totally with you on this.
Of course you are more experienced than me in what the reasons are
beyond tpaestry choices, so I feel quite uncomfortable arguing your
arguments but I try it anyway. I hope you will keep on being patient
answering even if I totally miss the point.

In real world application we will get object from the DB to populate the
drop down list and when an item is selected we will have always an id in
our page class to make it aware what item has been selected .
So there will be always the need to extract from the object a mnemonic
identifier to be showed in the selection for uman reading and an
identifier to indicate the selection to the page.
I believe this is why you need a ValueEncoder, right?



>
>
> If it's something like, for example, an int field with values from 0
> to 10, the only difference would be creating an annotation (@Rating,
> for example), then implementing a DataTypeAnalyzer which retuns "rate"
> when the field has @Rating and contribute your newly-written
> RatingDataTypeAnalyzer to the DataTypeAnalyzer service. The rest stays
> the same.
>
>> It seems to me that using List for drop down list is quite mandatory to
>> manage forms in real world applications.
>
> Yeah, but the way you describe this is too vague to have a single good
> implementation for all cases.
>
>> BTW: if it is the right approach why not moving that example to official
>> documentation?
>
> Because the right approach for adding BeanModel edition and viewing
> blocks is already at
> http://tapestry.apache.org/beaneditform-guide.html, Adding New
> Property Editors section. ;)
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' coo

newbie: beaneditForm with drop down list fed by a List

2014-11-05 Thread Ivano Luberti
Hi, I'm trying to figure out how to add a PropertyEditBlock to have drop
down lists fed by a List type.
I have found this example:

http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock

but I see links to code are not working anymore: can someone tell me if
that is the right approach before I try it out?

BTW: if it is the right approach why not moving that example to official
documentation?
It seems to me that using List for drop down list is quite mandatory to
manage forms in real world applications.

If it is NOT the right approach can someone link me to a proper one?

Thanks in advance for your help


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Ivano Luberti
Hi Christian, it seems to work: I used the tutorial T5 project created
following the tutorial on T5 web site. Then i have configured my Tomca
runtime in eclipde checking "serve modules without publishing"  and
unchecking  "Modules auto-reload by default"
then modified on the fly the index.java file and modification have been
taken into account without reloading

Many thanks

BTW to verify this works on old versions of Eclipse+Tomcat+Java combo I
verified your suggestions  with Eclipse Juno+Tomcat6+Java 6



Il 25/08/2014 10:29, Christian Dutaret ha scritto:
> Hi all,
>
> I've seen a lot of people claiming that one should use Sysdeo plugin to
> work with Tomcat under eclipse/Maven for T5 development, and that the
> standard WTP plugin should be avoided, because it is supposedly buggy and
> slow.
> I've been using WTP plugin for years with other frameworks (including T4),
> and I have no problem at all using it for T5 web apps, as long as it is
> properly configured. I have live class reloading working, Maven
> dependencies picked up just fine, and no Tomcat restarts (and no devloader
> to configure).
>
> I f anyone is interested, 

I am

> here is my configuration (using Tomcat 8 and
> latest Eclipse Luna, but should also work with older versions) :
> - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
> build)

ok


> - Server configuration: serve modules without publishing, auto-reload
> disabled by default



> - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> fails - hot deploy does fail but LCR doesn't)
>
> Christian
>
>
> 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
>
>> Thanks Kallenow I (hope I) have a clear path
>>
>>
>> Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
>>> On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
>>> wrote:
>>>
>>>> Thanks Kalle, maybe I'm starting to figuring it out.
>>>> So the devloader enables the container to load classes from paths
>>>> aoutside WEB-INF/lib and WEB-INF/classes , right?
>>>>
>>> That's what I said and that's what the linked resource said.
>>>
>>>> So if instead of the maven project layout I use the classic WTP project
>>>> layout that has a
>>>> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and if
>>>> properly configured builds classes from my source folder into
>>>> WEB-INF/classes I would get LCR working. Is this correct?
>>>>
>>> Yes. Deploy as exploded and remember to turn off container
>> auto-reloading.
>>>> Of course this goes against all the maven stuff that seems to be used by
>>>> the vast majority of T5 devs.
>>>>
>>> Not only T5 but vast majority of Java devs.
>>>
>>> Kalle
>>>
>>>
>>>> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
>>>>> You don't need the devloader for live class reloading. You need it to
>> be
>>>>> able to pick up classes from other locations than /lib or /classes, say
>>>>> from your local Maven repo, as explained at the bottom of
>>>>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now,
>> you
>>>>> can technically use the devloader by itself by manually configuring the
>>>>> devloader's configuration file but I wouldn't recommend it. (and to
>>>> others,
>>>>> Ivano specifically stated he wants to use Tomcat, not Jetty).
>>>>>
>>>>> Kalle
>>>>>
>>>>>
>>>>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti 
>>>> wrote:
>>>>>> Hi everybody I'm a former user of T4 but for many reasons independent
>>>>>> from my will, I had to abandon Tapestry a few years ago, while I'm
>> still
>>>>>> maintaining some web applications.
>>>>>>
>>>>>> Now I want to step into T5 and I'm following the tutorial.
>>>>>> I have set up under Eclipse and successfully running the tutorial.
>>>>>> Before going further I would like to be sure LCR works (because
>> actually
>>>>>> doesn't).
>>>>>>
>>>>>> I have read the Kalle page on setting up tomcat but I would like to
>>>>>> avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>>>>>> applications and I'm used to launch Tomcat  via Eclipse Debug
>>>>>> Configuration.
>>>>>&

Re: LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Thanks Kallenow I (hope I) have a clear path


Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
> wrote:
>
>> Thanks Kalle, maybe I'm starting to figuring it out.
>> So the devloader enables the container to load classes from paths
>> aoutside WEB-INF/lib and WEB-INF/classes , right?
>>
> That's what I said and that's what the linked resource said.
>
>> So if instead of the maven project layout I use the classic WTP project
>> layout that has a
>> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and if
>> properly configured builds classes from my source folder into
>> WEB-INF/classes I would get LCR working. Is this correct?
>>
> Yes. Deploy as exploded and remember to turn off container auto-reloading.
>
>> Of course this goes against all the maven stuff that seems to be used by
>> the vast majority of T5 devs.
>>
> Not only T5 but vast majority of Java devs.
>
> Kalle
>
>
>> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
>>> You don't need the devloader for live class reloading. You need it to be
>>> able to pick up classes from other locations than /lib or /classes, say
>>> from your local Maven repo, as explained at the bottom of
>>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now, you
>>> can technically use the devloader by itself by manually configuring the
>>> devloader's configuration file but I wouldn't recommend it. (and to
>> others,
>>> Ivano specifically stated he wants to use Tomcat, not Jetty).
>>>
>>> Kalle
>>>
>>>
>>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti 
>> wrote:
>>>> Hi everybody I'm a former user of T4 but for many reasons independent
>>>> from my will, I had to abandon Tapestry a few years ago, while I'm still
>>>> maintaining some web applications.
>>>>
>>>> Now I want to step into T5 and I'm following the tutorial.
>>>> I have set up under Eclipse and successfully running the tutorial.
>>>> Before going further I would like to be sure LCR works (because actually
>>>> doesn't).
>>>>
>>>> I have read the Kalle page on setting up tomcat but I would like to
>>>> avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>>>> applications and I'm used to launch Tomcat  via Eclipse Debug
>>>> Configuration.
>>>>
>>>> My question is: can I achieve LCR wihtout Sysdeo? Would it be enough to
>>>> deploy devloader in Tomcat lib ?
>>>>
>>>> TIA
>>>>
>>>>
>>>> --
>>>> ==
>>>> dott. Ivano Mario Luberti
>>>> Archimede Informatica societa' cooperativa a r. l.
>>>> Sede Operativa
>>>> Via Gereschi 36 - 56126- Pisa
>>>> tel.: +39-050- 580959
>>>> tel/fax: +39-050-9711344
>>>> web: www.archicoop.it
>>>> ==
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Thanks Kalle, maybe I'm starting to figuring it out.
So the devloader enables the container to load classes from paths
aoutside WEB-INF/lib and WEB-INF/classes , right?

So if instead of the maven project layout I use the classic WTP project
layout that has a
WebContent folder which includes WEB-INF/lib and WEB-INF/classes and if
properly configured builds classes from my source folder into
WEB-INF/classes I would get LCR working. Is this correct?

Of course this goes against all the maven stuff that seems to be used by
the vast majority of T5 devs.

Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> You don't need the devloader for live class reloading. You need it to be
> able to pick up classes from other locations than /lib or /classes, say
> from your local Maven repo, as explained at the bottom of
> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now, you
> can technically use the devloader by itself by manually configuring the
> devloader's configuration file but I wouldn't recommend it. (and to others,
> Ivano specifically stated he wants to use Tomcat, not Jetty).
>
> Kalle
>
>
> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti  wrote:
>
>> Hi everybody I'm a former user of T4 but for many reasons independent
>> from my will, I had to abandon Tapestry a few years ago, while I'm still
>> maintaining some web applications.
>>
>> Now I want to step into T5 and I'm following the tutorial.
>> I have set up under Eclipse and successfully running the tutorial.
>> Before going further I would like to be sure LCR works (because actually
>> doesn't).
>>
>> I have read the Kalle page on setting up tomcat but I would like to
>> avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>> applications and I'm used to launch Tomcat  via Eclipse Debug
>> Configuration.
>>
>> My question is: can I achieve LCR wihtout Sysdeo? Would it be enough to
>> deploy devloader in Tomcat lib ?
>>
>> TIA
>>
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Ola' Thiago!

Il 25/08/2014 01:28, Thiago H de Paula Figueiredo ha scritto:
>
>>  isn't that an official page?
>
> Yes, it is. But that doesn't mean I have all the official pages. :p
>

No but you have to admit this is not the least important one about LCR :-)


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Hi Thiago

Il 24/08/2014 21:31, Thiago H de Paula Figueiredo ha scritto:

> By the way, it's the first time I've ever seen live class reloading
> being referred as LCR.
>

http://tapestry.apache.org/class-reloading.html


 isn't that an official page?

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Hi Muhammad, I have used the acronym found in Tapestry docs: Live Class
Reloading.
And I forget to say I want to use Tomcat (this is why I mentioned the
Sysdeo plugin)

Il 24/08/2014 12:35, Muhammad Gelbana ha scritto:
> What do you mean by LCR ? You can use
> https://code.google.com/p/run-jetty-run/
>
> It offers server automatic restart for the server when the code is changed.
>
> *-*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
>
>
> On Sun, Aug 24, 2014 at 11:27 AM, Ivano Luberti 
> wrote:
>
>> Hi everybody I'm a former user of T4 but for many reasons independent
>> from my will, I had to abandon Tapestry a few years ago, while I'm still
>> maintaining some web applications.
>>
>> Now I want to step into T5 and I'm following the tutorial.
>> I have set up under Eclipse and successfully running the tutorial.
>> Before going further I would like to be sure LCR works (because actually
>> doesn't).
>>
>> I have read the Kalle page on setting up tomcat but I would like to
>> avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>> applications and I'm used to launch Tomcat  via Eclipse Debug
>> Configuration.
>>
>> My question is: can I achieve LCR wihtout Sysdeo? Would it be enough to
>> deploy devloader in Tomcat lib ?
>>
>> TIA
>>
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



LCR in Eclipse without Sysdeo plugin

2014-08-24 Thread Ivano Luberti
Hi everybody I'm a former user of T4 but for many reasons independent
from my will, I had to abandon Tapestry a few years ago, while I'm still
maintaining some web applications.

Now I want to step into T5 and I'm following the tutorial.
I have set up under Eclipse and successfully running the tutorial.
Before going further I would like to be sure LCR works (because actually
doesn't).

I have read the Kalle page on setting up tomcat but I would like to
avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
applications and I'm used to launch Tomcat  via Eclipse Debug
Configuration.

My question is: can I achieve LCR wihtout Sysdeo? Would it be enough to
deploy devloader in Tomcat lib ?

TIA


-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [OT] encoding of properties files

2011-03-11 Thread Ivano Luberti
Thanks to Hugo and Jim for their answers.
Sorry to come back on this after so much time.
I was aware of the encoding of files that Java uses for properties files
and so my editor (actually the Eclipse default properties file editor)
is set properly to ISO-8859-1 .

However my deve environment is on a Windows machine and when I test my
web site running

  System.out.println(  Default Charset=" + Charset.defaultCharset()+";"+
"file.encoding=" +
System.getProperty("file.encoding")+";"+
"Default Charset=" + Charset.defaultCharset()+";"+
"Default Charset in Use=" + getDefaultCharSet()));


I get

Default Charset=windows-1252;file.encoding=Cp1252;Default
Charset=windows-1252;Default Charset in Use=Cp1252

and still properties files content is dipslayed correctly
While on the server (an Ubuntu box) where pages are displayed
incorrectly the same check shows:

Default Charset=US-ASCII;file.encoding=ANSI_X3.4-1968;Default
Charset=US-ASCII;Default Charset in Use=ASCII

I asked my sys admin to work on this


Il 04/03/2011 21.34, Jim O'Callaghan ha scritto:
> 2nd try to get through spam filter...
>
> Perhaps the text editor you are using for editing your property files and 
> templates is not character code aware, for instance old versions of Notepad.  
> If you are using Eclipse for editing these files it may be set to auto-detect 
> the character encoding, and if one of the previous developers is using a 
> clashing editor / character encoding, the meta tag in your property files and 
> templates will be directing the browser to decode the characters using a 
> character set that is different to the one actually used to save the content. 
> You can check if the browser rendered content is actually ISO-8859-1 by 
> changing the Firefox setting to the required encoding (View → Character 
> Encoding → Western (ISO-8859-1)) instead of Auto-detect, to see if the 
> relevant characters come out ok, if not, then I would check the editor you 
> are using to edit the files (including history of check-ins by other 
> developers) and make sure it is setting the encoding correctly.  Another area 
> that may be relevant is if you have contributed a Servlet Filter, and in its 
> service method you have used setCharacterEncoding("UTF-8") or some other 
> invalid encoding.  I use UTF-8 project-wide, ensure my editors are character 
> code aware, and have no problem with special characters.  I have previously 
> encountered similar errors where non-developers were given access to files to 
> maintain error messages / properties using older versions of Notepad.
>
> Regards,
> Jim.
>
> From: Ivano Luberti [mailto:lube...@archicoop.it] 
> Sent: 04 March 2011 14:53
> To: Tapestry users
> Subject: [OT] encoding of properties files
>
> Hello I have a question I believe is not strictly Tapestry related.
>
> I'm developing a web site using T 4.1.6
> My dev environment is Eclipse 3.5 + Tomcat 5.5  on Windows Vista where
> everything works fine (I know I know...).
> Instead when I deploy the website on another machine,  characters loaded
> from properties files  that have accents are not showed correctly.
> I see question marks in place of the characters when I use Firefox and
> squares in IE 8.
>
> I have used ISO-8859-1 for properties files and for html templates:
>
> 
>
>
> Can someone point me in the correct direction to solve this problem?
>
>
>
>
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1204 / Virus Database: 1435/3480 - Release Date: 03/03/11
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: [OT] encoding of properties files

2011-03-11 Thread Ivano Luberti
Thanks to Hugo and Jim for their answers.
I was aware of the encoding of files that Java uses for properties files
and so my editor (actually the Eclipse default properties file editor)
is set properly to ISO-8859-1 .

However my deve environment is on a Windows machine and when I test my
web site running

  System.out.println(  Default Charset=" + Charset.defaultCharset()+";"+
"file.encoding=" +
System.getProperty("file.encoding")+";"+
"Default Charset=" + Charset.defaultCharset()+";"+
"Default Charset in Use=" + getDefaultCharSet()));


I get

Default Charset=windows-1252;file.encoding=Cp1252;Default
Charset=windows-1252;Default Charset in Use=Cp1252

and still properties files content is dipslayed correctly
While on the server (an Ubuntu box) where pages are displayed
incorrectly the same check shows:

Default Charset=US-ASCII;file.encoding=ANSI_X3.4-1968;Default
Charset=US-ASCII;Default Charset in Use=ASCII




Il 04/03/2011 21.34, Jim O'Callaghan ha scritto:
> 2nd try to get through spam filter...
>
> Perhaps the text editor you are using for editing your property files and 
> templates is not character code aware, for instance old versions of Notepad.  
> If you are using Eclipse for editing these files it may be set to auto-detect 
> the character encoding, and if one of the previous developers is using a 
> clashing editor / character encoding, the meta tag in your property files and 
> templates will be directing the browser to decode the characters using a 
> character set that is different to the one actually used to save the content. 
> You can check if the browser rendered content is actually ISO-8859-1 by 
> changing the Firefox setting to the required encoding (View → Character 
> Encoding → Western (ISO-8859-1)) instead of Auto-detect, to see if the 
> relevant characters come out ok, if not, then I would check the editor you 
> are using to edit the files (including history of check-ins by other 
> developers) and make sure it is setting the encoding correctly.  Another area 
> that may be relevant is if you have contributed a Servlet Filter, and in its 
> service method you have used setCharacterEncoding("UTF-8") or some other 
> invalid encoding.  I use UTF-8 project-wide, ensure my editors are character 
> code aware, and have no problem with special characters.  I have previously 
> encountered similar errors where non-developers were given access to files to 
> maintain error messages / properties using older versions of Notepad.
>
> Regards,
> Jim.
>
> From: Ivano Luberti [mailto:lube...@archicoop.it] 
> Sent: 04 March 2011 14:53
> To: Tapestry users
> Subject: [OT] encoding of properties files
>
> Hello I have a question I believe is not strictly Tapestry related.
>
> I'm developing a web site using T 4.1.6
> My dev environment is Eclipse 3.5 + Tomcat 5.5  on Windows Vista where
> everything works fine (I know I know...).
> Instead when I deploy the website on another machine,  characters loaded
> from properties files  that have accents are not showed correctly.
> I see question marks in place of the characters when I use Firefox and
> squares in IE 8.
>
> I have used ISO-8859-1 for properties files and for html templates:
>
> 
>
>
> Can someone point me in the correct direction to solve this problem?
>
>
>
>
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1204 / Virus Database: 1435/3480 - Release Date: 03/03/11
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



[OT] encoding of properties files

2011-03-04 Thread Ivano Luberti
Hello I have a question I believe is not strictly Tapestry related.

I'm developing a web site using T 4.1.6
My dev environment is Eclipse 3.5 + Tomcat 5.5  on Windows Vista where
everything works fine (I know I know...).
Instead when I deploy the website on another machine,  characters loaded
from properties files  that have accents are not showed correctly.
I see question marks in place of the characters when I use Firefox and
squares in IE 8.

I have used ISO-8859-1 for properties files and for html templates:




Can someone point me in the correct direction to solve this problem?





-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: any good wyswyg web editor recommend?

2011-02-11 Thread Ivano Luberti
Maybe, but as you try to write java code as clean as possible, I cannot
see why you shouldn't do the same thing with your html code.
Even because usually you want to show your html static pages to the
customer before starting to implement something else.



Il 11/02/2011 14.51, Mark ha scritto:
> On Fri, Feb 11, 2011 at 3:35 AM, Ivano Luberti  wrote:
>> But what is the reason why invisible instrumentation is not the only option.
>> I have always thought that for a presentation framework having clean
>> html files as tamplates is a major advantage.
>>
> Because if you aren't working with a designer writing:
>
> ${user.firstName}
>
> is much faster than writing:
>
>  t:value="user.firstName">First Name Here
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: any good wyswyg web editor recommend?

2011-02-11 Thread Ivano Luberti


Il 11/02/2011 11.15, Thiago H. de Paula Figueiredo ha scritto:
>
>> I have always thought that for a presentation framework having clean
>> html files as tamplates is a major advantage.
>
> Tapestry does have the advantage of clean HTML files as templates.
> Just use invisible instrumentation always. Tapestry just doesn't force
> us to do that.
>

This is exactly what I have always done

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: any good wyswyg web editor recommend?

2011-02-11 Thread Ivano Luberti
But what is the reason why invisible instrumentation is not the only option.
I have always thought that for a presentation framework having clean
html files as tamplates is a major advantage.


Il 11/02/2011 10.25, Igor Drobiazko ha scritto:
> Using invisible instrumentation its very easy. For example replace:
>
> Foo
>
> by
>
> Foo
>
>
> On Fri, Feb 11, 2011 at 10:08 AM,  wrote:
>
>> Hi list,
>>
>> I found that's quite troublesome using dreamweaver to edito tml pages,
>> any better solution?
>>
>> Thanks
>> John
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry 4.1 injecting the wrong application state object

2011-02-03 Thread Ivano Luberti
>>>>> takes
>>>>>> care of the SSL and forwards the requests to Glassfish over HTTP. I'll
>>>>>> look
>>>>>> into the possibility that something is going wrong there, although it
>>>>>> seems
>>>>>> unlikely due to the above reason...
>>>>>>
>>>>>> Cheers,
>>>>>> Pepijn
>>>>>>
>>>>>>
>>>>>> On 11-01-11 19:04, Koka Kiknadze wrote:
>>>>>>
>>>>>>> I did have exactly similar problem couple of years ago - JSF app
>>>>>>> worked
>>>>>>> fine
>>>>>>> from intranet, but messed up user sessions when accessed from WAN
>>>>>>> side.
>>>>>>>
>>>>>>> So initial suspect was the squid proxy configuration of our ISP. The
>>>>>>> problem
>>>>>>> disappeared as soon as we turned encryption on for the whole site (so
>>>>>>> that
>>>>>>> proxy could not mess things up). Well, as the performance was
>>>>>>> acceptable
>>>>>>> even with HTTPS we just left everything as is.
>>>>>>>
>>>>>>> Hence I'd suggest temporarily requiring HTTPS for the whole site and
>>>>>>> if
>>>>>>> the
>>>>>>> problem disappears, you'll know for sure it's not your application or
>>>>>>> tapestry to be blamed.
>>>>>>>
>>>>>>> Good luck.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jan 11, 2011 at 8:37 PM, Pepijn
>>>>>>> Schmitz>>>>>>> wrote:
>>>>>>>  Hi everyone,
>>>>>>>> I'm having a bizarre problem with Tapestry, and I'm hoping someone
>>>>>>>> here
>>>>>>>> might be able to point me to a solution. Before I go into detail I'd
>>>>>>>> like
>>>>>>>> to
>>>>>>>> describe the problem generally, in the hopes that it might be a known
>>>>>>>> problem or someone may have encountered something similar.
>>>>>>>>
>>>>>>>> The problem is that Tapestry 4.1.6 sometimes injects the wrong
>>>>>>>> application
>>>>>>>> state object on my pages! As you can imagine, this plays havoc with
>>>>>>>> my
>>>>>>>> application, with users seeing other users' details, or even worse,
>>>>>>>> changing
>>>>>>>> other users' information! It's a support and security nightmare.
>>>>>>>>
>>>>>>>> I'm using Tapestry 4.1.6, and I'm using annotations instead of XML
>>>>>>>> files.
>>>>>>>> My pages all descend from a base class:
>>>>>>>>
>>>>>>>> public abstract SupplierDNAPage extends BasePage {
>>>>>>>>@InjectState
>>>>>>>>public abstract SupplierDnaSession getSupplierDnaSession();
>>>>>>>>
>>>>>>>>@InjectStateFlag
>>>>>>>>public abstract boolean getSupplierDnaSessionExists();
>>>>>>>>
>>>>>>>>...
>>>>>>>> }
>>>>>>>>
>>>>>>>> hivemodule.xml contains the following:
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>  ...
>>>>>>>> 
>>>>>>>>
>>>>>>>> SupplierDNA is the name of the company I'm writing this for. As I
>>>>>>>> understand it, this is the correct way of using application state
>>>>>>>> objects.
>>>>>>>> And most of the time, it works perfectly. When testing locally I have
>>>>>>>> no
>>>>>>>> problems with wrong application state being injected, and our demo
>>>>>>>> system
>>>>>>>> also doesn't have the problem.
>>>>>>>>
>>>>>>>> The problems seem to start when the server is heavily loaded. Then,
>>>>>>>> sometimes, getSupplierDnaSession() will return an application state
>>>>>>>> object
>>>>>>>> from a different session!!!
>>>>>>>>
>>>>>>>> I have verified this by adding a pageBeginRender() listener method to
>>>>>>>> the
>>>>>>>> base class, and a client address property to the session. The
>>>>>>>> listener
>>>>>>>> method checks whether the client address stored on the session it
>>>>>>>> gets
>>>>>>>> from
>>>>>>>> Tapestry is the same as the client address from the current request,
>>>>>>>> and
>>>>>>>> throws an exception if this is not the case. On our production
>>>>>>>> server,
>>>>>>>> this
>>>>>>>> happens dozens of times a day!
>>>>>>>>
>>>>>>>> The method also directly retrieves the application state object from
>>>>>>>> the
>>>>>>>> HttpSession and compares it to the one it got from Tapestry, and it
>>>>>>>> turns
>>>>>>>> out that the application state object on the HttpSession is the
>>>>>>>> correct
>>>>>>>> one,
>>>>>>>> but somehow Tapestry is injecting a different one! This seems to rule
>>>>>>>> out
>>>>>>>> the web container as being the culprit (which is Glassfish 2 update
>>>>>>>> 2,
>>>>>>>> in
>>>>>>>> this case).
>>>>>>>>
>>>>>>>> Obviously this is a complex problem with a potentially huge number of
>>>>>>>> contributing factors, but first I'd just like to know whether this
>>>>>>>> sounds
>>>>>>>> familiar to anyone? Is there a known problem with Tapestry which
>>>>>>>> could
>>>>>>>> cause
>>>>>>>> this? Has anyone ever experienced something similar? Many thanks in
>>>>>>>> advance
>>>>>>>> for any help you can give me!
>>>>>>>>
>>>>>>>> Kind regards,
>>>>>>>> Pepijn Schmitz
>>>>>>>>
>>>>>>>> -
>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>
>>>
>>
>>
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry Web Site Updated

2010-11-25 Thread Ivano Luberti
I'm sorry but I strongly disagree: I have never seen a support service
as efficient as this mailing list.
And for free.

Il 25/11/2010 0.33, Paul Stanton ha scritto:
> "They (forums) are to publish discussions on specific matters."
>
> Exactly! I'm often disappointed with the level of help offered here,
> and maybe that's because the mailing list is too much a "community
> where people try to stay connected continuously" and not enough a
> question/answer type discussion.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry Web Site Updated

2010-11-24 Thread Ivano Luberti
Stack Overflow must be a forum because it is a way to collect many
professionals of various competences. But forums are not for community
where people try to stay connected continuously.
They are to publish discussions on specific matters.

> On Wed, Nov 24, 2010 at 11:46, Paul Stanton  wrote:
>
>> i know most of you guys, who have been using ml for so long probably prefer
>> ml, that's not the point!
>>
>> i guarantee there's a number of users who don't want to configure their
>> inbox for ml and give up.
>>
>> just a thought, if no one can see the benefit i guess it isn't going to
>> happen!
>>
>> i use stackoverflow a lot and attempt to answer or contribute to most
>> tapestry questions.
>>
>> p.
>>
>>
>> On 24/11/2010 8:35 PM, Ivano Luberti wrote:
>>
>>> I prefer ml to forums and in nay case ML web archives allow to search
>>> them.
>>> I cannot see any other advantage of a forum over a ml.
>>>
>>> Il 24/11/2010 4.56, Paul Stanton ha scritto:
>>>
>>>> how about adding a forum?
>>>>
>>>> personally i prefer forums to mailing lists, and i believe a lot of
>>>> people don't participate in this 'user-group' community and therefore
>>>> don't get help and therefore don't like tapestry...
>>>>
>>>> if you want to attract more users i recommend this.
>>>>
>>>> p.
>>>>
>>>> On 20/11/2010 8:15 AM, Howard Lewis Ship wrote:
>>>>
>>>>> We're still working out the kinks ... and I've been working hard on
>>>>> revising
>>>>> the tutorial ... but at long last, we're debuting the new Tapestry
>>>>> Web Site:
>>>>>
>>>>> http://tapestry.apache.org/
>>>>>
>>>>> Feedback is encouraged; just post to users@tapestry.apache.org with
>>>>> [SITE]
>>>>> in the subject.
>>>>>
>>>>>  -
>>>> 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
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: JSF vs Tapestry

2010-11-24 Thread Ivano Luberti
Noe it works also for me: It seems I have hit a hole , sorry for false
alarm I had tried three times in a span of few minutes before writing
the e-mail.


Il 24/11/2010 10.59, Igor Drobiazko ha scritto:
> Nope,  it works for me.
>
> On Wed, Nov 24, 2010 at 10:47 AM, Ivano Luberti wrote:
>
>> Oh yes! I can remember about that: but the link is not working, the web
>> site seems down
>>
>> Il 24/11/2010 10.27, Igor Drobiazko ha scritto:
>>> Maybe this presentation will be interesting for the jsf developer.
>>>
>>>
>> http://blog.tapestry5.de/wp-content/uploads/2010/06/JSF-2.0-vs-Tapestry-5.pdf
>>> On Wed, Nov 24, 2010 at 10:16 AM, Ivano Luberti >> wrote:
>>>
>>>> I forward to the list what a jsf developer has written to me: I'm
>>>> working with him on a project where he has to develop the web
>>>> application and I'm working on a web service consumed by his web
>>>> application.
>>>>
>>>> I had forwarded to him a message by Thiago that was trying to point out
>>>> differences between T5 and JSF.
>>>> The interesting thing he has to say is about facelets as a way to use
>>>> standard XHTML templates inside JSF.
>>>> Also the difficulty to use together different component sets is
>>>> interesting: reminds me of the issue with different JavaScript
>>>> components in T5.
>>>>
>>>> But what really surprises me is the similarity he found between struts
>>>> and JSF
>>>>
>>>>
>>>>  Messaggio originale 
>>>>
>>>> Hi Ivano,
>>>>
>>>> We do indeed use JSF for our web development and more specifically we
>>>> use Icefaces which is a set of AJAX enabled components and AJAX push
>>>> framework which sits on top of JSF. We chose to use JSF because it
>>>> wasn't too dissimilar from Struts which we were using before. Generally
>>>> we find it very good although it does have some shortcomings but they
>>>> don't tend to get in the way too much. We are using JSF 1.2 but JSF 2.0
>>>> is now available and adds support for some of the things on your list
>>>> such as, you can now use annotations for lots of things you use to have
>>>> to use XML for, there is also the addition of page level scope as per
>>>> the tapestry idea. One point the tapestry guy is wrong about though is
>>>> that with JSF you don't have to use JSP, that is only one option. We use
>>>> facelets which is now part of the JSF 2.0 spec so if you use that you
>>>> code directly in XHTML using the relevant faces tags, thus the problems
>>>> that came from using JSP as a display layer disappear.
>>>>
>>>> With JSF you get a choice of which component set you want to use, or I
>>>> believe you can use multiple but then configuration becomes more
>>>> challenging. We looked at a number including Richfaces and Woodstock and
>>>> decided that Icefaces offered the best set of components. All three of
>>>> those are open source though so are completely free to use, although
>>>> support is available too.
>>>>
>>>> Unfortunately I don't know a great deal about tapestry so I can't really
>>>> say how it compares to JSF, I think you'd have to evaluate them both and
>>>> decide which one is easier for you to work with based on your previous
>>>> experience.
>>>>
>>>> Hope that helps,
>>>> Darren
>>>>
>>>>
>>>>
>>>> -----
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: JSF vs Tapestry

2010-11-24 Thread Ivano Luberti
Oh yes! I can remember about that: but the link is not working, the web
site seems down

Il 24/11/2010 10.27, Igor Drobiazko ha scritto:
> Maybe this presentation will be interesting for the jsf developer.
>
> http://blog.tapestry5.de/wp-content/uploads/2010/06/JSF-2.0-vs-Tapestry-5.pdf
>
> On Wed, Nov 24, 2010 at 10:16 AM, Ivano Luberti wrote:
>
>> I forward to the list what a jsf developer has written to me: I'm
>> working with him on a project where he has to develop the web
>> application and I'm working on a web service consumed by his web
>> application.
>>
>> I had forwarded to him a message by Thiago that was trying to point out
>> differences between T5 and JSF.
>> The interesting thing he has to say is about facelets as a way to use
>> standard XHTML templates inside JSF.
>> Also the difficulty to use together different component sets is
>> interesting: reminds me of the issue with different JavaScript
>> components in T5.
>>
>> But what really surprises me is the similarity he found between struts
>> and JSF
>>
>>
>>  Messaggio originale 
>>
>> Hi Ivano,
>>
>> We do indeed use JSF for our web development and more specifically we
>> use Icefaces which is a set of AJAX enabled components and AJAX push
>> framework which sits on top of JSF. We chose to use JSF because it
>> wasn't too dissimilar from Struts which we were using before. Generally
>> we find it very good although it does have some shortcomings but they
>> don't tend to get in the way too much. We are using JSF 1.2 but JSF 2.0
>> is now available and adds support for some of the things on your list
>> such as, you can now use annotations for lots of things you use to have
>> to use XML for, there is also the addition of page level scope as per
>> the tapestry idea. One point the tapestry guy is wrong about though is
>> that with JSF you don't have to use JSP, that is only one option. We use
>> facelets which is now part of the JSF 2.0 spec so if you use that you
>> code directly in XHTML using the relevant faces tags, thus the problems
>> that came from using JSP as a display layer disappear.
>>
>> With JSF you get a choice of which component set you want to use, or I
>> believe you can use multiple but then configuration becomes more
>> challenging. We looked at a number including Richfaces and Woodstock and
>> decided that Icefaces offered the best set of components. All three of
>> those are open source though so are completely free to use, although
>> support is available too.
>>
>> Unfortunately I don't know a great deal about tapestry so I can't really
>> say how it compares to JSF, I think you'd have to evaluate them both and
>> decide which one is easier for you to work with based on your previous
>> experience.
>>
>> Hope that helps,
>> Darren
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry Web Site Updated

2010-11-24 Thread Ivano Luberti
I prefer ml to forums and in nay case ML web archives allow to search them.
I cannot see any other advantage of a forum over a ml.

Il 24/11/2010 4.56, Paul Stanton ha scritto:
> how about adding a forum?
>
> personally i prefer forums to mailing lists, and i believe a lot of
> people don't participate in this 'user-group' community and therefore
> don't get help and therefore don't like tapestry...
>
> if you want to attract more users i recommend this.
>
> p.
>
> On 20/11/2010 8:15 AM, Howard Lewis Ship wrote:
>> We're still working out the kinks ... and I've been working hard on
>> revising
>> the tutorial ... but at long last, we're debuting the new Tapestry
>> Web Site:
>>
>> http://tapestry.apache.org/
>>
>> Feedback is encouraged; just post to users@tapestry.apache.org with
>> [SITE]
>> in the subject.
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Fwd: Re: JSF vs Tapestry

2010-11-24 Thread Ivano Luberti
I forward to the list what a jsf developer has written to me: I'm
working with him on a project where he has to develop the web
application and I'm working on a web service consumed by his web
application.

I had forwarded to him a message by Thiago that was trying to point out
differences between T5 and JSF.
The interesting thing he has to say is about facelets as a way to use
standard XHTML templates inside JSF.
Also the difficulty to use together different component sets is
interesting: reminds me of the issue with different JavaScript
components in T5.

But what really surprises me is the similarity he found between struts
and JSF


 Messaggio originale ----

Hi Ivano, 

We do indeed use JSF for our web development and more specifically we
use Icefaces which is a set of AJAX enabled components and AJAX push
framework which sits on top of JSF. We chose to use JSF because it
wasn't too dissimilar from Struts which we were using before. Generally
we find it very good although it does have some shortcomings but they
don't tend to get in the way too much. We are using JSF 1.2 but JSF 2.0
is now available and adds support for some of the things on your list
such as, you can now use annotations for lots of things you use to have
to use XML for, there is also the addition of page level scope as per
the tapestry idea. One point the tapestry guy is wrong about though is
that with JSF you don't have to use JSP, that is only one option. We use
facelets which is now part of the JSF 2.0 spec so if you use that you
code directly in XHTML using the relevant faces tags, thus the problems
that came from using JSP as a display layer disappear.

With JSF you get a choice of which component set you want to use, or I
believe you can use multiple but then configuration becomes more
challenging. We looked at a number including Richfaces and Woodstock and
decided that Icefaces offered the best set of components. All three of
those are open source though so are completely free to use, although
support is available too.

Unfortunately I don't know a great deal about tapestry so I can't really
say how it compares to JSF, I think you'd have to evaluate them both and
decide which one is easier for you to work with based on your previous
experience. 

Hope that helps,
Darren



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



Re: Tapestry Web Site Updated

2010-11-23 Thread Ivano Luberti


Il 23/11/2010 11.53, Blower, Andy ha scritto:
> 3) For long time developers it's useful to still have the older docs 
> available because we know those like the back of our hands and have a lot of 
> work to get done. Please don't make those disappear for a while.
>

+1


-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry Web Site Updated

2010-11-21 Thread Ivano Luberti
First observation: the tutorial would take anyone much more than 20 minutes.
I think that giving a wrong introductory information to people that meet
Tapestry for the first time it is not a good thing

Il 19/11/2010 22.15, Howard Lewis Ship ha scritto:
> We're still working out the kinks ... and I've been working hard on revising
> the tutorial ... but at long last, we're debuting the new Tapestry Web Site:
>
> http://tapestry.apache.org/
>
> Feedback is encouraged; just post to users@tapestry.apache.org with [SITE]
> in the subject.
>

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Memory creep

2010-11-03 Thread Ivano Luberti
and make sure you trap the exception that can be thrown

Il 03/11/2010 14.02, p.stavrini...@albourne.com ha scritto:
>>  can you give me some
>>> detail on how to go about that?
> Just invoke System.gc();
>
> regards,
> Peter
>
>
>
> - Original Message -
> From: "Thiago H. de Paula Figueiredo" 
> To: "Tapestry users" 
> Sent: Friday, 29 October, 2010 20:55:03 GMT +02:00 Athens, Beirut, Bucharest, 
> Istanbul
> Subject: Re: Memory creep
>
> On Fri, 29 Oct 2010 15:30:23 -0200, Josh Canfield   
> wrote:
>
>>> but your suggestion of forcing garbage collection - can you give me some
>>> detail on how to go about that?
>> http://download.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html
> VisualVM (https://visualvm.dev.java.net/) has a very nice GUI for it.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



[T4] session serialization

2010-10-18 Thread Ivano Luberti
 I'm considering options to persist sessions in a Tomcat instance
running on of my customers server.
Under that instance I have both JSP+Servlet web applications and T4 web
applications.
Is there something I should be aware about the way T4 handles sessions
that can be against a serialization process using Tomcat built in
mechanisms?



-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] Tapestry Frequently Asked Questions

2010-08-18 Thread Ivano Luberti
I disagree about the FAQ as the better documentation for OS projects.
Yes they are necessary, but user guides have to be the first step to get
to know a new system.
With user guide I mean a step by step guide that teaches to the newbie

1) how to setup environment and start developing simple things (hello
world and little more)

2) how to integrate common third party libraries (ORM, logging) or
products (Javascript libraries)

3) how to realize various type of applications with the framework (web
applications, web service, CRUD operations)

I think that 80% of development tasks are common to all web projects

FAQs are useful for common problems, not for common tasks.

Just my 2 cents


Il 18/08/2010 2.33, Howard ha scritto:
> I'm taking some time to work on the Tapestry documentation ... starting
> with the FAQ. It's great fun, though this could get to be quite large.
> I'm just spewing out content right now, over time we'll clean it up,
> reorganize it, and add further hyperlinks and annotations.
> In fact, as I'm working on the FAQ, I'm thinking this might be the best
> way to document open source projects in general. User's guides and
> reference documents are rarely read, everyone just Google's their
> question, so put those questions in their most findable format. Also,
> it's hard to write a consistent user guide start to finish ... but more
> reasonable to document one tidbit at a time.
> Also, I'm reminded of The Little Schemer, a book that teaches the
> entire Scheme language (a Lisp variant) via a series of questions of
> ever broadening scope.
> Feel free to suggest additional FAQ topics on the Tapestry Users
> mailing list.
>
> --
> Posted By Howard to Tapestry Central at 8/17/2010 05:33:00 PM
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: How do I set up logging with Tapestry 5 and Tomcat?

2010-04-15 Thread Ivano Luberti
But if I deploy on a server I cannot control how can I tune my logging?

Il 14/04/2010 23.06, Tim Koop ha scritto:
> To answer my own question, the answer is this:
>
> You need a log4j.properties file in $CATALINA_HOME/lib, as this page
> describes:
>
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>
> As soon as that file was there, my own log4j.properties in my classes
> folder started to be used.  Just a guess, but I guess that the missing
> file in Tomcat's directory caused an irrecoverable error with log4j (I
> did have a log4j error in the Tomcat startup script), so nothing else
> worked after that.
>
> But now it all works fine.
>
>
>
> Tim Koop
> t...@timkoop.com <mailto:t...@timkoop.com>
> www.timkoop.com <http://www.timkoop.com>
>
> On 14/04/2010 12:07 PM, Tim Koop wrote:
>> Hi everyone.  I've been using Tapestry 5 for a while.  I like it, but
>> I can't seem to get logging working.
>>
>> In my page java class I have this:
>>
>> @Inject
>> private Logger log;
>>
>> Object onSuccess() {
>> log.debug("Tim was here.");
>> return null;
>> }
>>
>> This compiles and runs.  I would like to see that message in a log
>> file somewhere, but I can't find it anywhere.  I've looked through
>> Tomcat's logs (catalina, hiost-manager, and manager), and I've looked
>> on the console that I started Tomcat from, but I can't find it.
>>
>> I'm not using the Maven setup.  Apparently it makes a
>> log4j.properties file somewhere.  I tried making one and I put it in
>> my WEB-INF/classes folder.  I also tried putting it in WEB-INF/.
>> Neither seemed to work.  The contents of my log4j.properties file is
>> this:
>>
>> log4j.rootLogger=DEBUG, R
>> log4j.appender.R=org.apache.log4j.RollingFileAppender
>> log4j.appender.R.File=C:\\work\\tomcat\\logs\\timslogfile.log
>> log4j.appender.R.MaxFileSize=10MB
>> log4j.appender.R.MaxBackupIndex=10
>> log4j.appender.R.layout=org.apache.log4j.PatternLayout
>> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>> log4j.logger.org.apache.catalina=ERROR, R
>>
>> Does anyone have any ideas?  I'm out of ideas.
>>
>> Thanks in advance.
>>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] In The Brain Of Howard Lewis Ship

2010-03-31 Thread Ivano Luberti
Don't ask me why , in  my copy of the message the link is broken:

>
> I did a talk last night on how we used tapestry for SeeSaw.com and if you
> are interested there is a video podcast at
> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
> the slides are at links.gidley.co.uk/tiafr

there is and attached to the link.thanks Howard

Il 31/03/2010 20.21, Howard Lewis Ship ha scritto:
> The link he sent worked for me.
>
> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-real
>
>
> On Wed, Mar 31, 2010 at 10:54 AM, Ivano Luberti  wrote:
>   
>> Well I just tried to use the link provided by Ben but it shows an empty
>> page on SkillsMatter
>>
>> Il 31/03/2010 19.49, Howard Lewis Ship ha scritto:
>> 
>>> SkillsMatter does tape these sessions and puts them put them up on
>>> their web site ... such as Ben Gidley's talk last week.
>>>
>>> On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti  
>>> wrote:
>>>
>>>   
>>>> Why you don't record it and let us see?
>>>>
>>>> Il 30/03/2010 19.38, Howard ha scritto:
>>>>
>>>> 
>>>>> While I'm in London for three days of Tapestry 5 Training, I'll also be
>>>>> giving an evening In The Brain Of talk ... on Tapestry, because there's
>>>>> not that much else rattling around my brain lately. Whereas Ben's talk
>>>>> was about lessons learned at the tail end of a Tapestry project, my
>>>>> talk gives you a point of reference on what Tapestry is all about, and
>>>>> why you want to start using it.
>>>>> Swing by, take in the talk, and come on out for a pint or two! The talk
>>>>> is Tuesday, April 13th at 18:30.
>>>>>
>>>>> --
>>>>> Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM
>>>>>
>>>>>
>>>>>   
>>>> --
>>>> ==
>>>> dott. Ivano Mario Luberti
>>>> Archimede Informatica societa' cooperativa a r. l.
>>>> Sede Operativa
>>>> Via Gereschi 36 - 56126- Pisa
>>>> tel.: +39-050- 580959
>>>> tel/fax: +39-050-9711344
>>>> web: www.archicoop.it
>>>> ==
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>>>>
>>>> 
>>>
>>>
>>>   
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] In The Brain Of Howard Lewis Ship

2010-03-31 Thread Ivano Luberti
Well I just tried to use the link provided by Ben but it shows an empty
page on SkillsMatter

Il 31/03/2010 19.49, Howard Lewis Ship ha scritto:
> SkillsMatter does tape these sessions and puts them put them up on
> their web site ... such as Ben Gidley's talk last week.
>
> On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti  wrote:
>   
>> Why you don't record it and let us see?
>>
>> Il 30/03/2010 19.38, Howard ha scritto:
>> 
>>> While I'm in London for three days of Tapestry 5 Training, I'll also be
>>> giving an evening In The Brain Of talk ... on Tapestry, because there's
>>> not that much else rattling around my brain lately. Whereas Ben's talk
>>> was about lessons learned at the tail end of a Tapestry project, my
>>> talk gives you a point of reference on what Tapestry is all about, and
>>> why you want to start using it.
>>> Swing by, take in the talk, and come on out for a pint or two! The talk
>>> is Tuesday, April 13th at 18:30.
>>>
>>> --
>>> Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM
>>>
>>>   
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry and SeeSaw talk

2010-03-31 Thread Ivano Luberti
Keep getting a permission denied message

Il 26/03/2010 17.03, Ben Gidley ha scritto:
> Hi,
>
> Skillsmatter have changed the permissions - so it may work better now or try
>  http://vimeo.com/10399058
> Ben Gidley
>
> www.gidley.co.uk
> b...@gidley.co.uk
>
>
> On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek <
> felix.gonscho...@gmail.com> wrote:
>
>   
>> hi ben,
>>
>> i am very interested in watching your podcast/video, but somehow this is
>> not possible. Instead of the video is see a "Sorry" message from vimeo,
>> saying that i am not allowed to watch your file. Do you have any access
>> restrictions activated?
>>
>> I would really apreciate to watch your talk.
>>
>> Thank you!
>>
>> Felix
>>
>> Am 24.03.2010 18:29, schrieb Ben Gidley:
>>
>>  Hi,
>> 
>>> I did a talk last night on how we used tapestry for SeeSaw.com and if you
>>> are interested there is a video podcast at
>>> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
>>> the slides are at links.gidley.co.uk/tiafr
>>>
>>> Ben Gidley
>>>
>>> www.gidley.co.uk
>>> b...@gidley.co.uk
>>>
>>>
>>>   
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] In The Brain Of Howard Lewis Ship

2010-03-31 Thread Ivano Luberti
Why you don't record it and let us see?

Il 30/03/2010 19.38, Howard ha scritto:
> While I'm in London for three days of Tapestry 5 Training, I'll also be
> giving an evening In The Brain Of talk ... on Tapestry, because there's
> not that much else rattling around my brain lately. Whereas Ben's talk
> was about lessons learned at the tail end of a Tapestry project, my
> talk gives you a point of reference on what Tapestry is all about, and
> why you want to start using it.
> Swing by, take in the talk, and come on out for a pint or two! The talk
> is Tuesday, April 13th at 18:30.
>
> --
> Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry and SeeSaw talk

2010-03-29 Thread Ivano Luberti
I get:

This is a private video. Do you have permission to watch this video? If
you do please first log in to Vimeo to watch this video.

Il 26/03/2010 17.03, Ben Gidley ha scritto:
> Hi,
>
> Skillsmatter have changed the permissions - so it may work better now or try
>  http://vimeo.com/10399058
> Ben Gidley
>
> www.gidley.co.uk
> b...@gidley.co.uk
>
>
> On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek <
> felix.gonscho...@gmail.com> wrote:
>
>   
>> hi ben,
>>
>> i am very interested in watching your podcast/video, but somehow this is
>> not possible. Instead of the video is see a "Sorry" message from vimeo,
>> saying that i am not allowed to watch your file. Do you have any access
>> restrictions activated?
>>
>> I would really apreciate to watch your talk.
>>
>> Thank you!
>>
>> Felix
>>
>> Am 24.03.2010 18:29, schrieb Ben Gidley:
>>
>>  Hi,
>> 
>>> I did a talk last night on how we used tapestry for SeeSaw.com and if you
>>> are interested there is a video podcast at
>>> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
>>> the slides are at links.gidley.co.uk/tiafr
>>>
>>> Ben Gidley
>>>
>>> www.gidley.co.uk
>>> b...@gidley.co.uk
>>>
>>>
>>>   
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Ivano Luberti
+1

Il 17/03/2010 18.13, Inge Solvoll ha scritto:
> Please send the link if/when there is a screencast! :)
>
> On Wed, Mar 17, 2010 at 5:42 PM, Ben Gidley  wrote:
>
>   
>> I believe they will be recording it - so you should be able to catch a
>> screen/pod cast.
>> Ben Gidley
>>
>> www.gidley.co.uk
>> b...@gidley.co.uk
>>
>>
>> On Wed, Mar 17, 2010 at 3:18 PM, Howard Lewis Ship 
>> wrote:
>>
>> 
>>> Will it be recorded?  I'd really like to see this, but I can't jump
>>> over to London for it !
>>>
>>> On Wed, Mar 17, 2010 at 2:11 AM, Ben Gidley  wrote:
>>>   
>>>> Hi,
>>>>
>>>> If you are interested I am doing at free talk at Skillsmatter in London
>>>> 
>>> next
>>>   
>>>> Tuesday (23rd March 2010) going through how we used tapestry on
>>>> 
>>> seesaw.com
>>>   
>>>> Details of the talk and directions are at
>>>> http://skillsmatter.com/event/java-jee/tapestry-5-in-action/zx-486
>>>>
>>>> Ben Gidley
>>>>
>>>> www.gidley.co.uk
>>>> b...@gidley.co.uk
>>>>
>>>> 
>>>
>>>
>>> --
>>> Howard M. Lewis Ship
>>>
>>> Creator of Apache Tapestry
>>>
>>> The source for Tapestry training, mentoring and support. Contact me to
>>> learn how I can get you up and productive in Tapestry fast!
>>>
>>> (971) 678-5210
>>> http://howardlewisship.com
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>   
>> 
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



OT: help for development on Windows Mobile

2010-03-09 Thread Ivano Luberti
Hello I'm developing a web intreface for Windows Mobile for an intranet
application.
It seems that buttons on web pages are not sensitive as buttons in forms
developed with windows native softwares.
It seems that user are always stuck to use the pen or nails insted of
the thumb.
But, for example, controls on the calculator application respond well to
the thumb or index touch.

Anyone hear can point me to some useful resource ?

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: Check this out

2010-02-25 Thread Ivano Luberti
Moreover is not the first time that an unknown member of the mailing
list (ie a member that has never written before on the list)  steps in
the mailing list pointing readers to some link where Tapestry is bashed
for some reason and then use this to start a flame or at least a boring
and pointless discussion.
I'm relatively new to Tapesty but when I have seen the post I just
thought : "Oh no, here we are again!"

Thiago H. de Paula Figueiredo ha scritto:
> On Thu, 25 Feb 2010 05:57:31 -0300, Banchi Liko 
> wrote:
>
>> Hi Guys,
>
> Hi again . . .
>
>> Bumped into this post at
>> http://www.theserverside.com/news/thread.tss?thread_id=59510#332651
>> and was wondering the validity of the poster's comments. Is this not
>> a bad press for Tapestry?
>
> It's not bad press because:
> * the post is not about Tapestry.
> * the poster doesn't say a word about Tapestry.
> * the only thing said about Tapestry was in the comments, written by
> some person that bashes Tapestry and says lies about it all the time
> at TheServerSide.
> * comments are not press, as far as I know.
>
> I guess these are the reasons Ulrich called you a troll. At least
> they're the one that makes me think you're a troll.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] Live reloading of Tapestry services?

2010-02-12 Thread Ivano Luberti
latin bad habits ? ;-)


Massimo Lusetti ha scritto:
> On Fri, Feb 12, 2010 at 10:46 AM, Ivano Luberti  wrote:
>
>   
>> Do you work in Italy like me?
>> It seems to me you made a remark typical of italian work environments.
>> 
>
> Sure I do, for almost all my day work...
>
>   
>> Not sure if this is true abroad.
>> 
>
> ... but have had few experiences with Spanish and French companies too
> that practice the same policy.
>
> Cheers
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] Live reloading of Tapestry services?

2010-02-12 Thread Ivano Luberti
Do you work in Italy like me?
It seems to me you made a remark typical of italian work environments.
Not sure if this is true abroad.

Massimo Lusetti ha scritto:
>
> Didn't want to come to a discussion on this point, I just want to be
> on the pragmatic side.
>
> In a lot of real situation the decision to write tests and do what a
> "good developer" should do when producing code is not demanded to the
> developer itself. This is true in a lot of realities (almost all) i
> worked with, so having a "tool" that let you be "agile" even when you
> cannot act like an "agile developer" is a big win for everyone.
>
> Cheers
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: T4 receiving calls from external web site

2010-02-09 Thread Ivano Luberti
Good to know!
I was misleaded by the first sentence in the warning at

http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html

and I didn't want to make all the configuration only to know that it
wouldn't work

Andreas Andreou ha scritto:
> just enable friendly url -
> then
> http://servername/appname?page=RispKo&service=page
> will become
> http://servername/RispKo.html
>
> So, if the PGS requests http://servername/RispKo.html?par1=value&par2=value
> you can get those values as normal (i.e. cycle.getParameter())
>
> On Tue, Feb 9, 2010 at 13:51, Ivano Luberti  wrote:
>   
>> Another issue about T4
>> The web site I'm developing must accept requests from an external web site.
>> It is a payment gateway system (PGS) to whom I redirect the user and
>> after payment has been (successfully or not) completed the pgs redirect
>> the user browser to an appropriate link of my web site.
>> When I configure the URLs in the backoffice of the PGS it accepts only
>> strings of the form:
>>
>> http://servername/appname/pagename
>>
>> I cannot put something like:
>>
>> http://servername/appname?page=RispKo&service=page
>>
>> as it woul be necessary, because must attach its own parameters to the
>> URL and doesn't accept the "?" in the URL
>>
>> I have seen two possibilities to work around this:
>>
>> Configuring Friendly URL in Tapestry 4: but for what I read from the
>> docs enabling friendly URLs disable ugly ones and the PGS will attach a
>> "?par1=value&par2=value" to the URL
>>
>> Deployng a servlet inside my application and provide its URL to the PGS.
>> But here comes the problem to render the appropriate page and this would
>> mean to access T4 infrastructure from the servlet and I don't have a
>> clue about how to do it : may I extend a servlet to be a base page ?
>> I guess I could use JSPs to render content but really I would like to
>> avoid that.
>>
>> Can someone point me to a viable alternative to the above solutions ?
>>
>>
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



T4 receiving calls from external web site

2010-02-09 Thread Ivano Luberti
Another issue about T4
The web site I'm developing must accept requests from an external web site.
It is a payment gateway system (PGS) to whom I redirect the user and
after payment has been (successfully or not) completed the pgs redirect
the user browser to an appropriate link of my web site.
When I configure the URLs in the backoffice of the PGS it accepts only
strings of the form:

http://servername/appname/pagename

I cannot put something like:

http://servername/appname?page=RispKo&service=page

as it woul be necessary, because must attach its own parameters to the
URL and doesn't accept the "?" in the URL

I have seen two possibilities to work around this:

Configuring Friendly URL in Tapestry 4: but for what I read from the
docs enabling friendly URLs disable ugly ones and the PGS will attach a
"?par1=value&par2=value" to the URL

Deployng a servlet inside my application and provide its URL to the PGS.
But here comes the problem to render the appropriate page and this would
mean to access T4 infrastructure from the servlet and I don't have a
clue about how to do it : may I extend a servlet to be a base page ?
I guess I could use JSPs to render content but really I would like to
avoid that.

Can someone point me to a viable alternative to the above solutions ?



-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
I know, but a was hoping for some kind of "forward to external web site"
mechanism.
It shouldn't be impossible to build something like that using HttpClient
or some similar package

Martin Strand ha scritto:
> This has nothing to do with Tapestry, it's how the HTTP protocol works.
> There's just no response you can send which tells the client to POST
> data to another URL. Instead you send a short program which performs
> the POST and hope your client executes that program - that's the
> script solution.
>
> On Sun, 07 Feb 2010 18:37:15 +0100, Ivano Luberti
>  wrote:
>
>> Yes I had already tought of a solution like taht but I was hoping for a
>> clean tapestry solution like the you suggested me with the link.
>> Thanks anyway.
>> Would instead be possible with T5?
>>
>> Martin Strand ha scritto:
>>> For POST requests, your initial idea is the way to go:
>>>
>>>>>>> Of course I can return to the new user a new page with a form that
>>>>>>> has
>>>>>>> an action that points to the web site, but it would be far
>>>>>>> better to
>>>>>>> have my page class.
>>>
>>>
>>> So you'll render a form (no need to use the Form component for this)
>>>
>>> http://www.example.com/"; id="myForm" method="post">
>>> 
>>> 
>>>
>>>
>>> If you want to submit the form automatically without having your user
>>> click anything, hide the form with CSS and use a script similar to
>>> this at the bottom of your page:
>>>
>>> ...
>>> ...
>>>  
>>>   document.getElementById("myForm").submit();
>>>  
>>> 
>>> 
>>>
>>>
>>>
>>>
>>> On Sat, 06 Feb 2010 19:30:21 +0100, Ivano Luberti
>>>  wrote:
>>>
>>>> Thanks Martin: it worked.
>>>> But what I could do in case I had to submit a form accepting only POST
>>>> method in the form?
>>>>
>>>> Ivano Luberti ha scritto:
>>>>> I will try that: for whatever reason I was convinced that I had to
>>>>> submit a form and not simply a link.
>>>>> But checking twice the docs of the web site I have to forward to,
>>>>> I see
>>>>> I can use a link.
>>>>> Thanks for now
>>>>>
>>>>>
>>>>> Martin Strand ha scritto:
>>>>>
>>>>>> If you just want to redirect the client to another URL, return an
>>>>>> ILink from your form listener:
>>>>>>
>>>>>> public ILink formSubmitListener()
>>>>>> {
>>>>>>   // Do work
>>>>>>   // ...
>>>>>>
>>>>>>   return new StaticLink("http://www.example.com/";);
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Martin
>>>>>>
>>>>>> On Wed, 03 Feb 2010 10:39:23 +0100, Ivano Luberti
>>>>>>  wrote:
>>>>>>
>>>>>>
>>>>>>> Hello, I'm trying to solve the following problem using T4.1.6.
>>>>>>> I want to have the user submit a form , perform some operation
>>>>>>> in the
>>>>>>> page class and then forward the user to an external web site.
>>>>>>> Of course I can return to the new user a new page with a form that
>>>>>>> has
>>>>>>> an action that points to the web site, but it would be far
>>>>>>> better to
>>>>>>> have my page class.
>>>>>>> I have tried using a service and HttpClient package but it
>>>>>>> return and
>>>>>>> HttpResponse and I'm not able to convert it to a WebResponse.
>>>>>>>
>>>>>>> Any suggestion?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
Yes I had already tought of a solution like taht but I was hoping for a
clean tapestry solution like the you suggested me with the link.
Thanks anyway.
Would instead be possible with T5?

Martin Strand ha scritto:
> For POST requests, your initial idea is the way to go:
>
>>>>> Of course I can return to the new user a new page with a form that
>>>>> has
>>>>> an action that points to the web site, but it would be far better to
>>>>> have my page class.
>
>
> So you'll render a form (no need to use the Form component for this)
>
> http://www.example.com/"; id="myForm" method="post">
> 
> 
>
>
> If you want to submit the form automatically without having your user
> click anything, hide the form with CSS and use a script similar to
> this at the bottom of your page:
>
> ...
> ...
>  
>   document.getElementById("myForm").submit();
>  
> 
> 
>
>
>
>
> On Sat, 06 Feb 2010 19:30:21 +0100, Ivano Luberti
>  wrote:
>
>> Thanks Martin: it worked.
>> But what I could do in case I had to submit a form accepting only POST
>> method in the form?
>>
>> Ivano Luberti ha scritto:
>>> I will try that: for whatever reason I was convinced that I had to
>>> submit a form and not simply a link.
>>> But checking twice the docs of the web site I have to forward to, I see
>>> I can use a link.
>>> Thanks for now
>>>
>>>
>>> Martin Strand ha scritto:
>>>
>>>> If you just want to redirect the client to another URL, return an
>>>> ILink from your form listener:
>>>>
>>>> public ILink formSubmitListener()
>>>> {
>>>>   // Do work
>>>>   // ...
>>>>
>>>>   return new StaticLink("http://www.example.com/";);
>>>> }
>>>>
>>>>
>>>> Martin
>>>>
>>>> On Wed, 03 Feb 2010 10:39:23 +0100, Ivano Luberti
>>>>  wrote:
>>>>
>>>>
>>>>> Hello, I'm trying to solve the following problem using T4.1.6.
>>>>> I want to have the user submit a form , perform some operation in the
>>>>> page class and then forward the user to an external web site.
>>>>> Of course I can return to the new user a new page with a form that
>>>>> has
>>>>> an action that points to the web site, but it would be far better to
>>>>> have my page class.
>>>>> I have tried using a service and HttpClient package but it return and
>>>>> HttpResponse and I'm not able to convert it to a WebResponse.
>>>>>
>>>>> Any suggestion?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



T4 (solution) : calling a page with an ILink

2010-02-06 Thread Ivano Luberti
Probably not many are interested because it is a T4  problem, but who knows?

Some days ago I have asked about how in T4 redirect the browser to an
external web site after submitting to a listener in a page.
Martin Strand provided me a solution using an ILink.

However that led me to another problem because in my pages I was
handling exceptions returning to a specific Error Page.

So I had a listener that had to return an ILink when all was working as
expected and and an IPage in case of message error to be displayed.

I have found a way to get the link to the page here:

http://wiki.apache.org/tapestry/EasyBrowserRedirection

and hence to redirect to my error page I have used this:

ILink
link=this.getRequestCycle().getEngine().getInfrastructure().getLinkFactory().constructLink(
TapestryRedirectException.getPageService(),false,
   
TapestryRedirectException.getLinkParams("MyPageClassName"),false);


  
Since I had to ad some parameters to the page I didn't return directly
the link but I build a new one and I returned that:

return new StaticLink(link.getURL()+"&par1=value1&par2=value2");

To read those parameters in the page java class I have added to the page
declaration the impementation of PageBeginRenderListener interface and
then I have implemented its pageBeginRender method as follows:

public void pageBeginRender(PageEvent event) {
   
   String parameter1= this.getRequestCycle().getParameter("par1"),
   String parameter2= this.getRequestCycle().getParameter("par2"),
  
}

Hope someone can find this helpful.

Thanks again to the list for all the help it provides.

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: T4: forward browser to an external web site

2010-02-06 Thread Ivano Luberti
Thanks Martin: it worked.
But what I could do in case I had to submit a form accepting only POST 
method in the form?

Ivano Luberti ha scritto:
> I will try that: for whatever reason I was convinced that I had to
> submit a form and not simply a link.
> But checking twice the docs of the web site I have to forward to, I see
> I can use a link.
> Thanks for now
>
>
> Martin Strand ha scritto:
>   
>> If you just want to redirect the client to another URL, return an
>> ILink from your form listener:
>>
>> public ILink formSubmitListener()
>> {
>>   // Do work
>>   // ...
>>
>>   return new StaticLink("http://www.example.com/";);
>> }
>>
>>
>> Martin
>>
>> On Wed, 03 Feb 2010 10:39:23 +0100, Ivano Luberti
>>  wrote:
>>
>> 
>>> Hello, I'm trying to solve the following problem using T4.1.6.
>>> I want to have the user submit a form , perform some operation in the
>>> page class and then forward the user to an external web site.
>>> Of course I can return to the new user a new page with a form that has
>>> an action that points to the web site, but it would be far better to
>>> have my page class.
>>> I have tried using a service and HttpClient package but it return and
>>> HttpResponse and I'm not able to convert it to a WebResponse.
>>>
>>> Any suggestion?
>>>   
>> -----
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: T4: forward browser to an external web site

2010-02-03 Thread Ivano Luberti
I will try that: for whatever reason I was convinced that I had to
submit a form and not simply a link.
But checking twice the docs of the web site I have to forward to, I see
I can use a link.
Thanks for now


Martin Strand ha scritto:
> If you just want to redirect the client to another URL, return an
> ILink from your form listener:
>
> public ILink formSubmitListener()
> {
>   // Do work
>   // ...
>
>   return new StaticLink("http://www.example.com/";);
> }
>
>
> Martin
>
> On Wed, 03 Feb 2010 10:39:23 +0100, Ivano Luberti
>  wrote:
>
>> Hello, I'm trying to solve the following problem using T4.1.6.
>> I want to have the user submit a form , perform some operation in the
>> page class and then forward the user to an external web site.
>> Of course I can return to the new user a new page with a form that has
>> an action that points to the web site, but it would be far better to
>> have my page class.
>> I have tried using a service and HttpClient package but it return and
>> HttpResponse and I'm not able to convert it to a WebResponse.
>>
>> Any suggestion?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



T4: forward browser to an external web site

2010-02-03 Thread Ivano Luberti
Hello, I'm trying to solve the following problem using T4.1.6.
I want to have the user submit a form , perform some operation in the
page class and then forward the user to an external web site.
Of course I can return to the new user a new page with a form that has
an action that points to the web site, but it would be far better to
have my page class.
I have tried using a service and HttpClient package but it return and
HttpResponse and I'm not able to convert it to a WebResponse.

Any suggestion?

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: New Tapestry Website - http://www.seesaw.com/

2010-01-29 Thread Ivano Luberti
6% is actually around the traffic generally seen on the web by IE6

http://www.w3schools.com/browsers/browsers_stats.asp

Ben Gidley ha scritto:
> Yes IE6 is a pain - it is only 6% of the traffic we are seeing (on the
> holding page) so we decided we could live without it.
>
> We choose tapestry for a whole range of reasons big ones were
> - Components - the side is heavily component based and we re-use elements
> across pages
> - AJAX - we use zones quite a lot and tapestry makes it really easy
> - Development behaviour - it is easy to develop - fewer application
> restarts
>
> I am going to go into more detail on the skillsmatter talk (shameless plug)
> - and will post the slides online afterwards..
>
> Ben Gidley
>
> www.gidley.co.uk
> b...@gidley.co.uk
>
>
> On Fri, Jan 29, 2010 at 12:06 PM, Peter Stavrinides <
> p.stavrini...@albourne.com> wrote:
>
>   
>> Hi Ben,
>>
>> What motivated you to use Tapestry? obviously this is a great choice of
>> course!
>>
>>
>> As a side note: IE 6 is a malware software developers dream come true, it
>> has to be the worst browser since Netscape 4, it has two critical flaws:
>> 1. A core design flaw in the zone-based security framework that is
>> "un-patchable", a vulnerability allowing remote execution via Active X, you
>> enable any active X control, then you are susceptible, and
>> 2. Incomplete Support for AJAX which requires active X enabled
>>
>> So its probably a wise decision to not support it.
>>
>> regards,
>> Peter
>>
>>
>> - Original Message -
>> From: "Ben Gidley" 
>> To: "Tapestry users" 
>> Sent: Friday, 29 January, 2010 13:41:13 GMT +02:00 Athens, Beirut,
>> Bucharest, Istanbul
>> Subject: Re: New Tapestry Website - http://www.seesaw.com/
>>
>> It is delibrate :)
>>
>> We don't support IE6. The beta login page is missing messaging telling you
>> this nicely, the main site does have it.
>>
>> Ben Gidley
>>
>> www.gidley.co.uk
>> b...@gidley.co.uk
>>
>>
>> On Fri, Jan 29, 2010 at 11:33 AM, Lance Java > 
>>> wrote:
>>>   
>>> Hi... just to give you a heads up... the css is not working as expected
>>>   
>> in
>> 
>>> IE6 (screenshot attached)
>>> Your response to this may well be "get a better browser" which I totally
>>> understand.
>>>
>>> Cheers,
>>> Lance.
>>> On 29 January 2010 10:18, Ben Gidley  wrote:
>>>
>>>   
>>>> Hi,
>>>>
>>>> We have just launched http://www.seesaw.com/ into beta this is a
>>>> 
>> Tapestry
>> 
>>>> 5
>>>> powered website providing a video on demand site (like iPlayer or Hulu)
>>>> 
>> in
>> 
>>>> the UK market.
>>>>
>>>> It is still in beta but if you sign up there is a good chance of being
>>>> invited soon.
>>>>
>>>> To help share this as a good Tapestry case study I will be producing
>>>> 
>> some
>> 
>>>> blog articles on key bits and doing a talk at Skillsmatter in London on
>>>> the
>>>> 23rd March -
>>>>
>>>> 
>> http://skillsmatter.com/event/java-jee/tapestry-5-in-action/zx-486sharing
>> 
>>>> our experiences with Tapestry.
>>>>
>>>> Thanks
>>>>
>>>> Ben Gidley
>>>>
>>>> www.gidley.co.uk
>>>> b...@gidley.co.uk
>>>>
>>>> 
>>>
>>> -
>>> 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
>>
>>
>> 
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: OT: windows mobile

2010-01-13 Thread Ivano Luberti
Thanks Robin: let say that your link helped me understanding IE Mobile
doesn't support much of Javascript.
Fortunately we are developing ofr an intranet and we can force users to
use Opera Mobile.


Robin Komiwes ha scritto:
> Hi!
>
> Maybe you cold have a look at : http://www.quirksmode.org/m/table.html
>
> On Tue, Jan 12, 2010 at 3:29 PM, Ivano Luberti  wrote:
>
>   
>> Hi, I have to develop a web application for Widnows Mobile 6.1
>> Anyone hear can point me to some documentation about how to configure
>> properly IE Mobile ?
>> It seems that Javascript is not enabled or at least that even most
>> trivial javascript don't run and I cannot find a way to tweak IE
>> configuration?
>> I have already spent half a day on Microsoft Web site : the worst ever !
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



OT: windows mobile

2010-01-12 Thread Ivano Luberti
Hi, I have to develop a web application for Widnows Mobile 6.1
Anyone hear can point me to some documentation about how to configure
properly IE Mobile ?
It seems that Javascript is not enabled or at least that even most
trivial javascript don't run and I cannot find a way to tweak IE
configuration?
I have already spent half a day on Microsoft Web site : the worst ever !

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [T416] Javascript and html templates questions

2010-01-04 Thread Ivano Luberti
Sorry the ml server has cut the attachments (I should have known)
Andreas, if you don't mind I can send you them to your personal address.

Ivano Luberti ha scritto:
> Andreas, thanks.  About my HTML template here it is (not sure what you
> mean with border).
> The homelogged user include a barCode component, that has its own html.
>
>
> Andreas Andreou ha scritto:
>   
>> Last, i'm not sure how you've managed to get 2  tags in the same
>> page! Perhaps if you can show a minimal example of your page + border
>> component we could help...
>>
>> On Mon, Jan 4, 2010 at 18:49, Ivano Luberti  wrote:
>>   
>> 
>>> Hi all.
>>>
>>> I'm trying to use javascript with Tapestry 4.1.6 and I'm stumbling at
>>> the very first steps.
>>>
>>> First of all I see that whenever a form component is specified in the
>>> template Tapestry put a script at the end of the generated html that set
>>> the focus on the first control of the form. If I try to put my specific
>>> function to give focus to a control of my choice, the automatically
>>> generated script is put as the last statement hence overruling my script.
>>>
>>> Secondly (I need a log introduction) I have used the example given in
>>>
>>> http://tapestry.apache.org/tapestry4.1/components/general/script.html
>>>
>>> to give focus to a control of my choice, but it fails: the problem is
>>> that when executed
>>>
>>> function setFocus() {
>>>  var inputField = document.barCodeForm_0.barCode;
>>>
>>>  if (inputField.type != "hidden") {
>>>  if (inputField.disabled != true) {
>>>  inputField.focus();
>>>  }
>>>  } else {
>>>  window.alert('InputFocus.script cannot set focus on a hidden field');
>>>  }
>>> }
>>>
>>> I debugged it using firebug and it seems then document.barCodeForm_0 is
>>> undefined.
>>> Actually looking at the generated html , barCodeForm_0 is there.
>>> But the html as a whole is a little weird. I attach it to the end of
>>> this message: the point is that html tag is closed and reopened several
>>> times.  I'm not enough javascript expert to understand if this is could
>>> cause my problem but looks anyeay bad to me.
>>> Here is my question: I had read that T416 templates have to be well
>>> formed HTML files but looking at the Tapestry Bench application I see
>>> that html templates don't include ,  and  tags.
>>> May I include them ?
>>>
>>> -generated html--
>>>
>>> 
>>> >> "http://www.w3.org/TR/html4/loose.dtd";>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Home Guide
>>> djConfig = 
>>> {"baseRelativePath":"/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2F","preventBackButtonFix":false,"parseWidgets":false,"locale":"it-it"}
>>>  
>>>
>>> >> src="/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js
>>>  
>>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js</a>>">>>  type="text/javascript" 
>>> src="/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js
>>>  
>>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js</a>>">
>>>
>>> 
>>> dojo.registerModulePath("tapestry", 
>>> "/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2F");
>>> 
>>> >> src="/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js
>>>  
>>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js">http://localhost:8081/

Re: [T416] Javascript and html templates questions

2010-01-04 Thread Ivano Luberti
Andreas, thanks.  About my HTML template here it is (not sure what you
mean with border).
The homelogged user include a barCode component, that has its own html.


Andreas Andreou ha scritto:
> Last, i'm not sure how you've managed to get 2  tags in the same
> page! Perhaps if you can show a minimal example of your page + border
> component we could help...
>
> On Mon, Jan 4, 2010 at 18:49, Ivano Luberti  wrote:
>   
>> Hi all.
>>
>> I'm trying to use javascript with Tapestry 4.1.6 and I'm stumbling at
>> the very first steps.
>>
>> First of all I see that whenever a form component is specified in the
>> template Tapestry put a script at the end of the generated html that set
>> the focus on the first control of the form. If I try to put my specific
>> function to give focus to a control of my choice, the automatically
>> generated script is put as the last statement hence overruling my script.
>>
>> Secondly (I need a log introduction) I have used the example given in
>>
>> http://tapestry.apache.org/tapestry4.1/components/general/script.html
>>
>> to give focus to a control of my choice, but it fails: the problem is
>> that when executed
>>
>> function setFocus() {
>>  var inputField = document.barCodeForm_0.barCode;
>>
>>  if (inputField.type != "hidden") {
>>  if (inputField.disabled != true) {
>>  inputField.focus();
>>  }
>>  } else {
>>  window.alert('InputFocus.script cannot set focus on a hidden field');
>>  }
>> }
>>
>> I debugged it using firebug and it seems then document.barCodeForm_0 is
>> undefined.
>> Actually looking at the generated html , barCodeForm_0 is there.
>> But the html as a whole is a little weird. I attach it to the end of
>> this message: the point is that html tag is closed and reopened several
>> times.  I'm not enough javascript expert to understand if this is could
>> cause my problem but looks anyeay bad to me.
>> Here is my question: I had read that T416 templates have to be well
>> formed HTML files but looking at the Tapestry Bench application I see
>> that html templates don't include ,  and  tags.
>> May I include them ?
>>
>> -generated html--
>>
>> 
>> > "http://www.w3.org/TR/html4/loose.dtd";>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Home Guide
>> djConfig = 
>> {"baseRelativePath":"/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2F","preventBackButtonFix":false,"parseWidgets":false,"locale":"it-it"}
>>  
>>
>> > src="/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js
>>  
>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js</a>>">>  type="text/javascript" 
>> src="/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js
>>  
>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js</a>>">
>>
>> 
>> dojo.registerModulePath("tapestry", 
>> "/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2F");
>> 
>> > src="/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js 
>> <view-source:<a  rel="nofollow" href="http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js</a>>">
>> 
>> dojo.require("tapestry.namespace");
>> tapestry.requestEncoding='UTF-8';
>> 
>> 
>> MET Online
>> 
>> http://localhost:8081/METGestioneIngressi/css/stile_palmare.css>"
>>  rel="stylesheet" type="text/css">
>> 
>> 
>>
>>
>> 
>> <!--
>> function setFocus() {
>>var inputField = document.barCodeForm_0.barCode;
>>
>>if (inputField.type != "hidden") {
>>if (inputField.disa

[T416] Javascript and html templates questions

2010-01-04 Thread Ivano Luberti
Hi all.

I'm trying to use javascript with Tapestry 4.1.6 and I'm stumbling at
the very first steps.

First of all I see that whenever a form component is specified in the
template Tapestry put a script at the end of the generated html that set
the focus on the first control of the form. If I try to put my specific
function to give focus to a control of my choice, the automatically
generated script is put as the last statement hence overruling my script.

Secondly (I need a log introduction) I have used the example given in

http://tapestry.apache.org/tapestry4.1/components/general/script.html

to give focus to a control of my choice, but it fails: the problem is
that when executed

function setFocus() {
  var inputField = document.barCodeForm_0.barCode;

  if (inputField.type != "hidden") {
  if (inputField.disabled != true) {
  inputField.focus();
  }
  } else {
 window.alert('InputFocus.script cannot set focus on a hidden field');
  }
}

I debugged it using firebug and it seems then document.barCodeForm_0 is
undefined.
Actually looking at the generated html , barCodeForm_0 is there.
But the html as a whole is a little weird. I attach it to the end of
this message: the point is that html tag is closed and reopened several
times.  I'm not enough javascript expert to understand if this is could
cause my problem but looks anyeay bad to me.
Here is my question: I had read that T416 templates have to be well
formed HTML files but looking at the Tapestry Bench application I see
that html templates don't include ,  and  tags.
May I include them ?

-generated html--


http://www.w3.org/TR/html4/loose.dtd";>







Home Guide
djConfig = 
{"baseRelativePath":"/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2F","preventBackButtonFix":false,"parseWidgets":false,"locale":"it-it"}
 

http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js</a>>">http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo2.js</a>>">


dojo.registerModulePath("tapestry", 
"/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2F");

http://localhost:8081/METGestioneIngressi/app?service=asset&path=%2Ftapestry-4.1.6%2Fcore.js</a>>">

dojo.require("tapestry.namespace");
tapestry.requestEncoding='UTF-8';


MET Online

http://localhost:8081/METGestioneIngressi/css/stile_palmare.css>" 
rel="stylesheet" type="text/css">





<!--
function setFocus() {
var inputField = document.barCodeForm_0.barCode;

if (inputField.type != "hidden") {
if (inputField.disabled != true) {
inputField.focus();
}
} else {
 window.alert('InputFocus.script cannot set focus on a hidden field');
}
}
// -->


Battistero 

  

MET Online

http://localhost:8081/METGestioneIngressi/css/stile_palmare.css>" 
rel="stylesheet" type="text/css">



 
Lettura BarCode


passare il barcode sotto il lettore ottico















 

  


 
 





 http://localhost:8081/METGestioneIngressi/app?component=menu.linklogout&page=HomeLoggedUser&service=direct&session=T>">LogOut 
   
  







<!--
tapestry.addOnLoad(function(e) {
dojo.require("tapestry.form");tapestry.form.registerForm("barCodeForm_0");
setFocus();

tapestry.form.focusField('barCode');});
// -->








-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Correction: putting the @Script solved the null pointer but the
generated javascript was incorrect.
I had to put it before the end of the Form.
You were right Andreas

Ivano Luberti ha scritto:
> I have wrote the solution I have found before reading this.
> Actually It was enough to put it after the form.
> The null component was the text field component not the Form.
> You almost got it because sure the position of @Script matters.
>
> It seems that getForm returns something even if the form has already
> been rendered.
>
> Andreas Andreou ha scritto:
>   
>> You don't specify which object you've found to be null... but anyway, let
>> me try...
>>
>> looking at the FormFocus.script code from
>> http://tapestry.apache.org/tapestry4.1/components/general/script.html
>> i see ${component.form.name} and ${component.name}, so either
>> component or component.form is null (according to the error message)
>>
>> Looking at the javadocs for AbstractFormComponent
>> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/AbstractFormComponent.html
>> I read
>> getForm() : returns the IForm which contains the component, or null if
>> the component is
>> not contained by a form, or if the containing Form is not currently 
>> rendering.
>>
>> Finally, looking at your code I see that @Script is outside the @Form,
>> so according
>> to the javadocs, getForm() should indeed return null !
>>
>> The cure? move the @Script inside @Form - or rewrite the script so that it
>> doesn't use getForm() perhaps...
>>
>> On Wed, Dec 30, 2009 at 23:35, Ivano Luberti  wrote:
>>   
>> 
>>> Thanks Andreas , the problem is that everything works until I insert the
>>> javascript.
>>> In fact the exception is thrown inside the Script implementation. Down
>>> here you'll find the init part of the srtack trace.
>>> I was wondering if not using the @Body in the component html template is
>>> correct, given the fact that it is used in the html template of the page
>>> that call the component.
>>>
>>>
>>>
>>>
>>>* ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2203)
>>>* ognl.ASTProperty.getValueBody(ASTProperty.java:114)
>>>* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
>>>* ognl.SimpleNode.getValue(SimpleNode.java:258)
>>>* ognl.ASTChain.getValueBody(ASTChain.java:141)
>>>* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
>>>* ognl.SimpleNode.getValue(SimpleNode.java:258)
>>>* ognl.Ognl.getValue(Ognl.java:494)
>>>* ognl.Ognl.getValue(Ognl.java:458)
>>>* 
>>> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:123)
>>>
>>>* 
>>> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:112)
>>>
>>>* 
>>> $ExpressionEvaluator_125e178e557.read($ExpressionEvaluator_125e178e557.java)
>>>
>>>* 
>>> org.apache.tapestry.script.ScriptSessionImpl.evaluate(ScriptSessionImpl.java:86)
>>>
>>>* 
>>> org.apache.tapestry.script.AbstractToken.evaluate(AbstractToken.java:84)
>>>
>>>* org.apache.tapestry.script.InsertToken.write(InsertToken.java:48)
>>>* 
>>> org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)
>>>
>>>* org.apache.tapestry.script.LetToken.write(LetToken.java:53)
>>>* 
>>> org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)
>>>
>>>* org.apache.tapestry.script.ParsedScript.execute(ParsedScript.java:82)
>>>* org.apache.tapestry.html.Script.renderComponent(Script.java:159)
>>>* 
>>> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
>>>
>>>* 
>>> org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)
>>>
>>>* 
>>> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
>>>
>>>* 
>>> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
>>>
>>>* 
>>> org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)
>>>
>>>* 
>>> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:538)
>>>
>>>* org.apache.tapestry.html.Body.renderComponent(Body.java:38)
>

Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
I have wrote the solution I have found before reading this.
Actually It was enough to put it after the form.
The null component was the text field component not the Form.
You almost got it because sure the position of @Script matters.

It seems that getForm returns something even if the form has already
been rendered.

Andreas Andreou ha scritto:
> You don't specify which object you've found to be null... but anyway, let
> me try...
>
> looking at the FormFocus.script code from
> http://tapestry.apache.org/tapestry4.1/components/general/script.html
> i see ${component.form.name} and ${component.name}, so either
> component or component.form is null (according to the error message)
>
> Looking at the javadocs for AbstractFormComponent
> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/AbstractFormComponent.html
> I read
> getForm() : returns the IForm which contains the component, or null if
> the component is
> not contained by a form, or if the containing Form is not currently rendering.
>
> Finally, looking at your code I see that @Script is outside the @Form,
> so according
> to the javadocs, getForm() should indeed return null !
>
> The cure? move the @Script inside @Form - or rewrite the script so that it
> doesn't use getForm() perhaps...
>
> On Wed, Dec 30, 2009 at 23:35, Ivano Luberti  wrote:
>   
>> Thanks Andreas , the problem is that everything works until I insert the
>> javascript.
>> In fact the exception is thrown inside the Script implementation. Down
>> here you'll find the init part of the srtack trace.
>> I was wondering if not using the @Body in the component html template is
>> correct, given the fact that it is used in the html template of the page
>> that call the component.
>>
>>
>>
>>
>>* ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2203)
>>* ognl.ASTProperty.getValueBody(ASTProperty.java:114)
>>* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
>>* ognl.SimpleNode.getValue(SimpleNode.java:258)
>>* ognl.ASTChain.getValueBody(ASTChain.java:141)
>>* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
>>* ognl.SimpleNode.getValue(SimpleNode.java:258)
>>* ognl.Ognl.getValue(Ognl.java:494)
>>* ognl.Ognl.getValue(Ognl.java:458)
>>* 
>> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:123)
>>
>>* 
>> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:112)
>>
>>* 
>> $ExpressionEvaluator_125e178e557.read($ExpressionEvaluator_125e178e557.java)
>>
>>* 
>> org.apache.tapestry.script.ScriptSessionImpl.evaluate(ScriptSessionImpl.java:86)
>>
>>* org.apache.tapestry.script.AbstractToken.evaluate(AbstractToken.java:84)
>>
>>* org.apache.tapestry.script.InsertToken.write(InsertToken.java:48)
>>* 
>> org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)
>>
>>* org.apache.tapestry.script.LetToken.write(LetToken.java:53)
>>* 
>> org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)
>>
>>* org.apache.tapestry.script.ParsedScript.execute(ParsedScript.java:82)
>>* org.apache.tapestry.html.Script.renderComponent(Script.java:159)
>>* org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
>>
>>* 
>> org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)
>>
>>* 
>> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
>>
>>* org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
>>
>>* 
>> org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)
>>
>>* 
>> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:538)
>>
>>* org.apache.tapestry.html.Body.renderComponent(Body.java:38)
>>
>>
>> Andreas Andreou ha scritto:
>> 
>>> Hi,
>>> The error message says that something.getName() is trying to get evaluated 
>>> but
>>> something is null
>>>
>>> Finding where exactly the error is thrown will show you which object is 
>>> null...
>>>
>>> On Wed, Dec 30, 2009 at 20:51, Ivano Luberti  wrote:
>>>
>>>   
>>>> Hello, I'm trying to include some simple javascript in a component in my
>>>> T4 application.
>>>

T4: including javascript in a component (solved)

2009-12-30 Thread Ivano Luberti
Actually the error was in the html template of the component:
The @Script refers to the text field component barCode but it is written
before the the component itself. Hence when the file is parsed the the
text field component doesn't exist yet.
I have put the Scrtp declaration after the  tag and it works.




MET Online




 


Lettura BarCode

  passare il barcode sotto il lettore ottico

  
  

  
   







-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==



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



Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Thanks Andreas , the problem is that everything works until I insert the
javascript.
In fact the exception is thrown inside the Script implementation. Down
here you'll find the init part of the srtack trace.
I was wondering if not using the @Body in the component html template is
correct, given the fact that it is used in the html template of the page
that call the component.




* ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2203)
* ognl.ASTProperty.getValueBody(ASTProperty.java:114)
* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
* ognl.SimpleNode.getValue(SimpleNode.java:258)
* ognl.ASTChain.getValueBody(ASTChain.java:141)
* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
* ognl.SimpleNode.getValue(SimpleNode.java:258)
* ognl.Ognl.getValue(Ognl.java:494)
* ognl.Ognl.getValue(Ognl.java:458)
* 
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:123)

* 
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:112)

* 
$ExpressionEvaluator_125e178e557.read($ExpressionEvaluator_125e178e557.java)

* 
org.apache.tapestry.script.ScriptSessionImpl.evaluate(ScriptSessionImpl.java:86)

* org.apache.tapestry.script.AbstractToken.evaluate(AbstractToken.java:84)

* org.apache.tapestry.script.InsertToken.write(InsertToken.java:48)
* 
org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)

* org.apache.tapestry.script.LetToken.write(LetToken.java:53)
* 
org.apache.tapestry.script.AbstractToken.writeChildren(AbstractToken.java:71)

* org.apache.tapestry.script.ParsedScript.execute(ParsedScript.java:82)
* org.apache.tapestry.html.Script.renderComponent(Script.java:159)
* org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)

* 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)

* org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)

* org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)

* 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:187)

* 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:538)

* org.apache.tapestry.html.Body.renderComponent(Body.java:38)


Andreas Andreou ha scritto:
> Hi,
> The error message says that something.getName() is trying to get evaluated but
> something is null
>
> Finding where exactly the error is thrown will show you which object is 
> null...
>
> On Wed, Dec 30, 2009 at 20:51, Ivano Luberti  wrote:
>   
>> Hello, I'm trying to include some simple javascript in a component in my
>> T4 application.
>> I want my only textfield to  get focus when is displayed.
>> I'm following the instructions provided at:
>>
>> http://tapestry.apache.org/tapestry4.1/components/general/script.html
>>
>> The template of the page including the component has @Shell and @Body
>> specified.
>> My component looks like this:
>>
>> 
>> 
>> MET Online
>> 
>> 
>> 
>> 
>>  > script="/it/archimede/met/metgestioneingressi/tapestry/scripts/FormFocus.script"
>> component="ognl:components.barCode"/>
>>
>>
>>Lettura BarCode
>>
>>  passare il barcode sotto il lettore ottico
>>
>>  
>>  
>>
>>  
>>   
>>
>> 
>> 
>>
>> The Script template file is the last one provides at:
>>
>> http://tapestry.apache.org/tapestry4.1/components/general/script.html
>>
>> the one without CDATA
>>
>> When I try to display the page I get:
>>
>> [ +/- ] Exception: Unable to read OGNL expression '> expression>' of
>> {component=$textfield_...@81eb97c1[homeloggeduser/barCodeForm.barCode]}:
>> source is null for getProperty(null, "name")
>>
>> I have already tried putting a bad component name in the @Script span
>> and the error changes, so it seem the name is right. I have put a bad
>> path to the script file and the error changes , then the path is correct.
>>
>> Can someone point me in the right direction?
>>
>>
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> 

T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Hello, I'm trying to include some simple javascript in a component in my
T4 application.
I want my only textfield to  get focus when is displayed.
I'm following the instructions provided at:

http://tapestry.apache.org/tapestry4.1/components/general/script.html

The template of the page including the component has @Shell and @Body
specified.
My component looks like this:



MET Online




 


Lettura BarCode   

  passare il barcode sotto il lettore ottico

  
  

  
  
   



The Script template file is the last one provides at:

http://tapestry.apache.org/tapestry4.1/components/general/script.html

the one without CDATA

When I try to display the page I get:

[ +/- ] Exception: Unable to read OGNL expression '' of
{component=$textfield_...@81eb97c1[homeloggeduser/barCodeForm.barCode]}:
source is null for getProperty(null, "name")

I have already tried putting a bad component name in the @Script span
and the error changes, so it seem the name is right. I have put a bad
path to the script file and the error changes , then the path is correct.

Can someone point me in the right direction?



-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: About T5 integration modules

2009-12-24 Thread Ivano Luberti
Thiago, every time I see your solutions and the easyness with which you
find them I wonder how you have learned to use Tapestry.
Do you are involved in design and development of  Tapestry core  ? Are
you a committer that hase learned by using it?
Knowing that could really show the way to others , wouldn't it ?

Thiago H. de Paula Figueiredo ha scritto:
> Em Thu, 24 Dec 2009 07:40:09 -0200, Gerald Bauer 
> escreveu:
>
>> I agree with you but I don't think that is the issue here. The
>> question was how come with Frameworks such as Wicket there is an
>> explosion of integrationmodules written and well documented whereas
>> in Tapestry there is only a
>> handful. Is this because Tapestry is too complex for achieving such
>> goals?
>
> No. Some years ago, when Tapestry was still in its 5.0.5 version
> (pre-pre-pre-alpha), I wrote a very simple Hibernate integration
> package in Tapestry-IoC, including automatic transaction management. I
> was a complete T-IoC newbie then. I wrote it in 8 hours, most of them
> dealing with the transaction management itself, not with T-IoC.
>
> Summary of the reasons Tapestry and Tapestry-IoC don't have the same
> number of integrations as Wicket, as discussed recently in
> http://old.nabble.com/Discussion-to26889452s302.html:
>
> 1) Someone has to write them. Time is needed for this.
>
> 2) Wicket is way older (4.5 years vs 1.5 years), so the Wicket people
> had 3x more time to write them than the Tapestry people.
>
> 3) More people use Wicket than Tapestry (I don't have any figures), so
> the total amount of time for writing integrations is larger.
>
> Sometimes, technology-related issues have non-technology causes. And
> sometimes the best option is not the mostly used. Example: Struts
> until some time ago, JSF now.
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



web site showing chart on web frameworks usage

2009-11-19 Thread Ivano Luberti
Someone posted in the past a web site with charts showing how much some
web frameworks are used around the world.
Can someone help me finding that link (maybe more than one link)

TIA

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-11-12 Thread Ivano Luberti
+1
If you need something signed with blood, drop me a copy of the document :-D


Igor Drobiazko ha scritto:
> Good news. My publisher made the first step towards the translation. They
> contacted several publishers outside Germany to find one that is interested
> in translation. If some of them is interested then we will have the english
> version of the book.
>
> If you want to help me to make the translation possible make some noise
> here. The more comments here the more likely we will have a translation.
> I'll keep you informed about the progress.
>
> On Wed, Sep 16, 2009 at 7:28 PM, Igor Drobiazko 
> wrote:
>
>   
>> Hello folks,
>>
>> I am pleased to announce a new Tapestry 5 book. The book is written in
>> German and is available as eBook on publisher's website:
>>
>>
>> http://www.addison-wesley.de/main/main.asp?page=home/bookdetails&ProductID=174975
>>
>>
>> The hardcover version of the book will be available starting from Sep 28
>> 2009.
>> I'll make another announcement when the hardcover version is released.
>>
>> Among other things the book covers :
>>* Getting Started with Tapestry 5
>>* Concepts of the framework
>>* Localization/internationalization
>>* Creating Forms
>>* Generation of user interfaces for JavaBeans
>>* Writing own components and mixins
>>* Ajax
>>* Writing tests for Tapestry applications
>>* Hibernate and Spring integration
>>* Dependency Injection and Tapestry IoC
>>* AOP and bytecode manipuation
>>
>> Special thanks go to Howard and Ulrich Stärk. Howard gave me some hints on
>> how to write a better book and wrote a foreword.
>> Ulrich was responsible for the technical review of the book and helped me
>> to improve the quality.
>>
>> Enjoy
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>>
>> 
>
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
I get 404 error

Ulrich Stärk ha scritto:
> select the tapestry module first.
>
> Am 10.11.2009 15:54 schrieb Ivano Luberti:
>> Massimo, I think I have already wrote this: I cannot find from the home
>> page a link to code examples. I know there is one...
>>
>> Massimo Lusetti ha scritto:
>>> Hi everyone,
>>>   sorry for the off topic but as the ChenilleKit team we still receive
>>> issue from JIRA at Formos and and someone still post to google group.
>>>
>>> This is a reminder for people using these old channel to update their
>>> own bookmark since ChenilleKit has a new home at
>>> http://chenillekit.codehaus.org with issue tracking and mailing list
>>> support.
>>>
>>> Any other form of communication is not supported anymore. Thanks.
>>>
>>> Cheers
>>>   
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
Massimo, I think I have already wrote this: I cannot find from the home
page a link to code examples. I know there is one...

Massimo Lusetti ha scritto:
> Hi everyone,
>   sorry for the off topic but as the ChenilleKit team we still receive
> issue from JIRA at Formos and and someone still post to google group.
>
> This is a reminder for people using these old channel to update their
> own bookmark since ChenilleKit has a new home at
> http://chenillekit.codehaus.org with issue tracking and mailing list
> support.
>
> Any other form of communication is not supported anymore. Thanks.
>
> Cheers
>   

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [Tapestry Central] Next Steps for Tapestry

2009-11-08 Thread Ivano Luberti
Howard, why don't collaborate with Igor to have the book in Engllish?
Instead of starting a new project for it you can try to have Igor book
as a starting point or even better a final point and only have to
translate a commonly reviewed version and publish it together .

I understand you want to have T5 up to date against the competition but
really the book is mandatory if you want to have people to use it
consciously and having it only in German means to exclude the great
majority of the web developers.

If you go ahead with it I could help in reviewing it and I also suggest
you try to use some list members as an help, like it was made for the
web site.





cuartz ha scritto:
> I think both are necessary to make tapestry more popular, but i think would
> be better if you work on code, tapestry is already known by a lot of people,
> i’m a 24 years old Mexican and in my 3 years of experience i already have
> been part of 2 tapestry 5 big projects, the first last 10 months and i’m
> working on the second project 3 months ago, and today when there is a
> discussion of which framework to use at the start of a project, tapestry 5
> is consider, so now there is a matter of which framework is better, i know
> this from myself and from the developers i know. 
> Also the book can be written by other people but you are the only one who
> can work in the code.
> i think that any improvement you maid (faster requests or richer web apps)
> is going to be great and i can’t wait to see it.
> cheers and sorry for my bad english.
>
>
> -
> Carlos Araham U. Bayona Smythe.
>   

-- 
======
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: AjaxFormLoop and Update/SubmitRow

2009-10-23 Thread Ivano Luberti
Hey ChenilleKit guys !
Am I blind or the demo link don't appear show up on the project home page ?


cordenier christophe ha scritto:
> Hello
>
> I don't know if it fully answers to your needs, but have a look at this :
> http://www.chenillekit.org/demo/tapcomp/inplacedemo
>
> Christophe.
>
> 2009/10/23 alarmatwork 
>
>   
>> Hi,
>>
>> AddRow and RemoveRow are nice features of AjaxFormLoop, but I would rather
>> use UpdateRow or SubmitRow functionality.
>>
>> I would like to have option to change and save some records and submit them
>> to server (without submitting the whole form) and also get server-processed
>> record back to its position - this would be extremly handy when you want to
>> have inline editor functionality in long list of complicated records.
>>
>> If there is such a option already available, then I would appreciate if
>> someone could point out directions :)
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxFormLoop-and-Update-SubmitRow-tp26020976p26020976.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



  1   2   >