Could you give an example of a limitation you ran into? I've read your mail
a couple of times now and I don't understand what a context object would
add. (It could be the type parameter for the ManageEntityActionBean, but I'm
not sure.)

Another question: what functionalities would this ManageEntityActionBean
offer? CRUD screens (à la Rails' scaffolds)? And would you have custom
functionality for certain entities, or not?

Regards,
  Levi

On Sat, Nov 1, 2008 at 9:47 AM, Rahul Thakur <[EMAIL PROTECTED]>wrote:

> Greetings,
>
> I want to use a custom ActionResolver implementation to be able to
> handle the following scenario:
> 1)  I have an action bean impl ManageEntityActionBean<T> manages T
> (save/view/delete), where T can be any entity - Project, ProjectGroup etc.
> 2)  I would like to leverage Guice's TypeLiteral to hold the
> parameterized type info an runtime to be able to instantiate appropriate
> ActionBean instances - ManageEntityActionBean<Project> and
> ManageEntityActionBean<ProjectGroup> etc.
> 3)  Resolve paths to appropriate ActionBean instances in (2) above. Say,
> /manageProject.action to be handled by a ManageEntityActionBean<Project>
> instance, so on and so forth.
>
> So I started off a custom ActionResolver implementation, but I quickly
> ran into limitations with the ActionResolver API. I think what I am
> missing is some sort of ActionResolutionContext (an arbitraty term!) to
> be exposed via the ActionResolver API, and then the custom
> ActionResolver implementation can do fancy things with it. In this above
> case, the ActionResolutionContext can hold the hints required to resolve
> to appropriate implementation.
>
> What do you guys reckon?
>
> Look forward to thoughts...
>
> Thanks,
>
> Rahul
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to