RE: Rich Text Editors and Wicket

2010-05-29 Thread M. Hammer

Quoting Chris Colman chr...@stepaheadsoftware.com:

Is your YUI/Wicket component/integration code publicly available or
could it be?
I've written a blog post on the integration:  
http://www.hammersoft.de/blog/?p=31
Maybe a FckEditor integration can be done in a similar manner. Keep me  
posted if you do this, I am not entirely happy with YUI either.




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



AjaxFormComponentUpdatingBehavior and AttributeAppender

2010-05-29 Thread Alexander Monakhov
Hi, guys.

I noticed AjaxFormComponentUpdatingBehavior overwrites earlier added with
AttributeAppender/AttributeModifier handlers.
Could you give me any suggestion how to make them coexistent?

Best regards, Alexander.


Problem with AjaxSubmitButton when adding a form to the target

2010-05-29 Thread Predrag Spasojevic
I have problem with following code:
AjaxFallbackButton button = new AjaxFallbackButton(button, commentForm) {

private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
 //do some business stuff
 // ..

commentForm.setDefaultModel(new CompoundPropertyModelComment(new
Comment()));
*target.addComponent(commentForm);*
target.addComponent(commentsPanel);

}
};

User after submitting form via ajax stays on the same page and the form is
cleared so that user can fill and submit the form once again.
On first submit everythings works well. On the second submit the form is not
submitted via ajax but in a regular way. The problem is in
target.addComponent(commentForm). When I removed that line everything worked
well.

-- 
Regards,
Predrag Spasojevic


Re: RE: Rich Text Editors and Wicket

2010-05-29 Thread wicketyan
I also want to know how to process image add in wicket.can anyone write a 
example about adding image in wicket.the image upload generally use a frame to 
upload.so,the hard code way someone told me before is this way?  get the 
request url of wicket form,and assign it to the form action of frame, and write 
a FileItem in wicket code?I can't solve this .actuly,image upload is 
unnecessary for me latter.visural-wicket-examples is well.the athor said he 
will develop a image upload,but not now!I will wait !

2010-05-29 



wicketyan 



发件人: Chris Colman 
发送时间: 2010-05-29  06:18:38 
收件人: users@wicket.apache.org 
抄送: 
主题: RE: Rich Text Editors and Wicket 
 
YUI sure looks better than Visural. Unfortunately it still doesn't have
the nice right click/context menu that FckEditor has - have to double
click on an image to get to its properties form. It also doesn't have
all the powerful advanced styling options that FckEditor has - well not
in the examples I saw anyway.
Is your YUI/Wicket component/integration code publicly available or
could it be?
 -Original Message-
 From: M. Hammer [mailto:nab...@hammer-tour.com]
 Sent: Saturday, 29 May 2010 8:09 AM
 To: users@wicket.apache.org
 Subject: Re: Rich Text Editors and Wicket
 
 Quoting Chris Colman chr...@stepaheadsoftware.com:
  Does anyone have experience with using Rich Text Editors in Wicket?
 I've used the TinyMCE integration from Wicketstuff
 (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-
 tinymce),
 but then ended up using YUI Editor
 (http://developer.yahoo.com/yui/editor/), because it looks nicer :-)
 
 Generally, integrating a client-side lib (an editor, JQuery, whatever)
 with Wicket is only a matter of providing convenience wrappers. Add
 the Javascript/CSS via header contributors, and write a panel for the
 actual Javascript invocation. As long as no AJAX is involved, things
 are straight-forward. If you need to render dynamic Javascript,
 TextTemplateHeaderContributor is an invaluable tool.
 
 
 -
 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: RE: Rich Text Editors and Wicket

2010-05-29 Thread wicketyan
thanks Hammer,I'm learning.


2010-05-29 



wicketyan 



发件人: M. Hammer 
发送时间: 2010-05-29  15:54:09 
收件人: users 
抄送: 
主题: RE: Rich Text Editors and Wicket 
 
Quoting Chris Colman chr...@stepaheadsoftware.com:
 Is your YUI/Wicket component/integration code publicly available or
 could it be?
I've written a blog post on the integration:  
http://www.hammersoft.de/blog/?p=31
Maybe a FckEditor integration can be done in a similar manner. Keep me  
posted if you do this, I am not entirely happy with YUI either.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


wicket:link images and variation problem

2010-05-29 Thread Wouter de Vaal
Hi,

I'm trying to use variations with images that are automatically
localized when they are within wicket:link. When I turned on debugging
I could see that it tries to get the image for the current locale, or
one without locale extension when it is not available (logo_nl.png
versus logo.png). However when I change getVariation() on the page,
nothing notable happened in the debug statements.

So I started debugging and I found out that Component.getStyle is
actually called, but will never give a result, as the parent is
consulted to get the variation, however the automatically added
components of type AutoLinkResolver$ResourceReferenceAutolink do not
get a parent when they are created.
Could this be a bug? I would expect the variation to be used when I
autolink an image within a normal page.

Thanks,
Wouter

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



Re: Guice v 2 Wicket + ldms?

2010-05-29 Thread Jan Kriesten

Hi Nino,

 Are anyone using that combo?

sure.

Best regards, --- Jan.

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



Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread Sam Zilverberg
I can't reach my daos in any other way but using
ApplicationContext context =
WebApplicationContextUtils.getWebApplicationContext(getServletContext());

I've tried using some spring annotations and context:annotation-config /
to autowire these daos into the servlet.
When not using @Qualifier spring would fail at startup telling me that I'm
not specific enough and that there are 20 more beans of that type IDAO
which is correct.
when using @Qualifier spring does not fail at startup but doesn't
successfully inject the dao - I get Null instead of the dao.

Then I've tried using only xml config approach - defining the servlet as a
bean in applicationContext.xml and referencing its dao property to the
correct bean prop.
Again i get Null instead of the dao.

I've tried googling for a solution but couldn't find one. I only learned
that the problem is probably that the servlet is outside of the web
application context so it can't reach
beans defined in it by simple xml property ref config.

This isn't wicket specific problem, but any help as to how I can use a
xml/annotation configuration instead of directly setting the daos in the
servlet's init() would be greatly appreciated!

Thanks
-Sam


Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread James Carman
What are these other servlets doing?  Perhaps you could implement the
functionality using Spring-WebMVC and just implement a controller?
Then, Spring manages the servlets (they're actually beans that act
like servlets and Spring dispatches to them) and you can have all your
cool dependency injection, etc. from Spring.

On Sat, May 29, 2010 at 8:11 AM, Sam Zilverberg samzilverb...@gmail.com wrote:
 I can't reach my daos in any other way but using
 ApplicationContext context =
 WebApplicationContextUtils.getWebApplicationContext(getServletContext());

 I've tried using some spring annotations and context:annotation-config /
 to autowire these daos into the servlet.
 When not using @Qualifier spring would fail at startup telling me that I'm
 not specific enough and that there are 20 more beans of that type IDAO
 which is correct.
 when using @Qualifier spring does not fail at startup but doesn't
 successfully inject the dao - I get Null instead of the dao.

 Then I've tried using only xml config approach - defining the servlet as a
 bean in applicationContext.xml and referencing its dao property to the
 correct bean prop.
 Again i get Null instead of the dao.

 I've tried googling for a solution but couldn't find one. I only learned
 that the problem is probably that the servlet is outside of the web
 application context so it can't reach
 beans defined in it by simple xml property ref config.

 This isn't wicket specific problem, but any help as to how I can use a
 xml/annotation configuration instead of directly setting the daos in the
 servlet's init() would be greatly appreciated!

 Thanks
 -Sam


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



Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread Sam Zilverberg
The servlet receives POST requests containing xml documents that describe
operations like add-something-to-db / retrieve-something-from-db /
sync-time-with-server.
The servlet parses these xmls, fullfills the requests and responds with an
xml document containing either error codes or some info that was requested.
The servlet needs access to daos that the web application uses to fulfill
most of these requests.
Theres no GUI/Web GUI involved with this servlet. So it doesn't need to
redirect to or show any web pages.

I looked at Controller but it seems that if i use it i have to respond
with some ModelAndView object to requests...


On Sat, May 29, 2010 at 3:41 PM, James Carman ja...@carmanconsulting.comwrote:

 What are these other servlets doing?  Perhaps you could implement the
 functionality using Spring-WebMVC and just implement a controller?
 Then, Spring manages the servlets (they're actually beans that act
 like servlets and Spring dispatches to them) and you can have all your
 cool dependency injection, etc. from Spring.

 On Sat, May 29, 2010 at 8:11 AM, Sam Zilverberg samzilverb...@gmail.com
 wrote:
  I can't reach my daos in any other way but using
  ApplicationContext context =
  WebApplicationContextUtils.getWebApplicationContext(getServletContext());
 
  I've tried using some spring annotations and context:annotation-config
 /
  to autowire these daos into the servlet.
  When not using @Qualifier spring would fail at startup telling me that
 I'm
  not specific enough and that there are 20 more beans of that type IDAO
  which is correct.
  when using @Qualifier spring does not fail at startup but doesn't
  successfully inject the dao - I get Null instead of the dao.
 
  Then I've tried using only xml config approach - defining the servlet as
 a
  bean in applicationContext.xml and referencing its dao property to the
  correct bean prop.
  Again i get Null instead of the dao.
 
  I've tried googling for a solution but couldn't find one. I only learned
  that the problem is probably that the servlet is outside of the web
  application context so it can't reach
  beans defined in it by simple xml property ref config.
 
  This isn't wicket specific problem, but any help as to how I can use a
  xml/annotation configuration instead of directly setting the daos in the
  servlet's init() would be greatly appreciated!
 
  Thanks
  -Sam
 

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




Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
I am using Tomcat, any tips about how to develop out recompiling/restarting 
after every change?

Best.

--- On Fri, 5/21/10, Jeremy Thomerson jer...@wickettraining.com wrote:

 From: Jeremy Thomerson jer...@wickettraining.com
 Subject: Re: Can I develop without recompiling/restarting after every change?
 To: users@wicket.apache.org
 Date: Friday, May 21, 2010, 12:17 PM
 the easiest way to do this is to use
 the Start class (Start.java) from the
 quickstart to run an embedded jetty instance in your
 IDE.  then, if you run
 it in debug mode, it will hotswap any possible changes (and
 tell you if you
 must restart if it's an incompatible change)
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Fri, May 21, 2010 at 10:53 AM, ekallevig e...@ekallevig.com
 wrote:
 
 
  I'm a front-end developer trying to learn Java (total
 n00b) and working on
  a
  wicket application at work.  The whole process
 feels very slow primarily
  because I have to recompile and restart JBoss every
 time I make a change.
  So I'm wondering what the best way is to avoid having
 to do this when
  editing .java/.js/.css/.html files during development?
 I'd like to just
  make
  changes and then refresh the browser to test -- is
 this possible?
 
  I've seen in the FAQ that you can change the
 application settings to
  auto-reload markup .html files -- where would I insert
 this setting
  (remember I'm a total n00b).
 
  As to .css/.js/.java files -- do I need jRebel or
 something like that to
  get
  these files to reload automatically?
 
  Thanks for helping out a super-beginner :)
  --
  View this message in context:
  http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread Wouter de Vaal
If you're using eclipse, use sysdeo:

http://www.eclipsetotale.com/tomcatPlugin.html

Wouter

2010/5/29 David Chang david_q_zh...@yahoo.com:
 I am using Tomcat, any tips about how to develop out recompiling/restarting 
 after every change?

 Best.

 --- On Fri, 5/21/10, Jeremy Thomerson jer...@wickettraining.com wrote:

 From: Jeremy Thomerson jer...@wickettraining.com
 Subject: Re: Can I develop without recompiling/restarting after every change?
 To: users@wicket.apache.org
 Date: Friday, May 21, 2010, 12:17 PM
 the easiest way to do this is to use
 the Start class (Start.java) from the
 quickstart to run an embedded jetty instance in your
 IDE.  then, if you run
 it in debug mode, it will hotswap any possible changes (and
 tell you if you
 must restart if it's an incompatible change)

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Fri, May 21, 2010 at 10:53 AM, ekallevig e...@ekallevig.com
 wrote:

 
  I'm a front-end developer trying to learn Java (total
 n00b) and working on
  a
  wicket application at work.  The whole process
 feels very slow primarily
  because I have to recompile and restart JBoss every
 time I make a change.
  So I'm wondering what the best way is to avoid having
 to do this when
  editing .java/.js/.css/.html files during development?
 I'd like to just
  make
  changes and then refresh the browser to test -- is
 this possible?
 
  I've seen in the FAQ that you can change the
 application settings to
  auto-reload markup .html files -- where would I insert
 this setting
  (remember I'm a total n00b).
 
  As to .css/.js/.java files -- do I need jRebel or
 something like that to
  get
  these files to reload automatically?
 
  Thanks for helping out a super-beginner :)
  --
  View this message in context:
  http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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





-- 
check out https://www.memolio.com

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



DropDownChoice behaviour

2010-05-29 Thread Marek Šabo
Hi all,


I would like to know what's the outcome of setting setNullValid(true) --
is it that the choices will start with an empty string choice?

My problem:

userField = new DropDownChoiceUser(user, facade.getAllUsers()); --
keeps the Choose one option even without setting null valid to true
(wanted behaviour) after first select

schoolField = new DropDownChoiceString(school, Arrays.asList(FA,
FBMI, FD, FEL, FIT, FJFI, FSI, FSV, OTHER)); -- after
first select, the options lose the Choose one option (I suppose that's
the correct behaviour)

When I set valid null value to true, I got an empty string in the
choices and it works. So why without setting this on the previous
component, there is ability to choose null and it' represented as
Choose one?

Regards,

-- 
Marek Šabo


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



Re: Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread Dan Haywood
have you tried JRebel?  I've not used it myself, but there was an 
interview on JavaPosse recently, sounds like it'd be an ideal fit for 
any Wicket developer.


Dan

On 22/07/28164 20:59, David Chang wrote:

I am using Tomcat, any tips about how to develop out recompiling/restarting 
after every change?

Best.

--- On Fri, 5/21/10, Jeremy Thomersonjer...@wickettraining.com  wrote:

   

From: Jeremy Thomersonjer...@wickettraining.com
Subject: Re: Can I develop without recompiling/restarting after every change?
To: users@wicket.apache.org
Date: Friday, May 21, 2010, 12:17 PM
the easiest way to do this is to use
the Start class (Start.java) from the
quickstart to run an embedded jetty instance in your
IDE.  then, if you run
it in debug mode, it will hotswap any possible changes (and
tell you if you
must restart if it's an incompatible change)

--
Jeremy Thomerson
http://www.wickettraining.com



On Fri, May 21, 2010 at 10:53 AM, ekallevige...@ekallevig.com
wrote:

 

I'm a front-end developer trying to learn Java (total
   

n00b) and working on
 

a
wicket application at work.  The whole process
   

feels very slow primarily
 

because I have to recompile and restart JBoss every
   

time I make a change.
 

So I'm wondering what the best way is to avoid having
   

to do this when
 

editing .java/.js/.css/.html files during development?
   

I'd like to just
 

make
changes and then refresh the browser to test -- is
   

this possible?
 

I've seen in the FAQ that you can change the
   

application settings to
 

auto-reload markup .html files -- where would I insert
   

this setting
 

(remember I'm a total n00b).

As to .css/.js/.java files -- do I need jRebel or
   

something like that to
 

get
these files to reload automatically?

Thanks for helping out a super-beginner :)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
Wouter, thanks for your input! 

I got tomcatPlugiin installed as you sugggested and I can start it from within 
eclipse to run a wicket app. But how can I do development without recompiling 
or restarting after every change? 

The quickstart's Start.java in Jeremy's suggestion uses Jetty as web server. 
How can I do a similar thing with Tomcat? Any pointers? I am using Tomcat 6.x.

Best,
David

--- On Sat, 5/29/10, Wouter de Vaal wout...@gmail.com wrote:

 From: Wouter de Vaal wout...@gmail.com
 Subject: Re: Can I develop without recompiling/restarting after every change?
 To: users@wicket.apache.org
 Date: Saturday, May 29, 2010, 9:52 AM
 If you're using eclipse, use sysdeo:
 
 http://www.eclipsetotale.com/tomcatPlugin.html
 
 Wouter
 
 2010/5/29 David Chang david_q_zh...@yahoo.com:
  I am using Tomcat, any tips about how to develop out
 recompiling/restarting after every change?
 
  Best.
 
  --- On Fri, 5/21/10, Jeremy Thomerson jer...@wickettraining.com
 wrote:
 
  From: Jeremy Thomerson jer...@wickettraining.com
  Subject: Re: Can I develop without
 recompiling/restarting after every change?
  To: users@wicket.apache.org
  Date: Friday, May 21, 2010, 12:17 PM
  the easiest way to do this is to use
  the Start class (Start.java) from the
  quickstart to run an embedded jetty instance in
 your
  IDE.  then, if you run
  it in debug mode, it will hotswap any possible
 changes (and
  tell you if you
  must restart if it's an incompatible change)
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Fri, May 21, 2010 at 10:53 AM, ekallevig e...@ekallevig.com
  wrote:
 
  
   I'm a front-end developer trying to learn
 Java (total
  n00b) and working on
   a
   wicket application at work.  The whole
 process
  feels very slow primarily
   because I have to recompile and restart JBoss
 every
  time I make a change.
   So I'm wondering what the best way is to
 avoid having
  to do this when
   editing .java/.js/.css/.html files during
 development?
  I'd like to just
   make
   changes and then refresh the browser to test
 -- is
  this possible?
  
   I've seen in the FAQ that you can change the
  application settings to
   auto-reload markup .html files -- where would
 I insert
  this setting
   (remember I'm a total n00b).
  
   As to .css/.js/.java files -- do I need
 jRebel or
  something like that to
   get
   these files to reload automatically?
  
   Thanks for helping out a super-beginner :)
   --
   View this message in context:
   http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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
 
 
 
 
 
 -- 
 check out https://www.memolio.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: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread Wouter de Vaal
Did you use the DevLoader? If so, the eclipse classpath gets loaded
directly into tomcat, making hotreplace and debugging possible. See
http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html
For heavy changes you might need restarts, but eclipse will prompt
when necessary. When you use a tool like JRebel these restarts are let
frequently needed.

Wouter

2010/5/29 David Chang david_q_zh...@yahoo.com:
 Wouter, thanks for your input!

 I got tomcatPlugiin installed as you sugggested and I can start it from 
 within eclipse to run a wicket app. But how can I do development without 
 recompiling or restarting after every change?

 The quickstart's Start.java in Jeremy's suggestion uses Jetty as web server. 
 How can I do a similar thing with Tomcat? Any pointers? I am using Tomcat 6.x.

 Best,
 David

 --- On Sat, 5/29/10, Wouter de Vaal wout...@gmail.com wrote:

 From: Wouter de Vaal wout...@gmail.com
 Subject: Re: Can I develop without recompiling/restarting after every change?
 To: users@wicket.apache.org
 Date: Saturday, May 29, 2010, 9:52 AM
 If you're using eclipse, use sysdeo:

 http://www.eclipsetotale.com/tomcatPlugin.html

 Wouter

 2010/5/29 David Chang david_q_zh...@yahoo.com:
  I am using Tomcat, any tips about how to develop out
 recompiling/restarting after every change?
 
  Best.
 
  --- On Fri, 5/21/10, Jeremy Thomerson jer...@wickettraining.com
 wrote:
 
  From: Jeremy Thomerson jer...@wickettraining.com
  Subject: Re: Can I develop without
 recompiling/restarting after every change?
  To: users@wicket.apache.org
  Date: Friday, May 21, 2010, 12:17 PM
  the easiest way to do this is to use
  the Start class (Start.java) from the
  quickstart to run an embedded jetty instance in
 your
  IDE.  then, if you run
  it in debug mode, it will hotswap any possible
 changes (and
  tell you if you
  must restart if it's an incompatible change)
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Fri, May 21, 2010 at 10:53 AM, ekallevig e...@ekallevig.com
  wrote:
 
  
   I'm a front-end developer trying to learn
 Java (total
  n00b) and working on
   a
   wicket application at work.  The whole
 process
  feels very slow primarily
   because I have to recompile and restart JBoss
 every
  time I make a change.
   So I'm wondering what the best way is to
 avoid having
  to do this when
   editing .java/.js/.css/.html files during
 development?
  I'd like to just
   make
   changes and then refresh the browser to test
 -- is
  this possible?
  
   I've seen in the FAQ that you can change the
  application settings to
   auto-reload markup .html files -- where would
 I insert
  this setting
   (remember I'm a total n00b).
  
   As to .css/.js/.java files -- do I need
 jRebel or
  something like that to
   get
   these files to reload automatically?
  
   Thanks for helping out a super-beginner :)
   --
   View this message in context:
   http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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
 
 



 --
 check out https://www.memolio.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





-- 
check out https://www.memolio.com

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



Re: Very interesting question... my boss complain about one of my implementations...

2010-05-29 Thread Victor_Trapiello

Hi guys, thank you very much for your comments, 

let me explain a little bit deeper my solution, I have a method that create
and execute a thread when I iniciate the aplication, inside if the init
wicket metod, inside of the thread I call another method that updates a
state in the database, I mean if the system time is 48 hours more than the
time saved in that row of the database it updates a field to TRUE, simple

this thread is executed every 30 minutes, 

pseudocode:
Thread runing for ever{
   -Execute method to update the state
   -Sleep thread for 30 minutes
}

Now he told me that I can do something like that with Spring... I´m
absolutly lost, I do not know if he knows what he is saying or just making
me crazy

thanks guyss!!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Very-interesting-question-my-boss-complain-about-one-of-my-implementations-tp2233874p2235762.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



Re: Very interesting question... my boss complain about one of my implementations...

2010-05-29 Thread Victor_Trapiello

Sorry guys I have missed some of your commets I was having a look to
Scheduling jobs using Quartz or Timer and it seems to be a good solution
and easy to implement/integrate with spring, at lists I will have some
arguments to discuss with him on monday!!

Cheerss!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Very-interesting-question-my-boss-complain-about-one-of-my-implementations-tp2233874p2235766.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



Re: Very interesting question... my boss complain about one of my implementations...

2010-05-29 Thread Cristi Manole
read it here

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/scheduling.html

(with spring, and you can integrate it with quartz also).

On Sat, May 29, 2010 at 12:36 PM, Victor_Trapiello vic...@trapiello.netwrote:


 Sorry guys I have missed some of your commets I was having a look to
 Scheduling jobs using Quartz or Timer and it seems to be a good solution
 and easy to implement/integrate with spring, at lists I will have some
 arguments to discuss with him on monday!!

 Cheerss!
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Very-interesting-question-my-boss-complain-about-one-of-my-implementations-tp2233874p2235766.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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
Yes. I am using tomcatPlugin 3.2.1. Here is what I followed as instructed by 
the download:

Version 3.2 

New features :
- Tomcat 6.x supported.
  If you want to use DevLoader with Tomcat 6.x. Rename DevLoader.zip file to 
DevLoader.jar and put it in %Tomcat6_Home%/lib

I modified parenet html or child html a few times, each trigger tomcat's 
restart.

Did I miss something?

Thanks!


--- On Sat, 5/29/10, Wouter de Vaal wout...@gmail.com wrote:

 From: Wouter de Vaal wout...@gmail.com
 Subject: Re: Can I develop without recompiling/restarting after every change?
 To: users@wicket.apache.org
 Date: Saturday, May 29, 2010, 11:52 AM
 Did you use the DevLoader? If so, the
 eclipse classpath gets loaded
 directly into tomcat, making hotreplace and debugging
 possible. See
 http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html
 For heavy changes you might need restarts, but eclipse will
 prompt
 when necessary. When you use a tool like JRebel these
 restarts are let
 frequently needed.
 
 Wouter
 
 2010/5/29 David Chang david_q_zh...@yahoo.com:
  Wouter, thanks for your input!
 
  I got tomcatPlugiin installed as you sugggested and I
 can start it from within eclipse to run a wicket app. But
 how can I do development without recompiling or restarting
 after every change?
 
  The quickstart's Start.java in Jeremy's suggestion
 uses Jetty as web server. How can I do a similar thing with
 Tomcat? Any pointers? I am using Tomcat 6.x.
 
  Best,
  David
 
  --- On Sat, 5/29/10, Wouter de Vaal wout...@gmail.com
 wrote:
 
  From: Wouter de Vaal wout...@gmail.com
  Subject: Re: Can I develop without
 recompiling/restarting after every change?
  To: users@wicket.apache.org
  Date: Saturday, May 29, 2010, 9:52 AM
  If you're using eclipse, use sysdeo:
 
  http://www.eclipsetotale.com/tomcatPlugin.html
 
  Wouter
 
  2010/5/29 David Chang david_q_zh...@yahoo.com:
   I am using Tomcat, any tips about how to
 develop out
  recompiling/restarting after every change?
  
   Best.
  
   --- On Fri, 5/21/10, Jeremy Thomerson jer...@wickettraining.com
  wrote:
  
   From: Jeremy Thomerson jer...@wickettraining.com
   Subject: Re: Can I develop without
  recompiling/restarting after every change?
   To: users@wicket.apache.org
   Date: Friday, May 21, 2010, 12:17 PM
   the easiest way to do this is to use
   the Start class (Start.java) from the
   quickstart to run an embedded jetty
 instance in
  your
   IDE.  then, if you run
   it in debug mode, it will hotswap any
 possible
  changes (and
   tell you if you
   must restart if it's an incompatible
 change)
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Fri, May 21, 2010 at 10:53 AM,
 ekallevig e...@ekallevig.com
   wrote:
  
   
I'm a front-end developer trying to
 learn
  Java (total
   n00b) and working on
a
wicket application at work.  The
 whole
  process
   feels very slow primarily
because I have to recompile and
 restart JBoss
  every
   time I make a change.
So I'm wondering what the best way
 is to
  avoid having
   to do this when
editing .java/.js/.css/.html files
 during
  development?
   I'd like to just
make
changes and then refresh the browser
 to test
  -- is
   this possible?
   
I've seen in the FAQ that you can
 change the
   application settings to
auto-reload markup .html files --
 where would
  I insert
   this setting
(remember I'm a total n00b).
   
As to .css/.js/.java files -- do I
 need
  jRebel or
   something like that to
get
these files to reload
 automatically?
   
Thanks for helping out a
 super-beginner :)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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
  
  
 
 
 
  --
  check out https://www.memolio.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
 
 
 
 
 
 -- 
 check out https://www.memolio.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional 

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread James Carman
On Sat, May 29, 2010 at 9:31 AM, Sam Zilverberg samzilverb...@gmail.com wrote:
 I looked at Controller but it seems that if i use it i have to respond
 with some ModelAndView object to requests...


If you take care of the request yourself, by spitting back what you're
supposed to on the response, then you just return null.  So, just
copy/paste the guts of your servlet into a controller and it should
work.

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



Re: wicket file upload

2010-05-29 Thread mdh

I don't know about google app engine. The hosting service I'm with uses
tomcat 6.0.x.

However, the software you attached showed me what I needed to do. The bit I
had missed was overriding newWebRequest in my web application. It was
obvious once it had been pointed out to me!

I've not tried it yet, but upgrading to a later version with the
MultipartServletWebRequest constructor that takes a FileItemFactory, should
enable me to use mostly wicket code. I'll simply need to use the overriding
pattern shown in the previously mentioned software to call it.

Thanks.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-file-upload-tp2230621p2235813.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



Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread Igor Vaynberg
look at spring's dispatch servlet

-igor

On Fri, May 28, 2010 at 6:16 PM, Sam Zilverberg samzilverb...@gmail.com wrote:
 Good idea.
 Using:
   ApplicationContext context =
 WebApplicationContextUtils.getWebApplicationContext(getServletContext());
   someDao = (IDAOentity) context.getBean(someDao);

 Works.

 However I was hoping to continue using @SpringBean somehow...

 -Sam


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



Re: AjaxFormComponentUpdatingBehavior and AttributeAppender

2010-05-29 Thread Igor Vaynberg
make your attrmodifier use js events instead of directly adding things
into the tag attribute.

-igor

On Sat, May 29, 2010 at 1:20 AM, Alexander Monakhov domin...@gmail.com wrote:
 Hi, guys.

 I noticed AjaxFormComponentUpdatingBehavior overwrites earlier added with
 AttributeAppender/AttributeModifier handlers.
 Could you give me any suggestion how to make them coexistent?

 Best regards, Alexander.


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



Re: RE: Rich Text Editors and Wicket

2010-05-29 Thread nicolas melendez
I also use use YUI editor with wicket, see:
http://www.clasificad.com.ar/clasificadoNuevo

http://www.clasificad.com.ar/clasificadoNuevoNM

On Sat, May 29, 2010 at 7:10 AM, wicketyan wicket...@gmail.com wrote:

 thanks Hammer,I'm learning.


 2010-05-29



 wicketyan



 发件人: M. Hammer
 发送时间: 2010-05-29  15:54:09
 收件人: users
 抄送:
 主题: RE: Rich Text Editors and Wicket

 Quoting Chris Colman chr...@stepaheadsoftware.com:
  Is your YUI/Wicket component/integration code publicly available or
  could it be?
 I've written a blog post on the integration:
 http://www.hammersoft.de/blog/?p=31
 Maybe a FckEditor integration can be done in a similar manner. Keep me
 posted if you do this, I am not entirely happy with YUI either.
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: custom html page

2010-05-29 Thread msalman

Hi Martin,

Yes, you are very right about that.  


Thanks.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2235861.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



Re: date picker calendar shown on text field clicked

2010-05-29 Thread Vytautas Čivilis
Is everything ok with this patch?

V

2010/5/28 Vytautas Čivilis cvl...@gmail.com

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


 On Fri, May 28, 2010 at 9:18 PM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 2010/5/28 Vytautas Čivilis cvl...@gmail.com

  Hi.
 
  It would be great, if you'd consider including following code to make
  TextField, that is assigned to date picker, aware of date picker itself.
  So,
  when TextField is clicked, picker calendar would be displayed.
 
  Implement it is very easy:
 
 
  in wicket-date.js:
 
  add some configuration property, like showCalendarOnTextFieldSelect and
 use
  it next to line:
 
  YAHOO.util.Event.addListener(cfg.icon, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
 
  //new code below:
 
  if(cfg.showCalendarOnTextFieldSelect) {
 YAHOO.util.Event.addListener(cfg.widgetId, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
  }
 
 
  Sorry that I didn't provide the patch, I could do it if you'd seriously
  consider incorporating this feature.
 
  V
 

 Please create a JIRA for this with patch attached.

 --
 Jeremy Thomerson
 http://www.wickettraining.com





Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread bht
Hi,

For best performance of redeploys in Wicket, consider storing HTML not
in the Java package structure but in the web directory. So if your IDE
and app server allow for hot deployment, then HTML changes deploy much
faster, ie instantly. In your application init(), you add one
statement 

getResourceSettings().addResourceFolder(wicket);

where wicket matches the url-pattern in your filter-mapping in
web.xml.

PLease see https://issues.apache.org/jira/browse/WICKET-2881 for some
background on how to take this one step further.

Additionally, with GlassFish V3, you get session preservation on hot
deployment of Java classes.

You can enable deploy on save for convenience.

If that is not fast enough, you can run your app in debug mode and hot
swap classes after save while you are debugging it.

All this comes with the NetBeans IDE. You really don't have to worry
about this stuff anymore.

Regards

Bernard



On Sat, 29 May 2010 16:12:46 +0100, you wrote:

have you tried JRebel?  I've not used it myself, but there was an 
interview on JavaPosse recently, sounds like it'd be an ideal fit for 
any Wicket developer.

Dan

On 22/07/28164 20:59, David Chang wrote:
 I am using Tomcat, any tips about how to develop out recompiling/restarting 
 after every change?

 Best.

 --- On Fri, 5/21/10, Jeremy Thomersonjer...@wickettraining.com  wrote:


 From: Jeremy Thomersonjer...@wickettraining.com
 Subject: Re: Can I develop without recompiling/restarting after every 
 change?
 To: users@wicket.apache.org
 Date: Friday, May 21, 2010, 12:17 PM
 the easiest way to do this is to use
 the Start class (Start.java) from the
 quickstart to run an embedded jetty instance in your
 IDE.  then, if you run
 it in debug mode, it will hotswap any possible changes (and
 tell you if you
 must restart if it's an incompatible change)

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Fri, May 21, 2010 at 10:53 AM, ekallevige...@ekallevig.com
 wrote:

  
 I'm a front-end developer trying to learn Java (total

 n00b) and working on
  
 a
 wicket application at work.  The whole process

 feels very slow primarily
  
 because I have to recompile and restart JBoss every

 time I make a change.
  
 So I'm wondering what the best way is to avoid having

 to do this when
  
 editing .java/.js/.css/.html files during development?

 I'd like to just
  
 make
 changes and then refresh the browser to test -- is

 this possible?
  
 I've seen in the FAQ that you can change the

 application settings to
  
 auto-reload markup .html files -- where would I insert

 this setting
  
 (remember I'm a total n00b).

 As to .css/.js/.java files -- do I need jRebel or

 something like that to
  
 get
 these files to reload automatically?

 Thanks for helping out a super-beginner :)
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.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: Very interesting question... my boss complain about one of my implementations...

2010-05-29 Thread Jeremy Thomerson
On Sat, May 29, 2010 at 11:27 AM, Victor_Trapiello vic...@trapiello.netwrote:


 Hi guys, thank you very much for your comments,

 let me explain a little bit deeper my solution, I have a method that create
 and execute a thread when I iniciate the aplication, inside if the init
 wicket metod, inside of the thread I call another method that updates a
 state in the database, I mean if the system time is 48 hours more than the
 time saved in that row of the database it updates a field to TRUE, simple

 this thread is executed every 30 minutes,

 pseudocode:
 Thread runing for ever{
   -Execute method to update the state
   -Sleep thread for 30 minutes
 }

 Now he told me that I can do something like that with Spring... I´m
 absolutly lost, I do not know if he knows what he is saying or just making
 me crazy


Your boss is right on this one.  You typically shouldn't be doing this kind
of thing on your own.  You should use TimerTasks, or Quartz, et cetera, as
several have mentioned.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: date picker calendar shown on text field clicked

2010-05-29 Thread Jeremy Thomerson
2010/5/29 Vytautas Čivilis cvl...@gmail.com

 Is everything ok with this patch?


Don't know - haven't had time to look at it (and I probably won't personally
any time this week).

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: date picker calendar shown on text field clicked

2010-05-29 Thread Doug Leeper

I actually have a requirement for the Date Picker to be shown when focus is
applied to the field.  Is this possible too?  Can this be configurable, i.e.
not all fields have this onfocus behavior?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/date-picker-calendar-shown-on-text-field-clicked-tp2234853p2236054.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



Re: Re: RE: Rich Text Editors and Wicket

2010-05-29 Thread wicketyan
sorry.can't see http://www.clasificad.com.ar/clasificadoNuevo . Even I used 
proxy,there is no rich text editors,just a publica file page.

2010-05-30 



wicketyan 



发件人: nicolas melendez 
发送时间: 2010-05-30  02:56:14 
收件人: users 
抄送: 
主题: Re: RE: Rich Text Editors and Wicket 
 
I also use use YUI editor with wicket, see:
http://www.clasificad.com.ar/clasificadoNuevo
http://www.clasificad.com.ar/clasificadoNuevoNM
On Sat, May 29, 2010 at 7:10 AM, wicketyan wicket...@gmail.com wrote:
 thanks Hammer,I'm learning.


 2010-05-29



 wicketyan



 发件人: M. Hammer
 发送时间: 2010-05-29  15:54:09
 收件人: users
 抄送:
 主题: RE: Rich Text Editors and Wicket

 Quoting Chris Colman chr...@stepaheadsoftware.com:
  Is your YUI/Wicket component/integration code publicly available or
  could it be?
 I've written a blog post on the integration:
 http://www.hammersoft.de/blog/?p=31
 Maybe a FckEditor integration can be done in a similar manner. Keep me
 posted if you do this, I am not entirely happy with YUI either.
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

-- 
Nicolás Meléndez
Java Software Developer
1) Google App Engine works:
1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)
1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)
2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez