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
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
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
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
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
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
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.
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
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,
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
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
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
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
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
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 /
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
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.
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
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
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
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
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
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(). ).
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
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
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
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
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
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
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
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
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
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
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
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
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
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
37 matches
Mail list logo