Correct version is Trinidad 1.0.4, not 1.0.9. Sorry for the inconvenience.
> -----Original Message----- > From: Sergio Calvo Abarca > Sent: Tuesday, October 14, 2008 4:57 PM > To: '[email protected]' > Subject: Trinidad 1.0.9 issue with Iterator and and convertDatetime > pattern > > Hi All, > > I have an array of objects put in the FlowScope by a managed bean. Each one > is of my class Question and represent certain values, one is a String > property named mask. It is supposed to provide the value for the pattern > attribute of the ConvertDateTime component. I need to iterate the array to > display all the potential options. I have the code below using an iterator > but I am having an issue with the set of the pattern: > > A wired value like this pattern="#{pageFlowScope.questions[4].mask}" works > fine, but when I use the expected question.mask instead, the value is never > set properly in the ConvertDateTime. I am not sure if this is related with > the fact that var property on the iterator does not support EL (according to > documentation). I made a fresh install of trinidad+examples but found > nothing, the components seem to be well used according to components demo. > > I am 100% sure the bean and the flowscope have the right values on them. I > can't upgrade the version due to certain constraints and I do need the > iteration behavior for retrieving all the possible masks. I also tryed a > c:forEach tag both from jstl and trinidad itself but the first does not work > (ie. does not show anything on the scring) and the second one throws a not > defined component error. > > Does anyone have a hint or work-around to put me in the right direction? > > <tr:iterator id="question" var="question" varStatus="stat" > value="#{pageFlowScope.questions}"> > > <tr:inputDate id="answer" > rendered="#{question.options == null and question.type > == 'date' and question.mask != 'short date' and question.mask != 'long > date'}"> > <tr:convertDateTime > pattern="#{pageFlowScope.questions[4].mask}" > > secondaryPattern="#{messages.values.rtdsServiceQuestionMaskDate}" > > messageDetailConvertDate="#{messages.values.pageQAValidationInvalidDate}" /> > </tr:inputDate> > . . . > <tr:spacer height="5" /> > </tr:iterator> > > Thannks for your help, > Sergio.

