plugins - Liferay search in several portlets -
the user see 4 portlets: 1. custom github portlet possible see different commits user in repository 2. custom jira portlet shows tasks user 3. nas server documents ordered users 4. database documents ordered users
i want "main search field" possible enter username , update portlets search.
is possible? if yes, how done?
good tutorials custom portlets in general nice
the best way this, "public render parameters", , easy.
this example:
<?xml version="1.0"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"> <portlet> <portlet-name>p1</portlet-name> <display-name>p1</display-name> <portlet-class>portletclass1</portlet-class> ... <security-role-ref> <role-name>administrator</role-name> </security-role-ref> ... <supported-public-render-parameter>param1</supported-public-render-parameter> </portlet> <portlet> <portlet-name>p2</portlet-name> <display-name>p2</display-name> <portlet-class>portletclass2</portlet-class> ... <security-role-ref> <role-name>administrator</role-name> </security-role-ref> ... <supported-public-render-parameter>param2</supported-public-render-parameter> </portlet> ... <public-render-parameter> <identifier>param1</identifier> <qname xmlns:x="http://www.liferay.com/public-render-parameters">x:param1</qname> </public-render-parameter> <public-render-parameter> <identifier>param2</identifier> <qname xmlns:x="http://www.liferay.com/public-render-parameters">x:param2</qname> </public-render-parameter> </portlet-app>
at example, portlet p1 can modify parameter "param1" , p2 can modify parameter "param2", when 1 of these portlets modify parameter other portlets can read param normal param:
request.getparameter(“param1”);
Comments
Post a Comment