Hi,
to make a generic component thyt for example edits hibernate entities
and to communicate the Entity to edit
declare it like this:
public class EntEdit{
...
@Retain private Class _persistentClass;
public void pageLoaded() throws Exception{
//this only works when component is e
Hi Davor,
yes, I like to try that out, thanks.
A.C.
Davor Hrg wrote:
>
> I've struggled with many internal classes to see how generic
> components could be achieved,
> but after failing to find simple way to pass generic declaration to
> component.
>
> I found a way to do it from inside the
I've struggled with many internal classes to see how generic
components could be achieved,
but after failing to find simple way to pass generic declaration to component.
I found a way to do it from inside the component,
but it works only for components, not for pages...
I'm still looking is there
hi Davor,
That's cool, will make T5 RoR of Java!
Davor Hrg wrote:
>
> I think not just yet,
>
> my next proposal would be to enable GenericComponents...
>
>
> @Component GenericGrid accountGrid;
>
> One notation would be for component to have a constructor:
> public GenericGrid(Class[] gen
I think not just yet,
my next proposal would be to enable GenericComponents...
@Component GenericGrid accountGrid;
One notation would be for component to have a constructor:
public GenericGrid(Class[] genericClasses){
}
and instead of calling default constructor framework would call the
one wi
Hi Howard,
This is a very nice feature, in my app, I have many small tables, say 30, so
to edit those 30 objects I have to create 30 page classes without template,
that's a big saving. I'd like to save further, is there a way that we can
create a generic page class that can be called from other p
A new JIRA issue to cover this case; I believe it is something that
can be addressed.
On Feb 17, 2008 12:35 PM, Thiago HP <[EMAIL PROTECTED]> wrote:
> Hi, everybody!
>
> This generics support introduced in Tapestry 5.0.10 is awesome. I was
> already developing an in-house Tapestry 5-related librar
:)
of course...
but still this way it is implemented in base class,
and later with generics improvements, can be replaced with more elegant one :)
Davor Hrg
On Feb 17, 2008 10:05 PM, Thiago HP <[EMAIL PROTECTED]> wrote:
> On 2/17/08, Davor Hrg <[EMAIL PROTECTED]> wrote:
> > You can instead just a
On 2/17/08, Davor Hrg <[EMAIL PROTECTED]> wrote:
> You can instead just accept string
> and call TypeCoercer your self in the meanwhile
That's a very nice and clever way to do that, but that would not be
very elegant in my structure. I defined an ActivationContextContext interface to encapsulate a
You can instead just accept string
and call TypeCoercer your self in the meanwhile
declare your generic class
AbstractEntityEdit{
private transient Class persistentClass;
private transient Class idClass;
@Inject private Session _session;
@Inject private TypeCoercer _typeCoercer;
Hi, everybody!
This generics support introduced in Tapestry 5.0.10 is awesome. I was
already developing an in-house Tapestry 5-related library, including a
BaseEditPage and BaseListPage that does validation using Hibernate
Validator, object saving (using our in-house DAO and service
libraries), de
To be more specified,
you can define a base class:
package com.myapp.base;
public class EditPage {
@Persist private T _object;
public T getObject() { return _object; }
public void setObject(T object) { _object = object; }
. . .
}
So you can create a page that can edit an arbitrary ob
creating a base ListPage and BaseEdit page
is just what needs this feature.
so you can genericaly declare common properties
and have a those Common pages for the entities running quickly
just by subclassing... and then going from there to customize.
On Feb 17, 2008 3:10 PM, Angelo Chen <[EMAI
Hi Davor,
Looks good although I have no idea yet how to use this feature, thanks.
A.C.
Davor Hrg wrote:
>
> it is a resolution of these issues
>
> https://issues.apache.org/jira/browse/TAPESTRY-2053
> https://issues.apache.org/jira/browse/TAPESTRY-1518
>
> you have samples there
>
>
>
--
it is a resolution of these issues
https://issues.apache.org/jira/browse/TAPESTRY-2053
https://issues.apache.org/jira/browse/TAPESTRY-1518
you have samples there
On Feb 17, 2008 12:55 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm looking at 5.0.10 new features, following are some t
Hi,
I'm looking at 5.0.10 new features, following are some that I'd need some
additional info:
Tapestry now understands JDK 1.5 Generics, allowing for simple parameterized
types for properties of data objects and components.
what this means? any sample?
Components can now supply an event handl
16 matches
Mail list logo