Re: Update from 5.4-beta-6 to beta-22 - IOUtils ClassNotFound

2014-09-24 Thread Muhammad Gelbana
I'm not sure but it looks like an internal Class for Tapestry's use. You shouldn't use Tapestry's "internal" classes. However you can use Apache's commons IO utils instead. Hopefully you'll get the same functionality you were using. commons-io commons-io 2.4 ​ *-* *Muhammad G

Update from 5.4-beta-6 to beta-22 - IOUtils ClassNotFound

2014-09-24 Thread Chris Mylonas
Hi T54Beta People, As subject says, updated my pom got an error on deployment. Changing back to beta-6, error goes away. Google and some 54 release notes don't mention IOUtils or commons that I've found. mvn clean install Deploy to glassfish 3.1.2.2 On trying to load a page, getting this

[T5] How can I validate if a script is present ?

2014-09-24 Thread Carlos Gómez Montiel
Hi ¡ How can I validate from a component if a script is inside tag of a container page? Thanks in advance.

RE: How can I add a component inside another component without template in T5?

2014-09-24 Thread Carlos Gómez Montiel
it only was a existencial question ;) Thank you for your answer Thiago -Mensaje original- De: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Enviado el: miércoles, 24 de septiembre de 2014 06:07 p.m. Para: Tapestry users Asunto: Re: How can I add a component inside another compo

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Kalle Korhonen
On Wed, Sep 24, 2014 at 9:34 AM, Chris Mylonas wrote: > >> In 5.4, you can contribute to the default error page and map exception >> types to specific error pages ( >> http://tapestry.apache.org/5.4/apidocs/org/apache/ >> tapestry5/internal/services/DefaultRequestExceptionHandler.html >> - that r

Re: How can I add a component inside another component without template in T5?

2014-09-24 Thread Thiago H de Paula Figueiredo
On Wed, 24 Sep 2014 19:35:44 -0300, Carlos Gómez Montiel wrote: I have a component without template, how can I add another component (render) inside it? You cannot. Component instances need to be declared inside a template. Tapestry templates are strictly static in structure, even having

How can I add a component inside another component without template in T5?

2014-09-24 Thread Carlos Gómez Montiel
I have a component without template, how can I add another component (render) inside it? public class Component1 { void beginRender(MarkupWriter writer) { // How can I render for example a tapestry's textfield component inside this component without have a template? }

Re: Getting BeanDisplay to skip empty fields altogether

2014-09-24 Thread Thiago H de Paula Figueiredo
On Wed, 24 Sep 2014 13:37:11 -0300, Daniel Jue wrote: Your code works as is, but I still stuck it in a custom MeaningfulBeanDisplay component in it's setupRender method, because I don't want to write this logic for every model for every POJO. Sometimes I'll have 5-10 of these POJOs on one

Re: Tapestry Framework Possibilties

2014-09-24 Thread akshay
Hi Chris, Thanks for your reply. I actually had a look into these few days back. The above solutions are more apt for tapestry 5.3. Since tapestry 5,4 now offers a less compiling chain by default, it would really be a tough time implementing the given solution. I am rather looking for a solutio

Re: Getting BeanDisplay to skip empty fields altogether

2014-09-24 Thread Daniel Jue
Thiago, that was perfect! I had in-fact gone down the reflection route and was getting into trouble since the propertyNames aren't really the method or field names. I forgot about using conduits manually that way! Your code works as is, but I still stuck it in a custom MeaningfulBeanDisplay com

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
You should update to 5.4-beta-22 my beta-6 is like a year of betas behind! thanks - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
In 5.4, you can contribute to the default error page and map exception types to specific error pages ( http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/internal/services/DefaultRequestExceptionHandler.html - that reminds me, I should add information about that to the user guide as w

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Kalle Korhonen
On Wed, Sep 24, 2014 at 8:49 AM, Chris Mylonas wrote: > Hi Kalle, > >> In 5.4, you can contribute to the default error page and map exception >> types to specific error pages ( >> http://tapestry.apache.org/5.4/apidocs/org/apache/ >> tapestry5/internal/services/DefaultRequestExceptionHandler.html

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
Hi Kalle, In 5.4, you can contribute to the default error page and map exception types to specific error pages ( http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/internal/services/DefaultRequestExceptionHandler.html - that reminds me, I should add information about that to the user gu

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Kalle Korhonen
On Wed, Sep 24, 2014 at 5:30 AM, Chris Mylonas wrote: > > The SliderSectionServiceImpl throws higher up the stack - can this pass >>> the exception up to setupRender? I thought "throws SystemException" would >>> have been enough? >>> >> >> What about having your code handling the exceptions its

Re: Getting BeanDisplay to skip empty fields altogether

2014-09-24 Thread Thiago H de Paula Figueiredo
On Wed, 24 Sep 2014 10:59:50 -0300, Chris Mylonas wrote: Hi Daniel, Hi, guys! Disclaimer: I don't pretend to know anything about BeanModels, BeanModelSources and Grids.however I know a thing or two about them. :) Sounds like a bit of reflection to get field names on your POJOs an

Re: Getting BeanDisplay to skip empty fields altogether

2014-09-24 Thread Chris Mylonas
Hi Daniel, Disclaimer: I don't pretend to know anything about BeanModels, BeanModelSources and Grids.however Sounds like a bit of reflection to get field names on your POJOs and BeanModel.exclude().exclude().exclude().exclude() or a bit of recursion til the end of an arraylist of

Re: Problem in using Bootstrap Modal component

2014-09-24 Thread George Christman
If your modal component is set to show on load, you can just wrap the modal component with a zone. On Tue, Sep 23, 2014 at 3:46 PM, Eugen wrote: > Hi, > put in Your modal-body, around the image, a zone and attach js function to > the 'show.bs.modal' event of modal. In the function refesh the zon

Re: Getting BeanDisplay to skip empty fields altogether

2014-09-24 Thread Daniel Jue
Thanks Lance, I think on the surface my problem seems like the one you gave the answer for, but in my case it's different. I don't know which fields I'll need to exclude until I know whether the value is null or empty-string for the instance of the bean. For example, one of my classes is a POJO g

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
The SliderSectionServiceImpl throws higher up the stack - can this pass the exception up to setupRender? I thought "throws SystemException" would have been enough? What about having your code handling the exceptions itself, when it calls the EJB methods that can throw exceptions? Han

Re: Tapestry Framework Possibilties

2014-09-24 Thread Chris Mylonas
I reckon you may want to look in this direction https://github.com/lltyk/tapestry-wro4j https://github.com/cezary-biernacki/t5conduit I think I recall some bright sparks talking about it on the list in the last 2 years. The man himself even makes a suggestion http://apache-tapestry-mailing

Tapestry Framework Possibilties

2014-09-24 Thread akshay
Hi, I would like to know the possibility of the below given approaches(a,b,c), which I am trying to add in the tapestry framework: prerequisite: - "app.less" in my context path (used in my page layout class with ${context:app.less}) Is it possible to have an app.less file a) which can @impor

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Thiago H de Paula Figueiredo
On Wed, 24 Sep 2014 05:57:05 -0300, Chris Mylonas wrote: Here's the log, sorry for omission - long day. The SliderSectionServiceImpl throws higher up the stack - can this pass the exception up to setupRender? I thought "throws SystemException" would have been enough? What about having

Re: Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
Here's the log, sorry for omission - long day. The SliderSectionServiceImpl throws higher up the stack - can this pass the exception up to setupRender? I thought "throws SystemException" would have been enough? Chris [#|2014-09-24T17:12:32.253+1000|WARNING|glassfish3.1.2|javax.enterpris

Component exception wanted! No data, fail gracefully.

2014-09-24 Thread Chris Mylonas
Hi Tapestry Users, Short version: Can a component use @InjectPage to redirect in case there is a problem during the render phase? Unabridged version: I have a my business layers running EJB. Layout of project is like jumpstart for EJB stuff. Works great. EJB can't find any values in the d