You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Slawomir Sobotka (JIRA)" <my...@incubator.apache.org> on 2005/06/09 17:24:16 UTC

[jira] Created: (MYFACES-280) please add onclick and rendered attribute to jscookmenu item

please add onclick and rendered attribute to jscookmenu item 
-------------------------------------------------------------

         Key: MYFACES-280
         URL: http://issues.apache.org/jira/browse/MYFACES-280
     Project: MyFaces
        Type: Improvement
    Reporter: Slawomir Sobotka


onclick on menu item - suppose we have (for example) menu: file->logout in our app and we want to ask user if he is sure to logout (JS confirm).
now i must redirect user to "beforeLogoutPage" with onload attrib that calls JS function. that JS function asks user if he is sure and than it clicks hidden command button - its absurd and pathetic, isnt it?.
but having onclick attrib witch would "catch" false JS function result and cancel submit would be great.

rendered atribute would be helpfull also-now im puting menu item into scriptlet to conditionally render it-bruteforce;)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Issue Comment Edited: (TOMAHAWK-631) please add onclick and rendered attribute to jscookmenu item

Posted by "Hazem Saleh (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681887#action_12681887 ] 

Hazem Saleh edited comment on TOMAHAWK-631 at 3/13/09 1:37 PM:
---------------------------------------------------------------

rendered is already done in the component.
Iam not sure whether the cookmenu javascript component supports defining events on, so I will investigate in this issue to add the (onclick) attribute to the JSCookMenu component.

      was (Author: hazems):
    rendered is already done in the component.
Iam not sure whether the cookmenu javascript component supports define events on, so I will investigate in this issue to add the (onclick) attribute to it.
  
> please add onclick and rendered attribute to jscookmenu item
> ------------------------------------------------------------
>
>                 Key: TOMAHAWK-631
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-631
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: JS Cook Menu
>            Reporter: Slawomir Sobotka
>            Assignee: Hazem Saleh
>
> onclick on menu item - suppose we have (for example) menu: file->logout in our app and we want to ask user if he is sure to logout (JS confirm).
> now i must redirect user to "beforeLogoutPage" with onload attrib that calls JS function. that JS function asks user if he is sure and than it clicks hidden command button - its absurd and pathetic, isnt it?.
> but having onclick attrib witch would "catch" false JS function result and cancel submit would be great.
> rendered atribute would be helpfull also-now im puting menu item into scriptlet to conditionally render it-bruteforce;)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-631) please add onclick and rendered attribute to jscookmenu item

Posted by "Hazem Saleh (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681887#action_12681887 ] 

Hazem Saleh commented on TOMAHAWK-631:
--------------------------------------

rendered is already done in the component.
Iam not sure whether the cookmenu javascript component supports define events on, so I will investigate in this issue to add the (onclick) attribute to it.

> please add onclick and rendered attribute to jscookmenu item
> ------------------------------------------------------------
>
>                 Key: TOMAHAWK-631
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-631
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: JS Cook Menu
>            Reporter: Slawomir Sobotka
>            Assignee: Hazem Saleh
>
> onclick on menu item - suppose we have (for example) menu: file->logout in our app and we want to ask user if he is sure to logout (JS confirm).
> now i must redirect user to "beforeLogoutPage" with onload attrib that calls JS function. that JS function asks user if he is sure and than it clicks hidden command button - its absurd and pathetic, isnt it?.
> but having onclick attrib witch would "catch" false JS function result and cancel submit would be great.
> rendered atribute would be helpfull also-now im puting menu item into scriptlet to conditionally render it-bruteforce;)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.