Field highlighting in a datatable...

Hello all,

I trying to create a datatable contains lots of input and highlights the field in error. My problem is with the field highlighting.

I am using tomahawk's datatable for the rowIndexVar functionality and tomahawks inputText to force the id. My problem is when it comes to use get a message for the forced id, when the page loads i get the error:

ERROR (HtmlMessageRendererBase.java:80) - Could not render Message. Unable to find component 'deadline[0]' (calling findComponent on component '_id15:sequences:0:_id37'). If the provided id was correct, wrap the message and its component into an h:panelGroup or h:panelGrid.

My code is:

<t:dataTable id="sequences" rowIndexVar="index" rowCountVar="rowcount"

value="#{Mybean.whatever}" var="notused">

<t:column>

<f:facet name="header">

<h:outputText value="Deadline (days)"/>

</f:facet>

<h:panelGroup>

<t:inputText id="deadline" forceId="true" forceIdIndex="true" value="#{Mybean.deadlines[index]}"/>

<t:message for="deadline[#{index}]"/>

</h:panelGroup>

</t:column>

<!-- more column's here -->

</t:dataTable>

Any help would be appreciated!

[1615 byte] By [DigitalDreamera] at [2007-11-26 16:31:53]
# 1
Why not just<t:message for="deadline"/>?
BalusCa at 2007-7-8 22:56:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for the reply!i changed to <t:message for="deadline"/>and the "Could not render Message." error has gone.The message is not displayed though, unless i move the <t:inputText/> and <t:message/> outside the datatable!
DigitalDreamera at 2007-7-8 22:56:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Try upgrading the JSF version. In SUN JSF RI it just works (h:inputText/h:message in h:dataTable, that is). Not sure about Tomahawk tho, because I don't use it.
BalusCa at 2007-7-8 22:56:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

I am using the latest Sun JSF 1.1 RI (cant use 1.2 because jdk 1.4 is a requirement) and the latest stable Tomahawk.

I will will test without Tomahawk to see if the message works. I cant see how i can identify a row to highlight without using tomahawks forceId="true" and forceIdIndex="true" though.

Thanks again

DigitalDreamera at 2007-7-8 22:56:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...