If i remember correctly, a value that can't be resolved should cause a
runtime error; just in case, check the console. It may be that the
acegi.check.url symbol couldn't be resolved.
On 6/29/07, Robin Ericsson <[EMAIL PROTECTED]> wrote:
On 6/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> My guess is that you are injecting in a base class, but the base class
> is not in the correct directory. Base classes for pages and
> components must be in the .base package (alongside .pages and
> .components).
No, no base class, it's a simple page. The complete class looks like this:
package nu.localhost.tapestry5.acegi.example.pages;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.ioc.annotations.Value;
import org.apache.tapestry.services.Request;
public class LoginPage {
@Inject @Value("${acegi.check.url}")
private String checkUrl;
@Inject
private Request request;
public String getLoginCheckUrl() {
return request.getContextPath() + checkUrl;
}
}
--
regards,
Robin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]