public String open() {
if (!isLoggedIn())
return redirect();
FacesContext fc = FacesContext.getCurrentInstance();
VariableResolver vr = fc.getApplication().getVariableResolver();
DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
Map map = fc.getExternalContext().getRequestParameterMap();
int fieldIdx = Integer.valueOf((String) map.get("fieldIdx"));
Picture picture = (Picture) wo.getDcObject().getValue(fieldIdx);
DcWebImage wi = (DcWebImage) vr.resolveVariable(fc, "image");
wi.setFieldIdx(fieldIdx);