Simon, the problem with that patch is that most of the changes it
takes are already been applied into the source code another commit, so
it would likely cause conflicts / compile failures / unexpected
behaviours.
I have not time to look into this now.. the following patch may fix
this problem, but it may be overwritten later if we rework the whole
hidden fields stuff. Moreover, I haven't time now to test it against
the current sources. Use at your risk ;-)
Regards,
Cosma
Index: MyFacesHack.js
===================================================================
--- MyFacesHack.js (revisione 427474)
+++ MyFacesHack.js (copia locale)
@@ -25,9 +25,18 @@
eval(link);
} else {
// Link is a JSF action
- var dummyForm = document.forms[target];
- dummyForm.elements['jscook_action'].value = link;
- dummyForm.submit();
+ var jsfForm = document.forms[target];
+ var jscookActionField = jsfForm.elements['jscook_action'];
+ if (!jscookActionField) {
+ // Create the hidden field if it doesn't exists
+ // This requires IE5+ or Gecko
+ var jscookActionField = document.createElement("input");
+ jscookActionField.type = "hidden";
+ jscookActionField.name = "jscook_action";
+ jsfForm.appendChild(jscookActionField);
+ }
+ jscookActionField.value = link;
+ jsfForm.submit();
}
}
I can only suggest you (or someone else) to try applying the following
patch to the MyFacesHack.js, it should solve the missing hidden field
problem.
2006/7/31, Leyzerzon, Simeon <[EMAIL PROTECTED]>:
Are there any instructions on how to apply the available patches on
https://issues.apache.org/jira/browse/TOMAHAWK-516. Will these patches be
carried over into released code of 1.1.4, or they will be discarded and
superceded with other changes?
Thanks.
Simeon
-----Original Message-----
From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 1:37 PM
To: '[email protected]'
Subject: JSCookMenu roadmap inquiry - Please respond!!
Hi,
I'd like to inquire about the roadmap of a specific feature in order to set up
my internal dev strategy. The feature I'm looking for is to be able to
redirect a click on a JSCookMenu item to an iframe. As I understand from being
notified by other members of this group, this is possible by enclosing the
JSCookMenu into a Trinidad form and specifying its target. They told me that
this integration of the Trinidad and JSCookMenu is currently being implemented,
but some patches need to be applied before this feature is available.
Please verify that this is in fact the case, or will I instead need to choose
my own other ways of implementing the iframe redirection behavior, and if this
is currently being implemented, in which release/snapshot will it be available
and approximately when.
Thank you in advance for this information.
Simeon Leyzerzon
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================