Re: [Wicket-user] about base path

2006-07-03 Thread Igor Vaynberg
afaik servlet containers do not allow direct access to WEB-INF, so if you want to store images there youd have to map apache or something else to do that, but be careful, you dont want people getting access to your config/classes files that also live in WEB-INF, i wouldnt recommend doing it that way
-IgorOn 7/2/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
Can't you just store your images in WEB-INF/images? You don't need tostore them in something similar to the URL mapping.Else take a look at the base HTML tag which goes into head:
http://www.htmlhelp.com/reference/html40/head/base.htmlRegardsFrank BilleAvaleoOn Sun, 2006-07-02 at 20:05 -0700, R.A wrote: Hi all. I have a base path question.
 I set my WebApplication class in web.xml as follows. lt;servletgt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt; lt;servlet-classgt;wicket.protocol.http.WicketServletlt;/servlet-classgt;
 lt;init-paramgt; lt;param-namegt;applicationClassNamelt;/param-namegt; lt;param-valuegt;pc.MyApplicationlt;/param-valuegt;
 lt;/init-paramgt; lt;load-on-startupgt;2lt;/load-on-startupgt; lt;/servletgt; lt;servlet-mappinggt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt;
 lt;url-patterngt;/pc/*lt;/url-patterngt; lt;/servlet-mappinggt; I store image files at WEB-INF/pc/images. If I set image tag in html file, img src="" work fine.
 But I'd like to set image tag, img src=""> Is it possible to set base path, /pc, in wicket java source? Regards, R.AUsing 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] about base path

2006-07-03 Thread R.A

Hi Frank and Igor.

Thanks for your replies.
I had mistaken idea...
I use base tag and move image directory from WEB-INF.
Thank you!

Regards,
R.A
-- 
View this message in context: 
http://www.nabble.com/about-base-path-tf1882484.html#a5147266
Sent from the Wicket - User forum 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] about base path

2006-07-03 Thread Frank Bille Jensen
Sry.. I meant of course WEB-INF/pc/images - images. Why doesn't email
clients just send what I think and not what I write ;)

Frank


On Sun, 2006-07-02 at 23:23 -0700, Igor Vaynberg wrote:
 afaik servlet containers do not allow direct access to WEB-INF, so if
 you want to store images there youd have to map apache or something
 else to do that, but be careful, you dont want people getting access
 to your config/classes files that also live in WEB-INF, i wouldnt
 recommend doing it that way 
 
 -Igor
 
 
 On 7/2/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
 Can't you just store your images in WEB-INF/images? You don't
 need to
 store them in something similar to the URL mapping.
 
 Else take a look at the base HTML tag which goes into head:
 
 http://www.htmlhelp.com/reference/html40/head/base.html
 
 Regards
 Frank Bille
 Avaleo
 
 
 On Sun, 2006-07-02 at 20:05 -0700, R.A wrote:
  Hi all.
 
  I have a base path question.
  I set my WebApplication class in web.xml as follows.
 
  lt;servletgt;
lt;servlet-namegt;MyApplicationlt;/servlet-namegt;
 
 
 
 lt;servlet-classgt;wicket.protocol.http.WicketServletlt;/servlet-classgt; 
lt;init-paramgt;
 
 lt;param-namegt;applicationClassNamelt;/param-namegt;
 
 lt;param-valuegt;pc.MyApplicationlt;/param-valuegt;
lt;/init-paramgt;
lt;load-on-startupgt;2lt;/load-on-startupgt;
  lt;/servletgt;
 
  lt;servlet-mappinggt;
 
 lt;servlet-namegt;MyApplicationlt;/servlet-namegt; 
lt;url-patterngt;/pc/*lt;/url-patterngt;
  lt;/servlet-mappinggt;
 
  I store image files at WEB-INF/pc/images.
  If I set image tag in html file, img
 src=pc/images/abc.jpg, work fine. 
  But I'd like to set image tag, img src=images/abc.jpg.
  Is it possible to set base path, /pc, in wicket java
 source?
 
  Regards,
  R.A
 
 
 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] about base path

2006-07-03 Thread R.A

Hi.

Let me ask another question.
I'd like to change absolute path in base tag dynamically.
I get absolute path in page class as follows.

HttpServletRequest request = ((WebRequest)
getRequest()).getHttpServletRequest();
String path = request.getRequestURL().toString();

How do I set this path in base tag?

Regards,
R.A
-- 
View this message in context: 
http://www.nabble.com/about-base-path-tf1882484.html#a5147772
Sent from the Wicket - User forum 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] RequiredTextField not validated and RadioGroup onSelectionChanged method not called

2006-07-03 Thread Alban Duval




I have the same problem with 1.2 final

Matej Knopp a crit:

  Current released version is 1.2 final, can you check if it works with 
that version?

-Matej

Alban Duval wrote:
  
  
Hi all.

I have two problems with Form in wicket 1,2-rc4 (it worked wit rc3 :-/ )

* The first is RequiredTextField that is not required when
  executing. The user can go to the next page without filling the
  text field.

The RequiredTextField is added in a form like this :

public class IntroForm extends Form {
public IntroForm(String arg0) {
super(arg0, new CompoundPropertyModel(loan));
RequiredTextField RTF = new
RequiredTextField("textRTF");
add(RTF);
}

protected void onSubmit() {
log.debug("Submitting NykStep0Page");
setResponsePage(NykStep1Page.class);
}
}


* The second problem is for a RadioGroup. The method
  onSelectionChanged is not called when changing the selection
  So the model is not updated, so it doesn't work as I would like
  to... but changing the selection

RadioGroup erg = new
RadioGroup("educationRadioGroup",new PropertyModel(pdwa, "education")){
   
protected void onSelectionChanged(Object newSelection) {
log.debug("NykStep1Page - educationRadioGroup -
onSelectionChanged");
pdwa = (PersonalDataWithAddress)newSelection;
}

protected boolean
wantOnSelectionChangedNotifications() {
return true;
}
};

If someone has an idea why those two simple things don't work

Best regards,
Alban Duval.




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

__ NOD32 1.1638 (20060702) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] about base path

2006-07-03 Thread Frank Bille Jensen
On Mon, 2006-07-03 at 00:46 -0700, R.A wrote:
 How do I set this path in base tag?

In html:

base wicket:id=baseTag /

In java:

WebComponent baseTag = new WebComponent(baseTag);
baseTag.add(new SimpleAttributeModifier(href, path));
add(baseTag);


Frank


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] RequiredTextField not validated and RadioGroup onSelectionChanged method not called

2006-07-03 Thread Eelco Hillenius
I just checked in the fix for the problem I found with Jetty 6 (and
which might be an issue in other containers). From the change log:

'Implemented a workaround for an inconsistency between different
servlet containers and a bug in the servlet spec which does not seem
to state what should happen with empty valued request parameters. This
caused Wicket to have some problems (like a failing required test)
with Jetty 6.'

Could you please test against the current 1_2 branch?

Cheers,

Eelco



On 7/3/06, Alban Duval [EMAIL PROTECTED] wrote:

  I have the same problem with 1.2 final

  Matej Knopp a écrit :
  Current released version is 1.2 final, can you check if it works with
 that version?

 -Matej

 Alban Duval wrote:


  Hi all.

 I have two problems with Form in wicket 1,2-rc4 (it worked wit rc3 :-/ )

  * The first is RequiredTextField that is not required when
  executing. The user can go to the next page without filling the
  text field.

  The RequiredTextField is added in a form like this :

  public class IntroForm extends Form {
  public IntroForm(String arg0) {
  super(arg0, new CompoundPropertyModel(loan));
  RequiredTextField RTF = new
  RequiredTextField(textRTF);
  add(RTF);
  }

  protected void onSubmit() {
  log.debug(Submitting NykStep0Page);
  setResponsePage(NykStep1Page.class);
  }
  }


  * The second problem is for a RadioGroup. The method
  onSelectionChanged is not called when changing the selection
  So the model is not updated, so it doesn't work as I would like
  to... but changing the selection

  RadioGroup erg = new
  RadioGroup(educationRadioGroup,new PropertyModel(pdwa,
 education)){

  protected void onSelectionChanged(Object newSelection) {
  log.debug(NykStep1Page - educationRadioGroup -
  onSelectionChanged);
  pdwa = (PersonalDataWithAddress)newSelection;
  }

  protected boolean
  wantOnSelectionChangedNotifications() {
  return true;
  }
  };

  If someone has an idea why those two simple things don't work

  Best regards,
  Alban Duval.


 

 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
  __ NOD32 1.1638 (20060702) Information __ This message was
 checked by NOD32 antivirus system. http://www.eset.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] about base path

2006-07-03 Thread R.A

Hi Frank.

I succeeded at setting base tag, thank you!
But images is unshown.
I write img src=image/abc.jpg in html file, but as looking at source file
on browser, img src=myapp/image/abc.jpg.
It seems like to be added myapp to img tag by Wicket.
myapp is context root.
I set http://localhost:9080/myapp/pc;(create dynamically) in base tag, so
I'd like not to be added nothing img tag.
What's wrong?

Regards,
R.A
-- 
View this message in context: 
http://www.nabble.com/about-base-path-tf1882484.html#a5148315
Sent from the Wicket - User forum 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] about base path

2006-07-03 Thread Johan Compagner
yes we are prepending the context and servlet paths to your html files so that they map ok.See the PrependContextPathHandler So if everything works out you shouldn't need to set the basetag, because we are preparsing the source for you.
johanOn 7/3/06, R.A [EMAIL PROTECTED] wrote:
Hi Frank.I succeeded at setting base tag, thank you!But images is unshown.I write img src="" in html file, but as looking at source fileon browser, img src=""
It seems like to be added myapp to img tag by Wicket.myapp is context root.I set http://localhost:9080/myapp/pc(create dynamically) in base tag, so
I'd like not to be added nothing img tag.What's wrong?Regards,R.A--View this message in context: http://www.nabble.com/about-base-path-tf1882484.html#a5148315
Sent from the Wicket - User forum 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 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] about base path

2006-07-03 Thread R.A

Hi Johan.

I remove base tag and set getApplicationSettings().setContextPath(path) in
my webapplication class's init method, work fine.
Thank you!
But...I don't know how do I path dynamically, so I set direct path, String
path = http://localhost:9080/myapp/pc;, this time.
How do I get HttpServletRequest in webapplication class?
I tried HttpServletRequest request =
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest(),
NullPointerException occured.

Regards,
R.A
-- 
View this message in context: 
http://www.nabble.com/about-base-path-tf1882484.html#a5149488
Sent from the Wicket - User forum 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


[Wicket-user] Disabling FormComponents

2006-07-03 Thread Joni Freeman
I have a curious requirement for a form. When a user submits a form,
some of the FormComponents should not be processed at all (for example,
validation should not be done). Each FormComponent has an accompanying
checkbox control which determines whether the actual control is
activated or not.

[ ]___ (this text field should not be processed)
[X]___ (this should be)

etc.

One way to implement this could be by overriding Form.validate().
However, it seems tedious and not very elegant, so maybe i'm missing
something obvious?

Joni



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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

Why I should always call setOutputMarkupId(true) when I want to ajaxify the
component, couldn't it by default be true?
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5149915
Sent from the Wicket - User forum 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] Question about OutputMarkupId

2006-07-03 Thread Martijn Dashorst
it will add id='dlfjldfj' to each component, which adds to the
amount of data sent,
it can overwrite existing 'id' attributes, disabling efforts done by
your designer,
ajax is hot, but not everyone wants to use it, so enabling it by
default is not something we as a framework supplier want to push.

Martijn

On 7/3/06, Alex Objelean [EMAIL PROTECTED] wrote:

 Why I should always call setOutputMarkupId(true) when I want to ajaxify the
 component, couldn't it by default be true?
 --
 View this message in context: 
 http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5149915
 Sent from the Wicket - User forum 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



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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] Disabling FormComponents

2006-07-03 Thread Martijn Dashorst
You can add form level validation, creating composite validators, and
add both the checkbox and the field, and the validators for the field
to your composite validator.

See EqualInputValidator for an example implementation.

Martijn

On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
 I have a curious requirement for a form. When a user submits a form,
 some of the FormComponents should not be processed at all (for example,
 validation should not be done). Each FormComponent has an accompanying
 checkbox control which determines whether the actual control is
 activated or not.

 [ ]___ (this text field should not be processed)
 [X]___ (this should be)

 etc.

 One way to implement this could be by overriding Form.validate().
 However, it seems tedious and not very elegant, so maybe i'm missing
 something obvious?

 Joni



 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



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

In this case, the designer efforts will be disabled anytime I use an
ajaxified component, isn't it?
For instance I have :

div wicket:id=idForWicket id=idForDesigner/div

in CSS:

div#idForDesigner {
  float: left; 
  border: solid red 1px;
} 

in JAVA:

Component component = new MyComponent(idForWicket);
component.setOutputMarkupId(true);

As the result, the idForDesigner will be overriden with a new generated
value? Did I understood it right?


-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5150502
Sent from the Wicket - User forum 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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

Indeed, it seems that the old value is overriden with the generated value...
In this case, why the markupId do not care about the old value? Wouldn't it
be much better if it would be the same as the original id?


Alex Objelean wrote:
 
 In this case, the designer efforts will be disabled anytime I use an
 ajaxified component, isn't it?
 For instance I have :
 
 div wicket:id=idForWicket id=idForDesigner/div
 
 in CSS:
 
 div#idForDesigner {
   float: left; 
   border: solid red 1px;
 } 
 
 in JAVA:
 
 Component component = new MyComponent(idForWicket);
 component.setOutputMarkupId(true);
 
 As the result, the idForDesigner will be overriden with a new generated
 value? Did I understood it right?
 
 
 
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5150652
Sent from the Wicket - User forum 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] Disabling FormComponents

2006-07-03 Thread Joni Freeman
The problem with FormValidator is that the individual components
(checkbox + textfields) are still validated with validators
(FormComponent.validateValidators()). My client wants the form to work
so that if the checkbox is not checked, the textfields can contain
invalid data.

One way to implement this could be by changing the execution order of
validators so that FormValidators are executed before component
validators:

class MyForm extends Form {
protected void validate()
{
validateRequired();
validateConversion();
validateFormValidators();
validateValidators();
}
}

And then somehow disable the component at special FormValidator if
checkbox is not checked. Maybe this can be done by calling
setEnabled(false) ?

Joni

On Mon, 2006-07-03 at 13:33 +0200, Martijn Dashorst wrote:
 You can add form level validation, creating composite validators, and
 add both the checkbox and the field, and the validators for the field
 to your composite validator.
 
 See EqualInputValidator for an example implementation.
 
 Martijn
 
 On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
  I have a curious requirement for a form. When a user submits a form,
  some of the FormComponents should not be processed at all (for example,
  validation should not be done). Each FormComponent has an accompanying
  checkbox control which determines whether the actual control is
  activated or not.
 
  [ ]___ (this text field should not be processed)
  [X]___ (this should be)
 
  etc.
 
  One way to implement this could be by overriding Form.validate().
  However, it seems tedious and not very elegant, so maybe i'm missing
  something obvious?
 
  Joni
 
 
 
  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] Question about OutputMarkupId

2006-07-03 Thread Martijn Dashorst
This is because the 'ajax' ID (the id Wicket uses in rendering) has to
be known before it knows the markup tag. This is a limitation of 1.2
that we have solved in 2.0 with the constructor change.

Simply put: in order to generate a unique identifier, a component
needs its parent. During construction using the add method, the parent
is typically not know. JavaScript for header contributions and other
things typically get rendered before the component in question. Wicket
doesn't know about the component's tag, so it can't retrieve the
markup id. Markup id generation overwrites the assigned ID because
other components and markup pieces can depend on it.

As said previously, this particular problem is solved in 2.0, as the
component's parent is know at construction time. This doesn't mean
Wicket won't overwrite your markup ID in 2.0 (I don't know that yet),
but it makes the need for generating the ID's a lot smaller. Typically
you will still need to generate the markup id, even in 2.0, to create
valid markup (markup ID's need to be unique across the document).

Martijn

On 7/3/06, Alex Objelean [EMAIL PROTECTED] wrote:

 Indeed, it seems that the old value is overriden with the generated value...
 In this case, why the markupId do not care about the old value? Wouldn't it
 be much better if it would be the same as the original id?


 Alex Objelean wrote:
 
  In this case, the designer efforts will be disabled anytime I use an
  ajaxified component, isn't it?
  For instance I have :
 
  div wicket:id=idForWicket id=idForDesigner/div
 
  in CSS:
 
  div#idForDesigner {
float: left;
border: solid red 1px;
  }
 
  in JAVA:
 
  Component component = new MyComponent(idForWicket);
  component.setOutputMarkupId(true);
 
  As the result, the idForDesigner will be overriden with a new generated
  value? Did I understood it right?
 
 
 
 --
 View this message in context: 
 http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5150652
 Sent from the Wicket - User forum 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



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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] Disabling FormComponents

2006-07-03 Thread Martijn Dashorst
Why not something like:

class MyCustomValidator extends AbstractFormValidator {
private ListStringValidator validators;
private CheckBox checkbox;
private FormComponent formComponent;

public MyCustomValidator(cb, fc, StringValidator... vs) {
this.checkbox = cb;
this.formComponent = fc;
this.validators = Arrays.asList(vs);
}
public boolean validate(Form form) {
if(checkbox.isChecked) {
for(StringValidator sv : validators) {
sv.onValidate(formComponent, formComponent.getInput());
}
}
}
}

Martijn

On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
 The problem with FormValidator is that the individual components
 (checkbox + textfields) are still validated with validators
 (FormComponent.validateValidators()). My client wants the form to work
 so that if the checkbox is not checked, the textfields can contain
 invalid data.

 One way to implement this could be by changing the execution order of
 validators so that FormValidators are executed before component
 validators:

 class MyForm extends Form {
 protected void validate()
 {
 validateRequired();
 validateConversion();
 validateFormValidators();
 validateValidators();
 }
 }

 And then somehow disable the component at special FormValidator if
 checkbox is not checked. Maybe this can be done by calling
 setEnabled(false) ?

 Joni

 On Mon, 2006-07-03 at 13:33 +0200, Martijn Dashorst wrote:
  You can add form level validation, creating composite validators, and
  add both the checkbox and the field, and the validators for the field
  to your composite validator.
 
  See EqualInputValidator for an example implementation.
 
  Martijn
 
  On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
   I have a curious requirement for a form. When a user submits a form,
   some of the FormComponents should not be processed at all (for example,
   validation should not be done). Each FormComponent has an accompanying
   checkbox control which determines whether the actual control is
   activated or not.
  
   [ ]___ (this text field should not be processed)
   [X]___ (this should be)
  
   etc.
  
   One way to implement this could be by overriding Form.validate().
   However, it seems tedious and not very elegant, so maybe i'm missing
   something obvious?
  
   Joni
  
  
  
   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



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

First of all, thank you for your feedback, appreciate it very much!
I am new to Wicket. Before starting with Wicket I had some experience with
Echo2, where I do not have to worry about how to make a component being
ajaxified. This is why I am a little bit frustrated about this in Wicket..
Hope the 2.0 release will solve something in this direction. Anyway, I am
very pleased to work with Wicket and think you have done a great job! 
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5151108
Sent from the Wicket - User forum 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] about base path

2006-07-03 Thread Johan Compagner
that should work fineBut you can only do that when a request is comming in not in construction time of the webapp.johanOn 7/3/06, R.A 
[EMAIL PROTECTED] wrote:
Hi Johan.I remove base tag and set getApplicationSettings().setContextPath(path) inmy webapplication class's init method, work fine.Thank you!But...I don't know how do I path dynamically, so I set direct path, String
path = http://localhost:9080/myapp/pc, this time.How do I get HttpServletRequest in webapplication class?I tried HttpServletRequest request =((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest(),
NullPointerException occured.Regards,R.A--View this message in context: http://www.nabble.com/about-base-path-tf1882484.html#a5149488
Sent from the Wicket - User forum 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 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] Allow nested components in VelocityPanel

2006-07-03 Thread Jean-Baptiste Quenot
* Johan Compagner:

 is this path an append on the previous one or one by itself?

It's a brand new patch against 1.2-rc1.  I just tested, it applies
OK on 1.2 release.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

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] Question about OutputMarkupId

2006-07-03 Thread Igor Vaynberg
the difference between wicket and echo2 is that echo2 is only ajax, wicket supports regular requests as the primary mode. so, ajax in wicket will never probably be as easy as it is in echo2. if you are looking for a totally ajax based application you are probably better off sticking with echo2 or other ajax only frameworks. if you want to support regular requests and ajaxify parts of your application then you are better off with wicket.
-IgorOn 7/3/06, Alex Objelean [EMAIL PROTECTED] wrote:
First of all, thank you for your feedback, appreciate it very much!I am new to Wicket. Before starting with Wicket I had some experience withEcho2, where I do not have to worry about how to make a component being
ajaxified. This is why I am a little bit frustrated about this in Wicket..Hope the 2.0 release will solve something in this direction. Anyway, I amvery pleased to work with Wicket and think you have done a great job!
--View this message in context: http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5151108Sent from the Wicket - User forum 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 easierDownload 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] Disabling FormComponents

2006-07-03 Thread Eelco Hillenius
That all works only for validation - it doesn't prevent components'
models from being updated, and it is quite a lot of work. An easier
and better way is to override isEnabled (or isVisible, but isEnabled
seems better here) and return false if they shouldn't be validated and
updated. The only catch there is that your checkboxes are not yet
updated either, so you'll need to call getInput (or getInputAsArray)
on those checkboxes to get the posted value.

Eelco


On 7/3/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Why not something like:

 class MyCustomValidator extends AbstractFormValidator {
 private ListStringValidator validators;
 private CheckBox checkbox;
 private FormComponent formComponent;

 public MyCustomValidator(cb, fc, StringValidator... vs) {
 this.checkbox = cb;
 this.formComponent = fc;
 this.validators = Arrays.asList(vs);
 }
 public boolean validate(Form form) {
 if(checkbox.isChecked) {
 for(StringValidator sv : validators) {
 sv.onValidate(formComponent, formComponent.getInput());
 }
 }
 }
 }

 Martijn

 On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
  The problem with FormValidator is that the individual components
  (checkbox + textfields) are still validated with validators
  (FormComponent.validateValidators()). My client wants the form to work
  so that if the checkbox is not checked, the textfields can contain
  invalid data.
 
  One way to implement this could be by changing the execution order of
  validators so that FormValidators are executed before component
  validators:
 
  class MyForm extends Form {
  protected void validate()
  {
  validateRequired();
  validateConversion();
  validateFormValidators();
  validateValidators();
  }
  }
 
  And then somehow disable the component at special FormValidator if
  checkbox is not checked. Maybe this can be done by calling
  setEnabled(false) ?
 
  Joni
 
  On Mon, 2006-07-03 at 13:33 +0200, Martijn Dashorst wrote:
   You can add form level validation, creating composite validators, and
   add both the checkbox and the field, and the validators for the field
   to your composite validator.
  
   See EqualInputValidator for an example implementation.
  
   Martijn
  
   On 7/3/06, Joni Freeman [EMAIL PROTECTED] wrote:
I have a curious requirement for a form. When a user submits a form,
some of the FormComponents should not be processed at all (for example,
validation should not be done). Each FormComponent has an accompanying
checkbox control which determines whether the actual control is
activated or not.
   
[ ]___ (this text field should not be processed)
[X]___ (this should be)
   
etc.
   
One way to implement this could be by overriding Form.validate().
However, it seems tedious and not very elegant, so maybe i'm missing
something obvious?
   
Joni
   
   
   
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
 


 --
 Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
 -- http://wicketframework.org

 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] Allow nested components in VelocityPanel

2006-07-03 Thread Johan Compagner
so the older one doesn't need to be applied?On 7/3/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
* Johan Compagner: is this path an append on the previous one or one by itself?
It's a brand new patch against 1.2-rc1.I just tested, it appliesOK on 1.2 release.-- Jean-Baptiste QuenotakaJohn Banana Qwertyhttp://caraldi.com/jbq/
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] Allow nested components in VelocityPanel

2006-07-03 Thread Jean-Baptiste Quenot
* Johan Compagner:

 so the older one doesn't need to be applied?

No, it doesn't.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

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] RequiredTextField not validated and RadioGroup onSelectionChanged method not called

2006-07-03 Thread Eelco Hillenius
Btw, it turns out it *was* a bug in Jetty 6. It recently got fixed
(svn only now). Anyway, Wicket should now work regardless of that bug
or not.

Eelco


On 7/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I just checked in the fix for the problem I found with Jetty 6 (and
 which might be an issue in other containers). From the change log:

 'Implemented a workaround for an inconsistency between different
 servlet containers and a bug in the servlet spec which does not seem
 to state what should happen with empty valued request parameters. This
 caused Wicket to have some problems (like a failing required test)
 with Jetty 6.'

 Could you please test against the current 1_2 branch?

 Cheers,

 Eelco



 On 7/3/06, Alban Duval [EMAIL PROTECTED] wrote:
 
   I have the same problem with 1.2 final
 
   Matej Knopp a écrit :
   Current released version is 1.2 final, can you check if it works with
  that version?
 
  -Matej
 
  Alban Duval wrote:
 
 
   Hi all.
 
  I have two problems with Form in wicket 1,2-rc4 (it worked wit rc3 :-/ )
 
   * The first is RequiredTextField that is not required when
   executing. The user can go to the next page without filling the
   text field.
 
   The RequiredTextField is added in a form like this :
 
   public class IntroForm extends Form {
   public IntroForm(String arg0) {
   super(arg0, new CompoundPropertyModel(loan));
   RequiredTextField RTF = new
   RequiredTextField(textRTF);
   add(RTF);
   }
 
   protected void onSubmit() {
   log.debug(Submitting NykStep0Page);
   setResponsePage(NykStep1Page.class);
   }
   }
 
 
   * The second problem is for a RadioGroup. The method
   onSelectionChanged is not called when changing the selection
   So the model is not updated, so it doesn't work as I would like
   to... but changing the selection
 
   RadioGroup erg = new
   RadioGroup(educationRadioGroup,new PropertyModel(pdwa,
  education)){
 
   protected void onSelectionChanged(Object newSelection) {
   log.debug(NykStep1Page - educationRadioGroup -
   onSelectionChanged);
   pdwa = (PersonalDataWithAddress)newSelection;
   }
 
   protected boolean
   wantOnSelectionChangedNotifications() {
   return true;
   }
   };
 
   If someone has an idea why those two simple things don't work
 
   Best regards,
   Alban Duval.
 
 
  
 
  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
   __ NOD32 1.1638 (20060702) Information __ This message was
  checked by NOD32 antivirus system. http://www.eset.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] about base path

2006-07-03 Thread R.A

Hi Johan.

I override newWebRequest in my WebApplication class as follows and works
fine.

protected WebRequest newWebRequest(HttpServletRequest request) {
String path = request.getRequestURL().toString();
getApplicationSettings().setContextPath(path);
return super.newWebRequest(request);
}

Thank you very much!

Regards,
R.A
-- 
View this message in context: 
http://www.nabble.com/about-base-path-tf1882484.html#a5161096
Sent from the Wicket - User forum 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