Re: wicket-examples is not reachable - started with StartExamples

2015-02-15 Thread Tobias Soloschenko
Good point - solved the problem - there was a wrong build path entry. 
(Server Runtime)


Examples are running for me, now

Thanks a lot!

kind regards

Tobias


Am 16.02.15 um 08:05 schrieb Martin Grigorov:

On Mon, Feb 16, 2015 at 8:41 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:


Hi Martin,

mh I can't reach the app that way. :-/

yes there are Atmosphere logs:

INFO  - AtmosphereFramework- Latest version of Atmosphere's
JavaScript Client 2.2.7
INFO  - AtmosphereFramework

but also I got some Exceptions:

Caused by: java.lang.ClassCastException: 
org.eclipse.jetty.webapp.WebAppContext$Context
cannot be cast to org.apache.catalina.core.ApplicationContextFacade

Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.
LogFactory


Those are Tomcat classes.
StartExamples.java starts embedded Jetty.
How exactly Tomcat got involved here ?



thanks for the fast response!

kind regards

Tobias

Am 16.02.15 um 07:34 schrieb Martin Grigorov:

  Hi Tobias,

http://localhost:8080 is the correct one.
I just tried with http://127.0.0.1:8080 and it works fine too (as
expected).

Do you see the logs by Atmosphere ?

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

On Mon, Feb 16, 2015 at 8:23 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

  Hi,

I try to start the wicket-examples module with
org.apache.wicket.examples.StartExamples,
but if I try to access it - it seems to be not reachable - logging says
that the applications are started up. I tried to access it via
http://127.0.0.1:8080/, http://127.0.0.1:8080/images and
https://127.0.0.1:8443/, https://127.0.0.1:8443/images  but no success.

Thanks for help in advance!

kind regards

Tobias

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




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





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



Re: wicket-examples is not reachable - started with StartExamples

2015-02-15 Thread Martin Grigorov
On Mon, Feb 16, 2015 at 8:41 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi Martin,
>
> mh I can't reach the app that way. :-/
>
> yes there are Atmosphere logs:
>
> INFO  - AtmosphereFramework- Latest version of Atmosphere's
> JavaScript Client 2.2.7
> INFO  - AtmosphereFramework
>
> but also I got some Exceptions:
>
> Caused by: java.lang.ClassCastException: 
> org.eclipse.jetty.webapp.WebAppContext$Context
> cannot be cast to org.apache.catalina.core.ApplicationContextFacade
>
> Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.
> LogFactory
>

Those are Tomcat classes.
StartExamples.java starts embedded Jetty.
How exactly Tomcat got involved here ?


>
> thanks for the fast response!
>
> kind regards
>
> Tobias
>
> Am 16.02.15 um 07:34 schrieb Martin Grigorov:
>
>  Hi Tobias,
>>
>> http://localhost:8080 is the correct one.
>> I just tried with http://127.0.0.1:8080 and it works fine too (as
>> expected).
>>
>> Do you see the logs by Atmosphere ?
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Mon, Feb 16, 2015 at 8:23 AM, Tobias Soloschenko <
>> tobiassolosche...@googlemail.com> wrote:
>>
>>  Hi,
>>>
>>> I try to start the wicket-examples module with
>>> org.apache.wicket.examples.StartExamples,
>>> but if I try to access it - it seems to be not reachable - logging says
>>> that the applications are started up. I tried to access it via
>>> http://127.0.0.1:8080/, http://127.0.0.1:8080/images and
>>> https://127.0.0.1:8443/, https://127.0.0.1:8443/images  but no success.
>>>
>>> Thanks for help in advance!
>>>
>>> kind regards
>>>
>>> Tobias
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Question regarding index handling with RefreshingView and OddEvenItem

2015-02-15 Thread Stefan Renz
Hi,

I know that I'm skirting around answering your questions, but
you could add an AttributeAppender to the item based on the index.
Something like

item.add( AttributeAppender.modify( "class", item.getIndex() % 2 == 1 ?
getEvenCssClass() : getOddCssClass() );

Apply further refactorings to suit your needs, i.e. introduce your own
subclass of Behavior/AttributeModifier which provides the attribute
appender functionality plus getEvenCssClass() and getOddCssClass(). This
way, you can apply your even/odd styling to all you DataViews, and have
your style information in one place. Plus you can use stock DataTable or
ListView.

Thorsten Schöning wrote:
> Hi all,
> 
> I'm using DataView to publish some search results in a HTML table and
> what the results to format zebra style. I've found OddEvenItem for
> that purpose but ran into what I find is a problem: The first item is
> always rendered with CSS class "even", because the index used is 0
> based. That may be correct from a technical point of view, but is not
> what I want to present my users.

I kind of don't understand: you want to present a zebra table to your
users, that is what you do. But what exactly do you want to achieve?
First row is termed "odd" instead of "even"? Why would that matter?
Can't you just flip your CSS classes if styling is your concern?

> 
> So I changed my creation of OddEvenItem to simply not provide index 0,
> but found that my provided index is always ignored. Even if I change
> my index to a constant like 1 it is ignored.
> 
> I found the problem in RefreshingView.addItems, where a loop is used
> to iterate over items and an index is always set:
> 
>> protected void addItems(Iterator> items)
>> {
>>   int index = 0;
>>   while (items.hasNext())
>>   {
>>   Item item = items.next();
>>   item.setIndex(index);
>>   add(item);
>>   ++index;
>>   }
>> }
> 
> This doesn't make sense to me, because the OddEvenItem ctor is
> designed to take an index, which is afterwards ignored.
> 
> Two questions here:
> 
> 1. Is the call to setIndex by design and one should override setIndex in
> custom created items to just ignore that call? In that case the
> documentation for Item should make that more clear, unless I have
> missed that.

I think the contract between DataTable and Item is Item#setIndex, not
the constructor of the specialization OddEvenItem. I find it rather
dangerous to modify the indexes by skipping zero etc. as this may change
Wicket's internal bookkeeping of items.


> 
> 2. How should I get my OddEvenItem to print CSS classes based on a 1
> index at all? Should I override onComponentTag instead of changing the
> index to 1 in my newItem-method?
> 
> Thanks für help!
> 
> Mit freundlichen Grüßen,
> 
> Thorsten Schöning
> 

Hope this helps, bye
Stefan

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



Re: wicket-examples is not reachable - started with StartExamples

2015-02-15 Thread Tobias Soloschenko

Hi Martin,

mh I can't reach the app that way. :-/

yes there are Atmosphere logs:

INFO  - AtmosphereFramework- Latest version of Atmosphere's 
JavaScript Client 2.2.7

INFO  - AtmosphereFramework

but also I got some Exceptions:

Caused by: java.lang.ClassCastException: 
org.eclipse.jetty.webapp.WebAppContext$Context cannot be cast to 
org.apache.catalina.core.ApplicationContextFacade


Caused by: java.lang.ClassNotFoundException: 
org.apache.juli.logging.LogFactory


thanks for the fast response!

kind regards

Tobias

Am 16.02.15 um 07:34 schrieb Martin Grigorov:

Hi Tobias,

http://localhost:8080 is the correct one.
I just tried with http://127.0.0.1:8080 and it works fine too (as expected).

Do you see the logs by Atmosphere ?

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

On Mon, Feb 16, 2015 at 8:23 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:


Hi,

I try to start the wicket-examples module with 
org.apache.wicket.examples.StartExamples,
but if I try to access it - it seems to be not reachable - logging says
that the applications are started up. I tried to access it via
http://127.0.0.1:8080/, http://127.0.0.1:8080/images and
https://127.0.0.1:8443/, https://127.0.0.1:8443/images  but no success.

Thanks for help in advance!

kind regards

Tobias

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





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



Re: wicket-examples is not reachable - started with StartExamples

2015-02-15 Thread Martin Grigorov
Hi Tobias,

http://localhost:8080 is the correct one.
I just tried with http://127.0.0.1:8080 and it works fine too (as expected).

Do you see the logs by Atmosphere ?

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

On Mon, Feb 16, 2015 at 8:23 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi,
>
> I try to start the wicket-examples module with 
> org.apache.wicket.examples.StartExamples,
> but if I try to access it - it seems to be not reachable - logging says
> that the applications are started up. I tried to access it via
> http://127.0.0.1:8080/, http://127.0.0.1:8080/images and
> https://127.0.0.1:8443/, https://127.0.0.1:8443/images  but no success.
>
> Thanks for help in advance!
>
> kind regards
>
> Tobias
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


wicket-examples is not reachable - started with StartExamples

2015-02-15 Thread Tobias Soloschenko

Hi,

I try to start the wicket-examples module with 
org.apache.wicket.examples.StartExamples, but if I try to access it - it 
seems to be not reachable - logging says that the applications are 
started up. I tried to access it via http://127.0.0.1:8080/, 
http://127.0.0.1:8080/images and https://127.0.0.1:8443/, 
https://127.0.0.1:8443/images  but no success.


Thanks for help in advance!

kind regards

Tobias

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



Re: ListPanel - update model

2015-02-15 Thread Martin Grigorov
On Sun, Feb 15, 2015 at 6:48 PM, Chris  wrote:

> Hi,
>
> when using
>
> pModel = new ListModel(){
>@Override
>public List getObject() {
>   return someService.calculate();
>}
> };
>
> I experience that in this case #someService.calculate() is called several
> times consecutively when loading the page. Why is this the case?
>

See LoadableDetachableModel


>
> Setting the model in the Ajax Link onclick method as
> pModel.setObject(someService.calculate()); seems to work.
>
> Chris
>
>
> > Am 15.02.2015 um 10:40 schrieb Francois Meillet <
> francois.meil...@gmail.com>:
> >
> > Hi Chris,
> >
> > The ListModel keeps a reference on the model created at the first
> occurence of that line
> > pModel = new ListModel(someService.caculate());
> >
> > The simplest thing you could do is to reset the listpanel's model,
> > but this is not a good practice.
> >
> > listPanel.setDefaultModel(model);
> >
> > add(new AjaxFallbackLink("link") {
> >@Override
> >public void onClick(AjaxRequestTarget target) {
> >pModel = new ListModel(someService.caculate());
> >listPanel.setDefaultModel(pModel);
> >target.add(listPanel);
> >}
> >});
> >
> >
> > Using a specific model is much better
> > For example, using the int property flag we can do
> >
> > pModel = new Model() {
> >   @Override
> >   public String getObject() {
> >   return "flag_" + flag ;
> >   }
> > };
> >
> > final Panel listPanel = new ListPanel("itemList", pModel);
> > add(listPanel);
> >
> > add(new AjaxFallbackLink("link") {
> >@Override
> >public void onClick(AjaxRequestTarget target) {
> >flag++;
> >target.add(listPanel);
> >}
> >});
> >
> >
> > Have a look at
> https://wicket.apache.org/guide/guide/single.html#modelsforms
> >
> >
> > François Meillet
> >
> >
> >
> >
> >
> > Le 14 févr. 2015 à 22:23, Chris  a écrit :
> >
> >> Hi all,
> >>
> >> I would like to update a list model when the user clicks on a certain
> link. However, when the listPanel is rendered after clicking on the link,
> the model seems not to be updated and still contains the old values.
> >>
> >> How to fix this?
> >>
> >> PAGE:
> >>
> >> IModel> pModel;
> >>
> >> public SomePage() {
> >>
> >>  pModel = new ListModel(someService.caculate());
> >>
> >>  final Panel listPanel = new ListPanel("itemList", pModel);
> >>  add(listPanel);
> >>
> >>   add(new AjaxFallbackLink("link") {
> >>   @Override
> >>   public void onClick(AjaxRequestTarget target) {
> >>   pModel = new ListModel(someService.caculate());
> >>   target.add(listPanel);
> >>   }
> >>   });
> >> }
> >>
> >> Thanks!
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: ListPanel - update model

2015-02-15 Thread Chris
Hi,

when using 

pModel = new ListModel(){
   @Override
   public List getObject() {
  return someService.calculate();
   }
};

I experience that in this case #someService.calculate() is called several times 
consecutively when loading the page. Why is this the case?

Setting the model in the Ajax Link onclick method as 
pModel.setObject(someService.calculate()); seems to work.

Chris


> Am 15.02.2015 um 10:40 schrieb Francois Meillet :
> 
> Hi Chris,
> 
> The ListModel keeps a reference on the model created at the first occurence 
> of that line
> pModel = new ListModel(someService.caculate());
> 
> The simplest thing you could do is to reset the listpanel's model,
> but this is not a good practice.
> 
> listPanel.setDefaultModel(model);
> 
> add(new AjaxFallbackLink("link") { 
>@Override 
>public void onClick(AjaxRequestTarget target) { 
>pModel = new ListModel(someService.caculate()); 
>listPanel.setDefaultModel(pModel);
>target.add(listPanel); 
>} 
>}); 
> 
> 
> Using a specific model is much better
> For example, using the int property flag we can do 
> 
> pModel = new Model() {
>   @Override
>   public String getObject() {
>   return "flag_" + flag ;
>   }
> };
> 
> final Panel listPanel = new ListPanel("itemList", pModel); 
> add(listPanel); 
> 
> add(new AjaxFallbackLink("link") { 
>@Override 
>public void onClick(AjaxRequestTarget target) { 
>flag++;
>target.add(listPanel); 
>} 
>}); 
> 
> 
> Have a look at https://wicket.apache.org/guide/guide/single.html#modelsforms
> 
> 
> François Meillet
> 
> 
> 
> 
> 
> Le 14 févr. 2015 à 22:23, Chris  a écrit :
> 
>> Hi all,
>> 
>> I would like to update a list model when the user clicks on a certain link. 
>> However, when the listPanel is rendered after clicking on the link, the 
>> model seems not to be updated and still contains the old values.
>> 
>> How to fix this?
>> 
>> PAGE:
>> 
>> IModel> pModel;
>> 
>> public SomePage() {
>> 
>>  pModel = new ListModel(someService.caculate());
>> 
>>  final Panel listPanel = new ListPanel("itemList", pModel);
>>  add(listPanel);
>> 
>>   add(new AjaxFallbackLink("link") {
>>   @Override
>>   public void onClick(AjaxRequestTarget target) {
>>   pModel = new ListModel(someService.caculate());
>>   target.add(listPanel);
>>   }
>>   });
>> }
>> 
>> Thanks!
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 


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



Re: New committer - Sebastien Briquet

2015-02-15 Thread Sebastien
Thanks a lot everyone! :)

@Cedric, yes with a great pleasure!

On Sat, Feb 14, 2015 at 3:51 PM, Cedric Gatay  wrote:

> Congrats' Sebastien, looking forward to meeting you in an event in France
> ;)
>
> __
> Cedric Gatay (@Cedric_Gatay )
> http://code-troopers.com | http://www.bloggure.info |
> http://cedric.gatay.fr
>  | hopwork 
>


Question regarding index handling with RefreshingView and OddEvenItem

2015-02-15 Thread Thorsten Schöning
Hi all,

I'm using DataView to publish some search results in a HTML table and
what the results to format zebra style. I've found OddEvenItem for
that purpose but ran into what I find is a problem: The first item is
always rendered with CSS class "even", because the index used is 0
based. That may be correct from a technical point of view, but is not
what I want to present my users.

So I changed my creation of OddEvenItem to simply not provide index 0,
but found that my provided index is always ignored. Even if I change
my index to a constant like 1 it is ignored.

I found the problem in RefreshingView.addItems, where a loop is used
to iterate over items and an index is always set:

> protected void addItems(Iterator> items)
> {
>   int index = 0;
>   while (items.hasNext())
>   {
>   Item item = items.next();
>   item.setIndex(index);
>   add(item);
>   ++index;
>   }
> }

This doesn't make sense to me, because the OddEvenItem ctor is
designed to take an index, which is afterwards ignored.

Two questions here:

1. Is the call to setIndex by design and one should override setIndex in
custom created items to just ignore that call? In that case the
documentation for Item should make that more clear, unless I have
missed that.

2. How should I get my OddEvenItem to print CSS classes based on a 1
index at all? Should I override onComponentTag instead of changing the
index to 1 in my newItem-method?

Thanks für help!

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


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



Re: [ANNOUNCE] WicketStuff 7.0.0-M5 is released

2015-02-15 Thread Martin Grigorov
Because the examples archive is .war, not .jar
On Feb 15, 2015 12:57 PM, "Wicket und Cocoon" 
wrote:

> I don't know what has changed i always get the error
>
>  Failed to execute goal on project myproject: Could not resolve
> dependencies for project com.mycompany:myproject:war:1.0-SNAPSHOT: Could
> not find artifact org.wicketstuff:wicketstuff-jwicket-examples:jar:7.0.0-M4
> in central (https://repo1.maven.org/maven2)
>
>
> Am 14.02.2015 um 13:02 schrieb Martin Grigorov:
>
>> No idea.
>> Use the ones from
>> http://central.maven.org/maven2/org/wicketstuff/wicketstuff-jwicket-**/
>> here ..
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Sat, Feb 14, 2015 at 9:48 AM, Wicket und Cocoon <
>> hansheinrichbr...@yahoo.de> wrote:
>>
>>  I don't get jquery-parent and jwicket-parent running from jdk-1.7-parent
>>> running from the zip-file at github.
>>> Best regards
>>> Heiner
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket WebRTC Integration

2015-02-15 Thread Tobias Soloschenko

Hi,

I just added a way to apply a poster to the local / remote videos that 
is going to be shown if a user does not allow camera access or simply 
does not have any camera. There is a default poster but you can override 
getNoVideoResourceReference and apply your own.


The API changed a little bit "public String getLocalVideoId()" -> 
"public Video getLocalVideo()" - so you don't have to configure the 
video yourself except to set the controls to false.


The maxWidth / maxHeight attributes are also applied to the css, now - 
so if you type in setMaxWidth(xxx) / set MaxHeight(xxx) the video is 
also configured that dimension by CSS.


kind regards

Tobias

Am 10.02.15 um 22:15 schrieb Zala Pierre GOUPIL:

Excellent! Please keep us informed about how it goes.

Regards,

Pierre




On Tue, Feb 10, 2015 at 10:08 PM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:


Hi,

short update - you are now able to:

* now activate / deactivate the volume bars
* set the MaxWidth / MaxHeight and
* set the Framerate which is going to be used for the videos.

I setup a little wiki because to scroll all the time was so annoying.

https://github.com/klopfdreh/wicket-components-playground/
wiki/7.-HTML5-WebRTC-Integration

kind regards

Tobias

Am 31.01.15 um 00:49 schrieb Zala Pierre GOUPIL:

  Hi,

Excellent work, congrats! And I'm talking about all your
"wicket-components-playground" project! I'll test your Wicket WebRTC
Integration and tell you how it goes.

In fact, I'm currently using a full JS WebRTC component (
https://code.google.com/p/webrtc4all/) but I'm not fully satisfied with
it.
Hopefully, yours will do it for me.

Regards,

Pierre




On Fri, Jan 30, 2015 at 5:26 PM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

  Hi everybody,

I just implemented a component to provide a way to integrate a video
conference to Wicket applications using WebRTC - I would be very pleased
to
receive feedback!

An installation of NodeJS is required.

https://github.com/klopfdreh/wicket-components-playground

(Scroll to section "Wicket WebRTC Integration")

kind regards

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




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







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



Re: ListPanel - update model

2015-02-15 Thread Francois Meillet
Hi Chris,

The ListModel keeps a reference on the model created at the first occurence of 
that line
pModel = new ListModel(someService.caculate());

The simplest thing you could do is to reset the listpanel's model,
but this is not a good practice.

listPanel.setDefaultModel(model);

add(new AjaxFallbackLink("link") { 
@Override 
public void onClick(AjaxRequestTarget target) { 
pModel = new ListModel(someService.caculate()); 
listPanel.setDefaultModel(pModel);
target.add(listPanel); 
} 
}); 


Using a specific model is much better
For example, using the int property flag we can do 

pModel = new Model() {
@Override
public String getObject() {
return "flag_" + flag ;
}
};

final Panel listPanel = new ListPanel("itemList", pModel); 
add(listPanel); 

add(new AjaxFallbackLink("link") { 
@Override 
public void onClick(AjaxRequestTarget target) { 
flag++;
target.add(listPanel); 
} 
}); 


Have a look at https://wicket.apache.org/guide/guide/single.html#modelsforms


François Meillet





Le 14 févr. 2015 à 22:23, Chris  a écrit :

> Hi all,
> 
> I would like to update a list model when the user clicks on a certain link. 
> However, when the listPanel is rendered after clicking on the link, the model 
> seems not to be updated and still contains the old values.
> 
> How to fix this?
> 
> PAGE:
> 
> IModel> pModel;
> 
> public SomePage() {
> 
>   pModel = new ListModel(someService.caculate());
> 
>   final Panel listPanel = new ListPanel("itemList", pModel);
>   add(listPanel);
> 
>add(new AjaxFallbackLink("link") {
>@Override
>public void onClick(AjaxRequestTarget target) {
>pModel = new ListModel(someService.caculate());
>target.add(listPanel);
>}
>});
> }
> 
> Thanks!
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



Wicketstuff

2015-02-15 Thread Wicket und Cocoon

in the download from github jquery and jwicket don't work
when i try to get it by maven dependency maven cannot find.

regards Heiner

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



Re: [ANNOUNCE] WicketStuff 7.0.0-M5 is released

2015-02-15 Thread Wicket und Cocoon

I don't know what has changed i always get the error

 Failed to execute goal on project myproject: Could not resolve 
dependencies for project com.mycompany:myproject:war:1.0-SNAPSHOT: Could 
not find artifact 
org.wicketstuff:wicketstuff-jwicket-examples:jar:7.0.0-M4 in central 
(https://repo1.maven.org/maven2)



Am 14.02.2015 um 13:02 schrieb Martin Grigorov:

No idea.
Use the ones from
http://central.maven.org/maven2/org/wicketstuff/wicketstuff-jwicket-**/
here ..

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

On Sat, Feb 14, 2015 at 9:48 AM, Wicket und Cocoon <
hansheinrichbr...@yahoo.de> wrote:


I don't get jquery-parent and jwicket-parent running from jdk-1.7-parent
running from the zip-file at github.
Best regards
Heiner

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





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



Re: ListPanel - update model

2015-02-15 Thread Martin Grigorov
Hi,

On Feb 14, 2015 11:24 PM, "Chris"  wrote:
>
> Hi all,
>
> I would like to update a list model when the user clicks on a certain
link. However, when the listPanel is rendered after clicking on the link,
the model seems not to be updated and still contains the old values.
>
> How to fix this?
>
> PAGE:
>
> IModel> pModel;
>
> public SomePage() {
>
> pModel = new ListModel(someService.caculate());
>
> final Panel listPanel = new ListPanel("itemList", pModel);
> add(listPanel);
>
> add(new AjaxFallbackLink("link") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> pModel = new ListModel(someService.caculate());

^^^ Here you loose the connection to listPanel.

Instead do :
pModel.clear()
pModel.addAll(...)

> target.add(listPanel);
> }
> });
> }
>
> Thanks!
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>