Re: [Wicket-user] Question about DatePickerSettings

2006-11-10 Thread Carfield Yim
It still return Non-English version of Calendar even if I try
Locale.English / Locale.US

DatePickerSettings settings = new DatePickerSettings();
settings.setLanguage(DatePickerSettings.getLanguageFromMap(Locale.ENGLISH));
TextField dateField = new TextField(birthDay, new
PropertyModel(account, birthDay));
add(dateField);
add(new DatePicker(birthDayPicker, dateField, settings));

In fact, look like nothing change for the change of settings, am I do it right?

On 11/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Try DatePickerSettings#getLanguageFromMap(Locale locale)

 Eelco


 On 11/8/06, Carfield Yim [EMAIL PROTECTED] wrote:
  How can I change the language using? I've read
  http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/datepicker/DatePickerSettings.html#setLanguage(wicket.ResourceReference)
  But I don't know how to create suitable ResourceReference for it

 -
 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] Not sure how to use DatePicker component

2006-11-10 Thread Carfield Yim
 That would be:

 /**
  * The format string that will be used to enter the date in the input 
 field.
  * This format will be honored even if the input field is hidden. Use
  * Javascript notation, like '%m/%d/%Y'.
  */
 private String ifFormat = null;

 Use DatePicker#setDateConverter to align the two.


I guess you mean something like

DatePicker dp = new DatePicker(birthDayPicker, dateField);
DateConverter dc = new DateConverter();
dc.setDateFormat(Locale.ENGLISH,
DateFormat.getDateInstance(DateFormat.SHORT, Locale.ENGLISH));
dp.setDateConverter(dc);

However, just try and no effect at al ... any problem ?

-
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] stateless pages in 1.3

2006-11-10 Thread Johan Compagner
Yes the stateless things are almost in 1.3. I need to finish it up a bit more.I don't know about the final of 1.3 but i guess we can have a beta of 1.3 pretty soon.johan
On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
Will Wicket 1.3 have the full stateless functionality of 2.0?If not,what significant features will be unavailable in 1.3?And is thereany sort of a release timeframe for 1.3?Many thanks,Scott
--Scott Swankreformed mathematician-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-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] Problem in generation of the html code of the page

2006-11-10 Thread Alberto Bueno
When I create a page, and this page generate this html code:

script type=text/javascript !--/*--![CDATA[/*!--*/
if (window.name=='') { 
window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener;
 }
/*--]]*//script


Now, I add a button in the page (a very simple page):

public class Index extends QuickStartPage
{
public Index(final PageParameters parameters)
{

Form form = new Form(this, form);
new Button(form, button){

@Override
public void onSubmit()
{
// TODO Auto-generated method stub
String p = ;
}
   
};
}
}

And when I click the button, in the generation of the page I have the 
code duplicated:

script type=text/javascript !--/*--![CDATA[/*!--*/
if (window.name=='') { 
window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener;
 }
/*--]]*//script


script type=text/javascript !--/*--![CDATA[/*!--*/
if (window.name=='') { 
window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener;
 }
/*--]]*//script


And if I continue clicking the button, the page continue duplicating the 
code...

If problem of my application?

-
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] NiceURL and parameters with 'sensitive' characters

2006-11-10 Thread jan_bar
It worked well until I pass parametr with %2F ('/') . The problem is that
HttpServletRequest.getPathInfo() returns the URL that is already decoded
(checked with Jetty 6 and Tomcat 5.5). For nice URLs the getRequestURI() or
getRequestURL() should be used, it seems to return the request as it was
passed to server.

https://issues.apache.org/jira/browse/WICKET-40

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Can you confirm that fixes your problem and doesn't introduce new
 ones? And could you please open a bug report for this
 (http://issues.apache.org/jira/browse/WICKET, also so that it ends up
 in our change list).

 Cheers,

 Eelco


 On 11/9/06, jan_bar [EMAIL PROTECTED] wrote:
  The URL is already URL decoded when it reaches servlet.doXXX(), so
  AbstractRequestTargetUrlCodingStrategy.decodeParameters() should not
call
  URLDecode again.
 
  Jan
 
  jan_bar [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi,
  
   I use nice URL with a parameter that contains a '+' character. The '+'
is
   URLDecoded to space (' ') in
   AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is
fine.
  So
   I URLEncoded the parametr, so my nice URL looks like
   http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded
by
   servlet, so Wicket again sees it as someId/1+1, so the result is
someId=1
   1.
   How can I pass the '+' as parameter?
  
   Thanks, Jan
  
  
  
  
 
 -
   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
 
 
 
 

 -
  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




-
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] Why add(IBehavior) is final?

2006-11-10 Thread Alberto Bueno





In my case, I have created a TextField component, that is a panel that
contains internally a TextField wicket component. Now, if I add the
method addToField, the user will have two methods:

TextField.add(IBehavior behavior)
TextField.addToField(IBehavior behavior)

I think that this case will be more confused than if I have only one
method:

TextField.add(IBehavior behavior){
 textField.add(behavior);
}

I don't want to add any behavior in the panel, I only want to add
behaviors in the field. Why do I have to create another method, that it
will be more confused for the user?

This is the same situation that when we use the IAlternateParent. We
add the component in a component, but the real parent is another...



  I am definitely /not/ against removing final, but it is not going to 
work (not in general that is).

Alberto's defense is that the user thinks he is working with a field, 
while in reality he is working with a panel. I assume that Alberto is 
using a panel because he wants some extra functionality around the 
field, say a button or a link. Anyway, now the user adds some behavior, 
say 'new SimpleAttributeModifier("style", "background-color: #d91")'. 
Now in the described setup only the field will get the new background, 
while the user probably also wanted to color the whitespace around it. 
As a user I would find this pretty confusing.

In short: there is no way of hiding the fact that the component you are 
offering to a user is a composite, if you also want the user to have 
access to the inner components.

So my solution would be to either expose the inner field through a 
getter, or write the addToField method that was discussed earlier.

Regards,
 Erik.



Eelco Hillenius schreef:
  
  
I could definitively live with removing final there. And maybe some
other methods too.

Anyone against removing final from add(IBehavior)?

Eelco


On 11/9/06, Alberto Bueno [EMAIL PROTECTED] wrote:
  


  Hi,
now I have this solution, but I don't like it for you reasons:

- Now I have two methods to add a Behavior: add(IBehavior) and
addToField(IBehavior), and for the users can be confuse.
- I want to have a transparent component. The user doesn't have to know
that he is working with a panel. This is working with a "field". If I have:

MyField extends Panel{
 public MyField(MarkupContainer parent, String id){
super(parent, id);

new TextField(this, "myField");
 }
}

For the user, MyField is a form Component, and if he add a new Behavior,
the user thinks that the behavior is for the field, not for the panel.

This is the idea...



  
  
Why don't you write in your panel: void addToField(Behavior b) {...}?
There is no need to corrupt the meaning of Wicket methods ;)

Regards,
 Erik.


Alberto Bueno schreef:

  


  Hi,

I want to overwrite the add(IBehavior) method of the component, but this
method is final.
I want to use the same idea of AlternateParent when we add a new component.
I have a panel, and I want to add a behavior in the panel, but the
behavior is used in a field
component that is in the panel.

I don't want to say:
panel.get("myField").add(new MyBehavior());

I want to say:

panel.add(new MyBehavior());

and in the add() method of the panel say:

public Component add(final IBehavior behavior)
{
  get("myField").add(behavior);
}

Any idea to implement this functionality?

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


[Wicket-user] Wizard StaticContentStep and CompoundPropertyModel

2006-11-10 Thread bednarz-hannover
Hello all !

I would like to add a CompoundPropertyModel as wizard static page. I have done 
so far:

public class StepX extends StaticContentStep {

/**
 * Constructor.
 * 
 * @param userModel
 */
public StepX(UserModel userModel)
{
super(true);

IModel model = new Model(userModel);
setTitleModel(new ResourceModel(confirmation.title));
setSummaryModel(new StringResourceModel(confirmation.summary, 
this, model));

setContentModel(new CompoundPropertyModel(userModel));

}
}

My UserModel look like this:

public class UserModel implements Serializable {

private String userName;

public final String getUserName() {
return this.userName;
}

public final void setUserName(String userName) {
this.userName = userName;
}

}


How can I simply output the username property collected in a previous step? I 
tried the following code:

wicket:panel
table
tr
td
span 
wicket:id=userModel.userName[userName]/span
/td
/tr
/table
/wicket:panel


... but wicket gives me the following error message:

unable to find component with id 'userModel.userName'. This means that you 
declared wicket:id=userModel.userName in your markup, but that you either did 
not add the component to your page at all, or that the hierarchy does not 
match. 

Has anyone a solution for this? 

Thank you very much,

Maciej

-
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] Wizard StaticContentStep and CompoundPropertyModel

2006-11-10 Thread Korbinian Bachl
You need to create a Label in the constructor of the given part that passes
the information to it.

e.g:
add(new Label(userModel.userName, userModel.getUserName));

BTW: you can change the Labelname to whatever you want as its not associated
with the content behind it.
e.g:
add(new Label(username, userModel.getUserName));
span wicket:id=username[userName]/span

please also note that youre current solution is not (!) for use with more
than 1 user since you need to use a session for that or make sure you repass
the user-model each time, wich is not a good solution either...  


Regards

Korbinian

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von [EMAIL PROTECTED]
 Gesendet: Freitag, 10. November 2006 11:13
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] Wizard StaticContentStep and 
 CompoundPropertyModel
 
 Hello all !
 
 I would like to add a CompoundPropertyModel as wizard static 
 page. I have done so far:
 
 public class StepX extends StaticContentStep {
   
   /**
* Constructor.
* 
* @param userModel
*/
   public StepX(UserModel userModel)
   {
   super(true);
   
   IModel model = new Model(userModel);
   setTitleModel(new ResourceModel(confirmation.title));
   setSummaryModel(new 
 StringResourceModel(confirmation.summary, this, model));
   
   setContentModel(new CompoundPropertyModel(userModel));
   
   }
 }
 
 My UserModel look like this:
 
 public class UserModel implements Serializable {
 
 private String userName;
 
   public final String getUserName() {
   return this.userName;
   }
 
   public final void setUserName(String userName) {
   this.userName = userName;
   }
 
 }
 
 
 How can I simply output the username property collected in a 
 previous step? I tried the following code:
 
   wicket:panel
   table
   tr
   td
   span 
 wicket:id=userModel.userName[userName]/span
   /td
   /tr
   /table
   /wicket:panel
 
 
 ... but wicket gives me the following error message:
 
 unable to find component with id 'userModel.userName'. This 
 means that you declared wicket:id=userModel.userName in your 
 markup, but that you either did not add the component to your 
 page at all, or that the hierarchy does not match. 
 
 Has anyone a solution for this? 
 
 Thank you very much,
 
 Maciej
 
 --
 ---
 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


Re: [Wicket-user] Problem in generation of the html code of the page

2006-11-10 Thread Korbinian Bachl
What version of Wicket do you use?

Regards

Korbinian
 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Alberto Bueno
 Gesendet: Freitag, 10. November 2006 10:35
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] Problem in generation of the html code 
 of the page
 
 When I create a page, and this page generate this html code:
 
 script type=text/javascript 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
serWindowListener; } /*--]]*//script
 
 
 Now, I add a button in the page (a very simple page):
 
 public class Index extends QuickStartPage {
 public Index(final PageParameters parameters)
 {
 
 Form form = new Form(this, form);
 new Button(form, button){
 
 @Override
 public void onSubmit()
 {
 // TODO Auto-generated method stub
 String p = ;
 }

 };
 }
 }
 
 And when I click the button, in the generation of the page I 
 have the code duplicated:
 
 script type=text/javascript 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
serWindowListener; } /*--]]*//script
 
 
 script type=text/javascript 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
serWindowListener; } /*--]]*//script
 
 
 And if I continue clicking the button, the page continue 
 duplicating the code...
 
 If problem of my application?
 
 --
 ---
 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


Re: [Wicket-user] Problem in generation of the html code of the page

2006-11-10 Thread Alberto Bueno
The trunk

 What version of Wicket do you use?

 Regards

 Korbinian
  

   
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Alberto Bueno
 Gesendet: Freitag, 10. November 2006 10:35
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] Problem in generation of the html code 
 of the page

 When I create a page, and this page generate this html code:

 script type=text/javascript 
 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
   
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
 
 serWindowListener; } /*--]]*//script
   
 Now, I add a button in the page (a very simple page):

 public class Index extends QuickStartPage {
 public Index(final PageParameters parameters)
 {

 Form form = new Form(this, form);
 new Button(form, button){

 @Override
 public void onSubmit()
 {
 // TODO Auto-generated method stub
 String p = ;
 }

 };
 }
 }

 And when I click the button, in the generation of the page I 
 have the code duplicated:

 script type=text/javascript 
 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
   
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
 
 serWindowListener; } /*--]]*//script
   
 script type=text/javascript 
 
 !--/*--![CDATA[/*!--*/ if (window.name=='') { 
   
 window.location=/quickstart/app?wicket:interface=:1::INewBrow
 
 serWindowListener; } /*--]]*//script
   
 And if I continue clicking the button, the page continue 
 duplicating the code...

 If problem of my application?

 --
 ---
 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] Problem in generation of the html code of the page

2006-11-10 Thread Korbinian Bachl
2.0 ?
or
1.x ?
(sorry, dont know whats in Trunk at the moment you got it)

you might want to use wicket 1.2.3 as this hasnt the behaviour so far... 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Alberto Bueno
 Gesendet: Freitag, 10. November 2006 11:55
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] Problem in generation of the html 
 code of the page
 
 The trunk
 
  What version of Wicket do you use?
 
  Regards
 
  Korbinian
   
 

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag von 
  Alberto Bueno
  Gesendet: Freitag, 10. November 2006 10:35
  An: wicket-user@lists.sourceforge.net
  Betreff: [Wicket-user] Problem in generation of the html 
 code of the 
  page
 
  When I create a page, and this page generate this html code:
 
  script type=text/javascript 
  
  !--/*--![CDATA[/*!--*/ if (window.name=='') {

  window.location=/quickstart/app?wicket:interface=:1::INewBrow
  
  serWindowListener; } /*--]]*//script

  Now, I add a button in the page (a very simple page):
 
  public class Index extends QuickStartPage {
  public Index(final PageParameters parameters)
  {
 
  Form form = new Form(this, form);
  new Button(form, button){
 
  @Override
  public void onSubmit()
  {
  // TODO Auto-generated method stub
  String p = ;
  }
 
  };
  }
  }
 
  And when I click the button, in the generation of the page 
 I have the 
  code duplicated:
 
  script type=text/javascript 
  
  !--/*--![CDATA[/*!--*/ if (window.name=='') {

  window.location=/quickstart/app?wicket:interface=:1::INewBrow
  
  serWindowListener; } /*--]]*//script

  script type=text/javascript 
  
  !--/*--![CDATA[/*!--*/ if (window.name=='') {

  window.location=/quickstart/app?wicket:interface=:1::INewBrow
  
  serWindowListener; } /*--]]*//script

  And if I continue clicking the button, the page continue 
 duplicating 
  the code...
 
  If problem of my application?
 
  --
  ---
  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=1216
  42 ___
  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=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


Re: [Wicket-user] Wizard StaticContentStep and CompoundPropertyModel

2006-11-10 Thread Erik van Oosten

If you want to use a CompoundPropertyModel you can do something like the 
following in the constructor of the component:

setModel(new CompoundPropertyModel(...));  // where ... is either your 
POJO or another model
add(new Label(userModel.userName));

Leave the html unchanged.
Because you did not set a model on the label, the label will search in 
its parent(s) for a CompoundPropertyModel.

Regards,
 Erik.


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von [EMAIL PROTECTED]
 Gesendet: Freitag, 10. November 2006 11:13
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] Wizard StaticContentStep and 
 CompoundPropertyModel

 Hello all !

 I would like to add a CompoundPropertyModel as wizard static 
 page. I have done so far:

 public class StepX extends StaticContentStep {
  
  /**
   * Constructor.
   * 
   * @param userModel
   */
  public StepX(UserModel userModel)
  {
  super(true);
  
  IModel model = new Model(userModel);
  setTitleModel(new ResourceModel(confirmation.title));
  setSummaryModel(new 
 StringResourceModel(confirmation.summary, this, model));
  
  setContentModel(new CompoundPropertyModel(userModel));
  
  }
 }

 My UserModel look like this:

 public class UserModel implements Serializable {

 private String userName;

  public final String getUserName() {
  return this.userName;
  }

  public final void setUserName(String userName) {
  this.userName = userName;
  }

 }


 How can I simply output the username property collected in a 
 previous step? I tried the following code:

  wicket:panel
  table
  tr
  td
  span 
 wicket:id=userModel.userName[userName]/span
  /td
  /tr
  /table
  /wicket:panel


 ... but wicket gives me the following error message:

 unable to find component with id 'userModel.userName'. This 
 means that you declared wicket:id=userModel.userName in your 
 markup, but that you either did not add the component to your 
 page at all, or that the hierarchy does not match. 

 Has anyone a solution for this? 

 Thank you very much,

 Maciej

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

   

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


-
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] Header contribution not always rendered

2006-11-10 Thread Erik van Oosten
Hello,

Something is going wrong with my header contributions. A css that was 
added like this
add(HeaderContributor.forCss(MyPage.class, MyPage.css));
are only rendered once and then never again.

To be precise:
- I start jetty.
- I request the page (it is bookmarkable).
- I get redirected to the signin page, I log in.
- The page is displayed correct (with the css).
- I press reload and the css is gone. The link is actually not in the 
header.
- Press reload another 50 times, no more css.

I have also seen another scenario: the first time the page is rendered 
it misses the css, the second time it is present and in all following 
renderings it is gone.
All css added with wicket:head/wicket:link elements renders fine.

I am using Wicket 1.x, revision 470570 (at moment of writing the latest 
revision of 1.x).

Any ideas on what it is going on here?

Regards,
 Erik.



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


-
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] Header contribution not always rendered

2006-11-10 Thread Igor Vaynberg
add a bug into jira preferrably with a quickstart-igorOn 11/10/06, Erik van Oosten [EMAIL PROTECTED]
 wrote:Hello,Something is going wrong with my header contributions. A css that was
added like thisadd(HeaderContributor.forCss(MyPage.class, MyPage.css));are only rendered once and then never again.To be precise:- I start jetty.- I request the page (it is bookmarkable).
- I get redirected to the signin page, I log in.- The page is displayed correct (with the css).- I press reload and the css is gone. The link is actually not in theheader.- Press reload another 50 times, no more css.
I have also seen another scenario: the first time the page is renderedit misses the css, the second time it is present and in all followingrenderings it is gone.All css added with wicket:head/wicket:link elements renders fine.
I am using Wicket 1.x, revision 470570 (at moment of writing the latestrevision of 1.x).Any ideas on what it is going on here?Regards, Erik.--Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-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] Problem in generation of the html code of the page

2006-11-10 Thread Igor Vaynberg
add a bug into jira with your quickstart-igorOn 11/10/06, Korbinian Bachl [EMAIL PROTECTED]
 wrote:2.0 ?or1.x ?(sorry, dont know whats in Trunk at the moment you got it)
you might want to use wicket 1.2.3 as this hasnt the behaviour so far... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] Im Auftrag von Alberto Bueno Gesendet: Freitag, 10. November 2006 11:55 An: 
wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Problem in generation of the html code of the page The trunk  What version of Wicket do you use?
   Regards   Korbinian -Ursprüngliche Nachricht-  Von: 
[EMAIL PROTECTED]  [mailto:[EMAIL PROTECTED]] Im Auftrag von  Alberto Bueno
  Gesendet: Freitag, 10. November 2006 10:35  An: wicket-user@lists.sourceforge.net  Betreff: [Wicket-user] Problem in generation of the html
 code of the  page   When I create a page, and this page generate this html code:   script type=text/_javascript_
   !--/*--![CDATA[/*!--*/ if (window.name=='') {   window.location=/quickstart/app?wicket:interface=:1::INewBrow 
  serWindowListener; } /*--]]*//script   Now, I add a button in the page (a very simple page):   public class Index extends QuickStartPage {
  public Index(final PageParameters parameters)  {   Form form = new Form(this, form);  new Button(form, button){
   @Override  public void onSubmit()  {  // TODO Auto-generated method stub  String p = ;
  }   };  }  }   And when I click the button, in the generation of the page I have the
  code duplicated:   script type=text/_javascript_   !--/*--![CDATA[/*!--*/ if (window.name=='') {
   window.location=/quickstart/app?wicket:interface=:1::INewBrow   serWindowListener; } /*--]]*//script   script type=text/_javascript_
   !--/*--![CDATA[/*!--*/ if (window.name=='') {   window.location=/quickstart/app?wicket:interface=:1::INewBrow 
  serWindowListener; } /*--]]*//script   And if I continue clicking the button, the page continue duplicating  the code... 
  If problem of my application?   --  ---  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=1216  42 ___  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 easierDownload 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.nethttps://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] Can I tell the application use UTF-8 without change servlet container?

2006-11-10 Thread Johan Compagner
Wicket can't do that getParameter conversionIt is tomcats stupid thing that you need to configure that extra in the connector configuration.Others don't have to do that and do follow everything with the encoding the browser sends in.
So if you yourself want to do that then implement your own webrequestjohanOn 11/10/06, Carfield Yim 
[EMAIL PROTECTED] wrote:On 11/9/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote: Wicket default is UTF-8. The problem is that e.g. Tomcat _requires_ some specific configuration as well. Wicket can do anything about it.I think the question I really try to do is can I assume the servlet
container default to some encoding, say for tomcat, the default isISO-8859-1, so for the input request.getParameter() method, wealways add a wrapper likereturn s == null ? null : new
String(s.getBytes(ISO-8859-1), charsetName);and for the output, we write to a printwriterPrintWriter(newOutputStreamWriter(response.getoutputstream(),Charsets.utf8()), true);
So that the user don't need to change the tomcat setting. And we neverfind anyone have problem about that. I just wonder can I do similarthing in wicket.-
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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] Header contribution not always rendered

2006-11-10 Thread Eelco Hillenius
On 11/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 add a bug into jira preferrably with a quickstart

Or maybe even better a unit test that proves this and that we can put in wicket.

Eelco

-
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] Header contribution not always rendered

2006-11-10 Thread Erik van Oosten
Ok, I'll try to extract the problem.

 Erik.


Eelco Hillenius schreef:
 On 11/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   
 add a bug into jira preferrably with a quickstart
 

 Or maybe even better a unit test that proves this and that we can put in 
 wicket.

 Eelco
   

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


-
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] Why add(IBehavior) is final?

2006-11-10 Thread Eelco Hillenius
Yeah. Erik, I see your point for the general case, but Alberto's case
- which I have myself sometimes too - is that you only use a panel
because you have to, but you want the user to view your component as
one of it's embedded elements (in his case the TextField). I think
that's a valid case.

So, if there are no objections, I'll remove that final later today.

Eelco


On 11/10/06, Alberto Bueno [EMAIL PROTECTED] wrote:


  In my case, I have created a TextField component, that is a panel that
 contains internally a TextField wicket component. Now, if I add the method
 addToField, the user will have two methods:

  TextField.add(IBehavior behavior)
  TextField.addToField(IBehavior behavior)

  I think that this case will be more confused than if I have only one
 method:

  TextField.add(IBehavior behavior){
  textField.add(behavior);
  }

  I don't want to add any behavior in the panel,  I only want to add
 behaviors in the field. Why do I have to create another method, that it will
 be more confused for the user?

  This is the same situation that when we use the IAlternateParent. We add
 the component in a component, but the real parent is another...




  I am definitely /not/ against removing final, but it is not going to
 work (not in general that is).

 Alberto's defense is that the user thinks he is working with a field,
 while in reality he is working with a panel. I assume that Alberto is
 using a panel because he wants some extra functionality around the
 field, say a button or a link. Anyway, now the user adds some behavior,
 say 'new SimpleAttributeModifier(style,
 background-color: #d91)'.
 Now in the described setup only the field will get the new background,
 while the user probably also wanted to color the whitespace around it.
 As a user I would find this pretty confusing.

 In short: there is no way of hiding the fact that the component you are
 offering to a user is a composite, if you also want the user to have
 access to the inner components.

 So my solution would be to either expose the inner field through a
 getter, or write the addToField method that was discussed earlier.

 Regards,
  Erik.



 Eelco Hillenius schreef:


  I could definitively live with removing final there. And maybe some
 other methods too.

 Anyone against removing final from add(IBehavior)?

 Eelco


 On 11/9/06, Alberto Bueno [EMAIL PROTECTED] wrote:



  Hi,
 now I have this solution, but I don't like it for you reasons:

 - Now I have two methods to add a Behavior: add(IBehavior) and
 addToField(IBehavior), and for the users can be confuse.
 - I want to have a transparent component. The user doesn't have to know
 that he is working with a panel. This is working with a field. If I have:

 MyField extends Panel{
  public MyField(MarkupContainer parent, String id){
  super(parent, id);

  new TextField(this, myField);
  }
 }

 For the user, MyField is a form Component, and if he add a new Behavior,
 the user thinks that the behavior is for the field, not for the panel.

 This is the idea...





  Why don't you write in your panel: void addToField(Behavior b) {...}?
 There is no need to corrupt the meaning of Wicket methods ;)

 Regards,
  Erik.


 Alberto Bueno schreef:




  Hi,

 I want to overwrite the add(IBehavior) method of the component, but this
 method is final.
 I want to use the same idea of AlternateParent when we add a new component.
 I have a panel, and I want to add a behavior in the panel, but the
 behavior is used in a field
 component that is in the panel.

 I don't want to say:
 panel.get(myField).add(new MyBehavior());

 I want to say:

 panel.add(new MyBehavior());

 and in the add() method of the panel say:

  public Component add(final IBehavior behavior)
  {
  get(myField).add(behavior);
  }

 Any idea to implement this functionality?

 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] stateless pages in 1.3

2006-11-10 Thread Scott Swank
Excellent.  We're beginning our big new public web app in the next
month or so and there have been questions about stateless options in
Wicket.  It will eventually be a complete rewrite of the web layer for
www.vegas.com.  We're considering Wicket  Facelets (i.e. JSF).

We can get (nearly) valid html out of Facelets by translating all of
the taglib soup to html with their jsfc tag.  I.e.

a:foo this=thatstuff/a:foo

becomes

span jsfc=a:foo this=thatstuff/span

But this still means that you're writing taglib-centric markup, you're
just hiding it behind jsfc=my:tag -- ugh.

Cheers,
Scott


On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Yes the stateless things are almost in 1.3. I need to finish it up a bit
 more.

 I don't know about the final of 1.3 but i guess we can have a beta of 1.3
 pretty soon.

 johan



  On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
 
  Will Wicket 1.3 have the full stateless functionality of 2.0?  If not,
  what significant features will be unavailable in 1.3?  And is there
  any sort of a release timeframe for 1.3?
 
  Many thanks,
  Scott
 
  --
  Scott Swank
  reformed mathematician
 
 
 -
  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





-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a
dictatorship in order to safeguard a revolution; one makes the
revolution in order to establish the dictatorship. The object of
persecution is persecution. The object of torture is torture. The
object of power is power.  -- George Orwell, 1984

-
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] stateless pages in 1.3

2006-11-10 Thread Eelco Hillenius
Sounds cool. Good luck!

Alternatively, you could consider 2.0, but that depends on how long
your project will take.

Eelco


On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
 Excellent.  We're beginning our big new public web app in the next
 month or so and there have been questions about stateless options in
 Wicket.  It will eventually be a complete rewrite of the web layer for
 www.vegas.com.  We're considering Wicket  Facelets (i.e. JSF).

 We can get (nearly) valid html out of Facelets by translating all of
 the taglib soup to html with their jsfc tag.  I.e.

 a:foo this=thatstuff/a:foo

 becomes

 span jsfc=a:foo this=thatstuff/span

 But this still means that you're writing taglib-centric markup, you're
 just hiding it behind jsfc=my:tag -- ugh.

 Cheers,
 Scott


 On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
  Yes the stateless things are almost in 1.3. I need to finish it up a bit
  more.
 
  I don't know about the final of 1.3 but i guess we can have a beta of 1.3
  pretty soon.
 
  johan
 
 
 
   On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
  
   Will Wicket 1.3 have the full stateless functionality of 2.0?  If not,
   what significant features will be unavailable in 1.3?  And is there
   any sort of a release timeframe for 1.3?
  
   Many thanks,
   Scott
  
   --
   Scott Swank
   reformed mathematician
  
  
  -
   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
 
 
 


 --
 Scott Swank
 reformed mathematician

 Power is not a means, it is an end. One does not establish a
 dictatorship in order to safeguard a revolution; one makes the
 revolution in order to establish the dictatorship. The object of
 persecution is persecution. The object of torture is torture. The
 object of power is power.  -- George Orwell, 1984

 -
 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] Problem in generation of the html code of the page

2006-11-10 Thread Korbinian Bachl



I cant notice this behaviour with wicket 1.2.3 so far - 
under 1.2.2 i have cases where the JS part misses, not so more under 
1.2.3...


  
  
  Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Im Auftrag von Igor 
  VaynbergGesendet: Freitag, 10. November 2006 17:57An: 
  wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Problem 
  in generation of the html code of the page
  add a bug into jira with your quickstart-igor
  On 11/10/06, Korbinian 
  Bachl [EMAIL PROTECTED]  
  wrote:
  2.0 
?or1.x ?(sorry, dont know whats in Trunk at the moment you got 
it) you might want to use wicket 1.2.3 as this hasnt the behaviour 
so far... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
Im Auftrag von Alberto Bueno Gesendet: Freitag, 10. November 
2006 11:55 An: wicket-user@lists.sourceforge.net 
Betreff: Re: [Wicket-user] Problem in generation of the html code of 
the page The trunk  What version of 
Wicket do you use?Regards  
 Korbinian 
-Ursprüngliche Nachricht-  Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
Im Auftrag von  Alberto Bueno   Gesendet: 
Freitag, 10. November 2006 10:35  An: wicket-user@lists.sourceforge.net 
 Betreff: [Wicket-user] Problem in generation of the html  
code of the  page   When I 
create a page, and this page generate this html code: 
  script 
type="text/_javascript_"   
!--/*--![CDATA[/*!--*/ if (window.name=='') { 
  
window.location="/quickstart/app?wicket:interface=:1::INewBrow 
   serWindowListener"; } 
/*--]]*//script   Now, I add a 
button in the page (a very simple page):   
public class Index extends QuickStartPage {  
 public Index(final PageParameters 
parameters)  { 
  
Form form = new Form(this, "form"); 
 new Button(form, 
"button"){   
 
@Override 
 
public void onSubmit() 
 
{ 
 
// TODO Auto-generated method stub 
 
String p = "";  
 
}  
 }; 
 }  } 
  And when I click the button, in the generation of 
the page I have the   code duplicated: 
  script 
type="text/_javascript_"   
!--/*--![CDATA[/*!--*/ if (window.name=='') { 
  
window.location="/quickstart/app?wicket:interface=:1::INewBrow 
  serWindowListener"; } 
/*--]]*//script  
 script type="text/_javascript_"  
  !--/*--![CDATA[/*!--*/ if 
(window.name=='') {   
window.location="/quickstart/app?wicket:interface=:1::INewBrow 
   serWindowListener"; } 
/*--]]*//script   And if I 
continue clicking the button, the page continue duplicating 
 the code...If problem of my 
application?   
-- 
 ---  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=1216 
 42 ___  
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 
easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 

Re: [Wicket-user] stateless pages in 1.3

2006-11-10 Thread Scott Swank
Thanks.  The six month time frame on 2.0 probably means that if we go
with Wicket it'll be 1.3 and then an upgrade to 2.0.

On 11/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Sounds cool. Good luck!

 Alternatively, you could consider 2.0, but that depends on how long
 your project will take.

 Eelco


 On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
  Excellent.  We're beginning our big new public web app in the next
  month or so and there have been questions about stateless options in
  Wicket.  It will eventually be a complete rewrite of the web layer for
  www.vegas.com.  We're considering Wicket  Facelets (i.e. JSF).
 
  We can get (nearly) valid html out of Facelets by translating all of
  the taglib soup to html with their jsfc tag.  I.e.
 
  a:foo this=thatstuff/a:foo
 
  becomes
 
  span jsfc=a:foo this=thatstuff/span
 
  But this still means that you're writing taglib-centric markup, you're
  just hiding it behind jsfc=my:tag -- ugh.
 
  Cheers,
  Scott
 
 
  On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
   Yes the stateless things are almost in 1.3. I need to finish it up a bit
   more.
  
   I don't know about the final of 1.3 but i guess we can have a beta of 1.3
   pretty soon.
  
   johan
  
  
  
On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
   
Will Wicket 1.3 have the full stateless functionality of 2.0?  If not,
what significant features will be unavailable in 1.3?  And is there
any sort of a release timeframe for 1.3?
   
Many thanks,
Scott
   
--
Scott Swank
reformed mathematician
   
   
   -
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
  
  
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  Power is not a means, it is an end. One does not establish a
  dictatorship in order to safeguard a revolution; one makes the
  revolution in order to establish the dictatorship. The object of
  persecution is persecution. The object of torture is torture. The
  object of power is power.  -- George Orwell, 1984
 
  -
  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



-- 
Scott Swank
reformed mathematician

-
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] Can I tell the application use UTF-8 without change servlet container?

2006-11-10 Thread Carfield Yim
 So if you yourself want to do that then implement your own webrequest

Good point... I guess I can extend WebRequest and tell Wicket to use
that... but Can I do similar think for WebResponse?

Yes, in fact doing that making the application hard, or may be
impossible to run at other web container, but turn out that save more
support call :-/

-
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] Not sure how to use DatePicker component

2006-11-10 Thread Eelco Hillenius
Sorry for the misguidance there. Something like this works:

final DateFormat fmt = new 
SimpleDateFormat(-MM-dd);
final DateConverter dateConverter = new DateConverter()
{
public DateFormat getDateFormat(Locale locale)
{
return fmt;
}
};
TextField datePropertyTextField = new 
TextField(dateProperty, Date.class);
add(datePropertyTextField);
DatePicker datePicker = new DatePicker(datePicker, 
dateLabel,
datePropertyTextField);
datePicker.setDateConverter(dateConverter);
add(datePicker);


though in the above example, the text field itself needs to use the
proper date format as well.

I was wrong about DatePickerSettings#setIfFormat. You don't need that.

Instead of following the above example code I gave, you'd probably be
best off to set a global date converter (explained here
http://cwiki.apache.org/WICKET/using-custom-converters.html).


Eelco

All of this is friggin' ugly anyway. You may have noticed that we are
about to remove the datepicker component from the extensions project.

On 11/10/06, Carfield Yim [EMAIL PROTECTED] wrote:
  That would be:
 
  /**
   * The format string that will be used to enter the date in the 
  input field.
   * This format will be honored even if the input field is hidden. 
  Use
   * Javascript notation, like '%m/%d/%Y'.
   */
  private String ifFormat = null;
 
  Use DatePicker#setDateConverter to align the two.
 
 
 I guess you mean something like

 DatePicker dp = new DatePicker(birthDayPicker, dateField);
 DateConverter dc = new DateConverter();
 dc.setDateFormat(Locale.ENGLISH,
 DateFormat.getDateInstance(DateFormat.SHORT, Locale.ENGLISH));
 dp.setDateConverter(dc);

 However, just try and no effect at al ... any problem ?

 -
 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] Authentication Tomcat - Wicket

2006-11-10 Thread Dmitry Kandalov


Eelco Hillenius wrote:
 
 But as you got from the answers on this thread, URL based
 authorization schemes in not something we recommend for Wicket. It'll
 basically bring you back to page-level development again, whereas the
 whole point of Wicket is to provide a component based paradigm.
 

Thank you all for help. The most helpful was the idea to put behind security
constrains the login page only and use wicket authorization, that's what I
did. 

Will it be ok if I try to write something to wiki?
-- 
View this message in context: 
http://www.nabble.com/Authentication-Tomcat-%3C-%3E-Wicket-tf2588672.html#a7283196
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Wicket [EMAIL PROTECTED]

2006-11-10 Thread Eelco Hillenius
We (Martijn and me) spoke there last year, but after doing a couple of
presentations the last year, we're out of time and energy (and money!)
to keep on doing that. We might get more active again in 2007.

But... everyone is more than welcome to take up the initiative, so if
any of you Wicket users is going to JavaPolis and want a get-together,
we'd love to see the pictures of that!

Have fun,

Eelco

Sorry for the cross post, but this seemed a better topic for the user list.


On 11/10/06, Filippo Diotalevi [EMAIL PROTECTED] wrote:
 Hi everybody,
   (this is the first time I post here, so I should probably present
 myself.. my name's Filippo, live in Milan, for more info:
 http://www.diotalevi.com; obviously I like Wicket and I'd like to
 contribute, but give me some time to study it more in deep...).
 This morning I was having a look at the schedule of the next
 Javapolis, and noticed that there aren't presentations about Wicket.
 That's a pity!

 Since I see that some of you are europeans, my question is: are you
 going to Javapolis next December? would you be interested in
 organizing a BOF about Wicket? I mean, nothing formal, just an hands
 on lab to show how the framework works, how to use it with Spring and
 the like. It would be great for wicket-newbies like me to have the
 opportunity to learn directly from the developers..

 If anyone of you guys is interested, I can take care of the
 organization (writing a proposal, contacting the organizers...)

 WDYT?

 --
 Filippo Diotalevi
 [EMAIL PROTECTED]
 http://www.diotalevi.com/weblog
 http://www.jugmilano.it


-
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] Alter text of Label at render?

2006-11-10 Thread Jonathan Sharp
I have a custom label component that extends label. In the constructor
it takes a form component that I want it to check if isRequired() at
render time and append * to the text of the label. What would be the
easiest way to do this? The data for the label could be passed in
through various models, etc.

Cheers,
-js

-
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] Alter text of Label at render?

2006-11-10 Thread Erik van Oosten
Something like this?

class MyLabel extends Label {
   private String text;
   public MyLabel(String id, String text, final FormComponent fc) {
   super(id, new AbstractReadOnlyModel() {
   Object getObject(Component component) {
return text + (fc.isRequired() ?  * : );
   }
   this.text = text;
   }
}

Have fun,
 Erik.


Jonathan Sharp schreef:
 I have a custom label component that extends label. In the constructor
 it takes a form component that I want it to check if isRequired() at
 render time and append * to the text of the label. What would be the
 easiest way to do this? The data for the label could be passed in
 through various models, etc.

 Cheers,
 -js
   

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


-
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] Alter text of Label at render?

2006-11-10 Thread Eelco Hillenius
Probably the easiest thing to do is extend WebComponent instead of
label. Label is a super simple component really. This

protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, 
getModelObjectAsString());
}

is the only exiting thing it does, so you might as well replace this
line to append the * when you need that.

Eelco


On 11/10/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
 I have a custom label component that extends label. In the constructor
 it takes a form component that I want it to check if isRequired() at
 render time and append * to the text of the label. What would be the
 easiest way to do this? The data for the label could be passed in
 through various models, etc.

 Cheers,
 -js

 -
 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] Alter text of Label at render?

2006-11-10 Thread Eelco Hillenius
That's a good alternative too.

Eelco

On 11/10/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Something like this?

 class MyLabel extends Label {
private String text;
public MyLabel(String id, String text, final FormComponent fc) {
super(id, new AbstractReadOnlyModel() {
Object getObject(Component component) {
 return text + (fc.isRequired() ?  * : );
}
this.text = text;
}
 }

 Have fun,
  Erik.


 Jonathan Sharp schreef:
  I have a custom label component that extends label. In the constructor
  it takes a form component that I want it to check if isRequired() at
  render time and append * to the text of the label. What would be the
  easiest way to do this? The data for the label could be passed in
  through various models, etc.
 
  Cheers,
  -js
 

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


 -
 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] Alter text of Label at render?

2006-11-10 Thread Jonathan Sharp
Thanks for both of your replys!

I think extending WebComponent is the way I'll do it as then I don't
care about the type of model that gets used...

Thanks again!

Cheers,
-js


On 11/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Probably the easiest thing to do is extend WebComponent instead of
 label. Label is a super simple component really. This

 protected void onComponentTagBody(final MarkupStream markupStream,
 final ComponentTag openTag)
 {
 replaceComponentTagBody(markupStream, openTag, 
 getModelObjectAsString());
 }

 is the only exiting thing it does, so you might as well replace this
 line to append the * when you need that.

 Eelco


 On 11/10/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
  I have a custom label component that extends label. In the constructor
  it takes a form component that I want it to check if isRequired() at
  render time and append * to the text of the label. What would be the
  easiest way to do this? The data for the label could be passed in
  through various models, etc.
 
  Cheers,
  -js
 
  -
  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] Authentication Tomcat - Wicket

2006-11-10 Thread Eelco Hillenius
Yeah. There are just multiple problems with URL based authorization.
It works fine for document-oriented sites, but how long ago was it
when we were building those :)

Take for example the use case that you want to hide a panel - but show
the rest of the page - when a user is not authorized for that panel.
This is very easy to do with Wicket, either by building it in in the
component, or by using an authorization strategy. An URL based
approach doesn't help you here. And URL approach basically forces you
to bring everything back to the URL level, including your refactoring
options etc.

But... like said before, it can be done if you really want it, by
using page mounting or even a custom IRequestCodingStrategy and some
smart thinking. Just don't expect it to be pretty :)

Eelco



On 11/10/06, Rik van der Kleij [EMAIL PROTECTED] wrote:
 Hi,

 That is also the reason why Acegi and Wicket don't integrate well.
 Till now I have not found a good way to secure Wicket components by
 Acegi. Acegi is based on URL requests, method intercepting and
 securing domain objects by ACL's. According to me you want to set
 authorization on component level. Annotations is a way but I prefer
 security by configuration. Maybe the only good solution is to build a
 Wicket specific solution.

 Regards,
 Rik


 On 9-nov-2006, at 18:53, Eelco Hillenius wrote:

  And if you use 2.0, you can set
  getSecuritySettings().setEnforceMounts(true), so that these mounted
  pages are only reachable using these paths.
 
  But as you got from the answers on this thread, URL based
  authorization schemes in not something we recommend for Wicket. It'll
  basically bring you back to page-level development again, whereas the
  whole point of Wicket is to provide a component based paradigm.
 
  Eelco
 
 
  On 11/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  you can use package mounting to mount all pages in your admin
  package to a
  path, depends on how your classes are stored
 
  -igor
 
 
 
  On 11/9/06, Dmitry Kandalov [EMAIL PROTECTED] wrote:
 
 
  Erik van Oosten wrote:
 
  Wicket supports per component authorisation. You could take a
  look at
  wicket-auth-roles-example (a small project available through svn).
  In this project some components (pages) are marked. The mark
  indicates
  which roles are required for the component. As long as the user
  does not
  hit those components the application runs fine. As soon as the
  user does
  hit such a component, the sign-in page is displayed.
 
   Erik.
 
 
  Thanks for advice, example is good. But I have to use tomcat
  authentication
  (not authorization). To make it work I have to declare
  security-constraint.
  --
  View this message in context:
  http://www.nabble.com/Authentication-Tomcat-%3C-%3E-Wicket-
  tf2588672.html#a7254648
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
  -
  
  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


 -
 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
 

Re: [Wicket-user] Authentication Tomcat - Wicket

2006-11-10 Thread Erik van Oosten
Hi Rik,

We use Acegi because of its excellent backend features. We do not use 
Acegi to do authorization in the frontend, we just give a 
username/pasword and ask it for the roles. Acegi gets it out of LDAP for 
us, wicket-auth-roles does the authorization. The Acegi filter sets the 
authenticated user on a tread-local, but that is the only involvement of 
Acegi in the front-end. However, having the thread-local Acegi can be 
still for used for securing the spring configured services.

The authorization settings are set by our application and stored in the 
Wicket metadata facility (again using wicket-auth-roles). If desired we 
could have easily read that information from an ACL file.

Would this be an acceptable solution?

 Erik.


Rik van der Kleij schreef:
 Hi,

 That is also the reason why Acegi and Wicket don't integrate well.  
 Till now I have not found a good way to secure Wicket components by  
 Acegi. Acegi is based on URL requests, method intercepting and  
 securing domain objects by ACL's. According to me you want to set  
 authorization on component level. Annotations is a way but I prefer  
 security by configuration. Maybe the only good solution is to build a  
 Wicket specific solution.

 Regards,
 Rik
   

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


-
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] Wrap a component through a visitor?

2006-11-10 Thread Jonathan Sharp
Is it possible to take a component such as a Button and make it a
child of a new component so as to wrap it?

class MyPage extends WebPage {

add(new Button(myButton));

public void onBeforeRender() {
visitChildren(new MyVisitor());
}
}

class MyVisitor implements IVisitor {
public void component(Component c) {
if (c instanceof Button) {
WebMarkup wm = new WebMarkup();
c.replaceWith(wm);
wm.add(c);
}
}
}

Cheers,
-js

-
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] 雄达税务代理有限公司

2006-11-10 Thread 张先生
您好!
   
我公司是深圳市税务代理有限公司。我公司现有各种财务所用票据(普通国税发票,地税发票,增值税发票,海关专用缴款书)可以向外优惠代开。欢迎贵公司来电咨询,希望我们有共同合作的机会。如有打扰,请原谅。谢谢!

联系电话:13714839618
联系人:林先生
[EMAIL PROTECTED]

-
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] stateless pages in 1.3

2006-11-10 Thread Johan Compagner
Ok i committed everything delayed sessions, stateless pages (stateless link and form) andthe SecondLevelCacheStore is now in the 1.3 branch.please start testing :)what more do we want in 1.3 from 2.0?
johanOn 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
Yes the stateless things are almost in 1.3. I need to finish it up a bit more.I don't know about the final of 1.3 but i guess we can have a beta of 1.3 pretty soon.johan

On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:

Will Wicket 1.3 have the full stateless functionality of 2.0?If not,what significant features will be unavailable in 1.3?And is thereany sort of a release timeframe for 1.3?Many thanks,Scott

--Scott Swankreformed mathematician-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 listWicket-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] Wrap a component through a visitor?

2006-11-10 Thread Igor Vaynberg
not at that time. during the render phase you are not allowed to modify component hierarchy. try doing it in onattach instead.in 2.0 you will need to use a different pattern - we havent built the reparenting mechanism in 
2.0 yet - still figuring out what the simplest way is.-igorOn 11/10/06, Jonathan Sharp [EMAIL PROTECTED]
 wrote:Is it possible to take a component such as a Button and make it achild of a new component so as to wrap it?
class MyPage extends WebPage {add(new Button(myButton));public void onBeforeRender() {visitChildren(new MyVisitor());}}class MyVisitor implements IVisitor {
public void component(Component c) {if (c instanceof Button) {WebMarkup wm = new WebMarkup();c.replaceWith(wm);wm.add(c);}}}
Cheers,-js-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-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] stateless pages in 1.3

2006-11-10 Thread Eelco Hillenius
Yipee!

Eelco

On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Ok i committed everything delayed sessions, stateless pages (stateless link
 and form) and
 the SecondLevelCacheStore is now in the 1.3 branch.

 please start testing :)

 what more do we want in 1.3 from 2.0?

 johan


 On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
  Yes the stateless things are almost in 1.3. I need to finish it up a bit
 more.
 
  I don't know about the final of 1.3 but i guess we can have a beta of 1.3
 pretty soon.
 
  johan
 
 
 
 
  On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
   Will Wicket 1.3 have the full stateless functionality of 2.0?  If not,
   what significant features will be unavailable in 1.3?  And is there
   any sort of a release timeframe for 1.3?
  
   Many thanks,
   Scott
  
   --
   Scott Swank
   reformed mathematician
  
  
 -
   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] stateless pages in 1.3

2006-11-10 Thread Scott Swank
Very cool, I'll have to get Maven set up and give 1.3 a whirl.  This
is certainly marvelous timing as far as I'm concerned.

On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Ok i committed everything delayed sessions, stateless pages (stateless link
 and form) and
 the SecondLevelCacheStore is now in the 1.3 branch.

 please start testing :)

 what more do we want in 1.3 from 2.0?

 johan


 On 11/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
  Yes the stateless things are almost in 1.3. I need to finish it up a bit
 more.
 
  I don't know about the final of 1.3 but i guess we can have a beta of 1.3
 pretty soon.
 
  johan
 
 
 
 
  On 11/10/06, Scott Swank [EMAIL PROTECTED] wrote:
   Will Wicket 1.3 have the full stateless functionality of 2.0?  If not,
   what significant features will be unavailable in 1.3?  And is there
   any sort of a release timeframe for 1.3?
  
   Many thanks,
   Scott
  
   --
   Scott Swank
   reformed mathematician
  
  
 -
   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





-- 
Scott Swank
reformed mathematician

-
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] Authentication Tomcat - Wicket

2006-11-10 Thread Rik van der Kleij
Hi Erik,

Yes. So you mean in short: use Acegi for authentication and use  
wicket-auth-roles for authorization. That is a good compromise  
because you get some of the features of Acegi out-of-the-box, like a  
LDAP-server authentication as you mention.

Questions;
Do you use a normal login form according to Acegi or do you use a  
Wicket login form?
Where do you put your authorization settings?

 If desired we
 could have easily read that information from an ACL file.

What do you have in mind as content for the ACL file. I understand  
from the Acegi reference guide that you can set authorization on  
domain objects. But what for example if the case is that a delete  
button may only be visible for administrators?

Regards,
Rik


On 10-nov-2006, at 22:17, Erik van Oosten wrote:

 Hi Rik,

 We use Acegi because of its excellent backend features. We do not use
 Acegi to do authorization in the frontend, we just give a
 username/pasword and ask it for the roles. Acegi gets it out of  
 LDAP for
 us, wicket-auth-roles does the authorization. The Acegi filter sets  
 the
 authenticated user on a tread-local, but that is the only  
 involvement of
 Acegi in the front-end. However, having the thread-local Acegi can be
 still for used for securing the spring configured services.

 The authorization settings are set by our application and stored in  
 the
 Wicket metadata facility (again using wicket-auth-roles). If  
 desired we
 could have easily read that information from an ACL file.

 Would this be an acceptable solution?

  Erik.


 Rik van der Kleij schreef:
 Hi,

 That is also the reason why Acegi and Wicket don't integrate well.
 Till now I have not found a good way to secure Wicket components by
 Acegi. Acegi is based on URL requests, method intercepting and
 securing domain objects by ACL's. According to me you want to set
 authorization on component level. Annotations is a way but I prefer
 security by configuration. Maybe the only good solution is to build a
 Wicket specific solution.

 Regards,
 Rik


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


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