Hello Matthias!
I have the jar in place, and the web.xml file as described in the wiki.
I checked the e-mail archives, and it appears this issue, or
something similar, came up in July, but it doesn't appear to be
resolved.
Thanks for your reply!
-robert.
On Oct 26, 2007, at 5:40 AM, Matthias Wessendorf wrote:
Not sure,
but some thoughts.
there is a special JAR for ajax4jsf and trinidad;
also this wiki page contains some informations:
http://wiki.apache.org/myfaces/TrinidadSeamAjax4Jsf
-Matthias
On 10/26/07, Robert Morse <[EMAIL PROTECTED]> wrote:
Hello,
My environment is Seam 2.0.0.RC2 and the related trinidad jars
included in
that distribution.
My application consists of several web pages that change based on
the user
input utilizing the ajax components in Seam.
For example, if a user clicks on a radio button, then a couple more
questions may appear on the screen. Pretty basic stuff.
Everything has been fine, except when I went to use the Trinidad
inputDate
component. I have it so it gets rendered if some
other value has been selected. When I execute, I get a
NullPointerException with the following:
04:53:01,411 WARN [lifecycle] executePhase(RENDER_RESPONSE
6,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl
[EMAIL PROTECTED])
threw exception
java.lang.IllegalStateException: No RenderingContext
If I replace the component with the Tomahawk version (t:inputDate),
everything works fine. However, if I specify
popupCalendar="true" for the
Tomahawk inputDate, then I get the No RenderContext error again.
Any suggestions?
The code from my web page looks like:
This fails:
<h:form id="formId">
<tr:panelGroupLayout layout="default">
<tr:panelFormLayout maxColumns="3" rows="1">
<tr:outputLabel value="#{msgs.sampleLabel}" />
<tr:selectOneRadio id="testRadioId"
value="#{test.radioValue">
<tr:selectItem label="Yes" value="Y" />
<tr:selectItem label="No" value="N" />
<a:support event="onclick" reRender="followUp" />
</tr:selectOneRadio>
</tr:panelFormLayout>
<a:outputPanel id="followUp">
<tr:inputText id="testInputId"
label="#{msgs.sampleInputLabel}"
rendered="#{test.radioValue}"
value="#{test.inputValue}" />
<tr:inputDate id="testDate"
rendered="#{test.radioValue}"
value="#{test.dateValue}" />
</a:outputPanel>
This works:
<h:form id="formId">
<tr:panelGroupLayout layout="default">
<tr:panelFormLayout maxColumns="3" rows="1">
<tr:outputLabel value="#{msgs.sampleLabel}" />
<tr:selectOneRadio id="testRadioId"
value="#{test.radioValue">
<tr:selectItem label="Yes" value="Y" />
<tr:selectItem label="No" value="N" />
<a:support event="onclick" reRender="followUp" />
</tr:selectOneRadio>
</tr:panelFormLayout>
<a:outputPanel id="followUp">
<tr:inputText id="testInputId"
label="#{msgs.sampleInputLabel}"
rendered="#{test.radioValue}"
value="#{test.inputValue}" />
<t:inputDate id="testDate"
rendered="#{test.radioValue}"
value="#{test.dateValue}" />
</a:outputPanel>
This also fails:
<h:form id="formId">
<tr:panelGroupLayout layout="default">
<tr:panelFormLayout maxColumns="3" rows="1">
<tr:outputLabel value="#{msgs.sampleLabel}" />
<tr:selectOneRadio id="testRadioId"
value="#{test.radioValue">
<tr:selectItem label="Yes" value="Y" />
<tr:selectItem label="No" value="N" />
<a:support event="onclick" reRender="followUp" />
</tr:selectOneRadio>
</tr:panelFormLayout>
<a:outputPanel id="followUp">
<tr:inputText id="testInputId"
label="#{msgs.sampleInputLabel}"
rendered="#{test.radioValue}"
value="#{test.inputValue}" />
<t:inputDate id="testDate"
popupCalendar="true"
rendered="#{test.radioValue}"
value="#{test.dateValue}" />
</a:outputPanel>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org