I've been upgrading an application from tapestry 4 to tapestry 5.
The application is quite large, so we're just migrate a few pages here and
there.
I've created some tapestry 5 services that depend on a Request.
I would like to be able to inject these services into a few tapestry 4
pages,
as we mig
Ok, I found that this can be achieved using a Submit Notifier.
@OnEvent(value = "BeginSubmit")
public void setupForSubmit()
{
final List paramNames = request.getParameterNames();
selectedItem = new HashMap();
for (String paramName : paramNames)
{
if (paramName.startsWi
>From your perspective, how does 'site' differ from the application context?
-Luther
On Fri, Feb 13, 2009 at 8:16 PM, xfile80303 wrote:
>
> Hello all,
>
> I've been struggling to understand the concepts surrounding T5 and have
> reached a pinnacle of frustration while trying to implement a (s
Hello all,
I've been struggling to understand the concepts surrounding T5 and have
reached a pinnacle of frustration while trying to implement a (supposedly)
simple piece of functionality. I could very much use some guidance.
What I'm trying to do is have a piece of information specifiable on t
thanks,
I also thought about a package-private property-all inject() method, but
then I always need to pass all arguments and null-out, even if I only
want to set one property. In test class this is difficult to read (->
inject(null,null,null,value)) or I would need to provide test-internal
s
In spring MVC, I would do the following,
How do I do the same in Tapestry?
I tried the following, but obvisously it didn't work because the Select field
is not capable of setting a value in a map.
@Component (parameters = {"source=myList", "value=myItem",
"encoder=itemPrimaryKeyEncod
You can provide a single package-private setter for all properties which you
can use in tests.
@Property
private Foo foo;
@Property
private Bar bar;
@Property
private Baz baz;
void inject(Foo foo, Bar bar, Baz baz){ ... }
If you test your pages with PageTester, you often don't need any setters
Tapestry goes for pojos which is good for testing. Further more I like
the @Property annotation which doesn't pollute my class with verbose
getters/setters.
The not so nice thing is, that when trying to test my component or page
I again end up having getters/setters. I place my tests inside th
Hello,
I have implemented a custom component to display (Blob) images. While it
works without a problem inside BeanEditForm and BeanDisplay, inside a Grid a
NullPointerException occurs while trying to pass a property of the actual
object (row) at the grid as a parameter to the component.
The rel
Cool idea, your way really shows how powerful and extendable tapestry
is. Thanks!
On Fri, Feb 13, 2009 at 3:21 PM, Robert Zeigler wrote:
> Interesting. I wonder, though, if you could do this another way, that
> doesn't involve duplicating all of the parameters of grid.
>
> What if you provided a
Em Fri, 13 Feb 2009 16:43:57 -0300, Yunhua Sang
escreveu:
I want to provide user a jpa entity grid component, which will provide
its own griddatasource and hide it to end user; user instead will
provide an ejbql for the entity grid and the component will execute
the ejbql, generate griddataso
Interesting. I wonder, though, if you could do this another way, that
doesn't involve duplicating all of the parameters of grid.
What if you provided a coercion from an EJBQL query to GridDataSource?
If you want the query to be specifiable as a string in, eg, the
template, then you could als
I want to provide user a jpa entity grid component, which will provide
its own griddatasource and hide it to end user; user instead will
provide an ejbql for the entity grid and the component will execute
the ejbql, generate griddatasource, show results in grid. It's a good
example of simplifying/e
Depending on what you're trying to do, you may be able to accomplish
what you want with a mixin, and avoid having to duplicate any
parameters at all.
On a project awhile back, for example, I wrote a "filter" mixin for
grid so any grid could have filtering applied to it just by adding the
mi
Hi guys,
Thanks for all your input. I've decided to change my code to use
composition instead of inheritance, though I still remain my opinion:
it would be very nice too that inheritance is perfectly support in
Tapestry.
Now I am going to modify my code... one of my component is a sub-class
of Gr
Peter,
I created a buttonfragment component that uses a button(and could be easily
modified for an image) instead of using a radio/checkbox(sort of). You are
welcome to have the code if you like.
--James
-Original Message-
From: Dave Greggory [mailto:davegregg...@yahoo.com]
Sent: Febru
Thanks, Thiago. Appreciate your help.
I opted to go the route of using a radio buttons that trigger a form fragment.
Peter
- Original Message
From: Thiago H. de Paula Figueiredo
To: Tapestry users
Sent: Thursday, February 12, 2009 2:50:21 PM
Subject: Re: [T5] Updating Zone with Act
Robert,
thanks, somehow I missed this, and it didn't show up in a google search
either.
Jonathan
On 13/02/2009 14:05, Robert Zeigler wrote:
Hi,
The AppModule is an IOC module, so, I would start with:
I would start at
http://tapestry.apache.org/tapestry5/tapestry-ioc/index.html.
And read th
Hi,
The AppModule is an IOC module, so, I would start with:
I would start at http://tapestry.apache.org/tapestry5/tapestry-ioc/index.html
.
And read the "Modules", "Services", "Decorators" and "Configuration"
pages, at a bare minimum.
Robert
On Feb 13, 2009, at 2/137:38 AM , Jonathan O'Co
hi jonathan,
1) you can use either way. some methods must be static: binder() and
contributeAlias.
by using static methods you can avoid circular dependencies
2) the XXX refers to the service name. the implementation of that service
can hav
the follownig parameters
Collection -> maps to Config
Hi,
I've been looking for documentation about how the AppModule class works.
Sadly, I have only found a few examples of bind/contribute and build
methods, but nothing that explains when and what to use.
I would like to know:
1. Which methods should be static and which non-static? Does it matte
First see if the scripts are included in the ajax response
using something like Firebug... they should be
Then you just need to see how you define the functions
function1, function2, function3
There are a few normal ways such as
1) function function1() {...}
2) function1=function() {...)
but the
Hello there,
I'm making a migration from 4.0.2 to 4.1.6. Everything works great except
rendering one of my components by updateComponent function. This component
is an extended version of contrib:Table. It additionally consist of 3
IScript components. For a first time a page is rendered except tha
On Fri, Feb 13, 2009 at 6:03 AM, Inge Solvoll wrote:
> In Jumpstart, the example tells me to put the initializing code for the loop
> source collection and its PrimaryKeyEncoder in the onPrepare event handler.
> Is this the recommended best practice? Are there other nice approaches to
> this?
I g
sometime its more efficient to write a small reuseable script/batch
and start the from "External Tools",
sowhat, i am a freak
2009/2/13 manuel aldana
> I had the same problem Jetty does not work for 8.1 (which is very
> unfortunate). I already sent a mail to the author two days ago but no
>
I had the same problem Jetty does not work for 8.1 (which is very
unfortunate). I already sent a mail to the author two days ago but no
reaction yet.
Currently I am using Tomcat and IntelliJ 8.1, but thinking about going
back to 8.0.1 because Jetty works much smoother with Tapestry 5 (fast
Am Freitag 13 Februar 2009 02:56:20 schrieb Howard Lewis Ship:
> I just don't get why everyone insists on running the app with Maven
> ... I just use the Jetty plugin for IDEA and it works like a charm.
Unfortunately, the jetty plugin is marked incompatible with IDEA 8.1...
Piero
--
Ok, so I'm not using the right pattern here then. I'm curious about how I
should approach my problem:
I have a recurring form pattern in my application, where I need a list of
checkable items as part of a form. The code for viewing it and retrieving
the checked values on submit is common. If this
28 matches
Mail list logo