|
17 | 17 | import org.labkey.api.util.DateUtil; |
18 | 18 | import org.labkey.api.util.HtmlString; |
19 | 19 | import org.labkey.api.util.HtmlStringBuilder; |
20 | | -import org.labkey.api.util.Link; |
| 20 | +import org.labkey.api.util.LinkBuilder; |
21 | 21 | import org.labkey.api.view.ActionURL; |
22 | 22 | import org.labkey.api.writer.HtmlWriter; |
23 | 23 | import org.scharp.atlas.pepdb.model.PeptideGroup; |
|
26 | 26 | import org.scharp.atlas.pepdb.model.ProteinCategory; |
27 | 27 | import org.springframework.validation.Errors; |
28 | 28 |
|
29 | | -import java.io.IOException; |
30 | | -import java.io.Writer; |
31 | 29 | import java.sql.SQLException; |
32 | 30 | import java.util.List; |
33 | 31 | import java.util.Map; |
@@ -452,10 +450,9 @@ public void renderGridCellContents(RenderContext ctx, HtmlWriter out) |
452 | 450 | Integer peptideId = (Integer) rowMap.get(c.getName()); |
453 | 451 | try |
454 | 452 | { |
455 | | - new Link.LinkBuilder("P" + peptideId).clearClasses() |
| 453 | + LinkBuilder.simpleLink("P" + peptideId, new ActionURL(PepDBController.DisplayPeptideAction.class, getContainer()) |
| 454 | + .addParameter(PepDBSchema.COLUMN_PEPTIDE_ID, peptideId)) |
456 | 455 | .target("_self") |
457 | | - .href(new ActionURL(PepDBController.DisplayPeptideAction.class, getContainer()) |
458 | | - .addParameter(PepDBSchema.COLUMN_PEPTIDE_ID, peptideId)) |
459 | 456 | .build() |
460 | 457 | .appendTo(out); |
461 | 458 | } |
@@ -528,10 +525,9 @@ public void renderGridCellContents(RenderContext ctx, HtmlWriter out) |
528 | 525 | Integer peptidePoolId = (Integer) rowMap.get(c.getName()); |
529 | 526 | try |
530 | 527 | { |
531 | | - new Link.LinkBuilder("PP" + peptidePoolId).clearClasses() |
| 528 | + LinkBuilder.simpleLink("PP" + peptidePoolId, new ActionURL(PepDBController.DisplayPeptidePoolInformationAction.class, getContainer()) |
| 529 | + .addParameter(PepDBSchema.COLUMN_PEPTIDE_POOL_ID, peptidePoolId)) |
532 | 530 | .target("_self") |
533 | | - .href(new ActionURL(PepDBController.DisplayPeptidePoolInformationAction.class, getContainer()) |
534 | | - .addParameter(PepDBSchema.COLUMN_PEPTIDE_POOL_ID, peptidePoolId)) |
535 | 531 | .build() |
536 | 532 | .appendTo(out); |
537 | 533 | } |
@@ -606,10 +602,9 @@ public void renderGridCellContents(RenderContext ctx, HtmlWriter out) |
606 | 602 | { |
607 | 603 | if(parentPoolId != null) |
608 | 604 | { |
609 | | - new Link.LinkBuilder("PP" + parentPoolId).clearClasses() |
| 605 | + LinkBuilder.simpleLink("PP" + parentPoolId, new ActionURL(PepDBController.DisplayPeptidePoolInformationAction.class, getContainer()) |
| 606 | + .addParameter(PepDBSchema.COLUMN_PEPTIDE_POOL_ID, parentPoolId)) |
610 | 607 | .target("_self") |
611 | | - .href(new ActionURL(PepDBController.DisplayPeptidePoolInformationAction.class, getContainer()) |
612 | | - .addParameter(PepDBSchema.COLUMN_PEPTIDE_POOL_ID, parentPoolId)) |
613 | 608 | .build() |
614 | 609 | .appendTo(out); |
615 | 610 | } |
|
0 commit comments