I am using DynamicMapFilter. 
I am using conventional url /context/location/updateinput?location.id=40 
@UrlBinding("/location") 
LocationBean{ 
Location location 

You get the idea it is CRUD on location object. 
I was able to create with the above using /context/location/createinput? 

Does auto binding require the form of /location/{location}/{id} 
that would be too bad. 



----- Original Message -----
From: "Adam Stokar" <ajsto...@gmail.com> 
To: "Stripes Users List" <stripes-users@lists.sourceforge.net> 
Sent: Saturday, February 11, 2012 11:31:28 AM 
Subject: Re: [Stripes-users] url param binding to actiobean object 

What is your URLBinding for the action bean? It should look something like 
this: 

@UrlBinding(value="/actionName/{ location.id }") 

and URL would be <a href="/context/actionName/40 


On Sat, Feb 11, 2012 at 10:58 AM, < ted_smith2...@comcast.net > wrote: 




Hi: 

I have a URL like 
<a href="/context/actionName? location.id =40" 
and my action bean class like 
class AB { 
protected Location location 
public getLocation 
public setLocation...... 
} 
class Location{ 
private id; 
public getId 
public setId(Integer id)... 
} 
I would expect clicking the link would auto create the location object and set 
the id to be "40" 
but my test shows the location object remains to be null when the handler is 
called. 

But similar binding works if I use post inside a form. 

Thanks in advance. 








------------------------------------------------------------------------------ 
Virtualization & Cloud Management Using Capacity Planning 
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service. 
http://www.accelacomm.com/jaw/sfnl/114/51521223/ 
_______________________________________________ 
Stripes-users mailing list 
Stripes-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/stripes-users 





------------------------------------------------------------------------------ 
Virtualization & Cloud Management Using Capacity Planning 
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service. 
http://www.accelacomm.com/jaw/sfnl/114/51521223/ 
_______________________________________________ 
Stripes-users mailing list 
Stripes-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/stripes-users 
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to