Gustavo Hexsel wrote:
Yes, Spring MVC, I also like use some Spring components (though I don't like
xml-based dep injection).
1) Borders and panel - yes, that seems to do what
2) ... well, I usually appreciate a webpage to AT LEAST put the problem fields
on emphasis, messages on the bottom confuse me, specially if they have more
than 5 or 6 fields. But I guess it's a matter of personal opinion. Still,
anyone knows the answer for this one?
Yeah, like I said in my reply, use FormComponentFeedbackBorder (and put
the border around your fields like the library example does) or create a
AttributeModifier e.g. to modify the class of the tag when there is a
message for it.
3) The base class works too. The only drawback is that it does not garantee
that a novice programmer won't forget to extend that class and thus break
security.
If you foresee that is a problem, you can configure a custom
IPageFactory in your app that check that. You still could use filters,
though that won't help you break out of the world of servlets much. One
of the main things that makes working with Wicket relatively easy, is
that everything is in one place. The more you scatter your application
throughout xml files, filters, interceptors etc, the harder it gets to
track down how your application actually works. Unless you have
sufficient tooling like e.g. AspectJ has.
Thanks for the answers, I think I can try it out now!
Good luck,
Eelco
[]s Gus
---------- Início da mensagem original -----------
De: [EMAIL PROTECTED]
Para: [email protected]
Cc:
Data: Thu, 16 Jun 2005 15:12:48 -0700
Assunto: Re: [Wicket-user] Starting in Wicket
Well, first off, I assume you mean Spring MVC, since that would be the
only competitor with Wicket. And you're right, Spring MVC is nice, but
it's still a model 2 framework. It was just added to the project as a
kind of default web tier framework. I use Spring with Wicket for the
web tier; they are a great pair that way.
1. Check out the border and panel components. They do exactly what
you're looking for. The examples use them extensively.
2. This one I don't know about since I hate webpages that do that. If
there is a way to do this, I would like to know about it though.
3. Just extend a common Page class that does whatever you need in the
constructor. Alternatively, you could create a custom IPageFactory
implementation that would execute whatever code you wanted before a
page was created. Take a look at Page.checkAccess for your specific
requirement. It makes security a breeze.
On 6/16/05, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
Hi folks,
I'm evaluating Wicket as a replacement for some of our web code. I've checked
out Spring and found out that besides the learning curve being very high for
anything but trivial tasks, it didn't save as much coding as I expected...
So I've realized that some things that frameworks don't show you in tutorials
are usually the hard ones. I've been trying to find out how to do some things
in Wicket, but couldn't find anywhere in the docs or examples (I wonder if I
looked in the right places)
- what's the preferred way of nesting web pages? Like adding a default menu, a
header, etc. Would you <@page import> it?
- how do you provide per-field feedback? The feedback-panel component just
accumulates all fields in a single component.
- is there a way of forcing a filter before all pages (for instance, to check
if a login is present in the session) without having to edit all pages? Or
should I use a filter as in the Servlet API?
Thanks a lot!
[]s Gus
__________________________________________________________________________
UOL Fone: Fale com o Brasil e o Mundo com até 90% de economia.
http://www.uol.com.br/fone
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user