[
https://issues.jboss.org/browse/RF-12116?page=com.atlassian.jira.plugin.s...
]
Adrien Adrien edited comment on RF-12116 at 4/2/12 3:03 PM:
------------------------------------------------------------
Hi,
you said 'You've omitted the selector in your rich:jQuery tag. See', but this
is the 'same' rich:jQuery definition i used from RF3.3 (works in this version).
But this is a named query defined like in component reference of RF4.2
Exemple <rich:jQuery name="releasePic"
query="animate({width:'50px'})"/>
http://docs.jboss.org/richfaces/latest_4_2_X/Component_Reference/en-US/ht...
Nothing seems changed from RF3.3
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#ric...
I call the function and pass the id :<a4j:commandLink ....
oncomplete="window.location.href =
'#b';selectNewMsg('#b');"/>
But the javascript/jquery don't seem generated like in RF3 for <rich:jQuery
name="selectNewMsg" query="addClass('curmsg');" /> (detail
in page at top)
Adrien
was (Author: jadtn):
Hi,
you said 'You've omitted the selector in your rich:jQuery tag. See', but this
is the 'same' rich:jQuery definition i used from RF3.3 (works in this version).
But this is a named query defined like in component reference of RF4.2
Exemple <rich:jQuery name="releasePic"
query="animate({width:'50px'})"/>
http://docs.jboss.org/richfaces/latest_4_2_X/Component_Reference/en-US/ht...
Nothing seems changed from RF3.3
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#ric...
Adrien
RF 4.2 : jquery not generated for function
------------------------------------------
Key: RF-12116
URL:
https://issues.jboss.org/browse/RF-12116
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-misc
Affects Versions: 4.2.0.Final
Environment: JBoss 7.1 /RF4.2
Reporter: Adrien Adrien
Labels: rich:jquery, waiting_on_user
This code doesn t generate javascript expected
{code:title=Facelet markup}
<rich:jQuery name="selectNewMsg"
query="addClass('curmsg');" />
{code}
{code:title=Generated javascript}
<script type="text/javascript">selectNewMsgee =
RichFaces.jQuery.createFunction({"query":"addClass('curmsg');"}
);</script>
{code}
{code:tilte=Expected javascript}
<script type="text/javascript">//<![CDATA[
function selectNewMsg(elm, param) {
var selector = "";
try {
selector = eval("");
} catch (e) {}
jQuery(elm || selector).parent().parent().addClass('curmsg');
}
//]]>
</script>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira