[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-4455) Seamspace -- viewIds in s:link and s:button

Wolfgang Schwendt (JIRA) jira-events at lists.jboss.org
Sat Oct 31 12:36:05 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wolfgang Schwendt updated JBSEAM-4455:
--------------------------------------

    Attachment: seamspaceViewIdPath.txt


> Seamspace -- viewIds  in s:link and s:button
> --------------------------------------------
>
>                 Key: JBSEAM-4455
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4455
>             Project: Seam
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 2.2.0.GA
>         Environment: Seam 2.2 Rev. 11569 http://anonsvn.jboss.org/repos/seam/branches/community/Seam_2_2
>            Reporter: Wolfgang Schwendt
>            Priority: Trivial
>         Attachments: seamspaceViewIdPath.txt
>
>
> When s:link and s:button are used in the facelets view template files of  the Seamspace example,
> the JSF viewId to link to is written incorrectly.
> Right now in the Seamspace example, the viewId to link to is written as follows:
> s:link  view="/friendrequest.seam" value="Send a friend request" propagation="none"...
> Instead of using the suffix/extension ".seam", the viewId to link to must be correctly written with the suffix/extension ".xhtml":
> s:link  view="/friendrequest.seam" value="Send a friend request" propagation="none"...
> If ".seam" is used rather than ".xhtml", it leads to the missing propagation of page parameters.  When an s:link/s:button is rendered, UISeamCommandBase.getUrl() retrieves the set of page parameters from Pages.getStringValuesFromModel().    The Pages component holds metadata for pages defined in pages.xml, including page parameters.  When the wrong viewId is used, Pages.getStringValuesFromModel() does not find the page parameters for the JSF view to link to, and therefore page parameters are omitted when rendering the link.   For example, when the viewID is written with '.seam', the link for sending a friend request is rendered with the target URL  http://127.0.0.1:8080/seamspace/friendrequest.seam, but it should be http://127.0.0.1:8080/seamspace/friendrequest.seam?name=shadowman

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

        


More information about the seam-issues mailing list