hi,

currently I'm working on a application that has a main menu page with CommandLinks from a form. What I would like to do is make it so the following CommandLink is executiable from JSCookMenu javascript. Is there a easy way to add this in the menu js for JSCookMenu?

<h:commandLink styleClass="graynav" action="#{director.editDirectorInformation}">
                        <h:outputText 
value="#{messages.directorConfiguration}"/>
                </h:commandLink><br>

what I was doing was yuck hack on the form generated javascript in the rendered html and putting it in the js and ecapsolating the js with a form:
snipped of js with form hack entry:
   _cmSplit,
   [null, 'Lookups and Translations', '', '', 'description',
[null, 'CNO Lookup', 'javascript:document.forms["_id1"]["_id1:_idcl"].value="_id1:CnoLookup";document.forms["_id1"].submit();"return false;"', '', 'description'], [null, 'Counterparty Lookup', 'javascript:document.forms["_id1"]["_id1:_idcl"].value="_id1:CounterpartyLookup";document.forms["_id1"].submit();"return false;"', '', 'description'], [null, 'Location Lookup', 'javascript:document.forms["_id1"]["_id1:_idcl"].value="_id1:LocationLookup";document.forms["_id1"].submit();"return false;"', '', 'description'],
         ],

when going to nested pages i ran into complications. sorry in advance if this is a reject question.


oliver


Reply via email to