留言板

Liferay IDE and Liferay 7

lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hello Andy Wu
Yes i'm using "Windows-7 ) Operating System
I try to overriden login.jsp following below process in liferay 7.0.1 GA2
1)Creating a new liferay workspace
file->new->liferay workspace project -> give name of the project (Ex: OSGI)->click to Next -> Finish
2)Click Right button on OSGI->New->Liferay Module Project->give name of the project (Ex: blade.hook.jsp)->click to Next -> Finish
3)expand "blade.hook.jsp" in eclips and open "bnd.bnd" file and paste the blow code
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.login.web;bundle-version="1.0.5"
-sources: true
-jsp: *.jsp,*.jspf
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
4)create a login.jsp file in this location "bladge.hook.jsp/src/main/resource/META-INF/resource/login.jsp" in eclipse
5)write the code in login.jsp
6)Deploy the module following below steps
Gradle Tasks->expand "blade.hook.jsp"->expand "build"-> click on "deploy"
7)After deploy get a build success on console
8)verify the result (what you are done the changes that changes effected or not)

I did not get any effect through login.jsp. It's deployed successfully why it is not effected i con't understand.Please help to me.
I checked the bundles from "gogo shell" also see the below screens
thumbnail
Andy Wu,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
it seems you are on windows, as I said , it is a known bug in liferay portal 7 . by the way , you can use "drag and drop" to deploy the fragment instead of using gradle deploy .

see https://issues.liferay.com/browse/LPS-66814
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hi Andy Wu
Thanks for your suggestion.
I have one more question ?
i.e I try to create Ext in lifeay 7.0.0 GA1 by using Eclipse IDE3, It show the message " The selected plugins SDK does not support creating ext type plugins. Please configure version 6.2 or less." In liferay 6.2 i created two ext's, right now I try to migrate those two ext's into liferay 7. Could you please tell the process to migrate liferay 6.2 ext's plugins into liferay 7.

Thanks
Regard's
Lokesh
thumbnail
Andy Wu,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
You are welcome lokesh .
Yes, we removed support for ext in 7 and but liferay 7 is so open and flexible and you can archive almost all the functions that you did in ext via a OSGi way which is a more beautiful way. For more information , you can goto https://dev.liferay.com/develop/tutorials and https://dev.liferay.com/develop/reference
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
ok, Andy Wu.

In 6.2 I have created two ext plugins for overriden "portal.properties" and "Struts Action" classes .In liferay 7 totally removed ext plugins. Now i followed to override my required files through modules. In 7, I Override login.jps through modules, same process also followed to override Portal.properties related classes. Am I correct or not plz give replay to me. If you have any example regarding that plz send the link.
Thanks
Regard's
Lokesh
thumbnail
Andy Wu,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
for Struts Action , you can https://github.com/liferay/liferay-blade-samples/tree/master/liferay-gradle/blade.strutsaction
and for portal.properties, some keys were moved to sub modules and for this case you can see https://github.com/liferay/liferay-blade-samples/tree/master/liferay-gradle/blade.hook.resourcebundle to get some clue (maybe not so correct)
or you can try fragment to override or you can use porta-ext.properties to do so.
Any way , Sorry , I am not very sure about this . May it helps.
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hi Andy Wu,
i have created a new thread
please see once.
i am facing problem from so many days.
please try to give quick sol'n.

Thanks & Regards,
Lokesh..
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hello Andy Wu

I have one requirement i.e i need to add the dependency jar files to my module in build.gradle file.See the below jar files list.

build.gradle file
runtime group: 'org.apache.axis', name: 'axis', version: '1.4'
runtime group: 'org.ow2.asm', name: 'asm-tree', version: '4.0'
runtime group: 'commons-discovery', name: 'commons-discovery', version: '0.4'
runtime group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.4'
runtime group: 'commons-codec', name: 'commons-codec', version: '1.6'
runtime group: 'commons-logging', name: 'commons-logging', version: '1.1.3'
runtime group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.3.2'
runtime group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
runtime group: 'commons-io', name: 'commons-io', version: '2.4'


But these jar files are unable to add my module.In deployment time these file showing errors.Could you please tell the correct procdure to add the external jar files in module.

Thanks
With Regards
Lokesh
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hello Andy Wu

Please give replay. This is great help to me.
lokesh gorrela,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hello Andy Wu

I have created one "Service-Builder module" and one MVC module. I try to access the Service-Builder module services into MVC Module. I followed below process, But i did not get that services into MVC module.
Step1: I have created Service -Builder module see the structure
HospitalManagement
->HospitalManagement-api
->HospitalManagement-services
setp2: I done the some changes in service.xml file under HospitalManagement-services
step3: I done the build service under HospitalManagement-services through gradle task
step4: I have created one Mvc Module (Ex: HospitalDemo)
step5: I added below dependency in build.gradle in MVC module ( HospitalDemo)
compile project(":modules:HospitalManagement:HospitalManagement-api")
step6: First i deplyed "HospitalManagement-api" after that HospitalManagement-services and HospitalDemo(Mvc portlet).
I try to access this services in HospitalDemo portlet but that services are not avilable.
Could you please tell my process is correct or not ? If it is possible give one simple example.

Thanks
Regards
Lokesh
thumbnail
Andy Wu,修改在7 年前。

RE: Overriden login.jsp through modules in liferay 7.0.1 GA2

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
you can go to https://github.com/liferay/liferay-blade-samples/tree/master/liferay-workspace/modules to see the servicebuilder samples.