[ 
http://issues.apache.org/jira/browse/MYFACES-27?page=comments#action_66840 ]
     
Bruno Aranda commented on MYFACES-27:
-------------------------------------

#1 do we want to fork JSCookMenu for the purpose of resolving this issue

I think it is a good thing for the menu to submit forms, thus enhancing the 
flexibility of this component, not limiting it to just navigation.

#2 how is the form id handed over to the menu

I've heard two possibilities here and correct me if i am wrong. One (A) is to 
"autodetect" the parent form of the component and use it as the menu's form. 
The other possibility (B) is to include a property formId in the component wich 
points to the form the menu has to submit when an item is clicked. The former 
is the solution proposed in MYFACES-259 and a patch is included.
I prefer the solution A, because you don't have to worry if the menu is inside 
or not of a form, and associate it to a form using an attribute. However, the 
solution B adds more flexibility and everything is already done, so maybe we 
should stay with that one.

#3 should it be possible to submit different forms so we would have to 
configure the form id on menu item level

Thats an interesting idea, although I don't think that such a level of 
sophistication is needed. Is someone thinking to use the menu like this?

Bruno

> JSCookmenu cannot be used for storing data
> ------------------------------------------
>
>          Key: MYFACES-27
>          URL: http://issues.apache.org/jira/browse/MYFACES-27
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.7 beta
>  Environment: JBoss 4.0
>     Reporter: 

>
> JSCookmenu has hardcoded "immediate" attribute on "true". This cause that an 
> action, which should store data from the view, is executed after the 
> apply_request_values-phase instead of the application-execute-phase. But at 
> that time the model values are not updated with the view-values, so a empty 
> objekt is stored.

-- 
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

Reply via email to