[jboss-dev-forums] [Design of JBoss Portal] - Coordination work

julien@jboss.com do-not-reply at jboss.com
Tue Jul 22 20:06:01 EDT 2008


I worked a bit on the coordination:

I started to redo the samples to better reflect the various use cases, for now I have done explicit and implicit, fallback will be redone tomorrow probably

I have an initial impl for linking page parameters to bindings of a page. It is possible to try the implicit and explicit samples.

- in the explicit case, one need to use a binding name with values, like http://localhost:8080/portal/portal/default/Coordination+Samples/Parameters+EXPLICIT?binding1=daaa&binding2=blah

- in the implicit case, it only works with the empty namepaced parameters that are declared by a portlet and urls use the parameter name, like http://localhost:8080/portal/portal/default/Coordination+Samples/Parameters+IMPLICIT?foo=blah

The trick is that bindings are stored as empty namespaced parameters in the Map<QName, String[]> per page. So on an explicit page, the binding is stored as QName(XMLConstants.DEFAULT_NS_PREFIX, "binding1") and in the implicit case the binding is stored as QName(XMLConstants.DEFAULT_NS_PREFIX, "foo").

The PortalObjectCommandFactory take any parameter in the page URL and will update the PageNS Map<QName, String[]> using the XMLConstants.DEFAULT_NS_PREFIX prefix when building the QName from the url parameters.




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166037#4166037

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166037



More information about the jboss-dev-forums mailing list