Sandeep Nair | : | Hi, |
I am just curious and it may be but silly and very obvious to most you guys/gals, but i want to know as to how when i start tomcat the liferay website opens on it own in new browser? | ||
Regards, Sandeep | ||
Mazhar Anwar | : | Hi Sandeep, |
This is defined in Global startup event of portal and you can find the code in GlobalStartupAction.java of portal source. | ||
You can check the following property in portal.properties as well. | ||
browser.launcher.url=http://localhost:8080 | ||
Regards, Mazhar | ||
Sandeep Nair | : | aah i see the code now.Basically a thread being launched which opens application using java.lang.Runtime. thanks friend. |
Regards, Sandeep |
Laliwala IT services offers 35+ enterprise open source online Training and Website Development Services. We offer various Training from popular open source stack like JBoss SOA Training, Alfresco Training, JBoss JBPM Training, Mule ESB Training, Activiti BPM Training, Apache Solr Training, Spring Training Course, Cloud Computing AWS Training, Apache Camel Training, Jboss ESB Training and many more.....(Call Now +91 9904245322)
Thursday, February 24, 2011
multiple browser, how browser starts automatically, lifeary basic, liferay launche, liferay application, liferay use, liferay runtime
Communications link failure, database, preferences values, portlet, portlet.xml, mysql, portlet solution, liferay issue
Config Portlet in Plugins-SDK, config button, plugins sdk, config.jsp, liferay-portlet, action url, portal configuration
Liferay portal portlet tutorial
Liferay portlet development trianing
Liferay portlet development trianing
Wednesday, February 23, 2011
mazhar anwar
liferay developer tutorial
Invoke a Java class in portal_normal.vm, liferay configure, liferay environment, community, forums, message, liferay works, liferay developer
Sam w | : | Hi, |
Can anyone tell me how to invoke a java class in portal_normal.vm or in any *.vm? | ||
eg. in portal_normal.vm, I want to do something like this: | ||
In order to call MyProductUtil.class, how to configure liferay environment so that the reference of its class is found in portal_normal.vm file? | ||
Thanks Sam | ||
Mazhar Anwar | : |
You can achieve it by extending VelocityVariables.java in portal source.
|
Shagul Khajamohideen | : | Hi Sam, |
The below links may help. | ||
http://www.liferay.com/community/forums/-/message_boards/message/3376997 | ||
http://www.liferay.com/community/wiki/-/wiki/Main/Access+to+Liferay+services+in+Velocity | ||
Sam w | : | The second link (ServiceLocator) might be something that I am looking for. |
I think I can write something like this: | ||
Thanks very much for the reference. | ||
I will try it out see if it works. | ||
Thanks Sam |
submit button css in a portlet, specific button, mouse over effect, forms.css, developer tutorail
override util class, ldap portal util class, liferay requirement, extending
francesco scamarcio | : | Hi all I have to overwrite the rider ldapPortalUtil class. |
What I have done is create ext Environment in the same package with the same class, overwriting my method. The problem is that in windos me take my class in the ext hai but in unix as two classes with the same package in the classpath I will always pick the one in the portal-impl and not the one I have in the ext-impl . | ||
I wonder if there is another way to extend the useful clse of liferay. | ||
Mazhar Anwar | : | Server will always pick ext-impl Instance of your class no matter whether it is Windows or Linux. |
If you are extending the Class then you have to just override the necessary methods in it. And If you are overwriting the Class then copy all the methods in your ext instance, and then modify as your requirement. |
ServiceBuilder and Utils classes, journal articale, update, create, finds, example
Carlo Cavallieri | : | Hi all, |
i can see that for Liferay Services there are various *Utils classes, for example JournalArticale has its own JournalArticleUtil and all the update, create, finds ecc... | ||
go through these methods | ||
If i use service builder these Utils won't be created, so my question is: | ||
if i need to add a method, for example i have an entity "MyEntity" and want to add the method createWithMyParams(); where is the right place to add it? | ||
in the "mypackage.model.impl.MyEntityImpl" class? or is better to create an Util for these cases? | ||
Mazhar Anwar | : | You can build service classes either in ext or in plugins-sdk. |
So, whenever you build service in ext using service builder, Liferay creates its Util classes in ext-service. And in case of Plugins it will be in your portlet-folder/WEB_INF/service folder. | ||
You have to write all your methods in Impl Classes and need to build-service again, and your Util classes will be generated. | ||
HTH. | ||
Mazhar Anwar | : | You can get more information at |
Carlo Cavallieri | : | thanks |
Subscribe to:
Posts (Atom)