Or you could use one of the security frameworks for wicket. They will
save you a lot of boilerplate coding and allow you to fix on what is
really important: your login page and your authentication mechanism.
The whole redirecting when a user is not logged in, checking for
sufficient permissions
Hi all!!!
I need to write a component that makes it:
code
div id=content-gadget title=Status na rede
div id=content-gadget-headerspanspan
h3Status na rede/h3
/span/span/div
div id=content-gadget-body
Can you get the example running?
If yes, then just edit the corresponding markup and you should be quite close.
t. Martin
2008/1/15, Danilo Barsotti [EMAIL PROTECTED]:
Hi all!!!
I need to write a component that makes it:
code
div id=content-gadget title=Status na rede
Imagine the following situation:
The user accessing a page of the site, I noticed that it is signed or not,
if it is, I display this:
div id=content-gadget title=Status na rede
div id=content-gadget-headerspanspan
h3Status na rede/h3
Hi!
I am not sure I understand what you mean. For simple changes see this
example: http://wicketstuff.org/wicket13/echo/ It has sources with it.
If this does not help, you can try to explain me your problem in your
own language (Portuguese?)?
**
Martin
2008/1/16, Danilo Barsotti [EMAIL
Quando o usuario acessa uma pagina, eu verifico se ele está logado no site
ou não.
Quando o usuario está logado, eu exibo varias informações sobre o status
dele na rede e algumas outras coisas.
Caso ele não esteja logado na aplicação, eu exibo para o usuario 2 caixas de
texto ( usuario e senha )
you can break the component into two nested panels/fragments, then either
conditionally add one or the other
or add both and only make one visible
-igor
On Jan 15, 2008 6:54 AM, Danilo Barsotti [EMAIL PROTECTED] wrote:
Hi all!!!
I need to write a component that makes it:
code
Ok. If I understand correctly, you need to detect authentication. One
way to do this in wicket is to redirect the user to a Login page when
authentication is missing.
So:
1. User tries to access the secured page StockQuote.class
2. Wicket detects the user is not logged in and Redirects the user