Re: OutOfMemoryError: Java heap space when i try to upload and show a hundred 100kb pics

2013-09-01 Thread Giovanni
Martin Grigorov-4 wrote
 Hi,
 Read about Java memory settings (-Xms, -Xmx)

Yes, I can increase heap space by settings, but is this a good approach? If
displaying one 10Mb pic consumes 1.5Gb heap space - is this normal? Maybe
there are other ways to solve this problem without increasing heap space by
settings?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OutOfMemoryError-Java-heap-space-when-i-try-to-upload-and-show-a-hundred-100kb-pics-tp4661159p4661161.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



OutOfMemoryError: Java heap space when i try to upload and show a hundred 100kb pics

2013-08-31 Thread Giovanni
Hi!
I need to display more than a hundred pictures on the page (about 100kb -
300kb), i but I got the error about heap. I read that the reason of this
error could be serialization of the page, but I don't know, how to solve
this.

TestMultipleImages.html:
/?xml version=1.0 encoding=UTF-8 ?
html xmlns:wicket=http://wicket.apache.org;
head
/head
body

form wicket:id=form
input wicket:id=uploadField type=file multiple /
buttonSUMBIT/button
/form

  


/body
/html/

TestMultipleImages.java:
/public class TestMultipleImages extends WebPage {
private FileUploadField uploadField;
private FormString form;

private static ListBufferedImage images = new 
ArrayListBufferedImage();

@Override
protected void onBeforeRender() {
removeAll();

RepeatingView imageRepeater = new 
RepeatingView(imageRepeater);
add(imageRepeater);
for (BufferedImage image : images) {
WebMarkupContainer container = new
WebMarkupContainer(imageRepeater.newChildId());
imageRepeater.add(container);

BufferedDynamicImageResource resource = new
BufferedDynamicImageResource();
resource.setImage(image);

container.add(new Image(image, resource));
}

form = new FormString(form) {
@Override
protected void onSubmit() {
for (FileUpload fileUpload : 
uploadField.getModelObject()) {
byte[] bytes = fileUpload.getBytes();

ByteArrayInputStream bais = new 
ByteArrayInputStream(bytes);
BufferedImage readedImage = null;
try {
readedImage = 
ImageIO.read(bais);
bais.close();
} catch (IOException e) {
e.printStackTrace();
}
images.add(readedImage);
}

super.onSubmit();
}
};

uploadField = new FileUploadField(uploadField);
uploadField.setModel(new ListModelFileUpload());
form.add(uploadField);
add(form);

super.onBeforeRender();
}
}/




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OutOfMemoryError-Java-heap-space-when-i-try-to-upload-and-show-a-hundred-100kb-pics-tp4661159.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



AutoCompleteTextField's getChoices method not called with jquery

2013-08-05 Thread Giovanni
Hi!

I tried to implement AutoCompleteTextField in my project but failed when
started to use jquery lib with this Component. 

Markup of AutoCompletePage.html is:
/?xml version=1.0 encoding=UTF-8 ?
html xmlns:wicket=http://wicket.apache.org;
body
input type=text wicket:id=ac size=50 /
/body
/html/

Code of AutoCompletePage.java is:
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/import
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.Model;

public class AutoCompletePage extends WebPage {
@Override
protected void onBeforeRender() {
final AutoCompleteTextFieldString field = new
AutoCompleteTextFieldString(ac, new ModelString()) {
@Override
protected IteratorString getChoices(String input) {
ListString choices = new ArrayListString();
choices.add(Foo);
choices.add(Bar);
choices.add(Baz);
return choices.iterator();
}
};
add(field);

super.onBeforeRender();
}
}/

This code work perfectly and getChoices method successfully called when
input is chages, but if I add to markup jquery library:
/head

/head/
getChoices method don't called 
I tried to use other versions of jquery (1.7.3, 2.0.3), but this led to the
same result. I'm use Wicket 6.6.0.
Can anyone help me? Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-s-getChoices-method-not-called-with-jquery-tp4660716.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



could not find component x on page y error

2013-05-08 Thread Giovanni Cuccu

Hi,
   I'm facing a random error and I'm not able to trace its cause.
The error is
'could not find component x on page y error'
The problem is that the component named x has never been on page y.
The component name reported in the error is an old one (which is not in 
the jar app anymore) and it was orginally on another page.
I did delete the filestore files in the last deploy so I don't know 
where the app is taking the reference to x component.
I have no ajax replace on the page y and there waere no ajax replace on 
the original page either.

The user actions are the following
the user tries to load the app using an url that point to a protected 
(i.e required login) page

the page being requested is expired
the user get redirect to a login page
the user does some operations successfully
the user sleeps for the session expiration period
the user select a page anf got the error
I have a special Logback logger that put the logging events (SLF4J) of a 
single logged user into a thread local variable and on error it dumps a 
file; I don't know it this can be related to the error, so I put it on 
the table.

Can anyone suggest a way to find the cause of this error?
Thanks,
   Giovanni

--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: could not find component x on page y error

2013-05-08 Thread Giovanni Cuccu

Hi,
I'm using wicket 6.6.
thanks,
   Giovanni
Il 08/05/13 12:52, Giovanni Cuccu ha scritto:

Hi,
   I'm facing a random error and I'm not able to trace its cause.
The error is
'could not find component x on page y error'
The problem is that the component named x has never been on page y.
The component name reported in the error is an old one (which is not 
in the jar app anymore) and it was orginally on another page.
I did delete the filestore files in the last deploy so I don't know 
where the app is taking the reference to x component.
I have no ajax replace on the page y and there waere no ajax replace 
on the original page either.

The user actions are the following
the user tries to load the app using an url that point to a protected 
(i.e required login) page

the page being requested is expired
the user get redirect to a login page
the user does some operations successfully
the user sleeps for the session expiration period
the user select a page anf got the error
I have a special Logback logger that put the logging events (SLF4J) of 
a single logged user into a thread local variable and on error it 
dumps a file; I don't know it this can be related to the error, so I 
put it on the table.

Can anyone suggest a way to find the cause of this error?
Thanks,
   Giovanni



--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Semi OT: Request for on site wicket training

2013-04-09 Thread Giovanni Cuccu

Hi,
   I'm trying to convince my boss to invest in a wicket course, and he 
wants for a quotation (read $ or €) in order to evaluate to go on or not.
I'm looking for a wicket  on site course for about 10 developers 
(Location Bologna, Italy) three or five days long.
We are using wicket since 2009 and we need to check out daily habits and 
how to improve our code/skills.

The details are to be defined but my first idea about the contents are
1)recap on wicket models (with an emphasis on detachable models that we 
are not using)
2)How to solve some common problems (Panel vs FormComponentPanel, nested 
forms) in managing complex forms
3)Ajax: the basics and how to solve common problems (triggering updates 
on other components, etc)

4)Wicket tester and testing of wicket applications
5)Some wicket internals
We are using wicket 1.5 but we also have some projects using wicket 6 
and we are starting the migration to from 1.5 to 6.
The course must be in italian and/or in english; estimated period late 
june/july 2013 (june is also a nice month for comin in Italy for vacations)

If interested please answer to me directly (i.e. off-list)
Grazie,
 Giovanni


--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: AutocompleteTextField and object (not just String)

2012-08-01 Thread Giovanni Cuccu

ciao,
I think Autocompletetextfield deals only with String.
IIRC there is a objectautocomplete in wicketstuff.
I did not use it personally but I suppose that does what you need.
Giovanni

Il 01/08/12 12.31, Daniele Dellafiore ha scritto:

Hi.

I'm sure I'm talking about something that has already been discussed
here and on stackoverflow a lot, but still I haven't found a solution.

I do not understand how AutocompleteTextField works when dealing with
list of objects that are not just strings. Other wicket components
like DropDown has a clear pattern: the renderer is used only for
rendering purpose, there's a model to store selection and a model to
store choices options.

Still, I can't figure out how to do the very same thing with
AutocompleteTextField.

The best I can get is:
TextField codeField = new 
AutoCompleteTextFieldJSONObject(code,
model, JSONObject.class, renderer,
  new AutoCompleteSettings());


I'm using an AbstractAutoCompleteTextRenderer and a PropertyModel
binded to a JSONObject variable.
It all works but when I submit the form, it says me that the selected
string is not a valid JSONObject, so he cannot attach it to the field.

the ITerator returned by AutocompleteTextField.getChoices(String
input) is an Iterator of JSONObject.
I expect that when I submit, the setObject receives the selected
JSONObject, not the String I do render using a specific Renderer.

How can that be done?

Thanks anyone for help.



--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: Unable to use wicket tester to simulate ajax behavior

2012-07-24 Thread Giovanni Cuccu

Hi,
sorry for the late response. Should I file a bug for this?
Thanks,
Giovanni
Il 11/07/12 15.13, Giovanni Cuccu ha scritto:

Hi Martin,
 I did the change you suggested but the test fails with esame error:

junit.framework.AssertionFailedError: expect no error message, but 
contains

   Field 'combo1' is required.

Thanks,
 Giovanni
Il 11/07/12 09.23, Martin Grigorov ha scritto:

Hi,

Try with:

tester.getRequest().setParameter(form:combo1, 0);
tester.executeAjaxEvent(form:combo1, onchange);

On Tue, Jul 10, 2012 at 10:10 AM, Giovanni Cuccu
giovanni.cu...@cup2000.it wrote:

Hi,
 can someone give me an hint on this?
I tried to explain my problem providing a complete example and 
explaining

what I was trying to achieve.
I'd like to know if there is a specific reason of getting no answer 
so I can

change something on my side the next time I need to write to the list.
Thanks,
 Giovanni
Il 05/07/12 08.10, Giovanni Cuccu ha scritto:


Hi all,
 I'm trying to test a wicket 1.5.7 application and I'm hitting a
strange (at least for me) issue.
I have two dropdowns (combo 1 and combo2) and when I select one value
from combo1 I fire an AjaxUpdateBehavior on onchange event which 
selects

a value on combo2.
If I use the application everything is working as expected but If I 
try

to simulate the application with wicket tester I come into trouble.
Basically the test code is the following one:

 WicketTester tester= new WicketTester(new 
WicketApplication());

 tester.startPage(TestAjaxDropDown.class);
 FormTester formTester=tester.newFormTester(form);
 formTester.select(combo1, 0);
 tester.executeAjaxEvent(form:combo1, onchange);
 formTester.submit();
 tester.assertNoErrorMessage();

what I got is that after firing the onchange event combo1 gets a null
value as object model and this does not happen when I use a 
browser. If

I do not fire the event the application reports that combo2 has no
element selected.
Am I  missing something or is it a bug?

Grazie,
   Giovanni

P.S. I built a simple test case that I insert here

main page class

package com.sg2net.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.PropertyModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestAjaxDropDown extends WebPage {

 private static final Logger
logger=LoggerFactory.getLogger(TestAjaxDropDown.class.getName());

 public TestAjaxDropDown() {
 add(new FeedbackPanel(feedback));
 add(new TestAjaxDropDownFrom(form));
 }

 private class DomainObject1 implements Serializable {
 public DomainObject1(long id, String description) {
 super();
 this.id = id;
 this.description = description;
 }
 private static final long serialVersionUID = 1L;
 private long id;
 private String description;

 public long getId() {
 return id;
 }
 public void setId(long id) {
 this.id = id;
 }
 public String getDescription() {
 return description;
 }
 public void setDescription(String description) {
 this.description = description;
 }
 @Override
 public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + getOuterType().hashCode();
 result = prime * result + (int) (id ^ (id  32));
 return result;
 }
 @Override
 public boolean equals(Object obj) {
 if (this == obj)
 return true;
 if (obj == null)
 return false;
 if (getClass() != obj.getClass())
 return false;
 DomainObject1 other = (DomainObject1) obj;
 if (!getOuterType().equals(other.getOuterType()))
 return false;
 if (id != other.id)
 return false;
 return true;
 }
 private TestAjaxDropDown getOuterType() {
 return TestAjaxDropDown.this;
 }

 }

 private class DomainObject2 implements Serializable {
 public DomainObject2(long id, String description) {
 super();
 this.id = id;
 this.description = description;
 }
 private static final long serialVersionUID = 1L;
 private long id;
 private String description;

 public long

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-24 Thread Giovanni Cuccu

Hi,
  here it is
https://issues.apache.org/jira/browse/WICKET-4670
Thanks,
  Giovanni

Il 24/07/12 09.22, Martin Grigorov ha scritto:

Hi,

File a ticket with a test case.

On Tue, Jul 24, 2012 at 9:34 AM, Giovanni Cuccu
giovanni.cu...@cup2000.it wrote:

Hi,
 sorry for the late response. Should I file a bug for this?
Thanks,
 Giovanni
Il 11/07/12 15.13, Giovanni Cuccu ha scritto:


Hi Martin,
  I did the change you suggested but the test fails with esame error:

junit.framework.AssertionFailedError: expect no error message, but
contains
Field 'combo1' is required.

Thanks,
  Giovanni
Il 11/07/12 09.23, Martin Grigorov ha scritto:

Hi,

Try with:

tester.getRequest().setParameter(form:combo1, 0);
tester.executeAjaxEvent(form:combo1, onchange);

On Tue, Jul 10, 2012 at 10:10 AM, Giovanni Cuccu
giovanni.cu...@cup2000.it wrote:

Hi,
  can someone give me an hint on this?
I tried to explain my problem providing a complete example and
explaining
what I was trying to achieve.
I'd like to know if there is a specific reason of getting no answer so I
can
change something on my side the next time I need to write to the list.
Thanks,
  Giovanni
Il 05/07/12 08.10, Giovanni Cuccu ha scritto:


Hi all,
  I'm trying to test a wicket 1.5.7 application and I'm hitting a
strange (at least for me) issue.
I have two dropdowns (combo 1 and combo2) and when I select one value
from combo1 I fire an AjaxUpdateBehavior on onchange event which
selects
a value on combo2.
If I use the application everything is working as expected but If I try
to simulate the application with wicket tester I come into trouble.
Basically the test code is the following one:

  WicketTester tester= new WicketTester(new
WicketApplication());
  tester.startPage(TestAjaxDropDown.class);
  FormTester formTester=tester.newFormTester(form);
  formTester.select(combo1, 0);
  tester.executeAjaxEvent(form:combo1, onchange);
  formTester.submit();
  tester.assertNoErrorMessage();

what I got is that after firing the onchange event combo1 gets a null
value as object model and this does not happen when I use a browser. If
I do not fire the event the application reports that combo2 has no
element selected.
Am I  missing something or is it a bug?

Grazie,
Giovanni

P.S. I built a simple test case that I insert here

main page class

package com.sg2net.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.PropertyModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestAjaxDropDown extends WebPage {

  private static final Logger
logger=LoggerFactory.getLogger(TestAjaxDropDown.class.getName());

  public TestAjaxDropDown() {
  add(new FeedbackPanel(feedback));
  add(new TestAjaxDropDownFrom(form));
  }

  private class DomainObject1 implements Serializable {
  public DomainObject1(long id, String description) {
  super();
  this.id = id;
  this.description = description;
  }
  private static final long serialVersionUID = 1L;
  private long id;
  private String description;

  public long getId() {
  return id;
  }
  public void setId(long id) {
  this.id = id;
  }
  public String getDescription() {
  return description;
  }
  public void setDescription(String description) {
  this.description = description;
  }
  @Override
  public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + getOuterType().hashCode();
  result = prime * result + (int) (id ^ (id  32));
  return result;
  }
  @Override
  public boolean equals(Object obj) {
  if (this == obj)
  return true;
  if (obj == null)
  return false;
  if (getClass() != obj.getClass())
  return false;
  DomainObject1 other = (DomainObject1) obj;
  if (!getOuterType().equals(other.getOuterType()))
  return false;
  if (id != other.id)
  return false;
  return true;
  }
  private TestAjaxDropDown getOuterType() {
  return TestAjaxDropDown.this;
  }

  }

  private class DomainObject2 implements

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-11 Thread Giovanni Cuccu

Hi Martin,
 I did the change you suggested but the test fails with esame error:

junit.framework.AssertionFailedError: expect no error message, but contains
   Field 'combo1' is required.

Thanks,
 Giovanni
Il 11/07/12 09.23, Martin Grigorov ha scritto:

Hi,

Try with:

tester.getRequest().setParameter(form:combo1, 0);
tester.executeAjaxEvent(form:combo1, onchange);

On Tue, Jul 10, 2012 at 10:10 AM, Giovanni Cuccu
giovanni.cu...@cup2000.it wrote:

Hi,
 can someone give me an hint on this?
I tried to explain my problem providing a complete example and explaining
what I was trying to achieve.
I'd like to know if there is a specific reason of getting no answer so I can
change something on my side the next time I need to write to the list.
Thanks,
 Giovanni
Il 05/07/12 08.10, Giovanni Cuccu ha scritto:


Hi all,
 I'm trying to test a wicket 1.5.7 application and I'm hitting a
strange (at least for me) issue.
I have two dropdowns (combo 1 and combo2) and when I select one value
from combo1 I fire an AjaxUpdateBehavior on onchange event which selects
a value on combo2.
If I use the application everything is working as expected but If I try
to simulate the application with wicket tester I come into trouble.
Basically the test code is the following one:

 WicketTester tester= new WicketTester(new WicketApplication());
 tester.startPage(TestAjaxDropDown.class);
 FormTester formTester=tester.newFormTester(form);
 formTester.select(combo1, 0);
 tester.executeAjaxEvent(form:combo1, onchange);
 formTester.submit();
 tester.assertNoErrorMessage();

what I got is that after firing the onchange event combo1 gets a null
value as object model and this does not happen when I use a browser. If
I do not fire the event the application reports that combo2 has no
element selected.
Am I  missing something or is it a bug?

Grazie,
   Giovanni

P.S. I built a simple test case that I insert here

main page class

package com.sg2net.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.PropertyModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestAjaxDropDown extends WebPage {

 private static final Logger
logger=LoggerFactory.getLogger(TestAjaxDropDown.class.getName());

 public TestAjaxDropDown() {
 add(new FeedbackPanel(feedback));
 add(new TestAjaxDropDownFrom(form));
 }

 private class DomainObject1 implements Serializable {
 public DomainObject1(long id, String description) {
 super();
 this.id = id;
 this.description = description;
 }
 private static final long serialVersionUID = 1L;
 private long id;
 private String description;

 public long getId() {
 return id;
 }
 public void setId(long id) {
 this.id = id;
 }
 public String getDescription() {
 return description;
 }
 public void setDescription(String description) {
 this.description = description;
 }
 @Override
 public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + getOuterType().hashCode();
 result = prime * result + (int) (id ^ (id  32));
 return result;
 }
 @Override
 public boolean equals(Object obj) {
 if (this == obj)
 return true;
 if (obj == null)
 return false;
 if (getClass() != obj.getClass())
 return false;
 DomainObject1 other = (DomainObject1) obj;
 if (!getOuterType().equals(other.getOuterType()))
 return false;
 if (id != other.id)
 return false;
 return true;
 }
 private TestAjaxDropDown getOuterType() {
 return TestAjaxDropDown.this;
 }

 }

 private class DomainObject2 implements Serializable {
 public DomainObject2(long id, String description) {
 super();
 this.id = id;
 this.description = description;
 }
 private static final long serialVersionUID = 1L;
 private long id;
 private String description;

 public long getId() {
 return id;
 }
 public void setId(long id) {
 this.id = id;
 }
 public String

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-10 Thread Giovanni Cuccu

Hi,
can someone give me an hint on this?
I tried to explain my problem providing a complete example and 
explaining what I was trying to achieve.
I'd like to know if there is a specific reason of getting no answer so I 
can change something on my side the next time I need to write to the list.

Thanks,
Giovanni
Il 05/07/12 08.10, Giovanni Cuccu ha scritto:


Hi all,
I'm trying to test a wicket 1.5.7 application and I'm hitting a
strange (at least for me) issue.
I have two dropdowns (combo 1 and combo2) and when I select one value
from combo1 I fire an AjaxUpdateBehavior on onchange event which selects
a value on combo2.
If I use the application everything is working as expected but If I try
to simulate the application with wicket tester I come into trouble.
Basically the test code is the following one:

WicketTester tester= new WicketTester(new WicketApplication());
tester.startPage(TestAjaxDropDown.class);
FormTester formTester=tester.newFormTester(form);
formTester.select(combo1, 0);
tester.executeAjaxEvent(form:combo1, onchange);
formTester.submit();
tester.assertNoErrorMessage();

what I got is that after firing the onchange event combo1 gets a null
value as object model and this does not happen when I use a browser. If
I do not fire the event the application reports that combo2 has no
element selected.
Am I  missing something or is it a bug?

Grazie,
  Giovanni

P.S. I built a simple test case that I insert here

main page class

package com.sg2net.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.PropertyModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestAjaxDropDown extends WebPage {

private static final Logger
logger=LoggerFactory.getLogger(TestAjaxDropDown.class.getName());

public TestAjaxDropDown() {
add(new FeedbackPanel(feedback));
add(new TestAjaxDropDownFrom(form));
}

private class DomainObject1 implements Serializable {
public DomainObject1(long id, String description) {
super();
this.id = id;
this.description = description;
}
private static final long serialVersionUID = 1L;
private long id;
private String description;

public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + getOuterType().hashCode();
result = prime * result + (int) (id ^ (id  32));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
DomainObject1 other = (DomainObject1) obj;
if (!getOuterType().equals(other.getOuterType()))
return false;
if (id != other.id)
return false;
return true;
}
private TestAjaxDropDown getOuterType() {
return TestAjaxDropDown.this;
}

}

private class DomainObject2 implements Serializable {
public DomainObject2(long id, String description) {
super();
this.id = id;
this.description = description;
}
private static final long serialVersionUID = 1L;
private long id;
private String description;

public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + getOuterType().hashCode();
result = prime * result + (int) (id ^ (id  32));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj

Re: image from outside web application directory

2012-07-05 Thread Giovanni Cuccu

Hi,
   it's not wicket related but if you are using tomcat as application 
server you can use the aliases attribute of the context ( 
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html) which 
allows you to map an external (to your web app) dir to an url (es 
c:/images on filesystem as /images in the url)

ciao,
 Giovanni

Il 05/07/12 00.49, lang ha scritto:

I need to show images from c:/pictures on my website. I searched and searched
and there should be something on old.nabble  but that link is giving null
pointer results. Who can help?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379.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





--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it





Unable to use wicket tester to simulate ajax behavior

2012-07-05 Thread Giovanni Cuccu


Hi all,
I'm trying to test a wicket 1.5.7 application and I'm hitting a
strange (at least for me) issue.
I have two dropdowns (combo 1 and combo2) and when I select one value
from combo1 I fire an AjaxUpdateBehavior on onchange event which selects
a value on combo2.
If I use the application everything is working as expected but If I try
to simulate the application with wicket tester I come into trouble.
Basically the test code is the following one:

WicketTester tester= new WicketTester(new WicketApplication());
tester.startPage(TestAjaxDropDown.class);
FormTester formTester=tester.newFormTester(form);
formTester.select(combo1, 0);
tester.executeAjaxEvent(form:combo1, onchange);
formTester.submit();
tester.assertNoErrorMessage();

what I got is that after firing the onchange event combo1 gets a null
value as object model and this does not happen when I use a browser. If
I do not fire the event the application reports that combo2 has no
element selected.
Am I  missing something or is it a bug?

Grazie,
  Giovanni

P.S. I built a simple test case that I insert here

main page class

package com.sg2net.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.PropertyModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestAjaxDropDown extends WebPage {

private static final Logger
logger=LoggerFactory.getLogger(TestAjaxDropDown.class.getName());

public TestAjaxDropDown() {
add(new FeedbackPanel(feedback));
add(new TestAjaxDropDownFrom(form));
}

private class DomainObject1 implements Serializable {
public DomainObject1(long id, String description) {
super();
this.id = id;
this.description = description;
}
private static final long serialVersionUID = 1L;
private long id;
private String description;

public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + getOuterType().hashCode();
result = prime * result + (int) (id ^ (id  32));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
DomainObject1 other = (DomainObject1) obj;
if (!getOuterType().equals(other.getOuterType()))
return false;
if (id != other.id)
return false;
return true;
}
private TestAjaxDropDown getOuterType() {
return TestAjaxDropDown.this;
}

}

private class DomainObject2 implements Serializable {
public DomainObject2(long id, String description) {
super();
this.id = id;
this.description = description;
}
private static final long serialVersionUID = 1L;
private long id;
private String description;

public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + getOuterType().hashCode();
result = prime * result + (int) (id ^ (id  32));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
DomainObject2 other = (DomainObject2) obj;
if (!getOuterType().equals(other.getOuterType()))
return false;
if (id != other.id)
return false

Possibile bug in MockHttpServletRequest

2012-01-30 Thread Giovanni Cuccu

Hello,
I'm starting to user WicketTester and I've hit the following behaviour.
I have a IRequestCycleListener wich needs to access to the httpSession. 
In my code I was using

HttpSession httpSession=httpRequest.getSession();
which works fine within the real servlet  container (i.e. tomcat) but 
fails when I use WicketTester

In order to make wicketteset work I had to change the previous line to:
HttpSession httpSession=httpRequest.getSession(true);
But if I look at the servler api specs 
(http://docs.oracle.com/javaee/1.4/api/) the api says:


public HttpSession getSession()
Returns the current session associated with this request, or if the 
request does not have a session, creates one.


So as far as I understand
httpRequest.getSession(); and httpRequest.getSession(true); are equivalent

If my assumption is correct the MockHttpServletRequest implementation is 
incorrect since it returns null in my case.

The code in the mock class is the following one
public HttpSession getSession()
{
if (session instanceof MockHttpSession  
((MockHttpSession)session).isTemporary())

{
return null;
}
return session;
}
Is it a bug or am I missing something?
ciao,
Giovanni


--
Giovanni Cuccu
CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: Possibile bug in MockHttpServletRequest

2012-01-30 Thread Giovanni Cuccu

Hi Martin,
done.
https://issues.apache.org/jira/browse/WICKET-4370
ciao,
Giovanni


In
  my code I was using
  HttpSession httpSession=httpRequest.getSession();
  which works fine within the real servlet  container (i.e. tomcat) but fails
  when I use WicketTester
  In order to make wicketteset work I had to change the previous line to:
  HttpSession httpSession=httpRequest.getSession(true);
  But if I look at the servler api specs
  (http://docs.oracle.com/javaee/1.4/api/) the api says:

  public HttpSession getSession()
  Returns the current session associated with this request, or if the request
  does not have a session, creates one.

  So as far as I understand
  httpRequest.getSession(); and httpRequest.getSession(true); are equivalent

  If my assumption is correct the MockHttpServletRequest implementation is
  incorrect since it returns null in my case.
  The code in the mock class is the following one
  public HttpSession getSession()
  {
  if (session instanceof MockHttpSession
  ((MockHttpSession)session).isTemporary())
  {
  return null;
  }
  return session;
  }



--
Giovanni Cuccu
CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



TextField with error css and errorMessage

2011-02-22 Thread Giovanni Cuccu

Hi,
I've written a TextField component that starts (by subclassing) 
from TextField and when the component is not valid it adds a custom css 
and it appends the error description near the field.
The goal was to create a replacement for TextField leaving the html as 
it was before the subclassed TextField usage (i.e. the only required 
change is the the class name in the java code)
I've implementend the component with two behaviours and the core lies in 
the onBeforeRender method.
I'm wondering if there are better approaches to achive the result; here 
is the method implementation:

@Override
public void onBeforeRender() {
if (!isValid()) {
add(cssErrorAppender);
add(errorMessageBehaviour);
final String error;
String preMessage=prefix + + errorDescriptionTag + 
class=\+ errorDescriptionClass + \;

String postMessage=/+ errorDescriptionTag + ;
if (hasFeedbackMessage()) {
error = preMessage 
+getFeedbackMessage().getMessage().toString()+ postMessage;

} else {
error = preMessage +getString(input.invalid) +  
postMessage;

}
errorMessageBehaviour.setErrorDescription(error);
addedBehaviour=true;
} else {
if (addedBehaviour) {
remove(cssErrorAppender);
remove(errorMessageBehaviour);
addedBehaviour=false;
}
}
super.onBeforeRender();
}

here is the declaration of behaviour

private AttributeAppender cssErrorAppender=new 
AttributeAppender(class, new ModelString(errorClass),  );
private ErrorMessageBehaviour errorMessageBehaviour=new 
ErrorMessageBehaviour();


Thanks,
   Giovanni

--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Giovanni
James, can you share your SpringSecurityWebApplication and 
SpringSecurityWebSession
classes?

If you also write a  small tutorial on how to use them, it will be great.

Best regards,
giovanni






From: James Carman jcar...@carmanconsulting.com
To: users@wicket.apache.org
Sent: Wed, April 28, 2010 1:51:57 AM
Subject: Re: Wicket + security, what are the best options? Spring Security  
reached almost all the way...

I have a SpringSecurityWebApplication and SpringSecurityWebSession
class you can use if you want.

On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote:
 You can use Spring security with wicket auth-roles, I works out pretty nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.

 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


 On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a WASP/SWARM project, using
 the example project from

 http://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html
 ,
 but after creating class after class after class of in-my-eyes boilerplate
 code I got the overwhelming feeling that I was making my project more and
 more dirty. And, more importantly, I got the feeling that this shouldn't be
 so complicated

Re: FileUploadField within RepeatingView

2010-04-27 Thread Giovanni Cuccu

Hi,
	please ignore my previous request. I'm investigating the issue and the 
cause seems related to a bug in my code. The bug is still here but this 
is another issue.

Regards,
Giovanni

Hi,
I'm trying to build a form with multiple file upload fields. Each 
upload field has a companion text field used for describing the file 
content.

I'm using a form with a RepeatingView:
here is a simple code snippet:
private FileUpload upload0;
private FileUpload upload1;


RepeatingView allegatiView = new RepeatingView(allegati);
add(allegatiView);
int i=0;
for(SegnalazioneAllegato segnalazioneAllegato: allegati) {
WebMarkupContainer allegatoContainer= new 
WebMarkupContainer(allegatiView.newChildId());

allegatiView.add(allegatoContainer);
allegatoContainer.add(new TextFieldString(descrizione,new 
PropertyModelString(segnalazioneAllegato,descrizioneAllegato)));
allegatoContainer.add(new FileUploadField(allegato,new 
PropertyModelFileUpload(this,upload+ i +)));

}
If I configure only one FileUploadField the fileupload succeds while if 
I use two FileUploadField instances I can't get the data because upload0 
and upload1 are both null.
I can't use MultiFileUploadField because each file must be submitted 
along with a description.

Is this a bug or am I missing something?
Is it possible to use multiple MultiFileUploadField instances witihin a 
form?

Thanks a lot,
Giovanni





--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



FileUploadField within RepeatingView

2010-04-26 Thread Giovanni Cuccu

Hi,
	I'm trying to build a form with multiple file upload fields. Each 
upload field has a companion text field used for describing the file 
content.

I'm using a form with a RepeatingView:
here is a simple code snippet:
private FileUpload upload0;
private FileUpload upload1;


RepeatingView allegatiView = new RepeatingView(allegati);
add(allegatiView);
int i=0;
for(SegnalazioneAllegato segnalazioneAllegato: allegati) {
		WebMarkupContainer allegatoContainer= new 
WebMarkupContainer(allegatiView.newChildId());

allegatiView.add(allegatoContainer);
		allegatoContainer.add(new TextFieldString(descrizione,new 
PropertyModelString(segnalazioneAllegato,descrizioneAllegato)));
allegatoContainer.add(new FileUploadField(allegato,new 
PropertyModelFileUpload(this,upload+ i +)));

}
If I configure only one FileUploadField the fileupload succeds while if 
I use two FileUploadField instances I can't get the data because upload0 
and upload1 are both null.
I can't use MultiFileUploadField because each file must be submitted 
along with a description.

Is this a bug or am I missing something?
Is it possible to use multiple MultiFileUploadField instances witihin a 
form?

Thanks a lot,
Giovanni


--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Wicket and mobile browsers

2010-04-18 Thread Giovanni
I need to write a web application which will be accessed via mobile browsers 
from smartphones.

What are the smartphone browsers which work well with Wicket?

What kind of attention should I pay during the development of Wicket 
applications for mobile devices?

Is there any tutorial about developing Wicket applications for mobile target 
browsers?

Thanks in advance for any help.

giovanni



  

Wicket on a major italian bank (Intesa SanPaolo)

2010-04-13 Thread Giovanni
Dear Wicketers,

I am happy to announce that Wicket has been used successfully by me and my team 
to create two web applications in a major italian bank (Intesa SanPaolo).

The two web apps are deployed as follows:
- the biggest one on the bank intranet
- the smallest one on internet

Here you can access the login page of the internet webapp:
http://www.partnermutui.intesasanpaolo.com/grifweb/login

I cannot give you any account, in order to access the application, because the 
data managed by the webapp are customer financial data.

It can be good to add these two webapps to the wiki where there is the list of 
applications using Wicket.

This can be a good example of Wicket used by a big financial enterprise. This 
can be used as a reference, in order to convince other financial companies to 
utilize Wicket.

Best regards,
Giovanni



  

Re: Wicket 1.4.7 released

2010-03-05 Thread Giovanni
Wonderful!

I am a big fan of Wicket and I am spreading it in my local community (Turin, 
Italy).

Thanks for the great job!





From: Igor Vaynberg igor.vaynb...@gmail.com
To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org
Sent: Fri, March 5, 2010 3:35:08 AM
Subject: Wicket 1.4.7 released

Wicket 1.4.7 is released!

This is the seventh maintenance release of 1.4.x series and brings over
30 bug fixes and improvements.

tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.7/

maven:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4.7/version
/dependency

download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7

changelog:https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310561fixfor=12314560

cheers,

-igor

PS. the website has been updated with the release announcement but is
still waiting to be replicated.

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


  

Calendar bug in Wicket 1.4.7

2010-03-05 Thread Giovanni
I added the following comment to the bug #WICKET-2648.

I don't know if I have to register a new bug or it is enough just a comment on 
the old bug.

Please, let me know.

Regards,
giovanni


Giovanni added a comment  - 05/Mar/10 
04:03 PM 

I found that there is still a bug in Wicket 1.4.7 in case that the datePattern 
is dd/MM/. 

For example, if you use the DatePicker and select a date such as 
23/02/2010 from the calendar GUI, the date selected in the DateTextField is 
23/02/0010. 

This is the example Java code: 

// define the date text field for the data decorrenza 
DateTextField dataDecorrenzaDaTextField = new 
DateTextField(dataDecorrenzaDa, 
new PropertyModel(this.accordo, dataDecorrenzaDa), 
new PatternDateConverter(dd/MM/, true) 
); 

// add the graphical calendar date picker 
 dataDecorrenzaDaTextField.add(new DatePicker() { 

@Override 
protected boolean enableMonthYearSelection() { 
   
// enable month/year selection 
 return true; 

} // end enableMonthYearSelection 

} // end DatePicker 

); 

I found that the bug is still in the wicket-date.js, line 137. 

The wrong code is: 

if(datePattern.match(/yy+/)) year = Wicket.DateTime.padDateFragment(year % 
100); 

This line also makes the module 100 on the year, when the year pattern 
is . 

The fixed code is: 

if(datePattern.match(/+/)) { 
year = year; 
} else if(datePattern.match(/yy+/)) year = 
Wicket.DateTime.padDateFragment(year % 100); 


  

Error with Wicket 1.4.6

2010-02-02 Thread Giovanni
I upgraded my project from Wicket 1.4.5 to 1.4.6.

After the upgrade, I get the following error on IE6:

quote
The XML page cannot be displayed.

Cannot view XML input using style sheet. Please correct the error and 
then click the Refresh button, or try again later.
/quote

On Firefox it is working well.

The previous Wicket 1.4.5 also worked well on both IE6 and Firefox.

What can be the problem? What can I do to fix it?

Please, don't tell me not to use IE6, because I am forced to use it by my 
company. :(

Best regards,
giovanni


  

Re: Error with Wicket 1.4.6

2010-02-02 Thread Giovanni
Hello Igor,

excuse me, I don't understand your reply.

Can you please explain a little bit more?

best regards
giovanni





From: Igor Vaynberg igor.vaynb...@gmail.com
To: users@wicket.apache.org
Cc: r.bartolo...@reply.it; d.cappad...@reply.it
Sent: Tue, February 2, 2010 4:55:07 PM
Subject: Re: Error with Wicket 1.4.6

quickstart...

-igor

On Tue, Feb 2, 2010 at 3:22 AM, Giovanni pino_o...@yahoo.com wrote:
 I upgraded my project from Wicket 1.4.5 to 1.4.6.

 After the upgrade, I get the following error on IE6:

 quote
 The XML page cannot be displayed.

 Cannot view XML input using style sheet. Please correct the error and
 then click the Refresh button, or try again later.
 /quote

 On Firefox it is working well.

 The previous Wicket 1.4.5 also worked well on both IE6 and Firefox.

 What can be the problem? What can I do to fix it?

 Please, don't tell me not to use IE6, because I am forced to use it by my 
 company. :(

 Best regards,
 giovanni




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


  

Re: Error with Wicket 1.4.6

2010-02-02 Thread Giovanni
OK. Thanks for the explanation.

Best regards,
giovanni






From: Pierre Goupil goupilpie...@gmail.com
To: users@wicket.apache.org
Sent: Tue, February 2, 2010 9:33:16 PM
Subject: Re: Error with Wicket 1.4.6

Hello,

He means that you should open a bug ticket and provide a (Maven) quickstart
project demonstrating the issue, so that Wicket devs can then include it
into their non-regression test framework.

Regards,

Pierre


On Tue, Feb 2, 2010 at 9:14 PM, Giovanni pino_o...@yahoo.com wrote:

 Hello Igor,

 excuse me, I don't understand your reply.

 Can you please explain a little bit more?

 best regards
 giovanni




 
 From: Igor Vaynberg igor.vaynb...@gmail.com
 To: users@wicket.apache.org
 Cc: r.bartolo...@reply.it; d.cappad...@reply.it
 Sent: Tue, February 2, 2010 4:55:07 PM
 Subject: Re: Error with Wicket 1.4.6

 quickstart...

 -igor

 On Tue, Feb 2, 2010 at 3:22 AM, Giovanni pino_o...@yahoo.com wrote:
  I upgraded my project from Wicket 1.4.5 to 1.4.6.
 
  After the upgrade, I get the following error on IE6:
 
  quote
  The XML page cannot be displayed.
 
  Cannot view XML input using style sheet. Please correct the error and
  then click the Refresh button, or try again later.
  /quote
 
  On Firefox it is working well.
 
  The previous Wicket 1.4.5 also worked well on both IE6 and Firefox.
 
  What can be the problem? What can I do to fix it?
 
  Please, don't tell me not to use IE6, because I am forced to use it by my
 company. :(
 
  Best regards,
  giovanni
 
 
 

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







-- 
Ad augusta per angusta

Des résultats grandioses par des voies étroites



  

Re: wicket 1.4.6 released

2010-02-01 Thread Giovanni
wonderful!

ciao
jo





From: Igor Vaynberg igor.vaynb...@gmail.com
To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org
Sent: Mon, February 1, 2010 7:44:11 PM
Subject: wicket 1.4.6 released

Wicket 1.4.6 is released!

This is the sixths maintenance release of 1.4.x series and brings over
40 bug fixes and improvements.

tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.6/

maven:

dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.6/version
/dependency

download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.6

changelog: 
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314470

cheers,

-igor

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


  

Apache Click

2010-01-29 Thread Giovanni
Apache Click is very similar to Wicket:

http://incubator.apache.org/click/

What are the main differences and advantages?

regards
giovanni



  

Re: Future of Wicket Security (WASP/SWARM)

2010-01-22 Thread Giovanni
I am a user of Wicket Security and I would prefer:

 [x] adopt Wicket security into Apache Wicket
 [] keep 
Wicket security at Wicket Stuff

best regards
giovanni






From: Martin Grigorov mcgreg...@e-card.bg
To: users@wicket.apache.org
Cc: d...@wicket.apache.org
Sent: Fri, January 22, 2010 4:03:48 PM
Subject: Re: Future of Wicket Security (WASP/SWARM)

On Fri, 2010-01-22 at 10:52 +0100, Martijn Dashorst wrote:
 Guys,
 
 I'd like to discuss the future of the Wicket Security project.
 Currently the project lives on/in the wicketstuff repository, but uses
 group id and package names org.apache.wicket. IMO We should either:
 
  - adopt Wicket Security into the Wicket project and move everything
 over from Wicket Stuff into a subproject within Apache Wicket (and
 adopt the committers), or
  - keep Wicket Security at wicketstuff and move it into the fold of
 wicket stuff, including groupid/package rename.
 
 Since development on wicket security 1.4 is currently happening with a
 1.4-beta1 just released, it is prudent to decide its future now (with
 a pending package rename).
 
 Considering that both the wicket security contributors and the Wicket
 PMC members are needed to make this happen, all their opinions are
 considered binding.
 
 [ ] adopt Wicket security into Apache Wicket
 [x] keep Wicket security at Wicket Stuff
I haven't seen in the mailing lists many users of it. Most of them use
Spring Security (my statistics).

I think there is no need to add one more thing to support by the core
committers.

P.S. I personally prefer Shiro.
 
 Martijn
 
 -
 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


  

Lazy loading

2010-01-11 Thread Giovanni
In my current project, we have many situations in which we have to load a page, 
which is very slow. The slowness is not because of Wicket, but because there 
are heavy queries on the DB.

In some of these situations, we used the AjaxLazyLoadPanel, when we have to 
load a slow panel.

In some other situations, when we are not loading a panel, but a page, how can 
we do to prevent the user from crazy clicking on the application, because he 
is impatient with the slow loading?

More generally, is there a standard way to disable all the links and click-able 
components of the application, while a new component is loading?

best regards,
giovanni


  

Re: Lazy loading

2010-01-11 Thread Giovanni
Thanks a lot.

I will try your suggestion.

best regards,
giovanni





From: Martin Makundi martin.maku...@koodaripalvelut.com
To: users@wicket.apache.org
Sent: Mon, January 11, 2010 2:47:18 PM
Subject: Re: Lazy loading

Hi!

What we do is we draw a full-screen transparent DIV (like modal
window) onto the screen with a Loading sign whenever the user clicks
any link,button anything... and we reset it when a page loads.

http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

**
Martin

2010/1/11 Giovanni pino_o...@yahoo.com:
 In my current project, we have many situations in which we have to load a 
 page, which is very slow. The slowness is not because of Wicket, but because 
 there are heavy queries on the DB.

 In some of these situations, we used the AjaxLazyLoadPanel, when we have to 
 load a slow panel.

 In some other situations, when we are not loading a panel, but a page, how 
 can we do to prevent the user from crazy clicking on the application, 
 because he is impatient with the slow loading?

 More generally, is there a standard way to disable all the links and 
 click-able components of the application, while a new component is loading?

 best regards,
 giovanni




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


  

Re: Lazy loading

2010-01-11 Thread Giovanni
Thanks a lot.

I will try your suggestion too.

best regards,
giovanni




From: Ilja Pavkovic ilja.pavko...@binaere-bauten.de
To: users@wicket.apache.org
Cc: Giovanni pino_o...@yahoo.com
Sent: Mon, January 11, 2010 3:00:28 PM
Subject: Re: Lazy loading

Hi,

use a veil. You could use this one:

http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-
of-code/

or (as I personally think it bloats the ajax links)

get familiar with some javascript, add

div id=veil/ to your page with a style like

#veil {
position: absolute;
z-index:1;
top: 0px;
left: 0px;
height:100%;
width:100%;
background: grey;
display: none;
}

and add some javascript to your page like 

window.wicketGlobalPreCallHandler = function() {
window.getElementById(veil).style.display=block;
};

window.wicketGlobalPostCallHandler = function() {
window.getElementById(veil).style.display=none;
};

javascript may not work as I personally use jquery here to get some more fance 
fadeIn fadeOut and I just wrote it down here :)


Best Regards,
Ilja Pavkovic


Am Montag, 11. Januar 2010 14:43:42 schrieb Giovanni:
 In my current project, we have many situations in which we have to load a
  page, which is very slow. The slowness is not because of Wicket, but
  because there are heavy queries on the DB.
 
 In some of these situations, we used the AjaxLazyLoadPanel, when we have to
  load a slow panel.
 
 In some other situations, when we are not loading a panel, but a page, how
  can we do to prevent the user from crazy clicking on the application,
  because he is impatient with the slow loading?
 
 More generally, is there a standard way to disable all the links and
  click-able components of the application, while a new component is
  loading?
 
 best regards,
 giovanni
 

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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


  

Re: Lazy loading

2010-01-11 Thread Giovanni
Thanks.

I will try it.

best regards
giovanni





From: James Carman jcar...@carmanconsulting.com
To: users@wicket.apache.org
Sent: Mon, January 11, 2010 2:45:11 PM
Subject: Re: Lazy loading

Using a veil perhaps?

On Mon, Jan 11, 2010 at 8:43 AM, Giovanni pino_o...@yahoo.com wrote:
 In my current project, we have many situations in which we have to load a 
 page, which is very slow. The slowness is not because of Wicket, but because 
 there are heavy queries on the DB.

 In some of these situations, we used the AjaxLazyLoadPanel, when we have to 
 load a slow panel.

 In some other situations, when we are not loading a panel, but a page, how 
 can we do to prevent the user from crazy clicking on the application, 
 because he is impatient with the slow loading?

 More generally, is there a standard way to disable all the links and 
 click-able components of the application, while a new component is loading?

 best regards,
 giovanni




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


  

Re: Lazy loading

2010-01-11 Thread Giovanni
Is this technique working also with IE6?

I tried the suggestions given previously, but they are not working on IE6. They 
are working on Firefox.

Unfortunately, the standard browser of my client (big bank) is still IE6. :(

Do you know of some ways to make the veil work on IE6?

best regards
giovanni





From: Ilja Pavkovic ilja.pavko...@binaere-bauten.de
To: users@wicket.apache.org
Cc: Douglas Ferguson doug...@douglasferguson.us
Sent: Mon, January 11, 2010 5:33:01 PM
Subject: Re: Lazy loading

Dear Douglas,

 Do you mind sharing your JQuery?
no fancy stuff but as we already use jquery ...

You can play around with the fadeIn-fadeOut times, from a visual point of view 
it should not be too short or you will have flickering.

function showModalOverlay() {
//Set the css and fade in our overlay
$(#veil).css(opacity, 0.8).fadeIn(100);

}

function hideModalOverlay() {
// stop running animations and fadeOut
 $(#veil).stop().fadeOut(100);
}

window.wicketGlobalPreCallHandler = function() {
showModalOverlay();
};

window.wicketGlobalPostCallHandler = function() {
hideModalOverlay();
};

To show an  message just put something into the veil div:

div id=veil
divcenterwait for ajax call.../center/div 

or put some images inside, you can create some nice ajax load indicators at

http://www.ajaxload.info/

Best Regards,
Ilja Pavkovic



Am Montag, 11. Januar 2010 17:21:27 schrieb Douglas Ferguson:
 
 On Jan 11, 2010, at 8:00 AM, Ilja Pavkovic wrote:
  Hi,
 
  use a veil. You could use this one:
 
  http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-li
 nes- of-code/
 
  or (as I personally think it bloats the ajax links)
 
  get familiar with some javascript, add
 
  div id=veil/ to your page with a style like
 
  #veil {
 position: absolute;
 z-index:1;
 top: 0px;
 left: 0px;
 height:100%;
 width:100%;
 background: grey;
 display: none;
  }
 
  and add some javascript to your page like
 
  window.wicketGlobalPreCallHandler = function() {
  window.getElementById(veil).style.display=block;
  };
 
  window.wicketGlobalPostCallHandler = function() {
  window.getElementById(veil).style.display=none;
  };
 
  javascript may not work as I personally use jquery here to get some more
  fance fadeIn fadeOut and I just wrote it down here :)
 
 
  Best Regards,
  Ilja Pavkovic
 
  Am Montag, 11. Januar 2010 14:43:42 schrieb Giovanni:
  In my current project, we have many situations in which we have to load
  a page, which is very slow. The slowness is not because of Wicket, but
  because there are heavy queries on the DB.
 
  In some of these situations, we used the AjaxLazyLoadPanel, when we have
  to load a slow panel.
 
  In some other situations, when we are not loading a panel, but a page,
  how can we do to prevent the user from crazy clicking on the
  application, because he is impatient with the slow loading?
 
  More generally, is there a standard way to disable all the links and
  click-able components of the application, while a new component is
  loading?
 
  best regards,
  giovanni
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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


  

Re: [release] Wicket Security 1.3.1

2010-01-11 Thread Giovanni
I'm very happy about this news.

My team and I are using Wicket Security successfully on our projects at the 
bank.

best regards
giovanni






From: Martijn Dashorst martijn.dasho...@gmail.com
To: users@wicket.apache.org
Sent: Mon, January 11, 2010 5:49:25 PM
Subject: [release] Wicket Security 1.3.1

We've just release Wicket Security 1.3.1.

The Wicket Security project's 1.3.x branch has been dormant ever since
Maurice's tragic accident. Today we finally dared to touch his code
and bring his changes to the world in a formal release.

Wicket Security 1.3.1 is available from the Wicket Stuff repository.

This release integrates all changes Maurice made on trunk after
branching 1.3.x and before making Wicket Security based upon Wicket
1.4. In effect it is the culmination of all his work on the 1.3.x
series.

For example using swarm you should include (or update to) the
following pom snippet:

dependency
groupIdorg.apache.wicket.wicket-security/groupId
artifactIdwicket-security/artifactId
version1.3.1/version
/dependency

More information on the Wicket Security project is available here:

http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security

Enjoy!

Emond  Martijn

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


  

How to close a Wicket application?

2010-01-07 Thread Giovanni
I am using Spring + Wicket.

When the Wicket application starts, if some important configuration is missing, 
I want to close all the application context, destroying all the Spring beans, 
including also the Wicket application, which is configured as a Spring bean by 
SpringWebApplicationFactory.

I used the close() (I also tried stop() and destroy() methods) of the 
ApplicationContext, but it doesn't destroy the Wicket app.

I then searched for a method of Wicket Application, which allows to stop/close 
the webapp, but I did not find it.

How is it possible to stop a Wicket application from inside the application 
itself (that is suicide)?

Best regards,
giovanni



  

Re: How to close a Wicket application?

2010-01-07 Thread Giovanni
Hi Martjin,

I tried with System.exit(1) on Weblogic, but it is also stopping the whole 
Weblogic server. It seems that this solution is too strong. :)

Maybe the solution ofMartin Grigorov is softer.

At the end, we are using the ApplicationContext.close() method, which seems to 
stop the Spring beans, except the Wicket bean (I don't understand why). Then, 
if a user tries to call a Wicket page, he will get an error, not because the 
Wicket app is down, but because the collaborating Spring beans are down.

regards,
giovanni







From: Martijn Dashorst martijn.dasho...@gmail.com
To: users@wicket.apache.org
Sent: Thu, January 7, 2010 12:13:53 PM
Subject: Re: How to close a Wicket application?

Call System.exit(1) ... that will do the trick.

Always nice to see all applications deployed to a container disappear.

Martijn

On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 There is no hook in Wicket to stop. Wicket normally starts and ends with the
 web context it is running in. So ending the application is done by
 undeploying the web-app. You'll need to find hooks in your serlvet
 container. Spring will automatically shutdown with the web context as well.

 Regards,
   Erik.

 Giovanni wrote:

 I am using Spring + Wicket.

 When the Wicket application starts, if some important configuration is
 missing, I want to close all the application context, destroying all the
 Spring beans, including also the Wicket application, which is configured as
 a Spring bean by SpringWebApplicationFactory.

 I used the close() (I also tried stop() and destroy() methods) of the
 ApplicationContext, but it doesn't destroy the Wicket app.

 I then searched for a method of Wicket Application, which allows to
 stop/close the webapp, but I did not find it.

 How is it possible to stop a Wicket application from inside the
 application itself (that is suicide)?

 Best regards,
 giovanni


 --
 Erik van Oosten
 http://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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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


  

Re: Wicket + Scala + Spring

2010-01-04 Thread Giovanni
AFAIK the next version of Scala (2.8) should integrate the translation between 
Java and Scala collections.

Meanwhile, I'm using the following library scala-javautils:

http://github.com/jorgeortiz85/scala-javautils









From: Gary Thomas gar...@gmail.com
To: users@wicket.apache.org
Cc: Giovanni pino_o...@yahoo.com
Sent: Mon, January 4, 2010 1:43:57 AM
Subject: Re: Wicket + Scala + Spring

P.S. though one slight difficulty I've run into is the need to translate 
between Scala and Java collections.
Perfectly doable, and not a Wicket problem, but takes a way some of the 
elegance of coding purely in Scala.

Happy to hear if anyone has tips on elegant ways of dealing with this.


On 1/3/10 4:38 PM, Gary Thomas wrote:
 Same here - not much more to say other than after 10 years of working with 
 Java webapps,
 learning both Wicket and Scala have made the past 6 months very enjoyable.
 
 Immediately before trying Wicket, I was a die-hard Struts/Spring MVC user and 
 didn't know what I was missing.  Scala+Wicket is a nice mix.
 
 Best,
 g
 
 
 On 1/3/10 11:24 AM, Giovanni wrote:
 I'm developing two new applications (a webapp + a standalone) using Scala + 
 Spring + Wicket 1.4.5 (webapp) + H2 database.
 
 The development is nice and interesting.
 
 Wicket is working with Scala very well.
 
 If someone else has a similar experience, please share it.
 
 Best regards
 giovanni
 
 
 
 


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


  

Re: Wicket + Scala + Spring

2010-01-04 Thread Giovanni
Here is some very small info from my blog:

http://giovanni.wordpress.com/2009/12/27/how-to-convert-a-java-list-to-a-scala-list/

I will write more in the future.







From: Paul Szulc paul.sz...@gmail.com
To: users@wicket.apache.org
Sent: Mon, January 4, 2010 9:20:25 AM
Subject: Re: Wicket + Scala + Spring

if you guy run any blog it would be nice contrib to community to write about
your experience in scala  + wicket. I would definitely love to read about
it.

On Mon, Jan 4, 2010 at 1:43 AM, Gary Thomas gar...@gmail.com wrote:

 P.S. though one slight difficulty I've run into is the need to translate
 between Scala and Java collections.
 Perfectly doable, and not a Wicket problem, but takes a way some of the
 elegance of coding purely in Scala.

 Happy to hear if anyone has tips on elegant ways of dealing with this.



 On 1/3/10 4:38 PM, Gary Thomas wrote:

 Same here - not much more to say other than after 10 years of working with
 Java webapps,
 learning both Wicket and Scala have made the past 6 months very enjoyable.

 Immediately before trying Wicket, I was a die-hard Struts/Spring MVC user
 and didn't know what I was missing.  Scala+Wicket is a nice mix.

 Best,
 g


 On 1/3/10 11:24 AM, Giovanni wrote:

 I'm developing two new applications (a webapp + a standalone) using Scala
 + Spring + Wicket 1.4.5 (webapp) + H2 database.

 The development is nice and interesting.

 Wicket is working with Scala very well.

 If someone else has a similar experience, please share it.

 Best regards
 giovanni






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




-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com



  

Wicket + Scala + Spring

2010-01-03 Thread Giovanni
I'm developing two new applications (a webapp + a standalone) using Scala + 
Spring + Wicket 1.4.5 (webapp) + H2 database.

The development is nice and interesting.

Wicket is working with Scala very well.

If someone else has a similar experience, please share it.

Best regards
giovanni


  

Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?

2009-12-30 Thread Giovanni
I got the same error today, trying to use the JmxPanel with Wicket 1.3.7.

Any idea about how to solve this issue?

I would really like to use the JmxPanel in my application.

Best regards,
giovanni







From: Trent Larson larsontr...@gmail.com
To: users@wicket.apache.org
Sent: Wed, March 18, 2009 11:41:38 PM
Subject: wicketstuff-jmx-panel in Wicket 1.4, missing a 
MarkupContainer.add(Component)  ?

I'm trying to use the wicketstuff-jmx-panel component as simply as possible:

   add(new JmxPanel(jmx));

But I get a strange error about a method that doesn't exist:


Caused by: java.lang.NoSuchMethodError:
org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.add(Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
at
org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.init(JmxTreePanel.java:33)
at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:113)
at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:94)


I call it strange because I'm using 1.4-m3, which appears to have the
MarkupContainer.add(Component...) method, so I cannot figure out what it's
trying to tell me.

So is anyone using this in 1.4?  Any idea why it's complaining about no
such method?

Thanks!
Trent



  

Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?

2009-12-30 Thread Giovanni
Gerolf, I solved the problem.

It was my wrong configuration of libraries on tomcat.

regards
giovanni





From: Gerolf Seitz gerolf.se...@gmail.com
To: users@wicket.apache.org
Sent: Wed, December 30, 2009 1:36:56 PM
Subject: Re: wicketstuff-jmx-panel in Wicket 1.4, missing a  
MarkupContainer.add(Component) ?

i will try to find some time to take a look at it tonight.

  gerolf

On Wed, Dec 30, 2009 at 11:51 AM, Giovanni pino_o...@yahoo.com wrote:

 I got the same error today, trying to use the JmxPanel with Wicket 1.3.7.

 Any idea about how to solve this issue?

 I would really like to use the JmxPanel in my application.

 Best regards,
 giovanni






 
 From: Trent Larson larsontr...@gmail.com
 To: users@wicket.apache.org
 Sent: Wed, March 18, 2009 11:41:38 PM
 Subject: wicketstuff-jmx-panel in Wicket 1.4, missing a
 MarkupContainer.add(Component)  ?

 I'm trying to use the wicketstuff-jmx-panel component as simply as
 possible:

   add(new JmxPanel(jmx));

 But I get a strange error about a method that doesn't exist:


 Caused by: java.lang.NoSuchMethodError:

 org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.add(Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
at

 org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.init(JmxTreePanel.java:33)
at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:113)
at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:94)


 I call it strange because I'm using 1.4-m3, which appears to have the
 MarkupContainer.add(Component...) method, so I cannot figure out what it's
 trying to tell me.

 So is anyone using this in 1.4?  Any idea why it's complaining about no
 such method?

 Thanks!
 Trent








  

Re: wicket on Weblogic 10.3.1

2009-11-24 Thread Giovanni
I am running two Wicket applications on WebLogic 10.3 on a Unix machine in a 
bank.

One application is based on Wicket 1.3.7, the other application is based on 
Wicket 1.4.3.

So far, everything is running fine.

Best regards,
giovanni

 
Resources are limited, Imagination is unlimited.







From: zoltan luspai zlus...@gmail.com
To: users@wicket.apache.org
Sent: Tue, November 24, 2009 10:11:51 AM
Subject: wicket on Weblogic 10.3.1

Hi All,


Anybody has experience with wicket running on Weblogic 10.3.1? Any hints about?

I'm having some problem with that wicket pages does not seem to handle page 
events properly, for example the first render of the page is fine, but if I 
click on a button that does not seem to go to the next page. Sorry for being 
foggy here; the thing is being investigated now...


Thanks,

Zoltan


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


  

Re: Wicket 1.4.3 Released!

2009-10-24 Thread Giovanni
Thanks!

giovanni



Resources are limited, Imagination is unlimited.







From: Igor Vaynberg igor.vaynb...@gmail.com
To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org
Sent: Sat, October 24, 2009 12:12:55 AM
Subject: Wicket 1.4.3 Released!

release tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.3

download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.3

changelog: https://issues.apache.org/jira/browse/WICKET/fixforversion/12314250
( full release notes below )

maven:

dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.3/version
/dependency

thank you.

-igor

ps. our website has not yet been updated with the release
announcement, something is broken with the confluence publishing
plugin.

---

Release Notes - Wicket - Version 1.4.3

** Bug
   * [WICKET-2348] - always insert encoding in http response header
   * [WICKET-2436] - invalid DataTable markup breaks table layout
   * [WICKET-2497] - AutoComplete textfield ignores visible
property within hierarchy.
   * [WICKET-2501] - BaseWicketTester clickLink calls onBeginRequest two times.
   * [WICKET-2505] - Button.onSubmit javadoc is misleading
   * [WICKET-2506] - Regression: Could not find child with id: ID
in the wicket:enclosure for non-component tag
   * [WICKET-2507] - Inconsistent resource path using wicket:link
and HeaderContributor after second request
   * [WICKET-2508] - NullPointerException in
BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
   * [WICKET-2513] - wicket:enclosure does not work if child is a
container and not a component (regression from 1.4.1)
   * [WICKET-2516] - Javadoc for Component.getMarkupId is incorrect
   * [WICKET-2518] - Application_bg.properties property file is
incorrectly encoded
   * [WICKET-2520] - Use of Object instead of generic T in
StringAutoCompleteRenderer
   * [WICKET-2522] - Easy fix suggestion: In BaseWicketTester
'IFormSubmitting' component should be the submitting component, not
just a 'Button'
   * [WICKET-2525] - DatePicker consume too much memory
   * [WICKET-2527] - wicket:enclosure child attribute search path has changed
   * [WICKET-2528] - CheckBoxMultipleChoice ignores isDisabled() checks
   * [WICKET-2530] - Class not found when using OSGI class loader

** Improvement
   * [WICKET-2344] - Performance improvement: more efficient
AnnotProxyFieldValueFactory cache
   * [WICKET-2459] - Add new German Wicket Book
   * [WICKET-2511] - Upgrade to SLF4J version 1.5.8
   * [WICKET-2524] - Configurable Throttle delay for AutoCompleteBehavior

** Wish
   * [WICKET-2468] - AjaxLazyLoadPanel do not respect especific
projects components configuration
   * [WICKET-2515] - ModalWindow javadoc improvent

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


  

Re: Italian Bank (was Re: Wicket 1.4.2 Released!)

2009-10-14 Thread Giovanni
The bank is Intesa San Paolo: http://www.group.intesasanpaolo.com

This is the english link: 
http://group.intesasanpaolo.com/scriptIsir0/isInvestor/eng/home/eng_index.jsp

Our wicket webapps are still in development. They will be released at the end 
of this year.

The system is made of two webapps:
  - one on intranet
  - one on internet

We use Wicket (with Wicket Security), Spring (with Spring Security), iBATIS, 
JMS (to connect to the mainframe host), Weblogic, Oracle, Java 6.

If someone is interested in having more details, let me know.

Best regards,
giovanni



 
Resources are limited, Imagination is unlimited.







From: Randy S. randypo...@gmail.com
To: users@wicket.apache.org
Sent: Tue, October 13, 2009 10:41:14 PM
Subject: Italian Bank (was Re: Wicket 1.4.2 Released!)

Giovanni,
What bank is this?  What is the URL and is there anything of particular
interest that we can see without accounts?

On Sat, Oct 10, 2009 at 7:05 AM, Giovanni pino_o...@yahoo.com wrote:

 Wow!!!

 I will upgrade my project for a major italian bank on coming monday.

 Thanks a lot for all your efforts in developing this great web framework!

 Best regards,
 giovanni





  

Re: Wicket 1.4.2 Released!

2009-10-10 Thread Giovanni
Wow!!!

I will upgrade my project for a major italian bank on coming monday.

Thanks a lot for all your efforts in developing this great web framework!

Best regards,
giovanni

 
Resources are limited, Imagination is unlimited.







From: Igor Vaynberg igor.vaynb...@gmail.com
To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org
Sent: Sat, October 10, 2009 8:27:47 AM
Subject: Wicket 1.4.2 Released!

The Apache Wicket project is proud to announce the second maintenance
release of Apache Wicket 1.4.

Download Apache Wicket 1.4
---

You can download the release here:
http://www.apache.org/dyn/closer.cgi/wicket/1.4.2

Or use this in your Maven pom's to upgrade to the new version:

dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.2/version
/dependency

Release Notes - Wicket - Version 1.4.2

** Bug
  * [WICKET-2393] - Passwords should not be trimmed
  * [WICKET-2430] - Malformed \u encoding in
MultipleUploadField_sl.properties
  * [WICKET-2433] - Ajax support for multipart forms broken in a nested form
  * [WICKET-2434] - RequestCycle urlFor ignores existing parameters
when appending provided params
  * [WICKET-2436] - invalid DataTable markup breaks table layout
  * [WICKET-2438] - AjaxEventBehavior not working on feedback
message components
  * [WICKET-2453] - Form.findForm(Component c) bug. When form is
part of Border and form component like TextField is inside another
Border , component cannot resolve its form.
  * [WICKET-2456] - DateTextField cannot work with default converter
(or javadoc wrong)
  * [WICKET-2457] - Flash/ExternalInterface does not work in IE if
movie is fetched via Wicket/Ajax
  * [WICKET-2458] - JavascriptUtils.escapeQuotes() misses escaping
double quotes
  * [WICKET-2461] - AjaxPagingNavigationIncrementLink does not work
without AjaxPagingNavigator component
  * [WICKET-2463] - Ajax miltipart form submitting ignores
setDefaultFormProcessing(false)
  * [WICKET-2466] - javadoc the CryptedUrlWebRequestCodingStrategy
needs to be update/corrected to reflect the usage of session-id for
encryption and hence URLs which were bookmarkable before will NOT
remain bookmarkable.
  * [WICKET-2475] - NPE after application hot redeployment
  * [WICKET-2477] - AjaxEditableChoiceLabel does not detach choices model
  * [WICKET-2478] - TabbedPanel rendering bug
  * [WICKET-2485] - IComponentResolvers are not supported inside
wicket:enclosure
  * [WICKET-2488] - QuickFix proposal
WicketTesterHelper.assertEquals(final Collection? expects, final
Collection? actuals) should compare list sizes

** Improvement
  * [WICKET-626] - profile Wicket for 1.4.0
  * [WICKET-2435] - TabbedPanel extract factory method for tabs-container
  * [WICKET-2439] - Improve MixedParamUrlCodingStrategy, introduce Hybrid
  * [WICKET-2444] - Internal Spring beans should be ignored
  * [WICKET-2445] - FormInput.java needs the validators updated.
  * [WICKET-2449] - Fix javadoc biggest mistakes - mainly @Deprecated tags
  * [WICKET-2454] - IE8: be more verbose if ajax refresh fails
  * [WICKET-2469] - Allow using a different FileItemFactory by
extracting a method in MultipartServletWebRequest class
  * [WICKET-2492] - Application_pt_BR.properties path

** New Feature
  * [WICKET-2395] - add MixedParamHybridUrlCodingStrategy
  * [WICKET-2483] - Access to WizardModel.conditions

** Wish
  * [WICKET-2120] - widen visibiliy of GuiceProxyTargetLocator  and
findBindingAnnotation
  * [WICKET-2462] - Would it possible add chinese resource label for
WizardButton eg. CancelButton, NextButton and PreviousButton etc.
  * [WICKET-2489] - need to know if a component has been added to
the AjaxRequestTarget

We thank you for your patience and support.

The Wicket Team

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


  

Re: Best way to handle circular references

2009-09-25 Thread Giovanni Cuccu
I have no problem other than i dont like it, but since I don't like it 
I'd like to know if someone else had the same thoughts I had and what 
was the conclusion.

Giovanni


what is the actual problem you are having with this other then i dont like it?

-igor

On Wed, Sep 23, 2009 at 3:21 AM, Giovanni Cuccu
giovanni.cu...@cup2000.it wrote:

Hi all,
   I'm developing a wicket application and I'm facing a problem.
I built a menupanel that shows the menu to access the various aplication
pages; since the panel needs to show the pages it contains a list of links
that when clicked simply do the the following
   setResponsePage(new Page());
In the class menupanel.java I must reference Page
In the class Page.java I must reference MenuPanel
At the end I have a circular reference between manupanel and the various
Page and I don't like it.
While reading wicketInAction I noted that in the examples there is a
circular reference between Checkout page and Index page. Are circular
references unavoidable with Wicket? Is there a best practive to avoid this
situation?
Thanks,
   Giovanni


--
Giovanni Cuccu
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


-
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






--
Giovanni Cuccu
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Best way to handle circular references

2009-09-23 Thread Giovanni Cuccu

Hi all,
I'm developing a wicket application and I'm facing a problem.
I built a menupanel that shows the menu to access the various aplication 
pages; since the panel needs to show the pages it contains a list of 
links that when clicked simply do the the following

setResponsePage(new Page());
In the class menupanel.java I must reference Page
In the class Page.java I must reference MenuPanel
At the end I have a circular reference between manupanel and the various 
Page and I don't like it.
While reading wicketInAction I noted that in the examples there is a 
circular reference between Checkout page and Index page. Are circular 
references unavoidable with Wicket? Is there a best practive to avoid 
this situation?

Thanks,
Giovanni


--
Giovanni Cuccu
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: Best way to handle circular references

2009-09-23 Thread Giovanni Cuccu

Thanks for the response,
I try to clarify my point of view.
Before using wicket I don't remember that my classes were cross 
references, I always paid attention that if class A references Class B 
Class B can't reference Class A (even in imports).
After starting wicket development I've seen several cases of circular 
references in my code. Since these circular references sometimes seem 
natural (Page references MenuPanel and MenuPanel references Page) but at 
the same time I consider the a bad practice I'm asking to myself and 
to this list if someone had the same thoughts and what was the conclusion.

What is your advice?
Should I relax my best practice about class circular referencing? 
Should I code my Wicket app in a different manner?

Thanks,
Giovanni


It looks like you are looking for cohesion.
In the class menupanel.java I must reference Page
In the class Page.java I must reference MenuPanel

menupanel can to be an parameter to PageXXX; PageXXX can to be abstract and
have an abstract method :
abstract protected Page
getPageToSetOnReturnOnCase1Case2And3(PossibleParameter p);

noted that in the examples there is a circular reference between Checkout
page and Index page
on the example the objects has an reference to the other type class. And the
class object do not has an reference those objects. I don't see it as
circular reference.

Are circular references unavoidable with Wicket?
do they are unavoidable in java, in object oriented paradigm? Is this the
correct question?

Is there a best practive to avoid this situation?
When I avoid an circular reference, I make a choice between a several
possible solutions, the on I get depends on the class objectives


On Wed, Sep 23, 2009 at 7:21 AM, Giovanni Cuccu
giovanni.cu...@cup2000.itwrote:


Hi all,
   I'm developing a wicket application and I'm facing a problem.
I built a menupanel that shows the menu to access the various aplication
pages; since the panel needs to show the pages it contains a list of links
that when clicked simply do the the following
   setResponsePage(new Page());
In the class menupanel.java I must reference Page
In the class Page.java I must reference MenuPanel
At the end I have a circular reference between manupanel and the various
Page and I don't like it.
While reading wicketInAction I noted that in the examples there is a
circular reference between Checkout page and Index page. Are circular
references unavoidable with Wicket? Is there a best practive to avoid this
situation?
Thanks,
   Giovanni


--
Giovanni Cuccu
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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







--
Giovanni Cuccu
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



componment hierarchy changed between rendering and form submission

2009-09-23 Thread Giovanni
)
 at 
org.springframework.security.ui.preauth.AbstractPreAuthenticatedProcessingFilter.doFilterHttp(AbstractPreAuthenticatedProcessingFilter.java:69)
 at 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at 
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
 at 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at 
org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
 at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
 at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
 at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) 
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
 at
 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(Unknown Source) at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
 at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
 at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)  
   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at 
weblogic.work.ExecuteThread.run(ExecuteThread.java:173) 
  
Is there anybody who can explain me this error and give me some suggestions, in 
order to avoid it?

Best regards,
giovanni


  

Wicket in Italy

2009-09-23 Thread Giovanni
Hi,

are there any Wicketers living in Turin, Italy?

Best regards,
giovanni

 
Resources are limited, Imagination is unlimited.