[
https://issues.jboss.org/browse/JBSEAM-2697?page=com.atlassian.jira.plugi...
]
krishna chaitanya commented on JBSEAM-2697:
-------------------------------------------
Hi,I am facing URLS problem
http://localhost:8080/ordermanagement_exportshipment/ItShipmentOrderEdit....,
when I use it inside rich:extendedDatatable I am getting this ugly url.I want to display
it as
http://localhost:8080/ordermanagement_exportshipment/ItShipmentOrderEdit....
but I am geeting that ugly url can any one could please solve this.I tried with
omitDataModelSelectionParameter="true" propagation="none" in
<s:link> but still it appeares and also <f:param name=dataModelSelection>.
Thanks in advance
Add attribute to s:link tag to make creation of magic
dataModelSelection URL parameter optional
-----------------------------------------------------------------------------------------------
Key: JBSEAM-2697
URL:
https://issues.jboss.org/browse/JBSEAM-2697
Project: Seam 2
Issue Type: Feature Request
Components: JSF Controls
Affects Versions: 2.0.1.GA
Reporter: Wolfgang Schwendt
Priority: Minor
Labels: patch
Attachments: JBSEAM-2697-patch-20081023.txt
When an s:link component (org.jboss.seam.ui.component.UILink) is placed into a
h:dataTable backed by a javax.faces.model.DataModel, the s:link automatically generates
the magic token for the magic "dataModelSelection" parameter regardless of
whether the latter is really needed or not.
This can generate ugly URLs. The following example is particulary ugly:
http://127.0.0.1:8080/seminaris/seminarDetails.seam?seminarId=2&dataM...
Without the "dataModelSelection" parameter, the URL would look much cleaner:
http://127.0.0.1:8080/seminaris/seminarDetails.seam?semId=2
So my question: Couldn't we make the "dataModelSelection" parameter
optional? (For example, by adding an attribute to the s:link tag).
Btw: I'm aware that org.jboss.seam.ui.component.UISeamCommandBase.getUrl() is the
culprit that triggers inclusion of the the dataModelSelection parameter, so I know how to
remove the dataModelSelection parameter generation, but it would be nice if also the
officially released Seam version allowed the deactivation of the magic token generation.
Further, no magic token is generated if a UIDataTable is supplied by a normal List rather
than a DataModel (cf. UISeamCommandBase.getSelection() ), but unfortunately there can be
cases where it makes sense to supply the table data as DataModel rather than normal List.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira