Ich möchte eine Tooltip für jede Zelle in einer Tabelle hinzufügen. Die Tabelle enthält 126 Zellen und ich muss einen kurzen Weg finden, Tooltip hinzuzufügen. Jedoch muss jeder von ihnen seinen eigenen Titel haben. Daher muss Tooltip sowohl für jedes Element als auch anpassbar sein. Gibt es einen Weg dies zu tun, besonders in PrimeFaces? Danke.Wie füge ich einen Tooltip für mehrere Elemente hinzu?
<tr>
<td id="0-0" onclick="locationClick(this)" class="table_cell" > info1 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,0)}</span></td>
<td id="0-1" onclick="locationClick(this)" class="table_cell" > info2 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,1)}</span></td>
<td id="0-2" onclick="locationClick(this)" class="table_cell" > info3 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,2)}</span></td>
<td id="0-3" onclick="locationClick(this)" class="table_cell" > info4 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,3)}</span></td>
<td id="0-4" onclick="locationClick(this)" class="table_cell" > info5 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,4)}</span></td>
<td id="0-5" onclick="locationClick(this)" class="table_cell" > info6 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,5)}</span></td>
<td id="0-6" onclick="locationClick(this)" class="table_cell" > info7 <br/> <span class="table_cell_line2">#{preparedProgramBean.getSecondLineInfoOfLocation(0,6)}</span></td>
</tr>
Gehst du zu Laden Sie den Inhalt der Tooltips aus der DB oder aus einem Array von Tooltips oder etwas anderem, sagen Sie bitte, wo Sie den Inhalt der Tooltipps laden werden? – SAM
Von verwalteten Bean –
Aus einer Reihe von Kursobjekten. Kurze Namen werden natürlich in der Tabelle angezeigt und der Tooltip sollte den vollständigen Namen anzeigen. –