I'm trying to write a "dateTime" component that has two children, one
for date and one for time.  I want the value binding to be on the
dateTime component and used in the children.  dateTime's
getSubmittedValue() will combine the date & time values of the children
into a new date.

I got encodeBegin() to set the valueBinding on the children.  But in
getSubmittedValue() I call getChildren().get(0).getSubmittedValue() and
get null.  I've tried invoking the children's decode() methods in
dateTime's decode() but that didn't help.

What else do I need to do to make this work?  Thanks!




Here's what the component tree looks like:

<h:panelGroup>
    <jp:popupCalendar for="ddd1" format="MM/dd/yyyy" noneDisabled="true"/>
    <x:inputDateTime id="dt" value="#{formbean.form.datetime1}"
required="true">
        <h:inputText id="ddd1">
            <f:convertDateTime pattern="MM/dd/yyyy"
timeZone="#{jsfUtils.tz}"/>
        </h:inputText>
        <t:inputDate id="ttt1" type="time" ampm="true"/>
    </x:inputDateTime>
</h:panelGroup>


Note that "jp:popupCalendar" is a Jenia component that uses javascript
to act upon the "inputText" date.

-- 
Dave Brondsema
Software Developer
Cornerstone University

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to