Hi,
I've got a table containing one column of aj4:commandLinks.
I am trying to use spatial key navigation using CSS3 styles between the links so I need to know the ids for the style attribute
I basically want something like
<a href="#" id="Link1" style="nav-index:1;nav-down:Link2">Link 1</a> <a href="#" id="Link2" style="nav-index:2;nav-up:Link1;nav-down:Link3">Link 2</a>
<a4j:form id="FormID"> <rich:dataTable id="TableID" var="stationEntry" value="#{StationListManager.entryList}" rendered="#{not empty StationListManager.entryList}"> <rich:column id="ColID"> <a4j:commandLink value="#{stationEntry.station.name}" id="#{StationListManager.getStationId(stationEntry)}" style="#{stationEntry.navString}" action="#{stationsHome.selectStation(stationEntry.station)}" reRender="NowNext"> </a4j:commandLink> </rich:column> </rich:dataTable> </a4j:form>
id="#{StationListManager.getStationId(stationEntry)}"is called before the function for the value attribute in the dataTable
value="#{StationListManager.entryList}"and stationEntry is null at that time.
id="#{StationListManager.getStationId(stationEntry)}"is only called once! I expected it to be called for every link.