Hi Christian, I guess this follows on from your other thread. As you've found out, the Wicket viewer assumes that the entities returned by the choices method are persistent.
If you can't work around this, then please raise a JIRA ticket, ideally providing an example and stack trace. Thx Dan On 12 February 2013 12:26, Christian Steinebach < [email protected]> wrote: > Hi everybody, > > having a class TransportDemand with an action > > public TransportDemand selectPath( > @Named("Path") TransportPath p){ > container.persist(path) > setPath(path); > return this; > } > > public List<TransportPath>choices0SelectPath(){ > return a list of some non persisted TransportPaths; > } > > slelectPath() is never called and the exception below is thrown. > > Last cause: Could not parse OID > '[com.marintek.tpm.dom.demand.TransportPath/!com.marintek.tpm.dom.demand.TransportPath:b0d4e77e-2816-4256-adb8-0f23cf67b163{inUse=F, > routes=(com.marintek.tpm.dom.transport.ServedRoute/com.marintek.tpm.dom.transport.ServedRoute:L_2,com.marintek.tpm.dom.transport.ServedRoute/com.marintek.tpm.dom.transport.ServedRoute:L_9,com.marintek.tpm.dom.transport.ServedRoute/com.marintek.tpm.dom.transport.ServedRoute:L_11,com.marintek.tpm.dom.transport.ServedRoute/com.marintek.tpm.dom.transport.ServedRoute:L_12,com.marintek.tpm.dom.transport.ServedRoute/com.marintek.tpm.dom.transport.ServedRoute:L_13)}]'; > should match pattern: > ^((([!])?([^:~$\^@#]+):([^:~$\^@#]+))((~[^:~$\^@#]+:[^:~$\^@#]+)*))([$][^:~$\^@#]+)?([\^](\d+):([^:~$\^@#]+)?:(\d+)?)?$ > WicketMessage: Method onFormSubmitted of interface > org.apache.wicket.markup.html.form.IFormSubmitListener targeted at > [ActionParameterForm [Component id = inputForm]] on component > [ActionParameterForm [Component id = inputForm]] threw an exception > > The exception is not thrown in selectTransportPath() but somewhere inside > isis. > > If, however, choices0SelectPath() returns a list of PERSISTED > TransportPaths then it works fine. > > I don't understand, why > > Christian >
