My first Wicket question

2008-04-30 Thread David Chang

I just started to learn Wicket.

This question may seem naive to many people and please
forgive me.

a WebPage component is created for each session and
its data members are not shared by different sessions.
Correct?

Thanks!

p.s. Where can I find a useful FAQ list to answer
questions similar to that? Thanks!


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



questions about Matt Raible's web framework comparison

2008-05-02 Thread David Chang
I just started migrating from Spring MVC to Wicket. I
found Matt Raible's interesting slides at this place:

http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConUS2007.pdf

Matt's says 

1. regarding Bookmarking and URLs, "Wicket allows
pages/URLs to be mounted". What does this "mounted"
mean? Can somebody provide an example?

2. regarding Post and Redirect, Wicket has "flash"
support. What is "flash" support?

3. regarding Page Decoration, SiteMesh is not
supported or recommended for use with Wicket. This
worries me since I am Sitemesh fan. Can Sitemesh be
FULLY integrated with Wicket? Any Wicket user did
this?

Thank you so much for help!

David


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread David Chang
Johan,

Thank you for your information. 

If I want an entire site to have nice URLs, I have to
MANUALL add the line such as this

application.mount("/login", LoginPage.class)

for each WebPage component of this application?

Regards,

David


>you can mount a (bookmarkable) page on an url of your
choice like:

>application.mount("/login", LoginPage.class)

>then the login page will be shown when somebody does
http://host/login


--- Johan Compagner <[EMAIL PROTECTED]> wrote:

> > Matt's says
> >
> > 1. regarding Bookmarking and URLs, "Wicket allows
> > pages/URLs to be mounted". What does this
> "mounted"
> > mean? Can somebody provide an example?
> 
> 
> you can mount a (bookmarkable) page on an url of
> your choice like:
> 
> application.mount("/login", LoginPage.class)
> 
> then the login page will be shown when somebody does
> http://host/login
> 
> 
> >
> > 2. regarding Post and Redirect, Wicket has "flash"
> > support. What is "flash" support?
> 
> 
> If you have error or info messages that these are 
> shown over multiply
> requests
> So if you do a redirect you dont loose those
> messages.
> 
> Wicket just cleans the messages when they are
> rendered once (when ever that
> happens)
> 
> 
> >
> > 3. regarding Page Decoration, SiteMesh is not
> > supported or recommended for use with Wicket. This
> > worries me since I am Sitemesh fan. Can Sitemesh
> be
> > FULLY integrated with Wicket? Any Wicket user did
> > this?
> >
> 
> I dont think sitemesh will be a great match for
> wicket at an time
> It is really build for different  frameworks.
> Wicket has for that build in support with Markup
> Inheritance and Panels
> 
> I guess if you are in mixed world (wicket and a jsp
> x framework) you could
> try to mix that with sitemesh
> 
> johan
> 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread David Chang
I am migrating from JSP+Valang+...+SpringMVC to Wicket
and am also still evaluting it. So far so good until I
saw this instance about using Form Validator to
validate two related form fields.

Problem (p81-82, book Enjoy Web Development with
Wicket, PDF version only):

Suppose a postage calculation form has two fields that
accept weight and patron discount code. For a
particular patron p1, you will never ship a package
that is weighted more than 50kg. Here is the code from
the book:

public class LightValidator extends
AbstractFormValidator {
  private TextField weight;
  private TextField patronCode;

  public LightValidator(TextField weight, TextField
patronCode) {
this.weight = weight;
this.patronCode = patronCode;
  }

  public FormComponent[] getDependentFormComponents()
{
return new FormComponent[] { weight, patronCode };
  }

  public void validate(Form form) {
String patronCodeEntered = (String)
patronCode.getConvertedInput();
if (patronCodeEntered != null) {
  if (patronCodeEntered.equals("p1")
  && ((Integer)
weight.getConvertedInput()).intValue() > 50) {
error(weight);
  }
}
  }
}

I have the bad feeling about this way of validation

1. It is too much coding. Anybody used Valang in
Spring Module? By using Valang, the validation code is
much clean and a lot fewer and you dont need to create
a class simply for this simple validation.

2. Valang covers both client AND server-side
validation. Please note that client-side validation is
equally important as server-side's. I feel it is a
must for web apps in terms of user experience.

3. In Valang + Spring MVD, you have all the validation
code for a form in one place in stark contrast to
spreading it in "controller" code as in Wicket and
mixing validation code with visual manipulation code.
Valang's way is much easier to understand and
management.

So in terms of elegance, productivity, management,
..., I am not sure Wicket's is right.

Can Wicket provide a better solution? 

I would like to share my concern regarding the
Wicket's WebPage, where you put a form's code for some
visual aspects, validation, ajax, etc. in one place. A
big object. I feel it is too ambitious and it looks
like spaghetti code and mixes concerns/modules in one
place. Comment?


I am very new to Wicket and don't know the best ways
of using Wicket. I love to hear from expereinced
users/guru here.

Thanks for your input!

Warm regards,

David


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread David Chang
>>The problem is that with declarative approaches,
once you step outside of the use-cases envisioned by
the designer of the declarative system things become
much more difficult.

I would like to think practical. How many such
unexpected situations would happen? Besides, you can
always code extra validation in Java in controllers
using things such as Wicket's form validators.



>>A Wicketer would view it differently: in
Valang+Spring MVC you have Java code for your
controller and validation "code" in XML, whereas in 
Wicket it's all in Java code. That said, it probably
wouldn't be too hard to implement a FormValidator
that accepted valang syntax and applied it to a form.

I really want to see such a thing in place.
Auto-generation of client-side validation code, IMHO,
is a much needed thing. At least, Wicket should have
this capability. It would be nightmare to wrtie
validation twice: one for the WebPage, one for
client-side validation.



>>Weird. Your experience is exactly opposite to mine.
I found Spring MVC to be hopelessly scattered:
declarations in XML, controller code in Java, view
code in templates.

I dont have any real experience yet. It is mere my
observation and thinking. I am learning but still
evaluating. 

One thing I have is really the opposite to your
experience. I feel this "scatter" is not hopeless; but
it is a nice separation of concerns. Think about it. I
have no objection to puting everything in WebPage, but
these different concerns should be separated in Wicket
somehow, code should look clean and good...

Thank you for sharing your thought and experience,
which is immensely helpful!

Regards.






 previous emails =



--- John Krasnay <[EMAIL PROTECTED]> wrote:

> On Fri, May 02, 2008 at 07:25:01AM -0700, David
> Chang wrote:
> > 
> > I have the bad feeling about this way of
> validation
> > 
> > 1. It is too much coding. Anybody used Valang in
> > Spring Module? By using Valang, the validation
> code is
> > much clean and a lot fewer and you dont need to
> create
> > a class simply for this simple validation.
> > 
> 
> I think you'll find the Wicket team has very strong
> aversion to doing
> things declaratively rather than with Java code. The
> problem is that
> with declarative approaches, once you step outside
> of the use-cases
> envisioned by the designer of the declarative system
> things become much
> more difficult.
> 
> > 2. Valang covers both client AND server-side
> > validation. Please note that client-side
> validation is
> > equally important as server-side's. I feel it is a
> > must for web apps in terms of user experience.
> 
> Wicket doesn't come with a client-side validation
> framework by default;
> however, the validators have an opportunity to
> participate in the
> component rendering, so it wouldn't be too tough to
> create your own set
> of validators that also rendered the appropriate
> Javascript to do
> client-side validation.
> 
> > 3. In Valang + Spring MVD, you have all the
> validation
> > code for a form in one place in stark contrast to
> > spreading it in "controller" code as in Wicket and
> > mixing validation code with visual manipulation
> code.
> > Valang's way is much easier to understand and
> > management.
> 
> A Wicketer would view it differently: in
> Valang+Spring MVC you have Java
> code for your controller and validation "code" in
> XML, whereas in Wicket
> it's all in Java code.
> 
> That said, it probably wouldn't be too hard to
> implement a FormValidator
> that accepted valang syntax and applied it to a
> form.
> 
> > So in terms of elegance, productivity, management,
> > ..., I am not sure Wicket's is right.
> > 
> > Can Wicket provide a better solution? 
> > 
> > I would like to share my concern regarding the
> > Wicket's WebPage, where you put a form's code for
> some
> > visual aspects, validation, ajax, etc. in one
> place. A
> > big object. I feel it is too ambitious and it
> looks
> > like spaghetti code and mixes concerns/modules in
> one
> > place. Comment?
> 
> Weird. Your experience is exactly opposite to mine.
> I found Spring MVC
> to be hopelessly scattered: declarations in XML,
> controller code in
> Java, view code in templates. In Wicket, I can
> create self-contained
> components, each including all the functionality,
> markup, validation,
> JS, etc. it needs to get along in the world. I can
> then stitch these
> components together into pages that can be re-jigged
> and reorganized
> very quickly.
> 
> It f

Re: validation: Wicket does the right thing? Or right tool?

2008-05-04 Thread David Chang
Eelco,

Thanks so much for your input! I am still seriously
learning Wicket now and will see if I will change my
mind.

BTW, what is the best Wicket example website? I often
have many questions when reading tutorials with simple
examples. I wonder Wicket can do or how do more
callenging/complex situations that I can easily handle
with Spring MVC.

Regards,

David

--- Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> >  1. It is too much coding. Anybody used Valang in
> >  Spring Module? By using Valang, the validation
> code is
> >  much clean and a lot fewer and you dont need to
> create
> >  a class simply for this simple validation.
> 
> The example you quoted is an example of a reusable
> validator that
> checks the values of two components with each other.
> It's probably a
> rare case to create a reusable validator for it, as
> you can achieve
> the same thing with fewer lines of code by just
> performing the check
> on your form's or button's submit method and then
> setting the error on
> failure. But the choice is yours whether you want
> the validation to be
> reusable (which also means it will be easier to move
> around in your
> code) or whether you just implemented quick and
> dirty (like I often
> do).
> 
> Btw, team members, this comment can be found in
> IFormValidator:
>  * TODO post 1.3: remove validate(form) *make
> IFormValidator extends
> IValidator where IValidatable's
>  * value is form.modelobject and error reports on
> form - that way
> IBehaviorProvider can extend
>  * IValidator
> 
> >  2. Valang covers both client AND server-side
> >  validation. Please note that client-side
> validation is
> >  equally important as server-side's. I feel it is
> a
> >  must for web apps in terms of user experience.
> 
> It is very important that the server-side validation
> is robust, since
> the client-side can be messed with.
> 
> Whether client-side validation is important
> depends... I typically use
> Ajax if I want checking on the fly. Very easy to
> implement using
> Wicket.
> 
> But if you want client-side validation, you can
> create a combined
> validator and behavior (that would contribute the
> JavaScript code to
> the client), e.g. by letting your validator
> implement
> IValidatorAddListener and adding the behavior
> (possibly itself) to the
> component in the onAdded method.
> 
> Would be fun if someone would pick this up and
> extend some of the
> simple validators we have with this.
> 
> >  3. In Valang + Spring MVD, you have all the
> validation
> >  code for a form in one place in stark contrast to
> >  spreading it in "controller" code as in Wicket
> and
> >  mixing validation code with visual manipulation
> code.
> >  Valang's way is much easier to understand and
> >  management.
> 
> I don't know Valang, so I'm not sure what you mean.
> Anyway, you have
> plenty of choices to hide validation code if it
> bothers you. Examples
> are the automatic assignment of validators based on
> Hibernate
> annotations like we're doing in the project I work
> on (done via
> IComponentOnBeforeRenderListener), or custom
> components that assign
> validators to self in their constructors.
> 
> Personally, I think Wicket's solution to validating
> components is
> quite nice as long as the validation is related to
> one component. If
> not (multiple components are non-related), it gets
> more messy, but I
> can't imagine that would be much better in other
> frameworks.
> 
> >  So in terms of elegance, productivity,
> management,
> >  ..., I am not sure Wicket's is right.
> 
> I think it is if you use your creativity and OO
> skills to make it fit
> your style.
> 
> >  Can Wicket provide a better solution?
> >
> >  I would like to share my concern regarding the
> >  Wicket's WebPage, where you put a form's code for
> some
> >  visual aspects, validation, ajax, etc. in one
> place. A
> >  big object. I feel it is too ambitious and it
> looks
> >  like spaghetti code and mixes concerns/modules in
> one
> >  place. Comment?
> 
> Much to debate here, and there are plenty of
> discussions of the pros
> and cons to be found on the internet.
> 
> You don't have to put everything in place; again use
> your OO skills to
> make it more elegant. Furthermore, the fact that so
> much is statically
> typed Java code that is also stateful makes that it
> is easy to
> maintain/ refactor/ navigate/ explore/ debug
> compared to declarative
> frameworks. Declarative frameworks often can result
> in less code, but
> typically only for relatively simple things, and you
> won't get any of
> the advantages of working with statically typed
> code. Also, a
> declarative framework - a DSL in fact - can never be
> as flexible as a
> general-purpose language. Wicket is very flexible
> because of that.
> Whether limitations of declarative frameworks hit
> you of course
> depends on what you're doing with it.
> 
> Good luck,
> 
> Eelco
> 
>
-
> To unsubscribe,

Re: validation: Wicket does the right thing? Or right tool?

2008-05-05 Thread David Chang
Eelco,

I am reading the PDF version of the book called Enjoy
Web Development with Wicket. Basically it is a good
one with many interesting examples, but these examples
are simple and keep me wondering whether Wicket can
handle other more complicated situations. 

I feel this book does a good tutorial job, but it has
many how-tos and lacks whys (the Wicket design ideas).
I feel switching from JSP+Spring MVC to Wicket it is
crucial to know those whys to fully appreciate or
effectively use Wicket.

How is your Wicket in Action?

Thanks,

David


> I often  have many questions when reading tutorials
with simple
>  examples. I wonder Wicket can do or how do more
>  callenging/complex situations that I can easily
handle
>  with Spring MVC.




--- Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> >  Thanks so much for your input! I am still
> seriously
> >  learning Wicket now and will see if I will change
> my
> >  mind.
> >
> >  BTW, what is the best Wicket example website?
> 
> Best to download the Wicket examples distribution or
> check out from
> our subversion repo, so that you can browse through
> the source. And
> don't forget to search through this mailing list
> (archives) and look
> at the WIKI if you're stuck with something.
> 
> > I often  have many questions when reading
> tutorials with simple
> >  examples. I wonder Wicket can do or how do more
> >  callenging/complex situations that I can easily
> handle
> >  with Spring MVC.
> 
> You bet! There may be cases where using Wicket is
> overkill, but it
> certainly beats the hell out of competitors when it
> comes to handling
> complex cases. :-)
> 
> You could download the first chapter of Wicket In
> Action
> (http://www.manning.com/dashorst/) to get our take
> on what exactly
> we're trying to solve (and what isn't solved by
> model 2 frameworks
> like SpringMVC and Struts etc)
> 
> Cheers,
> 
> Eelco
> 
> Eelco
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pre-built wicket sample app for a starter to copy?

2009-05-11 Thread David Chang

Hello, I have a web project to do and this time I am going to do it with Wicket 
instead of Spring MVC. And I need your input.

The tools I plan to use include Wicket, Spring, Hibernate, Acegi, and 
Displaytag.

I recall when I started my first Spring project, I copied Matt Rabile’s example 
application and started to modify it, which got me off the ground pretty 
quickly.

For my Wicket project, I hope to see a similar pre-built or semi-built Wicket 
application that uses the above tools for me to quickly start without spending 
much time to figure out the “optimal” organization of files and directories.

Any idea or suggestion?   Thank you!

Cheers!





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



Any easy way to do client-side javascript-based validation with Wicket?

2009-05-24 Thread David Chang


I am now reading the book "Wicket in Action" to learn about Wicket. The more I 
read and the more I like it!

I did a few projects with Spring MVC in the past. In these projects, I defined 
form field validation rules in an XML file and Spring adds both client side and 
server-side, which I think is quite helpful.

I just want to know how to do the same thing in Wicket. The validation rules 
dont have to be in an XML file and they can be in Wicket's Java files, but I 
hope Wicket can generate client-side validation.

Please dont argue with me about the good or bad things about client-side 
validation. I simply want to know whether Wicket can do it or how to it, as 
well as any attempt in this regard. 

Thanks so much for your help!

Cheers!




  

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



Re: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang

Thanks for your input, but I am looking for something different.

In Spring MVC, I can use Spring Modules' Valang Validator to define validation 
rules in applicationContext.xml for a form bean. Then Spring generates both 
client- and server-side valudation. This write-once approach is very appealing. 

I am not planning write validation rules in Wicket's Java components and write 
Javascript-based client validation again in markup.

Cheers!


--- On Mon, 5/25/09, Per Lundholm  wrote:

> From: Per Lundholm 
> Subject: Re: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: users@wicket.apache.org
> Date: Monday, May 25, 2009, 3:14 AM
> I assume you have read the parts
> about validation in Wicket.
> 
> There are several examples of integrating Wicket with
> various
> JavaScript libraries, such as Dojo.
> 
> /Per
> 
> 
> 2009/5/25 David Chang :
> >
> >
> > I am now reading the book "Wicket in Action" to learn
> about Wicket. The more I read and the more I like it!
> >
> > I did a few projects with Spring MVC in the past. In
> these projects, I defined form field validation rules in an
> XML file and Spring adds both client side and server-side,
> which I think is quite helpful.
> >
> > I just want to know how to do the same thing in
> Wicket. The validation rules dont have to be in an XML file
> and they can be in Wicket's Java files, but I hope Wicket
> can generate client-side validation.
> >
> > Please dont argue with me about the good or bad things
> about client-side validation. I simply want to know whether
> Wicket can do it or how to it, as well as any attempt in
> this regard.
> >
> > Thanks so much for your help!
> >
> > Cheers!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 
> 
> -- 
> FaceBush, min insamling i Mustaschkampen:
> http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang


Frank, thanks so much for your input. It seems your jQuery validation plugin is 
a cool tool. 

> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.

Does it mean that by using Wicket AND your jQuery validation plugin I only have 
to write validation rules ONCE (not write second time for the client side 
validation)? Is it correct? If it is true, I am eager to donate after tests:-)

Warm regards.


--- On Mon, 5/25/09, Frank Klein Koerkamp  wrote:

> From: Frank Klein Koerkamp 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: "'users@wicket.apache.org'" 
> Date: Monday, May 25, 2009, 10:01 AM
> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.
> We use an jQuery library for it 
> (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> Very easy to integrate. And most of the times it's only
> adding extra style class to field and it works.
> 
> Kind Regards,
> 
> Frank Klein Koerkamp
> 
> -Original Message-
> From: David Chang [mailto:david_q_zh...@yahoo.com]
> Sent: Monday, May 25, 2009 3:39 PM
> To: users@wicket.apache.org
> Subject: Re: Any easy way to do client-side
> javascript-based validation with Wicket?
> 
> 
> Thanks for your input, but I am looking for something
> different.
> 
> In Spring MVC, I can use Spring Modules' Valang Validator
> to define validation rules in applicationContext.xml for a
> form bean. Then Spring generates both client- and
> server-side valudation. This write-once approach is very
> appealing.
> 
> I am not planning write validation rules in Wicket's Java
> components and write Javascript-based client validation
> again in markup.
> 
> Cheers!
> 
> 
> --- On Mon, 5/25/09, Per Lundholm 
> wrote:
> 
> > From: Per Lundholm 
> > Subject: Re: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: users@wicket.apache.org
> > Date: Monday, May 25, 2009, 3:14 AM
> > I assume you have read the parts
> > about validation in Wicket.
> >
> > There are several examples of integrating Wicket with
> > various
> > JavaScript libraries, such as Dojo.
> >
> > /Per
> >
> >
> > 2009/5/25 David Chang :
> > >
> > >
> > > I am now reading the book "Wicket in Action" to
> learn
> > about Wicket. The more I read and the more I like it!
> > >
> > > I did a few projects with Spring MVC in the past.
> In
> > these projects, I defined form field validation rules
> in an
> > XML file and Spring adds both client side and
> server-side,
> > which I think is quite helpful.
> > >
> > > I just want to know how to do the same thing in
> > Wicket. The validation rules dont have to be in an XML
> file
> > and they can be in Wicket's Java files, but I hope
> Wicket
> > can generate client-side validation.
> > >
> > > Please dont argue with me about the good or bad
> things
> > about client-side validation. I simply want to know
> whether
> > Wicket can do it or how to it, as well as any attempt
> in
> > this regard.
> > >
> > > Thanks so much for your help!
> > >
> > > Cheers!
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> >
> > --
> > FaceBush, min insamling i Mustaschkampen:
> > http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> The information contained in this communication is
> confidential, intended solely for the use of the individual
> or entity to whom it is addressed and may be legally
> privileged and protected by professional secrecy. Access to
> this message by anyone else is unauthorized. If you are not
> the intended reci

RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang

Jeremy, thanks so much for the input. I will look at it later. 

I feel that, in addition to server-side validationi, the client-side validation 
is much needed since it reduces lot of network traffic and server workload for 
a busy website. 

I have been doing consulting for many years and I do see customers really like 
client side validation. In my experience, that need is an order from the God 
and we, as programmers, have to deliver. I am surprised that no mature solution 
in this regard can be found from the Wicket or related projects.  

Still, Wicket is great!!!

Cheers!


--- On Mon, 5/25/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: users@wicket.apache.org
> Date: Monday, May 25, 2009, 10:43 AM
> In wicketstuff-core there is a
> library that I started as a proof of concept that allows you
> to add one behavior to your component which adds client and
> server side validation.  You could start with it and
> add on as needed.
> 
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
> 
> 
> -Original Message-
> From: David Chang 
> Sent: Monday, May 25, 2009 9:19 AM
> To: users@wicket.apache.org
> Subject: RE: Any easy way to do client-side
> javascript-based validation with  Wicket?
> 
> 
> 
> Frank, thanks so much for your input. It seems your jQuery
> validation plugin is a cool tool. 
> 
> > We made an layer on top of the Wicket
> > validation, where we also add some client-side
> validation.
> 
> Does it mean that by using Wicket AND your jQuery
> validation plugin I only have to write validation rules ONCE
> (not write second time for the client side validation)? Is
> it correct? If it is true, I am eager to donate after
> tests:-)
> 
> Warm regards.
> 
> 
> --- On Mon, 5/25/09, Frank Klein Koerkamp 
> wrote:
> 
> > From: Frank Klein Koerkamp 
> > Subject: RE: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: "'users@wicket.apache.org'"
> 
> > Date: Monday, May 25, 2009, 10:01 AM
> > We made an layer on top of the Wicket
> > validation, where we also add some client-side
> validation.
> > We use an jQuery library for it 
> > (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> > Very easy to integrate. And most of the times it's
> only
> > adding extra style class to field and it works.
> > 
> > Kind Regards,
> > 
> > Frank Klein Koerkamp
> > 
> > -Original Message-
> > From: David Chang [mailto:david_q_zh...@yahoo.com]
> > Sent: Monday, May 25, 2009 3:39 PM
> > To: users@wicket.apache.org
> > Subject: Re: Any easy way to do client-side
> > javascript-based validation with Wicket?
> > 
> > 
> > Thanks for your input, but I am looking for something
> > different.
> > 
> > In Spring MVC, I can use Spring Modules' Valang
> Validator
> > to define validation rules in applicationContext.xml
> for a
> > form bean. Then Spring generates both client- and
> > server-side valudation. This write-once approach is
> very
> > appealing.
> > 
> > I am not planning write validation rules in Wicket's
> Java
> > components and write Javascript-based client
> validation
> > again in markup.
> > 
> > Cheers!
> > 
> > 
> > --- On Mon, 5/25/09, Per Lundholm 
> > wrote:
> > 
> > > From: Per Lundholm 
> > > Subject: Re: Any easy way to do client-side
> > javascript-based validation with  Wicket?
> > > To: users@wicket.apache.org
> > > Date: Monday, May 25, 2009, 3:14 AM
> > > I assume you have read the parts
> > > about validation in Wicket.
> > >
> > > There are several examples of integrating Wicket
> with
> > > various
> > > JavaScript libraries, such as Dojo.
> > >
> > > /Per
> > >
> > >
> > > 2009/5/25 David Chang :
> > > >
> > > >
> > > > I am now reading the book "Wicket in Action"
> to
> > learn
> > > about Wicket. The more I read and the more I like
> it!
> > > >
> > > > I did a few projects with Spring MVC in the
> past.
> > In
> > > these projects, I defined form field validation
> rules
> > in an
> > > XML file and Spring adds both client side and
> > server-side,
> > > which I think is quite helpful.
> > > >
> > > > I just want to know how to do the 

How to receive digested emails once a day from this mailing list ???

2009-05-27 Thread David Chang

I am new to this mailing list and I like it very much. I like the active 
community and the questions and answers, but I prefer to receive all the emails 
combined together in a single email once a day. I want to stay in the loop.

I tried user-digest-subscr...@wicket.apache.org and there is no such list.

Do you happen to know how I can do this? I looked at the Wicket project website 
but failed to find such a way.

Thanks for your help!



  

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



Error filterStart -- how to know what caused tomcat start failure?

2009-05-30 Thread David Chang


Hello, I am in the process of learning Wicket and testing different things. One 
of the biggest problems so far is that when starting Tomcat, I often get the 
following error message:

SEVERE: Error filterStart

AND Tomcat gives no detail what cuased the problem

Any way I can make Tomcat produce more information about the cause of the 
failure?

Thanks!!!


  

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




Re: Error filterStart -- how to know what caused tomcat start failure?

2009-05-30 Thread David Chang


I googled a lot but failed to find satisfactory answers. I just find a way to 
make tomcat to produce more error info than simply

May 30, 2009 12:06:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
May 30, 2009 12:06:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/wic] startup failed due to previous errors

I am learning from the book Wicket in Action. The funny thing is that the new 
stuff is no problem, but the tomcat error is.



--- On Sat, 5/30/09, Mathias Nilsson  wrote:

> From: Mathias Nilsson 
> Subject: Re: Error filterStart -- how to know what caused tomcat start 
> failure?
> To: users@wicket.apache.org
> Date: Saturday, May 30, 2009, 12:07 PM
> 
> I guess this isn't wicket specific. goggle on your error
> and you may get
> information on how to solve this.
> -- 
> View this message in context: 
> http://www.nabble.com/Error-filterStarthow-to-know-what-caused-tomcat-start-failure--tp23794740p23794783.html
> Sent from the Wicket - User mailing list archive at
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Error filterStart -- how to know what caused tomcat start failure?

2009-05-30 Thread David Chang

Vitek, you are right. Under tomcat\logs directory, one type of logs called 
localhost contains more info than what tomcat start screen reveals.

Thanks for the pointer.

--- On Sat, 5/30/09, Vit Rozkovec  wrote:

> From: Vit Rozkovec 
> Subject: Re: Error filterStart -- how to know what caused tomcat start 
> failure?
> To: users@wicket.apache.org
> Date: Saturday, May 30, 2009, 12:24 PM
> There are also other tomcat logs,
> have you looked into them? I found an 
> cause of this error in other log, but I do not remember
> which one was that.
> 
> Vitek
> 
> David Chang wrote:
> > I googled a lot but failed to find satisfactory
> answers. I just find a way to make tomcat to produce more
> error info than simply
> >
> > May 30, 2009 12:06:57 PM
> org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > May 30, 2009 12:06:57 PM
> org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/wic] startup failed due to previous
> errors
> >
> > I am learning from the book Wicket in Action. The
> funny thing is that the new stuff is no problem, but the
> tomcat error is.
> >
> >
> >
> > --- On Sat, 5/30/09, Mathias Nilsson 
> wrote:
> >
> >   
> >> From: Mathias Nilsson 
> >> Subject: Re: Error filterStart -- how to know what
> caused tomcat start failure?
> >> To: users@wicket.apache.org
> >> Date: Saturday, May 30, 2009, 12:07 PM
> >>
> >> I guess this isn't wicket specific. goggle on your
> error
> >> and you may get
> >> information on how to solve this.
> >> -- 
> >> View this message in context: 
> >> http://www.nabble.com/Error-filterStarthow-to-know-what-caused-tomcat-start-failure--tp23794740p23794783.html
> >> Sent from the Wicket - User mailing list archive
> at
> >> Nabble.com.
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >>     
> >
> >
> >       
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Large internet rich UI Wicket websites?

2009-07-01 Thread David Chang

I am still learning Wicket. The more I read from <>, the more 
I like it.

>From the book, I know that companies from startups to large-size ones such as 
>IBM, Amazon, etc. use Wicket for their projects, but I cannot find a list of 
>specific larget internet rich UI websites coded with Wicket. Could someone 
>help?

The backgound for this request is that we may use Wicket for a large 
highly-active website. 

Cheers!


  

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



Re: Large internet rich UI Wicket websites?

2009-07-01 Thread David Chang


Martin, I looked at the list and it seems none of them meets what I said about 
large rich ui Wicket website. Likely I am ignorant. Please enlighten me. By 
large, I mean something similar or close to amazon.com or ebay.com that have a 
large number of concurrent users. Which Wicket website in your knowledge seems 
to the largest one?

Thanks!


--- On Wed, 7/1/09, Martin Funk  wrote:

> From: Martin Funk 
> Subject: Re: Large internet rich UI Wicket websites?
> To: users@wicket.apache.org
> Date: Wednesday, July 1, 2009, 3:21 PM
> 
> Am 01.07.2009 um 20:11 schrieb David Chang:
> 
> > 
> > I am still learning Wicket. The more I read from
> <>, the more I like it.
> > 
> > From the book, I know that companies from startups to
> large-size ones such as IBM, Amazon, etc. use Wicket for
> their projects, but I cannot find a list of specific larget
> internet rich UI websites coded with Wicket. Could someone
> help?
> > 
> > The backgound for this request is that we may use
> Wicket for a large highly-active website.
> maybe this helps:
> http://cwiki.apache.org/WICKET/sites-using-wicket.html
> mf
> > 
> > Cheers!
> > 
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Large internet rich UI Wicket websites?

2009-07-02 Thread David Chang


Jeremy, thanks for your input. I don't quite understand the side note in your 
reply. For a large website such as Amazon to work, there should absolutely be 
different technologies/tiers, tuning, security, and other considerations. The 
basic question is whether a framework is up to that task and whether there is 
evidence in reality.

Still back to my original question, any there any large Wicket website out 
there? Wicket people have to face it, me too, if I am going to use it.


--- On Wed, 7/1/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: Large internet rich UI Wicket websites?
> To: users@wicket.apache.org
> Date: Wednesday, July 1, 2009, 4:08 PM
> There are some large ones that have
> been mentioned on the mailing
> lists in the past - you can try searching Nabble - they may
> not be on
> that page.
> 
> As a side note, I find it funny how everyone always
> compares their
> anticipated traffic with Amazon or eBay.  I worked at
> eBay for quite
> some time, and I know that you are not going to run either
> of those
> sites with any framework straight out of the box.  I'm
> not saying
> Wicket can't scale to that size, I'm saying that no
> framework defaults
> to being made for that size.  Could eBay or Amazon use
> Wicket?  Sure,
> with the right techniques.  Could your website use
> it?  Yes, and
> probably much easier.  :)
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Wed, Jul 1, 2009 at 2:51 PM, David Chang
> wrote:
> >
> >
> > Martin, I looked at the list and it seems none of them
> meets what I said about large rich ui Wicket website. Likely
> I am ignorant. Please enlighten me. By large, I mean
> something similar or close to amazon.com or ebay.com that
> have a large number of concurrent users. Which Wicket
> website in your knowledge seems to the largest one?
> >
> > Thanks!
> >
> >
> > --- On Wed, 7/1/09, Martin Funk 
> wrote:
> >
> >> From: Martin Funk 
> >> Subject: Re: Large internet rich UI Wicket
> websites?
> >> To: users@wicket.apache.org
> >> Date: Wednesday, July 1, 2009, 3:21 PM
> >>
> >> Am 01.07.2009 um 20:11 schrieb David Chang:
> >>
> >> >
> >> > I am still learning Wicket. The more I read
> from
> >> <>, the more I like
> it.
> >> >
> >> > From the book, I know that companies from
> startups to
> >> large-size ones such as IBM, Amazon, etc. use
> Wicket for
> >> their projects, but I cannot find a list of
> specific larget
> >> internet rich UI websites coded with Wicket. Could
> someone
> >> help?
> >> >
> >> > The backgound for this request is that we may
> use
> >> Wicket for a large highly-active website.
> >> maybe this helps:
> >> http://cwiki.apache.org/WICKET/sites-using-wicket.html
> >> mf
> >> >
> >> > Cheers!
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Large internet rich UI Wicket websites?

2009-07-02 Thread David Chang

Igor, thanks very much for your input and insight. I really mean it. 

All the best.


--- On Thu, 7/2/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: Large internet rich UI Wicket websites?
> To: users@wicket.apache.org
> Date: Thursday, July 2, 2009, 2:35 PM
> lets say the entire backend of amazon
> is written in wicket. would you
> consider that to be a large application? how would you ever
> know that
> it was written in wicket? people who work on projects like
> these do
> not often go, or most times are not even allowed, to boast
> on some
> public mailing list.
> 
> wicket is best suited for very complex uis, and such uis
> are not often
> suited for public websites - whose mission is to make the
> experience
> as simple as possible for the user. not saying that it
> cannot be done.
> 
> i think if this is some sort of a "criteria" for choosing a
> framework
> you should probably go with servlets. there are some very
> very large
> sites out there written in pure jsp and servlets. good
> luck.
> 
> -igor
> 
> On Thu, Jul 2, 2009 at 10:57 AM, David Chang
> wrote:
> >
> >
> > Jeremy, thanks for your input. I don't quite
> understand the side note in your reply. For a large website
> such as Amazon to work, there should absolutely be different
> technologies/tiers, tuning, security, and other
> considerations. The basic question is whether a framework is
> up to that task and whether there is evidence in reality.
> >
> > Still back to my original question, any there any
> large Wicket website out there? Wicket people have to face
> it, me too, if I am going to use it.
> >
> >
> > --- On Wed, 7/1/09, Jeremy Thomerson 
> wrote:
> >
> >> From: Jeremy Thomerson 
> >> Subject: Re: Large internet rich UI Wicket
> websites?
> >> To: users@wicket.apache.org
> >> Date: Wednesday, July 1, 2009, 4:08 PM
> >> There are some large ones that have
> >> been mentioned on the mailing
> >> lists in the past - you can try searching Nabble -
> they may
> >> not be on
> >> that page.
> >>
> >> As a side note, I find it funny how everyone
> always
> >> compares their
> >> anticipated traffic with Amazon or eBay.  I
> worked at
> >> eBay for quite
> >> some time, and I know that you are not going to
> run either
> >> of those
> >> sites with any framework straight out of the
> box.  I'm
> >> not saying
> >> Wicket can't scale to that size, I'm saying that
> no
> >> framework defaults
> >> to being made for that size.  Could eBay or
> Amazon use
> >> Wicket?  Sure,
> >> with the right techniques.  Could your website
> use
> >> it?  Yes, and
> >> probably much easier.  :)
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Wed, Jul 1, 2009 at 2:51 PM, David Chang
> >> wrote:
> >> >
> >> >
> >> > Martin, I looked at the list and it seems
> none of them
> >> meets what I said about large rich ui Wicket
> website. Likely
> >> I am ignorant. Please enlighten me. By large, I
> mean
> >> something similar or close to amazon.com or
> ebay.com that
> >> have a large number of concurrent users. Which
> Wicket
> >> website in your knowledge seems to the largest
> one?
> >> >
> >> > Thanks!
> >> >
> >> >
> >> > --- On Wed, 7/1/09, Martin Funk 
> >> wrote:
> >> >
> >> >> From: Martin Funk 
> >> >> Subject: Re: Large internet rich UI
> Wicket
> >> websites?
> >> >> To: users@wicket.apache.org
> >> >> Date: Wednesday, July 1, 2009, 3:21 PM
> >> >>
> >> >> Am 01.07.2009 um 20:11 schrieb David
> Chang:
> >> >>
> >> >> >
> >> >> > I am still learning Wicket. The more
> I read
> >> from
> >> >> <>, the
> more I like
> >> it.
> >> >> >
> >> >> > From the book, I know that companies
> from
> >> startups to
> >> >> large-size ones such as IBM, Amazon, etc.
> use
> >> Wicket for
> >> >> their projects, but I cannot find a list
> of
> >> specific larget
> >> >> internet rich UI websites coded with
> Wicket. Could
> >> someone
>

Re: Large internet rich UI Wicket websites?

2009-07-03 Thread David Chang


Jeremy, thanks for your input. I don't quite understand the side note in your 
reply. For a large website such as Amazon to work, there should absolutely be 
different technologies/tiers, tuning, security, and other considerations. The 
basic question is whether a framework is up to that task and whether there is 
evidence in reality.

Still back to my original question, any there any large Wicket website out 
there? Wicket people have to face it, me too, if I am going to use it.


--- On Wed, 7/1/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: Large internet rich UI Wicket websites?
> To: users@wicket.apache.org
> Date: Wednesday, July 1, 2009, 4:08 PM
> There are some large ones that have
> been mentioned on the mailing
> lists in the past - you can try searching Nabble - they may
> not be on
> that page.
> 
> As a side note, I find it funny how everyone always
> compares their
> anticipated traffic with Amazon or eBay.  I worked at
> eBay for quite
> some time, and I know that you are not going to run either
> of those
> sites with any framework straight out of the box.  I'm
> not saying
> Wicket can't scale to that size, I'm saying that no
> framework defaults
> to being made for that size.  Could eBay or Amazon use
> Wicket?  Sure,
> with the right techniques.  Could your website use
> it?  Yes, and
> probably much easier.  :)
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Wed, Jul 1, 2009 at 2:51 PM, David Chang
> wrote:
> >
> >
> > Martin, I looked at the list and it seems none of them
> meets what I said about large rich ui Wicket website. Likely
> I am ignorant. Please enlighten me. By large, I mean
> something similar or close to amazon.com or ebay.com that
> have a large number of concurrent users. Which Wicket
> website in your knowledge seems to the largest one?
> >
> > Thanks!
> >
> >
> > --- On Wed, 7/1/09, Martin Funk 
> wrote:
> >
> >> From: Martin Funk 
> >> Subject: Re: Large internet rich UI Wicket
> websites?
> >> To: users@wicket.apache.org
> >> Date: Wednesday, July 1, 2009, 3:21 PM
> >>
> >> Am 01.07.2009 um 20:11 schrieb David Chang:
> >>
> >> >
> >> > I am still learning Wicket. The more I read
> from
> >> <>, the more I like
> it.
> >> >
> >> > From the book, I know that companies from
> startups to
> >> large-size ones such as IBM, Amazon, etc. use
> Wicket for
> >> their projects, but I cannot find a list of
> specific larget
> >> internet rich UI websites coded with Wicket. Could
> someone
> >> help?
> >> >
> >> > The backgound for this request is that we may
> use
> >> Wicket for a large highly-active website.
> >> maybe this helps:
> >> http://cwiki.apache.org/WICKET/sites-using-wicket.html
> >> mf
> >> >
> >> > Cheers!
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Member variables in WebApplication are not serialized, correct?

2009-07-22 Thread David Chang

Sorry if this is a dumb question.

Thanks.


  

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



Wicket Bench website is down

2009-07-22 Thread David Chang

I am hoping to download the Eclipse plugin and followed the link from the 
Wicket website, but the site is down.

http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench

Any other place to download this plugin?

Thanks.


  

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



Re: Member variables in WebApplication are not serialized, correct?

2009-07-22 Thread David Chang

Does anybody have the answer regarding Terracotta?

Thanks!

--- On Wed, 7/22/09, Peter Ertl  wrote:

> From: Peter Ertl 
> Subject: Re: Member variables in WebApplication are not serialized, correct?
> To: users@wicket.apache.org
> Date: Wednesday, July 22, 2009, 7:21 PM
> correct - they are not serialized
> 
> however I don't know what will happen when using
> Terracotta...
> 
> Am 23.07.2009 um 01:09 schrieb David Chang:
> 
> >
> > Sorry if this is a dumb question.
> >
> > Thanks.
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Member variables in WebApplication are not serialized under Terracotta, correct?

2009-07-23 Thread David Chang

Does anybody have this knowledge? Thank you!

--- On Wed, 7/22/09, Peter Ertl  wrote:

> From: Peter Ertl 
> Subject: Re: Member variables in WebApplication are not serialized, correct?
> To: users@wicket.apache.org
> Date: Wednesday, July 22, 2009, 7:21 PM
> correct - they are not serialized
> 
> however I don't know what will happen when using
> Terracotta...
> 
> Am 23.07.2009 um 01:09 schrieb David Chang:
> 
> >
> > Sorry if this is a dumb question.
> >
> > Thanks.
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Wicket Bench website has been down for a few days

2009-07-24 Thread David Chang

http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench

Does anybody know why? I hope to use this Eclipse plugin.

Thanks.


  

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



Serialization of a page with a long and dynamic list of records

2009-07-25 Thread David Chang

I am learning and evaluating Wicket now and have a question to ask.

I have a page that displays a long list (say 2000) of records. This page is 
dynamic, which means the list of records may change for each reload. I 
understand that I should use loadable detachable model. My question is: does 
Wicket serialize each page reload with all the records on a particular reload?

Thanks!


  

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



Questions about Wicket sessions

2009-07-26 Thread David Chang



Reading <> to learn Wicket, I understand that sessions are 
not thread-safe. I have the following questions about a Wicket app:

1. If I open another tab on the same browser (IE or FF), visitor activities on 
the same Wicket app are considered in the same session?

2. If I start IE or FF in another window, visitor activities on the same Wicket 
app are considered in the same or different session?

3. If dirty() is called within a method of custom session object, then it is 
the developer's responsibility to implement dirty() to synchronize with other 
clustered web servers, correct?

Thanks!



  

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



Re: Questions about Wicket sessions

2009-07-26 Thread David Chang


Another question: 

By default, Wicket's SessionStore stores older pages to a temporary directory. 
It is stored as files, correct? In case of a large website demanding high 
performance, it should be stored in a high-performance database, correct?

Thanks!


--- On Sun, 7/26/09, David Chang  wrote:

> From: David Chang 
> Subject: Questions about Wicket sessions
> To: users@wicket.apache.org
> Date: Sunday, July 26, 2009, 11:53 AM
> 
> 
> 
> Reading <> to learn Wicket, I
> understand that sessions are not thread-safe. I have the
> following questions about a Wicket app:
> 
> 1. If I open another tab on the same browser (IE or FF),
> visitor activities on the same Wicket app are considered in
> the same session?
> 
> 2. If I start IE or FF in another window, visitor
> activities on the same Wicket app are considered in the same
> or different session?
> 
> 3. If dirty() is called within a method of custom session
> object, then it is the developer's responsibility to
> implement dirty() to synchronize with other clustered web
> servers, correct?
> 
> Thanks!
> 
> 
> 
>       
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Questions about Wicket sessions

2009-07-26 Thread David Chang


Erik, thanks for your input. 

> Please note "Sessions are not thread-safe" in Wicket
> context means that the Session /object/ is not thread-safe.
> Note that requests that fall within a session (except for
> resources) are handled serially. Only when you use session
> clustering this guarantee can not be made.

So if I dont use clustered web servers, custom methods on a custom session 
object do not need be "synchronized". Put it another way, Wicket session is 
thread-safe in case of a single web server. Correct?

Cheers.


--- On Sun, 7/26/09, Erik van Oosten  wrote:

> From: Erik van Oosten 
> Subject: Re: Questions about Wicket sessions
> To: users@wicket.apache.org
> Date: Sunday, July 26, 2009, 2:08 PM
> David,
> 
> Please note "Sessions are not thread-safe" in Wicket
> context means that the Session /object/ is not thread-safe.
> Note that requests that fall within a session (except for
> resources) are handled serially. Only when you use session
> clustering this guarantee can not be made.
> 
> 1. It depends on the browser. All modern browsers will make
> it one session.
> 
> 2. Same answer.
> 
> 3. No. Wicket does this for you.
> 
> Regarding your question on session storage: you'll be hard
> pressed to find a more performant solution to Wicket's http
> session disk store. Perhaps that memory solutions would work
> better.
> 
> Regards,
>    Erik.
> 
> 
> David Chang wrote:
> > Reading <> to learn
> Wicket, I understand that sessions are not thread-safe. I
> have the following questions about a Wicket app:
> > 
> > 1. If I open another tab on the same browser (IE or
> FF), visitor activities on the same Wicket app are
> considered in the same session?
> > 
> > 2. If I start IE or FF in another window, visitor
> activities on the same Wicket app are considered in the same
> or different session?
> > 
> > 3. If dirty() is called within a method of custom
> session object, then it is the developer's responsibility to
> implement dirty() to synchronize with other clustered web
> servers, correct?
> > 
> > Thanks!
> > 
> >   
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Questions about Wicket sessions

2009-07-26 Thread David Chang


Igor, thank you for the correction. Really appreciated. Thanks!


--- On Sun, 7/26/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: Questions about Wicket sessions
> To: users@wicket.apache.org
> Date: Sunday, July 26, 2009, 4:23 PM
> no, incorrect. multiple browser tabs
> can be used to access the same
> session instance simultaneously.
> 
> -igor
> 
> On Sun, Jul 26, 2009 at 1:17 PM, David Chang
> wrote:
> >
> >
> > Erik, thanks for your input.
> >
> >> Please note "Sessions are not thread-safe" in
> Wicket
> >> context means that the Session /object/ is not
> thread-safe.
> >> Note that requests that fall within a session
> (except for
> >> resources) are handled serially. Only when you use
> session
> >> clustering this guarantee can not be made.
> >
> > So if I dont use clustered web servers, custom methods
> on a custom session object do not need be "synchronized".
> Put it another way, Wicket session is thread-safe in case of
> a single web server. Correct?
> >
> > Cheers.
> >
> >
> > --- On Sun, 7/26/09, Erik van Oosten 
> wrote:
> >
> >> From: Erik van Oosten 
> >> Subject: Re: Questions about Wicket sessions
> >> To: users@wicket.apache.org
> >> Date: Sunday, July 26, 2009, 2:08 PM
> >> David,
> >>
> >> Please note "Sessions are not thread-safe" in
> Wicket
> >> context means that the Session /object/ is not
> thread-safe.
> >> Note that requests that fall within a session
> (except for
> >> resources) are handled serially. Only when you use
> session
> >> clustering this guarantee can not be made.
> >>
> >> 1. It depends on the browser. All modern browsers
> will make
> >> it one session.
> >>
> >> 2. Same answer.
> >>
> >> 3. No. Wicket does this for you.
> >>
> >> Regarding your question on session storage: you'll
> be hard
> >> pressed to find a more performant solution to
> Wicket's http
> >> session disk store. Perhaps that memory solutions
> would work
> >> better.
> >>
> >> Regards,
> >>    Erik.
> >>
> >>
> >> David Chang wrote:
> >> > Reading <> to
> learn
> >> Wicket, I understand that sessions are not
> thread-safe. I
> >> have the following questions about a Wicket app:
> >> >
> >> > 1. If I open another tab on the same browser
> (IE or
> >> FF), visitor activities on the same Wicket app
> are
> >> considered in the same session?
> >> >
> >> > 2. If I start IE or FF in another window,
> visitor
> >> activities on the same Wicket app are considered
> in the same
> >> or different session?
> >> >
> >> > 3. If dirty() is called within a method of
> custom
> >> session object, then it is the developer's
> responsibility to
> >> implement dirty() to synchronize with other
> clustered web
> >> servers, correct?
> >> >
> >> > Thanks!
> >> >
> >> >
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



the effective ways of wicket models to access database

2009-07-27 Thread David Chang

Hello, I am reading <> to learn Wicket. The example on Page 
99 is about teaching detachable models. Here it goes:

---
public class CheeseModel extends Model {
private Long id;
private transient Cheese cheese;
public CheeseModel() {
}
public CheeseModel(Cheese cheese) {
setObject(cheese);
}
public CheeseModel(Long id) {
this.id = id;
}
@Override
public Object getObject() {
if(cheese != null) return cheese;
if(id == null ) {
cheese = new Cheese();
} else {
CheeseDao dao = ...
cheese = dao.getCheese(id);
}
return cheese;
}
@Override
public void setObject(Object object) {
this. cheese = (Cheese)object;
id = (cheese == null) ? null : cheese.getId();
}
@Override
public void detach() {
this. cheese = null;
}
}
---

I would like to know how dao is obtained as indicated as follows:

CheeseDao dao = ...

Use a locator pattern? Or should I let CheeseModel extend a custom model in 
which dao is set via Spring? Does the latter way create more memory footprint? 
What are the effective ways of getting DAO avaiable to wicket models?

Thanks for your input!

Cheers!


  

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



Re: the effective ways of wicket models to access database

2009-07-27 Thread David Chang

Martin and all, thanks for your input.

>>You can use spring to inject the service, using @SpringBean and
calling in the constructor InjectorHolder.getInjector().inject(this);
(or use salve)

You mean add a member to this CheeseModel class and use @SpringBean to inject 
it? From reading this book, I know it works. How about creating a super custom 
model (implements IModel) which has DAO ready and other classes such as 
CheeseModel simply extends it?

What do you mean by "salve"?

Thanks.



--- On Mon, 7/27/09, Martijn Dashorst  wrote:

> From: Martijn Dashorst 
> Subject: Re: the effective ways of wicket models to access database
> To: users@wicket.apache.org
> Date: Monday, July 27, 2009, 8:29 AM
> You can use spring to inject the
> service, using @SpringBean and
> calling in the constructor
> InjectorHolder.getInjector().inject(this);
> (or use salve)
> 
> Service locator is also a possibility. That is why we left
> it open :)
> 
> Martijn
> 
> On Mon, Jul 27, 2009 at 2:20 PM, David Chang
> wrote:
> >
> > Hello, I am reading <>
> to learn Wicket. The example on Page 99 is about teaching
> detachable models. Here it goes:
> >
> > ---
> > public class CheeseModel extends Model {
> >        private Long id;
> >        private transient Cheese cheese;
> >                public CheeseModel() {
> >        }
> >        public CheeseModel(Cheese cheese) {
> >                setObject(cheese);
> >        }
> >        public CheeseModel(Long id) {
> >                this.id = id;
> >        }
> >       �...@override
> >        public Object getObject() {
> >                if(cheese != null) return
> cheese;
> >                if(id == null ) {
> >                        cheese = new
> Cheese();
> >                } else {
> >                        CheeseDao dao =
> ...
> >                        cheese =
> dao.getCheese(id);
> >        }
> >        return cheese;
> >        }
> >       �...@override
> >        public void setObject(Object object) {
> >                this. cheese = (Cheese)object;
> >                id = (cheese == null) ? null :
> cheese.getId();
> >        }
> >       �...@override
> >        public void detach() {
> >                this. cheese = null;
> >        }
> > }
> > ---
> >
> > I would like to know how dao is obtained as indicated
> as follows:
> >
> >                        CheeseDao dao =
> ...
> >
> > Use a locator pattern? Or should I let CheeseModel
> extend a custom model in which dao is set via Spring? Does
> the latter way create more memory footprint? What are the
> effective ways of getting DAO avaiable to wicket models?
> >
> > Thanks for your input!
> >
> > Cheers!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Twenty Six Wicket Tricks

2009-07-28 Thread David Chang

I would buy the book too. When will it be available? 

--- On Tue, 7/28/09, Mathias Nilsson  wrote:

> From: Mathias Nilsson 
> Subject: Re: Twenty Six Wicket Tricks
> To: users@wicket.apache.org
> Date: Tuesday, July 28, 2009, 1:02 PM
> 
> +1
> 
> I would buy the book.
> -- 
> View this message in context: 
> http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p24703709.html
> Sent from the Wicket - User mailing list archive at
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Twenty Six Wicket Tricks

2009-07-28 Thread David Chang


Why just 26 tricks?More please..! 

I feel the learning curve for Wicket is kind of tall and more tricks can 
definitely help new comers in terms of available practical tools and 
understanding masterful use of Wicket by gurus and ... and ...


--- On Tue, 7/28/09, David Chang  wrote:

> From: David Chang 
> Subject: Re: Twenty Six Wicket Tricks
> To: users@wicket.apache.org
> Date: Tuesday, July 28, 2009, 5:04 PM
> 
> I would buy the book too. When will it be available? 
> 
> --- On Tue, 7/28/09, Mathias Nilsson 
> wrote:
> 
> > From: Mathias Nilsson 
> > Subject: Re: Twenty Six Wicket Tricks
> > To: users@wicket.apache.org
> > Date: Tuesday, July 28, 2009, 1:02 PM
> > 
> > +1
> > 
> > I would buy the book.
> > -- 
> > View this message in context: 
> > http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p24703709.html
> > Sent from the Wicket - User mailing list archive at
> > Nabble.com.
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 
> 
> 
>       
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Apache Wicket 1.4 takes type safety to the next level

2009-07-30 Thread David Chang


Fabulous framework!

--- On Thu, 7/30/09, Juan Carlos Garcia M.  wrote:

> From: Juan Carlos Garcia M. 
> Subject: Re: Apache Wicket 1.4 takes type safety to the next level
> To: users@wicket.apache.org
> Date: Thursday, July 30, 2009, 4:57 PM
> 
> Congratulations to the Wicket Team, and everyone who
> contributed to make this
> happens.
> 
> Thanks for this great Framework.
> 
> 
> Carl-Eric Menzel-5 wrote:
> > 
> > On Thu, 30 Jul 2009 12:54:29 +0200
> > Martijn Dashorst 
> wrote:
> > 
> >> The Apache Wicket project is proud to announce the
> release of Apache
> >> Wicket 1.4.
> > 
> > Congratulations to the team and all contributors, and
> a big thank you!
> > 
> > Carl-Eric
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Apache-Wicket-1.4-takes-type-safety-to-the-next-level-tp24736219p24747196.html
> Sent from the Wicket - User mailing list archive at
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



How Wicket's big concepts/objects work together and in what order?

2009-08-05 Thread David Chang

Hello, I am learning Wicket now and feel a bit confused by the new concepts in 
Wicket regarding how they work together and in what order.

The big concepts I am talking about include:

Application
Session
Request
RequestCycle
RequestCycleProcessor
RequestTarget
SessionStore
Request
Response

Suppose I have a simple page with just one Wicket label. A user requests this 
page. I would like to know how the above objects/concepts get involved and in 
what order.

If it needs too much description, then forget it. If it does not take too much 
of your time or you want to refresh yourself by give me an explanation, I 
really appreciate it.

I want to be a good Wicket programmer.

Thank you!




  

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



Re: How Wicket's big concepts/objects work together and in what order?

2009-08-05 Thread David Chang

Jeremy, I bought and read that book already. I have a good understanding of the 
technology now, but still feel lack of precise understanding of them. 

Cheers!


--- On Wed, 8/5/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: How Wicket's big concepts/objects work together and in what  
> order?
> To: users@wicket.apache.org
> Date: Wednesday, August 5, 2009, 4:51 PM
> Welcome to Wicket!  The best
> thing you can do is buy Wicket in Action.
>  It has charts that show the interactions between these
> various
> components.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Wed, Aug 5, 2009 at 3:41 PM, David Chang
> wrote:
> >
> > Hello, I am learning Wicket now and feel a bit
> confused by the new concepts in Wicket regarding how they
> work together and in what order.
> >
> > The big concepts I am talking about include:
> >
> > Application
> > Session
> > Request
> > RequestCycle
> > RequestCycleProcessor
> > RequestTarget
> > SessionStore
> > Request
> > Response
> >
> > Suppose I have a simple page with just one Wicket
> label. A user requests this page. I would like to know how
> the above objects/concepts get involved and in what order.
> >
> > If it needs too much description, then forget it. If
> it does not take too much of your time or you want to
> refresh yourself by give me an explanation, I really
> appreciate it.
> >
> > I want to be a good Wicket programmer.
> >
> > Thank you!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: How Wicket's big concepts/objects work together and in what order?

2009-08-05 Thread David Chang

Igor, thanks for the tip. I read that wiki page "The Life-Cycle of a Wicket 
Application". The page has useful info but it is still lacking. It does not 
mention RequestCycleProcessor, RequestTarget, or Response objects. Can any 
Wicket expert update this page?


Have a better understanding now but hope to have more explanation.


--- On Wed, 8/5/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: How Wicket's big concepts/objects work together and in what  
> order?
> To: users@wicket.apache.org
> Date: Wednesday, August 5, 2009, 5:05 PM
> step 1) go to http://www.google.com
> step 2) in text box type "wicket lifecycle" without the
> quotes
> step 3) hit "i am feeling lucky button"
> 
> -igor
> 
> On Wed, Aug 5, 2009 at 1:56 PM, David Chang
> wrote:
> >
> > Jeremy, I bought and read that book already. I have a
> good understanding of the technology now, but still feel
> lack of precise understanding of them.
> >
> > Cheers!
> >
> >
> > --- On Wed, 8/5/09, Jeremy Thomerson 
> wrote:
> >
> >> From: Jeremy Thomerson 
> >> Subject: Re: How Wicket's big concepts/objects
> work together and in what  order?
> >> To: users@wicket.apache.org
> >> Date: Wednesday, August 5, 2009, 4:51 PM
> >> Welcome to Wicket!  The best
> >> thing you can do is buy Wicket in Action.
> >>  It has charts that show the interactions between
> these
> >> various
> >> components.
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Wed, Aug 5, 2009 at 3:41 PM, David Chang
> >> wrote:
> >> >
> >> > Hello, I am learning Wicket now and feel a
> bit
> >> confused by the new concepts in Wicket regarding
> how they
> >> work together and in what order.
> >> >
> >> > The big concepts I am talking about include:
> >> >
> >> > Application
> >> > Session
> >> > Request
> >> > RequestCycle
> >> > RequestCycleProcessor
> >> > RequestTarget
> >> > SessionStore
> >> > Request
> >> > Response
> >> >
> >> > Suppose I have a simple page with just one
> Wicket
> >> label. A user requests this page. I would like to
> know how
> >> the above objects/concepts get involved and in
> what order.
> >> >
> >> > If it needs too much description, then forget
> it. If
> >> it does not take too much of your time or you want
> to
> >> refresh yourself by give me an explanation, I
> really
> >> appreciate it.
> >> >
> >> > I want to be a good Wicket programmer.
> >> >
> >> > Thank you!
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: How Wicket's big concepts/objects work together and in what order?

2009-08-05 Thread David Chang


Jeremy, thanks for the good tip. It makes sense, though not the best way. The 
more I read about Wicket, the more I like it:-) Just hope to know every detail. 
Wicket is a great tool but learning curve is tall. 


--- On Wed, 8/5/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: How Wicket's big concepts/objects work together and in what  
> order?
> To: users@wicket.apache.org
> Date: Wednesday, August 5, 2009, 5:35 PM
> The best way for you to see how each
> of those things gets involved is
> to create the basic page that you mentioned - with a
> label.  Then set
> a debug point in your editor in the WicketFilter's doFilter
> method and
> step through.  Or, go the opposite way - set a couple
> debug points in
> Label (i.e. onComponentTag, onBeforeRender,
> onComponentTagBody, etc)
> and then when it breaks there, walk up the stacktrace and
> see what's
> calling what.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Wed, Aug 5, 2009 at 4:29 PM, David Chang
> wrote:
> >
> > Igor, thanks for the tip. I read that wiki page "The
> Life-Cycle of a Wicket Application". The page has useful
> info but it is still lacking. It does not mention
> RequestCycleProcessor, RequestTarget, or Response objects.
> Can any Wicket expert update this page?
> >
> >
> > Have a better understanding now but hope to have more
> explanation.
> >
> >
> > --- On Wed, 8/5/09, Igor Vaynberg 
> wrote:
> >
> >> From: Igor Vaynberg 
> >> Subject: Re: How Wicket's big concepts/objects
> work together and in what  order?
> >> To: users@wicket.apache.org
> >> Date: Wednesday, August 5, 2009, 5:05 PM
> >> step 1) go to http://www.google.com
> >> step 2) in text box type "wicket lifecycle"
> without the
> >> quotes
> >> step 3) hit "i am feeling lucky button"
> >>
> >> -igor
> >>
> >> On Wed, Aug 5, 2009 at 1:56 PM, David Chang
> >> wrote:
> >> >
> >> > Jeremy, I bought and read that book already.
> I have a
> >> good understanding of the technology now, but
> still feel
> >> lack of precise understanding of them.
> >> >
> >> > Cheers!
> >> >
> >> >
> >> > --- On Wed, 8/5/09, Jeremy Thomerson 
> >> wrote:
> >> >
> >> >> From: Jeremy Thomerson 
> >> >> Subject: Re: How Wicket's big
> concepts/objects
> >> work together and in what  order?
> >> >> To: users@wicket.apache.org
> >> >> Date: Wednesday, August 5, 2009, 4:51 PM
> >> >> Welcome to Wicket!  The best
> >> >> thing you can do is buy Wicket in
> Action.
> >> >>  It has charts that show the
> interactions between
> >> these
> >> >> various
> >> >> components.
> >> >>
> >> >> --
> >> >> Jeremy Thomerson
> >> >> http://www.wickettraining.com
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Aug 5, 2009 at 3:41 PM, David
> Chang
> >> >> wrote:
> >> >> >
> >> >> > Hello, I am learning Wicket now and
> feel a
> >> bit
> >> >> confused by the new concepts in Wicket
> regarding
> >> how they
> >> >> work together and in what order.
> >> >> >
> >> >> > The big concepts I am talking about
> include:
> >> >> >
> >> >> > Application
> >> >> > Session
> >> >> > Request
> >> >> > RequestCycle
> >> >> > RequestCycleProcessor
> >> >> > RequestTarget
> >> >> > SessionStore
> >> >> > Request
> >> >> > Response
> >> >> >
> >> >> > Suppose I have a simple page with
> just one
> >> Wicket
> >> >> label. A user requests this page. I would
> like to
> >> know how
> >> >> the above objects/concepts get involved
> and in
> >> what order.
> >> >> >
> >> >> > If it needs too much description,
> then forget
> >> it. If
> >> >> it does not take too much of your time or
> you want
> >> to
> >> >> refresh yourself by give me an
> explanation, I
> >> really
> >> >> appreciate it.
> >&

Re: How Wicket's big concepts/objects work together and in what order?

2009-08-05 Thread David Chang

will do. thanks!

--- On Wed, 8/5/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: How Wicket's big concepts/objects work together and in what  
> order?
> To: users@wicket.apache.org
> Date: Wednesday, August 5, 2009, 5:37 PM
> and when you do figure it out dont
> forget to take the time to update
> that lacking wiki page.
> 
> -igor
> 
> On Wed, Aug 5, 2009 at 2:35 PM, Jeremy
> Thomerson
> wrote:
> > The best way for you to see how each of those things
> gets involved is
> > to create the basic page that you mentioned - with a
> label.  Then set
> > a debug point in your editor in the WicketFilter's
> doFilter method and
> > step through.  Or, go the opposite way - set a couple
> debug points in
> > Label (i.e. onComponentTag, onBeforeRender,
> onComponentTagBody, etc)
> > and then when it breaks there, walk up the stacktrace
> and see what's
> > calling what.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> >
> > On Wed, Aug 5, 2009 at 4:29 PM, David Chang
> wrote:
> >>
> >> Igor, thanks for the tip. I read that wiki page
> "The Life-Cycle of a Wicket Application". The page has
> useful info but it is still lacking. It does not mention
> RequestCycleProcessor, RequestTarget, or Response objects.
> Can any Wicket expert update this page?
> >>
> >>
> >> Have a better understanding now but hope to have
> more explanation.
> >>
> >>
> >> --- On Wed, 8/5/09, Igor Vaynberg 
> wrote:
> >>
> >>> From: Igor Vaynberg 
> >>> Subject: Re: How Wicket's big concepts/objects
> work together and in what  order?
> >>> To: users@wicket.apache.org
> >>> Date: Wednesday, August 5, 2009, 5:05 PM
> >>> step 1) go to http://www.google.com
> >>> step 2) in text box type "wicket lifecycle"
> without the
> >>> quotes
> >>> step 3) hit "i am feeling lucky button"
> >>>
> >>> -igor
> >>>
> >>> On Wed, Aug 5, 2009 at 1:56 PM, David
> Chang
> >>> wrote:
> >>> >
> >>> > Jeremy, I bought and read that book
> already. I have a
> >>> good understanding of the technology now, but
> still feel
> >>> lack of precise understanding of them.
> >>> >
> >>> > Cheers!
> >>> >
> >>> >
> >>> > --- On Wed, 8/5/09, Jeremy Thomerson
> 
> >>> wrote:
> >>> >
> >>> >> From: Jeremy Thomerson 
> >>> >> Subject: Re: How Wicket's big
> concepts/objects
> >>> work together and in what  order?
> >>> >> To: users@wicket.apache.org
> >>> >> Date: Wednesday, August 5, 2009, 4:51
> PM
> >>> >> Welcome to Wicket!  The best
> >>> >> thing you can do is buy Wicket in
> Action.
> >>> >>  It has charts that show the
> interactions between
> >>> these
> >>> >> various
> >>> >> components.
> >>> >>
> >>> >> --
> >>> >> Jeremy Thomerson
> >>> >> http://www.wickettraining.com
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >> On Wed, Aug 5, 2009 at 3:41 PM, David
> Chang
> >>> >> wrote:
> >>> >> >
> >>> >> > Hello, I am learning Wicket now
> and feel a
> >>> bit
> >>> >> confused by the new concepts in
> Wicket regarding
> >>> how they
> >>> >> work together and in what order.
> >>> >> >
> >>> >> > The big concepts I am talking
> about include:
> >>> >> >
> >>> >> > Application
> >>> >> > Session
> >>> >> > Request
> >>> >> > RequestCycle
> >>> >> > RequestCycleProcessor
> >>> >> > RequestTarget
> >>> >> > SessionStore
> >>> >> > Request
> >>> >> > Response
> >>> >> >
> >>> >> > Suppose I have a simple page
> with just one
> >>> Wicket
> >>> >> label. A user requests this page. I
> would like to
> >>> know how
> >>> 

Where can I find this Wicket application?

2009-09-27 Thread David Chang

Hello,

I am reading Wicket-related stuff on the net and came across this Wicket 
discussion thread:

http://osdir.com/ml/users-wicket.apache.org/2009-05/msg01196.html

In the response, "my wicket-advanced example application" is mentioned. 

I would like to know where I can find this application?

Thanks!


  

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



avoid setters / getters by using ?

2009-09-27 Thread David Chang
Hello,

I have Wicket+Spring application. It has a service object which has a few DAO 
members. I can use Spring's autowiring to avoid mentioning the DAO dependencies 
for the service bean. However, in the Java program for the service bean, I 
still have to add setters and getters for each DAO member, which I don't like. 
How can I avoid these setters and getters? Using AOP? Any examples?

I understand that this question is not strictly a Wicket, but I definitely want 
to ask my Wicket friends here.

Thank you!


  

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



Re: avoid setters / getters by using ?

2009-09-27 Thread David Chang

Martin,

Thanks for your input. My intention is how to get rid of these boring 
setters/getters from service beans that are usually generated only for the 
purpose of spring-injection.

Cheers!


--- On Sun, 9/27/09, Martin Makundi  wrote:

> From: Martin Makundi 
> Subject: Re: avoid setters / getters by using ?
> To: users@wicket.apache.org
> Date: Sunday, September 27, 2009, 3:55 PM
> At least in wicket you can access the
> fields themselves using propertymodels.
> 
> **
> Martin
> 
> 2009/9/27 David Chang :
> > Hello,
> >
> > I have Wicket+Spring application. It has a service
> object which has a few DAO members. I can use Spring's
> autowiring to avoid mentioning the DAO dependencies for the
> service bean. However, in the Java program for the service
> bean, I still have to add setters and getters for each DAO
> member, which I don't like. How can I avoid these setters
> and getters? Using AOP? Any examples?
> >
> > I understand that this question is not strictly a
> Wicket, but I definitely want to ask my Wicket friends
> here.
> >
> > Thank you!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-01 Thread David Chang
How to set it up in a Wicket application? I would like to set it up in the 
application level.

Thanks!


  

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



Re: Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-02 Thread David Chang
For this to work, I have to overwrite this method either for each form or write 
a custom class extending FormComponent. Correct?

If yes, then it is not what I hope to get. I dont want to do it for each form 
or a custom class.

I came from Spring MVC camp. This task is very easy in Spring.

Cheers.

--- On Fri, 10/2/09, Marat Radchenko  wrote:

> From: Marat Radchenko 
> Subject: Re: Can Wicket automatically remove beginning and trailing spaces in 
>  a text field?
> To: users@wicket.apache.org
> Date: Friday, October 2, 2009, 4:00 AM
> It already does that.
> FormComponent:
> 
> protected T convertValue(String[] value) throws
> ConversionException
> {
> return (T)(value != null && value.length > 0
> && value[0] != null ?
> trim(value[0]) : null);
> }
> 
> 2009/10/2 David Chang 
> 
> > How to set it up in a Wicket application? I would like
> to set it up in the
> > application level.
> >
> > Thanks!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 


  

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



Re: Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-02 Thread David Chang

I feel the recommended solutions are complicated. 

Thanks.


--- On Fri, 10/2/09, Ernesto Reinaldo Barreiro  wrote:

> From: Ernesto Reinaldo Barreiro 
> Subject: Re: Can Wicket automatically remove beginning and trailing spaces in 
>  a text field?
> To: users@wicket.apache.org
> Date: Friday, October 2, 2009, 5:39 AM
> Why use aspects for 2 when you have
> IComponentInstantiationListener? All you
> have to do is set you components model to use the
> TrimmingModel pasted
> before on the listener. I didn't try it myself but I guess
> that should work.
> Best,
> 
> Ernesto
> 
> On Fri, Oct 2, 2009 at 10:57 AM, Bernhard Michal
> wrote:
> 
> > Afaik there is no way to set this behavior by some
> flag. But
> >
> > 1) You can extend TextField to wrap it's model with
> model which on
> > getObject() trim (ie. remove begging and trailing
> spaces) returning
> > string if Model's type is Sting (in other cases it
> doesn't make
> > sense)... when value is setted into model trimming is
> done by wicket
> > (see FormComponent#shouldTrimInput) automatically (in
> older version you
> > have to do this manually by overriding
> FormComponent#convertInput()
> > method)
> >
> > 2) you can do aspect (AspectJ?) to do the same as 1) -
> with aspect there
> > is no need to make new class of TextField's type so
> there is no need to
> > change the code base...
> >
> > 3) you can override implementation of coverters
> >
> > override Application#newConverterLocator() to
> >
> > protected IConverterLocator newConverterLocator() {
> >        ConverterLocator locator =
> new ConverterLocator();
> >        locator.set(String.class,
> new IConverter() {
> >
> >               
>            public Object
> convertToObject(String value,
> > Locale locale) {
> >               
>                
>         return convertToString(value,
> > locale);
> >               
>             }
> >
> >               
>             public String
> convertToString(Object value,
> > Locale locale) {
> >               
>                
>         return value.toString().trim();
> > // see trim() which remove trailing and beginning
> spaces
> >               
>             }
> >         
>    });
> >
> >        return locator;
> > }
> >
> > I didn't test it but you've got the idea... But this
> solution is really
> > bad, because if you want to turn off this behaviour
> (trimming) in some
> > cases
> > you can't do it without overriding for example
> Component#getConverter()
> > to convert it in default way and it's a mess.
> >
> > I recommend you to trim it by hand on Model level
> (make some wrapper
> > model to do it so) or on tier (layer) where you obtain
> data (data acces
> > layer? service level?). It depends on if spaces have
> some business
> > meaning. If yes do it on model level otherwise on that
> layer.
> >
> > Best wishes
> >
> > MB
> >
> > -Original Message-
> > From: David Chang [mailto:david_q_zh...@yahoo.com]
> > Sent: Friday, October 02, 2009 5:25 AM
> > To: users@wicket.apache.org
> > Subject: Can Wicket automatically remove beginning and
> trailing spaces
> > in a text field?
> >
> > How to set it up in a Wicket application? I would like
> to set it up in
> > the application level.
> >
> > Thanks!
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 




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



Re: Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-02 Thread David Chang
No fuss, just confusion. Thanks for the clarification, which helps not only to 
me.

Cheers!

--- On Fri, 10/2/09, Martijn Dashorst  wrote:

> From: Martijn Dashorst 
> Subject: Re: Can Wicket automatically remove beginning and trailing spaces in 
>  a text field?
> To: users@wicket.apache.org
> Date: Friday, October 2, 2009, 9:19 AM
> Not sure what the fuzz is all about:
> wicket trims the whitespace
> before and after the input by default (like Marat already
> mentioned in
> this thread).
> 
> Marat's code example is taken *directly* from Wicket's
> FormComponent.
> You don't have to do anything.
> 
> Martijn
> 
> On Fri, Oct 2, 2009 at 3:06 PM, David Chang 
> wrote:
> > For this to work, I have to overwrite this method
> either for each form or write a custom class extending
> FormComponent. Correct?
> >
> > If yes, then it is not what I hope to get. I dont want
> to do it for each form or a custom class.
> >
> > I came from Spring MVC camp. This task is very easy in
> Spring.
> >
> > Cheers.
> >
> > --- On Fri, 10/2/09, Marat Radchenko 
> wrote:
> >
> >> From: Marat Radchenko 
> >> Subject: Re: Can Wicket automatically remove
> beginning and trailing spaces in  a text field?
> >> To: users@wicket.apache.org
> >> Date: Friday, October 2, 2009, 4:00 AM
> >> It already does that.
> >> FormComponent:
> >>
> >> protected T convertValue(String[] value) throws
> >> ConversionException
> >> {
> >> return (T)(value != null && value.length
> > 0
> >> && value[0] != null ?
> >> trim(value[0]) : null);
> >> }
> >>
> >> 2009/10/2 David Chang 
> >>
> >> > How to set it up in a Wicket application? I
> would like
> >> to set it up in the
> >> > application level.
> >> >
> >> > Thanks!
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web
> applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



How to store/load strings shared by many (but not all) pages?

2009-10-03 Thread David Chang
I am reading <> and have this i18n/i10n-related question :

Suppose that I have a string that is used on multiple (but NOT ALL) pages. One 
solution is that I can put this string in the property files for each page on 
which the string is used. 

Any other better solutions?

Thanks for your input!


  

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



Start a panel, border, or page with an XML declaration?

2009-10-03 Thread David Chang
Hello, I am reading <>. The Tip on page 291 says "it is good 
practice to start your panels and  borders (possibly your pages) with an XML 
declaration to force Wicket to work with them using the proper encoding". 

Does this mean that starting a panel, border, or page with something such as 
the following:
--
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">


...

--

is better than with:
--


...

--

If yes, why do all the examples of the WIA book start simply with 
...?

Thanks for your help!


  

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



Re: How to store/load strings shared by many (but not all) pages?

2009-10-04 Thread David Chang
Igor, thanks so much for the tip! 

Cheers!

--- On Sun, 10/4/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: How to store/load strings shared by many (but not all) pages?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 12:52 AM
> YourApplicationClass.properties
> sitting next to you
> YourApplicationClass.java/class will do the trick. all
> components/pages have access to properties stored there.
> 
> -igor
> 
> On Sat, Oct 3, 2009 at 8:32 PM, David Chang 
> wrote:
> > I am reading <> and have
> this i18n/i10n-related question :
> >
> > Suppose that I have a string that is used on multiple
> (but NOT ALL) pages. One solution is that I can put this
> string in the property files for each page on which the
> string is used.
> >
> > Any other better solutions?
> >
> > Thanks for your input!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
>%2


  

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



Move shared wicket components to a base page?

2009-10-04 Thread David Chang
I have two wicket pages, both of which extend a base page. In the first 
version, each page used a wicket componet as follows:



In the second version, I moved the above markup to the base page. However, I 
always got this error from wicket:

WicketMessage: The component(s) below failed to render. A common problem is 
that you have added a component in code but forgot to reference it in the 
markup (thus the component will never be rendered).

I checked the base page's code and markup many times. It is there. 

Can someone tell me whether it is doable in wicket and what went wrong?

Thanks for your input! 


  

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



How to list files by name in Eclipe's Package Explorer?

2009-10-04 Thread David Chang
Hello, 

I am using Eclipse for devleopment. The files in its Package Explorer are 
listed by extensions: java files first. This is good for non-wicket 
development. Now each page's java and markup files are in the same directory 
and I hope to see them naturally stay together, which means making Package 
Explorer to list files by name.

How to do this?

Thank you!


  

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



Re: Move shared wicket components to a base page?

2009-10-04 Thread David Chang
Hello Igor,

I have quickstart installed and looked at it everywhere. It has two application 
clsses only: WicketApplication and HomePage. I am unable to find anything 
related to my question.

Did I miss something?

Thanks!


--- On Sun, 10/4/09, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: Move shared wicket components to a base page?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 12:15 PM
> quickstart would help, without it we
> would have to slaughter a chicken
> and wave it around and take wild guesses.
> 
> -igor
> 
> On Sun, Oct 4, 2009 at 8:44 AM, David Chang 
> wrote:
> > I have two wicket pages, both of which extend a base
> page. In the first version, each page used a wicket componet
> as follows:
> >
> > 
> >
> > In the second version, I moved the above markup to the
> base page. However, I always got this error from wicket:
> >
> > WicketMessage: The component(s) below failed to
> render. A common problem is that you have added a component
> in code but forgot to reference it in the markup (thus the
> component will never be rendered).
> >
> > I checked the base page's code and markup many times.
> It is there.
> >
> > Can someone tell me whether it is doable in wicket and
> what went wrong?
> >
> > Thanks for your input!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Start a panel, border, or page with an XML declaration?

2009-10-04 Thread David Chang
Phil,

Thanks very much for your reply. By XML declaration, you mean something like:



Correct? I found this piece and it may be interesting to all:

http://learningtheworld.eu/2008/farewell-xml-declaration/

>>I prefer to include it in my source, and then have
Wicket strip it out at the last moment - at least when I'm forced to
be IE6 compatible

I am interested in this solution. Could you please share with us the detailed 
how-to?

Regards.





--- On Sun, 10/4/09, Phil Housley  wrote:

> From: Phil Housley 
> Subject: Re: Start a panel, border, or page with an XML declaration?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 6:59 AM
> 2009/10/4 David Chang :
> > Hello, I am reading <>.
> The Tip on page 291 says "it is good practice to start your
> panels and  borders (possibly your pages) with an XML
> declaration to force Wicket to work with them using the
> proper encoding".
> >
> > Does this mean that starting a panel, border, or page
> with something such as the following:
> > --
> >  Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > http://www.w3.org/1999/xhtml"; lang="en"
> xml:lang="en">
> > 
> > 
> > ...
> > 
> > --
> 
> Actually, the xml declaration is the one starting  which
> includes your encoding as soon as possible in the file,
> before any
> actual content.  Adding the doctype is also good
> practice, as it makes
> sure wicket/the browser/anything else that reads the file
> understands
> it exactly as you wrote it, but is a separate issue.
> 
> >
> > is better than with:
> > --
> > 
> > 
> > ...
> > 
> > --
> 
> > If yes, why do all the examples of the WIA book start
> simply with ...?
> 
> To save space I assume.
> 
> > Thanks for your help!
> >
> 
> One final thing to note is that IE6 will screw up any page
> with an
>  source, and then have
> Wicket strip it out at the last moment - at least when I'm
> forced to
> be IE6 compatible.
> 
> -- 
> Phil Housley
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: SV: Move shared wicket components to a base page?

2009-10-05 Thread David Chang
Tor, you are right. I found a coding error in my program. Yes, this whole thing 
is doable. Wicket is great!

Thanks!

--- On Mon, 10/5/09, Wilhelmsen Tor Iver  wrote:

> From: Wilhelmsen Tor Iver 
> Subject: SV: Move shared wicket components to a base page?
> To: "users@wicket.apache.org" 
> Date: Monday, October 5, 2009, 6:24 AM
> > WicketMessage: The component(s)
> below failed to render. A common
> > problem is that you have added a component in code but
> forgot to
> > reference it in the markup (thus the component will
> never be rendered).
> 
> This indicates to me you are not using  /> in the parent's markup and/or not using
> ... in the child
> page's markup.
> 
> - Tor Iver
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Start a panel, border, or page with an XML declaration?

2009-10-05 Thread David Chang
Thanks for sharing your thought and trick with me! The wicket user community is 
so helpful and friendly.

Cheers!

--- On Mon, 10/5/09, Phil Housley  wrote:

> From: Phil Housley 
> Subject: Re: Start a panel, border, or page with an XML declaration?
> To: users@wicket.apache.org
> Date: Monday, October 5, 2009, 4:27 AM
> 2009/10/4 David Chang :
> > Phil,
> >
> > Thanks very much for your reply. By XML declaration,
> you mean something like:
> >
> > 
> >
> > Correct? I found this piece and it may be interesting
> to all:
> 
> That's right.
> 
> > http://learningtheworld.eu/2008/farewell-xml-declaration/
> 
> Well, it might make sense to skip the xml declaration when
> the output
> is being pushed straight the user agent (as with JSP, PHP
> etc), but
> with Wicket you require a full parsing of the xhtml data on
> the server
> side, so I would go with the best practice approach and
> keep the
> declaration.  Wicket is much more able to transform
> xhtml than other
> frameworks, so the arguments aren't really the same.
> 
> >>>I prefer to include it in my source, and then
> have
> > Wicket strip it out at the last moment - at least when
> I'm forced to
> > be IE6 compatible
> >
> > I am interested in this solution. Could you please
> share with us the detailed how-to?
> 
> There's no particular secret, just call
> this.getMarkupSettings().setStripXmlDeclarationFromOutput(true);
> in
> your Application.init() method.
> 
> > Regards.
> >
> > --- On Sun, 10/4/09, Phil Housley 
> wrote:
> >
> >> From: Phil Housley 
> >> Subject: Re: Start a panel, border, or page with
> an XML declaration?
> >> To: users@wicket.apache.org
> >> Date: Sunday, October 4, 2009, 6:59 AM
> >> 2009/10/4 David Chang :
> >> > Hello, I am reading < Action>>.
> >> The Tip on page 291 says "it is good practice to
> start your
> >> panels and  borders (possibly your pages) with an
> XML
> >> declaration to force Wicket to work with them
> using the
> >> proper encoding".
> >> >
> >> > Does this mean that starting a panel, border,
> or page
> >> with something such as the following:
> >> > --
> >> >  1.0
> >> Transitional//EN"
> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >> > http://www.w3.org/1999/xhtml"; lang="en"
> >> xml:lang="en">
> >> > 
> >> >  content="text/html;
> >> charset=utf-8" />
> >> > ...
> >> > 
> >> > --
> >>
> >> Actually, the xml declaration is the one starting
>  >> which
> >> includes your encoding as soon as possible in the
> file,
> >> before any
> >> actual content.  Adding the doctype is also good
> >> practice, as it makes
> >> sure wicket/the browser/anything else that reads
> the file
> >> understands
> >> it exactly as you wrote it, but is a separate
> issue.
> >>
> >> >
> >> > is better than with:
> >> > --
> >> > 
> >> > 
> >> > ...
> >> > 
> >> > --
> >>
> >> > If yes, why do all the examples of the WIA
> book start
> >> simply with
> ...?
> >>
> >> To save space I assume.
> >>
> >> > Thanks for your help!
> >> >
> >>
> >> One final thing to note is that IE6 will screw up
> any page
> >> with an
> >>  my
> >> source, and then have
> >> Wicket strip it out at the last moment - at least
> when I'm
> >> forced to
> >> be IE6 compatible.
> 
> -- 
> Phil Housley
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Does anybody know the trick for this task? Thanks!


--- On Sun, 10/4/09, David Chang  wrote:

> From: David Chang 
> Subject: How to list files by name in Eclipe's Package Explorer?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 4:44 PM
> Hello, 
> 
> I am using Eclipse for devleopment. The files in its
> Package Explorer are listed by extensions: java files first.
> This is good for non-wicket development. Now each page's
> java and markup files are in the same directory and I hope
> to see them naturally stay together, which means making
> Package Explorer to list files by name.
> 
> How to do this?
> 
> Thank you!
> 
> 
>       
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
>%




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



Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Pedro, thanks for the tip! 

Cheers!


--- On Mon, 10/5/09, Pedro Sena  wrote:

> From: Pedro Sena 
> Subject: Re: How to list files by name in Eclipe's Package Explorer?
> To: "David Chang" 
> Date: Monday, October 5, 2009, 10:52 AM
> Hmmm.
> 
> I understood what you are looking for. I believe that
> eclipse does not provide what you want.
> 
> I always use Ctrl+Shift+R, that opens a window where I can
> type part of the file name and show all the matching files.
> 
> 
> It is not exactly what you want, but I believe that is the
> best that can be done. Having this shortcut, personally I
> don't see reasons to use Package Explorer to search for
> files(I believe that is what you want)
> 
> 
> Regards
> 
> On Mon, Oct 5, 2009 at 11:45 AM,
> David Chang 
> wrote:
> 
> confused by your post.
> 
> 
> 
> 
> 
> --- On Mon, 10/5/09, Pedro Sena 
> wrote:
> 
> 
> 
> > From: Pedro Sena 
> 
> > Subject: Re: How to list files by name in Eclipe's
> Package Explorer?
> 
> > To: users@wicket.apache.org
> 
> > Date: Monday, October 5, 2009, 10:33 AM
> 
> > Package explorer?
> 
> >
> 
> > At least here, Ctrl+Shift+R using wildcard (*) have
> 
> > replaced the Package
> 
> > Explorer Tab =)
> 
> >
> 
> > Regards,
> 
> >
> 
> > On Mon, Oct 5, 2009 at 11:26 AM, T Ames 
> 
> > wrote:
> 
> >
> 
> > > Your question should be "Is it possible
> to?"
> 
> > >
> 
> > > I have not found a way.  I have gotten used to
> 
> > it.
> 
> > >
> 
> > >
> 
> > >
> 
> > > On Mon, Oct 5, 2009 at 8:48 AM, David Chang
> 
> 
> > > wrote:
> 
> > >
> 
> > > > Does anybody know the trick for this task?
> 
> > Thanks!
> 
> > > >
> 
> > > >
> 
> > > > --- On Sun, 10/4/09, David Chang 
> 
> > wrote:
> 
> > > >
> 
> > > > > From: David Chang 
> 
> > > > > Subject: How to list files by name in
> 
> > Eclipe's Package Explorer?
> 
> > > > > To: users@wicket.apache.org
> 
> > > > > Date: Sunday, October 4, 2009, 4:44 PM
> 
> > > > > Hello,
> 
> > > > >
> 
> > > > > I am using Eclipse for devleopment.
> The
> 
> > files in its
> 
> > > > > Package Explorer are listed by
> extensions:
> 
> > java files first.
> 
> > > > > This is good for non-wicket
> development. Now
> 
> > each page's
> 
> > > > > java and markup files are in the same
> 
> > directory and I hope
> 
> > > > > to see them naturally stay together,
> which
> 
> > means making
> 
> > > > > Package Explorer to list files by
> name.
> 
> > > > >
> 
> > > > > How to do this?
> 
> > > > >
> 
> > > > > Thank you!
> 
> > > > >
> 
> > > > >
> 
> > > > >
> 
> > > > >
> 
> > > > >
> 
> >
> -
> 
> > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> 
> > > > > For additional commands, e-mail: users-h...@wicket.apache.org
> 
> > > > >
> 
> > > > >%
> 
> > > >
> 
> > > >
> 
> > > >
> 
> > > >
> 
> > > >
> 
> >
> -
> 
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> 
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> 
> > > >
> 
> > > >
> 
> > >
> 
> >
> 
> >
> 
> >
> 
> > --
> 
> > /**
> 
> > * Pedro Sena
> 
> > * Systems Architect
> 
> > * Sun Certified Java Programmer
> 
> > * Sun Certified Web Component Developer
> 
> > */
> 
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer 
> * Sun Certified Web Component Developer
> */
> 
> 




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



Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Thanks for your input! It seems to does the trick. The only thing I don't like 
is that it shows all the levels of directories, which is unnecessary and makes 
the Navigator view quite wide. 

--- On Mon, 10/5/09, Ramakrishnan Srinivasan  wrote:

> From: Ramakrishnan Srinivasan 
> Subject: Re: How to list files by name in Eclipe's Package Explorer?
> To: users@wicket.apache.org
> Date: Monday, October 5, 2009, 12:06 PM
> Would it work for you to just use the
> Navigator view instead of Package
> Explorer?
> 
> 
> On Mon, Oct 5, 2009 at 11:01 AM, David Chang wrote:
> 
> > Pedro, thanks for the tip!
> >
> > Cheers!
> >
> >
> > --- On Mon, 10/5/09, Pedro Sena 
> wrote:
> >
> > > From: Pedro Sena 
> > > Subject: Re: How to list files by name in
> Eclipe's Package Explorer?
> > > To: "David Chang" 
> > > Date: Monday, October 5, 2009, 10:52 AM
> > > Hmmm.
> > >
> > > I understood what you are looking for. I believe
> that
> > > eclipse does not provide what you want.
> > >
> > > I always use Ctrl+Shift+R, that opens a window
> where I can
> > > type part of the file name and show all the
> matching files.
> > >
> > >
> > > It is not exactly what you want, but I believe
> that is the
> > > best that can be done. Having this shortcut,
> personally I
> > > don't see reasons to use Package Explorer to
> search for
> > > files(I believe that is what you want)
> > >
> > >
> > > Regards
> > >
> > > On Mon, Oct 5, 2009 at 11:45 AM,
> > > David Chang 
> > > wrote:
> > >
> > > confused by your post.
> > >
> > >
> > >
> > >
> > >
> > > --- On Mon, 10/5/09, Pedro Sena 
> > > wrote:
> > >
> > >
> > >
> > > > From: Pedro Sena 
> > >
> > > > Subject: Re: How to list files by name in
> Eclipe's
> > > Package Explorer?
> > >
> > > > To: users@wicket.apache.org
> > >
> > > > Date: Monday, October 5, 2009, 10:33 AM
> > >
> > > > Package explorer?
> > >
> > > >
> > >
> > > > At least here, Ctrl+Shift+R using wildcard
> (*) have
> > >
> > > > replaced the Package
> > >
> > > > Explorer Tab =)
> > >
> > > >
> > >
> > > > Regards,
> > >
> > > >
> > >
> > > > On Mon, Oct 5, 2009 at 11:26 AM, T Ames
> 
> > >
> > > > wrote:
> > >
> > > >
> > >
> > > > > Your question should be "Is it
> possible
> > > to?"
> > >
> > > > >
> > >
> > > > > I have not found a way.  I have
> gotten used to
> > >
> > > > it.
> > >
> > > > >
> > >
> > > > >
> > >
> > > > >
> > >
> > > > > On Mon, Oct 5, 2009 at 8:48 AM, David
> Chang
> > > 
> > >
> > > > > wrote:
> > >
> > > > >
> > >
> > > > > > Does anybody know the trick for
> this task?
> > >
> > > > Thanks!
> > >
> > > > > >
> > >
> > > > > >
> > >
> > > > > > --- On Sun, 10/4/09, David Chang
> 
> > >
> > > > wrote:
> > >
> > > > > >
> > >
> > > > > > > From: David Chang 
> > >
> > > > > > > Subject: How to list files by
> name in
> > >
> > > > Eclipe's Package Explorer?
> > >
> > > > > > > To: users@wicket.apache.org
> > >
> > > > > > > Date: Sunday, October 4,
> 2009, 4:44 PM
> > >
> > > > > > > Hello,
> > >
> > > > > > >
> > >
> > > > > > > I am using Eclipse for
> devleopment.
> > > The
> > >
> > > > files in its
> > >
> > > > > > > Package Explorer are listed
> by
> > > extensions:
> > >
> > > > java files first.
> > >
> > > > > > > This is good for non-wicket
> > > development. Now
> > >
> > > > each page&

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Pedro, thanks for your effort to get it completely resolved! Cheers!


--- On Mon, 10/5/09, Pedro Santos  wrote:

> From: Pedro Santos 
> Subject: Re: How to list files by name in Eclipe's Package Explorer?
> To: users@wicket.apache.org
> Date: Monday, October 5, 2009, 12:50 PM
> I hope that work: https://bugs.eclipse.org/bugs/show_bug.cgi?id=291387
> 
> On Mon, Oct 5, 2009 at 1:27 PM, David Chang 
> wrote:
> 
> > Thanks for your input! It seems to does the trick. The
> only thing I don't
> > like is that it shows all the levels of directories,
> which is unnecessary
> > and makes the Navigator view quite wide.
> >
> > --- On Mon, 10/5/09, Ramakrishnan Srinivasan 
> wrote:
> >
> > > From: Ramakrishnan Srinivasan 
> > > Subject: Re: How to list files by name in
> Eclipe's Package Explorer?
> > > To: users@wicket.apache.org
> > > Date: Monday, October 5, 2009, 12:06 PM
> > > Would it work for you to just use the
> > > Navigator view instead of Package
> > > Explorer?
> > >
> > >
> > > On Mon, Oct 5, 2009 at 11:01 AM, David Chang
>  > >wrote:
> > >
> > > > Pedro, thanks for the tip!
> > > >
> > > > Cheers!
> > > >
> > > >
> > > > --- On Mon, 10/5/09, Pedro Sena 
> > > wrote:
> > > >
> > > > > From: Pedro Sena 
> > > > > Subject: Re: How to list files by name
> in
> > > Eclipe's Package Explorer?
> > > > > To: "David Chang" 
> > > > > Date: Monday, October 5, 2009, 10:52
> AM
> > > > > Hmmm.
> > > > >
> > > > > I understood what you are looking for.
> I believe
> > > that
> > > > > eclipse does not provide what you
> want.
> > > > >
> > > > > I always use Ctrl+Shift+R, that opens a
> window
> > > where I can
> > > > > type part of the file name and show all
> the
> > > matching files.
> > > > >
> > > > >
> > > > > It is not exactly what you want, but I
> believe
> > > that is the
> > > > > best that can be done. Having this
> shortcut,
> > > personally I
> > > > > don't see reasons to use Package
> Explorer to
> > > search for
> > > > > files(I believe that is what you want)
> > > > >
> > > > >
> > > > > Regards
> > > > >
> > > > > On Mon, Oct 5, 2009 at 11:45 AM,
> > > > > David Chang 
> > > > > wrote:
> > > > >
> > > > > confused by your post.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- On Mon, 10/5/09, Pedro Sena 
> > > > > wrote:
> > > > >
> > > > >
> > > > >
> > > > > > From: Pedro Sena 
> > > > >
> > > > > > Subject: Re: How to list files by
> name in
> > > Eclipe's
> > > > > Package Explorer?
> > > > >
> > > > > > To: users@wicket.apache.org
> > > > >
> > > > > > Date: Monday, October 5, 2009,
> 10:33 AM
> > > > >
> > > > > > Package explorer?
> > > > >
> > > > > >
> > > > >
> > > > > > At least here, Ctrl+Shift+R using
> wildcard
> > > (*) have
> > > > >
> > > > > > replaced the Package
> > > > >
> > > > > > Explorer Tab =)
> > > > >
> > > > > >
> > > > >
> > > > > > Regards,
> > > > >
> > > > > >
> > > > >
> > > > > > On Mon, Oct 5, 2009 at 11:26 AM, T
> Ames
> > > 
> > > > >
> > > > > > wrote:
> > > > >
> > > > > >
> > > > >
> > > > > > > Your question should be "Is
> it
> > > possible
> > > > > to?"
> > > > >
> > > > > > >
> > > > >
> > > > > > > I have not found a way. 
> I have
> > > gotten used to
> > > > >
> > > > > > it.
> > > > >

links on the page after invalidating the session

2009-11-07 Thread David Chang
I am reading the book: Wicket in Action.

The first sentence of the Note on page 274 reads:
-
Always set a bookmarkable response page after you invalidate the session.
-

My understanding is that if this page has any Wicket-generated links, it MUST 
be bookmarkable links too. 

Correct?

Thanks!





  

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



A question about the book WIA

2009-11-07 Thread David Chang
I am reading the book: Wicket in Action.

The first sentence of second paragraph of page 273 reads:
-
In the UserPanel, we created a model that extends LoadableDetachableModel for 
representing the current user (if any).
-

In this chapter (Chapter 11 Securiing your application), I am unable to see any 
code for the above-mentioned model creation. I cannot understand it.

Could someone out there elaborate on this?

Thank you for your help!



  

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



Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-04 Thread David Chang
Hello, I am learning Wicket by reading <>. I am using Wicket 
1.4.5 and Java 6. 

On page 244, the sample code is as follows:

private int counter = 0;
public MyPage() {
  super(new CompoundPropertyModel(this));
  final Label counterLabel = new Label("counter");
  add(counterLabel);
  counterLabel.setOutputMarkupId(true);
  add(new AjaxLink("counterLabelLink")
@Override
public void onClick(AjaxRequestTarget target) {
counter++;
target.addComponent(counterLabel);
}
});
}

The line has super(new CompoundPropertyModel(this)); gives a compiler error. I 
replaced it with the following:

super();
setDefaultModel(new CompoundPropertyModel(this));

and it works. 

My question is: 

1. Am I doing the right thing?
2. Any better or more elegant way?
3. How much of WIA remains true as far as Wicket 1.4.5 concerned?

Thanks!






  

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



Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-17 Thread David Chang
Martijn,

It is so nice of you to reply to my questions. One question I have about your 
book:

The bottom of Page xxi says: .. from Terracotta for giving Wicket a vaiable 
scaling strategy.

What do you exactly mean by that? Do you mean Terracotta makes the stateful 
programming model less of a concern in terms of memory consumption?

Regards,
David


--- On Fri, 2/5/10, Martijn Dashorst  wrote:

> From: Martijn Dashorst 
> Subject: Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book
> To: users@wicket.apache.org
> Date: Friday, February 5, 2010, 7:09 AM
> On Fri, Feb 5, 2010 at 10:16 AM,
> Wilhelmsen Tor Iver 
> wrote:
> >>   super(new CompoundPropertyModel(this));
> >
> > This seems wrong: A call to super() cannot reference
> "this" directly or indirectly:
> >
> > JLS §8.8.7 says:
> > "It is a compile-time error for a constructor to
> directly or indirectly invoke itself through a series of one
> or more explicit constructor invocations involving this."
> 
> Yup, this is a bug in the book's example code. Has nothing
> to do with
> 1.3 or 1.4.
> 
> And yes, the book is still valid apart from the model
> changes. My
> guess is that 1.5 will invalidate a bit more, but not too
> much. Mostly
> the part about page mounting and nice URLs will change. The
> internal
> request processing implementation is completely rewritten,
> but that
> should be transparent to the most of us (and was not
> covered in the
> book). The same goes for Wicket Ajax: completely
> rewritten,
> transparent for most users.
> 
> Martijn
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Questions about how wicket serialization works

2010-02-21 Thread David Chang
I am reading the book Wicket in Action. Page 88 about serializing models says: 

"At the end of the request, after the markup has been sent to the browser, 
Wicket stores the page, component hierarchy, and associated models (the state) 
in the page store."

Does "Wicket stores the page" means Wicket stores all the page content (markup 
plus Wicket-inserted content) sent to the the browser? 

I did an experiement in which there are two clock pages with dynamtic models 
(same java class and markup, but differnet class/file names). Clicking on a 
link goes to the second clock page. When I click IE Back button to go back to 
the first clock page, it always shows the current date/time. How so? Why not 
showing the previous date/time when the first clock page was loaded?

My understanding is that when a page is refreshed, each Wicket componet on a 
page calls its getObject to update content. Does the Back button get the 
getObject method called too?

What did I miss?

Thanks, David


  

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



Re: Questions about how wicket serialization works

2010-02-21 Thread David Chang
Erik,

Thanks so much for reply to my questions.

>>No, only the serialized form of the page hierarchy is stored.

What do you exactly mean? WiA mentions three things:

Wicket stores 
1. the page, 
2. component hierarchy, 
3. and associated models (the state) in the page store."

By "only the serialized form of the page hierarchy is stored.", you mean the 
first two things?

Regards,
David


--- On Sun, 2/21/10, Erik van Oosten  wrote:

> From: Erik van Oosten 
> Subject: Re: Questions about how wicket serialization works
> To: users@wicket.apache.org
> Date: Sunday, February 21, 2010, 3:30 PM
> Answers below...
> 
> David Chang wrote:
> > I am reading the book Wicket in Action. Page 88 about
> serializing models says: 
> > "At the end of the request, after the markup has been
> sent to the browser, Wicket stores the page, component
> hierarchy, and associated models (the state) in the page
> store."
> > 
> > Does "Wicket stores the page" means Wicket stores all
> the page content (markup plus Wicket-inserted content) sent
> to the the browser?   
> No, only the serialized form of the page hierarchy is
> stored. From this all other content can be reloaded (note:
> markup is only read once and cached when in production
> mode).
> 
> > I did an experiement in which there are two clock
> pages with dynamtic models (same java class and markup, but
> differnet class/file names). Clicking on a link goes to the
> second clock page. When I click IE Back button to go back to
> the first clock page, it always shows the current date/time.
> How so? Why not showing the previous date/time when the
> first clock page was loaded?
> >   
> When you press the back button, you'll see whatever the
> browser has cached.
> > My understanding is that when a page is refreshed,
> each Wicket componet on a page calls its getObject to update
> content. Does the Back button get the getObject method
> called too?
> >   
> After using the back button, reload the page, and you'll
> get the re-rendered content.
> > What did I miss?
> > 
> > Thanks, David
> >   
> 
> Regards,
>     Erik.
> 
> -- Send from my SMTP compliant software
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Better way to find a parent compoent in page hiearchy?

2010-02-28 Thread David Chang
I have two pages. The first page is extended by the second page. On the second 
page, I want to access a component on the first page. One way to do this is to 
make the component a member variable of the first page. I feel this way may 
have two drawbacks:

1. A member variable uses more resources (memory, clustring, etc.)
2. Not all pages extending the first page may need to access this component, 
which make it seem unnecessary for such pages.

Is there any more elegant way?

I just started Wicket programming for a personal project. Thanks for any input!

Regards, David


  

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



Re: Better way to find a parent compoent in page hiearchy?

2010-02-28 Thread David Chang
igor, thanks for prompt help! 

I can use Component#findParent(SomeClass.class) to find the first page. How can 
I further find the component by this Wicket ID? I need to overwrite its display 
value.

Thanks again.

--- On Sun, 2/28/10, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: Better way to find a parent compoent in page hiearchy?
> To: users@wicket.apache.org
> Date: Sunday, February 28, 2010, 4:04 PM
> Component#findParent(SomeClass.class)
> may be useful
> 
> -igor
> 
> On Sun, Feb 28, 2010 at 1:00 PM, David Chang 
> wrote:
> > I have two pages. The first page is extended by the
> second page. On the second page, I want to access a
> component on the first page. One way to do this is to make
> the component a member variable of the first page. I feel
> this way may have two drawbacks:
> >
> > 1. A member variable uses more resources (memory,
> clustring, etc.)
> > 2. Not all pages extending the first page may need to
> access this component, which make it seem unnecessary for
> such pages.
> >
> > Is there any more elegant way?
> >
> > I just started Wicket programming for a personal
> project. Thanks for any input!
> >
> > Regards, David
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Make Wicket component ID HTML element ID?

2010-02-28 Thread David Chang
I have many Wicket components that are unique on pages. I would like to make 
their wicket ID HTML element ID instead of typing HTML id attribute. How can I 
do this?

Thanks!


  

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



RE: Make Wicket component ID HTML element ID?

2010-02-28 Thread David Chang
Thanks for the info. But this method is only component-level. How can I make 
all Wicket components do this without repeating setOutputMarkupId(true) for 
each component?

Regards.

--- On Sun, 2/28/10, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: RE: Make Wicket component ID HTML element ID?
> To: users@wicket.apache.org
> Date: Sunday, February 28, 2010, 5:15 PM
> setOutputMarkupId(true)
> 
> 
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
> 
> 
> -----Original Message-
> From: David Chang 
> Sent: Sunday, February 28, 2010 4:02 PM
> To: users@wicket.apache.org
> Subject: Make Wicket component ID HTML element ID?
> 
> I have many Wicket components that are unique on pages. I
> would like to make their wicket ID HTML element ID instead
> of typing HTML id attribute. How can I do this?
> 
> Thanks!
> 
> 
>       
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Better way to find a parent compoent in page hiearchy?

2010-02-28 Thread David Chang

Thanks for your input. This is interesting. Somehow I got confused. 

Shouldn't this method be natural part of a Component? As you know, each 
component has child components, which is why a Wicket page has a hiearchy of 
components. 

Let's take MarkcupContainer for the moment. Using this class means I have to 
add another element in the markup page, which seems complicate thhings a bit 
and does not seem elegant.

Did I miss something?

Regards.


--- On Sun, 2/28/10, Major Péter  wrote:

> From: Major Péter 
> Subject: Re: Better way to find a parent compoent in page hiearchy?
> To: users@wicket.apache.org
> Date: Sunday, February 28, 2010, 4:20 PM
> Maybe, this will be good for you:
> http://wicketstuff.org/wicket13doc/org/apache/wicket/MarkupContainer.html#get(java.lang.String)
> 
> Regards,
> Peter
> 
> 2010-02-28 22:12 keltezéssel, David Chang írta:
> > igor, thanks for prompt help! 
> > 
> > I can use Component#findParent(SomeClass.class) to
> find the first page. How can I further find the component by
> this Wicket ID? I need to overwrite its display value.
> > 
> > Thanks again.
> > 
> > --- On Sun, 2/28/10, Igor Vaynberg 
> wrote:
> > 
> >> From: Igor Vaynberg 
> >> Subject: Re: Better way to find a parent compoent
> in page hiearchy?
> >> To: users@wicket.apache.org
> >> Date: Sunday, February 28, 2010, 4:04 PM
> >> Component#findParent(SomeClass.class)
> >> may be useful
> >>
> >> -igor
> >>
> >> On Sun, Feb 28, 2010 at 1:00 PM, David Chang
> 
> >> wrote:
> >>> I have two pages. The first page is extended
> by the
> >> second page. On the second page, I want to access
> a
> >> component on the first page. One way to do this is
> to make
> >> the component a member variable of the first page.
> I feel
> >> this way may have two drawbacks:
> >>>
> >>> 1. A member variable uses more resources
> (memory,
> >> clustring, etc.)
> >>> 2. Not all pages extending the first page may
> need to
> >> access this component, which make it seem
> unnecessary for
> >> such pages.
> >>>
> >>> Is there any more elegant way?
> >>>
> >>> I just started Wicket programming for a
> personal
> >> project. Thanks for any input!
> >>>
> >>> Regards, David
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> > 
> > 
> >       
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Better way to find a parent compoent in page hiearchy?

2010-02-28 Thread David Chang
Major, thanks for the info. You are right. I did not look down further along 
the wicket class hierarchy. 

Thanks!


--- On Sun, 2/28/10, Major Péter  wrote:

> From: Major Péter 
> Subject: Re: Better way to find a parent compoent in page hiearchy?
> To: users@wicket.apache.org
> Date: Sunday, February 28, 2010, 7:50 PM
> and the WebPage isn't a
> MarkupContainer or what??
> 
> 2010-02-28 23:54 keltezéssel, David Chang írta:
> > Thanks for your input. This is interesting. Somehow I
> got confused. 
> > 
> > Shouldn't this method be natural part of a Component?
> As you know, each component has child components, which is
> why a Wicket page has a hiearchy of components. 
> > 
> > Let's take MarkcupContainer for the moment. Using this
> class means I have to add another element in the markup
> page, which seems complicate thhings a bit and does not seem
> elegant.
> > 
> > Did I miss something?
> > 
> > Regards.
> > 
> > 
> > --- On Sun, 2/28/10, Major Péter 
> wrote:
> > 
> >> From: Major Péter 
> >> Subject: Re: Better way to find a parent compoent
> in page hiearchy?
> >> To: users@wicket.apache.org
> >> Date: Sunday, February 28, 2010, 4:20 PM
> >> Maybe, this will be good for you:
> >> http://wicketstuff.org/wicket13doc/org/apache/wicket/MarkupContainer.html#get(java.lang.String)
> >>
> >> Regards,
> >> Peter
> >>
> >> 2010-02-28 22:12 keltezéssel, David Chang írta:
> >>> igor, thanks for prompt help! 
> >>>
> >>> I can use
> Component#findParent(SomeClass.class) to
> >> find the first page. How can I further find the
> component by
> >> this Wicket ID? I need to overwrite its display
> value.
> >>>
> >>> Thanks again.
> >>>
> >>> --- On Sun, 2/28/10, Igor Vaynberg 
> >> wrote:
> >>>
> >>>> From: Igor Vaynberg 
> >>>> Subject: Re: Better way to find a parent
> compoent
> >> in page hiearchy?
> >>>> To: users@wicket.apache.org
> >>>> Date: Sunday, February 28, 2010, 4:04 PM
> >>>> Component#findParent(SomeClass.class)
> >>>> may be useful
> >>>>
> >>>> -igor
> >>>>
> >>>> On Sun, Feb 28, 2010 at 1:00 PM, David
> Chang
> >> 
> >>>> wrote:
> >>>>> I have two pages. The first page is
> extended
> >> by the
> >>>> second page. On the second page, I want to
> access
> >> a
> >>>> component on the first page. One way to do
> this is
> >> to make
> >>>> the component a member variable of the
> first page.
> >> I feel
> >>>> this way may have two drawbacks:
> >>>>>
> >>>>> 1. A member variable uses more
> resources
> >> (memory,
> >>>> clustring, etc.)
> >>>>> 2. Not all pages extending the first
> page may
> >> need to
> >>>> access this component, which make it seem
> >> unnecessary for
> >>>> such pages.
> >>>>>
> >>>>> Is there any more elegant way?
> >>>>>
> >>>>> I just started Wicket programming for
> a
> >> personal
> >>>> project. Thanks for any input!
> >>>>>
> >>>>> Regards, David
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Make Wicket component ID HTML element ID?

2010-02-28 Thread David Chang
Thanks for the tip. I added this approach to the top page. Here is my 
implemenetation:

visitChildren(new IVisitor() {
@Override
public Object component(Component c) {
c.setOutputMarkupId(true);
return Component.IVisitor.CONTINUE_TRAVERSAL;
}
});

Is this the right way to implement?

I notice one thing that is not what I want: instead of generating wanted HTML 
element ID such as "signInOut" or "feedback", Wicket added one number or letter 
to wicket ID as HTML element ID (for example: signInOut4, feedbackb).

How can I overcome this?

Regards.



--- On Sun, 2/28/10, Andrew Lombardi  wrote:

> From: Andrew Lombardi 
> Subject: Re: Make Wicket component ID HTML element ID?
> To: users@wicket.apache.org
> Date: Sunday, February 28, 2010, 6:41 PM
> Use a Component.IVisitor and you can
> setOutputMarkupId on every child component
> 
> On Feb 28, 2010, at 2:47 PM, David Chang wrote:
> 
> > Thanks for the info. But this method is only
> component-level. How can I make all Wicket components do
> this without repeating setOutputMarkupId(true) for each
> component?
> > 
> > Regards.
> > 
> > --- On Sun, 2/28/10, Jeremy Thomerson 
> wrote:
> > 
> >> From: Jeremy Thomerson 
> >> Subject: RE: Make Wicket component ID HTML element
> ID?
> >> To: users@wicket.apache.org
> >> Date: Sunday, February 28, 2010, 5:15 PM
> >> setOutputMarkupId(true)
> >> 
> >> 
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >> -- sent from a wireless device
> >> 
> >> 
> >> -Original Message-
> >> From: David Chang 
> >> Sent: Sunday, February 28, 2010 4:02 PM
> >> To: users@wicket.apache.org
> >> Subject: Make Wicket component ID HTML element
> ID?
> >> 
> >> I have many Wicket components that are unique on
> pages. I
> >> would like to make their wicket ID HTML element ID
> instead
> >> of typing HTML id attribute. How can I do this?
> >> 
> >> Thanks!
> >> 
> >> 
> >>       
> >> 
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> 
> >> 
> >> 
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> 
> >> 
> > 
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> 
> 
> To our success!
> 
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> 
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
> 
> Eco-Tip: Printing e-mails is usually a waste.
> 
> 
> This message is for the named person's use only. You must
> not, directly or indirectly, use,
>  disclose, distribute, print, or copy any part of this
> message if you are not the intended recipient.
> 
> 
> 




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



Re: SV: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang
You are right. I need to be cautoius on this. I am new in Wicket. Just for the 
sake of discussion. I put the following code in the top page's constructor:

visitChildren(new IVisitor() {
@Override
public Object component(Component c) {
c.setMarkupId(c.getId());
c.setOutputMarkupId(true);
return Component.IVisitor.CONTINUE_TRAVERSAL;
}
});

I notice that sub-page Wicket componets did not get their ID outputed as HTML 
element ID. I am confused. Aren't sub-page components are children of the top 
page?

Thanks!



--- On Mon, 3/1/10, Wilhelmsen Tor Iver  wrote:

> From: Wilhelmsen Tor Iver 
> Subject: SV: Make Wicket component ID HTML element ID?
> To: "users@wicket.apache.org" 
> Date: Monday, March 1, 2010, 2:50 AM
> > I notice one thing that is not
> what I want: instead of generating
> > wanted HTML element ID such as "signInOut" or
> "feedback", Wicket added
> > one number or letter to wicket ID as HTML element ID
> (for example:
> > signInOut4, feedbackb).
> > 
> > How can I overcome this?
> 
> Are you sure you want to? Do you use any repeaters
> (ListView, Loop, RepeatingView)? In that case you actually
> want this disambiguation so that you don't end up with
> multiple elements with the same id which messes with any
> Ajax you want to use.
> 
> - Tor Iver
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang

Thanks for this new tip and it shows another approach, which makes me  feel the 
flexibility of Wicket. I am new in Wicket.

Cheers!


--- On Mon, 3/1/10, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: Make Wicket component ID HTML element ID?
> To: users@wicket.apache.org
> Date: Monday, March 1, 2010, 1:52 AM
> You could also use a component
> instantiation listener and have it
> automatically called for every component that is created.
> 
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Sun, Feb 28, 2010 at 9:52 PM, David Chang wrote:
> 
> > Thanks for the tip. I added this approach to the top
> page. Here is my
> > implemenetation:
> >
> > visitChildren(new IVisitor() {
> >        @Override
> >        public Object
> component(Component c) {
> >               
> c.setOutputMarkupId(true);
> >               
> return Component.IVisitor.CONTINUE_TRAVERSAL;
> >        }
> > });
> >
> > Is this the right way to implement?
> >
> > I notice one thing that is not what I want: instead of
> generating wanted
> > HTML element ID such as "signInOut" or "feedback",
> Wicket added one number
> > or letter to wicket ID as HTML element ID (for
> example: signInOut4,
> > feedbackb).
> >
> > How can I overcome this?
> >
> > Regards.
> >
> >
> >
> > --- On Sun, 2/28/10, Andrew Lombardi 
> wrote:
> >
> > > From: Andrew Lombardi 
> > > Subject: Re: Make Wicket component ID HTML
> element ID?
> > > To: users@wicket.apache.org
> > > Date: Sunday, February 28, 2010, 6:41 PM
> > > Use a Component.IVisitor and you can
> > > setOutputMarkupId on every child component
> > >
> > > On Feb 28, 2010, at 2:47 PM, David Chang wrote:
> > >
> > > > Thanks for the info. But this method is
> only
> > > component-level. How can I make all Wicket
> components do
> > > this without repeating setOutputMarkupId(true)
> for each
> > > component?
> > > >
> > > > Regards.
> > > >
> > > > --- On Sun, 2/28/10, Jeremy Thomerson 
> > > wrote:
> > > >
> > > >> From: Jeremy Thomerson 
> > > >> Subject: RE: Make Wicket component ID
> HTML element
> > > ID?
> > > >> To: users@wicket.apache.org
> > > >> Date: Sunday, February 28, 2010, 5:15
> PM
> > > >> setOutputMarkupId(true)
> > > >>
> > > >>
> > > >> Jeremy Thomerson
> > > >> http://www.wickettraining.com
> > > >> -- sent from a wireless device
> > > >>
> > > >>
> > > >> -Original Message-
> > > >> From: David Chang 
> > > >> Sent: Sunday, February 28, 2010 4:02 PM
> > > >> To: users@wicket.apache.org
> > > >> Subject: Make Wicket component ID HTML
> element
> > > ID?
> > > >>
> > > >> I have many Wicket components that are
> unique on
> > > pages. I
> > > >> would like to make their wicket ID HTML
> element ID
> > > instead
> > > >> of typing HTML id attribute. How can I
> do this?
> > > >>
> > > >> Thanks!
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> -
> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> -
> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > >
> > >
> > > To our success!
> > >
> > > Mystic Coders, LLC | Code Magic |
> www.mysticcoders.com
> > >
> > > ANDREW LOMBARDI | and...@mysticcoders.com
> > > 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> > > ofc: 714-816-4488
> > > fax: 714-782-6024
> > > cell: 714-697-8046
> > > linked-in: http://www.linkedin.com/in/andrewlombardi
> > > twitter: http://www.twitter.com/kinabalu
> > >
> > > Eco-Tip: Printing e-mails is usually a waste.
> > >
> > >
> 
> > > This message is for the named person's use only.
> You must
> > > not, directly or indirectly, use,
> > >  disclose, distribute, print, or copy any
> part of this
> > > message if you are not the intended recipient.
> > >
> 
> > >
> > >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 




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



Re: SV: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang
You are perfectly right. That explains. Thanks a lot!!!


--- On Mon, 3/1/10, Igor Vaynberg  wrote:

> From: Igor Vaynberg 
> Subject: Re: SV: Make Wicket component ID HTML element ID?
> To: users@wicket.apache.org
> Date: Monday, March 1, 2010, 11:41 AM
> constructors of subclasses are called
> after
> 
> -igor
> 
> On Mon, Mar 1, 2010 at 5:06 AM, David Chang 
> wrote:
> > You are right. I need to be cautoius on this. I am new
> in Wicket. Just for the sake of discussion. I put the
> following code in the top page's constructor:
> >
> > visitChildren(new IVisitor() {
> >       �...@override
> >        public Object component(Component c) {
> >                c.setMarkupId(c.getId());
> >                c.setOutputMarkupId(true);
> >                return
> Component.IVisitor.CONTINUE_TRAVERSAL;
> >        }
> > });
> >
> > I notice that sub-page Wicket componets did not get
> their ID outputed as HTML element ID. I am confused. Aren't
> sub-page components are children of the top page?
> >
> > Thanks!
> >
> >
> >
> > --- On Mon, 3/1/10, Wilhelmsen Tor Iver 
> wrote:
> >
> >> From: Wilhelmsen Tor Iver 
> >> Subject: SV: Make Wicket component ID HTML element
> ID?
> >> To: "users@wicket.apache.org"
> 
> >> Date: Monday, March 1, 2010, 2:50 AM
> >> > I notice one thing that is not
> >> what I want: instead of generating
> >> > wanted HTML element ID such as "signInOut"
> or
> >> "feedback", Wicket added
> >> > one number or letter to wicket ID as HTML
> element ID
> >> (for example:
> >> > signInOut4, feedbackb).
> >> >
> >> > How can I overcome this?
> >>
> >> Are you sure you want to? Do you use any
> repeaters
> >> (ListView, Loop, RepeatingView)? In that case you
> actually
> >> want this disambiguation so that you don't end up
> with
> >> multiple elements with the same id which messes
> with any
> >> Ajax you want to use.
> >>
> >> - Tor Iver
> >>
> >>
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang

I understand that in deployment, all Wicket tags are stripped from the rendered 
markup that is sent to the client. 

How can I strip all Wicket tags from the rendered markup in development mode. I 
want to see clean HTML content in the client.

Thanks for help!




  

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



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang
James and Cemal,

Thanks so much for your kind help!

Cheers.

--- On Thu, 3/4/10, Cemal Bayramoglu  wrote:

> From: Cemal Bayramoglu 
> Subject: Re: How to strip Wicket tags in development mode?
> To: users@wicket.apache.org
> Date: Thursday, March 4, 2010, 6:47 PM
> David,
> 
> Take a look here [1].
> 
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
> 
> [1] 
> http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html
> 
> 
> On 4 March 2010 23:44, David Chang 
> wrote:
> >
> > I understand that in deployment, all Wicket tags are
> stripped from the rendered markup that is sent to the
> client.
> >
> > How can I strip all Wicket tags from the rendered
> markup in development mode. I want to see clean HTML content
> in the client.
> >
> > Thanks for help!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Dynamically change feedback panel border color?

2010-03-04 Thread David Chang

I am using a div with border color to enclose feedback messages. I can control 
whether to generate the feedback div based on whether there is any message to 
render. Now I hope to change its border color depending on the severity of the 
message. But (1) always causes error:

Cannot modify component hierarchy after render phase has started (page version 
cant change then anymore).

How can I change the border color when there is message to render? What is the 
best way?

Thanks!


-

HTML:



Java code:

add(new FeedbackPanel("feedbackHolder") {
@Override
 public boolean isVisible() {
(1)  if (anyErrorMessage()) 
   add(new SimpleAttributeModifier("class", "redBox"));
  return anyMessage();
 }
});



  

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



Re: Dynamically change feedback panel border color?

2010-03-04 Thread David Chang
For FeedbackPanel, I am not sure how to do this. I tried onComponentTag(), etc. 
and it seems there is always compile error. Looks like FeedbackPanel is a 
special beast.


--- On Thu, 3/4/10, Riyad Kalla  wrote:

> From: Riyad Kalla 
> Subject: Re: Dynamically change feedback panel border color?
> To: users@wicket.apache.org
> Date: Thursday, March 4, 2010, 10:28 PM
> I *think* you want to handle that
> inside of onRender:
> http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#onRender(org.apache.wicket.markup.MarkupStream)
> 
> On Thu, Mar 4, 2010 at 7:58 PM, David Chang 
> wrote:
> 
> >
> > I am using a div with border color to enclose feedback
> messages. I can
> > control whether to generate the feedback div based on
> whether there is any
> > message to render. Now I hope to change its border
> color depending on the
> > severity of the message. But (1) always causes error:
> >
> > Cannot modify component hierarchy after render phase
> has started (page
> > version cant change then anymore).
> >
> > How can I change the border color when there is
> message to render? What is
> > the best way?
> >
> > Thanks!
> >
> >
> > -
> >
> > HTML:
> >
> > 
> >
> > Java code:
> >
> > add(new FeedbackPanel("feedbackHolder") {
> > @Override
> >  public boolean isVisible() {
> > (1)  if (anyErrorMessage())
> >       add(new
> SimpleAttributeModifier("class", "redBox"));
> >  return anyMessage();
> >  }
> > });
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 




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



Example of configuring JCaptcha within Wicket?

2010-03-07 Thread David Chang
Anybody used the JCaptcha tool? How did you do the customization? The 
out-of-box config sucks.

Could you please share your config and how to?

Cheers!




  

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



Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
Hi, I am new in Wicket. 

I did Spring web applications before and I usually put an app's configuration 
parameters in the application context file. 

I would like to know the best practice in Wichet for setting parameters such as 
SMTP server, LDAP server, etc. Where should I put them? I dont feel 
WebApplication is a good place. Put them in an old java properties file? I want 
these parameters can be changed without touching source code.

Thanks!


  

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



Re: Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
Jeremy, thanks for chiming. I read your transition from Spring to Wicket long 
time ago. 
Best, David

--- On Sun, 3/7/10, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: Re: Where to put an application's configuration parameters?
> To: users@wicket.apache.org
> Date: Sunday, March 7, 2010, 5:28 PM
> I use Spring IoC and do all of my app
> configuration with Spring still.  I
> just use Wicket for the webapp portion.  There's no
> reason Wicket should
> know about these SMTP / LDAP config values - all of that
> should be service
> layer or below.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Sun, Mar 7, 2010 at 2:15 PM, David Chang 
> wrote:
> 
> > Hi, I am new in Wicket.
> >
> > I did Spring web applications before and I usually put
> an app's
> > configuration parameters in the application context
> file.
> >
> > I would like to know the best practice in Wichet for
> setting parameters
> > such as SMTP server, LDAP server, etc. Where should I
> put them? I dont feel
> > WebApplication is a good place. Put them in an old
> java properties file? I
> > want these parameters can be changed without touching
> source code.
> >
> > Thanks!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 




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



Re: Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
James and Riyad, 

Thanks for your input. I really appreciate it. Wicket is great, but I still 
feel a little elusive.

Regards.



--- On Sun, 3/7/10, James Carman  wrote:

> From: James Carman 
> Subject: Re: Where to put an application's configuration parameters?
> To: users@wicket.apache.org
> Date: Sunday, March 7, 2010, 3:26 PM
> Why not use Spring *with* Wicket?
> 
> On Sun, Mar 7, 2010 at 3:15 PM, David Chang 
> wrote:
> > Hi, I am new in Wicket.
> >
> > I did Spring web applications before and I usually put
> an app's configuration parameters in the application context
> file.
> >
> > I would like to know the best practice in Wichet for
> setting parameters such as SMTP server, LDAP server, etc.
> Where should I put them? I dont feel WebApplication is a
> good place. Put them in an old java properties file? I want
> these parameters can be changed without touching source
> code.
> >
> > Thanks!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Example of configuring JCaptcha within Wicket?

2010-03-08 Thread David Chang
Eelco, 

Thanks for reply. I already read this book and already got the code working by 
understanding the sample code int the book. But I don't like what the default 
image and font look like and hope to change it. 

So I would like to see if there is existing work by folks here so that I dont 
have to re-invent wheels.

Best, David


--- On Sun, 3/7/10, Eelco Hillenius  wrote:

> From: Eelco Hillenius 
> Subject: Re: Example of configuring JCaptcha within Wicket?
> To: users@wicket.apache.org
> Date: Sunday, March 7, 2010, 11:07 PM
> It's been a while, so I don't know
> how well it works with recent
> versions (and whether I would do things differently today),
> but
> there's a few pages on this in Wicket In Action. You can
> find example
> source code here:
> http://code.google.com/p/wicketinaction/source/browse/trunk/book-wicket-in-action/src/java/wicket/in/action/chapter09/jcaptcha/?r=110
> 
> Eelco
> 
> On Sun, Mar 7, 2010 at 11:53 AM, David Chang 
> wrote:
> > Anybody used the JCaptcha tool? How did you do the
> customization? The out-of-box config sucks.
> >
> > Could you please share your config and how to?
> >
> > Cheers!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Wicket allow multiple Spring context files?

2010-03-09 Thread David Chang
When I did my Spring web applications, I split Spring context files into a few 
smaller ones (example: one for web beans, one for DAO beans, one for Service 
beans, etc). 

I would like to follow the same approach in my Wicket application, but I notice 
a few odd things:

1. The order of these Context files in web.xml plays a role. If not right, 
Tomcat will not start and report wicket "WebApplication" cannot be found.

2. Service beans specified through the following:

@SpringBean
private SupportService supportService;

result in runtime error that the bean of type SuppportService cannot be found 
if a service bean is specified in a different context file other than that of 
wicket "WebApplication".

Any of you had similar experience. Any fix?

Regards.




  

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



A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
Yesterday I was looking at the page "Migrating to Wicket 1.4"

http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html

Regarding SpringWebApplication, it says: 

SpringWebApplication has been deprecated in favor of SpringBean annotation. See 
SpringWebApplication javadoc for how to setup SpringBean based injection.

I went to Wicket API about SpringWebApplication and it says:

Deprecated. when using java5 it is preferrable to use SpringBean annotations 
for injection rather then this spring-specific application subclass with its 
helpers. To setup SpringBean add the following line to your WebApplication 
subclass init method add(new SpringComponentInjector(this)); 

Here is my way of using Spring in my wicket app.

1. In the init method:

addComponentInstantiationListener(new SpringComponentInjector(this));

Please note that it is not: add(new SpringComponentInjector(this)); 

2. In wicket components that access Spring beans:

@SpringBean
private SupportService supportService;


Am I doing Spring in Wicket right way?

Thanks for input!



  

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



Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
James, thanks for quick reply. I guess I am a little confused is that in the 
init method, I use

addComponentInstantiationListener(new SpringComponentInjector(this));

instead of 

add(new SpringComponentInjector(this));

as "Migrating" guide specified. The Guide-specified approach actually generates 
compiler error.

Regards.


--- On Thu, 3/11/10, James Carman  wrote:

> From: James Carman 
> Subject: Re: A question about using Spring in Wicket 1.4
> To: users@wicket.apache.org
> Date: Thursday, March 11, 2010, 9:09 AM
> yes
> 
> On Thu, Mar 11, 2010 at 8:56 AM, David Chang 
> wrote:
> > Yesterday I was looking at the page "Migrating to
> Wicket 1.4"
> >
> > http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html
> >
> > Regarding SpringWebApplication, it says:
> >
> > SpringWebApplication has been deprecated in favor of
> SpringBean annotation. See SpringWebApplication javadoc for
> how to setup SpringBean based injection.
> >
> > I went to Wicket API about SpringWebApplication and it
> says:
> >
> > Deprecated. when using java5 it is preferrable to use
> SpringBean annotations for injection rather then this
> spring-specific application subclass with its helpers. To
> setup SpringBean add the following line to your
> WebApplication subclass init method add(new
> SpringComponentInjector(this));
> >
> > Here is my way of using Spring in my wicket app.
> >
> > 1. In the init method:
> >
> > addComponentInstantiationListener(new
> SpringComponentInjector(this));
> >
> > Please note that it is not: add(new
> SpringComponentInjector(this));
> >
> > 2. In wicket components that access Spring beans:
> >
> > @SpringBean
> > private SupportService supportService;
> >
> >
> > Am I doing Spring in Wicket right way?
> >
> > Thanks for input!
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



How to dynamtically generate an image via an Ajax link?

2010-03-12 Thread David Chang

Hello, I am playing with JCaptcha. My JCaptcha is working (thanks to WIA book). 
I also have an Ajax link for a visitor to change the displayed image if he 
wishes. 

I am new in Wicket and I am trying to follow the idea of defining a model for a 
Wicket image component. However, based on my undersstanding of WIA's 
implementation of JCaptcha, no model is explicitly set and the book code simply 
sets ImageResource.

Does anyone out there know how to dynamically updage an image via Ajax link?

Any pointer or info is really appreciated.

Regards.



  

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



Design of Locale-aware dropdown list?

2010-03-12 Thread David Chang
This question may be beyond Wicket’s scope but I would like to ask folks here. 
I am impressed by their creativity, capability, and passion.

I need to display a dropdown list which is in English or Korean. The options of 
the dropdown list MUST be stored in database. It switches between English and 
Korean depending on the locale in the session. 

How can this requirement be addressed elegantly in all three tiers: web 
(wicket), service, and database, plus the domain objects?

Any input or pointer is really appreciated.

All the best.


P.S. I played with the Locale selection example in the WIA book. It seems the 
options values in different languages are stored text files. Correct?





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



Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang

Can anybody recommend to me two good complete clean sample or open source 
Wicket + Spring + Hibernate applications?

One of the effective ways I learn is by learning from good examples.

I would be very much grateful for any info. Hopefully, the sample or open 
source applications are not too big, but still show many points.

Thanks a lot!


  

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



Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang

Hello James,

Thank you!

Best,
-David

--- On Mon, 3/15/10, James Carman  wrote:

> From: James Carman 
> Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
> To: users@wicket.apache.org
> Date: Monday, March 15, 2010, 10:09 PM
> You can try my demo application I
> used for my Advanced Wicket presentation:
> 
> http://svn.carmanconsulting.com/public/wicket-advanced/trunk
> 
> 
> 
> On Mon, Mar 15, 2010 at 10:05 PM, David Chang 
> wrote:
> >
> > Can anybody recommend to me two good complete clean
> sample or open source Wicket + Spring + Hibernate
> applications?
> >
> > One of the effective ways I learn is by learning from
> good examples.
> >
> > I would be very much grateful for any info. Hopefully,
> the sample or open source applications are not too big, but
> still show many points.
> >
> > Thanks a lot!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang
James, 

I just downloaded your application. Do you have any documentation/presentation 
about this application? 

Do you happen to have knowledge of another good sample/demo app?

Thanks, 
David

--- On Mon, 3/15/10, James Carman  wrote:

> From: James Carman 
> Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
> To: users@wicket.apache.org
> Date: Monday, March 15, 2010, 10:09 PM
> You can try my demo application I
> used for my Advanced Wicket presentation:
> 
> http://svn.carmanconsulting.com/public/wicket-advanced/trunk
> 
> 
> 
> On Mon, Mar 15, 2010 at 10:05 PM, David Chang 
> wrote:
> >
> > Can anybody recommend to me two good complete clean
> sample or open source Wicket + Spring + Hibernate
> applications?
> >
> > One of the effective ways I learn is by learning from
> good examples.
> >
> > I would be very much grateful for any info. Hopefully,
> the sample or open source applications are not too big, but
> still show many points.
> >
> > Thanks a lot!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang

James, the info is fantastic! 

Many thanks!!! 
-David


--- On Mon, 3/15/10, James Carman  wrote:

> From: James Carman 
> Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
> To: users@wicket.apache.org
> Date: Monday, March 15, 2010, 11:02 PM
> On Mon, Mar 15, 2010 at 10:57 PM,
> David Chang 
> wrote:
> > James,
> >
> > I just downloaded your application. Do you have any
> documentation/presentation about this application?
> 
> I didn't really have a slide presentation for this
> talk.  I basically
> just walked through code.  I did it as a "day in the
> life of a Wicket
> programmer" where I implemented some user stories
> on-the-fly.
> 
> >
> > Do you happen to have knowledge of another good
> sample/demo app?
> 
> Wicket Iolite 
> (http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite)
> is another good example, or the example that comes with
> Wicketopia
> (work in progress).
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
James, thanks so much for the information. I cannot say enough thank-you for 
your help.

All the best,
David

--- On Tue, 3/16/10, Cemal Bayramoglu  wrote:

> From: Cemal Bayramoglu 
> Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
> To: "users" 
> Date: Tuesday, March 16, 2010, 9:01 AM
> David,
> 
> You may find LegUp [1] useful.
> Also see the wiki, [2], the Wicket in Action site [3] 
> and book [4]
> for useful information, and  the PhoneBook sample
> [5].
> 
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
> 
> [1] http://jweekend.com/dev/LegUp
> [2] http://cwiki.apache.org/WICKET/spring.html
> [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
> [4] http://www.manning.com/dashorst/
> [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
> 
> 
> On 16 March 2010 02:05, David Chang 
> wrote:
> >
> > Can anybody recommend to me two good complete clean
> sample or open source Wicket + Spring + Hibernate
> applications?
> >
> > One of the effective ways I learn is by learning from
> good examples.
> >
> > I would be very much grateful for any info. Hopefully,
> the sample or open source applications are not too big, but
> still show many points.
> >
> > Thanks a lot!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
Cemal, 

Thanks so much for the information. I am really grateful, indeed.
Putting Wicket aside, you guys are awesome.

Best, 
David

--- On Tue, 3/16/10, Cemal Bayramoglu  wrote:

> From: Cemal Bayramoglu 
> Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
> To: "users" 
> Date: Tuesday, March 16, 2010, 9:01 AM
> David,
> 
> You may find LegUp [1] useful.
> Also see the wiki, [2], the Wicket in Action site [3] 
> and book [4]
> for useful information, and  the PhoneBook sample
> [5].
> 
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
> 
> [1] http://jweekend.com/dev/LegUp
> [2] http://cwiki.apache.org/WICKET/spring.html
> [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
> [4] http://www.manning.com/dashorst/
> [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
> 
> 
> On 16 March 2010 02:05, David Chang 
> wrote:
> >
> > Can anybody recommend to me two good complete clean
> sample or open source Wicket + Spring + Hibernate
> applications?
> >
> > One of the effective ways I learn is by learning from
> good examples.
> >
> > I would be very much grateful for any info. Hopefully,
> the sample or open source applications are not too big, but
> still show many points.
> >
> > Thanks a lot!
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang

Hello, I understand that there must be a solution for this. I googled for some 
time and found one or two results that seem to match what I am looking but they 
did not answer my question. Tried myself, not successful. So I want to ask 
folks here. I have a form and it has a dropdown list. Here are my requirements:

1. Replace "Choose one" with a blank line

2. This blank line is the first option and it is always listed no matter 
whether a value is selected or not, no matter whether the form field of this 
dropdown list is required or not.

3. I am using ChoiceRenderer to convert between selection and objects.

4. This behavior is applicable to all DropDownChoice. 

How can meet these requirement?

Thanks for your help!

Regards.


  

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



RE: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
Martin,

Thanks so much for chiming in. I tried the 

null=

approach. The blank line in the dropdown list simply disappears. As I said in 
my requirements, I hope to have it there no matter whether a value is selected 
or not, no matter whether it is a required field or not.

Again, thanks for help!
Best,
David

--- On Wed, 3/17/10, Martin Asenov  wrote:

> From: Martin Asenov 
> Subject: RE: Replace "Choose one" from DropDownChoice?
> To: "users@wicket.apache.org" 
> Date: Wednesday, March 17, 2010, 9:08 AM
> Hi, David!
> 
> Let's presume your webapplication class is called
> WebApp.java. In the same directory where it is present,
> create WebApp.properties with the following line:
> 
> null=
> 
> that way every single 'choose one' label will be replaced
> with "".
> 
> P.S. Don't forget to include the props files in the pom as
> a resource.
> 
> Best,
> Martin
> 
> -Original Message-
> From: David Chang [mailto:david_q_zh...@yahoo.com]
> 
> Sent: Wednesday, March 17, 2010 3:03 PM
> To: users@wicket.apache.org
> Subject: Replace "Choose one" from DropDownChoice?
> 
> 
> Hello, I understand that there must be a solution for this.
> I googled for some time and found one or two results that
> seem to match what I am looking but they did not answer my
> question. Tried myself, not successful. So I want to ask
> folks here. I have a form and it has a dropdown list. Here
> are my requirements:
> 
> 1. Replace "Choose one" with a blank line
> 
> 2. This blank line is the first option and it is always
> listed no matter whether a value is selected or not, no
> matter whether the form field of this dropdown list is
> required or not.
> 
> 3. I am using ChoiceRenderer to convert between selection
> and objects.
> 
> 4. This behavior is applicable to all DropDownChoice. 
> 
> How can meet these requirement?
> 
> Thanks for your help!
> 
> Regards.
> 
> 
>       
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



Re: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
Martin, 

According to what you said, do I need to add special processing in 
ChoiceRenderer if this blank line is the selected and I need to convert 
selected value to object?

Thanks,
David

--- On Wed, 3/17/10, Martin Phee  wrote:

> From: Martin Phee 
> Subject: Re: Replace "Choose one" from DropDownChoice?
> To: users@wicket.apache.org
> Date: Wednesday, March 17, 2010, 10:05 AM
> You have to add a selection choice
> that is just a blank line option.
> 
> This is a typical requirement for any dropdown if you wan
> the use to be able to clear their choice.
> 
> 
> On Mar 17, 2010, at 8:47 AM, David Chang wrote:
> 
> > Martin,
> > 
> > Thanks so much for chiming in. I tried the
> > 
> > null=
> > 
> > approach. The blank line in the dropdown list simply
> disappears. As I said in my requirements, I hope to have it
> there no matter whether a value is selected or not, no
> matter whether it is a required field or not.
> > 
> > Again, thanks for help!
> > Best,
> > David
> > 
> > --- On Wed, 3/17/10, Martin Asenov 
> wrote:
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



  1   2   >