Re: Listview Checkbox checked by default and disapearing after submit

2012-12-07 Thread Sven Meier

this.checkGroup = new CheckGroup("checkgroup", new 
CompoundPropertyModel(this.someList));
...
this.listView = new ListView("someList", new 
CompoundPropertyModel(this.someList))


Do you really want the list to iterate over the checked items only?
I'd expect these components to use different lists: one for all selected and 
one for all available

Sven



On 12/07/2012 08:04 PM, Pat wrote:

Hi,

I have searched for this problem and read many entries but I can't seem to
figure it out. I have two problems:

1. When instantiate my ListView with Check checkboxes they are always
checked by default. I can't manage to uncheck them by default.

2. Once I have chosen items from my list via the checkboxes and submitted
the form depending on how many checkboxes have been checked, that amount of
rows just disappears from the bottom of my list. It doesn't matter which
boxes I check, it's always the rows from the bottom up that disappear.

It would be really great if anyone could help, thanks you in advance.

Here is my code:

// initialize CheckGroup
 this.checkGroup = new CheckGroup("checkgroup", new
CompoundPropertyModel(this.someList));
 someForm.add(checkGroup);
 
 // initialize ListView

 this.listView = new ListView("someList", new
CompoundPropertyModel(this.someList)) {

 @Override
 protected void populateItem(ListItem item) {
 String[] array = (String[]) item.getModelObject();
 item.add(new Check("checkbox", item.getModel()));
 item.add(new Label("label1", array[0]));
 item.add(new Label("label2", array[1]));
 item.add(new Label("label3", array[2]));
 }
 };
 this.listView.setReuseItems(true);
 checkGroup.add(this.listView);


protected void onSubmit() {
 LinkedList list =
((LinkedList)checkGroup.getModelObject());
 
 for(int i=0; i
 //do stuff with the list
 }
 };



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Listview-Checkbox-checked-by-default-and-disapearing-after-submit-tp4654605.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




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



Listview Checkbox checked by default and disapearing after submit

2012-12-07 Thread Pat
Hi,

I have searched for this problem and read many entries but I can't seem to
figure it out. I have two problems:

1. When instantiate my ListView with Check checkboxes they are always
checked by default. I can't manage to uncheck them by default.

2. Once I have chosen items from my list via the checkboxes and submitted
the form depending on how many checkboxes have been checked, that amount of
rows just disappears from the bottom of my list. It doesn't matter which
boxes I check, it's always the rows from the bottom up that disappear.

It would be really great if anyone could help, thanks you in advance.

Here is my code:

// initialize CheckGroup
this.checkGroup = new CheckGroup("checkgroup", new
CompoundPropertyModel(this.someList));
someForm.add(checkGroup);

// initialize ListView
this.listView = new ListView("someList", new
CompoundPropertyModel(this.someList)) {

@Override
protected void populateItem(ListItem item) {
String[] array = (String[]) item.getModelObject();
item.add(new Check("checkbox", item.getModel()));
item.add(new Label("label1", array[0]));
item.add(new Label("label2", array[1]));
item.add(new Label("label3", array[2]));
}
};
this.listView.setReuseItems(true);
checkGroup.add(this.listView);


protected void onSubmit() {
LinkedList list =
((LinkedList)checkGroup.getModelObject());

for(int i=0; ihttp://apache-wicket.1842946.n4.nabble.com/Listview-Checkbox-checked-by-default-and-disapearing-after-submit-tp4654605.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: what is Wicket 2.x?

2012-12-07 Thread Jeremy Thomerson
Yep.  There was a big change to constructors IIRC, although I can't
remember exactly what the change was.  Next came 1.3.0 with generics.



-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


On Fri, Dec 7, 2012 at 12:55 PM, Pierre Goupil wrote:

> Good evening,
>
> It's an old experiment which was due to go to "ready for prime-time" but
> never succeeded. If I remember correctly, it was before what became Wicket
> 1.3.
>
> Regards,
>
> Pierre
>
>
> On Fri, Dec 7, 2012 at 7:47 PM, Lucio Crusca  wrote:
>
> > Hello *,
> >
> > while reading this page
> >
> > https://cwiki.apache.org/WICKET/working-with-wicket-models.html
> >
> > I stumbled upon the following sentence:
> >
> > «NOTE: this page is about models like they exist for Wicket 1.x. The
> IModel
> > interface is slightly changed in Wicket 2.x»
> >
> > What version of Wicket is 2.x? I'm aware of 1.x and 6.x, but never heard
> > about
> > 2.x...
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Le bonheur n'est pas une destination, mais une façon de voyager.
>
> Papa d'une petite Lou-Ann depuis le 30 juin.
>


Re: what is Wicket 2.x?

2012-12-07 Thread Pierre Goupil
Good evening,

It's an old experiment which was due to go to "ready for prime-time" but
never succeeded. If I remember correctly, it was before what became Wicket
1.3.

Regards,

Pierre


On Fri, Dec 7, 2012 at 7:47 PM, Lucio Crusca  wrote:

> Hello *,
>
> while reading this page
>
> https://cwiki.apache.org/WICKET/working-with-wicket-models.html
>
> I stumbled upon the following sentence:
>
> «NOTE: this page is about models like they exist for Wicket 1.x. The IModel
> interface is slightly changed in Wicket 2.x»
>
> What version of Wicket is 2.x? I'm aware of 1.x and 6.x, but never heard
> about
> 2.x...
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Le bonheur n'est pas une destination, mais une façon de voyager.

Papa d'une petite Lou-Ann depuis le 30 juin.


what is Wicket 2.x?

2012-12-07 Thread Lucio Crusca
Hello *,

while reading this page

https://cwiki.apache.org/WICKET/working-with-wicket-models.html

I stumbled upon the following sentence:

«NOTE: this page is about models like they exist for Wicket 1.x. The IModel 
interface is slightly changed in Wicket 2.x»

What version of Wicket is 2.x? I'm aware of 1.x and 6.x, but never heard about 
2.x...

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



Re: Create/Edit domain object data

2012-12-07 Thread Nick Pratt
As a followup, Ive used both approaches - although we tended to wrap the
non-persisted entity inside a DomainLDM

N

On Fri, Dec 7, 2012 at 1:14 PM, Nick Pratt  wrote:

> Im looking for recommendations on how to work with Form data and a
> JPA/Hibernate model, specifically around creating and editing domain data.
>
> I have a JPA backed domain model, and I want to create a page/panel/form
> that allows entry of a new "Foo", as well as being able to pass an existing
> LDM to the Page/Panel so that I can edit it.
>
> Obviously I'd like to use an IModel for the domain object so that I dont
> end up serializing the DB in to the session, but at the same time, I cant
> use an LDM until the new entity is saved and an ID is assigned to the
> object.
>
> For the 'new' case, do you just serialize the domain entity in to the
> session, IModel model = Model.of( new Foo() ); and let the Foo object
> be serialized until such time as the Foo.id is set so you can switch out
> the IModel ref to an LDM? Or is it best to just show the minimal number of
> fields required (*) to create a new Foo (accessed via PropertyModel(this,
> "attributeName), save it, and then set the LDM reference in the page
> and then let the other form elements be shown? (This approach duplicates
> code - the fields in the domain object are duplicated as primitives in the
> Page (which get serialized in to the session) )
>
> The edit functionality needs to allow all fields to be edited (including
> the fields mentioned in (*) above) - I dont want to duplicate form markup
> and code - once for the 'new' case and once for the 'edit' case - the
> 'edit' case would have a lot more fields that could be entered/edited.
>
> Are there other approaches that I'm missing, and what is the best pattern
> to follow here?
>
>


Create/Edit domain object data

2012-12-07 Thread Nick Pratt
Im looking for recommendations on how to work with Form data and a
JPA/Hibernate model, specifically around creating and editing domain data.

I have a JPA backed domain model, and I want to create a page/panel/form
that allows entry of a new "Foo", as well as being able to pass an existing
LDM to the Page/Panel so that I can edit it.

Obviously I'd like to use an IModel for the domain object so that I dont
end up serializing the DB in to the session, but at the same time, I cant
use an LDM until the new entity is saved and an ID is assigned to the
object.

For the 'new' case, do you just serialize the domain entity in to the
session, IModel model = Model.of( new Foo() ); and let the Foo object
be serialized until such time as the Foo.id is set so you can switch out
the IModel ref to an LDM? Or is it best to just show the minimal number of
fields required (*) to create a new Foo (accessed via PropertyModel(this,
"attributeName), save it, and then set the LDM reference in the page
and then let the other form elements be shown? (This approach duplicates
code - the fields in the domain object are duplicated as primitives in the
Page (which get serialized in to the session) )

The edit functionality needs to allow all fields to be edited (including
the fields mentioned in (*) above) - I dont want to duplicate form markup
and code - once for the 'new' case and once for the 'edit' case - the
'edit' case would have a lot more fields that could be entered/edited.

Are there other approaches that I'm missing, and what is the best pattern
to follow here?


RE: table header not rendered correctly

2012-12-07 Thread Paul Bors
Your HTML didn't come through. Maybe your e-mail client is blocking it?

If you want to use an HTML table, why not use a DataTable along with its
HeaderToolbar instead of a simple ListView repeater?

See the repeaters at:
http://www.wicket-library.com/wicket-examples/index.html

~ Thank you,
  Paul Bors

-Original Message-
From: appwicket [mailto:wwx@gmail.com] 
Sent: Friday, December 07, 2012 11:43 AM
To: users@wicket.apache.org
Subject: table header not rendered correctly

Hi all,
I have a List of String for my table:
final List title2 =
Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
WebMarkupContainer datacontainer = new WebMarkupContainer("data");
datacontainer.add(new ListView("title2", title2 ) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
item.add(new Label("tl",
String.valueOf(item.getModelObject(;
system.out.println("item object =
"+String.valueOf(item.getModelObject()));
}
});

in my html:









 


problem is, when populate item, i got output:
item object = 1
item object = 2
item object = 3
item object = 4
item object = 5
item object =
item object = 6
item object = 7
item object = 8
item object =
item object = 9
item object = 10
item object =11
item object =
item object = 12
item object = 13
item object = 14
title2.size() is 14 but why it has more objects when populating items?
please help! thanks!



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correct
ly-tp4654596.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



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



Re: Conditional JS includes

2012-12-07 Thread Jeremy Thomerson
You could use if/else blocks in your text templates.

On Friday, December 7, 2012, Nick Pratt wrote:

> Do TextTemplate's aggregate, and can that aggregate be provided as a single
> Resource?
>
> N
>
> On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov 
> 
> >wrote:
>
> > You can also use TextTemplate(s) to construct/concat the JS dynamically.
> >
> >
> > On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt 
> > >
> wrote:
> >
> > > I currently have a single javascript file in a custom Behavior that Id
> > like
> > > to conditionally include sections of depending on provided user
> options.
> > >
> > > Whats the best way to achieve this?
> > >
> > > Split the single file in to, say 3 separate JS files and then
> > conditionally
> > > include them in Java during the renderHead() of my Behavior? Is there a
> > > better way?
> > >
> > >
> > > Nick
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>


-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


table header not rendered correctly

2012-12-07 Thread appwicket
Hi all,
I have a List of String for my table:
final List title2 =
Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
WebMarkupContainer datacontainer = new WebMarkupContainer("data");
datacontainer.add(new ListView("title2", title2 ) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
item.add(new Label("tl", 
String.valueOf(item.getModelObject(;
system.out.println("item object =
"+String.valueOf(item.getModelObject()));
}
});

in my html:









 


problem is, when populate item, i got output:
item object = 1
item object = 2
item object = 3
item object = 4
item object = 5
item object = 
item object = 6
item object = 7
item object = 8
item object = 
item object = 9
item object = 10
item object =11
item object = 
item object = 12
item object = 13
item object = 14
title2.size() is 14 but why it has more objects when populating items?
please help! thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correctly-tp4654596.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: Conditional JS includes

2012-12-07 Thread Nick Pratt
Do TextTemplate's aggregate, and can that aggregate be provided as a single
Resource?

N

On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov wrote:

> You can also use TextTemplate(s) to construct/concat the JS dynamically.
>
>
> On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt  wrote:
>
> > I currently have a single javascript file in a custom Behavior that Id
> like
> > to conditionally include sections of depending on provided user options.
> >
> > Whats the best way to achieve this?
> >
> > Split the single file in to, say 3 separate JS files and then
> conditionally
> > include them in Java during the renderHead() of my Behavior? Is there a
> > better way?
> >
> >
> > Nick
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>


Re: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul
Thanks, your suggestion solved my problem. Greetings from Spain.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654594.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 is null after submit, using FormComponentPanel

2012-12-07 Thread Sven Meier

Hi Raul,

there are a few things to improve here:
- in your case you don't need to extend FormComponentPanel
- if you really want to control the textField's inputName, you have to 
let the component know about it

- usage of models could be improved.

See here for some ideas:

http://www.fileconvoy.com/dfl.php?id=gdb276da925b2a095999178849bf06c4474e3bdd23

Sven

On 12/07/2012 10:06 AM, Raul wrote:

Here is the example to prove it's package it and deploy it in an application
server.

http://ul.to/ymfabds0



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.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




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



Re: Mounting of ConcatResourceBundleReference in a WebPage

2012-12-07 Thread aws0934
Hi Martin,

I do not know how to use IRequestMapper to achieve my goal and could not
find a suitable example. Do you know where I can find one? 

Basically, I just want to remove the package name from my CSS-/JS-URLs
(ConcatResourceBundleReferences) so that for instance

/wicket/resource/com.company.pages.AbstractBasePage$JSBundle/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

looks at least like

/wicket/resource/AbstractBasePage$JSBundle/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

or even better like

/wicket/resource/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

- which would be quite like mounting resources with mountResource inside the
Application (minus the "/wicket/resource").

Arne



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mounting-of-ConcatResourceBundleReference-in-a-WebPage-tp4653693p4654592.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: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin,


On Fri, Dec 7, 2012 at 11:39 AM, Martin Grigorov wrote:

> This change is properly documented in the migration guide and as I said so
> far no one complained :-)

Your suggestion sounds like a helper for the migration which we wont be
> able to remove in the future.
>
>
Yes your comments are right and fair... it might be that my brain is
needing some holidays;-)



>
> On Fri, Dec 7, 2012 at 11:33 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Yes I understand that... but IMHO it would certainly help migrating as
> you
> > would only need to insert ".Instance" to get your old code working.
> >
> > On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov  > >wrote:
> >
> > > No one asked for such API so far.
> > > When we did it with RequestCycle.get().find(AjaxRequestTarget.class)
> > > several Wicket devs agreed on this API.
> > >
> > >
> > > On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Martin.
> > > >
> > > > Would it make sense to add class
> > > >
> > > >/**
> > > >  * Instance finder.
> > > >  *
> > > >  */
> > > > public static final class Instance
> > > > {
> > > >  /**
> > > >  *
> > > >  * @return The instance of AjaxRequestTarget.
> > > >  */
> > > > public static AjaxRequestTarget get()
> > > > {
> > > >  return RequestCycle.get().find(AjaxRequestTarget.class);
> > > > }
> > > > }
> > > >
> > > > to AjaxRequestTarget interface so that one can do
> > > >
> > > > AjaxRequestTarget.Instance.get()... similar to
> AjaxRequestTarget.get()
> > on
> > > > 1.5.x... Or there is no much gain in doing that?
> > > >
> > > >
> > > > On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov <
> mgrigo...@apache.org
> > > > >wrote:
> > > >
> > > > > AjaxRequestTarget.get() is the API for Wicket 1.5
> > > > > In Wicket 6 ART is an interface and there is no way to have static
> > > > method,
> > > > > so getRequestCycle().find(IRequestHandler.class) is introduced. It
> > can
> > > be
> > > > > used for any impl of IRequestHandler, not just AjaxRequestTarget.
> > > > >
> > > > >
> > > > > On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> > > > > reier...@gmail.com> wrote:
> > > > >
> > > > > > Martin.
> > > > > >
> > > > > > Wouldn't  AjaxRequestTarget.get() work as well?
> > > > > >
> > > > > > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov <
> > > mgrigo...@apache.org
> > > > > > >wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Indeed there is no explicit method for this.
> > > > > > > The only way I see is to
> > > > > > > override
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > > > > > and use getRequestCycle().find(AjaxRequestTarget.class) to get
> > the
> > > > > target
> > > > > > > and use it.
> > > > > > >
> > > > > > > Please file a ticket for improvement.
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > > > > > >
> > > > > > > > Hi Everyone,
> > > > > > > >
> > > > > > > > I need to update a feedback panel with some info after a lazy
> > > load
> > > > > > panel
> > > > > > > > finishes getting its data.  I was looking for a method like
> > > > > > > "onPanelLoaded(
> > > > > > > > AjaxRequestTarget target )" but didn't see anything so not
> sure
> > > how
> > > > > to
> > > > > > > get
> > > > > > > > my feedback panel refreshed.
> > > > > > > >
> > > > > > > > Thanks for any tips.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > View this message in context:
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Martin Grigorov
> > > > > > > jWeekend
> > > > > > > Training, Consulting, Development
> > > > > > > http://jWeekend.com 
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Regards - Ernesto Reinaldo Barreiro
> > > > > > Antilia Soft
> > > > > > http://antiliasoft.com/ 
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Martin Grigorov
> > > > > jWeekend
> > > > > Training, Consulting, Development
> > > > > http://jWeekend.com 
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > > Antilia Soft
> > > > http://antiliasoft.com/ 
> > > >
> > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jW

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
This change is properly documented in the migration guide and as I said so
far no one complained :-)

Your suggestion sounds like a helper for the migration which we wont be
able to remove in the future.


On Fri, Dec 7, 2012 at 11:33 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Yes I understand that... but IMHO it would certainly help migrating as you
> would only need to insert ".Instance" to get your old code working.
>
> On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov  >wrote:
>
> > No one asked for such API so far.
> > When we did it with RequestCycle.get().find(AjaxRequestTarget.class)
> > several Wicket devs agreed on this API.
> >
> >
> > On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Martin.
> > >
> > > Would it make sense to add class
> > >
> > >/**
> > >  * Instance finder.
> > >  *
> > >  */
> > > public static final class Instance
> > > {
> > >  /**
> > >  *
> > >  * @return The instance of AjaxRequestTarget.
> > >  */
> > > public static AjaxRequestTarget get()
> > > {
> > >  return RequestCycle.get().find(AjaxRequestTarget.class);
> > > }
> > > }
> > >
> > > to AjaxRequestTarget interface so that one can do
> > >
> > > AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get()
> on
> > > 1.5.x... Or there is no much gain in doing that?
> > >
> > >
> > > On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov  > > >wrote:
> > >
> > > > AjaxRequestTarget.get() is the API for Wicket 1.5
> > > > In Wicket 6 ART is an interface and there is no way to have static
> > > method,
> > > > so getRequestCycle().find(IRequestHandler.class) is introduced. It
> can
> > be
> > > > used for any impl of IRequestHandler, not just AjaxRequestTarget.
> > > >
> > > >
> > > > On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > > > Martin.
> > > > >
> > > > > Wouldn't  AjaxRequestTarget.get() work as well?
> > > > >
> > > > > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov <
> > mgrigo...@apache.org
> > > > > >wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Indeed there is no explicit method for this.
> > > > > > The only way I see is to
> > > > > > override
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > > > > and use getRequestCycle().find(AjaxRequestTarget.class) to get
> the
> > > > target
> > > > > > and use it.
> > > > > >
> > > > > > Please file a ticket for improvement.
> > > > > >
> > > > > >
> > > > > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > > > > >
> > > > > > > Hi Everyone,
> > > > > > >
> > > > > > > I need to update a feedback panel with some info after a lazy
> > load
> > > > > panel
> > > > > > > finishes getting its data.  I was looking for a method like
> > > > > > "onPanelLoaded(
> > > > > > > AjaxRequestTarget target )" but didn't see anything so not sure
> > how
> > > > to
> > > > > > get
> > > > > > > my feedback panel refreshed.
> > > > > > >
> > > > > > > Thanks for any tips.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Martin Grigorov
> > > > > > jWeekend
> > > > > > Training, Consulting, Development
> > > > > > http://jWeekend.com 
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Regards - Ernesto Reinaldo Barreiro
> > > > > Antilia Soft
> > > > > http://antiliasoft.com/ 
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Martin Grigorov
> > > > jWeekend
> > > > Training, Consulting, Development
> > > > http://jWeekend.com 
> > > >
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > > Antilia Soft
> > > http://antiliasoft.com/ 
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Yes I understand that... but IMHO it would certainly help migrating as you
would only need to insert ".Instance" to get your old code working.

On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov wrote:

> No one asked for such API so far.
> When we did it with RequestCycle.get().find(AjaxRequestTarget.class)
> several Wicket devs agreed on this API.
>
>
> On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Martin.
> >
> > Would it make sense to add class
> >
> >/**
> >  * Instance finder.
> >  *
> >  */
> > public static final class Instance
> > {
> >  /**
> >  *
> >  * @return The instance of AjaxRequestTarget.
> >  */
> > public static AjaxRequestTarget get()
> > {
> >  return RequestCycle.get().find(AjaxRequestTarget.class);
> > }
> > }
> >
> > to AjaxRequestTarget interface so that one can do
> >
> > AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on
> > 1.5.x... Or there is no much gain in doing that?
> >
> >
> > On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov  > >wrote:
> >
> > > AjaxRequestTarget.get() is the API for Wicket 1.5
> > > In Wicket 6 ART is an interface and there is no way to have static
> > method,
> > > so getRequestCycle().find(IRequestHandler.class) is introduced. It can
> be
> > > used for any impl of IRequestHandler, not just AjaxRequestTarget.
> > >
> > >
> > > On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Martin.
> > > >
> > > > Wouldn't  AjaxRequestTarget.get() work as well?
> > > >
> > > > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov <
> mgrigo...@apache.org
> > > > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Indeed there is no explicit method for this.
> > > > > The only way I see is to
> > > > > override
> > > > >
> > > >
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > > > and use getRequestCycle().find(AjaxRequestTarget.class) to get the
> > > target
> > > > > and use it.
> > > > >
> > > > > Please file a ticket for improvement.
> > > > >
> > > > >
> > > > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > > > >
> > > > > > Hi Everyone,
> > > > > >
> > > > > > I need to update a feedback panel with some info after a lazy
> load
> > > > panel
> > > > > > finishes getting its data.  I was looking for a method like
> > > > > "onPanelLoaded(
> > > > > > AjaxRequestTarget target )" but didn't see anything so not sure
> how
> > > to
> > > > > get
> > > > > > my feedback panel refreshed.
> > > > > >
> > > > > > Thanks for any tips.
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Martin Grigorov
> > > > > jWeekend
> > > > > Training, Consulting, Development
> > > > > http://jWeekend.com 
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > > Antilia Soft
> > > > http://antiliasoft.com/ 
> > > >
> > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
No one asked for such API so far.
When we did it with RequestCycle.get().find(AjaxRequestTarget.class)
several Wicket devs agreed on this API.


On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Martin.
>
> Would it make sense to add class
>
>/**
>  * Instance finder.
>  *
>  */
> public static final class Instance
> {
>  /**
>  *
>  * @return The instance of AjaxRequestTarget.
>  */
> public static AjaxRequestTarget get()
> {
>  return RequestCycle.get().find(AjaxRequestTarget.class);
> }
> }
>
> to AjaxRequestTarget interface so that one can do
>
> AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on
> 1.5.x... Or there is no much gain in doing that?
>
>
> On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov  >wrote:
>
> > AjaxRequestTarget.get() is the API for Wicket 1.5
> > In Wicket 6 ART is an interface and there is no way to have static
> method,
> > so getRequestCycle().find(IRequestHandler.class) is introduced. It can be
> > used for any impl of IRequestHandler, not just AjaxRequestTarget.
> >
> >
> > On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Martin.
> > >
> > > Wouldn't  AjaxRequestTarget.get() work as well?
> > >
> > > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov  > > >wrote:
> > >
> > > > Hi,
> > > >
> > > > Indeed there is no explicit method for this.
> > > > The only way I see is to
> > > > override
> > > >
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > > and use getRequestCycle().find(AjaxRequestTarget.class) to get the
> > target
> > > > and use it.
> > > >
> > > > Please file a ticket for improvement.
> > > >
> > > >
> > > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > > >
> > > > > Hi Everyone,
> > > > >
> > > > > I need to update a feedback panel with some info after a lazy load
> > > panel
> > > > > finishes getting its data.  I was looking for a method like
> > > > "onPanelLoaded(
> > > > > AjaxRequestTarget target )" but didn't see anything so not sure how
> > to
> > > > get
> > > > > my feedback panel refreshed.
> > > > >
> > > > > Thanks for any tips.
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Martin Grigorov
> > > > jWeekend
> > > > Training, Consulting, Development
> > > > http://jWeekend.com 
> > > >
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > > Antilia Soft
> > > http://antiliasoft.com/ 
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin.

Would it make sense to add class

   /**
 * Instance finder.
 *
 */
public static final class Instance
{
 /**
 *
 * @return The instance of AjaxRequestTarget.
 */
public static AjaxRequestTarget get()
{
 return RequestCycle.get().find(AjaxRequestTarget.class);
}
}

to AjaxRequestTarget interface so that one can do

AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on
1.5.x... Or there is no much gain in doing that?


On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov wrote:

> AjaxRequestTarget.get() is the API for Wicket 1.5
> In Wicket 6 ART is an interface and there is no way to have static method,
> so getRequestCycle().find(IRequestHandler.class) is introduced. It can be
> used for any impl of IRequestHandler, not just AjaxRequestTarget.
>
>
> On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Martin.
> >
> > Wouldn't  AjaxRequestTarget.get() work as well?
> >
> > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov  > >wrote:
> >
> > > Hi,
> > >
> > > Indeed there is no explicit method for this.
> > > The only way I see is to
> > > override
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > and use getRequestCycle().find(AjaxRequestTarget.class) to get the
> target
> > > and use it.
> > >
> > > Please file a ticket for improvement.
> > >
> > >
> > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > >
> > > > Hi Everyone,
> > > >
> > > > I need to update a feedback panel with some info after a lazy load
> > panel
> > > > finishes getting its data.  I was looking for a method like
> > > "onPanelLoaded(
> > > > AjaxRequestTarget target )" but didn't see anything so not sure how
> to
> > > get
> > > > my feedback panel refreshed.
> > > >
> > > > Thanks for any tips.
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > >
> > > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


RE: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul

Here is the example to prove it's package it and deploy it in an application
server.

http://ul.to/ymfabds0



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.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: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Thanks for explanation!

On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov wrote:

> AjaxRequestTarget.get() is the API for Wicket 1.5
> In Wicket 6 ART is an interface and there is no way to have static method,
> so getRequestCycle().find(IRequestHandler.class) is introduced. It can be
> used for any impl of IRequestHandler, not just AjaxRequestTarget.
>
>
> On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Martin.
> >
> > Wouldn't  AjaxRequestTarget.get() work as well?
> >
> > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov  > >wrote:
> >
> > > Hi,
> > >
> > > Indeed there is no explicit method for this.
> > > The only way I see is to
> > > override
> > >
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > > and use getRequestCycle().find(AjaxRequestTarget.class) to get the
> target
> > > and use it.
> > >
> > > Please file a ticket for improvement.
> > >
> > >
> > > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> > >
> > > > Hi Everyone,
> > > >
> > > > I need to update a feedback panel with some info after a lazy load
> > panel
> > > > finishes getting its data.  I was looking for a method like
> > > "onPanelLoaded(
> > > > AjaxRequestTarget target )" but didn't see anything so not sure how
> to
> > > get
> > > > my feedback panel refreshed.
> > > >
> > > > Thanks for any tips.
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > > >
> > > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
AjaxRequestTarget.get() is the API for Wicket 1.5
In Wicket 6 ART is an interface and there is no way to have static method,
so getRequestCycle().find(IRequestHandler.class) is introduced. It can be
used for any impl of IRequestHandler, not just AjaxRequestTarget.


On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Martin.
>
> Wouldn't  AjaxRequestTarget.get() work as well?
>
> On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov  >wrote:
>
> > Hi,
> >
> > Indeed there is no explicit method for this.
> > The only way I see is to
> > override
> >
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> > and use getRequestCycle().find(AjaxRequestTarget.class) to get the target
> > and use it.
> >
> > Please file a ticket for improvement.
> >
> >
> > On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
> >
> > > Hi Everyone,
> > >
> > > I need to update a feedback panel with some info after a lazy load
> panel
> > > finishes getting its data.  I was looking for a method like
> > "onPanelLoaded(
> > > AjaxRequestTarget target )" but didn't see anything so not sure how to
> > get
> > > my feedback panel refreshed.
> > >
> > > Thanks for any tips.
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> > >
> > >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: Conditional JS includes

2012-12-07 Thread Martin Grigorov
You can also use TextTemplate(s) to construct/concat the JS dynamically.


On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt  wrote:

> I currently have a single javascript file in a custom Behavior that Id like
> to conditionally include sections of depending on provided user options.
>
> Whats the best way to achieve this?
>
> Split the single file in to, say 3 separate JS files and then conditionally
> include them in Java during the renderHead() of my Behavior? Is there a
> better way?
>
>
> Nick
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin.

Wouldn't  AjaxRequestTarget.get() work as well?

On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov wrote:

> Hi,
>
> Indeed there is no explicit method for this.
> The only way I see is to
> override
> org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
> and use getRequestCycle().find(AjaxRequestTarget.class) to get the target
> and use it.
>
> Please file a ticket for improvement.
>
>
> On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:
>
> > Hi Everyone,
> >
> > I need to update a feedback panel with some info after a lazy load panel
> > finishes getting its data.  I was looking for a method like
> "onPanelLoaded(
> > AjaxRequestTarget target )" but didn't see anything so not sure how to
> get
> > my feedback panel refreshed.
> >
> > Thanks for any tips.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
> >
> >
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: WebSockets questions

2012-12-07 Thread Martin Grigorov
Hi Maxim,

Please create a quickstart and attach it to a ticket in Jira.
Try to expose as many problems as you can with it.


On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik wrote:

> Hello,
>
> I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
> Incubating)
>
> Unfortunately my first attempts were unsuccessful :(
>
> Configuration:
> 1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
> Tomcat/7.0.32 embedded)
> 2) Sun JDK 1.7.09
> 3) Ubuntu 12.10
> 4) Wicket 6.3.0
> 5) Google Chrome 24.0.1312.32 beta
> 6) One page architecture with custom HomePageMapper
>
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
>
> What I did:
> 1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
> 2) add new WebSocketBehavior() to the page
>
> Errors:
> 1) if the page is accessed via
> http://localhost:5080/openmeetings/html/#admin/configs URL I get "URL has
> fragment component
> ws://localhost:5080/openmeetings/html/#admin/configs&pageId=8" error
>
> 2) if the page is accessed via http://localhost:5080/openmeetings/html/ I
> get
> java.lang.IllegalStateException: Request parameter 'pageId' is required!
> in the error log
>
> I believe error 1) above is bug, I'm I right?
> Maybe anybody can suggest how to handle error 2) ?
>
> I would really appreciate any help :)
>
> --
> WBR
> Maxim aka solomax
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
Hi,

Indeed there is no explicit method for this.
The only way I see is to
override 
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent
and use getRequestCycle().find(AjaxRequestTarget.class) to get the target
and use it.

Please file a ticket for improvement.


On Thu, Dec 6, 2012 at 9:29 PM, pkc  wrote:

> Hi Everyone,
>
> I need to update a feedback panel with some info after a lazy load panel
> finishes getting its data.  I was looking for a method like "onPanelLoaded(
> AjaxRequestTarget target )" but didn't see anything so not sure how to get
> my feedback panel refreshed.
>
> Thanks for any tips.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com