[ 
https://issues.jboss.org/browse/JBSEAM-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12692427#comment-12692427
 ] 

krishna chaitanya commented on JBSEAM-2697:
-------------------------------------------

Hi,I am facing URLS problem 
http://localhost:8080/ordermanagement_exportshipment/ItShipmentOrderEdit.seam?extendedDataTable=%2Fordermanagement_exportshipment%2FItShipmentOrderList.xhtml&page=&actionMethod=ordermanagement_exportshipment%2FItShipmentOrderList.xhtml%3AitShipmentOrderAction.selectItShipmentOrder&dataModelSelection=_itShipmentOrder%3AitShipmentOrders%5B0%5D,
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.seam?page=2
 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&dataModelSelection=sem%3AzumSeminarAnmelden_szSeminarSuchen_seminarListeDataModel%5B1%5D&actionMethod=zumSeminarAnmelden%2FseminarSuchen.xhtml%3AzumSeminarAnmelden_seminarBuchenAction.selectSeminar
> 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

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to