AndroMDA/JIRA Created: (JSF-47) JSF2 : Populator not generated when there is no transition outgoing an action state

View: New views
4 Messages — Rating Filter:   Alert me  

AndroMDA/JIRA Created: (JSF-47) JSF2 : Populator not generated when there is no transition outgoing an action state

by JIRA jira@andromda.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JSF2 : Populator not generated when there is no transition outgoing an action state
-----------------------------------------------------------------------------------

         Key: JSF-47
         URL: http://jira.andromda.org/browse/JSF-47
     Project: JSF cartridge
        Type: Bug

    Versions: 3.4-SNAPSHOT    
 Environment: All
    Reporter: Jean-Marc Collin
 Assigned to: Chad Brandon


Action state without outgoing transition are needed to generate PDF for example.
The workaround I found was to comment the line 210 in the Controller.java.vsl template file. But I don't know if it is a correct solution.

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

AndroMDA/JIRA Assigned: (JSF-47) JSF2 : Populator not generated when there is no transition outgoing an action state

by JIRA jira@andromda.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://jira.andromda.org/browse/JSF-47?page=all ]

Walter Itamar Mourão reassigned JSF-47:
---------------------------------------

    Assign To: Walter Itamar Mourão  (was: Chad Brandon)

> JSF2 : Populator not generated when there is no transition outgoing an action state
> -----------------------------------------------------------------------------------
>
>          Key: JSF-47
>          URL: http://jira.andromda.org/browse/JSF-47
>      Project: JSF cartridge
>         Type: Bug

>     Versions: 3.4-SNAPSHOT
>  Environment: All
>     Reporter: Jean-Marc Collin
>     Assignee: Walter Itamar Mourão

>
> Action state without outgoing transition are needed to generate PDF for example.
> The workaround I found was to comment the line 210 in the Controller.java.vsl template file. But I don't know if it is a correct solution.

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

AndroMDA/JIRA Commented: (JSF-47) JSF2 : Populator not generated when there is no transition outgoing an action state

by JIRA jira@andromda.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.andromda.org/browse/JSF-47?page=comments#action_16074 ]

Walter Itamar Mourão commented on JSF-47:
-----------------------------------------

Could you please change the line 210:

${action.useCase.actionClassName}ViewPopulator.populateFormAndViewVariables(this.getContext(), null);

to:

#if(!$controller.useCase.getViews().isEmpty())
                ${action.useCase.actionClassName}ViewPopulator.populateFormAndViewVariables(this.getContext(), null);
#end


and test with your project ?
Thanks in advance,

> JSF2 : Populator not generated when there is no transition outgoing an action state
> -----------------------------------------------------------------------------------
>
>          Key: JSF-47
>          URL: http://jira.andromda.org/browse/JSF-47
>      Project: JSF cartridge
>         Type: Bug

>     Versions: 3.4-SNAPSHOT
>  Environment: All
>     Reporter: Jean-Marc Collin
>     Assignee: Walter Itamar Mourão

>
> Action state without outgoing transition are needed to generate PDF for example.
> The workaround I found was to comment the line 210 in the Controller.java.vsl template file. But I don't know if it is a correct solution.

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

AndroMDA/JIRA Commented: (JSF-47) JSF2 : Populator not generated when there is no transition outgoing an action state

by JIRA jira@andromda.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.andromda.org/browse/JSF-47?page=comments#action_16079 ]

Jean-Marc Collin commented on JSF-47:
-------------------------------------

it works. But the generated code can be optimized. Here is what is generated :

            final javax.faces.application.FacesMessage.Severity messageSeverity = this.getMaximumMessageSeverity();
            if (messageSeverity != null && javax.faces.application.FacesMessage.SEVERITY_ERROR.getOrdinal() <= messageSeverity.getOrdinal())
            {
                this.setForm("form", currentForm, false);
            }

            // this if shouldn't be generated
            if (event != null)
            {
               
            }

> JSF2 : Populator not generated when there is no transition outgoing an action state
> -----------------------------------------------------------------------------------
>
>          Key: JSF-47
>          URL: http://jira.andromda.org/browse/JSF-47
>      Project: JSF cartridge
>         Type: Bug

>     Versions: 3.4-SNAPSHOT
>  Environment: All
>     Reporter: Jean-Marc Collin
>     Assignee: Walter Itamar Mourão

>
> Action state without outgoing transition are needed to generate PDF for example.
> The workaround I found was to comment the line 210 in the Controller.java.vsl template file. But I don't know if it is a correct solution.

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference