[
http://issues.apache.org/jira/browse/TAPESTRY-776?page=comments#action_12358640
]
Raphael Jean commented on TAPESTRY-776:
---------------------------------------
It looks like the method org.apache.tapestry.portlet.PortletLink.getURL(String,
String, int, String, boolean) is not implemented. It should be something like:
public String getURL(String scheme, String server, int port, String anchor,
boolean includeParameters)
{
try {
if ("https".equals(scheme))
_portletURL.setSecure(true);
else if ("http".equals(scheme))
_portletURL.setSecure(false);
} catch (PortletSecurityException e) {
throw new ApplicationRuntimeException("Error setting
portlet URL scheme: " + e.getMessage());
}
return getURL(anchor, includeParameters);
}
Also, the service name is missing from generated URLs. The method
org.apache.tapestry.portlet.PortletLinkFactoryImpl.constructLink(IEngineService,
boolean, Map, boolean) also needs to be patched:
public ILink constructLink(IEngineService service, boolean post, Map
parameters, boolean stateful)
{
+ Defense.notNull(service, "service");
Defense.notNull(parameters, "parameters");
+ String serviceName = service.getName();
+
+ if (serviceName == null)
+ throw new ApplicationRuntimeException("The service name is null.
Engine services must implement method getServiceName() and return a non-null
value.");
+ parameters.put(ServiceConstants.SERVICE, serviceName);
squeezeServiceParameters(parameters);
PortletURL url = _renderResponse.createActionURL();
return new PortletLink(_requestCycle, url, new
QueryParameterMap(parameters), stateful);
}
> Problems using beta13 portlets with jboss-portal
> ------------------------------------------------
>
> Key: TAPESTRY-776
> URL: http://issues.apache.org/jira/browse/TAPESTRY-776
> Project: Tapestry
> Type: Bug
> Components: Portlet
> Versions: 4.0
> Environment: java 1.5.0_05
> jboss 4.0.3
> jboss-portal-2.0.1RC1
> tapestry 4 beta13
> Reporter: Andrei Chiritescu
> Attachments: SimplePortlet.war
>
> I have provided a war file that needs to be deployed on a jboss server with
> jboss-portal.
> It seems that the links are not rendered correctly(and there may be other
> thing as well). Clicking on a link just displays the same page instead of
> redirecting to the targeted page.
> This is the behavior that I encountered using beta13.If i replace the beta13
> libraries with beta11 everything seems to work fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]