The '-' is a reserved character in the name of a liferay portlet
a portlets name should end with -portlet and not contain any other '-'


On 19-8-2009 9:32, glr wrote:

Having investigated the issue further, I noticed that the same code is
working in some portlets and does not work in others. Therefore I created 2
portlets with exactly the same content except for the plugin name and the
portlet-name:

* in the first case the plugin name is wexample-portlet and the portlet-name
is wexample

* in the other case the plugin name is server-utest-portlet and the
portlet-name is utest

In both portlets I created 3 test-cases:

1) echoing the entered text without AJAX.

2) echoing the entered text with AJAX.

3) echoing the entered text with AJAX but the relevant page content (e.g.
form) is moved to a Panel.

Results:

1) is working in both portlets

2) is working in wexample-portlet but not in server-utest-portlet

3) is working in wexample-portlet but not in server-utest-portlet.

I have a feeling that the problem lies in the order NamespaceServletRequest
resolves request parameters. If the resolving happens in an order that the
POST'ed input comes first and then the parameter from the buttons callback
URL then it does not work.

I have attached the 2 portlets. Source code is also included in the WAR's:
http://www.nabble.com/file/p25039181/wexample-portlet-5.2.2.1.war
wexample-portlet-5.2.2.1.war
http://www.nabble.com/file/p25039181/server-utest-portlet-5.2.2.1.war
server-utest-portlet-5.2.2.1.war


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to