Hi
I have a problem with my actionlistener that refuses to execute if it's within f.e a h:dataTable or a rich:dataGrid. The same "code" executes like a charm if it's outside the mentioned tags. Code:
<h:form id="eventidformtest">
<h:inputHidden id="eventid" value="2"/>
<h:commandLink
actionListener="#{eventController.sendEventListener}"
action="#{eventController.loadEvent}"
value="Resend event">
</h:commandLink>
</h:form>
/* the above works, the listener and action are executed */
<h:form>
<h:dataTable id="eventList"
style="border:none"
columnClasses="borderNone"
rowClasses="borderNoneEven,borderNoneOdd"
cellspacing="5"
rows="${fn:length(eventController.events)}"
value="#{eventController.events}"
var="event"
>
<h:column>
<h:panelGrid columns="12" style="border:none">
<h:outputText value="Id:" styleClass="label"></h:outputText>
<h:outputText value="${event.id}"/>
<h:outputText value="Type:" styleClass="label"></h:outputText>
<h:outputText value="${event.type}"/>
<h:outputText value="Created:" styleClass="label"></h:outputText>
<h:outputText value="${event.created}"/>
<h:outputText value="Environment:" styleClass="label"></h:outputText>
<h:outputText value="${event.environment}"/>
<h:outputText value="Tag:" styleClass="label"></h:outputText>
<h:outputText value="${event.tag}"/>
</h:panelGrid>
<h:panelGrid>
<h:inputHidden id="eventid" value="${event.id}"/>
<h:commandLink immediate="true"
actionListener="#{eventController.sendEventListener}"
action="#{eventController.loadEvent}"
value="Resend event">
</h:commandLink>
/* the above doesn't work, both the loadEvent and sendEventListener aren't executed */
</h:panelGrid>
<h:panelGrid columns="1">
<rich:simpleTogglePanel switchType="client" label="View XML" opened="false">
<h:outputText value="${event.data}" converter="XMLToHTMLConverter" styleClass="xml"/>
</rich:simpleTogglePanel>
</h:panelGrid>
</h:column>
</h:dataTable>
</h:form>
Any ideas on that the cause of this could be ?
Regards, Björn
[Message sent by forum member 'bjornf' (bfd_at_arcticgroup.se)]
http://forums.java.net/jive/thread.jspa?messageID=363237