Wicket page test

2012-10-22 Thread Arunachalam Sibisakkaravarthi
Hai,

Here we are using wicket 1.5.7.

We have a simple test for each wicket page to assert rendering like this:

WicketTester.assertRenderedPage(Page.class);

In our module we have 52 tests w.r.t wicket pages.

It takes so long to run these tests.

Please give suggestion to improve test cases that how to reduce the time
taken by this module.

-- 
*Thanks And Regards
Sibi.Arunachalam
mCruncher*


Re: Wicket page test

2012-10-22 Thread Martin Grigorov
Hi,

Do you call wicketTester.destroy() at the end of your tests ?

On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
 Hai,

 Here we are using wicket 1.5.7.

 We have a simple test for each wicket page to assert rendering like this:

 WicketTester.assertRenderedPage(Page.class);

 In our module we have 52 tests w.r.t wicket pages.

 It takes so long to run these tests.

 Please give suggestion to improve test cases that how to reduce the time
 taken by this module.

 --
 *Thanks And Regards
 Sibi.Arunachalam
 mCruncher*



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

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



Re: Wicket page test

2012-10-22 Thread Arunachalam Sibisakkaravarthi
No, We don't call wicketTester.destroy() at the end of tests.

On Mon, Oct 22, 2012 at 5:01 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Do you call wicketTester.destroy() at the end of your tests ?

 On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
 arunacha...@mcruncher.com wrote:
  Hai,
 
  Here we are using wicket 1.5.7.
 
  We have a simple test for each wicket page to assert rendering like this:
 
  WicketTester.assertRenderedPage(Page.class);
 
  In our module we have 52 tests w.r.t wicket pages.
 
  It takes so long to run these tests.
 
  Please give suggestion to improve test cases that how to reduce the time
  taken by this module.
 
  --
  *Thanks And Regards
  Sibi.Arunachalam
  mCruncher*



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

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




-- 
*Thanks And Regards
Sibi.Arunachalam
mCruncher*


Re: JSON response in wicket = 6.0.0

2012-10-22 Thread Martin Grigorov
Hi,

On Sun, Oct 21, 2012 at 11:54 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 Hi,

 On Sun, Oct 21, 2012 at 10:57 AM, Gonzalo Aguilar Delgado 
 gagui...@aguilardelgado.com wrote:

 Hello Ernesto,

 I sometimes get confused myself. ;-) I think that I don't understand
 well this piece of code:

 @Override
 public final void onRequest()
 {
 WebApplication app =
 (WebApplication)getComponent().getApplication();
 AjaxRequestTarget target =
 app.newAjaxRequestTarget(getComponent().getPage());

 RequestCycle requestCycle = RequestCycle.get();
 requestCycle.scheduleRequestHandlerAfterCurrent(target);

 respond(target);
 }




 AJAX requests are handled int two steps (please Martin and/or other core
 developers correct me if I'm saying something wrong;-). First is is

Actually everything is in two steps, not only Ajax.
The first step is the ACTION phase and the second is the RENDER phase.

 executed ListenerInterfaceRequestHandler (which delegates
 on IBehaviorListener#onRequest). So, there you a new request handler is
 scheduled after current, so once wicket finishes processing current request
 handler it will start processing the new scheduled request handler (that
 will produce the AJAX output). This technique is used in many places on the
 framework, Eg. DownloadLink#click()

 public void onClick()
 {
 final File file = getModelObject();
 if (file == null)
 {
 throw new IllegalStateException(getClass().getName() +
  failed to retrieve a File object from model);
 }

 String fileName = fileNameModel != null ? fileNameModel.getObject() : null;
 if (Strings.isEmpty(fileName))
 {
 fileName = file.getName();
 }

 fileName = UrlEncoder.QUERY_INSTANCE.encode(fileName,
 getRequest().getCharset());

 IResourceStream resourceStream = new FileResourceStream(
 new org.apache.wicket.util.file.File(file));
 getRequestCycle().scheduleRequestHandlerAfterCurrent(
 new ResourceStreamRequestHandler(resourceStream)
 {
 @Override
 public void respond(IRequestCycle requestCycle)
 {
 super.respond(requestCycle);

 if (deleteAfter)
 {
 Files.remove(file);
 }
 }
 }.setFileName(fileName)
 .setContentDisposition(ContentDisposition.ATTACHMENT)
 .setCacheDuration(cacheDuration));
 }



 Because the AjaxRequestTarget is really a handler like
 TextRequestHandler but I don't know the
 call machanism.


 Look at the code RequestCycle#processRequestAndDetach and the calls it
 makes.


 What does the requestCycle.scheduleRequestHandlerAfterCurrent(target);
 here and when used
 with a TextRequestHandler. What's the difference?


 There is no difference, you tell wicket that after current handler it
 should discard the results and execute next handler. In your case instead
 of returning an AJAX response return some text (JSON) response.


 Is there any way where this mechanism is explained?


 I don't know if Martin or other core developers explain this somewhere?


RequestCycle's javadoc contains a bit but it can definitely be extended.
Another docu that can explain this is
https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5.

I'll try to extend both soon.


 Thank you a lot!


 You are welcome:-)

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



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

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



Re: Which Twitter Bootstrap to use?

2012-10-22 Thread Martijn Dashorst
The core Wicket Bootstrap currently just provides the bootstrap
artifacts. And for the foreseeable future, I don't expect it to go
beyond that too much.

I still am on the fence on:

 - whether a Bootstrap component library should be part of Wicket
 - whether l0rdn1kk0n's implementation is the way to go

If you need a component library now, you should really use
l0rdn1kk0n's implementation. Currently that project has the freedom to
move at a different pace than Wicket, so that is a benefit. If/whether
that ends up at Apache is unknown.

At €-dayjob we are starting to develop Bootstrap applications and we
are experimenting with building our own component libraries. If they
end up looking like l0rdn1kk0n's bootstrap implementation, we'll
gladly move to that project, and start advocating its adoption as a
wicket core project, or start pointing folks at that particular
implementation.

For now, Wicket's bootstrap is just there to support the new examples
and might be folded into them. I think the wicket examples are a
special case that usually don't have the same requirements for
components as your typical 'enterprise' application, and wouldn't
benefit of l0rdn1kk0n's implementation.

Martijn

On Sun, Oct 21, 2012 at 2:43 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 We've ported our app to Wicket 6.2 and are now looking to start using
 Twitter Bootstrap.

 Is this a correct summary of the current state Twitter Bootstrap support
 in Wicket?

 1.  The Wicket experimental does not provide any component
 implementations. It merely provides a class for convenient inclusion of
 the appropriate CSS + JS resources required for Twitter Bootstrap to
 work via doing this in any page class that requires it:
 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);

 Bootstrap.renderHead(response);
 }

 2.   The l0rdn1kk0n Wicket-Bootstrap project (pity about the weird
 name!) has a few Wicket components specialized for Twitter Bootstrap use
 and includes support for some free Bootstrap schemes.

 Some questions:

 How far off before Wicket bootstrap experimental gets some native wicket
 components?
 Could Wicket bootstrap experimental integrate the work of the
 l0rdn1kk0n, bringing in some of it's components to leverage of existing
 work by that project?
 Will Wicket bootstrap experimental be so radically different to the
 l0rdn1kk0n that porting to Wicket bootstrap experimental will be a
 bothersome task when it's ready?

 Chris Colman



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Wicket page test

2012-10-22 Thread Martin Grigorov
Call it and try again.

On Mon, Oct 22, 2012 at 11:45 AM, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
 No, We don't call wicketTester.destroy() at the end of tests.

 On Mon, Oct 22, 2012 at 5:01 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Do you call wicketTester.destroy() at the end of your tests ?

 On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
 arunacha...@mcruncher.com wrote:
  Hai,
 
  Here we are using wicket 1.5.7.
 
  We have a simple test for each wicket page to assert rendering like this:
 
  WicketTester.assertRenderedPage(Page.class);
 
  In our module we have 52 tests w.r.t wicket pages.
 
  It takes so long to run these tests.
 
  Please give suggestion to improve test cases that how to reduce the time
  taken by this module.
 
  --
  *Thanks And Regards
  Sibi.Arunachalam
  mCruncher*



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

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




 --
 *Thanks And Regards
 Sibi.Arunachalam
 mCruncher*



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

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



Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
Hi,

I implemented following your suggestions. Currently, the list item is deleted 
if I press ok or cancel in the dialog.

item.add(new AjaxDecoratedCheckbox(toRemove, new 
ModelBoolean(Boolean.FALSE)) {
private static final long serialVersionUID = 
7170946748485726506L;

@Override
protected void onUpdate(final AjaxRequestTarget target) {
--
entityTO.getDerivedAttributes().remove(attributeTO);
target.add(attributesContainer);
}

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes 
attributes) {
super.updateAjaxAttributes(attributes);

IAjaxCallListener myAjaxCallListener = new 
AjaxCallListener() {
private static final long serialVersionUID = 
7160235486520935153L;  

@Override
public CharSequence getPrecondition(Component 
component) {
return if (!confirm(' + 
getString(confirmDelete) + ')) + {return false;};
}
};

attributes.getAjaxCallListeners().add(myAjaxCallListener);
}
});

What should I call to handle ok or cancell event?

Marco

On Oct 19, 2012, at 6:10 PM, vineet semwal wrote:

 iajaxcalldecorator is replaced with
 iajaxcalllistener,ajaxcalllistener(dummy implementation)
 is what you can extend for your use ,override
 ajaxcheckbox#updateAjaxAttributes(attributes)
 like below
  @Override
protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes) {
attributes.getAjaxCallListeners().add(new AjaxCallListener(){
@Override
public CharSequence getPrecondition(Component component) {
return if (!confirm(' +
 getString(confirmDelete) + ')) + { return false; }  ;
}
});
}
 
 On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi all,
 
 How can i convert this code into wicket 6.1.
 
   item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
 
 @Override
 protected void onUpdate(final AjaxRequestTarget target) {
entityTO.getDerivedAttributes().remove(attributeTO);
target.add(attributesContainer);
}
 
 @Override
  protected IAjaxCallDecorator getAjaxCallDecorator() {
return new 
 AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
 
 @Override
 public CharSequence preDecorateScript(final CharSequence script) {
 return if (confirm(' + getString(confirmDelete) + ')) + { + 
 script + } 
 + else {this.checked = false;};
}
};
 }
 });
 
 I see the migration doc, but i not found a solution.
 
 Thanks
 M
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 -- 
 regards,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino






Re: JSON response in wicket = 6.0.0

2012-10-22 Thread Ernesto Reinaldo Barreiro
Hi Martin,

Thanks for the clarification.


  AJAX requests are handled int two steps (please Martin and/or other core
  developers correct me if I'm saying something wrong;-). First is is

 Actually everything is in two steps, not only Ajax.
 The first step is the ACTION phase and the second is the RENDER phase.


I just realized that as soon as I've looked at other examples (bookmarkable
page links, download links and so on).

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


RE: Which Twitter Bootstrap to use?

2012-10-22 Thread Chris Colman
Ok, thanks for that summary.

On another note: Is there a correct pronunciation of l0rdn1kk0n? If so, what 
is it? =]


-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
Sent: Monday, 22 October 2012 9:00 PM
To: users@wicket.apache.org
Subject: Re: Which Twitter Bootstrap to use?

The core Wicket Bootstrap currently just provides the bootstrap
artifacts. And for the foreseeable future, I don't expect it to go
beyond that too much.

I still am on the fence on:

 - whether a Bootstrap component library should be part of Wicket
 - whether l0rdn1kk0n's implementation is the way to go

If you need a component library now, you should really use
l0rdn1kk0n's implementation. Currently that project has the freedom to
move at a different pace than Wicket, so that is a benefit. If/whether
that ends up at Apache is unknown.

At €-dayjob we are starting to develop Bootstrap applications and we
are experimenting with building our own component libraries. If they
end up looking like l0rdn1kk0n's bootstrap implementation, we'll
gladly move to that project, and start advocating its adoption as a
wicket core project, or start pointing folks at that particular
implementation.

For now, Wicket's bootstrap is just there to support the new examples
and might be folded into them. I think the wicket examples are a
special case that usually don't have the same requirements for
components as your typical 'enterprise' application, and wouldn't
benefit of l0rdn1kk0n's implementation.

Martijn

On Sun, Oct 21, 2012 at 2:43 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 We've ported our app to Wicket 6.2 and are now looking to start using
 Twitter Bootstrap.

 Is this a correct summary of the current state Twitter Bootstrap support
 in Wicket?

 1.  The Wicket experimental does not provide any component
 implementations. It merely provides a class for convenient inclusion of
 the appropriate CSS + JS resources required for Twitter Bootstrap to
 work via doing this in any page class that requires it:
 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);

 Bootstrap.renderHead(response);
 }

 2.   The l0rdn1kk0n Wicket-Bootstrap project (pity about the weird
 name!) has a few Wicket components specialized for Twitter Bootstrap use
 and includes support for some free Bootstrap schemes.

 Some questions:

 How far off before Wicket bootstrap experimental gets some native wicket
 components?
 Could Wicket bootstrap experimental integrate the work of the
 l0rdn1kk0n, bringing in some of it's components to leverage of existing
 work by that project?
 Will Wicket bootstrap experimental be so radically different to the
 l0rdn1kk0n that porting to Wicket bootstrap experimental will be a
 bothersome task when it's ready?

 Chris Colman



--
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread steven.li
I have run the demo application, found that, the

Scroll on Page link only show 13 rows result without go to  next page when
i pull down the page scroll bar.

I test it on IE8. do you have the same issue ? 

Thanks.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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: Which Twitter Bootstrap to use?

2012-10-22 Thread Sébastien Gautrin
It's just some classic use of numbers instead of vowels. Read it as 
you'd read Lord Nikkon (if I'm not mistaken, it's a reference to the 
1995 movie, Hackers)


 Original Message 
Subject: Re: Which Twitter Bootstrap to use?
From: Chris Colman chr...@stepaheadsoftware.com
To: users@wicket.apache.org
Date: 2012-10-22


Ok, thanks for that summary.

On another note: Is there a correct pronunciation of l0rdn1kk0n? If so, what 
is it? =]



-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
Sent: Monday, 22 October 2012 9:00 PM
To: users@wicket.apache.org
Subject: Re: Which Twitter Bootstrap to use?

The core Wicket Bootstrap currently just provides the bootstrap
artifacts. And for the foreseeable future, I don't expect it to go
beyond that too much.

I still am on the fence on:

- whether a Bootstrap component library should be part of Wicket
- whether l0rdn1kk0n's implementation is the way to go

If you need a component library now, you should really use
l0rdn1kk0n's implementation. Currently that project has the freedom to
move at a different pace than Wicket, so that is a benefit. If/whether
that ends up at Apache is unknown.

At €-dayjob we are starting to develop Bootstrap applications and we
are experimenting with building our own component libraries. If they
end up looking like l0rdn1kk0n's bootstrap implementation, we'll
gladly move to that project, and start advocating its adoption as a
wicket core project, or start pointing folks at that particular
implementation.

For now, Wicket's bootstrap is just there to support the new examples
and might be folded into them. I think the wicket examples are a
special case that usually don't have the same requirements for
components as your typical 'enterprise' application, and wouldn't
benefit of l0rdn1kk0n's implementation.

Martijn

On Sun, Oct 21, 2012 at 2:43 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:

We've ported our app to Wicket 6.2 and are now looking to start using
Twitter Bootstrap.

Is this a correct summary of the current state Twitter Bootstrap support
in Wicket?

1.  The Wicket experimental does not provide any component
implementations. It merely provides a class for convenient inclusion of
the appropriate CSS + JS resources required for Twitter Bootstrap to
work via doing this in any page class that requires it:
 @Override
public void renderHead(IHeaderResponse response) {
 super.renderHead(response);

 Bootstrap.renderHead(response);
}

2.   The l0rdn1kk0n Wicket-Bootstrap project (pity about the weird
name!) has a few Wicket components specialized for Twitter Bootstrap use
and includes support for some free Bootstrap schemes.

Some questions:

How far off before Wicket bootstrap experimental gets some native wicket
components?
Could Wicket bootstrap experimental integrate the work of the
l0rdn1kk0n, bringing in some of it's components to leverage of existing
work by that project?
Will Wicket bootstrap experimental be so radically different to the
l0rdn1kk0n that porting to Wicket bootstrap experimental will be a
bothersome task when it's ready?

Chris Colman




--
Become a Wicket expert, learn from the best: http://wicketinaction.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




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



Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread vineet semwal
i can't reproduce your problem,on clicking cancel ,the precondition
should fail ie. return false
which is what the code is doing,what browser are you using? i tested
it on chrome/firefox

On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro
marco.disabat...@tirasa.net wrote:
 Hi,

 I implemented following your suggestions. Currently, the list item is deleted 
 if I press ok or cancel in the dialog.

 item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
 private static final long serialVersionUID = 
 7170946748485726506L;

 @Override
 protected void onUpdate(final AjaxRequestTarget target) {
 --
 entityTO.getDerivedAttributes().remove(attributeTO);
 target.add(attributesContainer);
 }

 @Override
 protected void updateAjaxAttributes(AjaxRequestAttributes 
 attributes) {
 super.updateAjaxAttributes(attributes);

 IAjaxCallListener myAjaxCallListener = new 
 AjaxCallListener() {
 private static final long serialVersionUID = 
 7160235486520935153L;

 @Override
 public CharSequence getPrecondition(Component 
 component) {
 return if (!confirm(' + 
 getString(confirmDelete) + ')) + {return false;};
 }
 };
 
 attributes.getAjaxCallListeners().add(myAjaxCallListener);
 }
 });

 What should I call to handle ok or cancell event?

 Marco

 On Oct 19, 2012, at 6:10 PM, vineet semwal wrote:

 iajaxcalldecorator is replaced with
 iajaxcalllistener,ajaxcalllistener(dummy implementation)
 is what you can extend for your use ,override
 ajaxcheckbox#updateAjaxAttributes(attributes)
 like below
  @Override
protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes) {
attributes.getAjaxCallListeners().add(new AjaxCallListener(){
@Override
public CharSequence getPrecondition(Component component) {
return if (!confirm(' +
 getString(confirmDelete) + ')) + { return false; }  ;
}
});
}

 On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi all,

 How can i convert this code into wicket 6.1.

   item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {

 @Override
 protected void onUpdate(final AjaxRequestTarget target) {
entityTO.getDerivedAttributes().remove(attributeTO);
target.add(attributesContainer);
}

 @Override
  protected IAjaxCallDecorator getAjaxCallDecorator() {
return new 
 AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {

 @Override
 public CharSequence preDecorateScript(final CharSequence script) {
 return if (confirm(' + getString(confirmDelete) + ')) + { + 
 script + } 
 + else {this.checked = false;};
}
};
 }
 });

 I see the migration doc, but i not found a solution.

 Thanks
 M


 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino







 --
 regards,

 Vineet Semwal

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


 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino







-- 
regards,

Vineet Semwal

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



Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
We are using 1.4.15 for now.

Lucas Kuperman



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modal-window-before-submitting-ajax-less-form-tp4653108p4653196.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: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
I tested with chrome and firefox. 
The method onUpdate is invoked always and the item is removed.


On Oct 22, 2012, at 12:34 PM, vineet semwal wrote:

 i can't reproduce your problem,on clicking cancel ,the precondition
 should fail ie. return false
 which is what the code is doing,what browser are you using? i tested
 it on chrome/firefox
 
 On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi,
 
 I implemented following your suggestions. Currently, the list item is 
 deleted if I press ok or cancel in the dialog.
 
item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
private static final long serialVersionUID = 
 7170946748485726506L;
 
@Override
protected void onUpdate(final AjaxRequestTarget target) {
--
 entityTO.getDerivedAttributes().remove(attributeTO);
target.add(attributesContainer);
}
 
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes 
 attributes) {
super.updateAjaxAttributes(attributes);
 
IAjaxCallListener myAjaxCallListener = new 
 AjaxCallListener() {
private static final long serialVersionUID = 
 7160235486520935153L;
 
@Override
public CharSequence getPrecondition(Component 
 component) {
return if (!confirm(' + 
 getString(confirmDelete) + ')) + {return false;};
}
};

 attributes.getAjaxCallListeners().add(myAjaxCallListener);
}
});
 
 What should I call to handle ok or cancell event?
 
 Marco
 
 On Oct 19, 2012, at 6:10 PM, vineet semwal wrote:
 
 iajaxcalldecorator is replaced with
 iajaxcalllistener,ajaxcalllistener(dummy implementation)
 is what you can extend for your use ,override
 ajaxcheckbox#updateAjaxAttributes(attributes)
 like below
 @Override
   protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes) {
   attributes.getAjaxCallListeners().add(new AjaxCallListener(){
   @Override
   public CharSequence getPrecondition(Component component) {
   return if (!confirm(' +
 getString(confirmDelete) + ')) + { return false; }  ;
   }
   });
   }
 
 On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi all,
 
 How can i convert this code into wicket 6.1.
 
  item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
 
@Override
protected void onUpdate(final AjaxRequestTarget target) {
   entityTO.getDerivedAttributes().remove(attributeTO);
   target.add(attributesContainer);
   }
 
@Override
 protected IAjaxCallDecorator getAjaxCallDecorator() {
   return new 
 AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
 
@Override
public CharSequence preDecorateScript(final CharSequence script) {
return if (confirm(' + getString(confirmDelete) + ')) + { + 
 script + } 
+ else {this.checked = false;};
   }
   };
}
 });
 
 I see the migration doc, but i not found a solution.
 
 Thanks
 M
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 --
 regards,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 -- 
 regards,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino






Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread vineet semwal
hi,
i tested successfully on chrome/firefox , i don't have IE8 on my system
so didn't test,might be a bug in IE8,it might work in IE9 .. but i will improve
it later today so that it will work on IE8 too..


On Mon, Oct 22, 2012 at 3:51 PM, steven.li steven...@skyworthglobal.com wrote:
 I have run the demo application, found that, the

 Scroll on Page link only show 13 rows result without go to  next page when
 i pull down the page scroll bar.

 I test it on IE8. do you have the same issue ?

 Thanks.



 -
 Steven Li

 Skyworthglobal www.skyworthglobal.com
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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,

Vineet Semwal

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



Re: Wicket 6 trees

2012-10-22 Thread PDiefent
Hi,
this helped a lot. But I'm struggling with the link component of the node.
If I'm using a StyledLinkLabel inside the newContentComponent method I get a
link for the textual part of the node but there is no icon for toggling the
subtree.
Do you have a hint for me to solve this problem.
Thanks a lot, Peter
 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-trees-tp4653082p4653201.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



something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Decebal Suiu
Hi

I want to implement something like setOutputMarkupContainerClassName but
more dynamic (not a simple flag in IDebugSettings and not a hard-coded html
comment).

My situation is that I want to offer an application as a service. In my
application, in design mode (an url parameter in request), I want to display
the information about the markup container that rendered that html fragment
as a comment (for example if com.acme.web.BasePage rendered that html
fragment I want something like !-- BasePage Begin).


Is it possible?

Best regards,
Decebal





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/something-similar-with-setOutputMarkupContainerClassName-tp4653202.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: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Martin Grigorov
Hi,

You can use a Behavior#beforeRender() for that.

See how org.apache.wicket.devutils.inspector.RenderPerformanceListener works.

On Mon, Oct 22, 2012 at 4:04 PM, Decebal Suiu decebal.s...@asf.ro wrote:
 Hi

 I want to implement something like setOutputMarkupContainerClassName but
 more dynamic (not a simple flag in IDebugSettings and not a hard-coded html
 comment).

 My situation is that I want to offer an application as a service. In my
 application, in design mode (an url parameter in request), I want to display
 the information about the markup container that rendered that html fragment
 as a comment (for example if com.acme.web.BasePage rendered that html
 fragment I want something like !-- BasePage Begin).


 Is it possible?

 Best regards,
 Decebal





 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/something-similar-with-setOutputMarkupContainerClassName-tp4653202.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

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



Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread vineet semwal
i can't reproduce your problem and i can't guess too,
attach a quickstart that demonstrates your problem ..

On Mon, Oct 22, 2012 at 4:12 PM, Marco Di Sabatino Di Diodoro
marco.disabat...@tirasa.net wrote:
 I tested with chrome and firefox.
 The method onUpdate is invoked always and the item is removed.


 On Oct 22, 2012, at 12:34 PM, vineet semwal wrote:

 i can't reproduce your problem,on clicking cancel ,the precondition
 should fail ie. return false
 which is what the code is doing,what browser are you using? i tested
 it on chrome/firefox

 On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi,

 I implemented following your suggestions. Currently, the list item is 
 deleted if I press ok or cancel in the dialog.

item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
private static final long serialVersionUID = 
 7170946748485726506L;

@Override
protected void onUpdate(final AjaxRequestTarget target) {
--
 entityTO.getDerivedAttributes().remove(attributeTO);
target.add(attributesContainer);
}

@Override
protected void 
 updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);

IAjaxCallListener myAjaxCallListener = new 
 AjaxCallListener() {
private static final long serialVersionUID = 
 7160235486520935153L;

@Override
public CharSequence getPrecondition(Component 
 component) {
return if (!confirm(' + 
 getString(confirmDelete) + ')) + {return false;};
}
};

 attributes.getAjaxCallListeners().add(myAjaxCallListener);
}
});

 What should I call to handle ok or cancell event?

 Marco

 On Oct 19, 2012, at 6:10 PM, vineet semwal wrote:

 iajaxcalldecorator is replaced with
 iajaxcalllistener,ajaxcalllistener(dummy implementation)
 is what you can extend for your use ,override
 ajaxcheckbox#updateAjaxAttributes(attributes)
 like below
 @Override
   protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes) {
   attributes.getAjaxCallListeners().add(new AjaxCallListener(){
   @Override
   public CharSequence getPrecondition(Component component) 
 {
   return if (!confirm(' +
 getString(confirmDelete) + ')) + { return false; }  ;
   }
   });
   }

 On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi all,

 How can i convert this code into wicket 6.1.

  item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {

@Override
protected void onUpdate(final AjaxRequestTarget target) {
   entityTO.getDerivedAttributes().remove(attributeTO);
   target.add(attributesContainer);
   }

@Override
 protected IAjaxCallDecorator getAjaxCallDecorator() {
   return new 
 AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {

@Override
public CharSequence preDecorateScript(final CharSequence script) {
return if (confirm(' + getString(confirmDelete) + ')) + { 
 + script + } 
+ else {this.checked = false;};
   }
   };
}
 });

 I see the migration doc, but i not found a solution.

 Thanks
 M


 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino







 --
 regards,

 Vineet Semwal

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


 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino







 --
 regards,

 Vineet Semwal

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


 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino







-- 
regards,

Vineet Semwal


Re: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Decebal Suiu
Thanks Martin for response.

I implemented an DesignModeListener that implements
IComponentInstantiationListener. The main problem is that my comment is
placed before the container markup tag.

Example:
div id=container
  
  div id=header
   
   ...
   
  /div
  

  ...
/div

Above you can see the difference between DesignModeListener and
IDebugSettings.setOutputMarkupContainerClassName. The div with id=header
is not generated by HeaderPanel.
 
Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/something-similar-with-setOutputMarkupContainerClassName-tp4653202p4653205.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: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Martin Grigorov
Show us your code please.
How do you use it ?

On Mon, Oct 22, 2012 at 5:17 PM, Decebal Suiu decebal.s...@asf.ro wrote:
 Thanks Martin for response.

 I implemented an DesignModeListener that implements
 IComponentInstantiationListener. The main problem is that my comment is
 placed before the container markup tag.

 Example:
 div id=container

   div id=header

...

   /div


   ...
 /div

 Above you can see the difference between DesignModeListener and
 IDebugSettings.setOutputMarkupContainerClassName. The div with id=header
 is not generated by HeaderPanel.

 Best regards,
 Decebal



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/something-similar-with-setOutputMarkupContainerClassName-tp4653202p4653205.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

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



Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
Thanks for your help.
The problem was into AjaxDecoratedCheckBox. 

M

On Oct 22, 2012, at 3:57 PM, vineet semwal wrote:

 i can't reproduce your problem and i can't guess too,
 attach a quickstart that demonstrates your problem ..
 
 On Mon, Oct 22, 2012 at 4:12 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 I tested with chrome and firefox.
 The method onUpdate is invoked always and the item is removed.
 
 
 On Oct 22, 2012, at 12:34 PM, vineet semwal wrote:
 
 i can't reproduce your problem,on clicking cancel ,the precondition
 should fail ie. return false
 which is what the code is doing,what browser are you using? i tested
 it on chrome/firefox
 
 On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi,
 
 I implemented following your suggestions. Currently, the list item is 
 deleted if I press ok or cancel in the dialog.
 
   item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
   private static final long serialVersionUID = 
 7170946748485726506L;
 
   @Override
   protected void onUpdate(final AjaxRequestTarget target) {
   --
 entityTO.getDerivedAttributes().remove(attributeTO);
   target.add(attributesContainer);
   }
 
   @Override
   protected void 
 updateAjaxAttributes(AjaxRequestAttributes attributes) {
   super.updateAjaxAttributes(attributes);
 
   IAjaxCallListener myAjaxCallListener = new 
 AjaxCallListener() {
   private static final long serialVersionUID = 
 7160235486520935153L;
 
   @Override
   public CharSequence getPrecondition(Component 
 component) {
   return if (!confirm(' + 
 getString(confirmDelete) + ')) + {return false;};
   }
   };
   
 attributes.getAjaxCallListeners().add(myAjaxCallListener);
   }
   });
 
 What should I call to handle ok or cancell event?
 
 Marco
 
 On Oct 19, 2012, at 6:10 PM, vineet semwal wrote:
 
 iajaxcalldecorator is replaced with
 iajaxcalllistener,ajaxcalllistener(dummy implementation)
 is what you can extend for your use ,override
 ajaxcheckbox#updateAjaxAttributes(attributes)
 like below
 @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes
 attributes) {
  attributes.getAjaxCallListeners().add(new AjaxCallListener(){
  @Override
  public CharSequence getPrecondition(Component component) 
 {
  return if (!confirm(' +
 getString(confirmDelete) + ')) + { return false; }  ;
  }
  });
  }
 
 On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
 marco.disabat...@tirasa.net wrote:
 Hi all,
 
 How can i convert this code into wicket 6.1.
 
 item.add(new AjaxDecoratedCheckbox(toRemove, new 
 ModelBoolean(Boolean.FALSE)) {
 
   @Override
   protected void onUpdate(final AjaxRequestTarget target) {
  entityTO.getDerivedAttributes().remove(attributeTO);
  target.add(attributesContainer);
  }
 
   @Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
  return new 
 AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
 
   @Override
   public CharSequence preDecorateScript(final CharSequence script) {
   return if (confirm(' + getString(confirmDelete) + ')) + { 
 + script + } 
   + else {this.checked = false;};
  }
  };
   }
 });
 
 I see the migration doc, but i not found a solution.
 
 Thanks
 M
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 --
 regards,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 --
 regards,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope 

(String)RessourceModel and Location of resources in the *.props files

2012-10-22 Thread Dmitriy Neretin
Hello everybody,

I have a little problem. I use in my webpages ressource models. For example:

public class MyPage{
 ...
 add(new Label(id, new ResourceModel(myResourceKey));
 ...

I also have a MyPage.properties where I placed following
String: myResourceKey=Hello World! But I get whole the time Runtime
Exceptions Resource not fount etc...
When I put the string above in the MyApplication.properties - no problems...

First question is: why is it so? Why does wicket can't find my resource key
in the apropriate property but in the *aplication.properties?
Second question is: Is it possible to change this resolution way? I have
already tried the StringResourceModel but with no success...

Please Help!

Regards,
Dmitriy


Re: (String)RessourceModel and Location of resources in the *.props files

2012-10-22 Thread Martin Grigorov
Hi,

This should work.
Make sure MyPage.properties goes next to .class after compiling.

On Mon, Oct 22, 2012 at 6:35 PM, Dmitriy Neretin
dmitriy.nere...@googlemail.com wrote:
 Hello everybody,

 I have a little problem. I use in my webpages ressource models. For example:

 public class MyPage{
  ...
  add(new Label(id, new ResourceModel(myResourceKey));
  ...

 I also have a MyPage.properties where I placed following
 String: myResourceKey=Hello World! But I get whole the time Runtime
 Exceptions Resource not fount etc...
 When I put the string above in the MyApplication.properties - no problems...

 First question is: why is it so? Why does wicket can't find my resource key
 in the apropriate property but in the *aplication.properties?
 Second question is: Is it possible to change this resolution way? I have
 already tried the StringResourceModel but with no success...

 Please Help!

 Regards,
 Dmitriy



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

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



Re: Upgrade Advice

2012-10-22 Thread Jered Myers

Thanks!  That is what I needed to know.

On 10/20/2012 06:10 AM, Sebastien wrote:

+1, perfectly explained IMHO. Migrating from 1.4 to 6 directly is much more
complicated than performing the migration in 2 steps and much more error
prone.

On Sat, Oct 20, 2012 at 2:55 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:


I would say no only because going from 1.5 - 6 was super easy. I
changed a few ints to longs, added a bunch of type parameters for
sorting and then it all just worked.

While I found 1.5 - 6 a lot easier than 1.4 - 1.5 if you like
incremental development and want to have some intermediate compilable
and runnable code then I suggest you target 1.5 first.

1.4 has quite a few methods/classes that are deprecated in 1.5 - this
means that even though they are shunned upon they are still present
and working - which makes your 1.4 - 1.5 efforts easier because you can
avoid doing quite a lot code changes which means less effort before you
get a working system again.

Version 6, on the other hand, removes many of the deprecations of 1.5
which means you will have to replace these before you can a successful
compile.

It depends on your style but I like to do things in shorter increments
with many small successes rather than a big huge effort with no success
for possibly many days, depending on the size of your code, and then one
big success at the end (but you'll probably still have some runtime only
errors to tackle).


Bill-

On Fri, Oct 19, 2012 at 4:30 PM, Jered Myers
jer...@maplewoodsoftware.com wrote:

I am working on migrating a large application from Wicket 1.4.18 to

Wicket

6.x.  Is it better to convert to 1.5 first and then to 6.x or to just

go

straight to 6.x?  Thanks.  Also, an early thanks to everybody who

took

the

time to write the migration guides!

Jered


-
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





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



Re: image folder causes ClassNotFoundException

2012-10-22 Thread suomick88
I have exactly the same problem. This is the stack trace:

java.lang.ClassNotFoundException: images
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:108)
at
org.apache.wicket.core.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
at
org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:139)
at
org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:271)
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:143)
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:182)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:207)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)



I hope you can help! Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/image-folder-causes-ClassNotFoundException-tp4651668p4653209.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: Custom CSS for Feedback message is broken in 1.5

2012-10-22 Thread Sven Meier

Please open a Jira issue and provide a patch as you suggested.

Thanks
Sven


On 10/21/2012 01:06 AM, Sebastien wrote:

Sven,

If you agree to have two methods: getListCSSClass and getLabelCSSClass
(which apply respectively on li and span), and mark getCSSClass as
deprecated (until marked as private), then the path is ready for branch
wicket-1.5.x. I am waiting for your go-ahead to send the patch somewhere or
submit the pull request on github.

If you do not agree, please tell me what I can do.

Thanks  best regards,
Sebastien.




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



Re: Wicket 6 trees

2012-10-22 Thread Sven Meier

Are you sure you've overriden #newContentComponent() ?

The component returned by #newNodeComponent() renders the toggle link 
and uses #newContentComponent() to represent the actual content of the node.


Sven


On 10/22/2012 02:57 PM, PDiefent wrote:

Hi,
this helped a lot. But I'm struggling with the link component of the node.
If I'm using a StyledLinkLabel inside the newContentComponent method I get a
link for the textual part of the node but there is no icon for toggling the
subtree.
Do you have a hint for me to solve this problem.
Thanks a lot, Peter
  




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-trees-tp4653082p4653201.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: [DISCUSS] Security Frameworks

2012-10-22 Thread Erik van Oosten


[ X ] I use my own custom framework
[ X ] I use Shiro
 

For my current Wicket project we started out with Shiro as it promised 
to be easy to use. However, even though Shiro is feature rich, it still 
lacks the feature we needed to make it secure (1) and stable (2). We 
ended up using Shiro as a convenient library with all integration points 
with Wicket written ourselves. We also needed to extend LDAP integration 
to get roles/permissions and override Shiro's idea of configuration (it 
didn't match our way of getting properties files).


(1) forget an annotation and your page is visible, we turned that around
(2) the annotations are based on Strings, we like Enums better

Kind regards,
Erik.


On 18-10-12 06:08, Jeremy Thomerson wrote:

Our of curiosity: among the wider community: what security framework(s) do
you use with with Wicket, and why?

[  ] I use my own custom framework
[  ] I use Shiro
[  ] I use Spring Security
[  ] I use WASP/Swarm
[  ] Other (please specify)

And don't forget the why.




--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



Re: Custom CSS for Feedback message is broken in 1.5

2012-10-22 Thread Sebastien
Done, https://issues.apache.org/jira/browse/WICKET-4831
Please let me know if your encounter any issue (wrong base code for
instance) or if you have any questions...

Thanks,
Sebastien.

On Mon, Oct 22, 2012 at 8:06 PM, Sven Meier s...@meiers.net wrote:

 Please open a Jira issue and provide a patch as you suggested.

 Thanks
 Sven



 On 10/21/2012 01:06 AM, Sebastien wrote:

 Sven,

 If you agree to have two methods: getListCSSClass and getLabelCSSClass
 (which apply respectively on li and span), and mark getCSSClass as
 deprecated (until marked as private), then the path is ready for branch
 wicket-1.5.x. I am waiting for your go-ahead to send the patch somewhere
 or
 submit the pull request on github.

 If you do not agree, please tell me what I can do.

 Thanks  best regards,
 Sebastien.



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




Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
Thanks Eduardo! I managed to get the modal shown, following your hint. But
taking a closer look, I realize I have new challenges to solve:
- currently (and I believe I saw it in wicket 6 also) the
getWindowOpenJavascript() script generates a new div element in the DOM,
with a form inside, when it is called. This goes against my use case where I
want to use a modal window to fill in a special field in an ajax-less form
before submitting it. So I guess I have to do some value passing between the
modal window and the ajax-less form after closing the modal but before
submitting the form? Unless I don't use getWindowOpenJavascript() and
somehow 'reuse' the original div with the original modal window instead of
having wicket generate a new dom element?

Again thanks!

Lucas Kuperman




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modal-window-before-submitting-ajax-less-form-tp4653108p4653218.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



Using Autocomplete with a

2012-10-22 Thread Gaetan Zoritchak
Hi,
I want to have a behavior similar to AutoCompleteTextField but without the
conversion.
That's my use case:
- the user has to select a customer in a field,
- he starts to type some characters,
- the list shows some possibilities based on a database request using the
first and last names, the email, ...
- then he selects one item in the list.

I don't want to use a converter because the data in the field could
eventually match more than one entry in the database. I can give more
context in the list to make the user be sure of his selection. When the
selection is made, I can put a title so that on a mouse over event the user
visualize the full information on the customer selection.

The best solution would be to use the database id of the customer as a key
during the selection phase.

I don't know what is the best way of implementing this behaviour.

Thanks a lot for any ideas,

Gaetan,


Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread vineet semwal
i have fixed that and tested it in IE8,firefox,chrome,i have created a
new tag 1.5.8.2 for this.you can download it from the below link
https://github.com/vineetsemwal/quickview/tags

On Mon, Oct 22, 2012 at 5:39 PM, vineet semwal vineetsemwa...@gmail.com wrote:
 hi,
 i tested successfully on chrome/firefox , i don't have IE8 on my system
 so didn't test,might be a bug in IE8,it might work in IE9 .. but i will 
 improve
 it later today so that it will work on IE8 too..


 On Mon, Oct 22, 2012 at 3:51 PM, steven.li steven...@skyworthglobal.com 
 wrote:
 I have run the demo application, found that, the

 Scroll on Page link only show 13 rows result without go to  next page when
 i pull down the page scroll bar.

 I test it on IE8. do you have the same issue ?

 Thanks.



 -
 Steven Li

 Skyworthglobal www.skyworthglobal.com
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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,

 Vineet Semwal



-- 
regards,

Vineet Semwal

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



Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
Trying client-side now.

In the meantime, for clarity: I need a form with checkboxes and a dropdown
be submitted. The sequence should be: 
1) select desired checkboxes in the page, 
2) click a button and show a modal window with the dropdown, 
3) select the option from the dropdown, 
4) click an OK button on the modal window to submit the form with checkboxes
and dropdown selection. 

I can show/hide the modal window (steps 1, 2 and 3), but the modal window
has its own div and form, which doesn't achieve step 4, it only submits the
modal's dropdown (in fact the modal's div is created as child of html tag
instead of the element I designated for the modal in the markup). So I need
the modal to not have its own form, and I don't need it as a newly created
child of html tag. 

Will keep you posted.

Lucas Kuperman



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modal-window-before-submitting-ajax-less-form-tp4653108p4653222.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: [DISCUSS] Security Frameworks

2012-10-22 Thread Leonardo D'Alimonte
[x] I use WASP/Swarm

Since we started our project we adopted Swarm as our security framework and
for several reasons we didn't scout other possibilities to secure our pages.
By the way our experience with Swarm is pretty good, we don't need any
changes in our dependencies...




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DISCUSS-Security-Frameworks-tp4653049p4653225.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: Appending to CSS url to prevent caching.

2012-10-22 Thread dickster
followup just so in case someone else might find this useful. 

the wicket, out of the box css url handling works for resources in the
classpath.  it will not work for stuff you might have tucked away in the
webapp directory which was my case.

for those cases i added a custom header response decorator in the
application.

protected void validateInit() {
super.validateInit();
   setHeaderResponseDecorator( CachingStrategyDecoratingHeaderResponse. 
createHeaderResponseDecorator());
}

its' responsibility was to append a suffix in the render??Reference methods
that took a URL parameter. 
class CachingStrategyDecoratingHeaderResponse extends
WiQueryDecoratingHeaderResponse {

   public void renderCSSReference(String url) {
super.renderCSSReference(url+?VERSION=+someNumber);
}
etc
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Appending-to-CSS-url-to-prevent-caching-tp4652508p4653226.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



Can't post variables to a wicket page

2012-10-22 Thread Douglas Ferguson
I'm trying to support both get and post to a wicket page.

When I do a post, the containterRequest object is reporting it as a GET and I 
can't seem to find my post variables.

What am I missing?

---
Douglas W. Ferguson
Software Development Manager
Escalation Point, Inc.
dfergu...@escalation-point.com
www.escalation-point.com
mobile: 512-293-7279
office: 512-524-4510



WiQuery 6.0

2012-10-22 Thread Nick Pratt
I added an AutocompleteAjaxComponent to a Form on a Page. While the
component renders, Im not seeing any of the associated WiQuery JS bindings
in the rendered page (so my getValues() method never gets invoked) - I
copied the example code from the WiQuery-examples project, and that sample
has the WiQuery JS bindings and works ok, but I didnt see any
initialization of WiQuery so Im assuming it's done implicitly via the use
of the ui-component.

Does WiQuery have to be initialized and if so, how?  If not, any
suggestions as to why the WiQuery JS isnt being added to the final rendered
page?

N


Re: WiQuery 6.0

2012-10-22 Thread Nick Pratt
I do see the imports of jquery and jquery.ui.autocomplete (which I checked
are available and served by the web server) - there's just no
wiquery-gen-uniqueid script in the page

On Mon, Oct 22, 2012 at 7:24 PM, Nick Pratt nbpr...@gmail.com wrote:

 I added an AutocompleteAjaxComponent to a Form on a Page. While the
 component renders, Im not seeing any of the associated WiQuery JS bindings
 in the rendered page (so my getValues() method never gets invoked) - I
 copied the example code from the WiQuery-examples project, and that sample
 has the WiQuery JS bindings and works ok, but I didnt see any
 initialization of WiQuery so Im assuming it's done implicitly via the use
 of the ui-component.

 Does WiQuery have to be initialized and if so, how?  If not, any
 suggestions as to why the WiQuery JS isnt being added to the final rendered
 page?

 N



Patch provided for WICKET-4829

2012-10-22 Thread Chris Colman
I have found the cause of issue 4829 and provided a patch for this issue
in the JIRA comments here:
 
https://issues.apache.org/jira/browse/WICKET-4829
 
Cause:
Common component resolvers created by the app during init ignore
namespace settings in the current markup and so some of the resolvers
return 'wicket' as the namespace instead of the namespace specified by
the user as html xmlns:mynamespace
 
Yours sincerely,
 
Chris Colman
 
Pagebloom Team Leader,
Step Ahead Software

 
pagebloom - your business  your website growing together
 
Sydney: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120 
Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au 
Website:
http://www.pagebloom.com blocked::http://www.pagebloom.com/ 
http://develop.stepaheadsoftware.com
blocked::http://develop.stepaheadsoftware.com/