Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johannes Fahrenkrug
I attached the exception and this is the code I use to build the list:

add (zimmerartenList = new ListView (zimmerartenList,
termin.getTerminDetails()) {

private static final long serialVersionUID =
2623213955857979457L;

@Override
protected void populateItem(ListItem item) {
final TerminDetail terminDetail = (TerminDetail)
item.getModelObject();
   
if( terminDetail.getFreieKontingente()  0 ) {
item.add(new Label(zimmerart,
terminDetail.getZimmerart()));
item.add(new DropDownChoice (paxProZimmerart,
terminDetail.getMoeglichePaxAnzahlen()));
}
}
});



Johan Compagner wrote:

 what kind of exception?


 Johannes Fahrenkrug wrote:

 Hi,

 I'm new to Wicket and I have a question. I need to generate and display
 a List of DropDownChoices. This is the scenario:
 I have different room types and for every room type I have certain
 vacancies. So I need to have something like this:

 Double room   - [Choose one   ]
  [2 ]
  [4 ]
  [6 ]

 Single room  -[Choose one  ]
  [1]
  [2 ]
  [3 ]
  [4]


 I already managed to display that (with a list view and a DropDownChoice
 attached to each item). But when I want to submit the form, I get an
 exception.

 What would be The Right Thing to do?

 Thank you so much!

 - Johannes


 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

  



 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johannes Fahrenkrug
Martijn,

thank you so much for your help.
Now it works perfectly. I added the field paxProAnreise to the
TerminDetail class, added getters and setters and changed the
PropertyModel accordingly. Now my code looks like this:

protected void populateItem(ListItem item) {
   final TerminDetail terminDetail = (TerminDetail)
item.getModelObject();
   boolean visible = terminDetail.getFreieKontingente()  0;
   item.add(new Label(zimmerart,
terminDetail.getZimmerart()).setVisible(visible));
   item.add(new DropDownChoice (moeglichePaxAnzahlen,
new PropertyModel(terminDetail, paxProZimmerart),
   
terminDetail.getMoeglichePaxAnzahlen()).setVisible(visible));
}

Now it works like a charm :)

- Johannes

Martijn Dashorst wrote:

 Johannes,

 You haven't attached a model to the dropdown choice. The constructor
 you are using implies having a CompoundPropertyModel as
 ListItem.model. You don't have this, so you need to use another
 constructor:

 item.add(new DropDownChoice (paxProZimmerart, new
 PropertyModel(terminDetail, paxProZimmerart),
 terminDetail.getMoeglichePaxAnzahlen()));

 Looking at your code, I suspect you will be getting other exceptions,
 as you render your components conditionally, this will give exceptions.

 Better to use:

 protected void populateItem(ListItem item) {
final TerminDetail terminDetail = (TerminDetail)
 item.getModelObject();
boolean visible = terminDetail.getFreieKontingente()  0;
item.add(new Label(zimmerart,
 terminDetail.getZimmerart()).setVisible(visible));
item.add(new DropDownChoice (paxProZimmerart,
 new PropertyModel(terminDetail,
 paxProZimmerart),

 terminDetail.getMoeglichePaxAnzahlen()).setVisible(visible);
 }


 Martijn


 Johannes Fahrenkrug wrote:

 I attached the exception and this is the code I use to build the list:

 add (zimmerartenList = new ListView (zimmerartenList,
 termin.getTerminDetails()) {

private static final long serialVersionUID =
 2623213955857979457L;

@Override
protected void populateItem(ListItem item) {
final TerminDetail terminDetail = (TerminDetail)
 item.getModelObject();
  if(
 terminDetail.getFreieKontingente()  0 ) {
item.add(new Label(zimmerart,
 terminDetail.getZimmerart()));
item.add(new DropDownChoice (paxProZimmerart,
 terminDetail.getMoeglichePaxAnzahlen()));
}
}
});



 Johan Compagner wrote:

  

 what kind of exception?


 Johannes Fahrenkrug wrote:

   

 Hi,

 I'm new to Wicket and I have a question. I need to generate and
 display
 a List of DropDownChoices. This is the scenario:
 I have different room types and for every room type I have certain
 vacancies. So I need to have something like this:

 Double room   - [Choose one   ]
 [2 ]
 [4 ]
 [6 ]

 Single room  -[Choose one  ]
 [1]
 [2 ]
 [3 ]
 [4]


 I already managed to display that (with a list view and a
 DropDownChoice
 attached to each item). But when I want to submit the form, I get an
 exception.

 What would be The Right Thing to do?

 Thank you so much!

 - Johannes


 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in
 dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 

 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in
 dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   





 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite

[Wicket-user] Problem: Exception in UpdateModel

2005-07-13 Thread Johannes Fahrenkrug
Hi,

It seems that updateModel() is called for invisible child components.
This causes an exception in the attached use case.

An IMHO crude workaround is to make all children explicitly invisible
instead of just setting the invisible state on the parent. However, the
FormComponent.IVistor in Form#updateModels shouldn't visit children of
invisible components at all.

Regards,

Johannes



  

	  

  
  


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import wicket.markup.html.WebPage;
import wicket.markup.html.form.DropDownChoice;
import wicket.markup.html.form.Form;
import wicket.markup.html.list.ListItem;
import wicket.markup.html.list.ListView;
import wicket.model.PropertyModel;

public class Bug extends WebPage {
  
  class InputForm extends Form {
private short value;

public InputForm(String id) {
  super(id);
  final List values = new ArrayList();
  values.add(1);
  values.add(2);
  add(new ListView(list, values) {
protected void populateItem(ListItem item) {
  item.add(new DropDownChoice(choice, new PropertyModel(InputForm.this, value), values));
  item.setVisible(item.getIndex() == 0);
  //crude workaround...
  //item.get(choice).setVisible(item.isVisible());
}
  });
}

public short getValue() {
  return value;
}

public void setValue(short value) {
  this.value = value;
}
  } 
  
  public Bug() {
add(new InputForm(form));
  }
}


Re: [Wicket-user] Problem: Exception in UpdateModel

2005-07-13 Thread Johannes Fahrenkrug
Hi,

well, I'm not using the CVS HEAD, I'm only using the 1.0 Tarball from
the SF page.
And yes, that is what I mean. My problem was this: I had a ListView and
within that another ListView and within that a DropDownChoice. I set
certain ListViewItems to invisible, but not the dropdownchoice that is
attached to that ListViewItem. And it seems as if that DropDownChoice,
although it doesn't even get displayed, updates it's Model when I submit
the form. And then I get an OGNL illegalArgumentException because it
tries to set a short value to null.

The problem seems to be that the visibilty property of actual
FormComponents are checked, but not the visibility of the parents of
FormComponents.

- Johannes.


Eelco Hillenius wrote:

 Ah, wait a minute... we do check whether the form component itself is
 visible, but that component might have children that are visible. They
 should not be included in updating and validating, but they might in
 the current situation. Is that what you mean Johannes?

 Eelco

 Juergen Donnerstag wrote:

 I thought we fixed that in HEAD. Which version are you using?

 Juergen

 On 7/13/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
  

 Hi,

 It seems that updateModel() is called for invisible child components.
 This causes an exception in the attached use case.

 An IMHO crude workaround is to make all children explicitly invisible
 instead of just setting the invisible state on the parent. However, the
 FormComponent.IVistor in Form#updateModels shouldn't visit children of
 invisible components at all.

 Regards,

 Johannes





   



 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  




 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted
 by HP,
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validating Lists of DropDownChoices

2005-07-13 Thread Johannes Fahrenkrug
Hi,

it's me with my DropDownChoices again
Now I'm at the point where I have to validate the user input.
I have a (dynamic) list of DropDownChoices. It can have a variable
number of rows and each row has a DropDownChoice.
The user has to set at least one of the DropDownChoices to a non-zero
value. What is the best practice to validate such the input in this case?

- Johannes


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom strings in DropDownChoices

2005-07-22 Thread Johannes Fahrenkrug
Johan,

thank you very much! That's good news :) I'll upgrade asap!

- Johannes

Johan Compagner wrote:

 In 1.0 you have to override/implement the IChoiceList and make youre
 own IChoice objects for the TerminDetails class.

 In 1.1 you can do this:

 item.add(new DropDownChoice(zimmerart, new PropertyModel(person,
 aktArtikelZimmerart),
 person.getAktArtikel().getSelectedTermin().getTerminDetails()), new
 ChoiceRenderer(displayExpression,ifNeededTheIdExpression));

 If you are working a lot with dropdown choices please upgrade to 1.1
 as soon as possible.
 Because the code is completely rewritten for generating id/display
 values.

 johan

 Johannes Fahrenkrug wrote:

 Hi,

 I have another question about DropDownChoices.

 I have a listview an in each row I have to fill 2 DropDownChoices.

 The code looks like this:

 item.add(new DropDownChoice(zimmerart, new PropertyModel(person,
 aktArtikelZimmerart),
 
 person.getAktArtikel().getSelectedTermin().getTerminDetails()));

 Because I have to show a compound string of a label and a price in the
 dropdownchoice, I overrode the toString method in the TerminDetails
 class.

 Is there a different way to make customs label strings for each item in
 a dropdownchoice besides overriding the toString method of that class?

 - Johannes




 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   



 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ListView with n rows and n columns

2005-08-16 Thread Johannes Fahrenkrug

Hello Wicke(t/d) users,

I'm wondering if someone already solved this one or if there is a best 
practice for it:


I have to display a table with a variable number of rows and a variable 
number of columns.
The purpose of it is this: I am writing a booking application and every 
trip can have a variable number of
little extras that you can book on top of the main trip (a special 
dinner, a boat ride and so on). Each one of those extras can be booked 
in different categories and different roomtypes (if the guest has to 
stay over night).


So it might look something like this:

DDC = DropDownChoice for Category
DDR = DropDownChoice for Roomtype

 Homer  Lenny   
   Carl
Chinese DinnerDDC, DDRDDC, DDRDDC, 
DDR  
Boat Trip  DDC, DDRDDC, DDR
DDC, DDR

Visit to the Powerplant   DDC, DDRDDC, DDRDDC, DDR


I have a list of POJOs for the customers and I have a list of POJOs for 
the extras.
Oh, and the booking of these extras is optional, of course. So for 
example it should be possible that only Lenny books the Boat Trip (by 
selecting a category and a room type for it)


Any suggestions are appreciated.

- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Setting of hasErrorMessage on FormComponents

2005-08-25 Thread Johannes Fahrenkrug

Hi,

this is my problem:

I subclassed the TextField and created a TextFieldWithErrorIndicator 
class. I overrode the onRender method like so:


 @Override
 protected void onRender() {   
   String clazz = this.hasErrorMessage() ? error : no-error;   
   getResponse().write(span class=\ + clazz + \);

   super.onRender();
   getResponse().write(/span);
 }

I did that in order to be able to highlight the input fields which 
contain errors.  It works fine with text fields that are added directly 
to the form. When I add them to a listView, however, it doesn't work 
anymore. I debugged the onRender method and found out that 
hasErrorMessages returns false when the field is within a listrow.


The feedbackPanel on the page displays the correct error messages, though.

Is that a bug or am I doing something wrong?

- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-25 Thread Johannes Fahrenkrug

Hi,

shouldn't the TextField, when you add a TypeValidator of type Date to 
it, check if the entered date is valid?

I can enter the 31st of February, or even the 32nd.

And I have to set the Locale for the whole session in order for it to 
accept the German date format. When I only pass a new Locale object to 
the constructor of TypeValidator it doesn't work.


This is the code:

Locale locale_de = new Locale(de, DE);

getSession().setLocale(locale_de);
add(new TextField(birthdate, new PropertyModel(person, birthdate), 
Date.class).add(new TypeValidator(Date.class, locale_de)));


- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-25 Thread Johannes Fahrenkrug
Ok, new insights on this issue: the date automatically gets corrected... 
of course because the casting of the string to the Java date object does 
that...


the question remains if it makes sense to auto-correct the date or if 
any invalid date should raise an error, informing the user that 
something isn't right (i.e. he entered 31.02.05 but meant 31.03.05. 
the date gets auto corrected to 04.03.05 which is not at all what the 
user wanted - and for business reasons... if such a corrected but not 
wanted date is given, it might cause problems...).


I understand that the TypeValidator simply checks if Java can cast the 
entered value into the given type... but for a date that might not be 
the desired behavior... I know that the datePicker would be an option, 
but I think that the datePicker only works with JavaScript enabled...


- Johannes

Johannes Fahrenkrug wrote:


Hi,

shouldn't the TextField, when you add a TypeValidator of type Date to 
it, check if the entered date is valid?

I can enter the 31st of February, or even the 32nd.

And I have to set the Locale for the whole session in order for it to 
accept the German date format. When I only pass a new Locale object to 
the constructor of TypeValidator it doesn't work.


This is the code:

Locale locale_de = new Locale(de, DE);

getSession().setLocale(locale_de);
add(new TextField(birthdate, new PropertyModel(person, birthdate), 
Date.class).add(new TypeValidator(Date.class, locale_de)));


- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing 
 QA

Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-26 Thread Johannes Fahrenkrug

Eelco,

I opened issue number 1273827 for this.

- Johannes

Eelco Hillenius wrote:


That's probably the lenient feature of DateFormat. Thought that was
off by default. Could you open an issue please?

Eelco

On 8/25/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Ok, new insights on this issue: the date automatically gets corrected...
of course because the casting of the string to the Java date object does
that...

the question remains if it makes sense to auto-correct the date or if
any invalid date should raise an error, informing the user that
something isn't right (i.e. he entered 31.02.05 but meant 31.03.05.
the date gets auto corrected to 04.03.05 which is not at all what the
user wanted - and for business reasons... if such a corrected but not
wanted date is given, it might cause problems...).

I understand that the TypeValidator simply checks if Java can cast the
entered value into the given type... but for a date that might not be
the desired behavior... I know that the datePicker would be an option,
but I think that the datePicker only works with JavaScript enabled...

- Johannes

Johannes Fahrenkrug wrote:

   


Hi,

shouldn't the TextField, when you add a TypeValidator of type Date to
it, check if the entered date is valid?
I can enter the 31st of February, or even the 32nd.

And I have to set the Locale for the whole session in order for it to
accept the German date format. When I only pass a new Locale object to
the constructor of TypeValidator it doesn't work.

This is the code:

Locale locale_de = new Locale(de, DE);

getSession().setLocale(locale_de);
add(new TextField(birthdate, new PropertyModel(person, birthdate),
Date.class).add(new TypeValidator(Date.class, locale_de)));

- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing
 QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Setting of hasErrorMessage on FormComponents

2005-08-26 Thread Johannes Fahrenkrug

Should I maybe post this again on the developers list?

- Johannes

Johannes Fahrenkrug wrote:


Hi,

this is my problem:

I subclassed the TextField and created a TextFieldWithErrorIndicator 
class. I overrode the onRender method like so:


 @Override
 protected void onRender() {  String clazz = 
this.hasErrorMessage() ? error : no-error;  
getResponse().write(span class=\ + clazz + \);

   super.onRender();
   getResponse().write(/span);
 }

I did that in order to be able to highlight the input fields which 
contain errors.  It works fine with text fields that are added 
directly to the form. When I add them to a listView, however, it 
doesn't work anymore. I debugged the onRender method and found out 
that hasErrorMessages returns false when the field is within a listrow.


The feedbackPanel on the page displays the correct error messages, 
though.


Is that a bug or am I doing something wrong?

- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing 
 QA

Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to manually set an error message

2005-08-29 Thread Johannes Fahrenkrug

Hi,

one simple question: How do I manually get a feedbackPanel to display an 
errorMessage?
I have to catch an error that I can't catch with a validator, hence I 
have to set the error myself. I tried feedback.error(foo)
but the feedbackPanel doesn't display a thing (the feedbackPanel itself 
works, it does display errors when the validation of a field on the page 
fails). What can I do?


- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to manually set an error message (SOLVED)

2005-08-29 Thread Johannes Fahrenkrug
. nevermind. It's not the feedbackPanel that didn't work, it's 
Eclipse's hot code replacement (or my brain, whichever)


Johannes Fahrenkrug wrote:


Hi,

one simple question: How do I manually get a feedbackPanel to display 
an errorMessage?
I have to catch an error that I can't catch with a validator, hence I 
have to set the error myself. I tried feedback.error(foo)
but the feedbackPanel doesn't display a thing (the feedbackPanel 
itself works, it does display errors when the validation of a field on 
the page fails). What can I do?


- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing 
 QA

Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-30 Thread Johannes Fahrenkrug

Hi,

I'm sorry that I have to nag again, but this issue is pretty important 
to our project and it would be great if someone could take a look at 
this issue (look at the message history below). Thank you very much in 
advance, guys!


- Johannes

Johannes Fahrenkrug wrote:


Sure, here we go:

This is the important part of the html file:

!-- Daten der Reiseteilnehmer --
 tr
   td colspan=5
 table border=0 cellpadding=0 cellspacing=0 width=100%
tr
  th colspan=4 align=leftMitreisende:/th
/tr
tr
  tdnbsp;/td
/tr
tr
   th align=leftPerson/th
   th align=leftGeschlecht/th
   th align=leftVorname/th
   th align=leftName/th
   th align=leftGeburtsdatum/th
 /tr
 tr wicket:id=paxRow
   td align=leftspan wicket:id=nameHelge/span/td
   td align=left
 select wicket:id=geschlecht
   option value=HerrHerr/option
   option value=FrauFrau/option
 /select/td
   td align=left
 input wicket:id=vorname size=20 type=text
   /td
   td align=left
 input wicket:id=nachname size=20 type=text
   /td
   td align=left
 input wicket:id=geburt size=8 type=text
   /td
 /tr

   /table
/td
  /tr
/table
!--  ende mitreisende-tabelle --

*** 


This is the important part of the wicket java page:

 public PaxAdressPage(Buchung buchung) {
   TabControlBorder tabControlBorder = new TabControlBorder(border, 
PAGE_NR);

   this.buchung = buchung;
 add(tabControlBorder);

   add(new Uebersicht(uebersicht, PAGE_NR, buchung));
 FeedbackPanel feedback = new FeedbackPanel(feedback);
   tabControlBorder.add(feedback);
   tabControlBorder.add(new InputForm(buchung, feedback));
 }

 static class InputForm extends Form {
   private static final long serialVersionUID = -276716485494111968L;

   private Buchung buchung;

   public InputForm(Buchung buchung, FeedbackPanel feedback) {
 super(adress_form);
 this.buchung = buchung;
 add(new HiddenField(nextPageName, new 
PropertyModel(buchung, nextPageName)));

 add(new ListView(paxRow, buchung.getPersonen()) {
   protected void populateItem(ListItem item) {
 Person person = (Person) item.getModelObject();
 ListString geschlechter = new ArrayListString();
 geschlechter.add(m);
 geschlechter.add(w);
 item.add(new Label(name, person.getName()));
 item.add(new DropDownChoice(geschlecht, new 
PropertyModel(person, geschlecht),

 geschlechter,
 new ChoiceRenderer(){
   public String getDisplayValue(Object object) {
 if (((String) object).equals(m)) {
   return männlich;
 } else {
   return weiblich;
 }
   };
 }));
 item.add(new TextFieldWithErrorIndicator(vorname, 
new PropertyModel(person, vorname)).required());
 item.add(new TextFieldWithErrorIndicator(nachname, new 
PropertyModel(person, nachname)).required());

 getSession().setLocale(new Locale(de, DE));
 item.add(new TextFieldWithErrorIndicator(geburt, new 
PropertyModel(person, geburt), Date.class).add(new 
TypeValidator(Date.class, new Locale(de, DE;

   }
 });
}
*** 



and I attached the TextFieldWithErrorIndicator class.
When I don't put the TextFields into a ListView, they get surrounded 
with a red border if they have an error (class error is being set). 
If you put them into a ListView (like in the code above), that doesn't 
happen. hasErrorMessage in the onRender method in 
TextFieldWithErrorIndicator is false when the field is in a ListView 
and true when it isn't (provided the validator returns an error, of 
course).
But the error messages get displayed in the feedbackPanel in both 
cases. I guess it might be a timing problem or something... maybe 
hasErrorMessage gets reset to false when the field is in a listView 
before the onRender method is called...


- Johannes

Eelco Hillenius wrote:


No, user list is fine too. I haven't found the time to look at it yet.
Could you give us a bit more code?

Eelco

On 8/26/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Should I maybe post this again on the developers list?

- Johannes

Johannes Fahrenkrug wrote:

  


Hi,

this is my problem:

I subclassed the TextField and created a 
TextFieldWithErrorIndicator class. I overrode the onRender method 
like so:


@Override
protected void onRender() {  String clazz

Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-31 Thread Johannes Fahrenkrug

Thank you so much for looking into this. It works like a charm now :).


By default, optimizeItemRemoval is set to false, which means that
ListView replaces all child components by new instances. The idea
behind this, is that you allways render the fresh data, and as people
usually use ListViews for displaying read-only lists (at least, that's
what we think), this is good default behaviour.
 


I don't know, though if it is realistic to assume that ListViews are
usually only used to display read-only data. Think about two very common
use cases: a shopping cart: you add n items to it, click on view 
cart and
a list view displays the items with a TextField next to each of them 
that shows the
quantity of the item and that you set to 0 if you want to remove the 
item from your

cart.

And the use case in our application is that you can choose how many ppl 
will book a trip
and that you have to be able to enter the names of each person. So I 
have to display
a list with n rows and each row has TextFields that hold the sex, name 
and birthdate of each person.


I think there are quite a few cases in which you need forms in listviews.
But then again: it works fine to have forms in listviews, just the 
hasErrorMessage didn't return the value

I expected :)

- Johannes


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Johannes Fahrenkrug

Davide,

you have to attach a model to the drop downlist that will hold the state 
of each list.

you could to this:

create a MyDate class with integer fields for day, month, hour and 
minute and the respective getters and setters.

then change your method so it takes a PropertyModel:

private FormComponent getIntegerDropDownChoice(String name, PropertyModel 
model, int start,
int stop) {
 DropDownChoice select = new DropDownChoice(name, model, getIntegerList(start, 
stop));
 return addRequiredValidator(select);
}

and add the dropdownchoices like so:

 MyDate myDate = new MyDate(); (well, of course you have to remember the MyDate 
instance across page calls and not build a new one each time...)

 section1.add(getIntegerDropDownChoice(dateContainer.day, new PropertyModel(myDate, 
day), 1, 31));
 section1.add(getIntegerDropDownChoice(dateContainer.month, new PropertyModel(myDate, 
month), 1, 12));
 section1.add(getIntegerDropDownChoice(dateContainer.hour, new PropertyModel(myDate, 
hour), 0, 23));
 section1.add(getIntegerDropDownChoice(dateContainer.minute, new PropertyModel(myDate, 
minute), 0, 59));


That should do the trick!

- Johannes

Davide Savazzi wrote:


I have created a Form with several DropDownChoice... some of them
update the model but after the submit they lose their state (the first
value is selected), others update the model only on the first submit,
and only one of them seems to work! :)


public Step1Form(String name, MyModel model) {
 super(name, new CompoundPropertyModel(model));

 Border section1 = new MyBorder(section1Border, Title); 
 section1.add(getIntegerDropDownChoice(dateContainer.day, 1, 31));

 section1.add(getIntegerDropDownChoice(dateContainer.month, 1, 12));
 section1.add(getIntegerDropDownChoice(dateContainer.hour, 0, 23));
 section1.add(getIntegerDropDownChoice(dateContainer.minute, 0, 59));
 section1.add(addRequiredValidator(new CityDropDownChoice(city)));
...

private FormComponent getIntegerDropDownChoice(String name, int start,
int stop) {
 DropDownChoice select = new DropDownChoice(name, getIntegerList(start, stop));
 return addRequiredValidator(select);
}


Textfields works, and a Panel in the same page is updated with the same model.
I can't figure out what I'm doing wrong with these DropDownChoice elements... :(
Cheers,
 





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaScript libraries overview

2005-09-16 Thread Johannes Fahrenkrug

Very nice! Thank you.

- Johannes

Martijn Dashorst wrote:


From the Ajaxian blog I got this link:
http://www.howtocreate.co.uk/jslibs/

Very handy...

Martijn





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Johannes Fahrenkrug

Hmmm

have you maybe just created the Border but not added it to the form/the 
page using add()?


- Johannes

Davide Savazzi wrote:


On 9/16/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:

 


you have to attach a model to the drop downlist that will hold the state
of each list.
   



Thanks Johannes, but using a PropertyModel for every DropDownChoice
doesn't work (the problem is the same).
I don't understand why the model is updated after the submit but the
dropdownchoice elements don't reflect these changes (another panel in
the page is correct)...

 





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] JavaScript for unchecking checkboxes

2005-10-17 Thread Johannes Fahrenkrug

Hi,

I have the following listview:

Person 1

[ ]   No insurance
[ ]   insurance 1
[ ]   insurance 2
[ ]   insurance 3


Person 2

[ ]   No insurance
[ ]   insurance 4
[ ]   insurance 5
[ ]   insurance 6


Person 3

[ ]   No insurance
[ ]   insurance 7
[ ]   insurance 8
[ ]   insurance 9

Every person can book individual insurances (because they depend on the 
price per person).
I'd like to do this: When a person selects No insurance, all the other 
insurances for that person should be unchecked, using JavaScript. When a 
person selects one of the insurances, though, the No insurance 
checkbox should be unchecked.


I know Wicket has JavaScript support to some degree. What would be the 
best solution? I don't think Ajax would make sense. But on the other 
hand, it's not so easy to identify the checkboxes that should be 
unchecked, because the names are being generated at runtime. Maybe there 
is an elegant way to dynamically generate ids for the checkboxes. They 
could consist of the number of the person and the number to the checkbox 
field. And I'd call the JS function with the id of the checked checkbox 
as a parameter, ie:


onSelect=uncheckBoxes(this.id)
where id might be 0-0 for the first person and the first checkbox (the 
No insurance one) or 2-1 for the 3rd person and the 2nd checkbox


I don't know, what would be the most elegant way to go?

- Johannes.




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaScript for unchecking checkboxes

2005-10-19 Thread Johannes Fahrenkrug

Eelco,

thank you for your quick reply. That sounds good. I'll try it asap, but 
I first have to take care of some other issues that are more urgent. 
I'll post my insights here as soon as I'm done/I've tried it.


- Johannes.

Eelco Hillenius wrote:


You could use Wicket for the generation of the ids like you said. I
would create a grouping component - maybe it prints the 'header' like
'Person 1' - that you have to add your checkboxes to. This grouping
component would contribute some generic javascript function (one
script for all instances should be doable) that e.g. takes the ids of
the checkboxes to switch. Or maybe you could even make some smarter
use of DOM; I'm not a big javascript expert. Anyway, you then to let
the individual checkboxes call this function in their onselect
handlers. Generate that calling code e.g. by attaching an attribute
modifier. You probably want to extend from CheckBox too, so instead of
using attribute modifiers you can also decide to do this in
onComponentTag.

Eelco

On 10/17/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I have the following listview:

Person 1

[ ]   No insurance
[ ]   insurance 1
[ ]   insurance 2
[ ]   insurance 3


Person 2

[ ]   No insurance
[ ]   insurance 4
[ ]   insurance 5
[ ]   insurance 6


Person 3

[ ]   No insurance
[ ]   insurance 7
[ ]   insurance 8
[ ]   insurance 9

Every person can book individual insurances (because they depend on the
price per person).
I'd like to do this: When a person selects No insurance, all the other
insurances for that person should be unchecked, using JavaScript. When a
person selects one of the insurances, though, the No insurance
checkbox should be unchecked.

I know Wicket has JavaScript support to some degree. What would be the
best solution? I don't think Ajax would make sense. But on the other
hand, it's not so easy to identify the checkboxes that should be
unchecked, because the names are being generated at runtime. Maybe there
is an elegant way to dynamically generate ids for the checkboxes. They
could consist of the number of the person and the number to the checkbox
field. And I'd call the JS function with the id of the checked checkbox
as a parameter, ie:

onSelect=uncheckBoxes(this.id)
where id might be 0-0 for the first person and the first checkbox (the
No insurance one) or 2-1 for the 3rd person and the 2nd checkbox

I don't know, what would be the most elegant way to go?

- Johannes.




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How do I set TextFields to be readonly?

2005-10-21 Thread Johannes Fahrenkrug

Hi,

is there a way to make TextFields readonly (you know, set the readonly 
attribute inside the input / tag).
I grepped through the wicket sources and couldn't find the string 
readonly being used anywhere, so I figured I better ask :).


- Johannes.


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I set TextFields to be readonly?

2005-10-21 Thread Johannes Fahrenkrug

Great, thank you!

I think I like the disabled attribute even more, because it sets the 
background color of the textfield to a light grey.
And you can keep the text in the textfield from turning grey with this 
little piece of CSS:


input[disabled] {color:black;}

Thanks again.

- Johannes.

Johan Compagner wrote:

use a attributemodifier for setting readonly=readonly attribute on 
youre textfield.


johan


On 10/21/05, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,

is there a way to make TextFields readonly (you know, set the
readonly
attribute inside the input / tag).
I grepped through the wicket sources and couldn't find the string
readonly being used anywhere, so I figured I better ask :).

- Johannes.


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Why is RadioChoice.onComponentTagBody() declared as final?

2005-10-24 Thread Johannes Fahrenkrug

Hi,

I'm wondering why RadioChoice.onComponentTagBody() is declared as final.
It would be great if I could override that method. Here's why:

I have custom classes for TextFields, DropDownChoices and so on. These 
custom classes draw a span class=error or a
span class=no-error around the components depending on if they have 
errors or not. That enables me to draw a red line around the components 
with CSS to highlight them to the user. I do that be overriding the 
onRender methods for these components.


In an easy case, that would also work with a RadioChoice.
My RadioChoice items are not right next to each other, instead they are 
embedded in a table (by setting the prefix to th align=\left\ and 
the suffix to /th.
If I would override the onRender method to the span tags around the 
rendered component is this case, I'd get garbled html.


So the nicest thing would be to override onComponentTagBody and set the 
span tags around the individual RadioChoice items.


Is there a reason why it is declared as final?

I know there's another way to solve this: set the prefix according to 
the error status, for example th align=\left\ class=\error\ but 
I'd rather have my own class that overrides onComponentTagBody and does 
that automatically.


- Johannes.


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] replace ognl.

2005-10-27 Thread Johannes Fahrenkrug

I'm also +1 for replacing ognl.
I'm not trying to say that Wicket is slow, not at all, but any speed 
improvement is .an improvement :)!


- Johannes

Johan Compagner wrote:


Hi

I have written a replacement of OGNL when i test it with a very simple 
test (The FormInput example)

then i see quite some improvements in cpu speedups and mem improvements

Around 40% speed increase for a submitting the forminput example page 
20 times

and only 1/5 of the memory garbage is generated (50MB against 10MB)

The question is what do you guys use of ognl? Can i completely drop it 
or must i make it an option so
that you can switch in youre application for all using ognl or the 
homebrew wicket impl.
Or make seperate classes (like AbstractPropertyModel) but this is not 
really doable because then all the

sub classes must also be copied...(Like CompoundXX)

What i do support now is this:

person.name http://person.name (plain properties)
person.addresses.0.street (addresses is a list and i take the first 
element)
person.addresses.homeaddress.street (addresses is map and i take the 
address with the key 'homeaddress' out of it)


so maps and list are seen and the next part of the expression is then 
the key or the index you can also put values in a map

or append/set to a list:

person.addresses.homeaddress = new Address()
person.addresses.10 = new Address()

if the list size is smaller then 10 then it will appends null to make 
it that size.


addresses can also be an Array but then it won't be able to grow.

Ofcourse the person.address.street will just be null if address is 
null, no exception will be thrown
if you try to set something on a null object a exception is still 
thrown, Maybe we could make some null handlers for that somehow that 
are easy useable.


So can people live with this? Does anybody uses something different of 
ognl?


johan





---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] One class, several html templates (setVariation()?)

2005-11-22 Thread Johannes Fahrenkrug

Hi,

We're building an online booking application using Wicket. Our company 
offers trips through 2 different brands. The application will be exactly 
the same, but needs 2 different designs.
I was nice and searched the archive for this topic and came up with the 
get/setVariation solution, but I can't find the setVariation method 
anywhere in the 1.1 sources.


So, how do I solve this? Is the an implementation to solve this problem?

Thank you!

Cheers,

Johannes.


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] One class, several html templates (setVariation()?)

2005-11-22 Thread Johannes Fahrenkrug

Ok, thank you Christian and Juergen, I'll try using style!

- Johannes.

Juergen Donnerstag wrote:


Yes, Christian is right. Variation is something different. Style
should be what you are looking for.

Juergen

On 11/22/05, Christian Essl [EMAIL PROTECTED] wrote:
 


I am not sure but I think what you are looking for is Component.getStyle()
and Session.getStyle().
See in MarkupCache.getMarkup() ==markupKey(). According to this the
format should be name_local_style.html. (Have not tested it so).

Christian

On Tue, 22 Nov 2005 11:37:12 +0100, Johannes Fahrenkrug [EMAIL PROTECTED]
wrote:

   


Hi,

We're building an online booking application using Wicket. Our company
offers trips through 2 different brands. The application will be exactly
the same, but needs 2 different designs.
I was nice and searched the archive for this topic and came up with the
get/setVariation solution, but I can't find the setVariation method
anywhere in the 1.1 sources.

So, how do I solve this? Is the an implementation to solve this problem?

Thank you!

Cheers,

Johannes.


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 



--
Christian Essl





___
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] One class, several html templates (setVariation()?)

2005-11-22 Thread Johannes Fahrenkrug

Works like a charm!

getSession().setStyle(soylent);

will use PageName_soylent.html if it exists, otherwise it will use 
PageName.html.


- Johannes.

Johannes Fahrenkrug wrote:


Ok, thank you Christian and Juergen, I'll try using style!

- Johannes.

Juergen Donnerstag wrote:


Yes, Christian is right. Variation is something different. Style
should be what you are looking for.

Juergen

On 11/22/05, Christian Essl [EMAIL PROTECTED] wrote:
 

I am not sure but I think what you are looking for is 
Component.getStyle()

and Session.getStyle().
See in MarkupCache.getMarkup() ==markupKey(). According to this the
format should be name_local_style.html. (Have not tested it so).

Christian

On Tue, 22 Nov 2005 11:37:12 +0100, Johannes Fahrenkrug [EMAIL PROTECTED]
wrote:

  


Hi,

We're building an online booking application using Wicket. Our company
offers trips through 2 different brands. The application will be 
exactly

the same, but needs 2 different designs.
I was nice and searched the archive for this topic and came up with 
the

get/setVariation solution, but I can't find the setVariation method
anywhere in the 1.1 sources.

So, how do I solve this? Is the an implementation to solve this 
problem?


Thank you!

Cheers,

Johannes.


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Christian Essl





___
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier 
anmelden: http://mail.yahoo.de




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Security hole?

2005-11-24 Thread Johannes Fahrenkrug

Hi,

I have built several forms using Wicket. Just out of curiosity I tried 
to enter the following line into a text field:


scriptalert('Soylent Green Is People');/script test=

When I reload the form, the JavaScript code gets executed. Shouldn't 
such special characters be converted to HTML entities when the page gets 
parsed? (You know lt; instead of  and so forth)


Cheers,

Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Security hole?

2005-11-24 Thread Johannes Fahrenkrug



Johan Compagner wrote:


so when i have this:

x = 6  7  10  5

as text in my model it gets encoded into html? (And thats what i see?)
That is something i don't want


No, I think this would be the right thing to do:
the value of the model is x = 6  7  10  5
but as soon as wicket renders the page and the value of the input field 
that the model is attached to,

it should render the value as x = 6 lt; 7 amp; 10 gt; 5
so that the html source will read

input type=text value=x = 6 lt; 7 amp; 10 gt; 5
instead of
input type=text value=x = 6  7  10  5

special chars should only be RENDERED as html entities, not saved as 
html entities in the model.




The problem you describe is i think the  at the beginning that makes 
it all possible,



(else it was just a text value of the value attribute)


the  makes it possible to break out of the value parameter of the input 
field. That could pose a security risk, though.
Imagine this: You have a login form that saves the username in case the 
login failed and the page is reloaded.

Some malicious person opens the login page and enters this:

 
onChange=document.form[0].action='http://loginAndPasswordHarvester.com' 
dummy=


He sends off the form, it gets reloaded because the login is invalid 
and he leaves the terminal for someone else to login.
When someone else trys to log in, their username and password get sent 
to a different server.


So I guess rendering special characters as html entities might be a good 
idea.


Cheers,

Johannes.






johan


On 11/24/05, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,

I have built several forms using Wicket. Just out of curiosity I
tried
to enter the following line into a text field:

scriptalert('Soylent Green Is People');/script test=

When I reload the form, the JavaScript code gets executed. Shouldn't
such special characters be converted to HTML entities when the
page gets
parsed? (You know lt; instead of  and so forth)

Cheers,

Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Security hole?

2005-11-25 Thread Johannes Fahrenkrug

Well, I also had a share in pointing it out :)

Laurent PETIT wrote:

Yes, I'm getting good at pointing bugs / enhancement proposal on the 
Form component ;-)


On 11/24/05, *Johan Compagner* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


yes you are right that is a bug.
I will fix this.
I have currently a lot of changes for the Form component so that
is just one more :)

johan



On 11/24/05, *Laurent PETIT* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

This problem is not only a security problem, but also a bug :
 
Indeed, please go to the Wicket Examples, and try this:

(http://www.wicket-library.com/wicket-examples/index.html
http://www.wicket-library.com/wicket-examples/index.html)
- enter this in the first textfield of the forminput example :
My team's name is Wicket's team
- Then erase the value of the Integer textfield (in order to
generate an invalid input).
- Submit the form
 
You can see that the form will not be correctly re-displayed (

check the content of the String textfield)
 
The problem may be solved by replacing the

FormComponent.getValue() method return statement :
 
return NO_INVALID_INPUT.equals(invalidInput) ? getModelValue()

: invalidInput;

by this one:

return NO_INVALID_INPUT.equals(invalidInput) ? getModelValue()
: Strings.escapeMarkup(invalidInput);
 
( Please note that Component.getModelObjectAsString() (html)

escapes the value of the model)
 
HTH,
 
-- 
Laurent


 
On 11/24/05, *Johannes Fahrenkrug* [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED] wrote:



Johan Compagner wrote:


so when i have this:

x = 6  7  10  5

as text in my model it gets encoded into html? (And thats

what i see?)

That is something i don't want


No, I think this would be the right thing to do:
the value of the model is x = 6  7  10  5
but as soon as wicket renders the page and the value of
the input field
that the model is attached to,
it should render the value as x = 6 lt; 7 amp; 10 gt; 5
so that the html source will read

input type=text value=x = 6 lt; 7 amp; 10 gt; 5
instead of
input type=text value=x = 6  7  10  5

special chars should only be RENDERED as html entities,
not saved as
html entities in the model.



The problem you describe is i think the  at the

beginning that makes

it all possible,



(else it was just a text value of the value attribute)


the  makes it possible to break out of the value
parameter of the input
field. That could pose a security risk, though.
Imagine this: You have a login form that saves the
username in case the
login failed and the page is reloaded.
Some malicious person opens the login page and enters this:


onChange=document.form[0].action='
http://loginAndPasswordHarvester.com
http://loginandpasswordharvester.com/'
dummy=

He sends off the form, it gets reloaded because the
login is invalid
and he leaves the terminal for someone else to login.
When someone else trys to log in, their username and
password get sent
to a different server.

So I guess rendering special characters as html entities
might be a good
idea.

Cheers,

Johannes.






johan


On 11/24/05, *Johannes Fahrenkrug*  [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]

mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

Hi,

I have built several forms using Wicket. Just out of

curiosity I

tried
to enter the following line into a text field:

scriptalert('Soylent Green Is People');/script

test=


When I reload the form, the JavaScript code gets

executed. Shouldn't

such special characters be converted to HTML entities

when the

page gets
parsed? (You know lt; instead of  and so forth)

Cheers,

Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you

grep through

log files
for problems?  Stop!  Download the new AJAX search

engine that makes

searching your log files as easy as surfing

the  web.  DOWNLOAD

SPLUNK!
   

http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
   

http://ads.osdn.com/?ad_id

[Wicket-user] Repeating items without using a ListView?

2005-11-25 Thread Johannes Fahrenkrug

Hi,

I had a conversation yesterday with some webdesigners that looked at the 
html code that my wicket application produces.
They said that a lot would have to be changed in order for it to be 
XHTML compliant. One thing they said was that you should only use tables 
when it really is a table that you want to display. I use ListViews in a 
couple of cases to repeat items. For example overviews of customers' 
bookings: I have a Listview that looks something like this:


tabletr wicket:id=customerBookingtd
 table
   trtdName:/tdtdspan wicked:id=custNameJohnny 
Cash/span/td/tr
   trtdAirport:/tdtdspan 
wicked:id=custAirportSFO/span/td/tr
   trtdInsurance:/tdtdspan 
wicked:id=custInsurancesomething/span/td/tr

   trtdPrice:/tdtdspan wicked:id=custPrice999/span/td/tr
 /table
/td/tr/table

That enables me to repeat the inner table for each customer.
Is there a way to do this without using a ListView?

Cheers,

Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Security hole?

2005-11-25 Thread Johannes Fahrenkrug

That's true :)

L.J.J. - the merciless Wicket bughunters. Resistance is futile.  ;-)

- Johannes.


Laurent PETIT wrote:


On 11/25/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Well, I also had a share in pointing it out :)
   




Yeah, with you pointing the bugs and me suggesting implementation
fixes, that's a good team indeed ;-)

By the way,

it seems that the fix has already been submitted in cvs, thanks to Johan.

--
Laurent


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Repeating items without using a ListView?

2005-11-25 Thread Johannes Fahrenkrug

Juergen Donnerstag wrote:


Not without ListView, but ListView is not all limited to tables. You
can attach it to any tag div, span, ul.
 


Great! That's good to know, thank you.
XHTML compliance, here we come!

- Johannes.


Juergen

On 11/25/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I had a conversation yesterday with some webdesigners that looked at the
html code that my wicket application produces.
They said that a lot would have to be changed in order for it to be
XHTML compliant. One thing they said was that you should only use tables
when it really is a table that you want to display. I use ListViews in a
couple of cases to repeat items. For example overviews of customers'
bookings: I have a Listview that looks something like this:

tabletr wicket:id=customerBookingtd
table
  trtdName:/tdtdspan wicked:id=custNameJohnny
Cash/span/td/tr
  trtdAirport:/tdtdspan
wicked:id=custAirportSFO/span/td/tr
  trtdInsurance:/tdtdspan
wicked:id=custInsurancesomething/span/td/tr
  trtdPrice:/tdtdspan wicked:id=custPrice999/span/td/tr
/table
/td/tr/table

That enables me to repeat the inner table for each customer.
Is there a way to do this without using a ListView?

Cheers,

Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Repeating items without using a ListView?

2005-11-25 Thread Johannes Fahrenkrug

Dorel Vaida wrote:

What does ListView have to do with your HTML output ? From what I 
know, I've repeated divs, spans, not only TRs with ListView so I 
suppose it applies virtually to any HTMl tag so it depends on you to 
make it XHTML compatible. I suppose :-)



Correctemundo: That's what Juergen told me too :).


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Johannes Fahrenkrug

Thank you for your reply.

Eelco Hillenius wrote:


The logical place here would be your Application/ WebApplication
object. 
 


I looked into that, but are these values accessible from every page?

- Johannes.



On 12/4/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I have a short question: What is the Wicket way of making configuration
values accessible throughout the application?
This it the scenario: My application can run either in development or in
production mode. In development mode it should connect to a different
RMI server than in production mode. Multiple pages have to connect to
the RMI server. Is there a best practice of making certain values
accessible from every Page? (making my own page that extends Page and
holds such values comes to mind, but is there a different way?)

- Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Johannes Fahrenkrug

Eelco Hillenius wrote:


Yep. You can get the application from several places, like
Component.getApplication (and note that Pages are Components too) or
as a falltrhough, when in a request, you can always call
Application.get() (slightly less efficient though, as that is done by
threadlocal map lookup). And you have to cast the application object
to your specific class of course.

Eelco

 


Great! That sounds like a winner! Thank you!

- Johannes.

 


I looked into that, but are these values accessible from every page?

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Safari caching

2005-12-23 Thread Johannes Fahrenkrug

Hi,

what about the KDE browser Konqueror? Aren't Safari and Konqueror both 
based on WebKit?

Maybe Konqueror has the same problem...

- Johannes.

Ralf Ebert wrote:


Hi,

I tried to investigate this problem a bit further after a user
complaining about a bug which seems to be related to this (I found
exceptions in the log like No component found for 1:xxx:3:linkYyy).
This is very strange, Safari caches all pages which only have a
?path=xxx page (when going back to them it doesn't reload), but it
reloads all pages which have urls like ?bookmarkablePage=xxx. I cannot
explain this, both have only one request parameter... Setting no-cache
headers or meta-tags doesn't help at all. I'm a bit stuck with this
one, especially because it seems to happen not only when using the
back button... Any ideas (except using Firefox) :) ?

Ralf


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form/Panel/WebMarkupContainer Problems

2006-01-02 Thread Johannes Fahrenkrug

Juergen,

you're right, my simplified example does work. my slightly more complex 
real application has a similar case that rises the problem I talked 
about. I am still investigating and I'm trying to build an example that 
demonstrates the issue.

This it what I have so far:

I think in MarkupContainer.java, in children_get, the IDs of the direct 
children are checked, but not the children of the children.

I added a comment at the spot in question.

private final Component children_get(final String id)
   {
   if (children instanceof Component)
   {
   final Component component = (Component)children;
   if (component.getId().equals(id))
   {
   return component;
   }
   }
   else
   {
   if (children != null)
   {
   final Component[] components = (Component[])children;
   for (int i = 0; i  components.length; i++)
   {


//At this point,  I find the WebMarkupContainer. The ID of the 
WebMarkupContainer is checked, doesn't match the id of the TextField,
//and hence null gets returned. If the method would dive into the 
children of the WebMarkupContainer it would find the TextField and

//return it.

   if (components[i].getId().equals(id))
   {
   return components[i];
   }
   }
   }
   }
   return null;
   }

Please let me know what you think. I will try to fabricate a working 
example and post it here as soon as I am successful.


- Johannes.

Juergen Donnerstag wrote:


What is the error message? What exactly fails? At a first glance it
looks good to me.

Juergen

On 1/2/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I have a Page with one big form. The Form has different sections that I
always want to render, but sometimes want to hide on the client side
with the CSS visibility=hidden style.

This is the html that WORKS:

...
form wicket:id=form
input wicket:id
input wicket:id

div id=panel
  input type=text wicket:id=name
  input type=text wicket:id=city
/div
/form
...

I subclass the form an add the textFields directly to the form.
Everything's fine.

But when I give the div a wicket:id ...
div id=panel wicket:id=panel

and add the name and city textFields to the panel and the panel to the
form, the textFields fail to render.
This is the code (inside the subclassed form's constructor)

WebMarkupContainer panel = new WebMarkupContainer(panel);
panel.add(new TextField(name, new PropertyModel(model, name)));
panel.add(new TextField(city, new PropertyModel(model, city)));
add(panel);

What am I doing wrong?

- Johannes.





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form/Panel/WebMarkupContainer Problems

2006-01-02 Thread Johannes Fahrenkrug

ARG! It is Monday morning.
wicHet:id boohoohoo.

But there's still one thing I'm wondering about: Wicket complained about 
not being able to find the TextField component, whereas
I was adding a WebMarkupContainer that didn't have a corresponding 
wicket:id, thanks to my typo.
Wouldn't an error message about the MarkupContainer's missing 
corresponding html be more appropriate at this point?


Anyway, it was all my fault grrr. :)

Off to lunch!

- Johannes.

Juergen Donnerstag wrote:


children_get() deliberately iterates over is direct children only. I
don't think this is the reason. May be you can copy the exception,
that sometimes helps.

Missing close tags? Quotes not closed? Are you able to preview the markup?

Juergen

On 1/2/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Juergen,

you're right, my simplified example does work. my slightly more complex
real application has a similar case that rises the problem I talked
about. I am still investigating and I'm trying to build an example that
demonstrates the issue.
This it what I have so far:

I think in MarkupContainer.java, in children_get, the IDs of the direct
children are checked, but not the children of the children.
I added a comment at the spot in question.

private final Component children_get(final String id)
  {
  if (children instanceof Component)
  {
  final Component component = (Component)children;
  if (component.getId().equals(id))
  {
  return component;
  }
  }
  else
  {
  if (children != null)
  {
  final Component[] components = (Component[])children;
  for (int i = 0; i  components.length; i++)
  {


//At this point,  I find the WebMarkupContainer. The ID of the
WebMarkupContainer is checked, doesn't match the id of the TextField,
//and hence null gets returned. If the method would dive into the
children of the WebMarkupContainer it would find the TextField and
//return it.

  if (components[i].getId().equals(id))
  {
  return components[i];
  }
  }
  }
  }
  return null;
  }

Please let me know what you think. I will try to fabricate a working
example and post it here as soon as I am successful.

- Johannes.

Juergen Donnerstag wrote:

   


What is the error message? What exactly fails? At a first glance it
looks good to me.

Juergen

On 1/2/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:


 


Hi,

I have a Page with one big form. The Form has different sections that I
always want to render, but sometimes want to hide on the client side
with the CSS visibility=hidden style.

This is the html that WORKS:

...
form wicket:id=form
input wicket:id
input wicket:id

div id=panel
 input type=text wicket:id=name
 input type=text wicket:id=city
/div
/form
...

I subclass the form an add the textFields directly to the form.
Everything's fine.

But when I give the div a wicket:id ...
div id=panel wicket:id=panel

and add the name and city textFields to the panel and the panel to the
form, the textFields fail to render.
This is the code (inside the subclassed form's constructor)

WebMarkupContainer panel = new WebMarkupContainer(panel);
panel.add(new TextField(name, new PropertyModel(model, name)));
panel.add(new TextField(city, new PropertyModel(model, city)));
add(panel);

What am I doing wrong?

- Johannes.





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



   


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


 



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

[Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread Johannes Fahrenkrug

Hi,

how do I remove an AttributeModifier? I know how to change the value, 
but how to I remove it completely?
The context: I have a DropDownChoice, and I want to set 
disabled=disabled which works fine. But now I want to completely 
remove disabled=disabled from the tag.


- Johannes


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread Johannes Fahrenkrug

That's it! Thanks a lot! :)

- Johannes.

karthik Guru wrote:


can you try component.setIgnoreAttributeModifier(false);

On 4/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

how do I remove an AttributeModifier? I know how to change the value,
but how to I remove it completely?
The context: I have a DropDownChoice, and I want to set
disabled=disabled which works fine. But now I want to completely
remove disabled=disabled from the tag.

- Johannes


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




--
-- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] CSS error with Opera and wicket:border

2006-05-04 Thread Johannes Fahrenkrug

Hi,

It took me a while to track down why Opera makes my Wicket application 
look like crap.

Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded by 
wicket:border tags, Opera doesn't apply the CSS class to the td tag. 
If you define a general CSS class like

.someclass
it works (or when there are no wicket:border tags.

Everything is fine when using Firefox, Safari or even IE.

My question is: Can I somehow keep the wicket:border tags from showing 
up in the rendered markup?


I'm using wicket-1.1.1.

I've attached a file that demonstrates the problem (like I said: only 
happens with Opera).


Cheers,

Johannes





  
Test1
Test2
  






Re: [Wicket-user] CSS error with Opera and wicket:border

2006-05-04 Thread Johannes Fahrenkrug

Juergen,

that did the trick! Thank you!

- Johannes

Juergen Donnerstag wrote:


some where in the the settings. ISettings.setStripWicketTag(boolean)
or something like that

Juergen

On 5/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:



Hi,

It took me a while to track down why Opera makes my Wicket application
look like crap.
Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded by
wicket:border tags, Opera doesn't apply the CSS class to the td tag.
If you define a general CSS class like
.someclass
it works (or when there are no wicket:border tags.

Everything is fine when using Firefox, Safari or even IE.

My question is: Can I somehow keep the wicket:border tags from showing
up in the rendered markup?

I'm using wicket-1.1.1.

I've attached a file that demonstrates the problem (like I said: only
happens with Opera).

Cheers,


Johannes



 Test1 Test2




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo

http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS error with Opera and wicket:border

2006-05-04 Thread Johannes Fahrenkrug



Yes. See here:

http://www.wicket-wiki.org.uk/wiki/index.php/Remove_wicket_markup


Thank you.




But your HTML is broken. There is no doctype declaration and the style 
tag is incomplete.


I know, it's just a demostration, not the real thing.



If you declare the document as XHTML, the wicket tags *should* be 
ignored because they are in a different namespace. If they are not 
ignored, this is a bug in Opera, and should be reported.


Already reported the bug, but it's fixed in Opera 9 beta.




Timo


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS error with Opera and wicket:border

2006-05-04 Thread Johannes Fahrenkrug

Btw, Opera 9.0beta doesn't have this problem anymore.


Hi,

It took me a while to track down why Opera makes my Wicket application 
look like crap.

Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded 
by wicket:border tags, Opera doesn't apply the CSS class to the td 
tag. If you define a general CSS class like

.someclass
it works (or when there are no wicket:border tags.

Everything is fine when using Firefox, Safari or even IE.

My question is: Can I somehow keep the wicket:border tags from 
showing up in the rendered markup?


I'm using wicket-1.1.1.

I've attached a file that demonstrates the problem (like I said: only 
happens with Opera).


Cheers,

Johannes



Test1   Test2





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SPAM: testing

2006-05-16 Thread Johannes Fahrenkrug

I got the message, but Thunderbird thinks its junk :)

Alvar Lumberg wrote:


Hello, this is a test e-mail. I'm sending it because two previous
messages didn't get through. Nothing to see here, press delete.
Sorry.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo

http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Show pages dependent on client's IP address

2006-07-04 Thread Johannes Fahrenkrug
Hi,

is it possible to show different pages dependent on what IP the request 
comes from?

- Johannes

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-04 Thread Johannes Fahrenkrug
Johan,

Thank you. Actually what I really need to know is this: How do I find 
out what IP the request comes from?
Does only Jetty know the http request details or are they also 
accessible from within Wicket?

- Johannes

Johan Compagner wrote:

 if you set different pages as a response page  or set a different style
 both dependend on the ip you get then yes.

 johan


 On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 is it possible to show different pages dependent on what IP the
 request
 comes from?

 - Johannes

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-05 Thread Johannes Fahrenkrug
Thank you very much, Johan. I failed to mention that I'm still on 
Wicket-1.1.1. Is there a way to do this with
Wicket-1.1.1?

- Johannes

Johan Compagner wrote:

 remote address can be get from the http request (of the WebRequest 
 from the RequestCycle)
 The snoop servlet does this

 http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
  
 http://www.rawbw.com/%7Edavidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html



 On 7/4/06, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Johan,

 Thank you. Actually what I really need to know is this: How do I find
 out what IP the request comes from?
 Does only Jetty know the http request details or are they also
 accessible from within Wicket?

 - Johannes

 Johan Compagner wrote:

  if you set different pages as a response page  or set a
 different style
  both dependend on the ip you get then yes.
 
  johan
 
 
  On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  is it possible to show different pages dependent on what IP the
  request
  comes from?
 
  - Johannes
 
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to
 make your
  job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-05 Thread Johannes Fahrenkrug
Johan,

thanks a lot. For anyone who was following this, here's how I'm getting 
the IP of the client now:

HttpServletRequest httpRequest = 
((ServletWebRequest)getRequest()).getHttpServletRequest();
   
System.out.println(httpRequest.getRemoteAddr());

- Johannes

Johan Compagner wrote:

 yes just get the real http request (just cast the wicket.Request to 
 WebRequest and get the HttpRequest from it)

 On 7/5/06, *Johannes Fahrenkrug*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Thank you very much, Johan. I failed to mention that I'm still on
 Wicket-1.1.1. Is there a way to do this with
 Wicket-1.1.1?

 - Johannes

 Johan Compagner wrote:

  remote address can be get from the http request (of the WebRequest
  from the RequestCycle)
  The snoop servlet does this
 
 
 
 http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
 
 http://www.rawbw.com/%7Edavidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html

 
 
 http://www.rawbw.com/%7Edavidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
 
 
 
  On 7/4/06, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Johan,
 
  Thank you. Actually what I really need to know is this: How
 do I find
  out what IP the request comes from?
  Does only Jetty know the http request details or are they also
  accessible from within Wicket?
 
  - Johannes
 
  Johan Compagner wrote:
 
   if you set different pages as a response page  or set a
  different style
   both dependend on the ip you get then yes.
  
   johan
  
  
   On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
   Hi,
  
   is it possible to show different pages dependent on
 what IP the
   request
   comes from?
  
   - Johannes
  
   Using Tomcat but need to do more? Need to support web
 services,
   security?
   Get stuff done quickly with pre-integrated technology to
  make your
   job easier
   Download IBM WebSphere Application Server v.1.0.1 based on
  Apache
   Geronimo
  
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  
  Using Tomcat but need to do more? Need to support web
 services,
  security?
  Get stuff done quickly with pre-integrated technology to make
  your job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
  
 
 
  
  ___
  Wicket-user mailing list
   Wicket-user

[Wicket-user] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug

Hi!

I've asked so many questions on this list and got so many friendly and 
helpful answers, it's time to give something back.
This Saturday I migrated a big web application from Wicket 1.1.1 to 
1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work 
with 1.2, so I had to find another solution. I found Igor's suggestions 
for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go 
with Sweet Titles.


Sweet titles is great, but the problem is that it automatically attaches 
tooltips to all a, abbr and acronym tags (correct me if I'm wrong, 
but I am sure about the a tag). I didn't want that, though. I needed 
tooltips for checkboxes, and I needed to explicitly say which element 
should show a tooltip and which element shouldn't. So I altered the 
sweetTitles.js a bit and this is what I came up with:


1) Download SweetTitles from 
http://www.dustindiaz.com/downloads/sweet-titles.zip

2) Replace sweetTitles.js with the one I attached to this email.
3) At the moment the replacement sweetTitles.js should be able to add 
tooltips to the following elements: 'input', 'td', 'tr', 'textarea', 
'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or 
too much), edit the tipElements array at the top of the file.
4) Put the 2 JavaScript files somewhere into your package (ie 
org.example.app.javascript)
5) Either put the CSS file into your package as well or add the contents 
to a CSS file you already use in your application
6) Add this to the head section of the html file you want to use 
tooltips in:


wicket:link
 script wicket:id=addEventJs/script
 script wicket:id=sweetTitlesJs/script
/wicket:link

7) Add the JavaScript resources to your page:

add(new JavaScriptReference(addEventJs, new 
PackageResourceReference(YourApplication.get(), YourPage.class, 
javascript/addEvent.js)));
add(new JavaScriptReference(sweetTitlesJs, new 
PackageResourceReference(YourApplication.get(), YourPage.class, 
javascript/sweetTitles.js)));


8) Add the Attribute showtooltip to the element that should show a 
tooltip (only elements with this attibute will show tooltips):


someWicketComponent.add(new AttributeModifier(showtooltip, true, new 
Model(true)));


9) Either add the content of the tooltip to the element in the html 
file, using the title attribute:


input type=checkbox wicket:id=myCheckbox title=Hi, I am a tooltip./

...or add dynamic tooltip texts using an AttributeModifier:

someWicketComponent.add(new AttributeModifier(title, true, new 
Model(Hi, I am a dynamic tooltip.)));


10) There is no step 10

I hope this is helpful to somebody. Any improvements are very much 
encouraged, of course!


- Johannes
  



sweetTitles.js
Description: JavaScript source
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug
Gwyn Evans wrote:

10) There is no step 10


11) Agree to suggestion in step 10 and do it :)

I'll do that right now.


How about Document it on the Wiki! :-)

/Gwyn

On 08/08/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
  

Hi!

I've asked so many questions on this list and got so many friendly and
helpful answers, it's time to give something back.
This Saturday I migrated a big web application from Wicket 1.1.1 to
1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work
with 1.2, so I had to find another solution. I found Igor's suggestions
for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go
with Sweet Titles.

Sweet titles is great, but the problem is that it automatically attaches
tooltips to all a, abbr and acronym tags (correct me if I'm wrong,
but I am sure about the a tag). I didn't want that, though. I needed
tooltips for checkboxes, and I needed to explicitly say which element
should show a tooltip and which element shouldn't. So I altered the
sweetTitles.js a bit and this is what I came up with:

1) Download SweetTitles from
http://www.dustindiaz.com/downloads/sweet-titles.zip
2) Replace sweetTitles.js with the one I attached to this email.
3) At the moment the replacement sweetTitles.js should be able to add
tooltips to the following elements: 'input', 'td', 'tr', 'textarea',
'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or
too much), edit the tipElements array at the top of the file.
4) Put the 2 JavaScript files somewhere into your package (ie
org.example.app.javascript)
5) Either put the CSS file into your package as well or add the contents
to a CSS file you already use in your application
6) Add this to the head section of the html file you want to use
tooltips in:

wicket:link
  script wicket:id=addEventJs/script
  script wicket:id=sweetTitlesJs/script
/wicket:link

7) Add the JavaScript resources to your page:

add(new JavaScriptReference(addEventJs, new
PackageResourceReference(YourApplication.get(), YourPage.class,
javascript/addEvent.js)));
add(new JavaScriptReference(sweetTitlesJs, new
PackageResourceReference(YourApplication.get(), YourPage.class,
javascript/sweetTitles.js)));

8) Add the Attribute showtooltip to the element that should show a
tooltip (only elements with this attibute will show tooltips):

someWicketComponent.add(new AttributeModifier(showtooltip, true, new
Model(true)));

9) Either add the content of the tooltip to the element in the html
file, using the title attribute:

input type=checkbox wicket:id=myCheckbox title=Hi, I am a tooltip./

...or add dynamic tooltip texts using an AttributeModifier:

someWicketComponent.add(new AttributeModifier(title, true, new
Model(Hi, I am a dynamic tooltip.)));

10) There is no step 10

I hope this is helpful to somebody. Any improvements are very much
encouraged, of course!

- Johannes




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user








  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug
Ok, I added the guide to the wiki:

http://www.wicket-wiki.org.uk/wiki/index.php/How_to_add_tooltips

Enjoy!

- Johannes

Johannes Fahrenkrug wrote:

Gwyn Evans wrote:

  

10) There is no step 10
   

  

11) Agree to suggestion in step 10 and do it :)

I'll do that right now.

  

How about Document it on the Wiki! :-)

/Gwyn

On 08/08/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 



Hi!

I've asked so many questions on this list and got so many friendly and
helpful answers, it's time to give something back.
This Saturday I migrated a big web application from Wicket 1.1.1 to
1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work
with 1.2, so I had to find another solution. I found Igor's suggestions
for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go
with Sweet Titles.

Sweet titles is great, but the problem is that it automatically attaches
tooltips to all a, abbr and acronym tags (correct me if I'm wrong,
but I am sure about the a tag). I didn't want that, though. I needed
tooltips for checkboxes, and I needed to explicitly say which element
should show a tooltip and which element shouldn't. So I altered the
sweetTitles.js a bit and this is what I came up with:

1) Download SweetTitles from
http://www.dustindiaz.com/downloads/sweet-titles.zip
2) Replace sweetTitles.js with the one I attached to this email.
3) At the moment the replacement sweetTitles.js should be able to add
tooltips to the following elements: 'input', 'td', 'tr', 'textarea',
'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or
too much), edit the tipElements array at the top of the file.
4) Put the 2 JavaScript files somewhere into your package (ie
org.example.app.javascript)
5) Either put the CSS file into your package as well or add the contents
to a CSS file you already use in your application
6) Add this to the head section of the html file you want to use
tooltips in:

wicket:link
 script wicket:id=addEventJs/script
 script wicket:id=sweetTitlesJs/script
/wicket:link

7) Add the JavaScript resources to your page:

add(new JavaScriptReference(addEventJs, new
PackageResourceReference(YourApplication.get(), YourPage.class,
javascript/addEvent.js)));
add(new JavaScriptReference(sweetTitlesJs, new
PackageResourceReference(YourApplication.get(), YourPage.class,
javascript/sweetTitles.js)));

8) Add the Attribute showtooltip to the element that should show a
tooltip (only elements with this attibute will show tooltips):

someWicketComponent.add(new AttributeModifier(showtooltip, true, new
Model(true)));

9) Either add the content of the tooltip to the element in the html
file, using the title attribute:

input type=checkbox wicket:id=myCheckbox title=Hi, I am a tooltip./

...or add dynamic tooltip texts using an AttributeModifier:

someWicketComponent.add(new AttributeModifier(title, true, new
Model(Hi, I am a dynamic tooltip.)));

10) There is no step 10

I hope this is helpful to somebody. Any improvements are very much
encouraged, of course!

- Johannes




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




   

  

 





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Voicetribe open beta

2006-08-15 Thread Johannes Fahrenkrug
That's quite a neat idea!
It shows what beautiful applications you can build with Wicket.
You might want to throw in a custom ErrorPage, though:

http://www.voicetribe.com/app/user/DvdDetails/discId/6259173670902569022%27


- Johannes.

Nathan Hamblen wrote:

Voicetribe is in open beta. (Now you can finally figure out what it is.)

http://www.voicetribe.com/

Sign up for an account, pop in a DVD, and record something. Don't worry,
you can't possibly say, Testing, 1 ... 2 ... 3 any worse than I do.
All the non-serious recordings will be scrapped when the beta is over.
Or if you're ready to leave your mark in the history of film commentary,
please, be our guest!

What am I talking about? Go to the site and see for yourself. Yes, it's
in Wicket. No, it's not a scooter!

Nathan


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Woogle and Woogle

2006-08-15 Thread Johannes Fahrenkrug
How about Figurative Speech :)
I'd change the name rather sooner than later: If Woogle becomes 
popular, Google might give you a call. And they'd have a point, too: You 
are offering a very similar service (search, that is), with exactly the 
same look of the logo (probably copy and pasted), with just one letter 
changed.
See Lindows: http://en.wikipedia.org/wiki/Microsoft_vs._Lindows
See Mike Rowe Soft: 
http://www.cnn.com/2004/TECH/internet/01/19/offbeat.mike.rowe.soft.ap/

I know, that's MS, but Google sues, too. See Froogles.com: 
http://news.com.com/Google+sues+Froogles.com/2100-1030_3-5676955.html

So, it might be a good idea to change the name :)

- Johannes

Frank Bille wrote:

 Hehe, yeah I'm not very original. Perhaps we should vote for a 
 different name? Any good surgestions?

 - Frank


 On 8/14/06, *Alexandre Bairos*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 http://www.gujian.nI'm not saying et/woogle/
 http://www.gujian.net/woogle/

 http://woogle.billen.dk/search

 :)



 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Woogle and Woogle

2006-08-15 Thread Johannes Fahrenkrug
Frank,

I'm sorry, I only clicked on the Woogle image search link. I thought 
they were both the same (and was already wondering, because the image 
search seems to be a PHP app ;-)).

Well, I hope Woogle will be popular among it's target audience!

I like your third suggestion hehe.

How about
Wicketrack,
Wahoo (no, wait, same problem ;-)),
Wicket Indexer,
Quo Wicket,  (--- my favorite)
Wicket Query

Well, that's all I can think of. Btw, a very pretty and very useful 
application! Thanks a lot!

- Johannes


Frank Bille wrote:

 Hmm well.. I'm not expecting Woogle to be popular, but maybe you're 
 right anyway. I lige Woogle, but I'm no fanatic either.

 So how about:

 * Wicket Resources
 * Search.wicket 
 * Tired of finding POOP? ;)
 * 
 The-Mean-Search-Machine-For-Finding-The-Coolest-Resources-About-The-Hottest-Tech-Evah!
   (or TMSMFFTCRATHTE.com)


 I'm out of ideas.

 - Frank



 On 8/15/06, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 How about Figurative Speech :)
 I'd change the name rather sooner than later: If Woogle becomes
 popular, Google might give you a call. And they'd have a point,
 too: You
 are offering a very similar service (search, that is), with
 exactly the
 same look of the logo (probably copy and pasted), with just one letter
 changed.
 See Lindows: http://en.wikipedia.org/wiki/Microsoft_vs._Lindows
 http://en.wikipedia.org/wiki/Microsoft_vs._Lindows
 See Mike Rowe Soft:
 http://www.cnn.com/2004/TECH/internet/01/19/offbeat.mike.rowe.soft.ap/

 I know, that's MS, but Google sues, too. See  Froogles.com
 http://Froogles.com:
 http://news.com.com/Google+sues+Froogles.com/2100-1030_3-5676955.html

 So, it might be a good idea to change the name :)

 - Johannes

 Frank Bille wrote:

  Hehe, yeah I'm not very original. Perhaps we should vote for a
  different name? Any good surgestions?
 
  - Frank
 
 
  On 8/14/06, *Alexandre Bairos*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  http://www.gujian.nI'm http://www.gujian.nI%27m not saying
 et/woogle/
  http://www.gujian.net/woogle/
 
  http://woogle.billen.dk/search http://woogle.billen.dk/search
 
  :)
 
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to
 make your
  job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 

 
 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 ___
 Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat

Re: [Wicket-user] embed src ... /

2006-10-26 Thread Johannes Fahrenkrug
How about setVisible(false)?

Michael Welter wrote:

I have an html table with several columns.  One column is an audio 
recording:

 tr wicket:id=responses class=even
   tdembed wicket:id=recording type=audio/x-wav src= 
height=50 width=100 autostart=false//td
   tdspan wicket:id=titleTitle/span/td
   tdspan wicket:id=descriptionDescription/span/td 
   tdspan wicket:id=textText/span/td
 /tr

In some instances there is no audio recording.  With no recording I send 
Label(recording,), and this results in the display of the QuickTime 
logo with a question mark (the src tag is empty).

Is there some way to manipulate the html in the case of no recording?  I 
would like to be able to remove the embed / tag altogether and just 
have an empty td/ cell.

Thanks



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] embed src ... /

2006-10-26 Thread Johannes Fahrenkrug
Juergen, you win. Igor and I were a minute too late ;-)


Juergen Donnerstag wrote:

embed.setVisible(false)

Juergen

On 10/26/06, Michael Welter [EMAIL PROTECTED] wrote:
  

I have an html table with several columns.  One column is an audio
recording:

 tr wicket:id=responses class=even
   tdembed wicket:id=recording type=audio/x-wav src=
height=50 width=100 autostart=false//td
   tdspan wicket:id=titleTitle/span/td
   tdspan wicket:id=descriptionDescription/span/td
   tdspan wicket:id=textText/span/td
 /tr

In some instances there is no audio recording.  With no recording I send
Label(recording,), and this results in the display of the QuickTime
logo with a question mark (the src tag is empty).

Is there some way to manipulate the html in the case of no recording?  I
would like to be able to remove the embed / tag altogether and just
have an empty td/ cell.

Thanks



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help needed: Best practise or example for first level navigation model

2006-10-26 Thread Johannes Fahrenkrug
Hi,

I'm not sure because I haven't used it yet, but the components in 
wicket.markup.html.tree or wicket.extensions.markup.html.tree
could be what you're looking for.

- Johannes

[EMAIL PROTECTED] wrote:

Hi there !

I am new in wicket developement and currently setting up my first project. 
Everythin is so far very fine, but I am still lokking for a best practice 
navigation model. What I would like to do is someting like one level tree 
navigation as shown here:

- Topic 1 (goes to Topic1.class)
-- Topic 1.1 (goes to Topic11.class)
-- Topic 1.2 (goes to Topic12.class)
- Topic 2 (goes to Topic2.class)
-- Topic 2.1 (goes to Topic21.class)
-- Topic 2.2 (goes to Topic22.class)
...

My current idea is to maintain the navigation structure within a ListView for 
Topic1  Topic2 each having a subsequent view for subtopics. So far I think 
the idea is not so bad but I do not know how to code wicket aware. Does anyone 
have some example code how to handle such a navigation structure? Is there 
some way to put this in a model, so I can mark the current selected page 
within the model?

Thank you very much,

Maciej A. Bednarz

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Prevent Brute Force and the like

2006-11-06 Thread Johannes Fahrenkrug
Hi!

I'd like to prevent brute force attacks on the login page of my wicket 
application. What would be the best approach? This is what I'm thinking 
about doing: Record when the last request for the loginpage from a 
certain IP came in and only handle the request when at least a second or 
two have passed.
This would have to be done application wide because when an attacker 
uses a tool like cURL a new session is created with each request.

So what would you guys suggest?

- Johannes

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Prevent Brute Force and the like

2006-11-06 Thread Johannes Fahrenkrug
Korbinian,

I'm sorry if I wasn't clear: I didn't plan on blocking anymore 
permanently, just add one second delays if some IP was flooding me to 
render brute force attacks useless and impractical.

Could you please explain cachapta / provide a link to an article?

Regards,

Johannes

Korbinian Bachl wrote:

Bad idea - some ISPs and proxys would be locked out... cachapta would be
solution of choice here.

Regards

Korbinian

 

  

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag 
von Johannes Fahrenkrug
Gesendet: Montag, 6. November 2006 14:01
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] Prevent Brute Force and the like

Hi!

I'd like to prevent brute force attacks on the login page of 
my wicket application. What would be the best approach? This 
is what I'm thinking about doing: Record when the last 
request for the loginpage from a certain IP came in and only 
handle the request when at least a second or two have passed.
This would have to be done application wide because when an 
attacker uses a tool like cURL a new session is created with 
each request.

So what would you guys suggest?

- Johannes

--
---
Using Tomcat but need to do more? Need to support web 
services, security?
Get stuff done quickly with pre-integrated technology to make 
your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057;


dat=121642
  

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Prevent Brute Force and the like

2006-11-06 Thread Johannes Fahrenkrug
I guess that depends... I think you have to let the webapplication 
handle it if you want to prevent brute force dictionary attacks on the 
login page only. Especially if you want to do this on a per username 
basis or even use captchas (thanks Pierre-Yves).
I don't think the hardware or the server software could handle this or 
am I wrong?

- Johannes

Johan Compagner wrote:

 isn't this more the responsibility for the hardware/software that runs 
 wicket?
 So Apache or WebLogic itself? That does the throttling?
 I wouldn't try to solve this in a webapplication.

 johan


 On 11/6/06, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi!

 I'd like to prevent brute force attacks on the login page of my wicket
 application. What would be the best approach? This is what I'm
 thinking
 about doing: Record when the last request for the loginpage from a
 certain IP came in and only handle the request when at least a
 second or
 two have passed.
 This would have to be done application wide because when an attacker
 uses a tool like cURL a new session is created with each request.

 So what would you guys suggest?

 - Johannes

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Prevent Brute Force and the like

2006-11-06 Thread Johannes Fahrenkrug
Hello Rüdiger,

What do you think about logging false logins on a per-user basis, and
delay the response after the first false attempt by a couple of seconds
until another valid login for that user happened? I think the Linux
shell login works like that.
  

That's not a bad idea... that would mean delaying a response for a 
second or two _every time_ a false login happens... That would be a 
rather simple but yet effective solution, too: It would render brute 
force useless and behave quite similar to the Linux shell login you 
mentioned

Or, one could lock an account completely after say three false attempts,
and send an email to the user with a link to unlock it again.
  

That's also an option... but I think that's mostly used for very high 
risk and high security applications like banking and stuff...
I think GMail uses a captcha after a few (or even just one) false 
login... that would be extremely effective against scripts.

- Johannes


.rue


Johannes Fahrenkrug schrieb:
  

Hi!

I'd like to prevent brute force attacks on the login page of my wicket 
application. What would be the best approach? This is what I'm thinking 
about doing: Record when the last request for the loginpage from a 
certain IP came in and only handle the request when at least a second or 
two have passed.
This would have to be done application wide because when an attacker 
uses a tool like cURL a new session is created with each request.

So what would you guys suggest?

- Johannes

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Prevent Brute Force and the like

2006-11-06 Thread Johannes Fahrenkrug
Erik,

Disadvantage is that the server will keep the request processing thread 
occupied during the waiting period. A brute force attach that fires 
multiple requests simultaneously will not be stopped by this and will 
bring the server to its knees even more quickly. So Johan was right, you 
should not do this in the web application.
  

That is true. But how can I let the server software handle this if I 
want specific behavior only with a certain page of the web application?
Or are you suggesting to let the server software handle all the flooding 
for all the pages of the webapplication (i.e. restricting how many 
requests are processed/handles per second) and to let the webapplication 
handle the specific case of false logins, not caring about how many 
REQUESTS came in, just how many false ATTEMPTS came in?

That sounds like it would make a lot of sense

Now if you start using AsyncWeb it would be quite another story of course...
  

Hmmm, that does look very promising!

- Johannes

Regards,
 Erik.


Johannes Fahrenkrug schreef:
  

That's not a bad idea... that would mean delaying a response for a 
second or two _every time_ a false login happens... That would be a 
rather simple but yet effective solution, too: It would render brute 
force useless and behave quite similar to the Linux shell login you 
mentioned
  



  



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ending up on the page that holds the Panel with the link I just clicked on (how about that for a catchy subject?)

2006-11-27 Thread Johannes Fahrenkrug
Hi,

I have a best practice question: I have a page with several panels, 
each of them having a few Labels. This page shows a summary of the 
customer infos. Each panel has a Change link that opens a page to 
change the data. Since the panels can be embedded in different pages, I 
want to go back to the page I came from after submitting the page on 
which I can change the data.
For example: I'm on the summary page, see a typo in the address, click 
the change link within the address panel. A page that allows me to 
change the address opens, I change the address, click Save and want to 
end up on the summary page on which I clicked Change again. Of course 
the contents of the address panel should show the updated address then.

What's the best way to do this?

Thank you!

- Johannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ending up on the page that holds the Panel with the link I just clicked on (how about that for a catchy subject?)

2006-11-28 Thread Johannes Fahrenkrug
Marc,

Thank you!  I'll try that!

- Johannes

Marc-Andre Houle wrote:

 Probably you init the panel in the constructor, maybe try to 
 initialize the panel in the onAttach() method.  When using this 
 method, it reload the data every time the page is refreshed.

 Marc

 On 11/28/06, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Igor,

 Thank you for your help. I've tried exactly that already. The problem
 was that the address panel didn't show the new address when the
 back-Page was opened after editing the address.
 Any ideas how to make it show the updated address?

 - Johannes

 Igor Vaynberg wrote:

  in the address panel
 
  changelink.onclick() { setresponsepage(new EditAddrPage(getPage(),
  addr)); }
 
  in edit address page
 
  EditAddrPage { EditAddrPage(final Page back, Addr addr) {
  saveLink.onclick() { savechange(); setresponstpage(back); }}}
 
  -igor
 
 
 
  On 11/27/06, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I have a best practice question: I have a page with
 several panels,
  each of them having a few Labels. This page shows a summary
 of the
  customer infos. Each panel has a Change link that opens a
 page to
  change the data. Since the panels can be embedded in different
  pages, I
  want to go back to the page I came from after submitting the
 page on
  which I can change the data.
  For example: I'm on the summary page, see a typo in the address,
  click
  the change link within the address panel. A page that
 allows me to
  change the address opens, I change the address, click Save and
  want to
  end up on the summary page on which I clicked Change
 again. Of
  course
  the contents of the address panel should show the updated
 address
  then.
 
  What's the best way to do this?
 
  Thank you!
 
  - Johannes
 
 
 -
 
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the
 chance to
  share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn
 cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 
 
 ___
 Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future

Re: [Wicket-user] Wicket CMS

2006-12-01 Thread Johannes Fahrenkrug
I'd also love to see some code and I'd like to offer my help, because 
I'm working on a new Wicket project and was already looking for a Java 
CMS that I could integrate into my project a Wicket CMS would be a 
perfect fit!

- Johannes

Ted Roeloffzen wrote:

 Hi all,

 As some of you may know, we're currently working on a Wicket CMS.
 We have begun with implementing the code and very soon we'll put what
 we have so far on wicket-stuff. We still hope that there are some 
 among you
 who are willing to help. If so, don't hesitate to ask.

 Ted  Rick



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon Europe 2007

2007-01-16 Thread Johannes Fahrenkrug
Martijn,

it would be great to meet up.
I have developed a complex online booking application for the travel 
company I work for (with Ajax and all).
It went live last November and has been working great! I'd love to talk 
about it at Apachecon (if I'll be able to attend, that is).

I think a big thank you for this wonderful framework is in place: Thank 
you guys for making my work so much easier and so much more fun!

- Johannes

Martijn Dashorst wrote:

As you all probably know, the Apache conference Apache Con Europe 2007
is getting closer (read more about it here: http://apachecon.com)

We can try to organize a couple of get to gethers. I already submitted
an Introduction to Wicket presentation (it still has to be accepted).
We are also preparing an Introductory course (3 hours) for the monday.

I want to propose to put in a birds of a feather for the Wicket
community. Birds of a feather are typically held in the evening.

I was wondering if you come, and what you would expect of such a get
together. Ideas could be:
 - discuss 2.0/2.1/3.0 roadmap
 - get some real applications shown
 - discuss other projects, such as wicket stuff
 - discuss the future of the wicket 1.x branch
 - ask the core team

Or more mundane things such as drinking beer. Any thoughts?

Martijn

  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon Europe 2007

2007-01-16 Thread Johannes Fahrenkrug
This is OT, but how come the website for the conference of a group which 
main focus is web technologies is so ugly?
And I get a blank page when I click on Registry

Martijn Dashorst wrote:

As you all probably know, the Apache conference Apache Con Europe 2007
is getting closer (read more about it here: http://apachecon.com)

We can try to organize a couple of get to gethers. I already submitted
an Introduction to Wicket presentation (it still has to be accepted).
We are also preparing an Introductory course (3 hours) for the monday.

I want to propose to put in a birds of a feather for the Wicket
community. Birds of a feather are typically held in the evening.

I was wondering if you come, and what you would expect of such a get
together. Ideas could be:
 - discuss 2.0/2.1/3.0 roadmap
 - get some real applications shown
 - discuss other projects, such as wicket stuff
 - discuss the future of the wicket 1.x branch
 - ask the core team

Or more mundane things such as drinking beer. Any thoughts?

Martijn

  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon Europe 2007

2007-01-16 Thread Johannes Fahrenkrug
I think this message got lost under the appall for the ApacheCon website ;-)
What kinds of real world applications did you have in mind? How are you 
planning to go about presenting them?

- Johannes

Johannes Fahrenkrug wrote:

Martijn,

it would be great to meet up.
I have developed a complex online booking application for the travel 
company I work for (with Ajax and all).
It went live last November and has been working great! I'd love to talk 
about it at Apachecon (if I'll be able to attend, that is).

I think a big thank you for this wonderful framework is in place: Thank 
you guys for making my work so much easier and so much more fun!

- Johannes

Martijn Dashorst wrote:

  

As you all probably know, the Apache conference Apache Con Europe 2007
is getting closer (read more about it here: http://apachecon.com)

We can try to organize a couple of get to gethers. I already submitted
an Introduction to Wicket presentation (it still has to be accepted).
We are also preparing an Introductory course (3 hours) for the monday.

I want to propose to put in a birds of a feather for the Wicket
community. Birds of a feather are typically held in the evening.

I was wondering if you come, and what you would expect of such a get
together. Ideas could be:
- discuss 2.0/2.1/3.0 roadmap
- get some real applications shown
- discuss other projects, such as wicket stuff
- discuss the future of the wicket 1.x branch
- ask the core team

Or more mundane things such as drinking beer. Any thoughts?

Martijn

 





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Multiple sessions from one client

2007-01-17 Thread Johannes Fahrenkrug
Hi,

I have a quick question: my online booking web application depends on 
sessions. When one user is at a certain step of the session process and 
opens a new tab/window in the same browser, the same session is used and 
no new session is created.

Is it possible to have multiple sessions from the same client?

- Johannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple sessions from one client

2007-01-17 Thread Johannes Fahrenkrug
Thank you, Erik.
I'll read up on that topic and I guess a bit of refactoring will be in 
place then :)

- Johannes

Erik van Oosten wrote:
 Short answer: NO.

 Long answer: mostly no, but it strongly depends on the browser.

 Solution: do not use the session (is against Wicket matra anyway) but 
 maintain state in the Wicket components. Make sure that your components 
 are versioned (defaults to on).

 Regards,
  Erik.


 Johannes Fahrenkrug wrote:
   
 Is it possible to have multiple sessions from the same client?
   
 

   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon Europe 2007

2007-01-18 Thread Johannes Fahrenkrug
Since the registry page is blank I can't find out how much the prices 
are. Can anyone enlighten me?

- Johannes

Martijn Dashorst wrote:
 As you all probably know, the Apache conference Apache Con Europe 2007
 is getting closer (read more about it here: http://apachecon.com)

 We can try to organize a couple of get to gethers. I already submitted
 an Introduction to Wicket presentation (it still has to be accepted).
 We are also preparing an Introductory course (3 hours) for the monday.

 I want to propose to put in a birds of a feather for the Wicket
 community. Birds of a feather are typically held in the evening.

 I was wondering if you come, and what you would expect of such a get
 together. Ideas could be:
  - discuss 2.0/2.1/3.0 roadmap
  - get some real applications shown
  - discuss other projects, such as wicket stuff
  - discuss the future of the wicket 1.x branch
  - ask the core team

 Or more mundane things such as drinking beer. Any thoughts?

 Martijn

   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Hi,

I had a strange error I have a Panel with 3 radiobuttons. They let 
me choose whether I want to pay by debit or credit or  if I want to be 
billed later.
When I click on either of the radiobuttons, the corresponding input 
fields get enabled via JavaScript.
On the Wicket side, I add

new AttributeModifier(disabled, true, new Model(disabled));

to each input field that doesn't belong to the currently selected option 
(i.e. the credit and debit fields are disabled when my payment method is 
bill me later).

When I select one of the other radio buttons, the correspondig text 
fields get enabled, I enter the information, submit the form but the 
model doesn't get updated!

When I remove the adding of the AttributeModifier, everything works. So 
this means that Wicket notices that I'm adding a disabled 
AttributeModifier and keeps the field disabled even when I enable it on 
the webpage. Is this a feature or a bug?

If I would have wanted to really truly disable the Wicket Textfield 
component, I would have called setEnabled on it. But I really just 
want to set the HTML property disabled...

I'm looking forward to your input on this.

- Johannes


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Oh, sorry. I'm using version 1.2.4.

Johannes Fahrenkrug wrote:
 Hi,

 I had a strange error I have a Panel with 3 radiobuttons. They let 
 me choose whether I want to pay by debit or credit or  if I want to be 
 billed later.
 When I click on either of the radiobuttons, the corresponding input 
 fields get enabled via JavaScript.
 On the Wicket side, I add

 new AttributeModifier(disabled, true, new Model(disabled));

 to each input field that doesn't belong to the currently selected option 
 (i.e. the credit and debit fields are disabled when my payment method is 
 bill me later).

 When I select one of the other radio buttons, the correspondig text 
 fields get enabled, I enter the information, submit the form but the 
 model doesn't get updated!

 When I remove the adding of the AttributeModifier, everything works. So 
 this means that Wicket notices that I'm adding a disabled 
 AttributeModifier and keeps the field disabled even when I enable it on 
 the webpage. Is this a feature or a bug?

 If I would have wanted to really truly disable the Wicket Textfield 
 component, I would have called setEnabled on it. But I really just 
 want to set the HTML property disabled...

 I'm looking forward to your input on this.

 - Johannes


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Yes, that was also the first thing I thought of: I checked it with 
livehttpheaders and yes: they are being submitted by the browser.

- Johannes

Igor Vaynberg wrote:
 can you check if the value is actually being submitted by the browser?

 -igor


 On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 I had a strange error I have a Panel with 3 radiobuttons. They
 let
 me choose whether I want to pay by debit or credit or  if I want to be
 billed later.
 When I click on either of the radiobuttons, the corresponding input
 fields get enabled via JavaScript.
 On the Wicket side, I add

 new AttributeModifier(disabled, true, new Model(disabled));

 to each input field that doesn't belong to the currently selected
 option
 (i.e. the credit and debit fields are disabled when my payment
 method is
 bill me later).

 When I select one of the other radio buttons, the correspondig text
 fields get enabled, I enter the information, submit the form
 but the
 model doesn't get updated!

 When I remove the adding of the AttributeModifier, everything
 works. So
 this means that Wicket notices that I'm adding a disabled
 AttributeModifier and keeps the field disabled even when I enable
 it on
 the webpage. Is this a feature or a bug?

 If I would have wanted to really truly disable the Wicket Textfield
 component, I would have called setEnabled on it. But I really just
 want to set the HTML property disabled...

 I'm looking forward to your input on this.

 - Johannes


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
I will. I'm already looking at the FormComponent code. I have to go now, 
but I'll get back to it tomorrow.

- Johannes

Igor Vaynberg wrote:
 i dont see where we read the disabled attribute in our code, can you 
 try branch-1.x? or see where in wicket's code it thinks its disabled?

 -igor


 On 1/22/07, * Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Yes, that was also the first thing I thought of: I checked it with
 livehttpheaders and yes: they are being submitted by the browser.

 - Johannes

 Igor Vaynberg wrote:
  can you check if the value is actually being submitted by the
 browser?
 
  -igor
 
 
  On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I had a strange error I have a Panel with 3
 radiobuttons. They
  let
  me choose whether I want to pay by debit or credit or  if I
 want to be
  billed later.
  When I click on either of the radiobuttons, the
 corresponding input
  fields get enabled via JavaScript.
  On the Wicket side, I add
 
  new AttributeModifier(disabled, true, new Model(disabled));
 
  to each input field that doesn't belong to the currently
 selected
  option
  (i.e. the credit and debit fields are disabled when my payment
  method is
  bill me later).
 
  When I select one of the other radio buttons, the
 correspondig text
  fields get enabled, I enter the information, submit the form
  but the
  model doesn't get updated!
 
  When I remove the adding of the AttributeModifier, everything
  works. So
  this means that Wicket notices that I'm adding a disabled
  AttributeModifier and keeps the field disabled even when I
 enable
  it on
  the webpage. Is this a feature or a bug?
 
  If I would have wanted to really truly disable the Wicket
 Textfield
  component, I would have called setEnabled on it. But I
 really just
  want to set the HTML property disabled...
 
  I'm looking forward to your input on this.
 
  - Johannes
 
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the
 chance to
  share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 

 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net 's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-23 Thread Johannes Fahrenkrug
It was neither a bug nor a feature: I'm simply an idiot. I was using a 
custom TextField which overrides isEnabled()... D'Oh!

Sorry for wasting your time with this, Igor!

- Johannes

Johannes Fahrenkrug wrote:
 I will. I'm already looking at the FormComponent code. I have to go now, 
 but I'll get back to it tomorrow.

 - Johannes

 Igor Vaynberg wrote:
   
 i dont see where we read the disabled attribute in our code, can you 
 try branch-1.x? or see where in wicket's code it thinks its disabled?

 -igor


 On 1/22/07, * Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Yes, that was also the first thing I thought of: I checked it with
 livehttpheaders and yes: they are being submitted by the browser.

 - Johannes

 Igor Vaynberg wrote:
  can you check if the value is actually being submitted by the
 browser?
 
  -igor
 
 
  On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I had a strange error I have a Panel with 3
 radiobuttons. They
  let
  me choose whether I want to pay by debit or credit or  if I
 want to be
  billed later.
  When I click on either of the radiobuttons, the
 corresponding input
  fields get enabled via JavaScript.
  On the Wicket side, I add
 
  new AttributeModifier(disabled, true, new Model(disabled));
 
  to each input field that doesn't belong to the currently
 selected
  option
  (i.e. the credit and debit fields are disabled when my payment
  method is
  bill me later).
 
  When I select one of the other radio buttons, the
 correspondig text
  fields get enabled, I enter the information, submit the form
  but the
  model doesn't get updated!
 
  When I remove the adding of the AttributeModifier, everything
  works. So
  this means that Wicket notices that I'm adding a disabled
  AttributeModifier and keeps the field disabled even when I
 enable
  it on
  the webpage. Is this a feature or a bug?
 
  If I would have wanted to really truly disable the Wicket
 Textfield
  component, I would have called setEnabled on it. But I
 really just
  want to set the HTML property disabled...
 
  I'm looking forward to your input on this.
 
  - Johannes
 
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the
 chance to
  share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 

 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net 's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

Re: [Wicket-user] SURVEY: Are you using Page.before/afterCallComponent

2007-01-23 Thread Johannes Fahrenkrug
never heard of it, either :)

Igor Vaynberg wrote:
 are you using Page.before/afterCallComponent? and if so what is the 
 usecase?

 -igor

 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple sessions from one client

2007-01-24 Thread Johannes Fahrenkrug
Ok, I went with the no-cookies-but-jsession-id-in-url approach and it 
works just fine.

Here's a link to a site that helped me with the Jetty configuration:

http://www.mojavelinux.com/blog/archives/2006/11/disabling_session_cookies_in_jetty/

or - somewhat ugly - in the code:

WebAppContext webAppContext = new WebAppContext();
...
((HashSessionManager) 
(webAppContext.getSessionHandler().getSessionManager())).setUsingCookies(false);

But there is one pitfall: When you switch to not using cookies for the 
session id and a browser still HAS a session cookie, that session cookie 
is - of course - sent as part of the request when you access the 
webapplication again. That causes Wicket to show the session timeout 
page with everything you do (because that session is invalid and the 
cookie is never updated...). So what I did is to set the session cookie 
name to something different than the default JSESSIONID. That doesn't 
keep the browser from still sending the old session cookie as part of 
the request, but Jetty ignores it because it doesn't have the name Jetty 
is looking for.

In code the workaround looks like this:

((HashSessionManager) 
(webAppContext.getSessionHandler().getSessionManager())).setSessionCookie(SOMETHING_OTHER_THAN_JSESSIONID);

Now I can have multiple different sessions in the same browser. Works 
like a charm!

Thank you guys for your help.

- Johannes


Matej Knopp wrote:
 Erik van Oosten wrote:
   
 Short answer: NO.

 Long answer: mostly no, but it strongly depends on the browser.

 Solution: do not use the session (is against Wicket matra anyway) but 
 maintain state in the Wicket components. Make sure that your components 
 are versioned (defaults to on).

 
 Yeah, but this is not a solution always (if you have to for example 
 allow two different users to be logged in for some reason). Only thing 
 I can think of that could work is to disable session cookies (if the 
 container allows it) and use jsessionid in url only. This way you can 
 have different session in every browser window.

 -Matej
   
 Regards,
  Erik.


 Johannes Fahrenkrug wrote:
 
 Is it possible to have multiple sessions from the same client?
   
   


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Who is using Wicket under production environment?

2007-02-12 Thread Johannes Fahrenkrug
Hi Michel,

we are using Wicket for our online booking application. It has been live 
and running smoothly since November 2006.
You can take a look here:

https://www.gebeco.de/?rnr=2010004

It's in German, though... oh, and the loading times (which could be a 
bit snappier in some places) are due to a legacy non-Java backend that 
had to be used.

- Johannes

Michel Wichers wrote:
 Hi all,

 is there anywhere a reference list with products/projects using the 
 wicket framework? Or do you know any companies who are using the wicket 
 framework productive?

 Regards,

 Michel


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How about a PrinterLink in Wicket Links

2007-02-26 Thread Johannes Fahrenkrug
You might also want to take a look at the @media CSS directive.
This enables you to give the page a different style depending on
whether you want to display it on the screen or print it, ie:

style
@media print {
  #hidewhenprinted  {display:none; height:0}
}  
@media screen {
  #hidewhenprinted {display:block; height:auto}
}  
/style

and farther down...

div id=hidewhenprinted
   div style=float:left
 input type=button value=Print 
onclick=javascript:window.print()
   /div
   div style=float:right
  input type=button wicket:id=closeButton value=Close
   /div
/div

That way you can have a print button on the page, but the button itself 
won't be printed.

- Johannes

Ayodeji Aladejebi wrote:
 hehe..very trivial i dint know what i was thinking..anyway thanks

 On 2/26/07, *Eelco Hillenius* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Do you have such a link, or are you looking for suggestions on how to
 create one? If the latter is the case, just render the page you want
 to print and have javascript: window.print() somewhere, e.g. as a
 header contribution.

 Eelco

 On 2/26/07, Ayodeji Aladejebi  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  PrinterLink print = new PrinterLink(printoutlink,
 PageToPrint.class);
 
  any need for this
 
 
 
 
 
 
 
 
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] CeBIT

2007-03-05 Thread Johannes Fahrenkrug
Hi,

I was wondering if any of you guys are going to be at the CeBIT this 
year. It might be nice to meet up...

- Johannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CeBIT

2007-03-05 Thread Johannes Fahrenkrug
Johan,

I know and I'd love to go to ApacheCon this year but I will most likely 
not make it.
I just thought that some people from the list might HAPPEN to also 
attend CeBit, and if that
were the case it would have been nice to meet up.

- Johannes

Johan Compagner wrote:
 CeBit is not really a place for software development / web frameworks

 If you want to meat up, ApacheCon in amsterdam beginning of may would 
 be a good choice.

 johan


 On 3/5/07, *Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 I was wondering if any of you guys are going to be at the CeBIT this
 year. It might be nice to meet up...

 - Johannes

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-- 

   Johannes Fahrenkrug
   Tel:+49 (0)431 5446 246
   Fax:+49 (0)431 5446 248
   E-Mail: [EMAIL PROTECTED]

   Gebeco GmbH  Co KG
   Holzkoppelweg 19
   D-24118 Kiel

   Handelsregister Kiel Nr. A 3964
   Steuernummer: 19 285 65407

   Geschäftsführung:
   Ury Steinweg, Vorsitzender der Geschäftsführung
   Thomas Bohlander

   Besuchen Sie uns auch unter / we are also available at:
   www.gebeco.de oder www.drtigges.de 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaScript Hijacking

2007-04-11 Thread Johannes Fahrenkrug
Hi!

snip
 If you have e.g. blog application that allows users to enter comment
 that other users can see, always escape the script tags, so that
 user can't post script tag in a comment, as this can be used to
 steal other user's confidential informations.
   
/snip

That's a very good point. Basically transforming all html control chars 
into html entities is a good idea.
You can also execute javascript like this: body 
onload=alert('xss')/body or even like this, without  and :
(if this value is put into a textfield's value attribute):  
onchange=alert('xss')

- Johannes


 -Matej

 On 4/6/07, Niels Bo [EMAIL PROTECTED] wrote:
   
 Hi!

 How protected is Wicket against JavaScript Hijacking, as described in this
 paper?

 http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf
 http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf


 Best Regards
 Niels Bo
 --
 View this message in context: 
 http://www.nabble.com/JavaScript-Hijacking-tf3536320.html#a9870835
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-- 

   Johannes Fahrenkrug
   Tel:+49 (0)431 5446 246
   Fax:+49 (0)431 5446 248
   E-Mail: [EMAIL PROTECTED]

   Gebeco GmbH  Co KG
   Holzkoppelweg 19
   D-24118 Kiel

   Handelsregister Kiel Nr. A 3964
   Steuernummer: 19 285 65407

   Geschäftsführung:
   Ury Steinweg, Vorsitzender der Geschäftsführung
   Thomas Bohlander

   Besuchen Sie uns auch unter / we are also available at:
   www.gebeco.de oder www.drtigges.de 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] jsessionid parameter in URL

2007-05-14 Thread Johannes Fahrenkrug
You can probably avoid it by using cookies instead (if that's an option 
for you).

- Johannes

Thomas Singer wrote:

I have mounted the home page as /index.html. When showing the page at 
http://localhost:8080/ (application context is /), Wicket 1.2.6 appends the 
jsessionid parameter:

http://localhost:8080/index.html;jsessionid=0E92A74B703792D9E66834A92D405E4B

What could be the reason for that and how to avoid it? Thanks in advance.

--
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user