Okey, done. Here is the patched patch :)
Cosma 2006/7/5, Cosma Colanicchia <[EMAIL PROTECTED]>:
Hi Mario, thanks for the good observation. Trinidad's CoreForm uses the family "org.apache.myfaces.adf.Form", while UIForm is "javax.faces.Form". It is much better to look at this property instead of using instanceof or class name. I'm modifying the code right now. Ciao Cosma 2006/7/5, Mario Ivankovits <[EMAIL PROTECTED]>: > Hi Cosma! > > 1) The class HtmlJSCookMenuRenderer tries to find the parent form > > searching for an UIForm component, but the Trinidad CoreForm doesn't > > extend UIForm. This cause the the dummyform stuff rendered in the > > page. > > > > 2) Using either <af:form> or <h:form>, calling > > addHiddenCommandParameter on HtmlFormRendererBase doesn't seem to > > work, and the jscook hidden field isn't rendered on the form, causing > > a javascript error when trying to use the menu. This is probably > > caused by the Trinidad renderer used insted of the MyFaces one. > In both cases, try to use the component family to determine if this is a > form component. > Not sure which family trinidad uses, but this is the right way to do it. > > See: org.apache.myfaces.shared.util._ComponentUtils.findNestingForm > > Ciao, > Mario > >
JSCookMenu-with-Trinidad.patch
Description: Binary data
