Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8467485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:39:34+00:00 2026-06-10T15:39:34+00:00

I have a JSF page which has this component: <p:selectBooleanCheckbox id=_spring_security_remember_me label=Remember Me/> The

  • 0

I have a JSF page which has this component:

<p:selectBooleanCheckbox id="_spring_security_remember_me" label="Remember Me"/>

The exact input field ID/name _spring_security_remember_me is required by Spring Security. However, PrimeFaces generates it with the _input suffix as follows:

<div id="_spring_security_remember_me" class="ui-chkbox ui-widget">
  <div class="ui-helper-hidden-accessible">
    <input id="_spring_security_remember_me_input" name="_spring_security_remember_me_input" type="checkbox" />
  </div>
  <div class="ui-chkbox-box ui-widget ui-corner-all ui-state-default"><span class="ui-chkbox-icon"></span></div>
</div>

Therefore the “Remember me” functionality fails to find the parameter. How can I solve it? Can I tell PrimeFaces to not suffix it with _input, or can I tell Spring Security to look for a different request parameter name for the “Remember me” checkbox?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:39:35+00:00Added an answer on June 10, 2026 at 3:39 pm

    My solution:

    <security:remember-me key="remember-me-security" services-ref="rememberMeServices"/>
    
    <bean id="rememberMeServices" class="com.triune.services.CustomTokenBasedRememberMeService">
        <property name="key" value="remember-me-security" />
        <property name="cookieName" value="TRIUNE" />
        <property name="tokenValiditySeconds" value="1209600" />
        <property name="useSecureCookie" value="true" />
        <property name="userDetailsService" ref="customUserDetailsService" />
        <property name="alwaysRemember" value="false" />
        <property name="parameter" value="_spring_security_remember_me_input"/>
    </bean>
    

    put a property named “parameter” with a value that equals to the id/name that primefaces generates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSF page which has a variable number inputText elements containing numeric
I have a page start.jsf which points to an action #{ruler.start}, this action forwards
I have made few changes on this huge JSF page, which is full of
I have an JSF page backed by NewsBean.java which has <f:event type=preRenderComponent listener=#{newsBean.init} />
We have a rich:comboBox on a JSF page which has a valueChangeListener that calls
i have a jsf page which displays an image from an url http://ichart.finance.yahoo.com/z?s=^NSEI&t=1d&q=l&l=on&z=l&p=s&a=v&p=s i
I have created a JSF 2 page which uses Facelets to define the structure
I have this JSF page: <div id=settingsdiv style=width:350px; height:400px; position:absolute; background-color:r; top:20px; left:1px> <h:form>
I have this seemingly-innocent code on my main JSF page: <a4j:outputPanel id=sidebarContainer> <a4j:include viewId=#{UserSession.currentSidebar}/>
I have a pretty complex JSF page (we use JSF2 with facelet) in which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.