1 package org.musicontroller.gui.components; 2 3 import org.apache.tapestry.AbstractComponent; 4 import org.apache.tapestry.IMarkupWriter; 5 import org.apache.tapestry.IRequestCycle; 6 7 public abstract class PlaylistRequester extends AbstractComponent { 8 9 public abstract Long getPlaylistid(); 10 11 protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { 12 writer.begin("a"); 13 writer.attribute("href","javascript:RequestPlaylist("+getPlaylistid()+")"); 14 writer.print("request"); 15 writer.end(); 16 } 17 18 }