为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the user form # when adding a user. # users.form.add.main=details,organizations,personal-site users.form.add.ide…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the organization # form when adding an organization. # organizations.form.add.main=details,organization-site organizations.form.…
1.关闭自动登录功能: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to allow users to select the "remember me" feature to # automatically login to the portal. # company.security.auto.login=true 修改为: # # Set this to true…
form标签是struts2标签中一个重要标签: 可以生成html标签,使用起来和html的form标签差不多: Strut2的form标签会生成一个table,进行自动布局: 可以对表单提交的值进行回填:从栈顶对象开始配置属性,并把匹配的属性值赋到对应的标签value中,若栈顶对象没有对应的属性,则依次向下栈中找对应的属性. 为什么form标签可以实现填充form表单? 示例:写一个这样的form页面,提交form页面后跳转到自身页面 form-tags.jsp页面: <%@ page lan…
SpringMVC 与表单提交(post/put/delete的用法) 为了迎合Restful风格,提供的接口可能会包含:put.delete提交方式.在springmvc中实现表单以put.delete方式提交时,需要使用HiddenHttpMethodFilter过滤器.该过滤器的实现原理,默认在form表单内部定义一个hidden隐藏的标签,默认需要标签名为:_method,hidden标签的value为put或delete:过滤器会接收_method的hidden标签的value,如果发…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to enable OpenId authentication. If set to true, then the # property "auto.login.hooks" must contain a reference to the class # com.liferay.portal.security.auth.Ope…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the form when # updating a site. # sites.form.update.main=details,categorization,site-url,site-template sites.form.update.seo=si…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included in login form navigation. # login.form.navigation.pre=anonymous,sign-in,facebook,open-id login.form.navigation.post=create-account,forgot-p…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Specify the locales that are enabled by default. # locales.enabled=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,hu_HU,ja_JP,pt_BR,es_ES 修改为: # # Specify the locales that are enabled by defa…
将Portal设置页面中无用的内容删除: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the company # settings form. # company.settings.form.configuration=general,authentication,users,mail-host-n…