Re: Maven repository for tapestry-javaforge

2011-04-08 Thread Adrian Cumiskey
Also another consideration is that this project will need to be a Java 1.4 solution (using xml configuration), so no annotation support. I believe that this means that com.javaforge.tapestry:tapestry-spring isn't going to be the right module to use for the job as this requires Java 1.5. Is there

Re: Maven repository for tapestry-javaforge

2011-04-08 Thread Adrian Cumiskey
Btw, I came across this issue when following the documentation for the standard Tapestry 4.1 archetype http://tapestry.apache.org/tapestry4.1/tapestry-archetype/index.html. It looks to be exactly what I need if I can get those dependencies to resolve. If there is a better alternative for creating

Maven repository for tapestry-javaforge

2011-04-08 Thread Adrian Cumiskey
Hi everyone, I am trying to locate the artifact com.javaforge.tapestry:tapestry-javaforge for a legacy Tapestry 4 project that will be using com.javaforge.tapestry:tapestry-spring. I am able to locate tapestry-spring from http://static.appfuse.org/repository, but its parent project tapestry-javaf

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 1:43 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 16:59:26 -0300, David Rees wrote: >> Yep, did that and it works great now.  Should I update the wiki or >> something? > > Please do it. Thanks in advance. :) Done. http://wiki.apache.org/tapestry/Tapestry

Re: T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Howard Lewis Ship
As we move away from the error bubbles, I think you'll see that errors will naturally attach to the fields, and will just display errors not associated with a specific field. On Fri, Apr 8, 2011 at 5:01 PM, Adam Zimowski wrote: > By default BeanEditForm includes . > > BeanEditor seems to expect

T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Adam Zimowski
By default BeanEditForm includes . BeanEditor seems to expect that t:errors is placed outside if programmer wants it. Intuitively, I would expect a feature for both to support inline errors: with rendered next to a field and some CSS class to override. That would be nice. -

Re: Setting contenttype of T5 form

2011-04-08 Thread Josh Canfield
You should really take Howard's advice and look at how the upload component works. You can't just change the content type of the form because this changes how servlets behave. Try googling for "servlet multipart/form-data" and find that since the beginning of time people have been writing libraries

Re: Setting contenttype of T5 form

2011-04-08 Thread Fernando Benjamin
Hi again, I am still working on the same form! I have managed to get my javascript initialized and uploaded to the client! Everything works great until I get in the onActivate method. Then I get an exception, which I can't figure out the problem, I have also explicit changed the Form.method to Po

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Howard Lewis Ship
On Fri, Apr 8, 2011 at 12:06 PM, Igor Drobiazko wrote: > You can use the PerthreadManager service. > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/PerthreadManager.html This is preferred. It ensures that everything is cleaned up at the end of the request with non

How to inject string to javascript in template

2011-04-08 Thread Anton Mezerny
Hi, I need to implement component based on javascript library. To make this component reusable I have to inject some string values inside the

Portlets with liferay

2011-04-08 Thread Moritz Gmelin
Hi, I'd like to make parts of our application available as portlets with a liferay server. So far I have found the tapestry5portlet project on google code with some hints on how to move forward. But I have not yet been able to integrate the demo into my liferray 6.0.5 demo installation. Is tape

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 16:59:26 -0300, David Rees wrote: Yep, did that and it works great now. Should I update the wiki or something? Please do it. Thanks in advance. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 12:01 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko wrote: >> DOH!  Nice find David.   I've been using this binding in several T5.1 >> projects and now starting to use it in T5.2 projects.  Thiago is there an >> easy T5 way to mak

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Igor Drobiazko
You can use the PerthreadManager service. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/PerthreadManager.html On Fri, Apr 8, 2011 at 8:44 PM, Joe Klecko wrote: > DOH! Nice find David. I've been using this binding in several T5.1 > projects and now starting to u

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko wrote: DOH! Nice find David. I've been using this binding in several T5.1 projects and now starting to use it in T5.2 projects. Thiago is there an easy T5 way to make it thread safe or should the index value be stored using something like Thr

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Joe Klecko
DOH! Nice find David. I've been using this binding in several T5.1 projects and now starting to use it in T5.2 projects. Thiago is there an easy T5 way to make it thread safe or should the index value be stored using something like ThreadLocal? Also even though the page (http://wiki.apache.org

Re: How to setup favicon?

2011-04-08 Thread Nicolas Barrera
Well..., Tapestry and favicon work great together..., just follow the steps described before and try not to get messed with pages that have different layouts as I did :S. sorry for the noise in the list.., and thanks for your responses. Nicolás.-

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-08 Thread selenar
I have found: it was the same for object and not But now is tapestry able to handle one beaneditform in another one? When I look in the html code with firebug, there is only one form : the form for the resource bean but not the one for the restype edition. Anyways, thanks to all of you for y

Re: How to setup favicon?

2011-04-08 Thread Nicolas Barrera
Sorry about this one.., it was my bad.. ALSO I 'd like to say that even though I keep seeing the tomcat or jetty > favicon... the favicon.ico file that is inside the generated war is the > tapestry favicon, not mine... > I 'm still trying..., now with the way bryan shows Nicolás.- On Fri, Apr

Re: How to setup favicon?

2011-04-08 Thread Bryan Lewis
I haven't had any trouble defining a favicon, and I run in Jetty both on my dev machine ond on our production server. I put the icon file in src/main/webapp/i. My layout component does: ${title} (I forget why I needed both links and maybe I don't any more... some browser inc

Re: How to setup favicon?

2011-04-08 Thread Nicolas Barrera
Sorry to bother again, it didn't work tested on tomcat after generating the .war and also using mvn jetty:run here I paste the generated head tag: > > title > href="/appName/assets/tapestry/5.1.0.5/default.css"> > href="/appName/assets/blackbird/5.1.0.5/blackbird.

Re: How to setup favicon?

2011-04-08 Thread Nicolas Barrera
Hi!, thanks for both responses... Are you using a layout component? > > yes I 'm... Are you running in Jetty? > > yes also... guys... 're you some kind of mentalist? ;) I 'll try it on tomcat... but I asked it right away because looking into generated html I couldn't see the link to the .ico I

Re: How to setup favicon?

2011-04-08 Thread Nicola Buso
Are you running in Jetty? I notice it replace my favicon on localhost (mvn jetty:run); under tomcat my favicon is shown: on my layout component as usual: nicola. On 04/08/2011 03:11 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 10:08:54 -0300, Nicolas Barrera > wrote: > >

Re: How to setup favicon?

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 10:08:54 -0300, Nicolas Barrera wrote: Hi, Hi! What I 've faced trying to setup this using Tapestry 5.1.0.5... is that that code I added inside my head tag (that link to favicon) is erased and replaced by javascripts includes (other links) generated by tapestry. AF

How to setup favicon?

2011-04-08 Thread Nicolas Barrera
Hi, I 've read on the internet about setting up favicon on a web site. As I see it, it takes some easy steps to do it the cross-browser way: - Add a 16x16 .ico file at the website root folder (I 've put it in src/main/webapp/favicon.ico) - Add the following html code inside the header tag: > >

Re: Object creator set to null..

2011-04-08 Thread robnangle
Richard Hill-7 wrote: > > Well you can't call a method on null! null is not a String with value > "null". It's a special value in java - basically a reference to a value > called null (i.e distinct from an undefined variable that has no > reference assigned). You need to check for a null value be

Re: Object creator set to null..

2011-04-08 Thread Richard Hill
sorry: s/undefined/uninitialised On Fri, 2011-04-08 at 13:47 +0100, Richard Hill wrote: > Well you can't call a method on null! null is not a String with value > "null". It's a special value in java - basically a reference to a value > called null (i.e distinct from an undefined variable that ha

Re: Object creator set to null..

2011-04-08 Thread Richard Hill
Well you can't call a method on null! null is not a String with value "null". It's a special value in java - basically a reference to a value called null (i.e distinct from an undefined variable that has no reference assigned). You need to check for a null value before calling any methods: if(use

Re: Object creator set to null..

2011-04-08 Thread robnangle
Richard Hill-7 wrote: > > You don't say what line your getting your npe but I'm guessing it's > this: > > if(user.getUserType().equalsIgnoreCase("Admin") > > if .getUserType() is null as you imply it can be then > calling .equalsIgnorecase() is going to result in an npe. > Ye thats the line i

Re: Object creator set to null..

2011-04-08 Thread Richard Hill
You don't say what line your getting your npe but I'm guessing it's this: if(user.getUserType().equalsIgnoreCase("Admin") if .getUserType() is null as you imply it can be then calling .equalsIgnorecase() is going to result in an npe. On Fri, 2011-04-08 at 04:59 -0700, robnangle wrote: > I am

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 01:36:03 -0300, David Rees wrote: http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle Remember that this isn't part of the official documentation, so the quality of the pages vary a lot. It appears that the same CycleBinding ends up being used across r

RE: Popup PDF

2011-04-08 Thread Richard Hill
Just to clarify: as Andreas says you have to use javascript as you need to make two requests in response to one click. So your onclick or bound handler does something like: 1) Submit form data and loads response (the pdf) in new window. If it is not possible to specify a target attribute for a fo

RE: Popup PDF

2011-04-08 Thread Richard Hill
Ah yes sorry I hadn't considered your requirement to submit form data. Submitting as a POST complicates things I think. Our web access is down so I can't check Google but does an html form element take a target attribute or equivalent? Then I guess the response can be loaded in a new window. Ther

Re: Popup PDF

2011-04-08 Thread Andreas Andreou
This is not possible without javascript because one request can only trigger one response. I believe the most elegant and generic solution can be achieved through the concept of notifications (stackoverflow does this when it displays messages in the top ... and perhaps your app has something simil

T5: required built-in validator not invoked

2011-04-08 Thread Adam Zimowski
Hi, I have a form with a required textfield companyName, and a form fragment which is displayed if one of the radio buttons on the form is clicked. When form fragment is hidden, companyName is validated by Tapestry if not provided (required validation), but when form fragment is visible, Tapestry

Object creator set to null..

2011-04-08 Thread robnangle
I am working on my index page and I am setting the side bars based on three types of people that will be on it: 1) A normal user who userType is null, as they will never have the option to view or change it 2)An admin user who userType is set to a string "Admin" 3) Any viewer who will be able to se

RE: Popup PDF

2011-04-08 Thread Jim O'Callaghan
Thanks for the suggestion Richard. One thing I am having difficulty with (I couldn’t see this in your reply) is how to submit the form data required to generate the PDF to the server before launching the PDF using target="blank". Perhaps I am going about this in a wrong-headed way and need to

Re: Popup PDF

2011-04-08 Thread Richard Hill
The simplest way I'm guessing is to have your link that generates/returns the pdf to be a target="_blank" as you say. Then in javascript change the window url from the detail url to the summary url. If adding your own js to an actionlink is tricky you could not use an action (or page) link, but

Popup PDF

2011-04-08 Thread Jim O'Callaghan
I have a requirement to generate a PDF based on some submitted form data in a 'detail' page, and then pop up the PDF in a new tab/window while at the same time returning from the 'detail' page to a 'summary' page. I don't want to pollute the summary page with any code related to opening the PDF in

Tapestry templates code completion

2011-04-08 Thread P . Stavrinides
Hi, I recall in the past some templates were posted on the Tapestry wiki that allowed you to import a DTD into eclipse, which is meant to provide some basic content assistance and validation for tml templates. I found the article again here: http://wiki.apache.org/tapestry/Tapestry5JSPEditorEcl

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-08 Thread selenar
Hi, I stripped ${} from the model parameter and it works, up to the next error. Now the beaneditform try to read the resType properties (code, label) but could not convert String to ResType as shown in the following trace : java.lang.String cannot be cast to com.selenarstudio.agenda.domain.mod

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-08 Thread joknroll
hum ok, thank you, i'll look at your link. Someone knows if Testify will evolve, in short or long term, to manage the zone update? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Testify-SetupRender-launched-instead-of-update-a-zone-tp4288081p4290262.html Sent