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

Udo Schnurpfeil commented on TOBAGO-1779:
-----------------------------------------

Hi,

with Servlet 3.0 this "repair" is no longer needed. Please see the example 
login.xhtml in the "demo", not in the "addressbook".

If you really want to use the old way. Use <script> tag with file-attribute to 
include the JavaScript as a file. This should also work with CSP. 

Let me know, if this works for you. :-) 

> Servlet authentication
> ----------------------
>
>                 Key: TOBAGO-1779
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1779
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 4.0.0
>            Reporter: Guido Dubois
>
> I want to use FORM Authentication, but it doesn't work.
> I manipulate the login form according to the addressbook example.
> **
>  * This code is needed to "repair" the submit parameter names and url to use
>  * the names that a required for servlet authentication.
>  */
>   function() {
>     
> jQuery(Tobago.Utils.escapeClientId('page:j_username::field')).attr('name', 
> 'j_username');
>     
> jQuery(Tobago.Utils.escapeClientId('page:j_password::field')).attr('name', 
> 'j_password');
>     jQuery(Tobago.Utils.escapeClientId('page::form')).attr('action', 
> jQuery('[data-tobago-context-path]').data('tobago-context-path') + 
> '/j_security_check');
>   },
> I have to change the searched field IDs. The field names are correctly 
> setted. The action right to. On error there is not displayed the configured 
> error-page. <tc:script> and <tc:style> are no more inserted.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to