1

We have followed the guide provided by WSO2 to get access to the CSS / JSP pages.

Our aim is to re-theme / rebrand / restyle the login page. We have found that the login page is part of the jar: WSO2\repository\components\plugins\org.wso2.carbon.identity.sso.saml.ui_4.0.3.jar The login page is called login_ajaxprocessor.jsp

The guide mentioned above states the following about JSP's ending with _ajaxprocessor.

By default when create a jsp file ( say “foo.jsp”) in a Carbon UI component, it will inherit header, left menu and footer from the Carbon core UI. But if the file name is “foo_ajaxprocessor.jsp”, there will be no inheritance.

For an example let's consider, “login_ajaxprocessor.jsp” in “org.wso2.carbon.identity.saml.sso.ui” component. It simply omit the header, left menu and footer and display only the content from this file. So we are able to customize this page in to a different look and feel.

Were were successful in modifying the language (buttons, etc) in the JSP files. This Jar also contains a CSS file in: \web\sso-saml\css\main.css We have modified this CSS file to my own style. However, when the page gets loaded, it seems the default WSO2 main.css file is read.

When looking at the default way in which the JSP page refers to the CSS, it says:

<link media="all" type="text/css" rel="stylesheet" href="carbon/sso-saml/css/main.css"/>

We would expect that the /sso-saml/ part wordt select our own modified CSS file.

  • Is it possible to configure that for this page only, our modified CSS file will be used? We want to prevent to have to change the default main.css. Also, it is because we want to use specific images, that we want to store in jar\web\sso-saml\images
4

2 回答 2

0

login.jsp 可以在以下 jar 中找到。/repository/components/plugins/org.wso2.carbon.ui_4.0.5.jar => /repository/components/plugins/login.jsp 和 css => /repository/components/plugins

于 2013-07-19T13:13:23.250 回答
0

是的,您可以使用自定义样式页面并应用它们。请参阅 [1] [2] 了解更多信息。这将指导您完成任务。希望这会帮助你。

[1] http://wso2.com/library/knowledge-base/2010/11/customize-ui-theming-wso2-carbon-based-products [2] http://wso2.com/library/knowledge-base /2011/11/玩转碳产品主题

于 2013-07-05T10:16:49.997 回答