Sorry, don't know what combination of keys I hit in Outlook, but this was
sent prematurely.   

-----Original Message-----
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 25, 2006 10:56 AM
To: 'Tapestry users'
Subject: RE: Page rediraction problem

Here's what I did...

<service-point 
  id="ComponentUtils"
interface="com.martialware.web.service.ComponentUtils">
        <invoke-factory>
            <construct
class="com.martialware.web.service.impl.ComponentUtilsImpl">
                <set-object property="pageService"
value="service:tapestry.services.Page"/>
            </construct>
        </invoke-factory>
</service-point>

-----Original Message-----
From: Andrea Chiumenti [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 25, 2006 10:54 AM
To: Tapestry users
Subject: Page rediraction problem

Hello , I'm trying to redirect users to the Home page when they are not 
in role, but this doesn't happen and I don't kwno why, since the 
debugger checks correctly, so it must be my code!

here it is what I'm trying to execute.

public void renderPage(IMarkupWriter writer, IRequestCycle cycle) {
       
        JFlyPrincipal principal = getPrincipal();
        if ( (principal == null) || 
(!principal.isUserInRole(getRoles())) ) {           
            cycle.activate("Home");               
        }
        super.renderPage(writer, cycle);
       
   }

Could someone help me please ?

Regards,
kiuma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to