Hey guys,
I've got a setup where I want to edit columns in place similar to: http://demo.raibledesigns.com/appfuse/demos/users-edit.jsp
I have an Edit and Delete link on each row. When I click the Edit link, I get the same functionality as in the example above, but I lose the sorting that may have already been done due to the displaytag sorting related params not being passed in my edit link.
So, is there a way to get access to these diaplaytag params and add them to my edit link so I can do my edits in line and still maintain sorting order?
Thanks
-John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sounds like I'm doing something similar and what u have to keep in mind is that whenever your're causing a sort to happen, you have to make sure you pass along those params as part of the request parameters. All the tag has to do is see them and it'll sort right.
However, I'm not sure - cuz I haven't really dug into this much yet - if it will pick up request parameters or attributes. Or also, if it will look for those sort params in the page/request/session scope. If the latter is true, then you could session the params. If not, then you'll have to do some tricks and make sure that those params are included in every POST/GET back to the server.
In my example, I have a main page with a displaytag table nested in an iframe and in the calling page, I just make sure I append those params to the end of the iframe url.
hth,
Jason
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Jason,
Thanks for the post. Yes, so what I really want to do is what you describe. I would like to append those sort params to the end of a URL. So my question is, how do you grab these params to append to your iframe url? Do you pull them out "by hand" in your jsp (i.e. String param = request.getParameter("sortParam")?
how do you know the correct params to grab out of the request? For example, I just went to one of my pages and sorted a table and I see a param called "d-968-s" that I think is a sort param, but this looks like a dyamically generated ID. Is there some facility included in displaytag that I'm missing for grabbing these params from the request to use as you do in your iframe url?
Thanks!
-John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey guys,
I've got a setup where I want to edit columns in place similar to:
http://demo.raibledesigns.com/appfuse/demos/users-edit.jsp
I have an Edit and Delete link on each row. When I click the Edit link, I get the same functionality as in the example above, but I lose the sorting that may have already been done due to the displaytag sorting related params not being passed in my edit link.
So, is there a way to get access to these diaplaytag params and add them to my edit link so I can do my edits in line and still maintain sorting order?
Thanks
-John
Hi John,
Sounds like I'm doing something similar and what u have to keep in mind is that whenever your're causing a sort to happen, you have to make sure you pass along those params as part of the request parameters. All the tag has to do is see them and it'll sort right.
However, I'm not sure - cuz I haven't really dug into this much yet - if it will pick up request parameters or attributes. Or also, if it will look for those sort params in the page/request/session scope. If the latter is true, then you could session the params. If not, then you'll have to do some tricks and make sure that those params are included in every POST/GET back to the server.
In my example, I have a main page with a displaytag table nested in an iframe and in the calling page, I just make sure I append those params to the end of the iframe url.
hth,
Hi Jason,
Thanks for the post. Yes, so what I really want to do is what you describe. I would like to append those sort params to the end of a URL. So my question is, how do you grab these params to append to your iframe url? Do you pull them out "by hand" in your jsp (i.e. String param = request.getParameter("sortParam")?
how do you know the correct params to grab out of the request? For example, I just went to one of my pages and sorted a table and I see a param called "d-968-s" that I think is a sort param, but this looks like a dyamically generated ID. Is there some facility included in displaytag that I'm missing for grabbing these params from the request to use as you do in your iframe url?
Thanks!
-John