Re: Expansions, projections and arrays

2009-08-27 Thread Igor Drobiazko
You can set a ResultTransformer to your criteria. https://www.hibernate.org/hib_docs/v3/api/org/hibernate/transform/ResultTransformer.html On Thu, Aug 27, 2009 at 8:06 AM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: I'm using tapestry-hibernate and I have a case where I'm forced to use

Expansions, projections and arrays

2009-08-27 Thread Kalle Korhonen
I'm using tapestry-hibernate and I have a case where I'm forced to use Projections (or aggregate functions in hql but same end result) so my query is returning an object array. Now, I'm rendering a list of that information to the user, but since using ${obj[0]} expansion is not supported, I'm

Re: Expansions, projections and arrays

2009-08-27 Thread Kalle Korhonen
Almost brilliant! Except that if I have to write my own transformer or the bean from scratch, it's still more lines of code than just writing the getters for the template. There's no way to suppress the properties you've aliased (right?) but maybe I'll just use aliasToBean() and create a

how to enable default js and css stack?

2009-08-27 Thread Alfonso Quiroga
I have a little problem, if I use some t5component that needs the full js stack (declared in ClientInfrastructure), it writes in head the libs, and no problem. But if I have a plain page with no t5 components, so none of that js-libs are (prototype, etc) My problem is that I created a component

Re: how to enable default js and css stack?

2009-08-27 Thread Inge Solvoll
Check the tapestry sources, I fond this now in Autocompleter mixin: @IncludeJavaScriptLibrary({${tapestry.scriptaculous}/controls.js, autocomplete.js}) On Thu, Aug 27, 2009 at 9:39 AM, Alfonso Quiroga alfonsose...@gmail.comwrote: I have a little problem, if I use some t5component that needs

Re: Expansions, projections and arrays

2009-08-27 Thread Sebastian Hennebrueder
I am just hitting for the bonus. You don't need projections for ordering just order on a field. if the ordering takes place in a relation, then create an alias and use it in the order condition. Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for

How to inject component of the layout component into the page

2009-08-27 Thread Sebastian HennebrŸüder
Hello, my page uses a layout component. The layout has my self made t:messages component to display messages. I need this component injected into the page as I want to return it as zone update. Tapestry keeps telling me, that the messages component is not included in the page template.

Re: How to inject component of the layout component into the page

2009-08-27 Thread Kristian Marinkovic
have you tried returning the zone from a getter method within the layout component. this way any page that uses this layout should be able to return the desired zone. i think this could work with a block as well. g, kris Sebastian HennebrŸüder hennebrue...@laliluna.de 27.08.2009 10:39

Re: actionliks and XHR response problem

2009-08-27 Thread Janko Muzykant
i did a few more investigations and there is one thing i can't understand. this is how problematic requests look like: Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 Accept: text/javascript, text/html, application/xml, text/xml,

Re: Testify and Injecting Services from IOC Registry

2009-08-27 Thread Paul Field
Mark W. Shead mwsh...@gmail.com wrote on 26/08/2009 15:58:05: I am using the Selenium testing so I'm subclassing from AbstractIntegrationTestSuite in tapestry-test. Ahhh The key thing about the TapestryTest superclasses in Testify is that they orchestrate the annotation processing and

Re: t5: Dynamic Forms Grids

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Wed, 26 Aug 2009 21:14:01 -0300, sparqle dsrika...@gmail.com escreveu: Hi, Hi! I would like to understand how to create dynamic forms and grids in T5. T5 is all about static structure, dynamic behaviour. Now I would like to store all of item types (book, car, tv etc.) in 1 database

Re: T5.1: Get block by (page and block) names?

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 02:35:55 -0300, ThirstyCrow 5451vs5...@gmail.com escreveu: it works. However, the solution is still a little ugly. As you see, I have to manually split the parameter to get the page and block names. I tried the two-parameter method: Object onAction(String page, String

Re: How to inject component of the layout component into the page

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 05:39:51 -0300, Sebastian HennebrŸüder hennebrue...@laliluna.de escreveu: Hello, Hi! my page uses a layout component. The layout has my self made t:messages component to display messages. I need this component injected into the page as I want to return it as zone

Re: Expansions, projections and arrays

2009-08-27 Thread Kalle Korhonen
Sebastian, I appreciate the try. But I needed an avg of a field and considering that I don't know how to write it in plain sql either without the avg being used in the result, I think it cannot be done with Criteria either. Kalle On Thu, Aug 27, 2009 at 1:38 AM, Sebastian

Problems with FormFragment and Zone update

2009-08-27 Thread Stefan
Hi, i have some trouble with a zone update. A nested formFragment (within a zone) should be switched in/visible dependend on a select-selection Below i have included a snippet from the source: t:form t:id=addEditForm p t:label for=nType / :br /

Testify and Tapestry 5.0.18

2009-08-27 Thread Szemere Szemere
Excuse my ignorance, does Testify work with Tapestry 5.0.18? The current version of Testify seems to require Tapestry 5.1.05. Is there a version that works with 5.0.18 Szemere

Re: Expansions, projections and arrays

2009-08-27 Thread Sebastian Hennebrueder
Kalle Korhonen schrieb: Sebastian, I appreciate the try. But I needed an avg of a field and considering that I don't know how to write it in plain sql either without the avg being used in the result, I think it cannot be done with Criteria either. Kalle In that case, there is no other way.

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 12:06:16 -0300, Stefan ste...@wammel.com escreveu: Hi, Hi! Render queue error in BeginRender ... : No object of type org.apache.tapestry5.services.FormSupport is available from the Environment. Tapestry requires a Form to be rendering to render a field. While

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Stefan
Thank for the fast reply. I think i understand the problem. If i replace the nested form fragment with an static text, it works. But it does not with the form fragment. I tried the workaround and surrounded the whole form with a zone, but it does not work. Am 27.08.2009 um 17:43 schrieb

Re: t5: Dynamic Forms Grids

2009-08-27 Thread Sparqle
Hi Thiago, Thanks for reviewing my long post and responding. I understand your concerns about the database schema not being ideal, but creating separate Java classes for each one of the itemtypes is not acceptable as we are planning to create a site where end-users can define their own

Re: t5: Dynamic Forms Grids

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 13:06:14 -0300, Sparqle dsrika...@gmail.com escreveu: Hi Thiago, Hi! Based on your post, I am thinking that this type of behavior is not supported by T5. I would say that it is supported, but out-of-the-box you would be way better supported if not using this modeling

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 13:03:46 -0300, Stefan ste...@wammel.com escreveu: I tried the workaround and surrounded the whole form with a zone, but it does not work. How does it not work? You didn't describe the error, so we cannot help you here. -- Thiago H. de Paula Figueiredo Independent Java

Re: how to enable default js and css stack?

2009-08-27 Thread Howard Lewis Ship
Inject @Environmental RenderSupport Invoking any of its JavaScript related functions will automatically trigger the inclusion of the client infrastructure (all that JS and CSS). Using @InlcudeJavaScriptLibrary does the same (under the covers, its a call to the RenderSupport.addScriptLink(). ).

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Stefan
Sorry, it gives me the same error: No object of type org.apache.tapestry5.services.FormSupport is available from the Environment. ... And here is what i have changed: t:zone t:id=addEditFormZone t:form t:id=addEditForm ... same as in first post /t:form

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 13:44:25 -0300, Stefan ste...@wammel.com escreveu: Sorry, it gives me the same error: No object of type org.apache.tapestry5.services.FormSupport is available from the Environment. ... And here is what i have changed: t:zone t:id=addEditFormZone t:form

Re: T5Eclipse patch

2009-08-27 Thread akira
I think the project home is here: http://tapestry.formos.com/wiki/display/t5eclipse/Home On Aug 27, 2009, at 11:32 PM, users-digest-h...@tapestry.apache.org wrote: From: Erik Putrycz e...@apption.com Date: August 27, 2009 4:38:52 AM JST To: users@tapestry.apache.org Subject: T5Eclipse

Chenillekit which jira

2009-08-27 Thread Sebastian HennebrŸüder
Hello, the chenillekit website names the google issue tracking http://www.chenillekit.org/issue-tracking.html whereas Tapestry360 has a tracker as well. Which one should be used? -- Best Regards / Viele Grüße Sebastian Hennebrueder - http://www.laliluna.de Laliluna.de, Berliner Strasse

T5.1: Nested/indrect message: values

2009-08-27 Thread Michael Gentry
Hi everyone, I'm trying to use the message catalog to look up values in a loop. I have a List of enums and bind the loop's source to contentAreas and the value to contentArea. I'm then trying to extract a value from the message catalog with: ${message:${contentArea}-name} I was hoping

Re: how to enable default js and css stack?

2009-08-27 Thread Alfonso Quiroga
Thanks! I think a nice way is using IncludeJavascript annotation, now is working fine On Thu, Aug 27, 2009 at 1:34 PM, Howard Lewis Shiphls...@gmail.com wrote: Inject @Environmental RenderSupport Invoking any of its JavaScript related functions will automatically trigger the inclusion of the

Re: Problems with FormFragment and Zone update

2009-08-27 Thread Stefan
Thanks Thiago, but unfortunately no improvement. Anyway, you need to add zone=addEditFormZone to t:form I have changed that. My event handler returns qTypeZone.getBody() Do you have still any idea? Am 27.08.2009 um 19:00 schrieb Thiago H. de Paula Figueiredo: Em Thu, 27 Aug 2009

[Tapestry Central] Return to Independent Consulting

2009-08-27 Thread Howard
I'd like to announce to the Tapestry community that I've returned to independent consulting. As an independent consultant, I'll have more opportunities to pursue training, mentoring, and project work that did not fit with Formos' overall goals. Formos continues to be committed to Tapestry, and to

Re: T5.1: Get block by (page and block) names?

2009-08-27 Thread ThirstyCrow
Thiago H. de Paula Figueiredo wrote: Em Thu, 27 Aug 2009 02:35:55 -0300, ThirstyCrow 5451vs5...@gmail.com escreveu: it works. However, the solution is still a little ugly. As you see, I have to manually split the parameter to get the page and block names. I tried the

Re: T5.1: Get block by (page and block) names?

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 21:41:27 -0300, ThirstyCrow 5451vs5...@gmail.com escreveu: But how to express a list of strings in the template? Two ways, and they work for other types besides String: t:context=[property1, property2] or t:context=context public List getContext() { List list

Re: t5: archetype create for 5.1.0.5

2009-08-27 Thread John Owen Atala
The problem is Your First Application on Tutorial1 is still using the wrong one. http://tapestry.apache.org/tapestry5.1/tutorial1/first.html Ulrich Stärk wrote: http://tapestry.apache.org/tapestry5.1/quickstart/ Am 13.05.2009 10:31 schrieb Angelo Chen: Hi, This creates a project for

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-27 Thread Robert Zeigler
Ah, right... blackbird was introduced in 5.1. I could probably check for the symbol in the module and provide it if it doesn't otherwise exist. Robert On Aug 27, 2009, at 8/2712:44 AM , Alex Kotchnev wrote: @Robert, thanks for releasing the 1.0.0 version. I added it, it seems to work

Re: T5.1: Get block by (page and block) names?

2009-08-27 Thread ThirstyCrow
Thiago H. de Paula Figueiredo wrote: t:context=[property1, property2] This is just what I want. Thanks again, Thiago. -- View this message in context: http://www.nabble.com/T5.1%3A-Get-block-by-%28page-and-block%29-names--tp25151389p25183100.html Sent from the Tapestry - User mailing

Re: Securing files on the classpath/webapp context (was: Re: Running Tapestry 5.0.18 on Google App Engine)

2009-08-27 Thread Michael Gerzabek
I must say I was a little bit shocked when I heard about this security hole and found an easy way within httpd (mod_rewrite) to circumvene this problem at first. Thinking about how it should be I would prefer the 'blacklist everything'-approach. This way a dev never has to worry about what's