Andrew Robinson wrote:
What trinidad build are you using?
Trinidad 1.0.5,
MyFaces Core 1.1.5
colons should not be necessary for components in the same naming
container.
Tried with and without. Using the colons clearly does not work because
it issues the warning:
WARNING: Could not find partial trigger :::finalMarkField from
CoreInputDate[UIXEditableFacesBeanImpl, id=_idJsp12]
With no preceding colons there is no warning generated, but the field is
never refreshed either. The value change method is below, as is a
stripped down jsp. I can see the value change being fired, but where
would I even set a breakpoint to tell if anything is happening on the
partialTriggers side?
public void finalMarkChanged( ValueChangeEvent event )
{
StudentSection ss = (StudentSection) m_Table.getRowData();
ss.setWithdrawalDate(new Date()); // I'm assuming that this
instance is still around to refresh the field from
System.out.println( "finalMarkChanged for " +
ss.getStudentName() + " " + ss.getWithdrawalDate() );
}
<f:view>
<tr:document title="#{bundle.ClassListHeader}">
<body class="page-background">
<h:form>
<h:panelGrid headerClass="page-header" styleClass="panel"
columns="1" cellpadding="5">
<h:messages showDetail="true" showSummary="false" styleClass="errors"/>
<h:dataTable styleClass="dataTable"
rowClasses="list-row-even,list-row-odd" cellpadding="4"
border="0"
headerClass="list-header"
cellspacing="0"
value="#{classListBean.studentSections}"
var="studentSec"
binding="#{classListBean.table}">
<h:column>
<f:facet name="header">
<h:commandLink styleClass="table-header" id="studentDesc"
actionListener="#{classListBean.sort}">
<h:outputText value="#{bundle.StudentColHeader}"/>
</h:commandLink>
</f:facet>
<h:outputText value="#{studentSec.studentName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.ClassListFinalMarkHeader}"
styleClass="label"/>
</f:facet>
<tr:inputText id="finalMarkField"
columns="5"
value="#{studentSec.finalMark}"
autoSubmit="true"
valueChangeListener="#{classListBean.finalMarkChanged}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText
value="#{bundle.ClassListWithdrawalDateHeader}" styleClass="label"/>
</f:facet>
<tr:inputDate columns="11"
partialTriggers=":::finalMarkField"
value="#{studentSec.withdrawalDate}"
required="false" >
<f:convertDateTime pattern="dd-MMM-yyyy"
timeZone="#{configBundle.TimeZone}"/>
</tr:inputDate>
</h:column>
</h:dataTable>
</h:panelGrid>
</h:form>
</body>
</tr:document>
</f:view>
On Feb 8, 2008 10:31 AM, Shane Petroff <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Matthias Wessendorf wrote:
> ah,
> I just noticed, that "finalMarkField" is inside a table (naming
container).
> haven't read your code carefully, sorry.
>
> can you *try* partialTriggers=":::finalMarkField" ?
>
No joy... cleared the browser cache first, then dumped tomcat's cache,
did a full build and restarted the server. I also tried :: and ::::
variants (3 does appear to be the correct number though based on the
generated html), but still no partial triggers refresh. Would it
be more
likely to work if I switched to a tr:table?
--
Shane
--
Shane