Re: AjaxLazyLoadPanel is block other page render while processing

2014-02-10 Thread MadasamySankarapandian
I am sorry. I have solved this problem to improve getData() performance.





On Tue, Feb 11, 2014 at 9:36 AM, MadasamySankarapandian <
madas...@mcruncher.com> wrote:

> Thanks for your suggestion. But problem remains same.
>
> *My html code like *
> .
> .
> **
> .
> .
>
> *My java code  like below*
>
> Class FooPanel extends Panel
> {
> public FooPanel()
> {
> .
> .
> .
> add(createLabel());
> add(createAjaaxTimeBehaviour());
> }
>
> private Label createLabel()
> {
> label = new Label("label", "Loading");
> label.setOutputMarkupId(true);
> return label;
> }
>
> private AbstractAjaxTimerBehavior createAjaxTimeBehaviour()
> {
> return new AbstractAjaxTimerBehavior(Duration.seconds(1))
> {
> @Override
> protected void onTimer(AjaxRequestTarget target)
> {
>//This method to take few seconds to fetch data
>
>
>
>
>
>
>
>
> * int count = getData();if (unKnownCount >= 0)
> {   FooComponent fooComponent = new
> FooComponent(label.getId(), count);
> fooComponent.setOutputMarkupId(true);
> label.replaceWith(fooComponent);
> target.add(fooComponent);} else {
> target.add(label);}*
> }
> };
> }
> }
>
> Added this panel in FooPage. If click foo page from any other page the foo
> page render immediately. If click any other page from FooPage it takes few
> seconds to  take render the page.
>
>
>
> On Mon, Feb 10, 2014 at 4:37 PM, Martin Grigorov wrote:
>
>> Hi,
>>
>> See http://markmail.org/message/4gxbwbhoqojutox6
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian <
>> madas...@mcruncher.com> wrote:
>>
>> > We have using 6.6.0 in our application. In home page we using
>> > AjaxLazyLoadPanel to load the widgets data, It take long time to  render
>> > the widget. When loading widget,  if click the other page,  the page is
>> not
>> > rendered immediately. After completed AjaxLazyLoadPanel process then
>> only
>> > the clicked page is render.The AjaxLazyLaodPanel is blocking my request.
>> >
>> >
>> > Hep me to solve this problem?.
>> >
>>
>
>


Re: AjaxLazyLoadPanel is block other page render while processing

2014-02-10 Thread MadasamySankarapandian
Thanks for your suggestion. But problem remains same.

*My html code like *
.
.
**
.
.

*My java code  like below*

Class FooPanel extends Panel
{
public FooPanel()
{
.
.
.
add(createLabel());
add(createAjaaxTimeBehaviour());
}

private Label createLabel()
{
label = new Label("label", "Loading");
label.setOutputMarkupId(true);
return label;
}

private AbstractAjaxTimerBehavior createAjaxTimeBehaviour()
{
return new AbstractAjaxTimerBehavior(Duration.seconds(1))
{
@Override
protected void onTimer(AjaxRequestTarget target)
{
   //This method to take few seconds to fetch data








* int count = getData();if (unKnownCount >= 0)
{   FooComponent fooComponent = new
FooComponent(label.getId(), count);
fooComponent.setOutputMarkupId(true);
label.replaceWith(fooComponent);
target.add(fooComponent);} else {
target.add(label);}*
}
};
}
}

Added this panel in FooPage. If click foo page from any other page the foo
page render immediately. If click any other page from FooPage it takes few
seconds to  take render the page.



On Mon, Feb 10, 2014 at 4:37 PM, Martin Grigorov wrote:

> Hi,
>
> See http://markmail.org/message/4gxbwbhoqojutox6
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian <
> madas...@mcruncher.com> wrote:
>
> > We have using 6.6.0 in our application. In home page we using
> > AjaxLazyLoadPanel to load the widgets data, It take long time to  render
> > the widget. When loading widget,  if click the other page,  the page is
> not
> > rendered immediately. After completed AjaxLazyLoadPanel process then only
> > the clicked page is render.The AjaxLazyLaodPanel is blocking my request.
> >
> >
> > Hep me to solve this problem?.
> >
>


Re: Palette - sort on change

2014-02-10 Thread Martin Grigorov
Hi,

I think there is no better solution yet.
Feel free to create a ticket for improvement. With a patch would be awesome!

Martin Grigorov
Wicket Training and Consulting


On Mon, Feb 10, 2014 at 2:50 PM, smilingowl  wrote:

> Hello,
>
> i am looking for a way to sort a palette (available and selected items)
> automatically on change. I found this thread from 2010
> (
> http://apache-wicket.1842946.n4.nabble.com/automatic-palette-sorting-td1894198.html
> ).
> Since the thread is 3 years old, i wanted to know if there is a more
> elegant
> solution than "patch" the JavaScript file?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Palette-sort-on-change-tp4664342.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: How to implement an auto-save behavior

2014-02-10 Thread Martin Grigorov
Hi,

To submit a form all you need to provide to the object you pass to
Wicket.Ajax.ajax() is the 'f' attribute:
Wicket.Ajax.post({ u: 'url/to/AjaxFormSubmitBehavior', f: 'formId', sc:
'optionalSubmittingComponentId'});

I will update the Ajax chapter in the Reference guide soon to explain the
JS API.

Martin Grigorov
Wicket Training and Consulting


On Mon, Feb 10, 2014 at 5:48 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Is not a function? If I look at the source code I see something like
>
> submitMultipartForm = function(context) {
>
> },
>
>
>
>
> On Mon, Feb 10, 2014 at 5:41 PM, Boris Goldowsky  >wrote:
>
> > Thanks, but that also results in "Wicket.Ajax.Call.submitMultipartForm is
> > not a function".
> >
> > I suspect the answer is to get the parameters set up correctly and then
> > arrange for the result of getCallbackScript() to be called periodically.
> >  If someone else has done something like this and has a working example
> > that would be really helpful.
> >
> > Boris
> >
> >
> >
> > On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Maybe Wicket.Ajax.Call.subitMultipartForm?
> > >
> > >
> > > On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky  > >wrote:
> > >
> > >> I'm attempting to migrate an auto-saving behavior from wicket 1.5 to
> > >> wicket 6.  In wicket 1.5 it worked by doing something like this every
> 30
> > >> seconds to loop through auto-save-enabled forms on the page and submit
> > them:
> > >>
> > >> $("form.ajaxAutoSave").each(function() {
> > >>  var form = $(this);
> > >>  wicketSubmitFormById(form.attr('id')...)
> > >> }
> > >>
> > >> The AJAX migration documentation -
> > >> https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax -
> > suggests
> > >> replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this
> > >> method does not appear to exist:  replacing the above code with
> > >>
> > >> $("form.ajaxAutoSave").each(function() {
> > >>  var form = $(this);
> > >>  //unsure of expected params so just picked one from the migration
> > >> documentation
> > >>  Wicket.Ajax.submitForm({"f":form.attr('id')});
> > >> }
> > >>
> > >> When the function is called I can see the following error in the
> > console:
> > >>
> > >> Uncaught TypeError: Object # has no method 'submitForm'
> > >>
> > >> So I went into the console and I can see that Wicket.Ajax is defined,
> > but
> > >> Wicket.Ajax.submitForm is not.
> > >>
> > >> Is the documentation incorrect here, or is there some additional step
> to
> > >> take to gain access to the submitForm method?
> > >>
> > >> Alternatively - is there a better way to create an auto-save behavior?
> > >> AjaxFormSubmitBehavior would appear to almost meet the need, if there
> > is a
> > >> way to  tie it to a timer-generated event.
> > >>
> > >> Boris
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


Re: How to implement an auto-save behavior

2014-02-10 Thread Ernesto Reinaldo Barreiro
Is not a function? If I look at the source code I see something like

submitMultipartForm = function(context) {

},




On Mon, Feb 10, 2014 at 5:41 PM, Boris Goldowsky wrote:

> Thanks, but that also results in "Wicket.Ajax.Call.submitMultipartForm is
> not a function".
>
> I suspect the answer is to get the parameters set up correctly and then
> arrange for the result of getCallbackScript() to be called periodically.
>  If someone else has done something like this and has a working example
> that would be really helpful.
>
> Boris
>
>
>
> On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Maybe Wicket.Ajax.Call.subitMultipartForm?
> >
> >
> > On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky  >wrote:
> >
> >> I'm attempting to migrate an auto-saving behavior from wicket 1.5 to
> >> wicket 6.  In wicket 1.5 it worked by doing something like this every 30
> >> seconds to loop through auto-save-enabled forms on the page and submit
> them:
> >>
> >> $("form.ajaxAutoSave").each(function() {
> >>  var form = $(this);
> >>  wicketSubmitFormById(form.attr('id')...)
> >> }
> >>
> >> The AJAX migration documentation -
> >> https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax -
> suggests
> >> replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this
> >> method does not appear to exist:  replacing the above code with
> >>
> >> $("form.ajaxAutoSave").each(function() {
> >>  var form = $(this);
> >>  //unsure of expected params so just picked one from the migration
> >> documentation
> >>  Wicket.Ajax.submitForm({"f":form.attr('id')});
> >> }
> >>
> >> When the function is called I can see the following error in the
> console:
> >>
> >> Uncaught TypeError: Object # has no method 'submitForm'
> >>
> >> So I went into the console and I can see that Wicket.Ajax is defined,
> but
> >> Wicket.Ajax.submitForm is not.
> >>
> >> Is the documentation incorrect here, or is there some additional step to
> >> take to gain access to the submitForm method?
> >>
> >> Alternatively - is there a better way to create an auto-save behavior?
> >> AjaxFormSubmitBehavior would appear to almost meet the need, if there
> is a
> >> way to  tie it to a timer-generated event.
> >>
> >> Boris
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: How to implement an auto-save behavior

2014-02-10 Thread Boris Goldowsky
Thanks, but that also results in "Wicket.Ajax.Call.submitMultipartForm is not a 
function”.

I suspect the answer is to get the parameters set up correctly and then arrange 
for the result of getCallbackScript() to be called periodically.  If someone 
else has done something like this and has a working example that would be 
really helpful.

Boris



On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro  
wrote:

> Maybe Wicket.Ajax.Call.subitMultipartForm?
> 
> 
> On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky wrote:
> 
>> I'm attempting to migrate an auto-saving behavior from wicket 1.5 to
>> wicket 6.  In wicket 1.5 it worked by doing something like this every 30
>> seconds to loop through auto-save-enabled forms on the page and submit them:
>> 
>> $("form.ajaxAutoSave").each(function() {
>>  var form = $(this);
>>  wicketSubmitFormById(form.attr('id')...)
>> }
>> 
>> The AJAX migration documentation -
>> https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests
>> replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this
>> method does not appear to exist:  replacing the above code with
>> 
>> $("form.ajaxAutoSave").each(function() {
>>  var form = $(this);
>>  //unsure of expected params so just picked one from the migration
>> documentation
>>  Wicket.Ajax.submitForm({"f":form.attr('id')});
>> }
>> 
>> When the function is called I can see the following error in the console:
>> 
>> Uncaught TypeError: Object # has no method 'submitForm'
>> 
>> So I went into the console and I can see that Wicket.Ajax is defined, but
>> Wicket.Ajax.submitForm is not.
>> 
>> Is the documentation incorrect here, or is there some additional step to
>> take to gain access to the submitForm method?
>> 
>> Alternatively - is there a better way to create an auto-save behavior?
>> AjaxFormSubmitBehavior would appear to almost meet the need, if there is a
>> way to  tie it to a timer-generated event.
>> 
>> Boris
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> 
> -- 
> Regards - Ernesto Reinaldo Barreiro


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



Re: How to implement an auto-save behavior

2014-02-10 Thread Ernesto Reinaldo Barreiro
Maybe Wicket.Ajax.Call.subitMultipartForm?


On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky wrote:

> I'm attempting to migrate an auto-saving behavior from wicket 1.5 to
> wicket 6.  In wicket 1.5 it worked by doing something like this every 30
> seconds to loop through auto-save-enabled forms on the page and submit them:
>
>  $("form.ajaxAutoSave").each(function() {
>   var form = $(this);
>   wicketSubmitFormById(form.attr('id')...)
> }
>
> The AJAX migration documentation -
> https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests
> replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this
> method does not appear to exist:  replacing the above code with
>
>  $("form.ajaxAutoSave").each(function() {
>   var form = $(this);
>   //unsure of expected params so just picked one from the migration
> documentation
>   Wicket.Ajax.submitForm({"f":form.attr('id')});
> }
>
> When the function is called I can see the following error in the console:
>
> Uncaught TypeError: Object # has no method 'submitForm'
>
> So I went into the console and I can see that Wicket.Ajax is defined, but
> Wicket.Ajax.submitForm is not.
>
> Is the documentation incorrect here, or is there some additional step to
> take to gain access to the submitForm method?
>
> Alternatively - is there a better way to create an auto-save behavior?
>  AjaxFormSubmitBehavior would appear to almost meet the need, if there is a
> way to  tie it to a timer-generated event.
>
> Boris
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


How to implement an auto-save behavior

2014-02-10 Thread Boris Goldowsky
I’m attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6.  
In wicket 1.5 it worked by doing something like this every 30 seconds to loop 
through auto-save-enabled forms on the page and submit them:

 $("form.ajaxAutoSave").each(function() { 
  var form = $(this); 
  wicketSubmitFormById(form.attr('id')...) 
} 

The AJAX migration documentation - 
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests 
replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method 
does not appear to exist:  replacing the above code with

 $("form.ajaxAutoSave").each(function() { 
  var form = $(this); 
  //unsure of expected params so just picked one from the migration 
documentation 
  Wicket.Ajax.submitForm({"f":form.attr('id')}); 
} 

When the function is called I can see the following error in the console: 

Uncaught TypeError: Object # has no method 'submitForm' 

So I went into the console and I can see that Wicket.Ajax is defined, but 
Wicket.Ajax.submitForm is not.   

Is the documentation incorrect here, or is there some additional step to take 
to gain access to the submitForm method?

Alternatively - is there a better way to create an auto-save behavior?  
AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way 
to  tie it to a timer-generated event.

Boris


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



Re: Modular Wicket Application

2014-02-10 Thread IowA
You can get sample project from github:
https://github.com/ReginaldasR/wicket-modular

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

2014-02-10 Thread IowA
You can get sample project from github:
https://github.com/ReginaldasR/wicket-modular


2014-02-09 18:41 GMT+02:00 IowA [via Apache Wicket] <
ml-node+s1842946n4664328...@n4.nabble.com>:

> You can get sample project from github:
> https://github.com/ReginaldasR/wicket-modular
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317p4664328.html
>  To unsubscribe from Modular Wicket Application, click 
> here
> .
> NAML
>



-- 
Pagarbiai
Reginaldas Raila
el. paštas: reginald...@gmail.com
mob. 863850968


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317p4664331.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-10 Thread Sheane
Did you have any luck with the migration? 
Im currently facing the same issue, none of my Ajax components seems to be
working. Should we do any configuration changes? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664339.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: About getMarkupType() from MarkupContainer

2014-02-10 Thread Decebal Suiu
Forget about. I resolved my problem much easy.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340p4664343.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



Palette - sort on change

2014-02-10 Thread smilingowl
Hello,

i am looking for a way to sort a palette (available and selected items)
automatically on change. I found this thread from 2010
(http://apache-wicket.1842946.n4.nabble.com/automatic-palette-sorting-td1894198.html).
Since the thread is 3 years old, i wanted to know if there is a more elegant
solution than "patch" the JavaScript file?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Palette-sort-on-change-tp4664342.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



About getMarkupType() from MarkupContainer

2014-02-10 Thread Decebal Suiu
Hi

I have an issue on wicket-jade
(https://github.com/decebals/wicket-jade/issues/1) and I cannot find a nice
solution.

The use case is that I have an EmbeddedPanel (html markup) in a JadePanel
(jade markup) and when I try to run my test I get a MarkupNotFoundException:
Failed to find markup file associated. The problem is that JadePanel (parent
of EmbeddedPanel) returns "new MarkupType("jade", "text/x-jade")" on
getMarkupType and current implementation for Markupcontainer.getMarkupType
is:

public MarkupType getMarkupType()
{
MarkupContainer parent = getParent();
if (parent != null)
{
return parent.getMarkupType();
}
return null;
}

It's clear that wicket search for EmbeddedPanel.jade and not
EmbeddedPanel.html

It's a solution to override getMarkupType() from EmbeddedPanel to
returnMarkupType.HTML_MARKUP_TYPE but I want something more general because
I must override manually  all my panels embedded  in JadePanel.

Any idea?

Best regards,
Decebal

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340.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: Wicket Wizzard Question / Custom Overview Bars

2014-02-10 Thread Richter, Marvin
It's just a design decision ... the default design is that the steps are 
displayed on the left side (like in Jira's Wizard for example).
But like Paul described you are free to change this like it fits for you.

Best Regards,
Marvin Richter

-Original Message-
From: Patrick Davids [mailto:patrick.dav...@nubologic.com] 
Sent: Monday, February 10, 2014 10:06 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizzard Question / Custom Overview Bars

Hi Paul,
thanx a lot for your detailed answer. :-) Helped much, but my primary question 
was, why the overviewbar is on the left hand side, not on the top.

Possibly the header is what I am looking for, showing the current step 
information(?).

But then, I still do not know, what the overviewbar was originally meant for.

Patrick :-)

Am 08.02.2014 19:36, schrieb Paul Bors:
> Find the panel you want to modify, say the WizardButtonBar and extend it:
>
> public class MyWizardButtonBar extends WizardButtonBar {
>  private static final long serialVersionUID = 1L;
>
>  public MyWizardButtonBar(String id, Wizard wizard, final boolean
> finishOnAnyStep) {
>  super(id, wizard);
>  addOrReplace(new MyFinishButton("finish", wizard) {
>  private static final long serialVersionUID = 1L;
>  @Override
>  public boolean isEnabled() {
>  return (super.isEnabled() || finishOnAnyStep);
>  }
>  });
>  }
> }
>
> Then change its HTML to whatever you want, ie MyWizardButtonBar.html I 
> have
> as:
> http://wicket.apache.org";>
>   
>   
> class="toolbox-form-submit" value="[Previous]" />
> class="toolbox-form-submit" value="[Next]" />
> class="toolbox-form-submit" value="[Last]" />
> class="toolbox-form-submit" value="[Cancel]" />
> class="toolbox-form-submit" value="[Finish]" />
>
>   
> 
>
> Finally, extend the Wizard itself and override the factory method you 
> need
> changed:
>
> public class MyWizard extends Wizard { ...
> @Override
>  protected Component newButtonBar(String id) {
>  return new MyWizardButtonBar(id, this, finishOnAnyStep());
>  }
> ...
> }
>
> Then change the Wizard's HTML as you please but preserve the Wicket 
> component tree hirarachy.
> Something like this:
>
> http://wicket.apache.org";>
>  
>  
>  
>  
>  
>  [[Overview]]
>  
>  
>  
>  
>   class="wicketExtensionsWizardHeader"> wicket:id="header">[[Header]]
>  
>  
>   class="wicketExtensionsWizardView"> class="wicketExtensionsWizardViewInner">[[View]]
>  
>  
>   class="wicketExtensionsWizardFeedback"> wicket:id="feedback">[[Feeback]]
>  
>  
>   class="wicketExtensionsWizardButtonBar"> wicket:id="buttons">[[Buttons]]
>  
>  
>  
>  
>  
>  
>  
> 
>
> On a side note, I didn't like the default of the Finish button so I 
> changed that too:
>
> public class MyFinishButton extends WizardButton {
>  private static final long serialVersionUID = 1L;
>
>  public MyFinishButton(String id, IWizard wizard) {
>  super(id, wizard, "org.apache.wicket.extensions.wizard.finish");
>  }
>
>  /**
>   * @see org.apache.wicket.Component#isEnabled()
>   */
>  public boolean isEnabled() {
>  IWizardStep activeStep = getWizardModel().getActiveStep();
>  return (activeStep != null && 
> getWizardModel().isLastStep(activeStep));
>  }
>
>  /**
>   * @see org.apache.wicket.extensions.wizard.WizardButton#onClick()
>   */
>  public final void onClick() {
>  IWizardModel wizardModel = getWizardModel();
>  IWizardStep step = wizardModel.getActiveStep();
>
>  // let the step apply any state
>  step.applyState();
>
>  // if the step completed after applying the state, notify the wizard
>  if(step.isComplete()) {
>  getWizardModel().finish();
>  } else {
>  error(getLocalizer().getString(
>
> "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complet
> e",
> this)
>  );
>  }
>  }
> }
>
>
> On Fri, Feb 7, 2014 at 9:04 AM, Patrick Davids 
> > wrote:
>
>> Hi all,
>> did someone already noticed, a custom overriden overview-bar of 
>> wickets wizzard is displayed in a  left of the Step contents ?
>>
>> I thought it would be on the top...
>>
>> Or did I misunderstood the meaning of the overview bar?
>> Is it meant a

Re: Wicket Wizzard Question / Custom Overview Bars

2014-02-10 Thread Sven Meier

Hi Patrick,

usually a wizard has an overview on the left side:

  http://en.wikipedia.org/wiki/Wizard_%28software%29

Regards
Sven

On 02/10/2014 10:04 AM, Patrick Davids wrote:

Hi Paul,
thanx a lot for your detailed answer. :-)
Helped much, but my primary question was, why the overviewbar is on the
left hand side, not on the top.

Possibly the header is what I am looking for, showing the current step
information(?).

But then, I still do not know, what the overviewbar was originally meant
for.

Patrick :-)

Am 08.02.2014 19:36, schrieb Paul Bors:

Find the panel you want to modify, say the WizardButtonBar and extend it:

public class MyWizardButtonBar extends WizardButtonBar {
  private static final long serialVersionUID = 1L;

  public MyWizardButtonBar(String id, Wizard wizard, final boolean
finishOnAnyStep) {
  super(id, wizard);
  addOrReplace(new MyFinishButton("finish", wizard) {
  private static final long serialVersionUID = 1L;
  @Override
  public boolean isEnabled() {
  return (super.isEnabled() || finishOnAnyStep);
  }
  });
  }
}

Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have
as:
http://wicket.apache.org";>
   
   






   


Finally, extend the Wizard itself and override the factory method you need
changed:

public class MyWizard extends Wizard {
...
@Override
  protected Component newButtonBar(String id) {
  return new MyWizardButtonBar(id, this, finishOnAnyStep());
  }
...
}

Then change the Wizard's HTML as you please but preserve the Wicket
component tree hirarachy.
Something like this:

http://wicket.apache.org";>
  
  
  
  
  
  [[Overview]]
  
  
  
  
  [[Header]]
  
  
  [[View]]
  
  
  [[Feeback]]
  
  
  [[Buttons]]
  
  
  
  
  
  
  


On a side note, I didn't like the default of the Finish button so I changed
that too:

public class MyFinishButton extends WizardButton {
  private static final long serialVersionUID = 1L;

  public MyFinishButton(String id, IWizard wizard) {
  super(id, wizard, "org.apache.wicket.extensions.wizard.finish");
  }

  /**
   * @see org.apache.wicket.Component#isEnabled()
   */
  public boolean isEnabled() {
  IWizardStep activeStep = getWizardModel().getActiveStep();
  return (activeStep != null &&
getWizardModel().isLastStep(activeStep));
  }

  /**
   * @see org.apache.wicket.extensions.wizard.WizardButton#onClick()
   */
  public final void onClick() {
  IWizardModel wizardModel = getWizardModel();
  IWizardStep step = wizardModel.getActiveStep();

  // let the step apply any state
  step.applyState();

  // if the step completed after applying the state, notify the wizard
  if(step.isComplete()) {
  getWizardModel().finish();
  } else {
  error(getLocalizer().getString(

"org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete",
this)
  );
  }
  }
}


On Fri, Feb 7, 2014 at 9:04 AM, Patrick Davids 
wrote:
Hi all,
did someone already noticed, a custom overriden overview-bar of wickets
wizzard is displayed in a  left of the Step contents ?

I thought it would be on the top...

Or did I misunderstood the meaning of the overview bar?
Is it meant as kind of menu?!

kind regards
Patrick

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




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



Re: Wicket Wizzard Question / Custom Overview Bars

2014-02-10 Thread Patrick Davids
Hi Paul,
thanx a lot for your detailed answer. :-)
Helped much, but my primary question was, why the overviewbar is on the 
left hand side, not on the top.

Possibly the header is what I am looking for, showing the current step 
information(?).

But then, I still do not know, what the overviewbar was originally meant 
for.

Patrick :-)

Am 08.02.2014 19:36, schrieb Paul Bors:
> Find the panel you want to modify, say the WizardButtonBar and extend it:
>
> public class MyWizardButtonBar extends WizardButtonBar {
>  private static final long serialVersionUID = 1L;
>
>  public MyWizardButtonBar(String id, Wizard wizard, final boolean
> finishOnAnyStep) {
>  super(id, wizard);
>  addOrReplace(new MyFinishButton("finish", wizard) {
>  private static final long serialVersionUID = 1L;
>  @Override
>  public boolean isEnabled() {
>  return (super.isEnabled() || finishOnAnyStep);
>  }
>  });
>  }
> }
>
> Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have
> as:
> http://wicket.apache.org";>
>   
>   
> class="toolbox-form-submit" value="[Previous]" />
> class="toolbox-form-submit" value="[Next]" />
> class="toolbox-form-submit" value="[Last]" />
> class="toolbox-form-submit" value="[Cancel]" />
> class="toolbox-form-submit" value="[Finish]" />
>
>   
> 
>
> Finally, extend the Wizard itself and override the factory method you need
> changed:
>
> public class MyWizard extends Wizard {
> ...
> @Override
>  protected Component newButtonBar(String id) {
>  return new MyWizardButtonBar(id, this, finishOnAnyStep());
>  }
> ...
> }
>
> Then change the Wizard's HTML as you please but preserve the Wicket
> component tree hirarachy.
> Something like this:
>
> http://wicket.apache.org";>
>  
>  
>  
>  
>  
>  [[Overview]]
>  
>  
>  
>  
>   class="wicketExtensionsWizardHeader"> wicket:id="header">[[Header]]
>  
>  
>   class="wicketExtensionsWizardView"> class="wicketExtensionsWizardViewInner">[[View]]
>  
>  
>   class="wicketExtensionsWizardFeedback"> wicket:id="feedback">[[Feeback]]
>  
>  
>   class="wicketExtensionsWizardButtonBar"> wicket:id="buttons">[[Buttons]]
>  
>  
>  
>  
>  
>  
>  
> 
>
> On a side note, I didn't like the default of the Finish button so I changed
> that too:
>
> public class MyFinishButton extends WizardButton {
>  private static final long serialVersionUID = 1L;
>
>  public MyFinishButton(String id, IWizard wizard) {
>  super(id, wizard, "org.apache.wicket.extensions.wizard.finish");
>  }
>
>  /**
>   * @see org.apache.wicket.Component#isEnabled()
>   */
>  public boolean isEnabled() {
>  IWizardStep activeStep = getWizardModel().getActiveStep();
>  return (activeStep != null &&
> getWizardModel().isLastStep(activeStep));
>  }
>
>  /**
>   * @see org.apache.wicket.extensions.wizard.WizardButton#onClick()
>   */
>  public final void onClick() {
>  IWizardModel wizardModel = getWizardModel();
>  IWizardStep step = wizardModel.getActiveStep();
>
>  // let the step apply any state
>  step.applyState();
>
>  // if the step completed after applying the state, notify the wizard
>  if(step.isComplete()) {
>  getWizardModel().finish();
>  } else {
>  error(getLocalizer().getString(
>
> "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete",
> this)
>  );
>  }
>  }
> }
>
>
> On Fri, Feb 7, 2014 at 9:04 AM, Patrick Davids > wrote:
>
>> Hi all,
>> did someone already noticed, a custom overriden overview-bar of wickets
>> wizzard is displayed in a  left of the Step contents ?
>>
>> I thought it would be on the top...
>>
>> Or did I misunderstood the meaning of the overview bar?
>> Is it meant as kind of menu?!
>>
>> kind regards
>> Patrick
>
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLazyLoadPanel is block other page render while processing

2014-02-10 Thread Martin Grigorov
Hi,

See http://markmail.org/message/4gxbwbhoqojutox6

Martin Grigorov
Wicket Training and Consulting


On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian <
madas...@mcruncher.com> wrote:

> We have using 6.6.0 in our application. In home page we using
> AjaxLazyLoadPanel to load the widgets data, It take long time to  render
> the widget. When loading widget,  if click the other page,  the page is not
> rendered immediately. After completed AjaxLazyLoadPanel process then only
> the clicked page is render.The AjaxLazyLaodPanel is blocking my request.
>
>
> Hep me to solve this problem?.
>


Re: I have not found file where per session data get store under work Folder in wicket application

2014-02-10 Thread Martin Grigorov
Hi,

Which web container do you use ?
Where did you look at ?

Martin Grigorov
Wicket Training and Consulting


On Sat, Feb 8, 2014 at 10:02 AM, Sharad Raut  wrote:

>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/I-have-not-found-file-where-per-session-data-get-store-under-work-Folder-in-wicket-application-tp4664316.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
>
>


AjaxLazyLoadPanel is block other page render while processing

2014-02-10 Thread MadasamySankarapandian
We have using 6.6.0 in our application. In home page we using
AjaxLazyLoadPanel to load the widgets data, It take long time to  render
the widget. When loading widget,  if click the other page,  the page is not
rendered immediately. After completed AjaxLazyLoadPanel process then only
the clicked page is render.The AjaxLazyLaodPanel is blocking my request.


Hep me to solve this problem?.