Re: [Wicket-user] Terracotta open source and tested with wicket-examples

2006-12-04 Thread Ingram Chen

I just test terracotta-session, but it report error:


com.tc.exception.TCNonPortableObjectError:
***
Attempt to share an instance of a non-portable class referenced by a
portable class. This
unshareable class is a subclass of a JVM- or host machine-specific resource.
Please either
modify the class hierarchy or ensure that instances of this class don't
enter the shared object
graph.

Referring class : com.myapp.MyWebApplication
Referring field :
wicket.protocol.http.WebApplication.wicketServlet
Thread  : http-9081-Processor3
JVM ID  : VM(0)
Unshareable superclass names: javax.servlet.GenericServlet
***

It seems that I can't store any WebApplication reference in session...


On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

I also have just tested terracotta with my springframework / wicket
application.
It works perfect. I think, that teracotta meets wicket needs for parallel
and
loadbalanced execution envoronement the way we are looking for.

Maciej

> -Ursprüngliche Nachricht-
> Von: wicket-user@lists.sourceforge.net
> Gesendet: 04.12.06 20:50:41
> An: "Wicket User List" 
> Betreff: [Wicket-user] Terracotta open source and tested with
wicket-examples


> Hi all,
>
> Sorry to spam you with this, but you might be interested in this
> announcement http://www.infoq.com/news/2006/12/terracotta-jvm-clustering
.
> We successfully tested wicket-examples (with the help of some people
> from Terracotta), and it looks like Terracotta is very promising
> indeed - certainly now that it is open sourced!
>
> Anyway, just FYI, and I'd be interested to learn the experiences of
others.
>
> Eelco
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

--
mfG

Bednarz, Hannover

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





--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] headlines Archive

2006-12-04 Thread Broadband
76908


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


Re: [Wicket-user] Table in a form

2006-12-04 Thread Carfield Yim
Yes, I've asked similar question before, you can refer to this message
to see how to create a custom IColumn object

http://www.nabble.com/Re%3A-Question-about-DataTable-p7353431.html

On 12/4/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> Create panels for the form objects in the DataTable, adding them to the
> IColumn.  You can create the DataTable, adding it to the form.
>
>
> On 12/4/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi all,
> >
> > Is it possible with Wicket to use a DataTable(repeater) in a form?
> > In every row of the table, there will be at least 2 textfields and a
> checkbox.
> > Is this possible and if so how do I do this?
> >
> > Ted
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Modifying form feedback behavior

2006-12-04 Thread Igor Vaynberg

:)

-igor


On 12/4/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote:


 Igor,

Thanks again actually ;),  you already answered my question here:


http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963

I added this in my onError

form.visitFormComponents(new FormComponent.IVisitor() {

public void formComponent(FormComponent formComponent)
{
 log.debug("Doh! "  + formComponent.getMarkupId() + "
" + formComponent.isValid());
  }
});

I think I got it..
 --
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Levy, Jeremy
*Sent:* Monday, December 04, 2006 2:17 PM
*To:* wicket-user@lists.sourceforge.net
*Subject:* Re: [Wicket-user] Modifying form feedback behavior

 Igor,

Thanks, that gets me almost there, in onError() how do I get the
component that the error is being thrown against?

form.add(new AjaxSubmitButton("ajax-submit-button", form) {
   ...
protected void onError(AjaxRequestTarget target, Form form) {
// repaint the feedback panel so errors are shown
   target.addComponent(feedback);
}
});


Jeremy


 --
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Igor Vaynberg
*Sent:* Monday, December 04, 2006 12:22 PM
*To:* wicket-user@lists.sourceforge.net
*Subject:* Re: [Wicket-user] Modifying form feedback behavior

if you want to validate the form via ajax you have to submit the form via
ajax. see AjaxSubmitButton, then in onsubmit(AjaxRequestTarget target) you
can start adding all kinds of javascript - like scriptaculous effects
targetted at the proper form components

-igor


On 12/4/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote:
>
>  I would like to change the default behavior for the way form validation
> feedback is reported to the end user.
>
> At the moment this form does two types of validation, one using the
> default validatators and the other in the onSubmit method of the form.  (I
> can move the later into custom validation, this form was built while I was
> first getting started w/ Wicket).  Feedback is reported using the default
> FeedBackPanel.  I would like to change the behavior so that if there is an
> error, when the page reloads I can modify it's class/style, specifically the
> input's border color and size.
>
> Best case I would like to do it like the Ajax Effect example and use
> some script.aculo.us effects without having to reload the page.  I have
> trouble figuring out where to get started.  Should I implement IFeedBack and
> add that to the components?  Can someone point me in the right direction?
>
> Jeremy
>
>
>
>  --
>  Important Notice to Recipients:
> It is important that you do not use e-mail to request, authorize or
> effect the purchase or sale of any security or commodity, to send fund
> transfer instructions, or to effect any other transactions. Any such
> request, orders, or instructions that you send will not be accepted and will
> not be processed by Morgan Stanley.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>



 --
 Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect
the purchase or sale of any security or commodity, to send fund transfer
instructions, or to effect any other transactions. Any such request, orders,
or instructions that you send will not be accepted and will not be processed
by Morgan Stanley.



 --
  Important Notice to Recipients:
 It is important that you do not use e-mail to request, authorize or
effect the purchase or sale of any security or commodity, to send fund
transfer instructions, or to effect any other transactions. Any such
request, orders, or instructions that you send will not be accepted and will
not be processed by Morgan Stanley.

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

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

[Wicket-user] hgoogle ghoogle bgoogle gboogle

2006-12-04 Thread EEO
49700


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


Re: [Wicket-user] Modifying form feedback behavior

2006-12-04 Thread Levy, Jeremy
Igor,
 
Thanks again actually ;),  you already answered my question here:
 
http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousi
ng-feedback--tf2427268.html#a6767963
 
I added this in my onError 
 
form.visitFormComponents(new FormComponent.IVisitor() {
 
public void formComponent(FormComponent
formComponent) {
 log.debug("Doh! "  + formComponent.getMarkupId() +
" " + formComponent.isValid());  
  }
});
 
I think I got it.. 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Levy,
Jeremy
Sent: Monday, December 04, 2006 2:17 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Modifying form feedback behavior


Igor,
 
Thanks, that gets me almost there, in onError() how do I get the
component that the error is being thrown against?
 
form.add(new AjaxSubmitButton("ajax-submit-button", form) {
   ...
protected void onError(AjaxRequestTarget target, Form form)
{
// repaint the feedback panel so errors are shown
   target.addComponent(feedback);
}
});
 
 
Jeremy
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Monday, December 04, 2006 12:22 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Modifying form feedback behavior


if you want to validate the form via ajax you have to submit the form
via ajax. see AjaxSubmitButton, then in onsubmit(AjaxRequestTarget
target) you can start adding all kinds of javascript - like
scriptaculous effects targetted at the proper form components 

-igor



On 12/4/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote: 

I would like to change the default behavior for the way form
validation feedback is reported to the end user.  

At the moment this form does two types of validation, one using
the default validatators and the other in the onSubmit method of the
form.  (I can move the later into custom validation, this form was built
while I was first getting started w/ Wicket).  Feedback is reported
using the default FeedBackPanel.  I would like to change the behavior so
that if there is an error, when the page reloads I can modify it's
class/style, specifically the input's border color and size. 

Best case I would like to do it like the Ajax Effect example and
use some script.aculo.us effects without having to reload the page.  I
have trouble figuring out where to get started.  Should I implement
IFeedBack and add that to the components?  Can someone point me in the
right direction?

Jeremy 

 
 
 



Important Notice to Recipients: 
It is important that you do not use e-mail to request, authorize
or effect the purchase or sale of any security or commodity, to send
fund transfer instructions, or to effect any other transactions. Any
such request, orders, or instructions that you send will not be accepted
and will not be processed by Morgan Stanley. 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance
to share your
opinions on IT & business topics through brief surveys - and
earn cash 

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V 

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





 
 
 


Important Notice to Recipients: 
It is important that you do not use e-mail to request, authorize or
effect the purchase or sale of any security or commodity, to send fund
transfer instructions, or to effect any other transactions. Any such
request, orders, or instructions that you send will not be accepted and
will not be processed by Morgan Stanley.
 
 
 


Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the 
purchase or sale of any security or commodity, to send fund transfer 
instructions, or to effect any other transactions. Any such request, orders, or 
instructions that you send will not be accepted and will not be processed by 
Morgan Stanley.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user m

Re: [Wicket-user] Terracotta open source and tested w ith wicket-examples

2006-12-04 Thread bednarz-hannover
Hi,

I also have just tested terracotta with my springframework / wicket application.
It works perfect. I think, that teracotta meets wicket needs for parallel and
loadbalanced execution envoronement the way we are looking for.

Maciej 

> -Ursprüngliche Nachricht-
> Von: wicket-user@lists.sourceforge.net
> Gesendet: 04.12.06 20:50:41
> An: "Wicket User List" 
> Betreff: [Wicket-user] Terracotta open source and tested with wicket-examples


> Hi all,
> 
> Sorry to spam you with this, but you might be interested in this
> announcement http://www.infoq.com/news/2006/12/terracotta-jvm-clustering.
> We successfully tested wicket-examples (with the help of some people
> from Terracotta), and it looks like Terracotta is very promising
> indeed - certainly now that it is open sourced!
> 
> Anyway, just FYI, and I'd be interested to learn the experiences of others.
> 
> Eelco
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 

-- 
mfG

Bednarz, Hannover

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


[Wicket-user] Terracotta open source and tested with wicket-examples

2006-12-04 Thread Eelco Hillenius
Hi all,

Sorry to spam you with this, but you might be interested in this
announcement http://www.infoq.com/news/2006/12/terracotta-jvm-clustering.
We successfully tested wicket-examples (with the help of some people
from Terracotta), and it looks like Terracotta is very promising
indeed - certainly now that it is open sourced!

Anyway, just FYI, and I'd be interested to learn the experiences of others.

Eelco

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


Re: [Wicket-user] Modifying form feedback behavior

2006-12-04 Thread Levy, Jeremy
Igor,
 
Thanks, that gets me almost there, in onError() how do I get the
component that the error is being thrown against?
 
form.add(new AjaxSubmitButton("ajax-submit-button", form) {
   ...
protected void onError(AjaxRequestTarget target, Form form)
{
// repaint the feedback panel so errors are shown
   target.addComponent(feedback);
}
});
 
 
Jeremy
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Monday, December 04, 2006 12:22 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Modifying form feedback behavior


if you want to validate the form via ajax you have to submit the form
via ajax. see AjaxSubmitButton, then in onsubmit(AjaxRequestTarget
target) you can start adding all kinds of javascript - like
scriptaculous effects targetted at the proper form components 

-igor



On 12/4/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote: 

I would like to change the default behavior for the way form
validation feedback is reported to the end user.  

At the moment this form does two types of validation, one using
the default validatators and the other in the onSubmit method of the
form.  (I can move the later into custom validation, this form was built
while I was first getting started w/ Wicket).  Feedback is reported
using the default FeedBackPanel.  I would like to change the behavior so
that if there is an error, when the page reloads I can modify it's
class/style, specifically the input's border color and size. 

Best case I would like to do it like the Ajax Effect example and
use some script.aculo.us effects without having to reload the page.  I
have trouble figuring out where to get started.  Should I implement
IFeedBack and add that to the components?  Can someone point me in the
right direction?

Jeremy 

 
 
 



Important Notice to Recipients: 
It is important that you do not use e-mail to request, authorize
or effect the purchase or sale of any security or commodity, to send
fund transfer instructions, or to effect any other transactions. Any
such request, orders, or instructions that you send will not be accepted
and will not be processed by Morgan Stanley. 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance
to share your
opinions on IT & business topics through brief surveys - and
earn cash 

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V 

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


Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the 
purchase or sale of any security or commodity, to send fund transfer 
instructions, or to effect any other transactions. Any such request, orders, or 
instructions that you send will not be accepted and will not be processed by 
Morgan Stanley.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket and Package Resources

2006-12-04 Thread Eelco Hillenius
> meanwhile, PackageResourceReference has been deprecated

You can just use ResourceReference instead.

Eelco

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


Re: [Wicket-user] Wicket and Package Resources

2006-12-04 Thread Ayodeji Aladejebi

wicket should assume I am referring to the package resource. What raises
this question is when CSS has to be reused across applications and all the
CSS and Image resources needs to be shared in a JAR irrespective of the
application context.

meanwhile, PackageResourceReference has been deprecated and interpolating
CSS url(bla.gif) required knowing the wicket url for the resource at
runtime. What is the recommended strategy for this now?



On 12/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


because it is not explicit

do you want packaged resource com/mypackage/Circle.gif

or do you want a static resource

/mycontext/com/mypackage/Circle.gif?

how is wicket to decide?

-igor


On 12/4/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:

>
> In wicket Image
>
> why cant one simply bind to a Packaged Resource Like this:
>
> Image image = new Image("img",new Model("com/mypackage/Circle.gif"));
>
> assuming my Circle.gif is found in that package context
>
> Just why? there has to be a reason :) and please dont paste me this
> code:
>
> PackageResource IMG = PackageResource.get(HomePage.class, "Circle.gif");
> Image image = new Image("img",IMG);
>
> because the first is one line and the second is two lines
> ---
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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






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


Re: [Wicket-user] Wicket and Package Resources

2006-12-04 Thread Eelco Hillenius
Image image = new Image("img", new ResourceReference(HomePage.class,
"Circle.gif"));

isn't so bad, is it?

Eelco


On 12/4/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> In wicket Image
>
> why cant one simply bind to a Packaged Resource Like this:
>
> Image image = new Image("img",new
> Model("com/mypackage/Circle.gif"));
>
> assuming my Circle.gif is found in that package context
>
> Just why? there has to be a reason :) and please dont paste me this code:
>
> PackageResource IMG = PackageResource.get(HomePage.class, "Circle.gif");
> Image image = new Image("img",IMG);
>
> because the first is one line and the second is two lines
> ---
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Wicket and Package Resources

2006-12-04 Thread Igor Vaynberg

because it is not explicit

do you want packaged resource com/mypackage/Circle.gif

or do you want a static resource

/mycontext/com/mypackage/Circle.gif?

how is wicket to decide?

-igor


On 12/4/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:



In wicket Image

why cant one simply bind to a Packaged Resource Like this:

Image image = new Image("img",new Model("com/mypackage/Circle.gif"));

assuming my Circle.gif is found in that package context

Just why? there has to be a reason :) and please dont paste me this code:

PackageResource IMG = PackageResource.get(HomePage.class, "Circle.gif");
Image image = new Image("img",IMG);

because the first is one line and the second is two lines
---


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

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



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


Re: [Wicket-user] Modifying form feedback behavior

2006-12-04 Thread Igor Vaynberg

if you want to validate the form via ajax you have to submit the form via
ajax. see AjaxSubmitButton, then in onsubmit(AjaxRequestTarget target) you
can start adding all kinds of javascript - like scriptaculous effects
targetted at the proper form components

-igor


On 12/4/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote:


 I would like to change the default behavior for the way form validation
feedback is reported to the end user.

At the moment this form does two types of validation, one using the
default validatators and the other in the onSubmit method of the form.  (I
can move the later into custom validation, this form was built while I was
first getting started w/ Wicket).  Feedback is reported using the default
FeedBackPanel.  I would like to change the behavior so that if there is an
error, when the page reloads I can modify it's class/style, specifically the
input's border color and size.

Best case I would like to do it like the Ajax Effect example and use some
script.aculo.us effects without having to reload the page.  I have trouble
figuring out where to get started.  Should I implement IFeedBack and add
that to the components?  Can someone point me in the right direction?

Jeremy



 --
  Important Notice to Recipients:
 It is important that you do not use e-mail to request, authorize or
effect the purchase or sale of any security or commodity, to send fund
transfer instructions, or to effect any other transactions. Any such
request, orders, or instructions that you send will not be accepted and will
not be processed by Morgan Stanley.

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

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



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


[Wicket-user] Wicket and Package Resources

2006-12-04 Thread Ayodeji Aladejebi

In wicket Image

why cant one simply bind to a Packaged Resource Like this:

Image image = new Image("img",new Model("com/mypackage/Circle.gif"));

assuming my Circle.gif is found in that package context

Just why? there has to be a reason :) and please dont paste me this code:

PackageResource IMG = PackageResource.get(HomePage.class, "Circle.gif");
Image image = new Image("img",IMG);

because the first is one line and the second is two lines
---
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax : addcomponent strange problem

2006-12-04 Thread Matej Knopp
Well, I don't know if this is going to fix your problem, but try to use 
different id for the DropDownChoice with name 'name'.

Some browser tend to have problems with certain identifiers, although 
I've got no idea if this is the case. If this doesn't help, just put a 
quick start together that demonstrates the behavior.

-Matej

Vincent Renaville wrote:
> Dear,
> 
> My problem is still there , I have see in the Javascript console of
> Firefox :
> 
> no element found.
> 
> Do you know where does it comes.
> 
> Vincent
> 
> 
> On Thu, 2006-11-30 at 17:47 +0100, Vincent Renaville wrote:
>> Dear,
>>
>> I use Ajax to assign data to Textfield dynamically when a user select a
>> value into a dropdownchoice :
>>
>> firstname = new TextField("firstname",new PropertyModel
>> (obj,"firstname")); 
>> add(firstname);
>> firstname.setOutputMarkupId(true);
>> 
>> extention = new TextField("extention",new PropertyModel
>> (obj,"extention"));
>> add(extention);
>> extention.setOutputMarkupId(true);
>>   
>>  
>>name = new DropDownChoice ("name",new PropertyModel
>> (obj,"name"),db.getAllSIPUsers())
>> {
>>  protected boolean wantOnSelectionChangedNotifications()
>>  {
>>  return false;
>>  }   
>>  public void onSelectionChanged(Object newSelection) {
>>  
>>  }
>> };
>>add(name);
>>name.setOutputMarkupId(true);
>>name.add(new AjaxFormComponentUpdatingBehavior("onchange") {
>>   protected void onUpdate(AjaxRequestTarget target)
>>{
>>
>>  obj.setFirstname((String)data[3]);
>>  obj.setExtention((String)data[4]);
>>  firstname.modelChanged();
>>  extention.modelChanged();
>>  target.addComponent(firstname);
>>  target.addComponent(extention);
>>   }
>>
>> the problem is the page do not update the firstname et extention
>> Textfield,
>> BUT if I remove target.addComponent(extention); the firstname Textfield
>> update correctly.
>>
>> somebody have a solution to this strange problem (for me only perhaps)
>>
>> Vincent
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


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


[Wicket-user] Modifying form feedback behavior

2006-12-04 Thread Levy, Jeremy
I would like to change the default behavior for the way form validation
feedback is reported to the end user.  

At the moment this form does two types of validation, one using the
default validatators and the other in the onSubmit method of the form.
(I can move the later into custom validation, this form was built while
I was first getting started w/ Wicket).  Feedback is reported using the
default FeedBackPanel.  I would like to change the behavior so that if
there is an error, when the page reloads I can modify it's class/style,
specifically the input's border color and size.

Best case I would like to do it like the Ajax Effect example and use
some script.aculo.us effects without having to reload the page.  I have
trouble figuring out where to get started.  Should I implement IFeedBack
and add that to the components?  Can someone point me in the right
direction?

Jeremy
 
 
 


Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the 
purchase or sale of any security or commodity, to send fund transfer 
instructions, or to effect any other transactions. Any such request, orders, or 
instructions that you send will not be accepted and will not be processed by 
Morgan Stanley.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Table in a form

2006-12-04 Thread Ali Zaid
well, I do do this all the time, I use listview to go through each
object in a list, and add a fragment to the item, of course the way I
do it doesn't involve edit all the items, it's like edit a row in a
table, so I chose the row (keep the object id in a session variable),
redraw the table, if the row represent the chosen object then instead
of showing the fragment with the information, I show the fragment with
the form.

On 12/4/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is it possible with Wicket to use a DataTable(repeater) in a form?
> In every row of the table, there will be at least 2 textfields and a
> checkbox.
> Is this possible and if so how do I do this?
>
> Ted
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Regards, Ali

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


Re: [Wicket-user] Table in a form

2006-12-04 Thread Nick Heudecker

Create panels for the form objects in the DataTable, adding them to the
IColumn.  You can create the DataTable, adding it to the form.

On 12/4/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:


Hi all,

Is it possible with Wicket to use a DataTable(repeater) in a form?
In every row of the table, there will be at least 2 textfields and a
checkbox.
Is this possible and if so how do I do this?

Ted

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

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



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


[Wicket-user] Table in a form

2006-12-04 Thread Ted Roeloffzen

Hi all,

Is it possible with Wicket to use a DataTable(repeater) in a form?
In every row of the table, there will be at least 2 textfields and a
checkbox.
Is this possible and if so how do I do this?

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


Re: [Wicket-user] Wicket CMS

2006-12-04 Thread Ted Roeloffzen

Hi all,

We've done the first commit of the code for the Wicket-cms named Kronos.
If you want you can get it from the Wicket-stuff svn in the directory

/branches/WICKET_1_2/wicket-kronos-cms

The first time that the application is run it will take a while, because the
repository has to be made.
Later you'll get an exception when you run it, but at this time that is
totally normal.
Hope to here from you all soon.

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


Re: [Wicket-user] Ajax : addcomponent strange problem

2006-12-04 Thread Vincent Renaville
Dear,

My problem is still there , I have see in the Javascript console of
Firefox :

no element found.

Do you know where does it comes.

Vincent


On Thu, 2006-11-30 at 17:47 +0100, Vincent Renaville wrote:
> Dear,
> 
> I use Ajax to assign data to Textfield dynamically when a user select a
> value into a dropdownchoice :
> 
> firstname = new TextField("firstname",new PropertyModel
> (obj,"firstname")); 
> add(firstname);
> firstname.setOutputMarkupId(true);
> 
> extention = new TextField("extention",new PropertyModel
> (obj,"extention"));
> add(extention);
> extention.setOutputMarkupId(true);
>   
>  
>name = new DropDownChoice ("name",new PropertyModel
> (obj,"name"),db.getAllSIPUsers())
> {
>   protected boolean wantOnSelectionChangedNotifications()
>   {
>   return false;
>   }   
>   public void onSelectionChanged(Object newSelection) {
>   
>   }
> };
>add(name);
>name.setOutputMarkupId(true);
>name.add(new AjaxFormComponentUpdatingBehavior("onchange") {
>   protected void onUpdate(AjaxRequestTarget target)
> {
> 
>   obj.setFirstname((String)data[3]);
>   obj.setExtention((String)data[4]);
>   firstname.modelChanged();
>   extention.modelChanged();
>   target.addComponent(firstname);
>   target.addComponent(extention);
>   }
> 
> the problem is the page do not update the firstname et extention
> Textfield,
> BUT if I remove target.addComponent(extention); the firstname Textfield
> update correctly.
> 
> somebody have a solution to this strange problem (for me only perhaps)
> 
> Vincent
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Jesper Preuss
I have made a bug report http://issues.apache.org/jira/browse/WICKET-137

If any have an idea where to look to fix this, I would like to try.

On 12/4/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hi Jesper,
>
> I agree and also think this is not correct. You can create a JIRA issue
> here: http://issues.apache.org/jira/browse/WICKET
> Its more likely to get fixed quickly if you have a patch.
>
> Please add a link to the issue on the wiki page.
>
> Regards,
>  Erik.
>
> Jesper Preuss schreef:
> > Now I have testet it again.
> >
> > The layout on the Page.html:
> > Page
> >   Form id="formId"
> >> key="theform.messagedata">[testdata]
> >   
> >
> > Checking order using:
> > Using -->  > key="theform.messagedata">[testdata]
> > or
> > Using --> new ResourceModel("theform.resourcedata", "defaultValue")
> >   where we use defaultValue it will output "defaultValue" 
> > instead of [testdata]
> > Looking for theform.messagedata it will use this order of checking:
> > 1. Page.properties, theform.messagedata
> > 2. Page.properties, formId.theform.messagedata (tries to add id = formId )
> > 3. Form.properties, theform.messagedata
> > 4. Application.properties, theform.messagedata
> > 5. Application.properties, formId.theform.messagedata
> > 6. does not find anything and will not change the [testdata] or
> > "defaultValue" if using defaultValue in ResourceModel
> >
> > Checking order using: 
> > Using --> new StringResourceModel("theform.resourcedata", form, null)
> > Looking for theform.resourcedata it will use this order of checking:
> > 1. Page.properties, theform.resourcedata
> > 2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
> > 3. Form.properties, theform.resourcedata
> > 4. Application.properties, theform.resourcedata
> > 5. Application.properties, formId.theform.messagedata
> > 6. Will throw an exception --> java.util.MissingResourceException:
> > Unable to find resource: theform.resourcedata for component: loginForm
> >
> > Checking order using: 
> > Using --> new ResourceModel("theform.resourcedata")
> > Looking for theform.resourcedata
> > 1. Page.properties, theform.resourcedata
> > 2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
> > 3. Form.properties, theform.resourcedata
> > 4. Application.properties, theform.resourcedata
> > 6. Will throw an exception --> java.util.MissingResourceException:
> > Unable to find resource: theform.resourcedata for component: loginForm
> >
> > I have testet with a locale or with only default locale. This is very
> > advanced, there is many things to lookout for. I have found out it
> > will fir search for Page_locale.properties and then if it's not found
> > look for Page.properties.
> >
> > But what I'm asking for is, if Wicket is looking for "user.version"
> > and it finds the file Page_locale.properties. And the "user.version"
> > is not in this file it will never look in Page.properties for the
> > property. I would think it should.
> >
> > Why does it ignore Page.properties if the property is not in
> > Page_locale.properties ? It will try to use Page.properties only if it
> > does not find Page_locale.properties ?
> >
> > On 12/4/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> >
> >> Interesting. Can you see what happens if the *_en.properties file is not
> >> there?
> >> Perhaps we need to change the text on the wiki, or else we should file
> >> an issue in Jira.
> >>
> >> Regards,
> >>  Erik.
> >>
> >>
> >> Jesper Preuss schreef:
> >>
> >>> I have a question about what Wicket should traverse properties files
> >>> and what it does.
> >>>
> >>> Take a look in 
> >>> http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
> >>> here it says Wicket will look in properties files according to this:
> >>> 1. MyPanel_locale.properties
> >>> 2. then MyPanel.properties
> >>> 3. MyPage_locale.properties
> >>> 4. then MyPage.properties
> >>> 5. MyApplication_locale.properties
> >>> 6. then MyApplication.properties
> >>>
> >>> According to my tests (with "en" english locale) it will only traverse
> >>> the properties with locale english. Not the default locale.
> >>>
> >>> Have I misunderstood anything?
> >>>
> >
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Tech

Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Erik van Oosten
Hi Jesper,

I agree and also think this is not correct. You can create a JIRA issue 
here: http://issues.apache.org/jira/browse/WICKET
Its more likely to get fixed quickly if you have a patch.

Please add a link to the issue on the wiki page.

Regards,
 Erik.

Jesper Preuss schreef:
> Now I have testet it again.
>
> The layout on the Page.html:
> Page
>   Form id="formId"
>key="theform.messagedata">[testdata]
>   
>
> Checking order using:
> Using -->  key="theform.messagedata">[testdata]
> or
> Using --> new ResourceModel("theform.resourcedata", "defaultValue")
>   where we use defaultValue it will output "defaultValue" instead 
> of [testdata]
> Looking for theform.messagedata it will use this order of checking:
> 1. Page.properties, theform.messagedata
> 2. Page.properties, formId.theform.messagedata (tries to add id = formId )
> 3. Form.properties, theform.messagedata
> 4. Application.properties, theform.messagedata
> 5. Application.properties, formId.theform.messagedata
> 6. does not find anything and will not change the [testdata] or
> "defaultValue" if using defaultValue in ResourceModel
>
> Checking order using: 
> Using --> new StringResourceModel("theform.resourcedata", form, null)
> Looking for theform.resourcedata it will use this order of checking:
> 1. Page.properties, theform.resourcedata
> 2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
> 3. Form.properties, theform.resourcedata
> 4. Application.properties, theform.resourcedata
> 5. Application.properties, formId.theform.messagedata
> 6. Will throw an exception --> java.util.MissingResourceException:
> Unable to find resource: theform.resourcedata for component: loginForm
>
> Checking order using: 
> Using --> new ResourceModel("theform.resourcedata")
> Looking for theform.resourcedata
> 1. Page.properties, theform.resourcedata
> 2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
> 3. Form.properties, theform.resourcedata
> 4. Application.properties, theform.resourcedata
> 6. Will throw an exception --> java.util.MissingResourceException:
> Unable to find resource: theform.resourcedata for component: loginForm
>
> I have testet with a locale or with only default locale. This is very
> advanced, there is many things to lookout for. I have found out it
> will fir search for Page_locale.properties and then if it's not found
> look for Page.properties.
>
> But what I'm asking for is, if Wicket is looking for "user.version"
> and it finds the file Page_locale.properties. And the "user.version"
> is not in this file it will never look in Page.properties for the
> property. I would think it should.
>
> Why does it ignore Page.properties if the property is not in
> Page_locale.properties ? It will try to use Page.properties only if it
> does not find Page_locale.properties ?
>
> On 12/4/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>   
>> Interesting. Can you see what happens if the *_en.properties file is not
>> there?
>> Perhaps we need to change the text on the wiki, or else we should file
>> an issue in Jira.
>>
>> Regards,
>>  Erik.
>>
>>
>> Jesper Preuss schreef:
>> 
>>> I have a question about what Wicket should traverse properties files
>>> and what it does.
>>>
>>> Take a look in 
>>> http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
>>> here it says Wicket will look in properties files according to this:
>>> 1. MyPanel_locale.properties
>>> 2. then MyPanel.properties
>>> 3. MyPage_locale.properties
>>> 4. then MyPage.properties
>>> 5. MyApplication_locale.properties
>>> 6. then MyApplication.properties
>>>
>>> According to my tests (with "en" english locale) it will only traverse
>>> the properties with locale english. Not the default locale.
>>>
>>> Have I misunderstood anything?
>>>   
>

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


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


[Wicket-user] pre Url parameters

2006-12-04 Thread jan_bar
Hi,

I want to continue with problem described in
http://thread.gmane.org/gmane.comp.java.wicket.user/19711 and discuss my
current solution.

I have slightly modified WebRequestCodingStrategy, the urlPrefix() is not
final and the call to request.getPath() in addResourceParameters() was
changed to getRequestPath(request), it seems like bug (if the description of
getRequestPath is correct).

Now I can build MyRequestCodingStrategy

public class MyRequestCodingStrategy extends WebRequestCodingStrategy {
protected String getRequestPath(final Request request) {
return MySession.get().removePreParams(request.getPath());
}

protected CharSequence urlPrefix(final RequestCycle requestCycle) {
return MySession.get().addPreParams(
super.urlPrefix(requestCycle).toString());
}
}

MySession:

public String removePreParams(String path) {
/*
Remove the pre params from the path. The number of pre parameters is fixed,
they must be always present, for instance //whatever
The  is used to set session locale
*/
}

public String addPrependParams(final String path) {
/*
Do the reverse of removePreParams(), read data from session and
apend it to "path".
*/
return path + '/' + getLocale().getLanguage();
}

Now the language is part of the URL.

I can switch between languages with:
add(new Link("langCzech") {
public void onClick() { MySession.get().setLocale(new Locale("cs")); }
});

It seems to work fine with wicket 1.2.3. I have couple of questions:
1. In wicket 1.3 and 2.0, can I make something similar?
2. Are there any hidden problems?

Thank you for any comment, Jan




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


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-12-04 Thread Erik van Oosten
Hi TH,

This has been discussed to death. Not only here in the Wicket 
mailinglist, but on many other places as well.

The short answer is:
Yes, you get more GC and
no, you don't care if you have a sufficiently modern JVM and enough RAM 
in your machine

Regards,
 Erik.


TH Lim schreef:
> As we creating new instantes of WebPage, Form and other web widgets for every
> request received for different pages, it will cause more garbages created.
> Will this going to be affect the server performance?
>
> I'm new to Wicket and probably this has been discussed before. I will be
> grateful if someone could point me in the right direction to find the
> answer. Thanks.
>   

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


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


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-12-04 Thread Martijn Dashorst
Read this on the benefits of recent garbage collection strategies.

http://www-128.ibm.com/developerworks/library/j-jtp01274.html

Martijn

On 12/4/06, TH Lim <[EMAIL PROTECTED]> wrote:
>
> As we creating new instantes of WebPage, Form and other web widgets for every
> request received for different pages, it will cause more garbages created.
> Will this going to be affect the server performance?
>
> I'm new to Wicket and probably this has been discussed before. I will be
> grateful if someone could point me in the right direction to find the
> answer. Thanks.
>
>
> Johan Compagner wrote:
> >
> > as martijn said. I am not talking about pooling pages over sessions
> > That is a nogo in wicket. No i was talking about a single session reusing
> > pages.
> > So if you create a link that goes back to page X then hold that page
> > there.
> >
> > pooling pages over sessions can't be done. Maybe for completely static
> > pages
> > that has no dynamic parts at all. But then you can just use pure html.
> >
> > ...
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a7673337
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

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


Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Jesper Preuss
Now I have testet it again.

The layout on the Page.html:
Page
Form id="formId"
[testdata]


Checking order using:
Using --> [testdata]
or
Using --> new ResourceModel("theform.resourcedata", "defaultValue")
where we use defaultValue it will output "defaultValue" instead 
of [testdata]
Looking for theform.messagedata it will use this order of checking:
1. Page.properties, theform.messagedata
2. Page.properties, formId.theform.messagedata (tries to add id = formId )
3. Form.properties, theform.messagedata
4. Application.properties, theform.messagedata
5. Application.properties, formId.theform.messagedata
6. does not find anything and will not change the [testdata] or
"defaultValue" if using defaultValue in ResourceModel

Checking order using: 
Using --> new StringResourceModel("theform.resourcedata", form, null)
Looking for theform.resourcedata it will use this order of checking:
1. Page.properties, theform.resourcedata
2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
3. Form.properties, theform.resourcedata
4. Application.properties, theform.resourcedata
5. Application.properties, formId.theform.messagedata
6. Will throw an exception --> java.util.MissingResourceException:
Unable to find resource: theform.resourcedata for component: loginForm

Checking order using: 
Using --> new ResourceModel("theform.resourcedata")
Looking for theform.resourcedata
1. Page.properties, theform.resourcedata
2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
3. Form.properties, theform.resourcedata
4. Application.properties, theform.resourcedata
6. Will throw an exception --> java.util.MissingResourceException:
Unable to find resource: theform.resourcedata for component: loginForm

I have testet with a locale or with only default locale. This is very
advanced, there is many things to lookout for. I have found out it
will fir search for Page_locale.properties and then if it's not found
look for Page.properties.

But what I'm asking for is, if Wicket is looking for "user.version"
and it finds the file Page_locale.properties. And the "user.version"
is not in this file it will never look in Page.properties for the
property. I would think it should.

Why does it ignore Page.properties if the property is not in
Page_locale.properties ? It will try to use Page.properties only if it
does not find Page_locale.properties ?

On 12/4/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Interesting. Can you see what happens if the *_en.properties file is not
> there?
> Perhaps we need to change the text on the wiki, or else we should file
> an issue in Jira.
>
> Regards,
>  Erik.
>
>
> Jesper Preuss schreef:
> > I have a question about what Wicket should traverse properties files
> > and what it does.
> >
> > Take a look in 
> > http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
> > here it says Wicket will look in properties files according to this:
> > 1. MyPanel_locale.properties
> > 2. then MyPanel.properties
> > 3. MyPage_locale.properties
> > 4. then MyPage.properties
> > 5. MyApplication_locale.properties
> > 6. then MyApplication.properties
> >
> > According to my tests (with "en" english locale) it will only traverse
> > the properties with locale english. Not the default locale.
> >
> > Have I misunderstood anything?
> >
> >
> >
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-12-04 Thread TH Lim

As we creating new instantes of WebPage, Form and other web widgets for every
request received for different pages, it will cause more garbages created.
Will this going to be affect the server performance?

I'm new to Wicket and probably this has been discussed before. I will be
grateful if someone could point me in the right direction to find the
answer. Thanks.


Johan Compagner wrote:
> 
> as martijn said. I am not talking about pooling pages over sessions
> That is a nogo in wicket. No i was talking about a single session reusing
> pages.
> So if you create a link that goes back to page X then hold that page
> there.
> 
> pooling pages over sessions can't be done. Maybe for completely static
> pages
> that has no dynamic parts at all. But then you can just use pure html.
> 
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a7673337
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Palette add selected option

2006-12-04 Thread Nino Wael
I've placed the code here:

Please notice that it makes use of css that are not used inline, I've provided 
our css in our file called jobindsats.css. Make sure the component the page 
where you use the component refers to that. As written earlier you should be 
able to use our recorder and just update Igors palette(or maybe extend it) and 
reference to our recorder, only one minor change to the palette class are 
required(as I remember). And that's the onmodelchange method that needs to call 
the recorder so it can update itself. 

http://www.badongo.com/file/1817078>http://www.badongo.com/file/1817078

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 1. december 2006 14:41
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Hi Nino,

Thanks for your reply, I m still don't find a solution, can you provide
me the full component, to see if it correspond to my need :)
Thanks for your help (I m a neebies in Wicket) :)



On Fri, 2006-12-01 at 14:08 +0100, Nino Wael wrote:
> Hi Vincent
> 
> This is an replacement for the recorder component that are used in the wicket 
> extensions. This recorder in order with a minor update of the palette(you 
> need to call the recreate function in the palette onmodelchanged function).
> 
> I'll be glad to put our full component up somewhere, but I need to say all 
> texts are in Danish...
> 
> 
> Regards Nino
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent 
> Renaville
> Sent: 30. november 2006 15:38
> To: Wicket List
> Subject: Re: [Wicket-user] Palette add selected option
> 
> Dear,
> 
> Thanks for the respond but somebody have Already deploy the solution.
> I m a newbies with Wicket, so i you have a example , it will be nice :)
> 
> 
> Vincent
> 
> On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
> > I think I have something somewhere...
> > 
> > As I remember you need to update the recorder component...
> > 
> > Below is only meant as a sniplet(notice the recreate model, which now are 
> > called from the palette onchange function)..
> > 
> > 
> > 
> > package com.sas.jobindsats.ui.palette.component;
> > 
> > import java.util.ArrayList;
> > import java.util.Collection;
> > import java.util.Collections;
> > import java.util.Iterator;
> > import java.util.List;
> > 
> > import wicket.Component;
> > import wicket.markup.html.form.HiddenField;
> > import wicket.markup.html.form.IChoiceRenderer;
> > import wicket.model.AbstractModel;
> > import wicket.util.string.Strings;
> > 
> > import com.sas.jobindsats.ui.palette.Palette;
> > 
> > /**
> >  * Component to keep track of selections on the html side. Also used for
> >  * encoding and decoding those selections between html and java.
> >  * 
> >  * @author Igor Vaynberg ( ivaynberg )
> >  */
> > public class Recorder extends HiddenField {
> > private static final long serialVersionUID = 1L;
> > 
> > private static final String[] EMPTY_IDS = new String[0];
> > 
> > private final String seperator = "#";
> > 
> > /** conviniently maintained array of selected ids */
> > private String[] ids;
> > 
> > /** parent palette object */
> > private Palette palette;
> > 
> > /**
> >  * @return parent Palette object
> >  */
> > public Palette getPalette() {
> > return palette;
> > }
> > 
> > /**
> >  * @param id
> >  *component id
> >  * @param palette
> >  *parent palette object
> >  */
> > public Recorder(String id, Palette palette) {
> > super(id);
> > this.palette = palette;
> > 
> > // BELOW ENSURES THAT IDS ARE NOT NULL
> > reCreateModel();
> > AbstractModel model = new AbstractModel() {
> > 
> > public Object getObject(Component component) {
> > StringBuffer modelStringBuffer = new 
> > StringBuffer();
> > 
> > for (int i = 0; ids.length > i; i++) {
> > modelStringBuffer.append(ids[i]);
> > if (i + 1 < ids.length) {
> > 
> > modelStringBuffer.append(seperator);
> > }
> > }
> > 
> > // set model and update ids array
> > 
> > String modelString = 
> > modelStringBuffer.toString();
> > 
> > return modelString;
> > 
> > }
> > 
> > public void setObject(Component component, Object 
> > object) {
> > updateIds((String) object);
> > };
> > };
> > setModel(model);
> > }
> > 
> > protected void onValid() {
> > super.onValid();
> > updateIds(

Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Erik van Oosten
Interesting. Can you see what happens if the *_en.properties file is not 
there?
Perhaps we need to change the text on the wiki, or else we should file 
an issue in Jira.

Regards,
 Erik.


Jesper Preuss schreef:
> I have a question about what Wicket should traverse properties files
> and what it does.
>
> Take a look in http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
> here it says Wicket will look in properties files according to this:
> 1. MyPanel_locale.properties
> 2. then MyPanel.properties
> 3. MyPage_locale.properties
> 4. then MyPage.properties
> 5. MyApplication_locale.properties
> 6. then MyApplication.properties
>
> According to my tests (with "en" english locale) it will only traverse
> the properties with locale english. Not the default locale.
>
> Have I misunderstood anything?
>
>
>   

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


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