Closed spring-operator closed 1 month ago
Jeremy Grelle commented
Yes, this is a known problem, that there is no way for
This does point to another issue, that where we are using
Sven Helmberger commented
For now we are using a special ActionListener. It finds all
Christoph commented
Hi Sven,
could you please explain to me how you solved the problem, using an ActionListener? I'm working for a german institute and we are planing to use SWF + Facelets for our new project, but with links only working with javascript enabled we will not be able to use it :( We tried for 3 full days now, to get the parameters into our requestcontext but didn't succeed at all.
Thanks in advance, Christoph
Sven Helmberger commented
It goes something like this:
public class MyActionListener implements javax.faces.event.ActionListener { private ActionListener delegate;
public MyActionListener(ActionListener delegate)
{
this.delegate = delegate;
}
public void processAction(ActionEvent event) throws AbortProcessingException
{
UIComponent component = event.getComponent();
Map<String,Object> map = new HashMap<String, Object>();
for (UIComponent child : component.getChildren())
{
if (child instanceof UIParameter)
{
UIParameter param = (UIParameter)child;
map.put(param.getName(), param.getValue());
}
}
// map now contains all params below to source component
delegate.processAction(event);
}
}
Sven Helmberger commented
my company is currently preparing the release of an open source framework called OpenSAGA (named after the SAGA standard of the german federal government). It will be avaiable in early 2010. Details via email ( thomas dot biskup at quinscape dot de )
Sven Helmberger opened SWF-1318 and commented
The booking-faces example shows a way to pass additional parameters to an
in the file booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml: