You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marieke Vandamme <ma...@tvh.com> on 2017/07/14 13:03:24 UTC
Re: AutoCompleteTextField Stateless
Hi,
I tried for some time to display modal window with only javascript, like
Pedro is proposing, but can't find the right approach.
Pedro or somebody else, can you please send me some sample code for this?
Thanks in advance !
Met vriendelijke groeten, Salutations distinguées, Kind Regards,
*MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
marieke.vandamme@tvh.com
*TVH GROUP NV*
Brabantstraat 15 • BE-8790 WAREGEM
T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
View our company movies via downloads on our website.
2017-06-30 4:45 GMT+02:00 Pedro Santos <pe...@gmail.com>:
> Hi Marieke,
>
> in a similar situation I chose to send the components that should be
> presented in the modal window in the markup, hidden by the page CSS, and to
> create a modal window to show them using purely javascript.
>
> cheers
>
> Pedro Santos
>
> On Thu, Jun 29, 2017 at 11:33 AM, Marieke Vandamme <
> marieke.vandamme@tvh.com
> > wrote:
>
> > Hi,
> >
> > This is working. Thanks !
> > Do you also have a solution for the ModalWindow, or isn't that possible.
>
> >
> >
> > 2017-06-29 16:06 GMT+02:00 Andrea Del Bene <an...@gmail.com>:
> >
> > > Hi,
> > >
> > > try to override getStatelessHint also for the internal behavior used by
> > > AutoCompleteTextField. you have to override
> > > AutoCompleteTextField#newAutoCompleteBehavior and make it return
> > something
> > > like this:
> > >
> > > return new AutoCompleteBehavior<T>(renderer, settings)
> > > {
> > > private static final long serialVersionUID = 1L;
> > >
> > > @Override
> > > protected Iterator<T> getChoices(final String input)
> > > {
> > > return AutoCompleteTextField.this.getChoices(input);
> > > }
> > >
> > > @Override
> > > protected void updateAjaxAttributes(AjaxRequestAttributes
> > > attributes)
> > > {
> > > super.updateAjaxAttributes(attributes);
> > >
> > > AutoCompleteTextField.this.updateAjaxAttributes(
> > > attributes);
> > > }
> > >
> > > @Override
> > > protected boolean getStatelessHint(Component component)
> > > {
> > > return true;
> > > }
> > > };
> > >
> > > On Thu, Jun 29, 2017 at 12:19 PM, Marieke Vandamme <
> > > marieke.vandamme@tvh.com
> > > > wrote:
> > >
> > > > And maybe even a more difficult one, is it possible to make
> ModalWindow
> > > > stateless?
> > > > Thanks again !
> > > >
> > > >
> > > > Met vriendelijke groeten, Salutations distinguées, Kind Regards,
> > > >
> > > >
> > > > *MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
> > > > T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
> > > > marieke.vandamme@tvh.com
> > > >
> > > > *TVH GROUP NV*
> > > > Brabantstraat 15 • BE-8790 WAREGEM
> > > > T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> > > > View our company movies via downloads on our website.
> > > >
> > > > 2017-06-29 12:05 GMT+02:00 Marieke Vandamme <
> marieke.vandamme@tvh.com
> > >:
> > > >
> > > > > Hi,
> > > > >
> > > > > I'm using Apache Wicket 7.7.0.
> > > > > Is it possible to make AutoCompleteTextField Stateless?
> > > > > I'm using StatelessChecker in my application and
> @StatelessComponent
> > > on
> > > > > my Panel.
> > > > > I've overridden getStatelessHint for the AutoCompleteTextField to
> > > return
> > > > > true.
> > > > > But the StatelessChecker is complaining:
> > > > > java.lang.IllegalArgumentException: '[CategorySearchPanel
> [Component
> > > id
> > > > =
> > > > > searchPanel]]' claims to be stateless but isn't. Offending
> component:
> > > > > [AutoCompleteTextField [Component id = searchTxt]]
> > > > >
> > > > > Thanks ! Kind Regards, Marieke
> > > > >
> > > >
> > > > --
> > > >
> > > >
> > > > **** DISCLAIMER ****
> > > >
> > > > http://www.tvh.com/glob/en/email-disclaimer
> > > >
> > > > "This message is delivered to all addressees subject to the
> conditions
> > > > set forth in the attached disclaimer, which is an integral part of
> this
> > > > message."
> > > >
> > >
> >
> > --
> >
> >
> > **** DISCLAIMER ****
> >
> > http://www.tvh.com/glob/en/email-disclaimer
> >
> > "This message is delivered to all addressees subject to the conditions
> > set forth in the attached disclaimer, which is an integral part of this
> > message."
> >
>
--
**** DISCLAIMER ****
http://www.tvh.com/glob/en/email-disclaimer
"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."
Re: AutoCompleteTextField Stateless
Posted by Maxim Solodovnik <so...@gmail.com>.
You can use http://jqueryui.com/dialog/
Or this cool library: http://www.7thweb.net/wicket-jquery-ui/ :))
On Fri, Jul 14, 2017 at 8:03 PM, Marieke Vandamme
<ma...@tvh.com> wrote:
> Hi,
>
> I tried for some time to display modal window with only javascript, like
> Pedro is proposing, but can't find the right approach.
> Pedro or somebody else, can you please send me some sample code for this?
> Thanks in advance !
>
>
> Met vriendelijke groeten, Salutations distinguées, Kind Regards,
>
>
> *MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
> T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
> marieke.vandamme@tvh.com
>
> *TVH GROUP NV*
> Brabantstraat 15 • BE-8790 WAREGEM
> T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> View our company movies via downloads on our website.
>
> 2017-06-30 4:45 GMT+02:00 Pedro Santos <pe...@gmail.com>:
>
>> Hi Marieke,
>>
>> in a similar situation I chose to send the components that should be
>> presented in the modal window in the markup, hidden by the page CSS, and to
>> create a modal window to show them using purely javascript.
>>
>> cheers
>>
>> Pedro Santos
>>
>> On Thu, Jun 29, 2017 at 11:33 AM, Marieke Vandamme <
>> marieke.vandamme@tvh.com
>> > wrote:
>>
>> > Hi,
>> >
>> > This is working. Thanks !
>> > Do you also have a solution for the ModalWindow, or isn't that possible.
>>
>> >
>> >
>> > 2017-06-29 16:06 GMT+02:00 Andrea Del Bene <an...@gmail.com>:
>> >
>> > > Hi,
>> > >
>> > > try to override getStatelessHint also for the internal behavior used by
>> > > AutoCompleteTextField. you have to override
>> > > AutoCompleteTextField#newAutoCompleteBehavior and make it return
>> > something
>> > > like this:
>> > >
>> > > return new AutoCompleteBehavior<T>(renderer, settings)
>> > > {
>> > > private static final long serialVersionUID = 1L;
>> > >
>> > > @Override
>> > > protected Iterator<T> getChoices(final String input)
>> > > {
>> > > return AutoCompleteTextField.this.getChoices(input);
>> > > }
>> > >
>> > > @Override
>> > > protected void updateAjaxAttributes(AjaxRequestAttributes
>> > > attributes)
>> > > {
>> > > super.updateAjaxAttributes(attributes);
>> > >
>> > > AutoCompleteTextField.this.updateAjaxAttributes(
>> > > attributes);
>> > > }
>> > >
>> > > @Override
>> > > protected boolean getStatelessHint(Component component)
>> > > {
>> > > return true;
>> > > }
>> > > };
>> > >
>> > > On Thu, Jun 29, 2017 at 12:19 PM, Marieke Vandamme <
>> > > marieke.vandamme@tvh.com
>> > > > wrote:
>> > >
>> > > > And maybe even a more difficult one, is it possible to make
>> ModalWindow
>> > > > stateless?
>> > > > Thanks again !
>> > > >
>> > > >
>> > > > Met vriendelijke groeten, Salutations distinguées, Kind Regards,
>> > > >
>> > > >
>> > > > *MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
>> > > > T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
>> > > > marieke.vandamme@tvh.com
>> > > >
>> > > > *TVH GROUP NV*
>> > > > Brabantstraat 15 • BE-8790 WAREGEM
>> > > > T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
>> > > > View our company movies via downloads on our website.
>> > > >
>> > > > 2017-06-29 12:05 GMT+02:00 Marieke Vandamme <
>> marieke.vandamme@tvh.com
>> > >:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > I'm using Apache Wicket 7.7.0.
>> > > > > Is it possible to make AutoCompleteTextField Stateless?
>> > > > > I'm using StatelessChecker in my application and
>> @StatelessComponent
>> > > on
>> > > > > my Panel.
>> > > > > I've overridden getStatelessHint for the AutoCompleteTextField to
>> > > return
>> > > > > true.
>> > > > > But the StatelessChecker is complaining:
>> > > > > java.lang.IllegalArgumentException: '[CategorySearchPanel
>> [Component
>> > > id
>> > > > =
>> > > > > searchPanel]]' claims to be stateless but isn't. Offending
>> component:
>> > > > > [AutoCompleteTextField [Component id = searchTxt]]
>> > > > >
>> > > > > Thanks ! Kind Regards, Marieke
>> > > > >
>> > > >
>> > > > --
>> > > >
>> > > >
>> > > > **** DISCLAIMER ****
>> > > >
>> > > > http://www.tvh.com/glob/en/email-disclaimer
>> > > >
>> > > > "This message is delivered to all addressees subject to the
>> conditions
>> > > > set forth in the attached disclaimer, which is an integral part of
>> this
>> > > > message."
>> > > >
>> > >
>> >
>> > --
>> >
>> >
>> > **** DISCLAIMER ****
>> >
>> > http://www.tvh.com/glob/en/email-disclaimer
>> >
>> > "This message is delivered to all addressees subject to the conditions
>> > set forth in the attached disclaimer, which is an integral part of this
>> > message."
>> >
>>
>
> --
>
>
> **** DISCLAIMER ****
>
> http://www.tvh.com/glob/en/email-disclaimer
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
--
WBR
Maxim aka solomax
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org