In the above code excerpt I forgot to add the return statement in the getChildren method. The code should look as follows:
| public String getChildren(String id) | { | String children; | children = "\t<portlet:actionURL windowState=\"normal\" portletMode=\"view\" var=\"actionUrl\">\n" + | "\t\t<portlet:param name=\"id\" value=\"" + id + "\"/>\n" + | "\t</portlet:actionURL>\n" + | "<script>\n" + | "\t <a href=\"<%=actionUrl>\">The link</a>"; | | return children; | | } The actual value of the string returned looks as follows, for example: | <portlet:actionURL windowState="normal" portletMode="view" var="actionUrl"> | <portlet:param name="id" value="1009"/> | </portlet:actionURL> | <script> | tree.add(1,' ESM Results','_self', '<%= actionUrl %>','', '', ''); | | In the above problem the javascript elements work fine. It is the <portlet:ActionURL> tag that does not get generated. The actionUrl variable is passed as is in a text form and not as the actual action URL. So, when someone clicks on the link they get the HTTP400 - Bad Request error because the link is built to look like this: | http://10.0.0.198:8080/portal/portal/default/<%=actionUrl%> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957251#3957251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957251 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user