Wicket & Interceptors
by Pete Muir
All,
Looking for some ideas/suggestions here (perhaps I am missing a trick
here?).
Wicket binds html layout/styling to Java objects which define the
component behaviour:
public class Home extends WebPage {
@In Foo foo;
public Home(final PageParameters parameters) {
add(new LoginForm("login"));
}
}
is doable, as we use a component instantiation callback (provided by
Wicket) to make foo a proxy which asks Seam for the component *every
time* the object is accessed. This is pretty ugly though, and I would
prefer to use injection/disinjection.
However, if we want to do:
public class LoginForm extends Form {
public LoginForm(String id) {
super(id);
add(new TextField("username", new PropertyModel(identity,
"username")));
add(new PasswordTextField("password", new
PropertyModel(identity, "password")));
}
@Begin
protected void onSubmit() {
// Authenticate, and display feedback to user
}
}
}
}
then no lifecycle callback will help.
As you can see the new operator is used almost exclusively. This means
we can't use a proxy based interceptor system. So, AFAICS we have to
use byte code enhancement to apply an interceptor, I guess either at
compile time or through a custom classloader.
So,
1) is it worth it (this is starting to get very fiddly)?
2) is there a better way?
Thanks :)
15 years, 11 months
tweeting at J1
by Dan Allen
Both Emmanuel and I are tweeting at J1. Don't mistake me for someone
who has actually done this before. For me, this is just an experiment
and a way to interact with J1 in a new way. Twitter and the network at
J1 are both horribly unstable.
http://twitter.com/mojavelinux
http://twitter.com/emmanuelbernard
-Dan
--
Dan Allen
Software consultant | Author of Seam in Action
http://www.mojavelinux.com
http://manning.com/dallen
NOTE: While I make a strong effort to keep up with my email on a daily
basis, life and work come first and, at times, keep me away from my mail
for a while. If you contact me, then don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a message if
you feel that it did not reach my attention.
15 years, 11 months
passing on feedback
by Dan Allen
The awareness of Seam is very high from what I can tell being at J1.
In two Seam-related sessions 100% of people had heard of it, with
about 15% using it. However, there are two questions I keep getting
over and over...and oh, btw way, the people who answer the question
butcher the shit out of the response.
1. Is Seam WebBeans? Where does WebBeans fit into the picture? Am I
going to have to rewrite all my Seam applications?
2. What is Seam's stance on the next version of Java EE? Is Seam
committed to Java EE 6 or just saying the hell with it?
For the first question, I think we need an FAQ on swfk.org with a
short and concise standpoint just so that speakers can stop saying
stupid shit (and shit that is wrong). I put in a first draft, but it
might suck. Feel free to revise and make public:
http://seamframework.org/21343.lace
For the second question, I really feel that we should try to reduce
Seam's code base as Java EE improves (I'm not talking about our non
Java EE integrations here). That is a good thing. It means we
succeeded in "fixing" Java EE. Then we add the next generation
feature, rinse and repeat. There is great stuff coming in EJB 3.1 and
already I see areas where Seam can repeat its improvement over the
standard, such as with managed concurrency.
BTW, talked to the Cisco guys and it looks like we have a great case
study in the works. They worship Seam and about to go to production
with it. They just need to work through some conversation issues. The
target is Geronimo server (they said Pete and Gavin assisted them),
but that is missing from the docs. We need to put Jay in touch with
them to avoid duplicate work.
-Dan
--
Dan Allen
Software consultant | Author of Seam in Action
http://www.mojavelinux.com
http://manning.com/dallen
NOTE: While I make a strong effort to keep up with my email on a daily
basis, life and work come first and, at times, keep me away from my mail
for a while. If you contact me, then don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a message if
you feel that it did not reach my attention.
15 years, 11 months
Re: Seam 2.0 GA Reference have been translated into Chinese
by Gavin King
Oops, wrong mailing list!
On Wed, Apr 2, 2008 at 9:36 PM, Gavin King <gavin(a)hibernate.org> wrote:
> Cool, that's awesome! Thanks for your hard work!
>
> Folks, what do you want to do with this translation?
>
>
>
> On Wed, Apr 2, 2008 at 8:10 PM, Xiaogang Cao <xiaogang(a)gmail.com> wrote:
> > Hi, Dear Gavin:
> > We have cafually released Seam 2.0 GA Reference Chinese version in our
> > translate team site : http://www.redsaga.com/opendoc/Seam2.0/html/ (The
> > leader is Yu Limin, and more than 20 people was involved.)
> >
> > Actually the whole translation was completed 3 months before, and we use
> > another 3 months to invite people to review it. The reviewer include me and
> > Ma Yue, you must know him before :)
> >
> > So, how do you want to publish it in Seam site? include into the
> > distribution is more directly, but will increase the tarball size. Or public
> > it in the seam site?
> >
> > Thanks.
> > Xiaogang :)
> >
> >
> >
>
>
>
> --
> Gavin King
> gavin.king(a)gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
15 years, 12 months