Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Johan Compagner
Did you configure tomcat correctly for utf 8?
Search this list for the right settings

On 30/01/2009, Philipp Daumke dau...@averbis.de wrote:
 Hi all,

 when I enter German umlauts (e.g. äöü) in a wicket text field it's
 converted to äöü. Everything seems to be in UTF-8. I already
 tried to apply a filter as described in
 http://wiki.apache.org/tomcat/Tomcat/UTF-8 without success. Any ideas?

 Thanks for your help
 Philipp
 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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



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



Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Philipp Daumke

Hi Jonas,

thanks for your help, but I think it doesn't help. Just to make sure 
that I understood the Application#init correctly, you meant to do it 
like this, right(?):


public class MyApp extends WebApplication {
  
   public void init()

   {
   getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
   getMarkupSettings().setDefaultMarkupEncoding(UTF-8);
   }
  
   public Class getHomePage() {


   return Index.class;
   }
}

Still, it seems to convert my code from latin1 to utf8, even though I 
enter utf8-text.

Thanks for further help
Philipp

Hi,

have you tried setting

getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
getMarkupSettings().setDefaultMarkupEncoding(UTF-8);

in your Application#init

If you don't set the default markup encoding explicitly, the default
for it is the 'os provided encoding' (see:
IMarkupSettings#getDefaultMarkupEncoding)

cheers,
Jonas



On Fri, Jan 30, 2009 at 1:02 AM, Philipp Daumke dau...@averbis.de wrote:
  

Hi Mathias,

'äöü' is actually already converted to 'äöü' when I add a breakpoint at
the onSubmit method of my form (so right when I get the input of the text
field from my model).

My whole eclipse is in UTF-8, Wicket writes UTF-8 to each HTML-Page, my
firefox says UTF-8. What I think is that Wicket or Tomcat treats my
UTF8-String äöü as an ISO-8859-1 String and converts it from iso to utf8, so
into 'äöü'. When I copy 'äöü' into a tmp.txt file in unix-shell which
is in UTF-8 and do an iconv -futf8 -tlatin1 tmp.txt on it, the output is
'äöü' again.

Any idea what to do?
All the best
Philipp


Do you save it to a database and then display the text? How do you present
it?

  

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


-
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

  



--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Johan Compagner
no i mean Tomcat settings not wicket settings

search for tomcat utf uri encoding in google

On Fri, Jan 30, 2009 at 09:11, Philipp Daumke dau...@averbis.de wrote:

 Hi Jonas,

 thanks for your help, but I think it doesn't help. Just to make sure that I
 understood the Application#init correctly, you meant to do it like this,
 right(?):

 public class MyApp extends WebApplication {
 public void init()
   {
   getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
   getMarkupSettings().setDefaultMarkupEncoding(UTF-8);
   }
 public Class getHomePage() {

   return Index.class;
   }
 }

 Still, it seems to convert my code from latin1 to utf8, even though I enter
 utf8-text.
 Thanks for further help
 Philipp

  Hi,

 have you tried setting

 getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
 getMarkupSettings().setDefaultMarkupEncoding(UTF-8);

 in your Application#init

 If you don't set the default markup encoding explicitly, the default
 for it is the 'os provided encoding' (see:
 IMarkupSettings#getDefaultMarkupEncoding)

 cheers,
 Jonas



 On Fri, Jan 30, 2009 at 1:02 AM, Philipp Daumke dau...@averbis.de
 wrote:


 Hi Mathias,

 'äöü' is actually already converted to 'äöü' when I add a breakpoint
 at
 the onSubmit method of my form (so right when I get the input of the text
 field from my model).

 My whole eclipse is in UTF-8, Wicket writes UTF-8 to each HTML-Page, my
 firefox says UTF-8. What I think is that Wicket or Tomcat treats my
 UTF8-String äöü as an ISO-8859-1 String and converts it from iso to utf8,
 so
 into 'äöü'. When I copy 'äöü' into a tmp.txt file in unix-shell
 which
 is in UTF-8 and do an iconv -futf8 -tlatin1 tmp.txt on it, the output
 is
 'äöü' again.

 Any idea what to do?
 All the best
 Philipp


 Do you save it to a database and then display the text? How do you
 present
 it?



 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


 -
 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





 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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




Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Jonas
Hi Philipp,

yes, thats correct. We had similar problems and fixed it that way, but maybe
something else is still not set to UTF-8.
I assume you have configured your tomcat connector using
URIEncoding=UTF-8 (I think that is what Johan is referring to?).

Have you tried adding a meta tag to your markup? Something like
[meta http-equiv=Content-Type content=text/html; charset=UTF-8 /]

cheers,
Jonas

On Fri, Jan 30, 2009 at 9:11 AM, Philipp Daumke dau...@averbis.de wrote:
 Hi Jonas,

 thanks for your help, but I think it doesn't help. Just to make sure that I
 understood the Application#init correctly, you meant to do it like this,
 right(?):

 public class MyApp extends WebApplication {
 public void init()
   {
   getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
   getMarkupSettings().setDefaultMarkupEncoding(UTF-8);
   }
 public Class getHomePage() {

   return Index.class;
   }
 }

 Still, it seems to convert my code from latin1 to utf8, even though I enter
 utf8-text.
 Thanks for further help
 Philipp

 Hi,

 have you tried setting

 getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
 getMarkupSettings().setDefaultMarkupEncoding(UTF-8);

 in your Application#init

 If you don't set the default markup encoding explicitly, the default
 for it is the 'os provided encoding' (see:
 IMarkupSettings#getDefaultMarkupEncoding)

 cheers,
 Jonas



 On Fri, Jan 30, 2009 at 1:02 AM, Philipp Daumke dau...@averbis.de wrote:


 Hi Mathias,

 'äöü' is actually already converted to 'äöü' when I add a breakpoint
 at
 the onSubmit method of my form (so right when I get the input of the text
 field from my model).

 My whole eclipse is in UTF-8, Wicket writes UTF-8 to each HTML-Page, my
 firefox says UTF-8. What I think is that Wicket or Tomcat treats my
 UTF8-String äöü as an ISO-8859-1 String and converts it from iso to utf8,
 so
 into 'äöü'. When I copy 'äöü' into a tmp.txt file in unix-shell
 which
 is in UTF-8 and do an iconv -futf8 -tlatin1 tmp.txt on it, the output
 is
 'äöü' again.

 Any idea what to do?
 All the best
 Philipp


 Do you save it to a database and then display the text? How do you
 present
 it?



 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


 -
 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




 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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



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



Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Philipp Daumke

Hi Jonas, hi Johann,

grrh, I forgot to set URIEncoding=UTF-8. Now it works, thank you for 
your help.


All the best
Philipp



Hi Philipp,

yes, thats correct. We had similar problems and fixed it that way, but maybe
something else is still not set to UTF-8.
I assume you have configured your tomcat connector using
URIEncoding=UTF-8 (I think that is what Johan is referring to?).

Have you tried adding a meta tag to your markup? Something like
[meta http-equiv=Content-Type content=text/html; charset=UTF-8 /]

cheers,
Jonas

On Fri, Jan 30, 2009 at 9:11 AM, Philipp Daumke dau...@averbis.de wrote:
  

Hi Jonas,

thanks for your help, but I think it doesn't help. Just to make sure that I
understood the Application#init correctly, you meant to do it like this,
right(?):

public class MyApp extends WebApplication {
public void init()
  {
  getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
  getMarkupSettings().setDefaultMarkupEncoding(UTF-8);
  }
public Class getHomePage() {

  return Index.class;
  }
}

Still, it seems to convert my code from latin1 to utf8, even though I enter
utf8-text.
Thanks for further help
Philipp


Hi,

have you tried setting

getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
getMarkupSettings().setDefaultMarkupEncoding(UTF-8);

in your Application#init

If you don't set the default markup encoding explicitly, the default
for it is the 'os provided encoding' (see:
IMarkupSettings#getDefaultMarkupEncoding)

cheers,
Jonas



On Fri, Jan 30, 2009 at 1:02 AM, Philipp Daumke dau...@averbis.de wrote:

  

Hi Mathias,

'äöü' is actually already converted to 'äöü' when I add a breakpoint
at
the onSubmit method of my form (so right when I get the input of the text
field from my model).

My whole eclipse is in UTF-8, Wicket writes UTF-8 to each HTML-Page, my
firefox says UTF-8. What I think is that Wicket or Tomcat treats my
UTF8-String äöü as an ISO-8859-1 String and converts it from iso to utf8,
so
into 'äöü'. When I copy 'äöü' into a tmp.txt file in unix-shell
which
is in UTF-8 and do an iconv -futf8 -tlatin1 tmp.txt on it, the output
is
'äöü' again.

Any idea what to do?
All the best
Philipp



Do you save it to a database and then display the text? How do you
present
it?


  

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


-
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


  

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


-
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

  



--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: Ajaxified Notification

2009-01-30 Thread Dipu
take a look at AjaxSelfUpdatingTimerBehavior and AbstractAjaxTimerBehavior

i think this is what you are looking for.

Regards
Dipu

On Fri, Jan 30, 2009 at 6:38 AM, PSkarthic kart...@touchpointindia.com wrote:

 Hi
  I am karthic i am using wicket in project and its going well.

  I have scenerio like this
Client will click a button
and the click event will request something but the requested
 values will be from the other  server(webservices).
   My Question is the value from other server may come anytime from
 1 secs to 1 mins so the thread will listen for the values to arrive . How to
 notify this values to client side is it possible in wicket? The notification
 should be ajax like that is the client page should not be refreshed

 (Like automatic updation to clien when an event occur on server)

 Anybody have any idea
 please guide me

 Thanks
 Karthic
 --
 View this message in context: 
 http://www.nabble.com/Ajaxified-Notification-tp21742197p21742197.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Thomas Singer
We had similar problems and by changing

 Connector port=80/

to

 Connector port=80 URIEncoding=UTF-8/

in the tomcat/conf/server.xml fixed the problem.

Tom


Johan Compagner wrote:
 Did you configure tomcat correctly for utf 8?
 Search this list for the right settings
 
 On 30/01/2009, Philipp Daumke dau...@averbis.de wrote:
 Hi all,

 when I enter German umlauts (e.g. äöü) in a wicket text field it's
 converted to äöü. Everything seems to be in UTF-8. I already
 tried to apply a filter as described in
 http://wiki.apache.org/tomcat/Tomcat/UTF-8 without success. Any ideas?

 Thanks for your help
 Philipp
 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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


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

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



Re: Increasing session size

2009-01-30 Thread Jürgen Lind

Probably I was a bit unclear, I was talking about the serialized session
on disk. Does the should not grow aspect apply there, too?

J.

Igor Vaynberg wrote:

considering wicket only keeps last-accessed page in session your
session shouldnt just keep growing...

-igor

On Thu, Jan 29, 2009 at 11:20 PM, Jürgen Lind juergen.l...@iteratec.de wrote:

One more thing: just as a rule of thumb, what would be a reasonable
amount of data that gets added to the session for a single request?
20k? 100k?

Regards,

J.



Michael Sparer wrote:

I took a cursory glance over your code and saw

 item.add(new Link(update, new Model(auftrag))

this way the auftrag gets into your session, you should say
item.getModel() there instead of new Model(auftrag)

check your code if there is similar stuff in it - spotting those things
might be quite tedious, but you could e.g. temporarily remove the
Serializable from your model-classes and go spotting nonserializable
exceptions until they don't ocurr anymore.
hope that helps a bit - and thanks for beating leverkusen in 2000 ;-)

regards,
Michael

Jürgen Lind-2 wrote:

After some twiddling I found that the PagingNavigator seems to be the
culprit.
If I leave it out, the session grows only moderately, when I put it in,
the
domain objects end up in the session... Anyway here is the code:

public class AuftragUebersicht extends MasterLayout {

  @SpringBean
  private AuftragBA auftragBA;

  public AuftragUebersicht() {
this.initComponents();
  }

  private void initComponents() {

final AuftragDataView auftragDataView = new
AuftragDataView(resultList,
new AuftragDataProvider(AuftragUebersicht.this.auftragBA), 10);

Form form = new Form(searchForm) {

  public Form initComponents() {
final TextField auftragsnummerField = new
TextField(auftragsnummer,
 new
Model());
add(auftragsnummerField);

Button searchButton = new Button(search) {
  public void onSubmit() {
String auftragsnummer =
auftragsnummerField.getModelObjectAsString();

AuftragDataProvider p = (AuftragDataProvider)
 auftragDataView.getDataProvider();
p.setQuery(new AuftragUebersichtQuery(auftragsnummer));

if (auftragDataView.getDataProvider().size() == 0) {
  AuftragUebersicht.this.info(No results found!);
}
  }
};
add(searchButton);

return this;
  }

}.initComponents();

WebMarkupContainer resultListContainer = new
WebMarkupContainer(resultListContainer) {
  public boolean isVisible() {
return auftragDataView.getDataProvider().size()  0;
  }
};

CheckGroup group = new CheckGroup(group, new
ArrayListPartnerAuftrag());

group.add(new CheckGroupSelector(groupselector));

group.add(auftragDataView);

resultListContainer.add(new PagingNavigator(navigator,
auftragDataView));

resultListContainer.add(group);

form.add(resultListContainer);

this.add(form);

  }
}

public class AuftragDataView extends DataView {

  public AuftragDataView(String id, IDataProvider dataProvider, int
itemsPerPage) {
super(id, dataProvider, itemsPerPage);
  }

  @Override
  protected void populateItem(final Item item) {

final PartnerAuftrag auftrag = (PartnerAuftrag)
item.getModelObject();
item.add(new Label(auftragsnummer, auftrag.getAuftragsnummer()));
...

item.add(new Link(update, new Model(auftrag)) {
  public void onClick() {
AuftragBearbeiten page = new AuftragBearbeiten((PartnerAuftrag)
getModelObject());
setResponsePage(page);
  }
});

item.add(new AttributeModifier(class, true, new
AbstractReadOnlyModel() {
  public Object getObject() {
return (item.getIndex() % 2 == 1) ? even : odd;
  }
}));
  }

  @Override
  protected void onDetach() {
super.onDetach();
  }
}

public class AuftragDataProvider implements IDataProvider {

  private AuftragBA  auftragBA;
  private AuftragUebersichtQuery query;

  private CollectionPartnerAuftrag result;

  public AuftragDataProvider(AuftragUebersichtQuery query, AuftragBA
auftragBA) {
this.query = query;
this.auftragBA = auftragBA;
  }

  public AuftragUebersichtQuery getQuery() {
return this.query;
  }

  public void setQuery(AuftragUebersichtQuery query) {
this.query = query;
this.result = null;
  }

  public IteratorPartnerAuftrag iterator(int first, int count) {
if (this.result == null) {
  this.performQuery();
}
return new ArrayListPartnerAuftrag(this.result).subList(first,
first + count).iterator();
  }

  public IModel model(final Object object) {
return new DetachablePartnerAuftragModel((PartnerAuftrag) object,
this.auftragBA);
  }

  public int size() {
if (this.result == null) {
  this.performQuery();
}
return this.result.size();
  }

  public 

Re: Focus on component

2009-01-30 Thread Philipp Daumke

Hi Matthew,

this solution works perfectly well, thanks a lot.

Philipp

You can write a behaviour for it so it will be more reusable.
The following is based on
http://cwiki.apache.org/WICKET/request-focus-on-a-specific-form-component.html
and
works for both regular and ajax requests.

private final class MyLink extends AjaxFallbackLink
  {
  public void onClick(AjaxRequestTarget target)
  {
  onShowForm(target);
  myField.add(new FocusBehavior());
  }
  }

public class FocusBehavior extends AbstractBehavior
{
/**
 *
 */
private static final long serialVersionUID = 1L;

@Override
public void bind(Component component) {
super.bind(component);
component.setOutputMarkupId(true);
final Response response = component.getResponse();
if (response instanceof WebResponse  !((WebResponse)response).isAjax()) {
component.setComponentBorder(new IComponentBorder() {
/**
 *
 */
private static final long serialVersionUID = 1L;
 public void renderBefore(Component component) {
}
 public void renderAfter(Component component) {
final Response response = component.getResponse();
response.write(
script type=\text/javascript\
language=\javascript\document.getElementById(\ +
component.getMarkupId() +
\).focus()/script);
}
});
}
this.component = component;
}
 private Component component;
 @Override
public void renderHead(IHeaderResponse response) {
if (response.getResponse() instanceof WebResponse 
((WebResponse)response.getResponse()).isAjax()) {
response.renderOnLoadJavascript(document.getElementById(' +
component.getMarkupId() + ').focus());
}

}

@Override
public boolean isTemporary() {
return true;
}
}

On Thu, Jan 29, 2009 at 4:07 PM, Philipp Daumke dau...@averbis.de wrote:

  

Hi Michael,

thanks for your help, but it doesn't work yet. My code:

TextField myField = new TextField(text);
myField.setOutputMarkupId(true);
myField.setOutputMarkupPlaceholderTag(true);
add(myField);

  private final class MyLink extends AjaxFallbackLink
  {
  public void onClick(AjaxRequestTarget target)
  {
  onShowForm(target);
  target.appendJavascript(getElementById('+myField.getMarkupId()+
').focus());
  }
  }

Is there something obviously wrong? Correct Javascript syntax and semantic?
Is there an alternative wicket approach so that I don't have to use
Javascript myself?
Thanks for help
Philipp


 use target.(pre|append)Javascript if you want additional JS executed


before/after doing the wicket-ajax stuff

if you only want to set the focus (without any ajax involved), don't use
ajaxlink, use e.g. a simple WebmarkupContainer

hth,
michael


Philipp Daumke-2 wrote:


  

Dear all,

I try to show and focus on a text field when clicking on a link. The
focus however doesn't work. I tried to follow an example in cwiki (
http://cwiki.apache.org/WICKET/calling-javascript-function-on-wicket-components-onclick.html)
but I somehow do something wrong. I tried to add some javascript attribute
via AttributeAppender, but then I get a null pointer exception in onClick
(target is null). When I comment that line out (so don't add the
Attribute), everything works fine except that focus doesn't work.

Any help appreciated.
Thanks a lot
Philipp

Here's my code:

in a WebMarkupContainer:
link.add(new AttributeAppender(onClick, new
Model(getElementById('+textfield.getMarkupId()+ ').onFocus();), ;));

in my custom Link Class:
public void onClick(AjaxRequestTarget target)
   {
   showFormThatContainsTextField(target);
 }

void showFormThatContainsTextField(AjaxRequestTarget target)
   {
   // toggle the visibility
...
   // redraw the add container.
   target.addComponent(this);
   }

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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







-
Michael Sparer
http://techblog.molindo.at


  

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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






  



--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: 

Re: Increasing session size

2009-01-30 Thread Johan Compagner
yes it grows until a max

public DiskPageStore()
{
this((int)Bytes.megabytes(10).bytes(),
(int)Bytes.megabytes(100).bytes(), 50);
}

(10MB for one pagemap and 100MB for a complete session over multiply
pagemaps)

On Fri, Jan 30, 2009 at 09:44, Jürgen Lind juergen.l...@iteratec.de wrote:

 Probably I was a bit unclear, I was talking about the serialized session
 on disk. Does the should not grow aspect apply there, too?

 J.


 Igor Vaynberg wrote:

 considering wicket only keeps last-accessed page in session your
 session shouldnt just keep growing...

 -igor

 On Thu, Jan 29, 2009 at 11:20 PM, Jürgen Lind juergen.l...@iteratec.de
 wrote:

 One more thing: just as a rule of thumb, what would be a reasonable
 amount of data that gets added to the session for a single request?
 20k? 100k?

 Regards,

 J.



 Michael Sparer wrote:

 I took a cursory glance over your code and saw

  item.add(new Link(update, new Model(auftrag))

 this way the auftrag gets into your session, you should say
 item.getModel() there instead of new Model(auftrag)

 check your code if there is similar stuff in it - spotting those things
 might be quite tedious, but you could e.g. temporarily remove the
 Serializable from your model-classes and go spotting nonserializable
 exceptions until they don't ocurr anymore.
 hope that helps a bit - and thanks for beating leverkusen in 2000 ;-)

 regards,
 Michael

 Jürgen Lind-2 wrote:

 After some twiddling I found that the PagingNavigator seems to be the
 culprit.
 If I leave it out, the session grows only moderately, when I put it in,
 the
 domain objects end up in the session... Anyway here is the code:

 public class AuftragUebersicht extends MasterLayout {

  @SpringBean
  private AuftragBA auftragBA;

  public AuftragUebersicht() {
this.initComponents();
  }

  private void initComponents() {

final AuftragDataView auftragDataView = new
 AuftragDataView(resultList,
new AuftragDataProvider(AuftragUebersicht.this.auftragBA), 10);

Form form = new Form(searchForm) {

  public Form initComponents() {
final TextField auftragsnummerField = new
 TextField(auftragsnummer,
 new
 Model());
add(auftragsnummerField);

Button searchButton = new Button(search) {
  public void onSubmit() {
String auftragsnummer =
 auftragsnummerField.getModelObjectAsString();

AuftragDataProvider p = (AuftragDataProvider)
 auftragDataView.getDataProvider();
p.setQuery(new AuftragUebersichtQuery(auftragsnummer));

if (auftragDataView.getDataProvider().size() == 0) {
  AuftragUebersicht.this.info(No results found!);
}
  }
};
add(searchButton);

return this;
  }

}.initComponents();

WebMarkupContainer resultListContainer = new
 WebMarkupContainer(resultListContainer) {
  public boolean isVisible() {
return auftragDataView.getDataProvider().size()  0;
  }
};

CheckGroup group = new CheckGroup(group, new
 ArrayListPartnerAuftrag());

group.add(new CheckGroupSelector(groupselector));

group.add(auftragDataView);

resultListContainer.add(new PagingNavigator(navigator,
 auftragDataView));

resultListContainer.add(group);

form.add(resultListContainer);

this.add(form);

  }
 }

 public class AuftragDataView extends DataView {

  public AuftragDataView(String id, IDataProvider dataProvider, int
 itemsPerPage) {
super(id, dataProvider, itemsPerPage);
  }

  @Override
  protected void populateItem(final Item item) {

final PartnerAuftrag auftrag = (PartnerAuftrag)
 item.getModelObject();
item.add(new Label(auftragsnummer, auftrag.getAuftragsnummer()));
...

item.add(new Link(update, new Model(auftrag)) {
  public void onClick() {
AuftragBearbeiten page = new AuftragBearbeiten((PartnerAuftrag)
 getModelObject());
setResponsePage(page);
  }
});

item.add(new AttributeModifier(class, true, new
 AbstractReadOnlyModel() {
  public Object getObject() {
return (item.getIndex() % 2 == 1) ? even : odd;
  }
}));
  }

  @Override
  protected void onDetach() {
super.onDetach();
  }
 }

 public class AuftragDataProvider implements IDataProvider {

  private AuftragBA  auftragBA;
  private AuftragUebersichtQuery query;

  private CollectionPartnerAuftrag result;

  public AuftragDataProvider(AuftragUebersichtQuery query, AuftragBA
 auftragBA) {
this.query = query;
this.auftragBA = auftragBA;
  }

  public AuftragUebersichtQuery getQuery() {
return this.query;
  }

  public void setQuery(AuftragUebersichtQuery query) {
this.query = query;
this.result = null;
  }

  public IteratorPartnerAuftrag iterator(int first, int count) {
if (this.result == null) {
  this.performQuery();
}
return 

Re: Increasing session size

2009-01-30 Thread Jürgen Lind

Thank you for pointing me to the means to tune the DiskPagestore size.
The only question that remains is whether it is normal that it keeps growing
and by what extend.

J.


Johan Compagner wrote:

yes it grows until a max

public DiskPageStore()
{
this((int)Bytes.megabytes(10).bytes(),
(int)Bytes.megabytes(100).bytes(), 50);
}

(10MB for one pagemap and 100MB for a complete session over multiply
pagemaps)

On Fri, Jan 30, 2009 at 09:44, Jürgen Lind juergen.l...@iteratec.de wrote:


Probably I was a bit unclear, I was talking about the serialized session
on disk. Does the should not grow aspect apply there, too?

J.


Igor Vaynberg wrote:


considering wicket only keeps last-accessed page in session your
session shouldnt just keep growing...

-igor

On Thu, Jan 29, 2009 at 11:20 PM, Jürgen Lind juergen.l...@iteratec.de
wrote:


One more thing: just as a rule of thumb, what would be a reasonable
amount of data that gets added to the session for a single request?
20k? 100k?

Regards,

J.



Michael Sparer wrote:


I took a cursory glance over your code and saw

 item.add(new Link(update, new Model(auftrag))

this way the auftrag gets into your session, you should say
item.getModel() there instead of new Model(auftrag)

check your code if there is similar stuff in it - spotting those things
might be quite tedious, but you could e.g. temporarily remove the
Serializable from your model-classes and go spotting nonserializable
exceptions until they don't ocurr anymore.
hope that helps a bit - and thanks for beating leverkusen in 2000 ;-)

regards,
Michael

Jürgen Lind-2 wrote:


After some twiddling I found that the PagingNavigator seems to be the
culprit.
If I leave it out, the session grows only moderately, when I put it in,
the
domain objects end up in the session... Anyway here is the code:

public class AuftragUebersicht extends MasterLayout {

 @SpringBean
 private AuftragBA auftragBA;

 public AuftragUebersicht() {
   this.initComponents();
 }

 private void initComponents() {

   final AuftragDataView auftragDataView = new
AuftragDataView(resultList,
   new AuftragDataProvider(AuftragUebersicht.this.auftragBA), 10);

   Form form = new Form(searchForm) {

 public Form initComponents() {
   final TextField auftragsnummerField = new
TextField(auftragsnummer,
new
Model());
   add(auftragsnummerField);

   Button searchButton = new Button(search) {
 public void onSubmit() {
   String auftragsnummer =
auftragsnummerField.getModelObjectAsString();

   AuftragDataProvider p = (AuftragDataProvider)
auftragDataView.getDataProvider();
   p.setQuery(new AuftragUebersichtQuery(auftragsnummer));

   if (auftragDataView.getDataProvider().size() == 0) {
 AuftragUebersicht.this.info(No results found!);
   }
 }
   };
   add(searchButton);

   return this;
 }

   }.initComponents();

   WebMarkupContainer resultListContainer = new
WebMarkupContainer(resultListContainer) {
 public boolean isVisible() {
   return auftragDataView.getDataProvider().size()  0;
 }
   };

   CheckGroup group = new CheckGroup(group, new
ArrayListPartnerAuftrag());

   group.add(new CheckGroupSelector(groupselector));

   group.add(auftragDataView);

   resultListContainer.add(new PagingNavigator(navigator,
auftragDataView));

   resultListContainer.add(group);

   form.add(resultListContainer);

   this.add(form);

 }
}

public class AuftragDataView extends DataView {

 public AuftragDataView(String id, IDataProvider dataProvider, int
itemsPerPage) {
   super(id, dataProvider, itemsPerPage);
 }

 @Override
 protected void populateItem(final Item item) {

   final PartnerAuftrag auftrag = (PartnerAuftrag)
item.getModelObject();
   item.add(new Label(auftragsnummer, auftrag.getAuftragsnummer()));
   ...

   item.add(new Link(update, new Model(auftrag)) {
 public void onClick() {
   AuftragBearbeiten page = new AuftragBearbeiten((PartnerAuftrag)
getModelObject());
   setResponsePage(page);
 }
   });

   item.add(new AttributeModifier(class, true, new
AbstractReadOnlyModel() {
 public Object getObject() {
   return (item.getIndex() % 2 == 1) ? even : odd;
 }
   }));
 }

 @Override
 protected void onDetach() {
   super.onDetach();
 }
}

public class AuftragDataProvider implements IDataProvider {

 private AuftragBA  auftragBA;
 private AuftragUebersichtQuery query;

 private CollectionPartnerAuftrag result;

 public AuftragDataProvider(AuftragUebersichtQuery query, AuftragBA
auftragBA) {
   this.query = query;
   this.auftragBA = auftragBA;
 }

 public AuftragUebersichtQuery getQuery() {
   return this.query;
 }

 public void setQuery(AuftragUebersichtQuery query) {
   this.query = query;
   this.result = null;
 }

 public IteratorPartnerAuftrag iterator(int first, int count) {
  

Unable to find resource: global.application.title for component

2009-01-30 Thread Edwin Ansicodd

Had a runtime exception when accessing the URL of a deployed
org.apache.wicket.protocol.http.WebApplication

The error occurred while rendering the home page.  It says it couldn't find
resource: global.application.title

Any ideas what I might be doing wrong?

Complete error message follows:

10:00:04,687 ERROR [RequestCycle] Exception in rendering component:
[Component id = header.title, page = com.test.search.Search, path =
0:header.title.Label, isVisible = true, isVersioned = false]
org.apache.wicket.WicketRuntimeException: Exception in rendering component:
[Component id = header.title, page = com.test.search.Search, path =
0:header.title.Label, isVisible = true, isVersioned = false]
at org.apache.wicket.Component.renderComponent(Component.java:2457)
at
org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:60)
at org.apache.wicket.Component.render(Component.java:2256)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1344)
at
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:133)
at org.apache.wicket.Component.renderComponent(Component.java:2419)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354)
at org.apache.wicket.Component.render(Component.java:2256)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:222)
at
org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1267)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1370)
at org.apache.wicket.Page.onRender(Page.java:1442)
at org.apache.wicket.Component.render(Component.java:2256)
at org.apache.wicket.Page.renderPage(Page.java:891)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1100)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.MissingResourceException: Unable to find resource:
global.application.title for component:  [class=com.test.search.Search]
at org.apache.wicket.Localizer.getString(Localizer.java:262)
at
org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:343)
at
org.apache.wicket.model.StringResourceModel.load(StringResourceModel.java:469)
at
org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:114)
at org.apache.wicket.Component.getModelObject(Component.java:1510)
at 
org.apache.wicket.Component.getModelObjectAsString(Component.java:1532)
at

Re: Increasing session size

2009-01-30 Thread Johan Compagner
yes until the default 10MB i already said that.

On Fri, Jan 30, 2009 at 09:58, Jürgen Lind juergen.l...@iteratec.de wrote:

 Thank you for pointing me to the means to tune the DiskPagestore size.
 The only question that remains is whether it is normal that it keeps
 growing
 and by what extend.

 J.



 Johan Compagner wrote:

 yes it grows until a max

 public DiskPageStore()
{
this((int)Bytes.megabytes(10).bytes(),
 (int)Bytes.megabytes(100).bytes(), 50);
}

 (10MB for one pagemap and 100MB for a complete session over multiply
 pagemaps)

 On Fri, Jan 30, 2009 at 09:44, Jürgen Lind juergen.l...@iteratec.de
 wrote:

  Probably I was a bit unclear, I was talking about the serialized session
 on disk. Does the should not grow aspect apply there, too?

 J.


 Igor Vaynberg wrote:

  considering wicket only keeps last-accessed page in session your
 session shouldnt just keep growing...

 -igor

 On Thu, Jan 29, 2009 at 11:20 PM, Jürgen Lind juergen.l...@iteratec.de
 
 wrote:

  One more thing: just as a rule of thumb, what would be a reasonable
 amount of data that gets added to the session for a single request?
 20k? 100k?

 Regards,

 J.



 Michael Sparer wrote:

  I took a cursory glance over your code and saw

  item.add(new Link(update, new Model(auftrag))

 this way the auftrag gets into your session, you should say
 item.getModel() there instead of new Model(auftrag)

 check your code if there is similar stuff in it - spotting those
 things
 might be quite tedious, but you could e.g. temporarily remove the
 Serializable from your model-classes and go spotting nonserializable
 exceptions until they don't ocurr anymore.
 hope that helps a bit - and thanks for beating leverkusen in 2000 ;-)

 regards,
 Michael

 Jürgen Lind-2 wrote:

  After some twiddling I found that the PagingNavigator seems to be the
 culprit.
 If I leave it out, the session grows only moderately, when I put it
 in,
 the
 domain objects end up in the session... Anyway here is the code:

 public class AuftragUebersicht extends MasterLayout {

  @SpringBean
  private AuftragBA auftragBA;

  public AuftragUebersicht() {
   this.initComponents();
  }

  private void initComponents() {

   final AuftragDataView auftragDataView = new
 AuftragDataView(resultList,
   new AuftragDataProvider(AuftragUebersicht.this.auftragBA), 10);

   Form form = new Form(searchForm) {

 public Form initComponents() {
   final TextField auftragsnummerField = new
 TextField(auftragsnummer,
new
 Model());
   add(auftragsnummerField);

   Button searchButton = new Button(search) {
 public void onSubmit() {
   String auftragsnummer =
 auftragsnummerField.getModelObjectAsString();

   AuftragDataProvider p = (AuftragDataProvider)
auftragDataView.getDataProvider();
   p.setQuery(new AuftragUebersichtQuery(auftragsnummer));

   if (auftragDataView.getDataProvider().size() == 0) {
 AuftragUebersicht.this.info(No results found!);
   }
 }
   };
   add(searchButton);

   return this;
 }

   }.initComponents();

   WebMarkupContainer resultListContainer = new
 WebMarkupContainer(resultListContainer) {
 public boolean isVisible() {
   return auftragDataView.getDataProvider().size()  0;
 }
   };

   CheckGroup group = new CheckGroup(group, new
 ArrayListPartnerAuftrag());

   group.add(new CheckGroupSelector(groupselector));

   group.add(auftragDataView);

   resultListContainer.add(new PagingNavigator(navigator,
 auftragDataView));

   resultListContainer.add(group);

   form.add(resultListContainer);

   this.add(form);

  }
 }

 public class AuftragDataView extends DataView {

  public AuftragDataView(String id, IDataProvider dataProvider, int
 itemsPerPage) {
   super(id, dataProvider, itemsPerPage);
  }

  @Override
  protected void populateItem(final Item item) {

   final PartnerAuftrag auftrag = (PartnerAuftrag)
 item.getModelObject();
   item.add(new Label(auftragsnummer, auftrag.getAuftragsnummer()));
   ...

   item.add(new Link(update, new Model(auftrag)) {
 public void onClick() {
   AuftragBearbeiten page = new AuftragBearbeiten((PartnerAuftrag)
 getModelObject());
   setResponsePage(page);
 }
   });

   item.add(new AttributeModifier(class, true, new
 AbstractReadOnlyModel() {
 public Object getObject() {
   return (item.getIndex() % 2 == 1) ? even : odd;
 }
   }));
  }

  @Override
  protected void onDetach() {
   super.onDetach();
  }
 }

 public class AuftragDataProvider implements IDataProvider {

  private AuftragBA  auftragBA;
  private AuftragUebersichtQuery query;

  private CollectionPartnerAuftrag result;

  public AuftragDataProvider(AuftragUebersichtQuery query, AuftragBA
 auftragBA) {
   this.query = query;
   this.auftragBA = auftragBA;
  }

  public 

Re: Increasing session size

2009-01-30 Thread Jürgen Lind

Thank you for clarifying. The reason for for me asking these questions
is that it will be asked the very same questions once I recommend using
Wicket for the re-implementation of an existing application. I just want
to make sure that I have the correct answers :-)

J.

Johan Compagner wrote:

yes until the default 10MB i already said that.

On Fri, Jan 30, 2009 at 09:58, Jürgen Lind juergen.l...@iteratec.de wrote:


Thank you for pointing me to the means to tune the DiskPagestore size.
The only question that remains is whether it is normal that it keeps
growing
and by what extend.

J.



Johan Compagner wrote:


yes it grows until a max

public DiskPageStore()
   {
   this((int)Bytes.megabytes(10).bytes(),
(int)Bytes.megabytes(100).bytes(), 50);
   }

(10MB for one pagemap and 100MB for a complete session over multiply
pagemaps)

On Fri, Jan 30, 2009 at 09:44, Jürgen Lind juergen.l...@iteratec.de
wrote:

 Probably I was a bit unclear, I was talking about the serialized session

on disk. Does the should not grow aspect apply there, too?

J.


Igor Vaynberg wrote:

 considering wicket only keeps last-accessed page in session your

session shouldnt just keep growing...

-igor

On Thu, Jan 29, 2009 at 11:20 PM, Jürgen Lind juergen.l...@iteratec.de
wrote:

 One more thing: just as a rule of thumb, what would be a reasonable

amount of data that gets added to the session for a single request?
20k? 100k?

Regards,

J.



Michael Sparer wrote:

 I took a cursory glance over your code and saw

 item.add(new Link(update, new Model(auftrag))

this way the auftrag gets into your session, you should say
item.getModel() there instead of new Model(auftrag)

check your code if there is similar stuff in it - spotting those
things
might be quite tedious, but you could e.g. temporarily remove the
Serializable from your model-classes and go spotting nonserializable
exceptions until they don't ocurr anymore.
hope that helps a bit - and thanks for beating leverkusen in 2000 ;-)

regards,
Michael

Jürgen Lind-2 wrote:

 After some twiddling I found that the PagingNavigator seems to be the

culprit.
If I leave it out, the session grows only moderately, when I put it
in,
the
domain objects end up in the session... Anyway here is the code:

public class AuftragUebersicht extends MasterLayout {

 @SpringBean
 private AuftragBA auftragBA;

 public AuftragUebersicht() {
  this.initComponents();
 }

 private void initComponents() {

  final AuftragDataView auftragDataView = new
AuftragDataView(resultList,
  new AuftragDataProvider(AuftragUebersicht.this.auftragBA), 10);

  Form form = new Form(searchForm) {

public Form initComponents() {
  final TextField auftragsnummerField = new
TextField(auftragsnummer,
   new
Model());
  add(auftragsnummerField);

  Button searchButton = new Button(search) {
public void onSubmit() {
  String auftragsnummer =
auftragsnummerField.getModelObjectAsString();

  AuftragDataProvider p = (AuftragDataProvider)
   auftragDataView.getDataProvider();
  p.setQuery(new AuftragUebersichtQuery(auftragsnummer));

  if (auftragDataView.getDataProvider().size() == 0) {
AuftragUebersicht.this.info(No results found!);
  }
}
  };
  add(searchButton);

  return this;
}

  }.initComponents();

  WebMarkupContainer resultListContainer = new
WebMarkupContainer(resultListContainer) {
public boolean isVisible() {
  return auftragDataView.getDataProvider().size()  0;
}
  };

  CheckGroup group = new CheckGroup(group, new
ArrayListPartnerAuftrag());

  group.add(new CheckGroupSelector(groupselector));

  group.add(auftragDataView);

  resultListContainer.add(new PagingNavigator(navigator,
auftragDataView));

  resultListContainer.add(group);

  form.add(resultListContainer);

  this.add(form);

 }
}

public class AuftragDataView extends DataView {

 public AuftragDataView(String id, IDataProvider dataProvider, int
itemsPerPage) {
  super(id, dataProvider, itemsPerPage);
 }

 @Override
 protected void populateItem(final Item item) {

  final PartnerAuftrag auftrag = (PartnerAuftrag)
item.getModelObject();
  item.add(new Label(auftragsnummer, auftrag.getAuftragsnummer()));
  ...

  item.add(new Link(update, new Model(auftrag)) {
public void onClick() {
  AuftragBearbeiten page = new AuftragBearbeiten((PartnerAuftrag)
getModelObject());
  setResponsePage(page);
}
  });

  item.add(new AttributeModifier(class, true, new
AbstractReadOnlyModel() {
public Object getObject() {
  return (item.getIndex() % 2 == 1) ? even : odd;
}
  }));
 }

 @Override
 protected void onDetach() {
  super.onDetach();
 }
}

public class AuftragDataProvider implements IDataProvider {

 private AuftragBA  auftragBA;
 private AuftragUebersichtQuery query;

 private CollectionPartnerAuftrag result;

 

Re: Unable to find resource: global.application.title for component

2009-01-30 Thread Edwin Ansicodd

I found the reference to global.application.title.  It comes from within the
page:

add( new Label(header.title, new
StringResourceModel(global.application.title, this, null ) ) );

I just don't know where its being set.


-- 
View this message in context: 
http://www.nabble.com/Unable-to-find-resource%3A-global.application.title-for-component-tp21743684p21743848.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Ajaxified Notification

2009-01-30 Thread PSkarthic

Thank you for your reply.
  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify the
client on particular situation.
That is many browser(many client logged in) may opened and accessing the
wicket application, at some when event occurs for particular client time the
server has send the details to particular client browser can this be done.


Thanks in advance
Karthic
-- 
View this message in context: 
http://www.nabble.com/Ajaxified-Notification-tp21742197p21744321.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Ajaxified Notification

2009-01-30 Thread Ernesto Reinaldo Barreiro
Hi,

On Fri, Jan 30, 2009 at 11:04 AM, PSkarthic kart...@touchpointindia.comwrote:


 Thank you for your reply.
  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify the
 client on particular situation.


With AJAX timer behavior is the client that periodically makes a round trip
to the server to ask for something. What you want is a (comet/reverse
AJAX) like thing. I have been using DWR (see 1 bellow) for such things but I
think there is also support for dojo cometd (see 2) on dojo wicket stuff
project.

References
1-http://directwebremoting.org/
2-http://cometdproject.dojotoolkit.org/


Best,

Ernesto


 That is many browser(many client logged in) may opened and accessing the
 wicket application, at some when event occurs for particular client time
 the
 server has send the details to particular client browser can this be done.


 Thanks in advance
 Karthic
 --
 View this message in context:
 http://www.nabble.com/Ajaxified-Notification-tp21742197p21744321.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Ajaxified Notification

2009-01-30 Thread Dipu
On Fri, Jan 30, 2009 at 10:04 AM, PSkarthic kart...@touchpointindia.com wrote:

 Thank you for your reply.
  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify the
 client on particular situation.
 That is many browser(many client logged in) may opened and accessing the
 wicket application, at some when event occurs for particular client time the
 server has send the details to particular client browser can this be done.

that's how things normally work isn't it ?

Button button = new Button(button)
{
public void onSubmit()
{
 call  webservice   
 setResponsePage( new ResutPage());
}
};

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



Re: OpenLayer with google WMS

2009-01-30 Thread Nino Martinez

Hi Wadi

Check the examples, AFAIR it's a matter of css styling..

Wadi Jalil Maluf wrote:

Thanks!One more thing, by default the map is too big, how do I set the
size?thanks again,
Regards,
Wadi

-Mensaje original-
De: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Enviado el: jueves, 29 de enero de 2009 16:30

Para: users@wicket.apache.org
Asunto: Re: OpenLayer with google WMS

Hi Wadi

just use the old one theres a version for 1.3 branch aswell..

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicke
t-1.3.x/wicket-contrib-openlayers/

But the pick are yours to decide..


2009/1/29 Wadi Jalil Maluf wad...@yahoo.com.ar

  

Thanks Jeremy, but it uses wicket 1,4 and I'm using 1.3.4, anyway I'm
getting
java.lang.ClassNotFoundException:
com.vividsolutions.jts.geom.GeometryFactory
exeptions so I'll just use GMAP integration instead,
thanks!

-Mensaje original-
De: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Enviado el: jueves, 29 de enero de 2009 15:42
Para: users@wicket.apache.org
Asunto: Re: OpenLayer with google WMS

There's an openlayer integration in wicketstuff (
http://wicketstuff.org/maven/repository/org/wicketstuff/) with examples.
I've never used it.  I believe it's a work of Nino.  I've looked at the
examples, though.

On Thu, Jan 29, 2009 at 11:19 AM, Wadi Jalil Maluf
wad...@yahoo.com.arwrote:



Hi All!Does anyone knows how to use openlayer map control with google
  

map
  

like this example http://openlayers.org/dev/examples/google.html in
wicket?

Thanks!


  

--
Jeremy Thomerson
http://www.wickettraining.com



__ Information from ESET NOD32 Antivirus, version of virus
signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__ Information from ESET NOD32 Antivirus, version of virus
signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



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







__ Information from ESET NOD32 Antivirus, version of virus signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

 


__ Information from ESET NOD32 Antivirus, version of virus signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 



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

  



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



Re: Unable to find resource: global.application.title for component

2009-01-30 Thread Michael Sparer

global.application.title should be in a .properties file. Either along your
page e.g. HomePage.properties or in YourApplication.properties - or in any
other component down the hierarchy

hth,
michael


Edwin Ansicodd wrote:
 
 Had a runtime exception when accessing the URL of a deployed
 org.apache.wicket.protocol.http.WebApplication
 
 The error occurred while rendering the home page.  It says it couldn't
 find resource: global.application.title
 
 Any ideas what I might be doing wrong?
 
 Complete error message follows:
 
 10:00:04,687 ERROR [RequestCycle] Exception in rendering component:
 [Component id = header.title, page = com.test.search.Search, path =
 0:header.title.Label, isVisible = true, isVersioned = false]
 org.apache.wicket.WicketRuntimeException: Exception in rendering
 component: [Component id = header.title, page = com.test.search.Search,
 path = 0:header.title.Label, isVisible = true, isVersioned = false]
   at org.apache.wicket.Component.renderComponent(Component.java:2457)
   at
 org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:60)
   at org.apache.wicket.Component.render(Component.java:2256)
   at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240)
   at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407)
   at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1344)
   at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:133)
   at org.apache.wicket.Component.renderComponent(Component.java:2419)
   at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354)
   at org.apache.wicket.Component.render(Component.java:2256)
   at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:222)
   at
 org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78)
   at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1267)
   at 
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1370)
   at org.apache.wicket.Page.onRender(Page.java:1442)
   at org.apache.wicket.Component.render(Component.java:2256)
   at org.apache.wicket.Page.renderPage(Page.java:891)
   at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231)
   at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
   at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1100)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
   at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
   at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
 org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
   at
 org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
   at
 org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
   at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Unknown Source)
 Caused by: java.util.MissingResourceException: Unable to find resource:
 global.application.title for component:  [class=com.test.search.Search]
   at org.apache.wicket.Localizer.getString(Localizer.java:262)
   at
 org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:343)
   at
 org.apache.wicket.model.StringResourceModel.load(StringResourceModel.java:469)
   at
 

Re: Ajaxified Notification

2009-01-30 Thread Michael Sparer

just wanted to add some starting points on cometd with wicket, as it isn't
that easy to find:

- how to get including sample app:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1
- matt raible on cometd:
http://raibledesigns.com/rd/entry/dojo_comet_support_in_java
- suggestion of providing in-depth examples for a small donation:
http://techblog.molindo.at/2009/01/talk-on-tech-now-molindo-techblog.html

(yes the last one was a bit of self-promotion, hope you don't mind ;-))

regards,
Michael


reiern70 wrote:
 
 Hi,
 
 On Fri, Jan 30, 2009 at 11:04 AM, PSkarthic
 kart...@touchpointindia.comwrote:
 

 Thank you for your reply.
  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify
 the
 client on particular situation.
 
 
 With AJAX timer behavior is the client that periodically makes a round
 trip
 to the server to ask for something. What you want is a (comet/reverse
 AJAX) like thing. I have been using DWR (see 1 bellow) for such things but
 I
 think there is also support for dojo cometd (see 2) on dojo wicket stuff
 project.
 
 References
 1-http://directwebremoting.org/
 2-http://cometdproject.dojotoolkit.org/
 
 
 Best,
 
 Ernesto
 
 
 That is many browser(many client logged in) may opened and accessing the
 wicket application, at some when event occurs for particular client time
 the
 server has send the details to particular client browser can this be
 done.


 Thanks in advance
 Karthic
 --
 View this message in context:
 http://www.nabble.com/Ajaxified-Notification-tp21742197p21744321.html
 Sent from the Wicket - User 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


 
 


-
Michael Sparer
http://techblog.molindo.at
-- 
View this message in context: 
http://www.nabble.com/Ajaxified-Notification-tp21742197p21745293.html
Sent from the Wicket - User 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



Feedback Panel

2009-01-30 Thread Daniel Ferreira Castro
Hi,

I am looking around internet but I still haven´t found what I am looking
for - (Bono, do not sue me)

I would like to customize a Feedback Panel in a way that error messages are
displayed as Red, info as Green and Warn as Yellow (I will need to change
the background of this panel to make it confortable for the eyes also)  and,
if possible, when a success message is printed an check icon displays by its
side (This is probably using border, but I am not sure).

How to do this?

-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: Problems running wicket application on Jetty - Help please.

2009-01-30 Thread Daniel Ferreira Castro
Yes, I did´t and now it iss working when I run the Start Application that is
created with the wicket quickstart.

Thanks a lot :)

On Thu, Jan 29, 2009 at 3:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 you have to declare those dependencies in the pom of your project. mvn
 jetty:run does not see what you have exported in eclipse - that is an
 eclipse specific feature.

 -igor

 On Thu, Jan 29, 2009 at 4:30 AM, Daniel Ferreira Castro
 dfcas...@gmail.com wrote:
  I know that this can be a little gray zone problem, but let me ask
 anyway.
 
  I went to the quickstart, http://wicket.apache.org/quickstart.html, e
  executed the command bellow
 
  1)
  mvn archetype:create -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
 -DarchetypeVersion=1.3.5
  -DgroupId=com.mycompany -DartifactId=myproject
 
  I changed the groupId and artifactId to fit my package and project names.
 
  After that, inside the project folder I run the command bellow.
 
  2)
  mvn eclipse:eclipse -DdownloadSources=true
 
  I imported the project to eclipse workspace.
  After that I run mvn jetty::run to start the Jetty and test my Wicket
  project.
  But I recieved this error.
 
  2009-01-29 09:39:42.578::WARN:  Error for /ecommFwkBackOffice/
  java.lang.NoClassDefFoundError: org/hibernate/Session
 
  Yes, the problem is that Jetty can not load the Session Hibernate class.
  But this is related due the way that my project, in fact projects, are
  organized.
 
  I organized the artifacts like that.
  I have a data access project that is called dataAccess.
  This projects have all the DTOs and DAOs to access the database.  It uses
  Hibernate persistence and Maven as dependency manager.
  The project export its classes and Maven Dependencies, configured by
 eclipse
  on project build tab.
 
  I have a second project called backOffice that have the dataAccess
 project
  as dependency.
  The wicket pages of this project consumes resources from dataAccess
 project
  and thoses resources are hibernate dependents.
 
  And in future I will have a third project, also a wicket project, that is
  the fron end to end user.
  That is why I choose to split the solution on three different projects.
 
  The problem is that I run the backOffice using mvn jetty:run and when I
  access it the exception occurs.
  So for some reason the classes are not beeing correctly deployed on
 Jetty.
 
  Does anyone have faced a problem like that and knows how to solve it?
 
  --
  Two rules to succeed in life:
  1 - don´t tell people everything you know.
  
  We shall go on to the end.
  We shall fight in France
  We shall fightover the seas and oceans.
  We shall fight with growing confidence and growing strength in the air.
  We shall defend our island whatever the cost may be
  We shall fight on beaches, we shall fight on the landing grounds,
  We shall fight in the fields and in the streets,
  We shall fight on the hills.
  We shall never surrender.
  Winston Churchill
 

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




-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: Feedback Panel

2009-01-30 Thread Erik van Oosten
The HTML that is rendered by FeedBackPanel provides enough styling that 
you can do this with CSS.


Regards,
   Erik.


Daniel Ferreira Castro wrote:

Hi,

I am looking around internet but I still haven´t found what I am looking
for - (Bono, do not sue me)

I would like to customize a Feedback Panel in a way that error messages are
displayed as Red, info as Green and Warn as Yellow (I will need to change
the background of this panel to make it confortable for the eyes also)  and,
if possible, when a success message is printed an check icon displays by its
side (This is probably using border, but I am not sure).

How to do this?

  


--
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



Re: Feedback Panel

2009-01-30 Thread francisco treacy
for example, in your css:

ul .feedbackul {
list-style-type: none;
font-size: 0.7em;
border-top: 1px dashed #BCBAAC;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

li .feedbackPanelERROR {
color: red;
font-size: 1em;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

francisco

On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 The HTML that is rendered by FeedBackPanel provides enough styling that you
 can do this with CSS.

 Regards,
   Erik.


 Daniel Ferreira Castro wrote:

 Hi,

 I am looking around internet but I still haven´t found what I am looking
 for - (Bono, do not sue me)

 I would like to customize a Feedback Panel in a way that error messages
 are
 displayed as Red, info as Green and Warn as Yellow (I will need to change
 the background of this panel to make it confortable for the eyes also)
  and,
 if possible, when a success message is printed an check icon displays by
 its
 side (This is probably using border, but I am not sure).

 How to do this?



 --
 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



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



Re: Feedback Panel

2009-01-30 Thread Daniel Ferreira Castro
And if I don´t wanna a unumbered list to be as the presentation of the
errors and messages?  How to do this?

On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
francisco.tre...@gmail.com wrote:

 for example, in your css:

 ul .feedbackul {
list-style-type: none;
font-size: 0.7em;
border-top: 1px dashed #BCBAAC;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

 li .feedbackPanelERROR {
color: red;
font-size: 1em;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

 francisco

 On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl
 wrote:
  The HTML that is rendered by FeedBackPanel provides enough styling that
 you
  can do this with CSS.
 
  Regards,
Erik.
 
 
  Daniel Ferreira Castro wrote:
 
  Hi,
 
  I am looking around internet but I still haven´t found what I am
 looking
  for - (Bono, do not sue me)
 
  I would like to customize a Feedback Panel in a way that error messages
  are
  displayed as Red, info as Green and Warn as Yellow (I will need to
 change
  the background of this panel to make it confortable for the eyes also)
   and,
  if possible, when a success message is printed an check icon displays by
  its
  side (This is probably using border, but I am not sure).
 
  How to do this?
 
 
 
  --
  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
 
 

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




-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: Feedback Panel

2009-01-30 Thread Erik van Oosten

Again, change it with css.

Erik.

Daniel Ferreira Castro wrote:

And if I don´t wanna a unumbered list to be as the presentation of the
errors and messages?  How to do this?

On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
francisco.tre...@gmail.com wrote:

  

for example, in your css:

ul .feedbackul {
   list-style-type: none;
   font-size: 0.7em;
   border-top: 1px dashed #BCBAAC;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

li .feedbackPanelERROR {
   color: red;
   font-size: 1em;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

francisco

On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl
wrote:


The HTML that is rendered by FeedBackPanel provides enough styling that
  

you


can do this with CSS.

Regards,
  Erik.


Daniel Ferreira Castro wrote:
  

Hi,

I am looking around internet but I still haven´t found what I am


looking


for - (Bono, do not sue me)

I would like to customize a Feedback Panel in a way that error messages
are
displayed as Red, info as Green and Warn as Yellow (I will need to


change


the background of this panel to make it confortable for the eyes also)
 and,
if possible, when a success message is printed an check icon displays by
its
side (This is probably using border, but I am not sure).

How to do this?




--
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


  

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






  


--

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



Re: Feedback Panel

2009-01-30 Thread Erik van Oosten
Well, I am assuming you want either a numbered list, or no bullets at 
all. If you want something else, you are on your own (copy paste 
FeedbackPanel and tweak the copy).


Look at the Wicket examples to see some CSS customization.

Regards,
   Erik.


Erik van Oosten wrote:

Again, change it with css.

Erik.

Daniel Ferreira Castro wrote:

And if I don´t wanna a unumbered list to be as the presentation of the
errors and messages?  How to do this?

On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
francisco.tre...@gmail.com wrote:

 

for example, in your css:

ul .feedbackul {
   list-style-type: none;
   font-size: 0.7em;
   border-top: 1px dashed #BCBAAC;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

li .feedbackPanelERROR {
   color: red;
   font-size: 1em;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

francisco

On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl
wrote:
   
The HTML that is rendered by FeedBackPanel provides enough styling 
that
  

you
   

can do this with CSS.

Regards,
  Erik.


Daniel Ferreira Castro wrote:
 

Hi,

I am looking around internet but I still haven´t found what I am


looking
   

for - (Bono, do not sue me)

I would like to customize a Feedback Panel in a way that error 
messages

are
displayed as Red, info as Green and Warn as Yellow (I will need to


change
   
the background of this panel to make it confortable for the eyes 
also)

 and,
if possible, when a success message is printed an check icon 
displays by

its
side (This is probably using border, but I am not sure).

How to do this?




--
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


  

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






  




--

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



Re: Feedback Panel

2009-01-30 Thread Anton Veretennikov
This is a simple Panel (without filtering) that can be used instead of
FeedbackPanel.
It shows itself is any session messages are available. As any Panel it
has it's own html.

public class MyFeedbackPanel extends Panel {

  public MyFeedbackPanel(String id) {
super(id);
IModelListFeedbackMessage messageListModel = new
AbstractReadOnlyModelListFeedbackMessage() {
  @Override
  public ListFeedbackMessage getObject() {
return Session.get().getFeedbackMessages().messages(null);
//return Session.get().getFeedbackMessages().messages(new
ErrorLevelFeedbackMessageFilter(FeedbackMessage.ERROR));
  }
};
ListViewFeedbackMessage list=new
ListViewFeedbackMessage(list, messageListModel) {
  @Override
  protected void populateItem(ListItemFeedbackMessage item) {
FeedbackMessage message=item.getModelObject();
if (message.isError()) {
  item.add(new ExternalImage(image, images/att_red.gif));
} else if (message.isInfo()) {
  item.add(new ExternalImage(image, images/att_gold.gif));
} else {
  item.add(new ExternalImage(image, images/att_grey.gif));
}
item.add(new Label(text,new PropertyModel(message,message)));
message.markRendered();
  }
};
add(list);
//new FeedbackPanel(id)
  }

  @Override
  public boolean isVisible() {
return Session.get().getFeedbackMessages().size()0;
  }

}


On Fri, Jan 30, 2009 at 8:08 PM, Daniel Ferreira Castro
dfcas...@gmail.com wrote:
 No bullets att all will fit the case :)

 On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten e.vanoos...@grons.nlwrote:

 Well, I am assuming you want either a numbered list, or no bullets at all.
 If you want something else, you are on your own (copy paste FeedbackPanel
 and tweak the copy).

 Look at the Wicket examples to see some CSS customization.

 Regards,
   Erik.



 Erik van Oosten wrote:

 Again, change it with css.

Erik.

 Daniel Ferreira Castro wrote:

 And if I don´t wanna a unumbered list to be as the presentation of the
 errors and messages?  How to do this?

 On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
 francisco.tre...@gmail.com wrote:



 for example, in your css:

 ul .feedbackul {
   list-style-type: none;
   font-size: 0.7em;
   border-top: 1px dashed #BCBAAC;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

 li .feedbackPanelERROR {
   color: red;
   font-size: 1em;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

 francisco

 On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl
 wrote:


 The HTML that is rendered by FeedBackPanel provides enough styling that


 you


 can do this with CSS.

 Regards,
  Erik.


 Daniel Ferreira Castro wrote:


 Hi,

 I am looking around internet but I still haven´t found what I am


 looking


 for - (Bono, do not sue me)

 I would like to customize a Feedback Panel in a way that error
 messages
 are
 displayed as Red, info as Green and Warn as Yellow (I will need to


 change


 the background of this panel to make it confortable for the eyes also)
  and,
 if possible, when a success message is printed an check icon displays
 by
 its
 side (This is probably using border, but I am not sure).

 How to do this?




 --
 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




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










 --

 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




 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill


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



Wicket security: multiple login pages

2009-01-30 Thread Sander Hofstee

Hi,

I have an application with two login pages, one for employees and one 
for clients. Clients login with a key, employees with a username and 
password.
I'm using wicket-security for the authorization stuff. Clients and 
employees have different pages, so I thought I could determine the loginpage
based on the url. But so far I can't  get that to work and I don't know 
if there are other options.


Does anyone know how I can have two different loginpages in one application?

Thanks,
Sander.


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



Approaches to complex data

2009-01-30 Thread Steve Flasby

Chaps.
  Sorry, this is rather long. I am struggling to find a way to
handle complex state in my application which will keep the
session reasonably small.

Here is what I am doing:

A Portfolio has many Position.

class Portfolio {
ListPosition getPositions(){...
}

I have a PortfolioPage which shows all Positions for a Portfolio
in a reusable Panel:

class PortfolioPage extends WebPage {
  public PortfolioPage(String ptfId ) {
add( new PortfolioPane(XX, new PortfolioModel(ptfID)) );
  }
}

class PortfolioPanel extends Panel {
  public PortfolioPane(String id, PortfolioModel model ) {
super(id, model);
RepeatingView v = new RepeatingView();
add(v);
for( Portfolio ptf : getModelObject().getPositions() ) {
  v.add( new PositionRow(ptf) );
  }
}

PortfolioModel is a LoadableDetachableModel and can quickly fetch
its state (and all its Positions) from the DB using the ptfID.
This is good.

PositionRow is a Pane subclass which renders a single html row showing
the Position information, so the RepeatingView will display a table of
Positions.


Now, as I understand it, Wicket will push PortfolioPage into the page
store. As a result it will serialize the PortfolioPane and so the
PortfolioModel. This model will be detached at some point and so have
a small memory footprint - only its ptfID. This is good.

Now the bit I struggle with. As I have now added a whole collection
of PositionRow instances to the RepeatingView their Position instances
will now be serialized and saved. This seems to negate the trouble I
went to to make my PortfolioModel Loadable.

I dont really want to have PositionRow have a LoadableModel as this will
simply cause a very inefficient row-by-row fetch of each Position from
the DB. The only approach that seems to work is to do this instead:

  for ( Portfolio ptf : getModelObject().getPositions() ) {
v.add( new PositionRow(model, ptf.getKey() ) );
  }

so that I only need to save the key as the serializable state in
PositionRow. This would seem to work but it feels a bit convoluted
to me. As the model becomes more complex this approach starts to
become unmanageable and makes building reusable bits harder.


I hope my confusion is clear and someone can offer me a hint as to
what to do. Mmm, I suppose if you tell me that I don't understand the
serialization strategy used by Wicket, that might also sort me out.


Many thanks in advance - Steve

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



Re: Approaches to complex data

2009-01-30 Thread Steve Flasby

Gah, sorry, there were a couple of typos, let me try again

Steve Flasby wrote:

Chaps.
  Sorry, this is rather long. I am struggling to find a way to
handle complex state in my application which will keep the
session reasonably small.

Here is what I am doing:

A Portfolio has many Position.

class Portfolio {
ListPosition getPositions(){...
}

I have a PortfolioPage which shows all Positions for a Portfolio
in a reusable Panel:

class PortfolioPage extends WebPage {
  public PortfolioPage(String ptfId ) {
add( new PortfolioPanel(XX, new PortfolioModel(ptfID)) );
  }
}

class PortfolioPanel extends Panel {
  public PortfolioPanel(String id, PortfolioModel model ) {
super(id, model);
RepeatingView v = new RepeatingView();
add(v);
for( Position pos : getModelObject().getPositions() ) {
  v.add( new PositionRow(pos) );
  }
}

PortfolioModel is a LoadableDetachableModel and can quickly fetch
its state (and all its Positions) from the DB using the ptfID.
This is good.

PositionRow is a Panel subclass which renders a single html row showing
the Position information, so the RepeatingView will display a table of
Positions.


Now, as I understand it, Wicket will push PortfolioPage into the page
store. As a result it will serialize the PortfolioPanel and so the
PortfolioModel. This model will be detached at some point and so have
a small memory footprint - only its ptfID. This is good.

Now the bit I struggle with. As I have now added a whole collection
of PositionRow instances to the RepeatingView their Position instances
will now be serialized and saved. This seems to negate the trouble I
went to to make my PortfolioModel Loadable.

I dont really want to have PositionRow have a LoadableModel as this will
simply cause a very inefficient row-by-row fetch of each Position from
the DB. The only approach that seems to work is to do this instead:

  for ( Position pos : getModelObject().getPositions() ) {
v.add( new PositionRow(model, pos.getKey() ) );
  }

so that I only need to save the key as the serializable state in
PositionRow. This would seem to work but it feels a bit convoluted
to me. As the model becomes more complex this approach starts to
become unmanageable and makes building reusable bits harder.


I hope my confusion is clear and someone can offer me a hint as to
what to do. Mmm, I suppose if you tell me that I don't understand the
serialization strategy used by Wicket, that might also sort me out.


Many thanks in advance - Steve

-
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



Active Wicket ExtJS ?

2009-01-30 Thread Hoover, William
Is there any active projects for Wicket and ExtJS out there? I know of
the one that used to be at wickettools.org, but it looks like a dead
project (no updates for over a year). There was also talk about adding
it to wicketstuff around that same time period, but it doesn't seem like
that materialized into anything.



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



Re: Building a dynamic comma separated link list

2009-01-30 Thread Prag

I have the same problem.
Did you find an elegant solution for this?



pixologe wrote:
 
 Hi everybody,
 This is probably quite easy, but I do not seem to be able to find an
 elegant solution for this, so if anyone could give me a hint, I would
 highly appreciate it...
 
 I'd like to have a comma-separated link list with variable number of items
 generated by wicket.
 The link list is not a problem, just a link in the template and a listview
 applied to it:
  # asdf 
 
 But what is a neat way to get the commas inbetween? My idea was to have a
 template like this:
  # asdf ,
 A listview could be applied to linklistitem while separator could be
 set invisible for the last item in the list...
 
 But this seems quite complicated to me, is there something more elegant
 than this? Perhaps a way to add a String between to items of a listview
 when the view is being rendered?
 
 Thanks in advance :)
 

-- 
View this message in context: 
http://www.nabble.com/Building-a-dynamic-comma-separated-link-list-tp18343730p21749819.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Building a dynamic comma separated link list

2009-01-30 Thread John Krasnay
I did this by subclassing RepeatingView and overriding
AbstractRepeater.renderChild as follows...

public class SeparatorRepeatingView extends RepeatingView {

private boolean firstChildRendered = false;

private String separator =  | ;

public SeparatorRepeatingView(String id, IModel model) {
super(id, model);
}

public SeparatorRepeatingView(String id) {
super(id);
}

@Override
protected void onBeforeRender() {
firstChildRendered = false;
super.onBeforeRender();
}

@Override
protected void renderChild(Component child) {

boolean childVisible = child.isVisible();

if (firstChildRendered  childVisible  separator != null) {
getResponse().write(separator);
}

super.renderChild(child);

if (childVisible) {
firstChildRendered = true;
}
}

public String getSeparator() {
return separator;
}

public void setSeparator(String separator) {
this.separator = separator;
}

}

Unfortunately, ListView marks renderChild as final, so this technique
won't work there.

jk

On Fri, Jan 30, 2009 at 07:52:03AM -0800, Prag wrote:
 
 I have the same problem.
 Did you find an elegant solution for this?
 
 
 
 pixologe wrote:
  
  Hi everybody,
  This is probably quite easy, but I do not seem to be able to find an
  elegant solution for this, so if anyone could give me a hint, I would
  highly appreciate it...
  
  I'd like to have a comma-separated link list with variable number of items
  generated by wicket.
  The link list is not a problem, just a link in the template and a listview
  applied to it:
   # asdf 
  
  But what is a neat way to get the commas inbetween? My idea was to have a
  template like this:
   # asdf ,
  A listview could be applied to linklistitem while separator could be
  set invisible for the last item in the list...
  
  But this seems quite complicated to me, is there something more elegant
  than this? Perhaps a way to add a String between to items of a listview
  when the view is being rendered?
  
  Thanks in advance :)
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Building-a-dynamic-comma-separated-link-list-tp18343730p21749819.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



New Wicket user needs help working with models and displaying results

2009-01-30 Thread CrocodileShoes

Hello,

I've just started using Wicket and have managed to convince the management
that we should use it for our new project!  However, it's proving more
difficult for me to wrap my head around some of the concepts...yep the
models are one of them!

I have an object that is able to query a data source using a member field
and  then save the results in another member field.

The difficulty i'm having is getting this functionality to the user; I have
tried about 10 different methods so far and abandoned all of them.

Currently I have created a POJO that can talk to a server, query with a
keyword and store the results from the server.  I have also created a
CompoundProperyModel wrapped around the query object in my Panel.
i.e.
 this.queryModel = new
CompoundPropertyModelQueryService(this.queryService);

Implementing the query keyword was easy.  I created a Form on the panel and
then added a simple Wicket TextField bound to the objects member field via
the queryModel shown above.

The bit i'm struggling with is displaying the results.  I can't seem to use
a List view because the results aren't present when the page first loads up
because there hasn't been a query yet.  I think I need to look at
DataProviders but i'm really not sure.

Basically i'm looking for some pointers to set me off in the right
direction.  I have bought the Wicket in Action book if anybody want's to
point me at a specific section, my first read through didn't turn anything
up.

I feel like my understanding of Wicket is about to click into place but i'm
missing something.  Hopefully any pointers I get on here will help me over
the wall so to speak.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/New-Wicket-user-needs-help-working-with-models-and-displaying-results-tp21750497p21750497.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Feedback Panel

2009-01-30 Thread Jeremy Thomerson
You can do everything you've asked for with css.  Just google css ul or
css ul no bullets, etc.  You can view source on a rendered FeedbackPanel
to see the classes it uses.  Really, it's made to be very customizable and
quite straight-forward.

On Fri, Jan 30, 2009 at 7:08 AM, Daniel Ferreira Castro
dfcas...@gmail.comwrote:

 No bullets att all will fit the case :)

 On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten e.vanoos...@grons.nl
 wrote:

  Well, I am assuming you want either a numbered list, or no bullets at
 all.
  If you want something else, you are on your own (copy paste FeedbackPanel
  and tweak the copy).
 
  Look at the Wicket examples to see some CSS customization.
 
  Regards,
Erik.
 
 
 
  Erik van Oosten wrote:
 
  Again, change it with css.
 
 Erik.
 
  Daniel Ferreira Castro wrote:
 
  And if I don´t wanna a unumbered list to be as the presentation of the
  errors and messages?  How to do this?
 
  On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
  francisco.tre...@gmail.com wrote:
 
 
 
  for example, in your css:
 
  ul .feedbackul {
list-style-type: none;
font-size: 0.7em;
border-top: 1px dashed #BCBAAC;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}
 
  li .feedbackPanelERROR {
color: red;
font-size: 1em;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}
 
  francisco
 
  On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten 
 e.vanoos...@grons.nl
  wrote:
 
 
  The HTML that is rendered by FeedBackPanel provides enough styling
 that
 
 
  you
 
 
  can do this with CSS.
 
  Regards,
   Erik.
 
 
  Daniel Ferreira Castro wrote:
 
 
  Hi,
 
  I am looking around internet but I still haven´t found what I am
 
 
  looking
 
 
  for - (Bono, do not sue me)
 
  I would like to customize a Feedback Panel in a way that error
  messages
  are
  displayed as Red, info as Green and Warn as Yellow (I will need to
 
 
  change
 
 
  the background of this panel to make it confortable for the eyes
 also)
   and,
  if possible, when a success message is printed an check icon
 displays
  by
  its
  side (This is probably using border, but I am not sure).
 
  How to do this?
 
 
 
 
  --
  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
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 
 
 
  --
 
  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
 
 


 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Approaches to complex data

2009-01-30 Thread Igor Vaynberg
use a refreshingview or a dataview or a listview instead of repeatingview.

-igor

On Fri, Jan 30, 2009 at 6:54 AM, Steve Flasby st...@flasby.org wrote:
 Chaps.
  Sorry, this is rather long. I am struggling to find a way to
 handle complex state in my application which will keep the
 session reasonably small.

 Here is what I am doing:

 A Portfolio has many Position.

 class Portfolio {
ListPosition getPositions(){...
 }

 I have a PortfolioPage which shows all Positions for a Portfolio
 in a reusable Panel:

 class PortfolioPage extends WebPage {
  public PortfolioPage(String ptfId ) {
add( new PortfolioPane(XX, new PortfolioModel(ptfID)) );
  }
 }

 class PortfolioPanel extends Panel {
  public PortfolioPane(String id, PortfolioModel model ) {
super(id, model);
RepeatingView v = new RepeatingView();
add(v);
for( Portfolio ptf : getModelObject().getPositions() ) {
  v.add( new PositionRow(ptf) );
  }
 }

 PortfolioModel is a LoadableDetachableModel and can quickly fetch
 its state (and all its Positions) from the DB using the ptfID.
 This is good.

 PositionRow is a Pane subclass which renders a single html row showing
 the Position information, so the RepeatingView will display a table of
 Positions.


 Now, as I understand it, Wicket will push PortfolioPage into the page
 store. As a result it will serialize the PortfolioPane and so the
 PortfolioModel. This model will be detached at some point and so have
 a small memory footprint - only its ptfID. This is good.

 Now the bit I struggle with. As I have now added a whole collection
 of PositionRow instances to the RepeatingView their Position instances
 will now be serialized and saved. This seems to negate the trouble I
 went to to make my PortfolioModel Loadable.

 I dont really want to have PositionRow have a LoadableModel as this will
 simply cause a very inefficient row-by-row fetch of each Position from
 the DB. The only approach that seems to work is to do this instead:

  for ( Portfolio ptf : getModelObject().getPositions() ) {
v.add( new PositionRow(model, ptf.getKey() ) );
  }

 so that I only need to save the key as the serializable state in
 PositionRow. This would seem to work but it feels a bit convoluted
 to me. As the model becomes more complex this approach starts to
 become unmanageable and makes building reusable bits harder.


 I hope my confusion is clear and someone can offer me a hint as to
 what to do. Mmm, I suppose if you tell me that I don't understand the
 serialization strategy used by Wicket, that might also sort me out.


 Many thanks in advance - Steve

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



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



Re: Active Wicket ExtJS ?

2009-01-30 Thread Richard Allen
See: http://code.google.com/p/wicket-ext/

On Fri, Jan 30, 2009 at 10:43 AM, Hoover, William whoo...@nemours.orgwrote:

 Is there any active projects for Wicket and ExtJS out there? I know of
 the one that used to be at wickettools.org, but it looks like a dead
 project (no updates for over a year). There was also talk about adding
 it to wicketstuff around that same time period, but it doesn't seem like
 that materialized into anything.



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




Re: New Wicket user needs help working with models and displaying results

2009-01-30 Thread CrocodileShoes

I've figured it out.  I don't think it's very elegant but i'm sure I can
develop it as I learn more about Wicket.

I simply created a new property model around a results variable and created
a ListView with that model.  When the form is submitted it calls the service
to update the query.



-- 
View this message in context: 
http://www.nabble.com/New-Wicket-user-needs-help-working-with-models-and-displaying-results-tp21750497p21752333.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Contributing to Wicket - Client side form validation

2009-01-30 Thread Jeremy Thomerson
Sorry it took a while, but I just got this done.

jt

On Mon, Jan 19, 2009 at 3:59 AM, cazoury carl.azo...@zenika.com wrote:


 Hi Jeremy,

 No problem at all, and thanks a lot for reviewing that

 Please feel free, let me know if you need any action from me on that
 subject.

 Carl


 Jeremy Thomerson-5 wrote:
 
  Carl,
Would you mind if I made a few minor changes to your pom files to make
  this project conform to the standards of the wicketstuff-core projects?
  Things I noticed are:
 
  - yav-parent/yav/pom.xml - artifact ID must be yav rather than
  wicketstuff-yav
  - yav-parent/yav-examples/pom.xml - artifact ID must be yav-examples
  rather than wicketstuff-yav-examples
  - add yav-parent to the modules list in wicketstuff-core/pom.xml
 
  Thank you,
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Sun, Jan 18, 2009 at 7:35 AM, cazoury carl.azo...@zenika.com wrote:
 
 
  Hi,
 
  I have finally added the Wicket  Yav Integration into the trunk of
  wicketstuff-core.
 
  There is an exemple application provided to test the actual Wicket rules
  that has been converted to Yav
 
  Every feedback is the most welcome and contribution also.
 
  It is a first step, but we can make it evolve maybe as Cemal suggested
 to
  include more advanced validation (like apache validator or Hibernate
  Validator)
 
  Cheers
 
 
 
  Nino Martinez-2 wrote:
  
   ok you should be in...
  
   We take jira and CI later.. Ok?
  
   Happy new year
  
   cazoury wrote:
   Thank you every one for your answers and interests on the project.
  
   I will be very happy for the project to go on Wicketstuff repo.
  
   My nick on sourceforge is : cazoury, I will post that on the dev
 list.
  
   Hopefully everything will be checked in before the end of the week.
  
  
   In terms of the actual validation, have you given any thought yet to
  how
   this can be done as DRY as
   possible wrt respecifying (equivalent/similar) validation at various
   layers including Wicket's, the ORM's,
   in business rules etc?
  
  
   for the DRY principle we only take into account the validators
 defined
  on
   the form components. Nothing else for the moment. They are some
   Validators
   in Wicket that are not available in YAV and the contrary. Maybe a
 next
   step
   will be to add them on the YAV side so all the default Wicket
  validators
   can
   be taken into account.
  
   But first, the checkin of the code :)
  
   Nino Martinez-2 wrote:
  
   I like to keep my contributions in wicketstuff repo, and I think us
   wicketstuffers would be happy to have your project there .. But no
   matter what I think you should contribute the stuff you've done :)
  
   So if you want, just post your sourceforge nick to the dev list to
  get
   write permissions.. And I think your project should go into
  wicketstuff
   core, but jeremy can fill you in on that :)
  
   cazoury wrote:
  
   Hi,
  
   We have been working on a small project to integrate
   http://yav.sourceforge.net/ YAV  library with Wicket. It is
  javascript
   validation purely on the client side. YAV has a LGPL licence and is
  a
   sourceforge project.
  
   I know that we can use an Ajax Behavior to validate the form with
  the
   validators present on the server side, but this is to respond to
 one
  of
   our
   client needs and also to illustrate how easy it is to integrate an
   existing
   javascript library with Wicket.
  
   It has also some nice features like using in the javascript
  validation
   the
   same messages as the ones used by the Wicket application (default
   messages
   and user defined messages)
  
   We would like to contribute, if possible, this code (wicket-contrib
  /
   wicket-stuff) if people finds this interesting. But I am not sure
  what
   are
   the different steps for that.
  
   We where thinking making it a sourceforge or googlecode project,
  maybe
   it
   is
   the first step and then I could post the link to it on this forum.
  
   Everyone enjoy the last day(s) of this year :)
  
   Carl Azoury
  
  
  
 -
   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
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21527885.html
  Sent from the Wicket - User 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
 
 
 
 

 --
 View this message in context:
 

Re: Contributing to Wicket - Client side form validation

2009-01-30 Thread Jeremy Thomerson
Cemal,
  I didn't have much time to look into it, but didn't see anything real
obvious in any of the yav poms.  Do you know what's causing the dependency?


On Mon, Jan 19, 2009 at 11:16 AM, jWeekend jweekend_for...@cabouge.comwrote:


 Jeremy,

 Since you're digging around in there and if what you wanted to change
 doesn't already fix this, the yav and yav-examples project have unnecessary
 dependencies on jmxtools and jms jars (probably from some parent/grand
 parent POM).

 Regards - Cemal
 http://jWeekende.co.uk jWeekend



 Jeremy Thomerson-5 wrote:
 
  Carl,
Would you mind if I made a few minor changes to your pom files to make
  this project conform to the standards of the wicketstuff-core projects?
  Things I noticed are:
 
  - yav-parent/yav/pom.xml - artifact ID must be yav rather than
  wicketstuff-yav
  - yav-parent/yav-examples/pom.xml - artifact ID must be yav-examples
  rather than wicketstuff-yav-examples
  - add yav-parent to the modules list in wicketstuff-core/pom.xml
 
  Thank you,
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Sun, Jan 18, 2009 at 7:35 AM, cazoury carl.azo...@zenika.com wrote:
 
 
  Hi,
 
  I have finally added the Wicket  Yav Integration into the trunk of
  wicketstuff-core.
 
  There is an exemple application provided to test the actual Wicket rules
  that has been converted to Yav
 
  Every feedback is the most welcome and contribution also.
 
  It is a first step, but we can make it evolve maybe as Cemal suggested
 to
  include more advanced validation (like apache validator or Hibernate
  Validator)
 
  Cheers
 
 
 
  Nino Martinez-2 wrote:
  
   ok you should be in...
  
   We take jira and CI later.. Ok?
  
   Happy new year
  
   cazoury wrote:
   Thank you every one for your answers and interests on the project.
  
   I will be very happy for the project to go on Wicketstuff repo.
  
   My nick on sourceforge is : cazoury, I will post that on the dev
 list.
  
   Hopefully everything will be checked in before the end of the week.
  
  
   In terms of the actual validation, have you given any thought yet to
  how
   this can be done as DRY as
   possible wrt respecifying (equivalent/similar) validation at various
   layers including Wicket's, the ORM's,
   in business rules etc?
  
  
   for the DRY principle we only take into account the validators
 defined
  on
   the form components. Nothing else for the moment. They are some
   Validators
   in Wicket that are not available in YAV and the contrary. Maybe a
 next
   step
   will be to add them on the YAV side so all the default Wicket
  validators
   can
   be taken into account.
  
   But first, the checkin of the code :)
  
   Nino Martinez-2 wrote:
  
   I like to keep my contributions in wicketstuff repo, and I think us
   wicketstuffers would be happy to have your project there .. But no
   matter what I think you should contribute the stuff you've done :)
  
   So if you want, just post your sourceforge nick to the dev list to
  get
   write permissions.. And I think your project should go into
  wicketstuff
   core, but jeremy can fill you in on that :)
  
   cazoury wrote:
  
   Hi,
  
   We have been working on a small project to integrate
   http://yav.sourceforge.net/ YAV  library with Wicket. It is
  javascript
   validation purely on the client side. YAV has a LGPL licence and is
  a
   sourceforge project.
  
   I know that we can use an Ajax Behavior to validate the form with
  the
   validators present on the server side, but this is to respond to
 one
  of
   our
   client needs and also to illustrate how easy it is to integrate an
   existing
   javascript library with Wicket.
  
   It has also some nice features like using in the javascript
  validation
   the
   same messages as the ones used by the Wicket application (default
   messages
   and user defined messages)
  
   We would like to contribute, if possible, this code (wicket-contrib
  /
   wicket-stuff) if people finds this interesting. But I am not sure
  what
   are
   the different steps for that.
  
   We where thinking making it a sourceforge or googlecode project,
  maybe
   it
   is
   the first step and then I could post the link to it on this forum.
  
   Everyone enjoy the last day(s) of this year :)
  
   Carl Azoury
  
  
  
 -
   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
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21527885.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  

Pageable tree?

2009-01-30 Thread Zhubin Salehi

Hi,

Is there some kind of pageable tree class in Wicket, or I have to break up
my tree to several smaller trees and put them in a PageableListView?

Thanks,
Zhubin
-- 
View this message in context: 
http://www.nabble.com/Pageable-tree--tp21754065p21754065.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket security: multiple login pages

2009-01-30 Thread Olger Warnier

Hi Sander,

Two different pages for logon is possible with the spring security  
configuration.
It's hard to see a difference based on the URL in Wicket, so Is there  
a way to determine in your application if you need to logon a Client  
or a Employee ?

You could redirect to the specific logon page using an aspect.

You could use something like  
SecurityContextHolder.getContext().getAuthentication() to check for  
authentication on the pages. (spring-security)


Did you integrate spring-security with the wicket-security modules ?  
(Swarm, Wasp...)


Kind Regards,

Olger


On 30 jan 2009, at 15:37, Sander Hofstee wrote:.


Hi,

I have an application with two login pages, one for employees and  
one for clients. Clients login with a key, employees with a username  
and password.
I'm using wicket-security for the authorization stuff. Clients and  
employees have different pages, so I thought I could determine the  
loginpage
based on the url. But so far I can't  get that to work and I don't  
know if there are other options.


Does anyone know how I can have two different loginpages in one  
application?


Thanks,
Sander.


-
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



RenderedDynamicImageResource being cached when i need it not to be

2009-01-30 Thread Brill Pappin
I have a RenderedDynamicImageResource thats rendering a barcode,  
however I'm having trouble with it in that it only ever renders one  
image per session.


The resource has been added to:
[Application].getSharedResources().add(
CommonPage.class,
barcodeResource,
null,
null,
new BarcodeImageResource(UnitConv.mm2px(100, 
73), UnitConv
.mm2px(100, 73)));

I have set the resource up as:
setCacheable(false)

and i reset the last modified time when i render as:
setLastModifiedTime(Time.now());

I'm using 1.4-SNAPSHOT

Doe anyone have any idea how I can get this darn thing to return a new  
image on every request


- Brill

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



Re: Feedback Panel

2009-01-30 Thread Daniel Ferreira Castro
Yes...I have been trying to learn more about the framework wicket.

I tryied to check on XHTML parser for possible open tags but didn't find
any.
Eclipse also checks automatically for any open tag.
WicketMessage: close tag not found for tag: div class=feedbackPanel
wicket:id=feedback. Component: [MarkupContainer [Component id =
feedback]]

Also, the BasePage has all the tags closed.
How to solve it? Is it a known wicket bug?

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
html
wicket:head
title wicket:id=pageTitleAdministração/title
/wicket:head
body
wicket:extend
div class=spacer/div

div align=center class=cssbox
div class=cssbox_head
h2Cadastro de Categoria/h2
/div
div class=cssbox_body
form wicket:id=categoriaForm name=categoriaForm
table
tr
th class=label
label wicket:id=labelCategoria[name
label]/label:
/th
td
input wicket:id=nomeCategoria type=text
class=nomeCategoria /
/td
/tr
tr
th class=label
label wicket:id=labelCategoriaPai[name
label]/label:
/th
td
select wicket:id=categoriaPai
class=categoriaPai size=1 /
/td
/tr
tr
th class=labelnbsp;/th
tdinput type=submit value=submit //td
/tr
/table
/form
table
tr
th colspan=2
div wicket:id=feedback class=feedbackPanel
ul wicket:id=feedbackul class=feedbackul
li class=feedbackPanelINFO
wicket:id=messages
  span class=feedbackPanelINFO
wicket:id=message[[]]/span
/li
/ul
/div
/th
/tr
/table
/div
/div
/wicket:extend
/body
/html

On Fri, Jan 30, 2009 at 3:10 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 You can do everything you've asked for with css.  Just google css ul or
 css ul no bullets, etc.  You can view source on a rendered FeedbackPanel
 to see the classes it uses.  Really, it's made to be very customizable and
 quite straight-forward.

 On Fri, Jan 30, 2009 at 7:08 AM, Daniel Ferreira Castro
 dfcas...@gmail.comwrote:

  No bullets att all will fit the case :)
 
  On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten e.vanoos...@grons.nl
  wrote:
 
   Well, I am assuming you want either a numbered list, or no bullets at
  all.
   If you want something else, you are on your own (copy paste
 FeedbackPanel
   and tweak the copy).
  
   Look at the Wicket examples to see some CSS customization.
  
   Regards,
 Erik.
  
  
  
   Erik van Oosten wrote:
  
   Again, change it with css.
  
  Erik.
  
   Daniel Ferreira Castro wrote:
  
   And if I don´t wanna a unumbered list to be as the presentation of
 the
   errors and messages?  How to do this?
  
   On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
   francisco.tre...@gmail.com wrote:
  
  
  
   for example, in your css:
  
   ul .feedbackul {
 list-style-type: none;
 font-size: 0.7em;
 border-top: 1px dashed #BCBAAC;
 margin-left: 6px;
 margin-bottom: 20px;
 padding: 0;
 width: 90%;
 }
  
   li .feedbackPanelERROR {
 color: red;
 font-size: 1em;
 margin-left: 6px;
 margin-bottom: 20px;
 padding: 0;
 width: 90%;
 }
  
   francisco
  
   On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten 
  e.vanoos...@grons.nl
   wrote:
  
  
   The HTML that is rendered by FeedBackPanel provides enough styling
  that
  
  
   you
  
  
   can do this with CSS.
  
   Regards,
Erik.
  
  
   Daniel Ferreira Castro wrote:
  
  
   Hi,
  
   I am looking around internet but I still haven´t found what I am
  
  
   looking
  
  
   for - (Bono, do not sue me)
  
   I would like to customize a Feedback Panel in a way that error
   messages
   are
   displayed as Red, info as Green and Warn as Yellow (I will need to
  
  
   change
  
  
   the background of this panel to make it confortable for the eyes
  also)
and,
   if possible, when a success message is printed an check icon
  displays
   by
   its
   side (This is probably using border, but I am not sure).
  
   How to do this?
  
  
  
  
   --
   Erik van Oosten
   http://day-to-day-stuff.blogspot.com/
  
  
  
  
 -
   To 

How to add a component in a behavior ?

2009-01-30 Thread ZedroS

Hi

I'm using a behaviour to add component's label like this :
public class AddLabelBehavior extends AbstractBehavior
{
@Override
public void beforeRender(Component component)
{
super.beforeRender(component);
component.getResponse().write(new
StringResourceModel(component.getId(),component,null,component.getId()).getString()
+  : );
}
}

However, I would like to add as well a dedicated feedbackpanel just after
the component in question. 

In short, it's just a component that I would like to add (both in the Java
code and html rendered) just after my component.

Is it possible ? If so, how ?

NB : I guess it should use onRendered(Component component) but I don't see
how to add a component.

Thanks in advance

best, 
zedros
-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-component-in-a-behavior---tp21758993p21758993.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to add a component in a behavior ?

2009-01-30 Thread Igor Vaynberg
you cant because it wont have any markup to attach to, instead you can
simply output the messages yourself, see my reply to this thread:

Form Components With Built In Feedback

-igor

On Fri, Jan 30, 2009 at 6:04 PM, ZedroS zedros.schwa...@gmail.com wrote:

 Hi

 I'm using a behaviour to add component's label like this :
 public class AddLabelBehavior extends AbstractBehavior
 {
@Override
public void beforeRender(Component component)
{
super.beforeRender(component);
component.getResponse().write(new
 StringResourceModel(component.getId(),component,null,component.getId()).getString()
 +  : );
}
 }

 However, I would like to add as well a dedicated feedbackpanel just after
 the component in question.

 In short, it's just a component that I would like to add (both in the Java
 code and html rendered) just after my component.

 Is it possible ? If so, how ?

 NB : I guess it should use onRendered(Component component) but I don't see
 how to add a component.

 Thanks in advance

 best,
 zedros
 --
 View this message in context: 
 http://www.nabble.com/How-to-add-a-component-in-a-behavior---tp21758993p21758993.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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