I do not think there is a difference that matters between  RC1 and RC2 
with this regards.
Oh yes, we do not apply Ajax in that situation.




Robert Morse <[EMAIL PROTECTED]> 
26.10.2007 16:37
Bitte antworten an
"MyFaces Discussion" <[email protected]>


An
"MyFaces Discussion" <[email protected]>
Kopie
Robert Morse <[EMAIL PROTECTED]>
Thema
Re: Antwort: Re: Trinidad inputDate No RenderingContext 






I can get it to work as well, but not when it's rendered via Ajax.  Or are 
you saying RC1 works in the way I described earlier?

On Oct 26, 2007, at 8:33 AM, [EMAIL PROTECTED] wrote:


Hi, 

For 2.0 RC1 it works. Note that we use light weight popups which you can 
setup as a trinidad property web.xml 
plus chooseDate. That might also make a difference.. 

See also somewhere in this mailing list the chooseDate examples. 

Best wishes, 
Wolfgang. 




Robert Morse <[EMAIL PROTECTED]> 
26.10.2007 15:55 

Bitte antworten an
"MyFaces Discussion" <[email protected]>



An
"MyFaces Discussion" <[email protected]> 
Kopie
Robert Morse <[EMAIL PROTECTED]> 
Thema
Re: Trinidad inputDate No RenderingContext 








That is correct.  2.0.0.CR2.   There's no version number on some of  
the jars included in that distribution, but I'm using whatever was  
placed there.
Seems to be related to the javascript that creates the popup calendar  
since it works with the Tomahawk component as long as the  
popupCalendar attribute is false.

On Oct 26, 2007, at 7:03 AM, Matthias Wessendorf wrote:

> the main diff is, you are on 2.x other weren't, right ?
>
> -M
>
> On 10/26/07, Robert Morse <[EMAIL PROTECTED]> wrote:
>> 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.FacesContextFactoryIm 
>>>> pl
>>>> [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
>>
>>
>
>
> -- 
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org



Reply via email to