Announcement Announcement Module
Collapse
No announcement yet.
Spring security, jsf and URL with parameters Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring security, jsf and URL with parameters

    Hello.
    Sorry for my english
    jsf page code
    HTML Code:
    <fh:outputLink value="/pages/mainPage.jsf?id=#{controller.id}" ><fh:outputText value="mainPage"/></fh:outputLink>
    Before using spring security i do ViewHandler and getActionURL
    Code:
            int pos = url.indexOf("#{");
            if (pos > -1 && url.indexOf("}", pos) > -1) {            
                Application app  =context.getApplication();
                ExpressionFactory elFactory = app.getExpressionFactory();
                ELContext elContext = context.getELContext();
                ValueExpression valueExp = elFactory.createValueExpression(elContext, url, Object.class);
                return valueExp.getValue(elContext).toString();
            }
            return url;
    With spring security getActionURL get url without any parameters.

    I try write custom DefaultFilterInvocationDefinitionSource and lookupAttributes, but url have't bean.
    If i send url like
    HTML Code:
    /pages/mainPage.jsf?id=555
    thats cool. But if like
    HTML Code:
    /pages/mainPage.jsf?id=#{controller.id}
    in lookupAttributes just
    HTML Code:
    /pages/mainPage.jsf?id=.
    Any idea??
    Thanks!
Working...
X