假设我在PHP/MySQL中开发了一个Web门户.我也希望它能在移动设备上运行.最简单的方法是什么?
我们可以将PHP与任何基于移动的标记语言(如WML或XHTML)一起使用,即我们可以在用于在普通Web浏览器中查看的Web应用程序中使用PHP和HTML吗?
在今天的采访中,我提到我在一个portlet中做了一些jsf工作.面试官询问了portlet-bridge的具体细节.我从来没有调查过这么多,只是使用它因为我被告知它会使jsf在portlet中工作.我真正可以说的是,它允许请求以jsf理解的方式从门户网站发送到jsf,并使其发挥得很好.
portlet-bridge究竟做了什么?
我在liferay门户网站中使用了一些第三方jar文件.这些jar文件将在我的门户网站中的多个portlet中使用.
我知道我可以把我的jar文件放在my-portlet/WEB-INF/lib中.但问题是它只能在该portlet中访问.我希望jar文件可用于门户网站中的所有portlet.我怎样才能做到这一点?有没有可以部署我的jar文件的全局库,可以从任何地方访问它?
另外,如何将此第三方jar文件部署到生产实例?
在我的6.1.0门户实例上使用6.1.0 SDK-Portlet,它使用ServiceBuilder和DL-Api这一行:
DynamicQuery query = DynamicQueryFactoryUtil.forClass(DLFileEntry.class)
Run Code Online (Sandbox Code Playgroud)
产生此错误:
16:46:46,319 ERROR [DynamicQueryFactoryImpl:83] Unable find model
com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl
java.lang.ClassNotFoundException: com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
at com.liferay.portal.dao.orm.hibernate.DynamicQueryFactoryImpl.getImplClass(DynamicQueryFactoryImpl.java:78)
at com.liferay.portal.dao.orm.hibernate.DynamicQueryFactoryImpl.getImplClass(DynamicQueryFactoryImpl.java:59)
at com.liferay.portal.dao.orm.hibernate.DynamicQueryFactoryImpl.forClass(DynamicQueryFactoryImpl.java:33)
at com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil.forClass(DynamicQueryFactoryUtil.java:23)
at de.acocon.liferay.service.service.bean.DocLibBean.findByExtraSettings(DocLibBean.java:403)
at de.acocon.liferay.service.service.bean.DocLibBean.findByIdeaId(DocLibBean.java:395)
at de.acocon.liferay.service.service.bean.DocLibBean.fillUploadedFileListByIdea(DocLibBean.java:417)
at de.acocon.liferay.service.service.bean.IdeaController.init(IdeaController.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:117)
at com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:99)
at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:224)
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85)
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183)
at …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用此处描述的门户方法来包装Semantic UI Modal组件
这是我对它的看法http://jsfiddle.net/mike_123/2wvfjpy9/ 虽然我遇到了问题,但是当获得一个DOM引用并将新标记渲染到其中时,似乎仍然保留了旧的引用.
render: function() {
return <div className="ui modal"/>; <-- the idea at first was to only return <div/>
},
Run Code Online (Sandbox Code Playgroud)
...
React.render(<div > <----------- originally this element had className="ui modal", but this.node doesn't seem to overtake the original node reference
<i className="close icon"></i>
<div className="header">test</div>
<div className="content">
{props.children}
</div>
</div>, <-----------
this.node);
Run Code Online (Sandbox Code Playgroud)
任何指针如何修复此测试用例http://jsfiddle.net/mike_123/2wvfjpy9/
我不能让JBoss Portal从Eclipse开始,虽然AS单独启动,并且从命令行启动而不是从Eclipse内部启动时Portal也正确启动.我在Windows中运行,有3GB.建议?谢谢.
我没有在这个领域看到任何我推荐给客户的东西.如果你使用过Spring PortletMVC,你是如何测试它的?
在portlet代码级别下测试很容易,并且通过HtmlUnit,Selenium等在客户端测试相对容易,但我没有看到任何与JSFUnit精神相关的"灰盒子"测试(其中期待我前进的方向).
为了添加共同管理员,Howto引用了"托管服务,存储帐户和CDN"视图.但我在新门户网站上找不到这样的东西.
有谁知道如何在新门户网站中这样做?有没有办法登录旧门户?
我使用 react 16。我想像这样在我的应用程序中呈现门户:
<html>
<body>
<div id="app-root">
<div>...My app stuff</div>
<div id="modal-root">... portal stuff</div> <-- portal content
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
但是官方文档建议在应用程序旁边而不是在应用程序中渲染门户。
<html>
<body>
<div id="app-root"></div>
<div id="modal-root"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是使用门户的唯一正确方法吗?
我正在尝试按照以下链接中的说明在 Azure 中注册应用程序。
我转到“应用程序注册 > 新注册”时收到错误“拒绝访问您无权注册应用程序”。我在 Azure 门户中的用户权限是所有者。
我找不到需要为我的用户设置的权限,以便我可以添加新的应用程序注册。