Re: Is rendering of the template done before initialization of the backing model?

2009-04-19 Thread Ville Virtanen
Could you attach a simple page that reproduces this? - Ville daniel joyce wrote: > > I find that if my template uses a field in the backing model java file > that hasn't been inited yet, it throws exceptions in when rendering. > > Is there a reason the tml file is rendered/reified before the

Is rendering of the template done before initialization of the backing model?

2009-04-19 Thread daniel joyce
I find that if my template uses a field in the backing model java file that hasn't been inited yet, it throws exceptions in when rendering. Is there a reason the tml file is rendered/reified before the backing model class? I usually have to stick a dummy instance or do some dummy initialization v

Re: Editing Collections in BeanEditForm

2009-04-19 Thread Kristian Marinkovic
hi keerthy, first you have to tell the BeanEditor to process the collection by contributing the Collection type to the DataTypeAnalyzer: public void contributeDefaultDataTypeAnalyzer(MappedConfiguration configuration) { configuration.add(Collection.class, "colle

Editing Collections in BeanEditForm

2009-04-19 Thread ஸ்ரீராம் கீர்த்தி
Hi, I am trying to use a BeanEditForm to create/edit/update an POJO. I am having an issue where I have a List<> collection property in my POJO. This property just fails to appear in the page when I use a beaneditform. I did a quick search of the mails and see that adding collection support for tap

Re: equanda 0.9.4 released

2009-04-19 Thread Inge Solvoll
That's excellent! I would like to get started on the upgrade right away, but I don't use maven and I can't seem to find any link to download the new version here: http://maven.progs.be/m2repo/org/equanda/equanda-tapestry5/ Regards Inge On Sun, Apr 19, 2009 at 9:00 PM, Joachim Van der Auwera wrot

Re: Custom Property Editor for String Array

2009-04-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Apr 2009 00:35:43 -0300, Yancey Yeargan escreveu: For my application, I will need to allow users to enter their own (essentially random) e-mail addresses. The Palette component seems to require a pre-defined set of available options, which unfortunately does not meet my particular

Re: Custom Property Editor for String Array

2009-04-19 Thread Yancey Yeargan
For my application, I will need to allow users to enter their own (essentially random) e-mail addresses. The Palette component seems to require a pre-defined set of available options, which unfortunately does not meet my particular requirement. So I will continue work on my own custom pro

once-only onActivate method

2009-04-19 Thread Bryan Lewis
I need a method that will get called exactly once when a page is first invoked, and not again when a form in the page is submitted. In Tapestry 4 the activateExternalPage() method was good for that. I don't think the new onActivate() method is a replacement, nor is the SetupRender-annotated metho

Re: T5.0.18: how to have variable data structures in a bean?

2009-04-19 Thread Chuck Kring
Ville, It works like a charm. I appreciate your help. Thanks. Chuck Ville Virtanen wrote: Hi, the given tml is missing encoder for the inner loop. Without this T5 uses the default approach which is the highly inefficient serialize-whole-thing-to-form-data. This encoder can be construct

Re: Editable fields in grid inside a form?

2009-04-19 Thread Thiago H. de Paula Figueiredo
Em Sun, 19 Apr 2009 17:32:46 -0300, daniel joyce escreveu: Ok, found some info. I can disable the pager, but is there a way to disable rows-per-page so all rows are shown? Do I set it to -1, or is it automatic if you disable the pager? I don't know of any direct way of doing it, but you ca

Re: [tapestry-hibernate] ignoring certain fields to be O/R mapped

2009-04-19 Thread Thiago H. de Paula Figueiredo
Em Sun, 19 Apr 2009 16:42:00 -0300, manuel aldana escreveu: Hi, Hi! tapestry-hibernate integration is really great. But one thing which wonders me is that all the fields of my domain-object are implicitly taken as persisted fields/columns (maybe this is a tapestry-hibernate feature?).

Re: Clarifiacations about Tapestry 5

2009-04-19 Thread Otho
Look at the tapestry nightly docs. It's mvn archetype:generate -DarchetypeCatalog= http://tapestry.formos.com/maven-repository If you want to use another version of tapestry you just have to change the appropriate property in the pom.xml. But for learning the nightly works just fine. 2009/4/19

Re: problem with "Secure" configuration

2009-04-19 Thread Felix Gonschorek
Thank you! this helped me alot Joachim Van der Auwera schrieb: Delving further into this. It works fine when adding the @Secure annotation on pages, it is the global configuration which fails. On closer investigation, it seems there is a change in where to provide the global configuration.

Re: [t5.1] DOCTYPE declaration causes Exception

2009-04-19 Thread Felix Gonschorek
okay, i found the solution: jar conflicts with Apache CXF 2.0.9: the woodstox library comes under the name wstx-asl. an exclusion in the CXF maven dependencies solved the problem for me: wstx-asl org.codehaus.woodstox the transient woodstox dependecy from tapestry 5.1 works fine, i can us

Re: [t5.1] DOCTYPE declaration causes Exception

2009-04-19 Thread Felix Gonschorek
I'm having the same problem over here. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> no problem on tomcat+jetty "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> works on jetty but does not work on tomcat 6.0.16 tapestry 5.1.0.4-SNAPSHOT is there anybody else with this

Re: Editable fields in grid inside a form?

2009-04-19 Thread daniel joyce
Ok, found some info. I can disable the pager, but is there a way to disable rows-per-page so all rows are shown? Do I set it to -1, or is it automatic if you disable the pager? On Sun, Apr 19, 2009 at 1:26 PM, daniel joyce wrote: > I've seen references to this being fixed in 5.0.6 in Tapestry bu

Editable fields in grid inside a form?

2009-04-19 Thread daniel joyce
I've seen references to this being fixed in 5.0.6 in Tapestry bug TAPESTRY-1328, but no examples are given as to how it works, or how to use it. Is it just overriding the cell rendering via the usual method, and then Tapestry makes it work? Would simplify some code I am working on right now... -

Re: [tapestry-hibernate] ignoring certain fields to be O/R mapped

2009-04-19 Thread Igor Drobiazko
This is a Hibernate issue, not Tapestry. Use the @Transient annotation. On Sun, Apr 19, 2009 at 9:42 PM, manuel aldana wrote: > Hi, > > tapestry-hibernate integration is really great. > > But one thing which wonders me is that all the fields of my domain-object > are implicitly taken as persiste

[tapestry-hibernate] ignoring certain fields to be O/R mapped

2009-04-19 Thread manuel aldana
Hi, tapestry-hibernate integration is really great. But one thing which wonders me is that all the fields of my domain-object are implicitly taken as persisted fields/columns (maybe this is a tapestry-hibernate feature?). I would like to have control of that and want to only have explictly ma

equanda 0.9.4 released

2009-04-19 Thread Joachim Van der Auwera
equanda 0.9.4 has been released. For general tapestry users the most important change is the upgrade to tapestry 5.1.0.3. This specifically affects the equanda-t5navigation module. If you want to use equanda-t5navigation with tapestry 5.0.18 than 0.9.3 should be used. The equanda-tapestry5 mo

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
With respect to: is style.css the correct root for this css file? Maybe it should be /style.css, or /css/style.css or summat? WRT the inline format, again, the path to images might need to be /images or whatever. Either way, if tap doesn't recognise the path to images as being correct it wil

Clarifiacations about Tapestry 5

2009-04-19 Thread kk4Nabble
Hi all, mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId =quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial I was trying the tapestry5 tutorial. I gave the above command it did not work. The M

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Entheogen
but the images are inside internal (

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Thiago H. de Paula Figueiredo
Em Sun, 19 Apr 2009 13:00:16 -0300, Joel Halbert escreveu: looks like you have a badly anchored image somewhere on your page.. Something is being generated like the incorrectly rooted images path causes tap to think this resource is page local and tries to call onActivate on the current pa

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
looks like you have a badly anchored image somewhere on your page.. Something is being generated like the incorrectly rooted images path causes tap to think this resource is page local and tries to call onActivate on the current page passing in the images string as an argument. Check that all y

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
What does your tml for the link to the ArtistDetails page look like? The underlying error is due to: "Exception in method org.goran.mstore.pages.ArtistDetails.onActivate(long) (at ArtistDetails.java:34), parameter #1: Coercion of images to type java.lang.Long (via String --> Long) failed: For in

[T5] problem with CSS in tml.

2009-04-19 Thread Entheogen
Hi, I just started learning tapestry and i'm having some trouble with CSS integration. I added style sheet directly into tml with tag because external CSS didn't work. Anyway when I'm trying to load a page which has a context i get some exceptions: [ERROR] TapestryModule.RequestExceptionHandler

Re: T5.0.18: how to have variable data structures in a bean?

2009-04-19 Thread Ville Virtanen
Hi, the given tml is missing encoder for the inner loop. Without this T5 uses the default approach which is the highly inefficient serialize-whole-thing-to-form-data. This encoder can be constructed in the bean itself (resident) but imho should not be there, so the best approach (afaik) is to c