Author: chris.laprun(a)jboss.com
Date: 2012-04-03 09:11:25 -0400 (Tue, 03 Apr 2012)
New Revision: 8669
Modified:
epp/portal/branches/EPP_5_2_Branch/examples/extension/war/src/main/webapp/templates/groovy/webui/component/UIHomePagePortlet.gtmpl
Log:
Bug 794368 - (JBEPP-1413) After deploying example extension "click to login"
links stop working: added missing onclick even handler to trigger link.
Modified:
epp/portal/branches/EPP_5_2_Branch/examples/extension/war/src/main/webapp/templates/groovy/webui/component/UIHomePagePortlet.gtmpl
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/examples/extension/war/src/main/webapp/templates/groovy/webui/component/UIHomePagePortlet.gtmpl 2012-04-03
03:45:14 UTC (rev 8668)
+++
epp/portal/branches/EPP_5_2_Branch/examples/extension/war/src/main/webapp/templates/groovy/webui/component/UIHomePagePortlet.gtmpl 2012-04-03
13:11:25 UTC (rev 8669)
@@ -1,5 +1,5 @@
-<%
- String initialURI =
_ctx.getRequestContext().getParentAppRequestContext().getInitialURI();
+<%
+ String initialURI =
_ctx.getRequestContext().getParentAppRequestContext().getInitialURI();
%>
<div class="UIHomePagePortlet" id="$uicomponent.id">
<div class="TRContainer">
@@ -29,7 +29,7 @@
<div class="MiddleAccountsContainer">
<div
class="InstructionTitle"><%=_ctx.appRes("UIHomePagePortlet.Label.Title")%></div>
<div class="AccountsContainerDeco">
- <div class="AccountBlock AdministratorUser">
+ <div class="AccountBlock AdministratorUser"
onclick="window.location='${_ctx.getPortalContextPath()}/login?username=root&password=gtn&initialURI=<%=initialURI%>'">
<div class="AccountInfos">
<div class="AccountTitle"><a
href="${_ctx.getPortalContextPath()}/login?username=root&password=gtn&initialURI=<%=initialURI%>"><%=_ctx.appRes("UIHomePagePortlet.Label.Administrator")%></a></div>
<div class="Username">
@@ -43,7 +43,7 @@
</div>
</div>
<div class="SeparatorLine"><span></span></div>
- <div class="AccountBlock ManagerUser">
+ <div class="AccountBlock ManagerUser"
onclick="window.location='${_ctx.getPortalContextPath()}/login?username=john&password=gtn&initialURI=<%=initialURI%>'">
<div class="AccountInfos">
<div class="AccountTitle"><a
href="${_ctx.getPortalContextPath()}/login?username=john&password=gtn&initialURI=<%=initialURI%>"><%=_ctx.appRes("UIHomePagePortlet.Label.Manager")%></a></div>
<div class="Username">
@@ -57,7 +57,7 @@
</div>
</div>
<div class="SeparatorLine"><span></span></div>
- <div class="AccountBlock NormalUser">
+ <div class="AccountBlock NormalUser"
onclick="window.location='${_ctx.getPortalContextPath()}/login?username=mary&password=gtn&initialURI=<%=initialURI%>'">
<div class="AccountInfos">
<div class="AccountTitle"><a
href="${_ctx.getPortalContextPath()}/login?username=mary&password=gtn&initialURI=<%=initialURI%>"><%=_ctx.appRes("UIHomePagePortlet.Label.User")%></a></div>
<div class="Username">
@@ -71,7 +71,7 @@
</div>
</div>
<div class="SeparatorLine"><span></span></div>
- <div class="AccountBlock DemoUser" style="margin-right:
0px;">
+ <div class="AccountBlock DemoUser" style="margin-right:
0px;"
onclick="window.location='${_ctx.getPortalContextPath()}/login?username=demo&password=gtn&initialURI=<%=initialURI%>'">
<div class="AccountInfos">
<div class="AccountTitle"><a
href="${_ctx.getPortalContextPath()}/login?username=demo&password=gtn&initialURI=<%=initialURI%>"><%=_ctx.appRes("UIHomePagePortlet.Label.Demo")%></a></div>
<div class="Username">
Show replies by date