> > > You don't show in your tutorials how to
> customize
> > > the action methods
> > > if need be, though.
> >
> > Sorry, missing the point... Maybe you could give
> me an
> > example of what you wanted to accomplish?
> >
>
> If I understood the framework right, you define new
> expression-language statements which have a special
> meaning. E.g.,
> create a new object. There might be cases where just
> calling the
> constructor is not enough - and I want to interfere
> with the creation
> process. Same, and probably even more necessary on
> save. Do you define
> and make available such hooks?
Seems I got it :).
Sure, you can call any Java methods everywhere in
Rumba expressions. For instance, if you need some
non-trivial object instantiation, you can provide a
method that creates and returns the new instance (like
#{factory.createUser(name, password)}). In the same
way you can do everything on <h:commandButton> click
befor e, after or instead using built-in expressions.
Essentially this is a common way of Java development.
You are right, we should write some more on the topic
possibly showing examples of doing this kind of stuff.
Regards,
Alexey
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com