You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (JIRA)" <de...@myfaces.apache.org> on 2016/02/25 10:38:18 UTC

[jira] [Commented] (MYFACES-4034) submitForm() not defined for myfaces.JSF_JS_MODE 'minimal-modern'

    [ https://issues.apache.org/jira/browse/MYFACES-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166992#comment-15166992 ] 

Werner Punz commented on MYFACES-4034:
--------------------------------------

Thanks Leo for stepping in here, guess I was to strict with my removals.

The idea behind mininmal-modern is, that we basically have javascript files which remove all the legacy stuff and run only on modern browsers. So far our scripts still support IE6 upwards browsers and also a set of legacy mobile phones like the old blackberries. All this stuff is somewhat isolated in separate classes and can be removed if needed to reduce the final javascript file size.

For now there was no real pressure to remove the legacy code but in the future we will probably drop all this legacy stuff for the sake of maintainability once the pressure arises and the legacy browsers up to IE 10 die out.


> submitForm() not defined for myfaces.JSF_JS_MODE 'minimal-modern'
> -----------------------------------------------------------------
>
>                 Key: MYFACES-4034
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4034
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.9
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.2.10
>
>
> Taken from stackoverflow:
> http://stackoverflow.com/questions/34270601/submitform-not-defined-for-myfaces-jsf-js-mode-minimal-modern
> I tried to set up a simple JSF 2.2 application using MyFaces 2.2.8. Since MyFaces has some context parameters that I never used before, I tried to get familiar with those.
> So I got to use org.apache.myfaces.JSF_JS_MODE for the first time and ran into problems with h:commandLink. The commandLink is trying to call myfaces.oam.submitForm() which is not defined if I set the mode to minimal-modern. If I set the mode to minimal or normal it works.
> It looks like a valid bug, worth to take a look.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)