Correct me if i am wrong but arent you supposed to redirect to another page?

This is from the javadoc:
/**
         * <p>
         * Whether access is allowed to this page. If the page is not allowed 
you
         * must redirect to a another page, else you will get a blank page.
         * Redirecting to another page can be done in a few ways:
         * <li>Use redirectToInterceptPage(Page page), You will be redirected to
         * that page when it is done you will be returned to this one</li>
         * <li>Use redirectTo(Page page), You will be redirected to that page 
when
         * it is done you will have to specify where you will go next</li>
         * <li>RequestCycle.setResponsePage(Page page), That page is rendered
         * directly, no redirect wil happen</li>
         * </p>
         * <p>
         * NOTE: this method is not meant to be called by framework clients.
         * </p>
         *
         * @return true if access is allowed, false otherwise
         */
        public boolean checkAccess()
        {
                return ACCESS_ALLOWED;
        }

Maurice

2006/1/9, SourceForge.net <[EMAIL PROTECTED]>:
> Bugs item #1400643, was opened at 2006-01-09 19:24
> Message generated for change (Tracker Item Submitted) made by Item Submitter
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1400643&group_id=119783
>
> Please note that this message will contain a full copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: core
> Group: 1.2
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: pepone (pepone-onrez)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: wicket-1.2-20060108 checkAccess BUG
>
> Initial Comment:
>
> I have a page that override checkAccess like this
> public boolean checkAccess()
> {
>  boolean access=getApp().getCmsServer().auth(
>                "ObjectAdmin",
>                getAppSession().getUserPx().getGroups());
>  if(access)
>   lblAccess.setModel(new Model("Access GRANTED"));
>  else
>  lblAccess.setModel(new Model("Access DENY"));
>  return access;
> }
>
>
> I can view this page with lblAccess render as ACCESS DENY
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1400643&group_id=119783
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to