[ 
http://jira.nuxeo.org/browse/NXP-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44448#action_44448
 ] 

Anahide Tchertchian commented on NXP-2570:
------------------------------------------

method to attach a message to a given component has change in seam2: 
FacesMessages#add(String id, FacesMessage facesMessage) has been renamed to 
FacesMessages#addToControl(String id, FacesMessage facesMessage).
The old method does not trigger any error but does not have the appropriate 
behaviour.

=> change this in:
- DocumentTaskActionsBean#rejectOneTask (used to trigger error message if no 
comment is filled when rejecting a task)
- PublishingActionsListenerBean#rejectDocument (triggers error message when 
rejecting a publishing without comment)
- VocabularyActionsBean#addVocabularyEntry (error message when adding an entry 
with an id that already exists)
- GroupManagerActionsBean#saveGroup
- UserManagerActionsBean#changePassword and #savePassword

Note that all these are bad practices: it involves hard coding the jsf 
component id as in the template and is not generic enough. Using standard jsf 
validators would be the good way to code this.

> Fix jsf issues 
> ---------------
>
>                 Key: NXP-2570
>                 URL: http://jira.nuxeo.org/browse/NXP-2570
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Sub-task
>    Affects Versions: 5.2 M2
>            Reporter: Anahide Tchertchian
>            Assignee: Anahide Tchertchian
>             Fix For: 5.2 M3
>
>
> Some issues are raised when sun ri jsf implementation is used without any 
> myfaces library around:
> - the default encoding is "application/xhtml+xml" instead of "text/html" 
> because we're taking the sun ri default encoding now that trinidad is not the 
> default render kit.
> - the sun ri render kit may not behave the same than trinidad's 
> (responseWriter.writeText can raise a NullPointerException when writing a 
> null text, for instance)
> - phase listeners may be registered twice : sun ri implementation differences 
> between 1.2_04 and 1.2_09 has changed, and duplicate phase listeners are not 
> filtered by name anymore (only by listener instance equality) => 
> SeamPhaseListener is registered twice on the same life cycle (and others too)

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

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to