Re: wicketstuff-select2 and Bootstrap 3

2016-01-14 Thread Martin Grigorov
Hi,

I use approach 1) for WicketStuff-DataTables:
https://github.com/wicketstuff/core/blob/6f5413194927b80ebe9b074dfe769e38ed9d8b74/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/themes/BootstrapTheme.java

By using optional dependencies on wicket-webjars and org.webjars:bootstrap
it doesn't affect applications which do not use Bootstrap

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Jan 14, 2016 at 8:52 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Thanks for link!
>
> @martin-g
>
> What would be the best way to integrate this
>
> http://select2.github.io/select2-bootstrap-theme/
>
> ?
>
> 1- Add a theme "concept" to select2 on wicket-stuff?
> 2- Create a component depending on select2 of wicket-stuff on
> wicket-bootstrap?
> 3- ?
>
>
> On Wed, Jan 13, 2016 at 8:45 PM, Gabriel Landon  wrote:
>
> > Have you tried with this one :
> > https://github.com/select2/select2-bootstrap-theme
> >
> > regards,
> > Gabriel.
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p4673317.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


Re: cancel AJAX request while a new one is triggered

2016-01-14 Thread niestroj
Take a look at AjaxChannel's:
https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/AjaxChannel.html
. I think this might be somethign for you:
https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/AjaxChannel.Type.html#DROP

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/cancel-AJAX-request-while-a-new-one-is-triggered-tp4673284p4673327.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: cancel AJAX request while a new one is triggered

2016-01-14 Thread Ernesto Reinaldo Barreiro
Thanks for the pointer... I guess that's just one part of the thing as page
will still be blocked by previous request ate server side

On Thu, Jan 14, 2016 at 11:24 AM, niestroj  wrote:

> Take a look at AjaxChannel's:
>
> https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/AjaxChannel.html
> . I think this might be somethign for you:
>
> https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/AjaxChannel.Type.html#DROP
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/cancel-AJAX-request-while-a-new-one-is-triggered-tp4673284p4673327.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: how to display the more ListView in ListView in html wicket:id

2016-01-14 Thread Martin Grigorov
Hi,

  - this is wrong. 
cannot have wicket:id, i.e. it cannot be used to connect HTML to Java
component.

The HTML should be like:

  
 
 
  


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jan 13, 2016 at 9:32 AM, Ilia  wrote:

> Hello.
> I have a wicket:id(statistics) in which children are wicket:id(
> "statistics2", "statistics3").
> Attention to the question how to display the more ListView in ListView in
> html wicket:id( "statistics2", "statistics3")???
>
> This source code.
>
> ListView
> statisticsListView = new
> ListView("statistics",
> countClientDTOs) {
> @Override
> protected void
> populateItem(ListItem
> item) {
> StatisticsAvgTimeServiceWaitingOperatorPeriodDTO
> timeServiceWaitingOperatorDTO = item.getModelObject();
> ..
> ..
> item.add(new ListView("statistics2",
> timeServiceWaitingOperatorDTO.getStatisticsAvgTimeDTO().getTimeWaiting()) {
> @Override
> protected void populateItem(ListItem
> itemCountServiceByDate) {
> String statisticsAvgTimeDTO =
> itemCountServiceByDate.getModelObject();
> itemCountServiceByDate.add(new Label("waitingTime",
> statisticsAvgTimeDTO));
> }
> });
> item.add(new ListView("statistics3",
> timeServiceWaitingOperatorDTO.getStatisticsAvgTimeDTO().getTimeService()) {
> @Override
> protected void populateItem(ListItem
> itemCountServiceByDate) {
> String statisticsAvgTimeDTO =
> itemCountServiceByDate.getModelObject();
> itemCountServiceByDate.add(new Label("serviceTime",
> statisticsAvgTimeDTO));
> }
> });
>
> This source code html
>
>
>
>
>
>
>
>
>
>  key="statistics.avg.time.service.waiting.operator.period.waiting"/>
>
>
> 
>
> 
> 
> 
>
>
>
>
>
>
>
>
>
>  key="statistics.avg.time.service.waiting.operator.period.service"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-display-the-more-ListView-in-ListView-in-html-wicket-id-tp4673283.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Francois Meillet
Hi Martin it's work.

Thanks

François 








Le 14 janv. 2016 à 23:30, Martin Grigorov  a écrit :

> @Francois: Please try with latest 7.2.0-SNAPSHOT
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Thu, Jan 14, 2016 at 10:59 PM, Francois Meillet <
> francois.meil...@gmail.com> wrote:
> 
>> Thnaks I override updateAjaxAttributes for the time being
>> François
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Le 14 janv. 2016 à 22:16, Martin Grigorov  a écrit :
>> 
>>> On Thu, Jan 14, 2016 at 9:54 PM, Sven Meier  wrote:
>>> 
 Hi Francois,
 
 you'll have to add the following to the
 AjaxFormChoiceComponentUpdatingBehavior:
 
   @Override
   protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes)
   {
   super.updateAjaxAttributes(attributes);
 
   attributes.setSerializeRecursively(true);
   }
 
 This may be a problem leftover from WICKET-6050.
 
 @Marting: Shouldn't this be set automatically by
 AjaxFormChoiceComponentUpdatingBehavior?
 
>>> 
>>> Yes!
>>> I've forgot it :-/
>>> 
>>> I've found an issue with the traversing of children components in
>>> 7.2.0-SNAPSHOT.
>>> Both issues look like a blocker to me.
>>> 
>>> 
 
 Best regards
 Sven
 
 
 
 
 On 14.01.2016 17:18, Francois Meillet wrote:
 
> Hi ,
> 
> I have a form with a radiogroup containing some radios buttons.
> The radiogroup has an AjaxFormChoiceComponentUpdatingBehavior.
> 
> When any radio button is clicked, the model does not get updated.
> 
> In the FormComponent # getInputAsArray()
> getRequest().getRequestParameters().getParameterValues(getInputName())
> return null
> 
> So the FormComponent convertedInput is null
> 
> Do I miss something ?
> 
> 
> François
>> 
>> 



Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Martin Grigorov
@Francois: Please try with latest 7.2.0-SNAPSHOT

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Jan 14, 2016 at 10:59 PM, Francois Meillet <
francois.meil...@gmail.com> wrote:

> Thnaks I override updateAjaxAttributes for the time being
> François
>
>
>
>
>
>
>
>
> Le 14 janv. 2016 à 22:16, Martin Grigorov  a écrit :
>
> > On Thu, Jan 14, 2016 at 9:54 PM, Sven Meier  wrote:
> >
> >> Hi Francois,
> >>
> >> you'll have to add the following to the
> >> AjaxFormChoiceComponentUpdatingBehavior:
> >>
> >>@Override
> >>protected void updateAjaxAttributes(AjaxRequestAttributes
> >> attributes)
> >>{
> >>super.updateAjaxAttributes(attributes);
> >>
> >>attributes.setSerializeRecursively(true);
> >>}
> >>
> >> This may be a problem leftover from WICKET-6050.
> >>
> >> @Marting: Shouldn't this be set automatically by
> >> AjaxFormChoiceComponentUpdatingBehavior?
> >>
> >
> > Yes!
> > I've forgot it :-/
> >
> > I've found an issue with the traversing of children components in
> > 7.2.0-SNAPSHOT.
> > Both issues look like a blocker to me.
> >
> >
> >>
> >> Best regards
> >> Sven
> >>
> >>
> >>
> >>
> >> On 14.01.2016 17:18, Francois Meillet wrote:
> >>
> >>> Hi ,
> >>>
> >>> I have a form with a radiogroup containing some radios buttons.
> >>> The radiogroup has an AjaxFormChoiceComponentUpdatingBehavior.
> >>>
> >>> When any radio button is clicked, the model does not get updated.
> >>>
> >>> In the FormComponent # getInputAsArray()
> >>> getRequest().getRequestParameters().getParameterValues(getInputName())
> >>> return null
> >>>
> >>> So the FormComponent convertedInput is null
> >>>
> >>> Do I miss something ?
> >>>
> >>>
> >>> François
>
>


Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Martin Grigorov
On Thu, Jan 14, 2016 at 9:54 PM, Sven Meier  wrote:

> Hi Francois,
>
> you'll have to add the following to the
> AjaxFormChoiceComponentUpdatingBehavior:
>
> @Override
> protected void updateAjaxAttributes(AjaxRequestAttributes
> attributes)
> {
> super.updateAjaxAttributes(attributes);
>
> attributes.setSerializeRecursively(true);
> }
>
> This may be a problem leftover from WICKET-6050.
>
> @Marting: Shouldn't this be set automatically by
> AjaxFormChoiceComponentUpdatingBehavior?
>

Yes!
I've forgot it :-/

I've found an issue with the traversing of children components in
7.2.0-SNAPSHOT.
Both issues look like a blocker to me.


>
> Best regards
> Sven
>
>
>
>
> On 14.01.2016 17:18, Francois Meillet wrote:
>
>> Hi ,
>>
>> I have a form with a radiogroup containing some radios buttons.
>> The radiogroup has an AjaxFormChoiceComponentUpdatingBehavior.
>>
>> When any radio button is clicked, the model does not get updated.
>>
>> In the FormComponent # getInputAsArray()
>> getRequest().getRequestParameters().getParameterValues(getInputName())
>> return null
>>
>> So the FormComponent convertedInput is null
>>
>> Do I miss something ?
>>
>>
>> François
>>
>>
>>
>>
>>
>>
>>
>>
>


Re: Wicket - Java Script Library

2016-01-14 Thread Sven Meier

Hi,

the project's name is a pun on "WKT" 
(https://en.wikipedia.org/wiki/Well-known_text),
thus I assume that the project owner has absolutely no knowledge of our 
"Wicket".


Have fun
Sven


On 14.01.2016 19:30, Mihir Chhaya wrote:

Hello Wicket Leads,

You might be already aware of this; but there is javascript library project
called 'Wicket'. Here is the link: http://arthur-e.github.io/Wicket/
Github link: https://github.com/arthur-e/Wicket

It is not Apache Wicket, but it is strange someone would use name so close.


-Mihir.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Sven Meier

Hi Francois,

you'll have to add the following to the 
AjaxFormChoiceComponentUpdatingBehavior:


@Override
protected void updateAjaxAttributes(AjaxRequestAttributes 
attributes)

{
super.updateAjaxAttributes(attributes);

attributes.setSerializeRecursively(true);
}

This may be a problem leftover from WICKET-6050.

@Marting: Shouldn't this be set automatically by 
AjaxFormChoiceComponentUpdatingBehavior?


Best regards
Sven



On 14.01.2016 17:18, Francois Meillet wrote:

Hi ,

I have a form with a radiogroup containing some radios buttons.
The radiogroup has an AjaxFormChoiceComponentUpdatingBehavior.

When any radio button is clicked, the model does not get updated.

In the FormComponent # getInputAsArray()
getRequest().getRequestParameters().getParameterValues(getInputName()) 
return null


So the FormComponent convertedInput is null

Do I miss something ?


François











Re: wicketstuff-select2 and Bootstrap 3

2016-01-14 Thread Gabriel Landon
Ernesto,

I've done a simple behavior that I add to the select2 component when needed.

public class Select2CssBehavior extends Behavior {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;
/** Select2 CSS for bootstrap. */
private static final CssResourceReference SELECT2_CSS = new
CssResourceReference(Select2CssBehavior.class,
"select2-bootstrap.css");

@Override
public void renderHead(final Component varComponent, final
IHeaderResponse varResponse) {
super.renderHead(varComponent, varResponse);
varResponse.render(CssHeaderItem.forReference(SELECT2_CSS));
}

}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p467.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket - Java Script Library

2016-01-14 Thread Mihir Chhaya
Hello Wicket Leads,

You might be already aware of this; but there is javascript library project
called 'Wicket'. Here is the link: http://arthur-e.github.io/Wicket/
Github link: https://github.com/arthur-e/Wicket

It is not Apache Wicket, but it is strange someone would use name so close.


-Mihir.


Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Francois Meillet
Thnaks I override updateAjaxAttributes for the time being
François 








Le 14 janv. 2016 à 22:16, Martin Grigorov  a écrit :

> On Thu, Jan 14, 2016 at 9:54 PM, Sven Meier  wrote:
> 
>> Hi Francois,
>> 
>> you'll have to add the following to the
>> AjaxFormChoiceComponentUpdatingBehavior:
>> 
>>@Override
>>protected void updateAjaxAttributes(AjaxRequestAttributes
>> attributes)
>>{
>>super.updateAjaxAttributes(attributes);
>> 
>>attributes.setSerializeRecursively(true);
>>}
>> 
>> This may be a problem leftover from WICKET-6050.
>> 
>> @Marting: Shouldn't this be set automatically by
>> AjaxFormChoiceComponentUpdatingBehavior?
>> 
> 
> Yes!
> I've forgot it :-/
> 
> I've found an issue with the traversing of children components in
> 7.2.0-SNAPSHOT.
> Both issues look like a blocker to me.
> 
> 
>> 
>> Best regards
>> Sven
>> 
>> 
>> 
>> 
>> On 14.01.2016 17:18, Francois Meillet wrote:
>> 
>>> Hi ,
>>> 
>>> I have a form with a radiogroup containing some radios buttons.
>>> The radiogroup has an AjaxFormChoiceComponentUpdatingBehavior.
>>> 
>>> When any radio button is clicked, the model does not get updated.
>>> 
>>> In the FormComponent # getInputAsArray()
>>> getRequest().getRequestParameters().getParameterValues(getInputName())
>>> return null
>>> 
>>> So the FormComponent convertedInput is null
>>> 
>>> Do I miss something ?
>>> 
>>> 
>>> François