ok, i tried, and in fact, i had a bad understanding of my probleme.
in fact, i use ajax to refresh the datepicker, and it doesnt refresh
the datepicker binded to the datetextfield.
i could of course refresh all the form, but it's a little overkill.
(and my form is pretty heavy)
i can't see how to refresh the datepicker cause it's a behavior and
not a component.
if someone can see a solution.
On Fri, Aug 22, 2008 at 12:13 AM, Julien Gaucher <[EMAIL PROTECTED]> wrote:
> ok, i understand this time and i definitively try this tomorow morning ;)
> thank you very much
>
> On Fri, Aug 22, 2008 at 12:08 AM, Jeremy Thomerson
> <[EMAIL PROTECTED]> wrote:
>> Sorry again - must be quitting time for me, too - to clarify, here's the
>> contents of DatePicker's isEnabled():
>>
>> @Override
>> public boolean isEnabled(Component component) {
>> return component.isEnabled() && component.isEnableAllowed();
>> }
>>
>> So, setEnableAllowed(false) on the COMPONENT (sorry) is what should do it
>> for you. Combine that with setVisibilityEnabled(false) on the component for
>> it to disappear, and you should (in theory) be good to go.
>>
>>
>> On Thu, Aug 21, 2008 at 4:59 PM, Julien Gaucher <[EMAIL PROTECTED]>wrote:
>>
>>> hum, well, in fact, there is no setEnable on datePicker, just isenable !
>>>
>>> On Thu, Aug 21, 2008 at 11:51 PM, Julien Gaucher <[EMAIL PROTECTED]>
>>> wrote:
>>> > i'll try that tomorrow morning when i'lle get back to work ;)
>>> > thank you for the hint
>>> >
>>> > On Thu, Aug 21, 2008 at 11:44 PM, Jeremy Thomerson
>>> > <[EMAIL PROTECTED]> wrote:
>>> >> Sorry, wasn't thinking and didn't have the code in front of me. It
>>> seems
>>> >> like if you are calling setVisibilityAllowed, that the behavior should
>>> not
>>> >> be rendered at all. But, either way, have you tried calling
>>> >> setEnabled(false) on the DatePicker behavior? This should definitely
>>> stop
>>> >> it from rendering.
>>> >>
>>> >> --
>>> >> Jeremy Thomerson
>>> >> http://www.wickettraining.com
>>> >>
>>> >>
>>> >>
>>> >> On Thu, Aug 21, 2008 at 4:25 PM, Julien Gaucher <[EMAIL PROTECTED]
>>> >wrote:
>>> >>
>>> >>> i use setvisibility on DateTextField, there is no setVisibility()
>>> >>> method on the datePicker .
>>> >>>
>>> >>> On Thu, Aug 21, 2008 at 10:58 PM, Jeremy Thomerson
>>> >>> <[EMAIL PROTECTED]> wrote:
>>> >>> > Which one are you setting visibility to false on?
>>> >>> >
>>> >>> > On Thu, Aug 21, 2008 at 3:29 PM, Julien Gaucher <
>>> [EMAIL PROTECTED]
>>> >>> >wrote:
>>> >>> >
>>> >>> >> hi
>>> >>> >>
>>> >>> >> i have a problem with datepicker visibility (perhaps a newb problem
>>> ;) )
>>> >>> >>
>>> >>> >> in my application, i have some conditional form element and i switch
>>> >>> >> them with setVisibility(true/false) and it works perfectly well
>>> except
>>> >>> >> for the datepicker
>>> >>> >> i add a datepicker to a dateTextField. when i switch visibility to
>>> >>> >> true, the two elements shows on the page, but when i switch to
>>> >>> >> false... only the textFiel goes off, and the datepicker
>>> >>> >> icons stay.
>>> >>> >> i think i can overcome this by using a panel, but i feel that there
>>> is
>>> >>> >> a better solution.
>>> >>> >>
>>> >>> >> could someone help ?
>>> >>> >>
>>> >>> >> thanks.
>>> >>> >>
>>> >>> >>
>>> ---------------------------------------------------------------------
>>> >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>> >>
>>> >>> >>
>>> >>> >
>>> >>> >
>>> >>> > --
>>> >>> > Jeremy Thomerson
>>> >>> > http://www.wickettraining.com
>>> >>> >
>>> >>>
>>> >>> ---------------------------------------------------------------------
>>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>>
>>> >>>
>>> >>
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]