ERXRedirect redirect = pageWithName(ERXRedirect.class);
redirect.setUrl(context().directActionURLForActionNamed("UserAction/helpRedirect",
new NSDictionary<String, Object>(new Object[] {Boolean.TRUE}, new String[] {"registration"}),
false,
true));
return redirect;
public WOActionResults helpRedirectAction() {
WOComponent nextPage = pageWithName(UtilitiesPage.class);
NSArray<String> dict = request().formValueKeys();
for (String key: dict)
nextPage.takeValueForKey(request().formValueForKey(key), key);
return nextPage;
}
and in my utilities page:
public void setRegistration(Object value) {
if (value != null) {
if (value.getClass().equals(String.class))
this._registration = new BooleanHolder(Boolean.parseBoolean((String)value));
else if (value.getClass().equals(Boolean.class))
this._registration = new BooleanHolder((Boolean)value);
}
else
_registration = null;
}
It seems to work, but.... is this really necessary?