Skip to content

Commit 3bf38b7

Browse files
authored
Manipulate and pass around ActionURLs, not Strings (#96)
1 parent 7a0b69b commit 3bf38b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/src/org/labkey/demo/DemoController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private DataRegion getDataRegion()
354354

355355
DisplayColumn col = rgn.getDisplayColumn("RowId");
356356
ActionURL updateURL = new ActionURL(UpdateAction.class, getContainer());
357-
col.setURL(updateURL.toString() + "rowId=${RowId}");
357+
col.setURL(updateURL.addParameter("rowId", "${RowId}"));
358358
col.setDisplayPermission(UpdatePermission.class);
359359

360360
ButtonBar gridButtonBar = new ButtonBar();

0 commit comments

Comments
 (0)