You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing with a strange problem under GateIn 3.8.1, when deploying my portlet there.
Env
JBoss Developer Studio 7.1.1.GA
Openjdk 1.7
GateIn 3.8.1-Final
I'm starting up the GateIn tomcat bundle inside Eclipse "servers" tab, where I can get my development updates hot-deployed.
Problem
The portlet displays correctly (VIEW mode). All javascripts/css works fine.
The portlet throws several error in EDIT mode, when, after Eclipse deploys my portlet war, I place it into a page (edit page, as root user in gatein portal) and click in "edit portlet" button.
I'm using the same index.gtmpl under VIEW and EDIT mode just for test purposes. index.gtmpl has no variables, just html code.
Code
My controller class basic has the following (so basic):
@Inject
@Path("index.gtmpl")
Template index;
@View
public Response.Content index(RequestContext reqContext)
{
PortletMode portletMode = reqContext.getProperty(JuzuPortlet.PORTLET_MODE);
if (portletMode.equals(PortletMode.VIEW))
{
return index.with().ok();
}
else if (portletMode.equals(PortletMode.EDIT))
{
return index.with().ok();
}
return null;
}
Eclipse deploys my portlet correctly under GateIn. I'm using the default configuration, and placing the category manually under GateIn administration section.
The problem occurs when I'm placing my portlet under a page, and click on "edit" button. The problem occurs under web navigator and Eclipse log.
Server Log
Aug 14, 2014 7:56:10 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/br.com.ampliato.devel.exo.addon.geopins] has started
Aug 14, 2014 7:56:14 AM juzu.impl.common.JUL send
INFO: Using inject implementation guice
Aug 14, 2014 7:56:14 AM juzu.impl.common.JUL send
INFO: Initializing module in prod mode
Aug 14, 2014 7:56:14 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/br.com.ampliato.devel.exo.addon.geopins] is completed
Aug 14, 2014 7:56:32 AM juzu.impl.common.JUL send
INFO: Starting Application
[http-bio-8080-exec-44] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-44] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-52] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-52] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-58] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-58] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-56] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-56] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-54] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-54] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-54] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
[http-bio-8080-exec-54] WARN portal:WebuiBindingContext - Can not find resource bundle for key : IconDropDown.item.IconSet16x16
Browser alert errors
SyntaxError: missing } after function body : window.require(["SHARED/base","SHARED/uiMaskWorkspace","SHARED/portalControl","SHARED/webui-ext","SHARED/portal","SHARED/jquery","SHARED/uiPopupWindow","SHARED/skin"],function(base,maskWS,portalControl,webuiExt,portal,$,uiPopupWindow,skin) {
maskWS.show('UIMaskWorkspace', 800, -1) -- 0
ReferenceError: webuiExt is not defined : webuiExt.UIPortletForm.init('tab-UIPortletForm', portalControl) -- 1
ReferenceError: webuiExt is not defined : webuiExt.UIDropDownControl.init('IconDropDown') -- 2
ReferenceError: portal is not defined : portal.UIFormInputThemeSelector.initForm() -- 3
ReferenceError: portal is not defined : portal.UIFormInputThemeSelector.initSelector() -- 4
ReferenceError: webuiExt is not defined : webuiExt.UIDropDownControl.init('ThemeDropDown') -- 5
SyntaxError: unterminated string literal : $('#UIListPermissionSelector-94af9a64980b4746b7165a4e87fb09dd .UIAction > -- 6
SyntaxError: missing ; before statement : span').click(function() {uiPopupWindow.show('UIListPermissionSelectorPopup-94af9a64980b4746b7165a4e87fb09dd')}) -- 7
SyntaxError: syntax error : }) -- 9
Look like there are Javascript errors in your portlet. When you change to "Edit Mode". It's an portal's ajax action. And during updating html phase, it executes javascript returned from server. But if there is errors in portlet's js, the update process is interupted
Can you investigate your portlet's js? or can you push your portlet some where in Github then we can try to reproduce the issue ?
Hey all,
I'm facing with a strange problem under GateIn 3.8.1, when deploying my portlet there.
Env
JBoss Developer Studio 7.1.1.GA
Openjdk 1.7
GateIn 3.8.1-Final
I'm starting up the GateIn tomcat bundle inside Eclipse "servers" tab, where I can get my development updates hot-deployed.
Problem
The portlet displays correctly (VIEW mode). All javascripts/css works fine.
The portlet throws several error in EDIT mode, when, after Eclipse deploys my portlet war, I place it into a page (edit page, as root user in gatein portal) and click in "edit portlet" button.
I'm using the same index.gtmpl under VIEW and EDIT mode just for test purposes. index.gtmpl has no variables, just html code.
Code
My controller class basic has the following (so basic):
Eclipse deploys my portlet correctly under GateIn. I'm using the default configuration, and placing the category manually under GateIn administration section.
The problem occurs when I'm placing my portlet under a page, and click on "edit" button. The problem occurs under web navigator and Eclipse log.
Server Log
Browser alert errors
portlet.xml
package-info.java
pom.xml
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: