]
Wolfgang Schwendt commented on JBSEAM-4455:
-------------------------------------------
I changed the title of the JIRA issue given that the exception thrown when the friend
request link was clicked on was fixed already in revision 11352.
Seamspace -- incorrect written viewIds
---------------------------------------
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
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: