Re: OT: good java hosting

2014-01-16 Thread Josh Kamau
look at this too https://www.*digitalocean*.com/


On Thu, Jan 16, 2014 at 11:17 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 My current hosting is not very expensive and it was working OK for quite a
 long time. But recently  I have got complaints from users about down times.
 Right now server has been down for a day and their support team has failed
 to give me a proper answer/fix. They already claimed everything was fixed
 and asked me to re-install everything, which was annoying/disappointing,
 just to discover, a few minutes ago, that old problem still remains. I'm
 willing to pay a bit more and have satisfied customers.

 Thanks!

 On Thu, Jan 16, 2014 at 9:07 PM, Jesus Mireles toxi...@gmail.com wrote:

  I've been using myhosting.com.  I'm not going to claim they are the
  greatest, but I havent had problems with uptime, speed or price.  I stick
  to custom VPS.
 
 
  On Thu, Jan 16, 2014 at 1:58 PM, Brown, Berlin [PRI-1PP] 
  berlin.br...@primerica.com wrote:
 
   It is a little pricey.  But I prefer linode for virtual hosting.  And
  they
   have good docs on tomcat configuration
  
   -Original Message-
   From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
   Sent: Thursday, January 16, 2014 9:55 AM
   To: users@wicket.apache.org
   Subject: Re: OT: good java hosting
  
   Dank je wel!
  
  
   On Thu, Jan 16, 2014 at 3:52 PM, Thomas Matthijs li...@selckin.be
  wrote:
  
hetzner.de
   
   
On Thu, Jan 16, 2014 at 3:50 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
 Danje wel,

 Bijvoorbeeld?

 Thanks!


 On Thu, Jan 16, 2014 at 3:43 PM, Thomas Matthijs li...@selckin.be
 
wrote:

  On Thu, Jan 16, 2014 at 2:54 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   Apologies for the OT message... but I value the opinion of
   people in
 this
   list.
  
   Can you suggest a good place to host Wicket applications? I'm
hosting a
   couple of them somewhere I'm NOT very satisfied with service
provided.
  
   I started to compare offers myself... but a bit of help on that
 direction
   will be appreciated.
  
   1- Applications are not very resource/traffic intensive.
  
   2- Quality of support/up time should be good.
 
   3- Just need any relational database.
  
 
  A cheapish dedicated server might be ideal for this, (and way
  cheaper
 then
  anything that even hits at cloud)
  For 50eur/month you can have 32gb ram quad core i7s
 
  mvg,
 



 --
 Regards - Ernesto Reinaldo Barreiro

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



 --
 Regards - Ernesto Reinaldo Barreiro



Re: quick CRUD application

2013-11-12 Thread Josh Kamau
Look at isis.apache.org

Josh


On Wed, Nov 13, 2013 at 12:09 AM, saty satya...@gmail.com wrote:

 Hi,

 Is it possible to develop/generate a quick CRUD application using wicket,
 something like the OpenXawa does or even JSF

 Thanks




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/quick-CRUD-application-tp4662346.html
 Sent from the Users forum 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: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
Hi;

You use one of them and you feel like you are missing something? No you are
not. The one you are most familiar with is the best.

I use intellij ...

This discussion might also give you what you are looking for.

http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181

Josh


On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:

 At SRMvision we use exclusively IntelliJ for developping. Its excellent
 Maven support, smart completion and robustness made us forget eclipse very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com a
 écrit :

  Who uses what and why?
 
  I've only ever used Eclipse, but I discovered IntelliJ earlier this week
  and it's so different.  Just wondering pros and cons on each.
 
  Thanks!
  ___
  Stephen Walsh | http://connectwithawalsh.com
 



Re: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
There is a free version too... though it wont help you much on Html, js and
css
Josh


On Wed, Feb 20, 2013 at 1:40 AM, Thomas Götz t...@richmountain.de wrote:

 IntelliJ currently costs €179 (personal license). It allows me to work
 *way* more effectively (on a Mac) than with Eclipse, which I find
 cluttered, slow, non-intuitive and simply not supporting my work style/flow.

 Say you gain 10 minutes per day when using IntelliJ and say you charge
 60€/h:
 10min - 10€ (per day), i.e. in ~3 weeks the initial cost is amortised.

 Only my $0.02,
-Tom


 On 19.02.2013, at 23:28, Tim Urberg t...@urberg.net wrote:

  Here's the thing, Intellij is great, but it costs like five zillion
 dollars! (slight exaggeration).  So I use Eclipse since its FREE! and it
 works great for me (even on a Mac).  The nice thing about Wicket is that
 you don't need any special IDE plugins to use it.  As long as your IDE
 knows how to do Java (I hope), HTML, CSS and JavaScript (which most have
 built in editors for out of the box).  Then you're good.
 
  On 2/19/13 4:09 PM, Francois Meillet wrote:
  You have a mac ?
  Choose the best tool !
  Choose Intellij !
 
 
 
  François Meillet
  Formation Wicket - Développement Wicket
 
 
 
 
 
  Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com
 a écrit :
 
  That's what I'm hoping for.  IntelliJ looks a lot more polished
 especially
  for the Mac.
 
  Eclipse is crippling at times because it is so slow.  Just sort of
 getting
  a feel for the Wicket community and what people like best.
 
 
  ___
  Stephen Walsh | http://connectwithawalsh.com
 
 
  On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
  Hi;
 
  You use one of them and you feel like you are missing something? No
 you are
  not. The one you are most familiar with is the best.
 
  I use intellij ...
 
  This discussion might also give you what you are looking for.
 
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181
 
  Josh
 
 
  On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com
 wrote:
 
  At SRMvision we use exclusively IntelliJ for developping. Its
 excellent
  Maven support, smart completion and robustness made us forget eclipse
  very
  quickly.
  Le 19 févr. 2013 22:18, Stephen Walsh 
 step...@connectwithawalsh.com
  a
  écrit :
 
  Who uses what and why?
 
  I've only ever used Eclipse, but I discovered IntelliJ earlier this
  week
  and it's so different.  Just wondering pros and cons on each.
 
  Thanks!
  ___
  Stephen Walsh | http://connectwithawalsh.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: Graphic Apache Wicket

2013-02-05 Thread Josh Kamau
Hi;

It is highly unlikely that your question as it is now will get answered.

Josh.


On Wed, Feb 6, 2013 at 12:00 AM, Antonio muñoz alonso 
antoniovalenciasp...@hotmail.com wrote:

 Hi
 Anyone know how I can put graphics?
 thanks.


Re: Wicket job market

2013-02-04 Thread Josh Kamau
Does anyone think the rise of javascript based single page thick client
type of applications are eating on wickets share? When i try to sell wicket
to my peers, they normally argue that they want a stateless client and a
stateful rich clients. The kind of clients that you build with javascript
toolkits such as angular, backbone etc. One of the main reason why i
started using wicket was my phobia for javascript. That phobia is no more.
Infact i want more and more control over the javascript on my client.  Does
anyone else share the same sentiments?  I am still a huge wicket fun and i
use it in many projects.
Josh.


On Mon, Feb 4, 2013 at 5:53 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi,

 On Mon, Feb 4, 2013 at 3:20 PM, Tim Urberg t...@urberg.net wrote:

  I wouldn't discount Apache, look at how Struts took off, and look at the
  Apache HTTP server, the most widely used server on the web.  Apache may
 not
  be a big corporation but they are a still a big name.
 
 
 It is not my intention to discount Apache (read my allusion to well
 established frameworks as Struts). I just wanted to pointing out that for
 managers it is a lot easier to decided for WELL established names that
 for newcomers... Things like

 1-how/where do I find programmers that know this technology.?
 2- Is my team going to catch up quickly with new things, would they be able
 to solves difficult issues?
 3- if not who is available on my local marked that will be able to solve
 those issues for me at a reasonable price?
 4- What do I gain risking new technology? Please show me a nice free (or
 cheap) well maintained component pack I can use to solve my
 problems/quickly build my applications.

 Those are the questions I have faced when trying to get wicket adopted.


 
  On 2/4/13 7:37 AM, Ernesto Reinaldo Barreiro wrote:
 
  Hi,
 
  IMHO on countries that invest heavily on RD (new technologies) like
  Germany, Netherlands, UK, USA, etc Wicket market is growing... and you
 can
  find lots of Jobs posts asking for Wicket versed programmers.. See
 
  http://www.indeed.de/Jobs?q=**Wicketl=
 http://www.indeed.de/Jobs?q=Wicketl=
  http://www.indeed.nl/Wicket-**vacatures
 http://www.indeed.nl/Wicket-vacatures
  http://www.indeed.fr/emplois?**q=Wicketl=
 http://www.indeed.fr/emplois?q=Wicketl=
  http://www.indeed.co.uk/jobs?**q=Wicketl=
 http://www.indeed.co.uk/jobs?q=Wicketl=
 
  compare to
 
  http://www.indeed.es/ofertas?**q=Wicketl=
 http://www.indeed.es/ofertas?q=Wicketl=
 
  :-(
 
  As many other OpenSource projects its development depends largely on
  volunteers and on companies willing to pay back with employee time
  for maintenance/documentation. etc. So, there is no point on comparing
  with
  frameworks backed by big players or well established frameworks.
 
  At least in Spain my experience is that:
 
  1- I do not risk my ass decision makers are a big obstacle for
 adoption:
  they just want to hear about big names backed software  or at least
 well
  know/established software... so that, if development ins't going as
  planned, it is not a problem of the framework selected.
  2- Many programmers comming from Struts like frameworks background have
  big
  problems in caching up with OOP required for Wicket and the Wicket
 way.
  3- Lack of a unified place where to find free/well-supported
 commercial
  quality components doesn't help either when you want to sell wicket.
 
  On Mon, Feb 4, 2013 at 1:05 PM, Philippe Demaison 
 ph.demai...@gmail.com
  wrote:
 
   Hello,
 
  Let's say that the most popular java web frameworks are Wicket,
 Tapestry,
  GWT, Spring MVC.
 
  Have you seen the graph ?
 
  http://www.indeed.com/**jobtrends?q=Wicket%2C+**
  Tapestry%2C+GWT%2C+%22Spring+**MVC%22
 http://www.indeed.com/jobtrends?q=Wicket%2C+Tapestry%2C+GWT%2C+%22Spring+MVC%22
 
 
 
  Other frameworks
  Play Framework, Apache Click, Stripes, Struts, JSF, Seam
 
  http://www.indeed.com/**jobtrends?q=%22Play+Framework%**
  22%2C+%22Apache+Click%22%2C+**Stripes%2C+Struts%2C+JSF%2C+**Seam
 http://www.indeed.com/jobtrends?q=%22Play+Framework%22%2C+%22Apache+Click%22%2C+Stripes%2C+Struts%2C+JSF%2C+Seam
 
 
 
  What needs to be improved to get a wider adoption of Wicket ?
 
  Best regards
  Phlippe
 
 
 
 
 
  --**--**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Regards - Ernesto Reinaldo Barreiro
 Antilia Soft
 http://antiliasoft.com/ http://antiliasoft.com/antilia



Re: Wicket as rest backend....

2012-09-20 Thread Josh Kamau
Thanks Bruno... i will take alook

On Thu, Sep 20, 2012 at 9:56 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 Take a look at the (very outdated) wicket-rest project:
 http://code.google.com/p/wicket-rest/

 *Bruno Borges*
 (11) 99564-9058
 *www.brunoborges.com*



 On Thu, Sep 20, 2012 at 2:54 PM, Josh Kamau joshnet2...@gmail.com wrote:

  Hi Guys;
 
  Is there a way(a sub project may be..) of exposing a wicket web app as a
  REST API ?
 
 
  Josh.
 



Re: Wicket as rest backend....

2012-09-20 Thread Josh Kamau
Good idea...

I would like to use JSON though...

Josh.

On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 I have implemented rest like services by mounting pages and using them to
 generate XML content instead of HTML.

 On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com wrote:

  Hi Guys;
 
  Is there a way(a sub project may be..) of exposing a wicket web app as a
  REST API ?
 
 
  Josh.
 



 --
 Regards - Ernesto Reinaldo Barreiro
 Antilia Soft
 http://antiliasoft.com



Re: RestartResponseAtInterceptPageException

2012-08-13 Thread Josh Kamau
Whoever put that code there wanted it to take a user back to the LoginPage
whenever there is no valid session. It makes sense.  Do you want it to
behave otherwise?

Josh.

On Mon, Aug 13, 2012 at 10:53 AM, Madasamy Sankarapandian 
madas...@mcruncher.com wrote:

 Our application throw this exception when the session is invalidated.

  throw new RestartResponseAtInterceptPageException(LoginPage.class);

  it is working fine on wicket 1.4.x but it is not working on wicket 1.5.7.



Re: I think it's time for a new book.... Igor and Co ?

2012-07-27 Thread Josh Kamau
What if the developers donate (or do a fund raising... ) to fund the
writing of the book?

We could set a budget ... then start pledging for the same.. when the
pledge amount is enough, we pay and the work begins.

Then we get the book for free . or something like that.

Josh

On Fri, Jul 27, 2012 at 10:23 AM, Michael Mosmann mich...@mosmann.dewrote:

 Am 27.07.2012 00:16, schrieb Igor Vaynberg:

  On Fri, Jul 27, 2012 at 12:20 AM, Bertrand Guay-Paquet
 ber...@step.polymtl.ca wrote:

 Seeing how the previous book authors became less active after writing
 a book I think this is not a very good idea... :-/

 Is this because the books didn't sell well enough?

 i can only speak for myself,

 define enough :) i agreed to work on the book knowing full well it was
 not going to sell a million copies. i wrote it so the community has an
 easily accessible resource.

 same for me.. but a german market differ from a more global one:)

  I don't know the authors
 personally and I don't know much about the publishing world so it could
 very
 well be another reason altogether.

 writing the book was a very long and a very exhausting effort, much
 much more then i thought it would be. when i was done the book was
 actually twice as long as what was published, but the publisher wanted
 me to trim it down to keep the cost low... they would have to charge
 more if the book had more pages :/

 I had to come upfront with how much pages it would be in the end. The
 publisher made their calculation based on it, so the page count is more
 strict than some one may think.


 the combination of those two things has burned me out somewhat. at
 least enough to make me want to go play with other things for a while.

 -igor

 same for me, but more time has passed, so i would take the pain again:)
 maybe i am a fool:)

 Michael:)


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




Re: I think it's time for a new book.... Igor and Co ?

2012-07-27 Thread Josh Kamau
As a motivation  everyone or probably top donnors could have their
names somewhere on the book ;)

j

On Fri, Jul 27, 2012 at 11:12 AM, Sebastien seb...@gmail.com wrote:

 +1 too

 About the found raising, maybe could it be a book project in My Major
 Company or Kickstarter for instance...

 Regards,
 Sebastien.

 On Fri, Jul 27, 2012 at 9:27 AM, Josh Kamau joshnet2...@gmail.com wrote:

  What if the developers donate (or do a fund raising... ) to fund the
  writing of the book?
 
  We could set a budget ... then start pledging for the same.. when the
  pledge amount is enough, we pay and the work begins.
 
  Then we get the book for free . or something like that.
 
  Josh
 
  On Fri, Jul 27, 2012 at 10:23 AM, Michael Mosmann mich...@mosmann.de
  wrote:
 
   Am 27.07.2012 00:16, schrieb Igor Vaynberg:
  
On Fri, Jul 27, 2012 at 12:20 AM, Bertrand Guay-Paquet
   ber...@step.polymtl.ca wrote:
  
   Seeing how the previous book authors became less active after writing
   a book I think this is not a very good idea... :-/
  
   Is this because the books didn't sell well enough?
  
   i can only speak for myself,
  
   define enough :) i agreed to work on the book knowing full well it was
   not going to sell a million copies. i wrote it so the community has an
   easily accessible resource.
  
   same for me.. but a german market differ from a more global one:)
  
I don't know the authors
   personally and I don't know much about the publishing world so it
 could
   very
   well be another reason altogether.
  
   writing the book was a very long and a very exhausting effort, much
   much more then i thought it would be. when i was done the book was
   actually twice as long as what was published, but the publisher wanted
   me to trim it down to keep the cost low... they would have to charge
   more if the book had more pages :/
  
   I had to come upfront with how much pages it would be in the end. The
   publisher made their calculation based on it, so the page count is more
   strict than some one may think.
  
  
   the combination of those two things has burned me out somewhat. at
   least enough to make me want to go play with other things for a while.
  
   -igor
  
   same for me, but more time has passed, so i would take the pain again:)
   maybe i am a fool:)
  
   Michael:)
  
  
  
 --**--**-
   To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
  users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: Getting an instance of page from the session

2012-07-24 Thread Josh Kamau
THanks Martin. That helps.

Josh

On Wed, Jul 25, 2012 at 12:37 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 pageRef = page.getPageReference();
 .
 page = getSession().getPageManager().getPage(pageRef.getPageId())

 On Wed, Jul 25, 2012 at 12:31 AM, Josh Kamau joshnet2...@gmail.com
 wrote:
  Hi there ;
 
  Is there a way i can pull an instance of a specific page from the
 session ?
 
  I have a page that has some information  i navigate to several other
  pages.. .now i need to get back to the first page. But i want the
 instance
  that has my information .
 
 
 
  is there a way of doing this?
 
  Josh.



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: I think it's time for a new book.... Igor and Co ?

2012-07-22 Thread Josh Kamau
Who will bell http://en.wikipedia.org/wiki/Belling_the_cat the cat ?

On Sun, Jul 22, 2012 at 12:51 PM, Michael Mosmann mich...@mosmann.dewrote:

 Had the same idea...
 --
 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
 gesendet.



 mlabs mlabs@gmail.com schrieb:

 The title would be ... 'Wicket Internals' ...
 Dive DEEPER into the parts other programmers never reach
 The inner workings of response cycles... what really happens ...
 Oh and esp the Ajax stuff... jQuery integration ... etc...

 TIA



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/I-think-it-s-time-for-a-new-book-Igor-and-Co-tp4650687.html
 Sent from the Users forum 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: E-mail validation link

2012-07-19 Thread Josh Kamau
I do something like this :


   1. Create a confirmation page that takes a confirmation code as a page
   parameter
   2. Mount a page to a url that looks like
   http://domain.com/confirmation?code=somesupersecretcode
   3. When a user registers, i generate the code and put it somewhere in
   the database
   4. I then send him the link as in (2) above but with user specific code
   5. When the user tries to login, i extract the code and check if its
   valid.

Am sure there could be other more clever techniques Will be watching
this thread.

Josh.

On Thu, Jul 19, 2012 at 9:45 PM, Pierre Goupil goupilpie...@gmail.comwrote:

 Good evening,

 I'm currently trying to send a validation e-mail when a user creates an
 account. I'd link to provide a link in order to confirm the subscription.

 Is there any recommended way to do that? In particular, I don't know how to
 write the href of the Link in my e-mail.

 Any help will be much appreciated.

 Regards,

 Pierre Goupil

 --
 Le bonheur n'est pas une destination, mais une façon de voyager.

 Papa d'une petite Lou-Ann depuis le 30 juin.



Re: Wicket and Versioning

2012-07-18 Thread Josh Kamau
Now create something like this

public class CleanUrlMapper extends MountedMapper {

  public CleanUrlMapper(String mountPath, Class? extends IRequestablePage
pageClass) {
super(mountPath, pageClass, new PageParametersEncoder());
  }

  @Override
  protected void encodePageComponentInfo(Url url, PageComponentInfo info) {
// do nothing so that component info does not get rendered in url
  }

  @Override
  public Url mapHandler(IRequestHandler requestHandler)
  {
  if (requestHandler instanceof ListenerInterfaceRequestHandler) {
  return null;
  } else {
   return super.mapHandler(requestHandler);
  }
  }
}

and then mount your pages like this

 mount(new CleanUrlMapper(/home, HomePage.class));


Atleast thats what i do to achieve something like what you want.

Josh.

On Wed, Jul 18, 2012 at 2:53 PM, Alexander Adam, Emia Systems 
a...@emiasys.com wrote:

 Hi!

 I am pretty much lost with Wicket 1.5.7 and versioning. What happens is
 this: I've deactivated versioning by setting serVersioned(false) in my
 page's constructor.
 However, still the page id gets increment each time I call the exact same
 url in my browser i.e. home/?0, home/?1, home/?2, etc.
 I simply don't want this behavior, I want to have a stateful page with
 *exactly* one state at a given time for a given user, not more. How can I
 do that?
 I want page refreshes to destroy anything ajax might have created and the
 such still, I want to be stateful to properly use forms, clickable links
 etc..

 please advise, I'm almost giving up :(

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




Re: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Hi ;

Is the whole listview wrapped in 1 form or there is a form for each row?

Josh.

On Tue, Jul 17, 2012 at 10:02 AM, Tobias Knierim 
tobias.knie...@googlemail.com wrote:

 Hi there,
 I'm new to wicket and have a problem I can't find out for myself.
 Maybe some of you can help me out with this.

 I have a refreshingview with input fields each row. I can add new rows
 on click of a button, but when I submit the form, I want to validate 2
 input fields from different rows. Everything I tried so far hasn't
 worked out, because I was only able to validate values from one row.

 Is it even possible to do something like this?


 Greetings
 Tobi

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




Re: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Tobi ;

May be you can paste some code to show how you are constructing the
forms...

I believe if you just add the validators to the components and then submit
the forms, it just works..

Josh.

On Tue, Jul 17, 2012 at 10:22 AM, Tobias Knierim 
tobias.knie...@googlemail.com wrote:

 Hi Josh,

 The whole view is wrapped in one form.

 Greetings
 Tobi

 Am 17.07.2012 um 09:04 schrieb Josh Kamau joshnet2...@gmail.com:

  Hi ;
 
  Is the whole listview wrapped in 1 form or there is a form for each row?
 
  Josh.
 
  On Tue, Jul 17, 2012 at 10:02 AM, Tobias Knierim 
  tobias.knie...@googlemail.com wrote:
 
  Hi there,
  I'm new to wicket and have a problem I can't find out for myself.
  Maybe some of you can help me out with this.
 
  I have a refreshingview with input fields each row. I can add new rows
  on click of a button, but when I submit the form, I want to validate 2
  input fields from different rows. Everything I tried so far hasn't
  worked out, because I was only able to validate values from one row.
 
  Is it even possible to do something like this?
 
 
  Greetings
  Tobi
 
  -
  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: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Hi Tobi ;

I cant see any Validation code..

Josh.

On Tue, Jul 17, 2012 at 12:01 PM, Tobias Knierim 
tobias.knie...@googlemail.com wrote:

 Hi Josh,

 I just created a little example of how my application is working:
 I want to compare value2 from Entry1 with value1 from Entry2 and so on.

 Any ideas?


 FormValues form = new FormValues(form);
 add(form);

 RefreshingViewEntry refreshingView = new
 RefreshingViewEntry(list, values) {

 @Override
 protected IteratorIModelEntry getItemModels() {
 ListEntry entryList =
 values.getObject().getEntryList();

 ModelIteratorAdapterEntry mia = new
 ModelIteratorAdapterEntry(entryList.iterator()) {

 @Override
 protected IModelEntry
 model(Entry object) {
 return new
 CompoundPropertyModelEntry(object);
 }
 };
 return mia;
 }

 @Override
 protected void populateItem(ItemEntry item) {
 IModelEntry model = item.getModel();

 item.add(new TextFieldString(textOne,
 new
 PropertyModelString(model, value1)));
 item.add(new TextFieldString(textTwo,
 new
 PropertyModelString(model, value2)));
 }

 };

 form.add(refreshingView);

 Tobi


 2012/7/17 Josh Kamau joshnet2...@gmail.com:
  Tobi ;
 
  May be you can paste some code to show how you are constructing the
  forms...
 
  I believe if you just add the validators to the components and then
 submit
  the forms, it just works..
 
  Josh.
 
  On Tue, Jul 17, 2012 at 10:22 AM, Tobias Knierim 
  tobias.knie...@googlemail.com wrote:
 
  Hi Josh,
 
  The whole view is wrapped in one form.
 
  Greetings
  Tobi
 
  Am 17.07.2012 um 09:04 schrieb Josh Kamau joshnet2...@gmail.com:
 
   Hi ;
  
   Is the whole listview wrapped in 1 form or there is a form for each
 row?
  
   Josh.
  
   On Tue, Jul 17, 2012 at 10:02 AM, Tobias Knierim 
   tobias.knie...@googlemail.com wrote:
  
   Hi there,
   I'm new to wicket and have a problem I can't find out for myself.
   Maybe some of you can help me out with this.
  
   I have a refreshingview with input fields each row. I can add new
 rows
   on click of a button, but when I submit the form, I want to validate
 2
   input fields from different rows. Everything I tried so far hasn't
   worked out, because I was only able to validate values from one row.
  
   Is it even possible to do something like this?
  
  
   Greetings
   Tobi
  
   -
   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: Understanding Wicket redirect behavior

2012-07-14 Thread Josh Kamau
I read somewhere that :

When its first time you are accessing a page, tomcat doesnt know if cookies
are supported.. so to be safe, it will embed the session id in the url. IF
you then access another page, this time round tomcat knows what kind of
browser its dealing with ... and if cookies are supported, it wont embed
the session id in the url but will put it in a cookie..

Now to tell tomcat to always use the cookies , you add

session-config
 tracking-modeCOOKIE/tracking-mode
 /session-config


In your web.xml file..

Cheers
Josh

On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 While working on my previous problem I found out that when I do a GET
 to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302
 redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However,
 when I do a GET to /lrm/network I get a 200 response and jsessionid is
 set as a cookie in the response.

 /lrm/network is explicitly mounted as mountBookmarkablePage in
 Application.init(). We are using Tomcat 6.0 and Wicket 1.4.17.

 How can I make /lrm/ms/oid/123 return 200 just like /lrm/network?
 Should we somehow mountBookmarkablePage each such page which we have
 thousands of? Will upgrading to Wicket 1.5 help achieve this behavior?

 Thanks,

 Alec

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




Re: Thanks

2012-07-12 Thread Josh Kamau
Am reading them too

Thanks guys.

On Thu, Jul 12, 2012 at 11:37 AM, Decebal Suiu decebal.s...@asf.ro wrote:

 Thanks for the articles about wicket 6 on http://wicketinaction.com/

 Decebal

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Thanks-tp4650450.html
 Sent from the Users forum 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: Calling OnChange On A dropdownChoice

2012-06-26 Thread Josh Kamau
Thanks for the prompt response.

The dropdown gets repainted... That works fine.  Now i have other
components that gets repainted when the dropdown value is changed. I want
them to be repainted when i change the dropdown  value from inside the code.

On Tue, Jun 26, 2012 at 10:02 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 If you change the model(object) then you just need to re-paint the
 dropdown and it will have the new value selected.

 If you want to select another value without user interaction you can
 use plain JavaScript: selectEl.selectedIndex = 3;
 See http://stackoverflow.com/a/6210445/497381


 On Tue, Jun 26, 2012 at 9:56 AM, Josh Kamau joshnet2...@gmail.com wrote:
  Hi Guys ;
 
  I have a dropdown choice component that has an onchange behavior that
 works
  as expected.
 
  Now, somewhere along the code, i do mydropdown.setModelObject()...
 
  I want the onchange behavior to be triggered without the user having to
  click the dropdown . Is it possible ?
 
  JOsh.



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Calling OnChange On A dropdownChoice

2012-06-26 Thread Josh Kamau
Thanks.. let me try that.

J

On Tue, Jun 26, 2012 at 10:18 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Tue, Jun 26, 2012 at 10:14 AM, Josh Kamau joshnet2...@gmail.com
 wrote:
  Thanks for the prompt response.
 
  The dropdown gets repainted... That works fine.  Now i have other
  components that gets repainted when the dropdown value is changed. I want
  them to be repainted when i change the dropdown  value from inside the
 code.

 I'd suggest to broadcast an event (Wicket 1.5 server-side events) in this
 case.

 
  On Tue, Jun 26, 2012 at 10:02 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  Hi,
 
  If you change the model(object) then you just need to re-paint the
  dropdown and it will have the new value selected.
 
  If you want to select another value without user interaction you can
  use plain JavaScript: selectEl.selectedIndex = 3;
  See http://stackoverflow.com/a/6210445/497381
 
 
  On Tue, Jun 26, 2012 at 9:56 AM, Josh Kamau joshnet2...@gmail.com
 wrote:
   Hi Guys ;
  
   I have a dropdown choice component that has an onchange behavior that
  works
   as expected.
  
   Now, somewhere along the code, i do mydropdown.setModelObject()...
  
   I want the onchange behavior to be triggered without the user having
 to
   click the dropdown . Is it possible ?
  
   JOsh.
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket checkbox problem

2012-06-17 Thread Josh Kamau
Try a dynamic model

Boolean value  ;

check = new CheckBox(check, new ModelBoolean(){

public void setObject(Boolean object){ value=object}
public Boolean getObject(){return value}
});

//YOu may want to add an ajax onchange behaviour to the checkbox if you
want to value to be updated immediately you flip the checkbox.

AjaxLink link = new AjaxLink(link)
{
   @Override
   public void onClick(AjaxRequestTarget target)
   {
   System.out.println(value);
   }
};
add(link);

Try something along those lines.

Josh.


 AjaxLink link = new AjaxLink(link)
 {
@Override
public void onClick(AjaxRequestTarget target)
{
 Boolean x = check.getModelObject();
 System.out.println(x);
}
 };
 add(link);



 The problem is that the check.getModelObject() returns true even if the
 checkbox is unchecked.
 I have tried adding check.modelChanged() method. Nothing changed.

 Any suggestions ?Thx


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-checkbox-problem-tp4650022.html
 Sent from the Users forum 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: Filtercolumn and bigdecimal formatter

2012-05-31 Thread Josh Kamau
Shouldnt the filtering be done when querying the database?

On Thu, May 31, 2012 at 3:32 PM, lang delan...@telfort.nl wrote:

 Hi, I spent hours and hours but can't find any solution:
 I have a datatable with a filter. I want to filter on a BigDecimal field.
 However the output is presented as is. For example   euro 1   instead of
 1,00 euro. I always want to show the amount with two decimals.
 Who can help?


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649624.html
 Sent from the Users forum 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: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Josh Kamau
You dont want to use cdi either?

On 12 May 2012 12:22, hfriederichs h.friederi...@ohra.nl wrote:

Hello,

I'm using wicket 1.5.4, and I tried various approaches in using Wicket and
JPA (using webshere/open jpa). I looked at several posts here, but I keep
ending up writing /more/ boiler plate code and configuration than with plain
old jdbc.
So.
I don't want to write factories. I don't want to write Managers. I don't
want to use Guice. I'd like to inject an EntityManager, but there's no
Servlet, and injecting it in a ServletContextListener obviously doesn't
work.
If your response is like: look at this forum for '' please don't
respond.

Please help

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562.html
Sent from the Users forum 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: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Josh Kamau
Use ebean then. Www.avaje.org  . You just add 1 properties file and you can
start persisting your jpa  entities

On 12 May 2012 12:58, hfriederichs h.friederi...@ohra.nl wrote:

I looked at it, shortly. It's a perfect example of what I mean. I looked at
a
blog by Igor V. And there we go again: you have to do this; and than that.
And then configure this. And don't forget to add a line in xml.
And in the end, put it all together and it's so great.

I don't think so.

I think JPA has to make life easier, and it does for me when I'm not using
Wicket: inject an EntityManager and do my db-stuff. That's how it should be,
IMHO.

Of course, the CDI-blog goes with the usual great-gratitude-comments of
developers who couldn't figure it out either.

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4628598.html

Sent from the Users forum mailing list archive at Nabble.com.

-...


Re: Wicket for large user base website

2012-05-06 Thread Josh Kamau
look at
http://letsgetdugg.com/2010/02/02/clean-looking-wicket-sites-that-can-scale/

Josh.

On Sun, May 6, 2012 at 9:22 PM, kshitiz k.agarw...@gmail.com wrote:

 Hi,

 I have started to learn wicket framework and I like it a lot. I want to
 build a web app for large user base web apps like social networking ones. I
 have read that wicket is best for dekstop based app as it is a bit memory
 consuming but highly flexible. Does it mean that the application may face
 memory problem in future when user base would increase? Is this framework
 meant for dekstop like apps but not web apps with large user base? Please
 dont mind if my question sounds stupid..


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-for-large-user-base-website-tp4613283.html
 Sent from the Users forum 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: Status of wicketstuff jquery integration

2012-05-02 Thread Josh Kamau
Hi Jesse?

Add this to your list of options

http://www.7thweb.net/

http://www.7thweb.net/jquery-ui-samples/

Josh.

On Wed, May 2, 2012 at 11:48 AM, Jesse Long j...@unknown.za.net wrote:

 Hi All,

 I'm interested in using features of the jquery integration in wicketstuff,
 but it seems it is not being maintained. The version of jquery packaged
 with the wicketstuff-jquery jar seems to be 1.3.2, which is quite old
 already. Am I missing something? Is there a preferred way of integrating
 jquery into wicket?

 (WiQuery adds 10Mb to my war. JQWicket looks good, but why choose it over
 wicketstuff-jquery)?

 I also note that the wicketstuff-jquery project does not make use of the
 wicketstuff-jslibraries project. Why not? Is wicketstuff-jslibraries the
 officially recommended way of including js libraries, or should I look
 elsewhere? wicketstuff-jquery method of detecting jquery.js presence seems
 like a hack.

 Thanks,
 Jesse

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




Re: Why everything is stored in Session?

2012-04-24 Thread Josh Kamau
Because Wicket is a Stateful java web framework. Not all java web framework
are stateful. Some are stateless e.g playframework.org.

However, some of us prefer a stateful framework. It makes work easy for the
developer.

Welcome to java... A world of options .

Josh.

On Tue, Apr 24, 2012 at 3:34 PM, Philipp Oppermann 
p.opperm...@googlemail.com wrote:

 Hi, I'm PHP-Programmer and now switching to java (and wicket ;) ). But
 one thing confuses me:

 Why everything is stored in Session?

 In PHP the session is empty except you put something in. And there's
 no Back-button-problem in PHP, when you go back then the site with
 the previous URL will be loaded.

 So why you need to store so much in the session?

 Philipp Oppermann

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




Re: reload model each time

2012-04-14 Thread Josh Kamau
Look at LoadableDetachableModels .

Josh.

On Sat, Apr 14, 2012 at 2:38 PM, Tom Eugelink t...@tbee.org wrote:


 Another newbie question; it is now the case that each model is serialized
 between requests and (I presume) stored in the session. I would really
 prefer if a identifier (primary key + lazy locking versionnr) could be
 remembered and that each time when Wicket needs the model, it is loaded
 from the database.

 Is this possible? Is there something like a ReloadingModel?

 Tom



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




Re: Built with Wicket: showcases for Wicket applications

2012-04-12 Thread Josh Kamau
I built zipgrocery ... my client is still pointing the domain to the test
server... will be fixed soon.

Josh.

On Thu, Apr 12, 2012 at 4:55 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 Thanks for the reminder.

 FYI... whoever built ZipGrocery - you are running your site with the ajax
 debugger still on.



 -Original Message-
 From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
 Sent: Thursday, April 12, 2012 5:49 AM
 To: users@wicket.apache.org
 Subject: Built with Wicket: showcases for Wicket applications

 Built with Wicket is Apache Wicket's portfolio blog showcasing what our
 community has created with your favorite web framework.

 But why only see what others are building when you can share your own
 creation? Submit your application to Built with Wicket. Your application
 doesn't necessarily need to be publicly accessible, but we do want a
 description of what your application does and a screenshot.

http://builtwithwicket.tumblr.com

 Share the love, share your application at Built with Wicket!

 -
 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: Wicket and Menu support

2012-04-07 Thread Josh Kamau
IMHO, Wicket as the largest number of out of the box components of all the
frameworks that i know.
For such things as menus, are they not 'ulli' that have been styled the
way you want..

I think the key thing is ... if you are not familiar with HTML and CSS, you
may not like wicket. Because if leaves writting html and styling the
elements to you.

Josh.

On Sun, Apr 8, 2012 at 8:19 AM, msalman mohammad_sal...@yahoo.com wrote:

 Wicket is a great product and I really hope that I do not offend any one by
 my question.  Indeed this may be due to my lack of information.  What I
 want
 to know is why does not Wicket 'core' supports menu and other items
 necessary to develop a website?  I have to search  for YUI wicket,
 wicket-stuff, and wicket-extensions, which are some what phantom like
 websites.  After some research I find that the code I am looking for is not
 even supported any more.  The kind developer has moved on to other stuff.

 So what is the qualification for you to include a control(?) into the
 Wicket
 'core'?  What is the suggested way to handle stuff like this?

 Thanks.


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Menu-support-tp4540516p4540516.html
 Sent from the Users forum 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: Redirect to external URL

2012-04-01 Thread Josh Kamau
Thanks Martin... I have realized this link should not even hit my server...

Josh

On Sun, Apr 1, 2012 at 3:32 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 You can't do this with RTUE. RTUE works with http redirect.
 If you use Ajax then do: target.appendJS(window.open(url, '_blank'))
 If it is not Ajax then you have to do it with : a target='_blank'

 On Sun, Apr 1, 2012 at 2:22 PM, Josh Kamau joshnet2...@gmail.com wrote:
  Hi there ;
 
  I am using throw new RedirectToUrlException to go to an external page  .
 No
  how do i make the external page open on a new tab ?
 
  regards.
  Josh.



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Redirect to external URL

2012-04-01 Thread Josh Kamau
I used ExternalLink and it worked perfectly.

Thanks.

On Sun, Apr 1, 2012 at 3:37 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Then use ExternalLink attached to a target='_blank' ..

 On Sun, Apr 1, 2012 at 2:35 PM, Josh Kamau joshnet2...@gmail.com wrote:
  Thanks Martin... I have realized this link should not even hit my
 server...
 
  Josh
 
  On Sun, Apr 1, 2012 at 3:32 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  Hi,
 
  You can't do this with RTUE. RTUE works with http redirect.
  If you use Ajax then do: target.appendJS(window.open(url, '_blank'))
  If it is not Ajax then you have to do it with : a target='_blank'
 
  On Sun, Apr 1, 2012 at 2:22 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
   Hi there ;
  
   I am using throw new RedirectToUrlException to go to an external page
  .
  No
   how do i make the external page open on a new tab ?
  
   regards.
   Josh.
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: AJAX Requests Too Slow, Have a Delay on Component Refresh

2012-03-26 Thread Josh Kamau
In my opinion,

The delay could be caused by :

1. What  processing is being done before ajax request returns (may be some
database operations are taking place)
2. Network speed

If you could show the code where ajax is taking time , the Gurus here will
be able to help.

Josh.

On Mon, Mar 26, 2012 at 4:53 PM, eugenebalt eugeneb...@yahoo.com wrote:

 I'll try the IndicatorAjax, but is there a reason for the noticeable delay?

 Is it possible to configure a shorter period for Ajax updates?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AJAX-Requests-Too-Slow-Have-a-Delay-on-Component-Refresh-tp4499154p4505872.html
 Sent from the Users forum 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: Apache Wicket 6.0.0-beta1 is released

2012-03-26 Thread Josh Kamau
Fantastic... Thanks Guys.

Josh.

On Mon, Mar 26, 2012 at 9:43 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 The Wicket team is proud to announce the first beta release of the
 Wicket 6.x series.
 This release brings over many improvements over the 1.5.x series.

 The roadmap with the major goals can be found at
 https://cwiki.apache.org/WICKET/wicket-60-roadmap.html.
 The migration guide with all major and some minor changes can be found
 at https://cwiki.apache.org/WICKET/migration-to-wicket-60.html.

 Git tag:
 release/wicket-6.0.0-beta1

 Changelog:

 https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12315431
 Many of the listed tickets are fixed both in 1.5.x and 6.0.x.

 Maven:
 dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket-core/artifactId
  version6.0.0-beta1/version
 /dependency


 Download the full distribution (including source):
 http://www.apache.org/dyn/closer.cgi/wicket/6.0.0-beta1

 We don't plan any more API breaks but if you find something that can
 be made better now it the time
 to discuss it! We will try to avoid making any API changes in the
 Release Candidates that will follow this
 beta release.
 Any feedback about the new features, their implementation and their
 documentation is very welcome!


 The Wicket team!

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




Re: mouseover in wicket

2012-03-24 Thread Josh Kamau
Also look at Visural wicket project. It has some nice tootips.

http://code.google.com/p/visural-wicket/
http://wicket.visural.net/examples/

Josh

On Sat, Mar 24, 2012 at 7:14 PM, Pierre Goupil goupilpie...@gmail.comwrote:

 There's a project called jwicket-tooltip in wicketstuff. If you don't
 mind using jQuery, this could be a good spot. But a js lib just for that
 may be overkill as well. Have a look at wicketstuff-minis too, it may be
 more lightweight.

 Regards,

 Pierre Goupil



 On Sat, Mar 24, 2012 at 4:53 PM, Dan12321 wee...@centrum.cz wrote:

  Hello,
  is possible to create mouseover and show tooltip (wicket panel with html)
  when I move cursor over html element/text/link. Is there any way how to
 do
  it in wicket?
  Thanks.
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/mouseover-in-wicket-tp4501543p4501543.html
  Sent from the Users forum 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
 
 


 --
 Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
 assez fort.



Re: AJAX Requests Too Slow, Have a Delay on Component Refresh

2012-03-23 Thread Josh Kamau
Use indicatorAjax* components

On 23 Mar 2012 18:19, eugenebalt eugeneb...@yahoo.com wrote:

In our Wicket app, we see that AJAX actions (for example, click a button to
show an additional panel under it with new components) take a few seconds.

The actions work, but there is a small delay, and the cursor doesn't change
into an hourglass to indicate that anything is going on, it remains as the
arrow pointer.

1) Can anything be done to speed up AJAX?
2) Also, can anything be done to indicate the busy status?

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AJAX-Requests-Too-Slow-Have-a-Delay-on-Component-Refresh-tp4499154p4499154.html
Sent from the Users forum 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: refresh component

2012-03-17 Thread Josh Kamau
do something like this ...

on the markup template

span wicket:id=mySpansome texts/pan

on java
Label mySpan = new Label(mySpan, new AbstractReadonlyModelString(){

 public String getObject() {
   return myUpdatedText ;
 }
});
mySpan.setOutputMarkupId(true) ;

//on your ajax line
updateMyText();
ajaxRequestTarget.add(mySpan);

Josh.

On Sat, Mar 17, 2012 at 5:15 PM, Dan12321 wee...@centrum.cz wrote:

 Hello,
 I have got span element () with text and I would like to refresh this
 span when I click on ajaxlink. It is possible? How can refresh only this
 span element.
 The ajaxlink is not connect with this span element. These are two different
 elements in page.

 Thanks.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/refresh-component-tp4480640p4480640.html
 Sent from the Users forum 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: How to build a hudson/jenkins like live log viewer?

2012-03-16 Thread Josh Kamau
James ;

Load the file , set it as value for a label component, then add
ajaxtimerbehaviour (or something like that) to keep refreshing the label..

Josh.

On Fri, Mar 16, 2012 at 10:26 PM, kiwi.ryu kiwi@gmail.com wrote:

 Hi, am working on kind of similar use case to build a log viewer. New to
 wicket..can you share how would you invoke this code from your wicket class
 based on user selection of a file? appreciate ur inputs. thank you.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-tp4090224p4479107.html
 Sent from the Users forum 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: I want update value in second textfield when i type something in second Textfield

2012-03-12 Thread Josh Kamau
Did you mean update textfield1 when something is typed on textfield2?

On Mon, Mar 12, 2012 at 3:02 PM, ajit.khule33 ajit.khul...@gmail.comwrote:

 Please tell me how it will get updated when event on one textfield

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/I-want-update-value-in-second-textfield-when-i-type-something-in-second-Textfield-tp4465876p4465876.html
 Sent from the Users forum 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: I want update value in second textfield when i type something in second Textfield

2012-03-12 Thread Josh Kamau
Try this

//at the top of the your class
private String ltpPriceCE =  ;

txtLtpPriceCE = new TextFieldString(txtwicketid, new ModelString(){

  public void setObject(String object) {
 ltpPriceCE = object
  }

  public String getObject(){
return ltpPriceCE ;
  }
});

txtIntrinsicValueCE = new TextFieldString(txtwicketid, new
ModelString(){

  public void setObject(String object) {
 ltpPriceCE = object
  }

  public String getObject(){
return ltpPriceCE ;
  }
});

txtLtpPriceCE.add(new OnChangeAjaxBehavior() {
   @Override

   protected void
onChange(AjaxRequestTarget target) {


target.addComponent(txtIntrinsicValueCE);
   }


});

On Mon, Mar 12, 2012 at 5:42 PM, ajit.khule33 ajit.khul...@gmail.comwrote:

 sorry dude it not worked
 if u have another trick please tell me...

 thanxxx dude...

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/I-want-update-value-in-second-textfield-when-i-type-something-in-first-Textfield-tp4465876p4466206.html
 Sent from the Users forum 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: Ajax DropDownChoice messing DDC Model :S

2012-03-11 Thread Josh Kamau
Your otherDDC does not have a model, show us how you are creating it and i
will tell where the mistake is .

Josh

On Sun, Mar 11, 2012 at 7:12 PM, jhonnytunes jhonnyl...@gmail.com wrote:

 Hi Wicket gurus.

 I want the behaivor of AJAXchange the models after updatings the selecction
 of the make like the example of wicketstuff.org. Im having trouble in the
 onUpdate of the DDC, everything is fine till I update the first
 dropdownchoice. It spit me an excetption: Attempt to set model object on
 null model of component panelname.myDDC but im not touching myDDC in the
 ajax request. Please help.

 //SAMPLE CODE:

 MyDDC.add(new AjaxFormComponentUpdatingBehavior(onchange){

@Override
protected void onUpdate(AjaxRequestTarget target) {

target.add(OtherDDC);

}

});


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Ajax-DropDownChoice-messing-DDC-Model-S-tp4464119p4464119.html
 Sent from the Users forum 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: double click on AjaxSubmitLink and page expired

2012-03-06 Thread Josh Kamau
How about something as easy as checking if the session has been cleared
before calling set response page...

e.g

if(sessionNotClear...){
   session.clear();
   setResponsePage()
}

On Tue, Mar 6, 2012 at 2:16 PM, rebecca rivka.shis...@gmail.com wrote:

 sorry - i forgot - I'm using wicket 1.4.18

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4449457.html
 Sent from the Users forum 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: Shrinking the session size, simply by zipping it. Saved my day.

2012-02-20 Thread Josh Kamau
Thanks Emond Papegaaij

Thats fantastic.

Josh

On Mon, Feb 20, 2012 at 7:08 PM, Emond Papegaaij emond.papega...@topicus.nl
 wrote:

 Thanks for the suggestion! I've just implemented this. It should be
 available
 in 1.5.5 and 6.0.0, see https://issues.apache.org/jira/browse/WICKET-4419for
 details.

 Best regards,
 Emond

 On Monday 20 February 2012 10:48:52 Josh Kamau wrote:
  Thanks for the post.
 
  I wish this could be integrated into the core.
 
  Josh.
 
  On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness 
 
  robert.mcguinness@gmail.com wrote:
   very nice thanks!
  
   --
   View this message in context:
  
 http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simp
   ly-by-zipping-it-Saved-my-day-tp4402980p4403065.html Sent from the
 Users
   forum 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: Announcing Built with Wicket

2012-02-20 Thread Josh Kamau
The list is likely to be too long. May be you could add categories or tags
e.g ecommerce, social networking, cms, .

Josh.

On Mon, Feb 20, 2012 at 4:00 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 We all know that Apache Wicket is an amazing framework for building
 web applications, so why not share the love? Built with Wicket is a
 blog for showcasing all websites and applications that use Wicket as
 the web framework.

 Follow Built with Wicket at http://builtwithwicket.tumblr.com and
 enjoy these websites and applications. Bask in the knowledge that you
 are not the only one making beautiful applications with Apache Wicket.

 Want to share your own application or website built with Wicket? Take
 a screenshot and submit your description at
 http://builtwithwicket.tumblr.com/submit and we'll take care of the
 rest.

 Thank you for using Wicket and let us know about your work!

 The Apache Wicket Team

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




Re: Shrinking the session size, simply by zipping it. Saved my day.

2012-02-19 Thread Josh Kamau
Thanks for the post.

I wish this could be integrated into the core.

Josh.

On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness 
robert.mcguinness@gmail.com wrote:

 very nice thanks!

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simply-by-zipping-it-Saved-my-day-tp4402980p4403065.html
 Sent from the Users forum 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: help with form submit

2012-01-31 Thread Josh Kamau
Hi ;

There are many ways of doing that. For now i will assume that you are not
using ajax. I will assume that you are using Model .

you can do this.

on your page, add a message property.

private String message ;

//then add a label that reads and rights to the message

add(new Label(mylabel, new ModelString(){

  public String getObject(){
  return message ;
  }

 public void setObject(String object){
  message = object ;
 }
}))

Then on your form submit , set the message value.

When ever page refreshes, the label will display the new value.

Hope that helps.

Josh.

On Tue, Jan 31, 2012 at 11:45 AM, srinash avisrid...@gmail.com wrote:

 Hello, I am a beginner to wicket. I am currently having a form with email
 and
 password. I am able to validate the fields, now the next challenge is how I
 can display a text just above the form (like 'email' submission successful)
 after both fields do not have errors and clear the form fields.

 Help will be appreciated

 TIA

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343850.html
 Sent from the Users forum 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: help with form submit

2012-01-31 Thread Josh Kamau
To use ajax, just and the label in my previous example in your instance of
AjaxRequestTarget and make sure you have set OutputMarkupId to true for the
label.

Now if you want to submit the form via ajax, you can use an
AjaxSubmitLink

Josh.

On Tue, Jan 31, 2012 at 12:07 PM, srinash avisrid...@gmail.com wrote:

 Thanks for the reply. I will need to use Ajax as i would not want to
 refresh
 the page. CAn you let me know how I can do this by using a fallbackbutton,
 an example would be good.

 thank you

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343890.html
 Sent from the Users forum 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: Google bot see my site with errors!!

2012-01-30 Thread Josh Kamau
Does your homepage constructor have any arguments?

Josh.

On Tue, Jan 31, 2012 at 2:23 AM, Paolo irresistible...@gmail.com wrote:

 Google can't see my web site!
 I tried to subscribe my site domain to some Google and Other company
 services, i.e to be a publisher

 I think that some bots see my site with errors!! Infact my site is not in
 google search! :-)

 I used this trick to check how google view my site:


 http://translate.google.com/translate?hl=ensl=ittl=enu=http%3A%2F%2Fwww.storeyoutube.com%2F

 as you can see the page report an error (see below).
 also another page report an error.


 http://translate.google.com/translate?hl=ensl=ittl=enu=http%3A%2F%2Fwww.storeyoutube.com%2Fwatch%3Fv%3DuSD4vsh1zDA

 My web site look work correctly: www.storeyoutube.com

 The only unusual thing I'm doing is that I have my app deployed at my
 domain root with ROOT.war.
 I have the server at my home PC with tomcat on port 80. I have ADSL with
 fix IP address.


 Unexpected RuntimeException
  WicketMessage: Can not instantiate page using constructor public
 org.wicket.example.HomePage ()
  Root causes:
  java.lang.NullPointerException
  at org.wicket.example.HomePage. init (HomePage.java: 48)
  at org.wicket.example.HomePage. init (HomePage.java: 41)
  at java.lang.reflect.Constructor.newInstance (Constructor.java: 513)
  at org.apache.wicket.session.DefaultPageFactory.createPage
 (DefaultPageFactory.java: 192)
  at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java: 57)
  at
  at
  at
  at
  at org.apache.wicket.RequestCycle.processEventsAndRespond
 (RequestCycle.java: 1250)
  at org.apache.wicket.RequestCycle.step (RequestCycle.java: 1329)
  at org.apache.wicket.RequestCycle.steps (RequestCycle.java: 1428)
  at org.apache.wicket.RequestCycle.request (RequestCycle.java: 545)
  at org.apache.wicket.protocol.http.WicketFilter.doGet (WicketFilter.java:
 479)
  at org.apache.wicket.protocol.http.WicketFilter.doFilter
 (WicketFilter.java: 312)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java: 235)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java: 206)
  at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java: 233)
  at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java: 191)
  at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java: 127)
  at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java: 102)
  at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java: 109)
  at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java: 298)
  at org.apache.coyote.http11.Http11Processor.process
 (Http11Processor.java: 852)
  at org.apache.coyote.http11.Http11Protocol $
 Http11ConnectionHandler.process (Http11Protocol.java: 588)
  at org.apache.tomcat.util.net.JIoEndpoint $ Worker.run (JIoEndpoint.java:
 489)
  at java.lang.Thread.run (Thread.java: 662)
  Complete stack:
  org.apache.wicket.WicketRuntimeException: Can not instantiate page using
 constructor public org.wicket.example.HomePage ()
  at org.apache.wicket.session.DefaultPageFactory.createPage
 (DefaultPageFactory.java: 212)
  at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java: 57)
  at
  at
  at
  at
  at org.apache.wicket.RequestCycle.processEventsAndRespond
 (RequestCycle.java: 1250)
  at org.apache.wicket.RequestCycle.step (RequestCycle.java: 1329)
  at org.apache.wicket.RequestCycle.steps (RequestCycle.java: 1428)
  at org.apache.wicket.RequestCycle.request (RequestCycle.java: 545)
  at org.apache.wicket.protocol.http.WicketFilter.doGet (WicketFilter.java:
 479)
  java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java: 39)
  at java.lang.reflect.Constructor.newInstance (Constructor.java: 513)
  at org.apache.wicket.session.DefaultPageFactory.createPage
 (DefaultPageFactory.java: 192)
  at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java: 57)
  at
  at
  at
  at
  at org.apache.wicket.RequestCycle.processEventsAndRespond
 (RequestCycle.java: 1250)
  at org.apache.wicket.RequestCycle.step (RequestCycle.java: 1329)
  at org.apache.wicket.RequestCycle.steps (RequestCycle.java: 1428)
  at org.apache.wicket.RequestCycle.request (RequestCycle.java: 545)
  at org.apache.wicket.protocol.http.WicketFilter.doGet (WicketFilter.java:
 479)



 =

 http://translate.google.com/translate?hl=ensl=ittl=enu=http%3A%2F%2Fwww.storeyoutube.com%2Fwatch%3Fv%3DuSD4vsh1zDA

 Unexpected RuntimeException
  WicketMessage: Can not instantiate page using constructor public
 org.wicket.example.QuoteResult (org.apache.wicket.PageParameters) 

Re: What to add to pom.xml to use hibernate?

2012-01-21 Thread Josh Kamau
Hi Daniel;

For personal projects (Where clients wont say what to use), i use Ebean orm
(www.avaje.org) . Its simple. You annotate your domain objects with JPA
annotations, then add ebean.properties file in your resources directory
and thats all. The rest is calling Ebean.save(instance),
Ebean.delete(instance) . there is a fluid query api that is very
flexible.

Send me a personal mail and i will take you through.

Regards.
Josh.

On Sat, Jan 21, 2012 at 10:53 AM, Daniel Watrous
daniel.watr...@gmail.comwrote:

 I'm interested in using hibernate in my wicket application, but I
 can't find any up to date examples combining the two.

 Is there something other than hibernate that the wicket community uses for
 ORM?

 If not, what can I add to the pom.xml file to include hibernate. I
 tried adding this:

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version4.0.1-Final/version
/dependency

 but it doesn't work. I an error that it Could not resolve dependencies
 for project...

 I also attempted to add this alongside the other repository that is there.

repository
idjboss/id
urlhttp://repository.jboss.org/maven2//url
/repository

 I get the error about Could not resolve dependencies for project...
 but now many other jar files are not found.

 I started with the quickstart, if that helps.

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




Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Josh Kamau
If i were you i would learn how to create a project with maven first.

Josh

On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshall ianmarshall...@gmail.comwrote:

 The answer might depend in part upon which web server you want to use.

 NetBeans ships with Tomcat. There are others which one can use. I stopped
 using Tomcat and now use Google App Engine's (GAE's) development web server
 to run my Wicket application outside of NetBeans.

 If that is want you want to do, please let me know. Otherwise, other
 people's advice will be better. Have you visited

  https://cwiki.apache.org/WICKET/#Index-DevelopmentEnvironment

 yet?

 As regards class libraries for NetBeans, I have set up and use a NetBeans
 Wicket library which has the following files in the classpath:

  ·  wicket-core-1.5.3.jar
  ·  wicket-request-1.5.3.jar
  ·  wicket-util-1.5.3.jar
  ·  slf4j-jdk14-1.6.4.jar
  ·  slf4j-api-1.6.4.jar

 (my application uses Java's own logging class).

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/how-do-i-write-my-first-apache-wicket-program-on-netbeans-IDE-tp4309226p4309582.html
 Sent from the Users forum 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: regarding sort property

2012-01-19 Thread Josh Kamau
Hi there ;

I think the simplest option would be to put a boolean field on the entity
that you are sorting. Then add the column as usual (e.g using
AbstractColumn the checkbox) . Then sorting will be done just as in the
other fields.

Josh.

On Thu, Jan 19, 2012 at 7:31 PM, ridaa ridaa...@yahoo.com wrote:

 Hi,

 I am using a check box panel to build a column of check box in data table
 using abstract column. How do i impose sort on it.On click of sort the
 selected checkboxes should appear on top and rest at the bottom.
 Do i need to use sortableComparator class..It would be a big help if some1
 can provide a sample code.


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/regarding-sort-property-tp4310532p4310532.html
 Sent from the Users forum 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




Getting abstolute path to WEB-INF directory

2012-01-13 Thread Josh Kamau
Hi There ;

How do i get the absolute path to the WEB-INF directory in wicket 1.5 ?

regards.
Josh


Re: Getting abstolute path to WEB-INF directory

2012-01-13 Thread Josh Kamau
Oh i got it.   String path =
WebApplication.get().getServletContext().getRealPath(/WEB-INF) ;

regards.
Josh.

On Fri, Jan 13, 2012 at 9:51 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi There ;

 How do i get the absolute path to the WEB-INF directory in wicket 1.5 ?

 regards.
 Josh



Re: problems with AjaxFallbackLink on IE

2011-12-07 Thread Josh Kamau
Yea.

By doing a full page refresh. And if you use AjaxFallback* components, the
components will automatically do a full page refresh if ajax is disabled on
the browser.

Or may be i didnt get the question.

Josh

On Wed, Dec 7, 2011 at 12:38 PM, cosmindumy cosmind...@yahoo.com wrote:

 And another question..
 Is there a way to refresh my component if ajax is disabled??

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4168331.html
 Sent from the Users forum 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: Integrating Google maps with wicket web application

2011-12-06 Thread Josh Kamau
Yes .

Google for Wicket gmap2 component. I think its in wicketstuff project.

regards.
Josh.

On Wed, Dec 7, 2011 at 9:36 AM, raju.ch raju.challagun...@gmail.com wrote:

 Hi folks,
 Is there any plugin or component directly in wicket for Integrating Google
 maps?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4167839.html
 Sent from the Users forum 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: Integrating Google maps with wicket web application

2011-12-06 Thread Josh Kamau
Thanks Martin.

On Wed, Dec 7, 2011 at 10:13 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-gmap2/1.5.3/

 This is the latest version

 On Wed, Dec 7, 2011 at 8:12 AM, raju.ch raju.challagun...@gmail.com
 wrote:
  Thank you very much josh
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4167944.html
  Sent from the Users forum 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
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: AjaxFallbackDefaultDataTable Refresh Data Provider

2011-12-03 Thread Josh Kamau
Hi Matt;

Make a dynamic dataprovider as follows:

public abstract class UserDataProvider extends SortableDataProviderUser {

public UserDataProvider(){
setSort(id, SortOrder.ASCENDING);
}

public IteratorUser iterator(int start, int count) {
return User.getItems(getSearchParam()).iterator() ;
}

public IModelUser model(User user) {
return new ModelUser(user);
}

public int size() {
return User.getItemCount(getSearchParam());
}

public  abstract String getSearchParam();

}

Not the abstract method for getting the filtering parameter.

Then use it like this:

UserDataProvider dp = new UserDataProvider() {

@Override
public String getSearchParam() {
return searchParam
}
};

The search parameter is recalculated everytime the table is refreshed.

Hope you get the idea.

Josh.

On Sun, Dec 4, 2011 at 12:19 AM, mashleyttu mash...@gmail.com wrote:

 Hi,

 I'm using an AjaxFallbackDefaultDataTable and I am trying to update the
 Data
 Provider during an Ajax call back. A little more details is I have a
 TextField with an AjaxFormComponentUpdatingBehavior(onkeyup) behavior
 attached for filtering results in my AjaxFallbackDefaultDataTable.

 Long story short, is I do not know how to update the Data Provider for the
 Table and have the filtered results displayed in the web browser. I've had
 to settle on creating a new AjaxFallbackDefaultDataTable and use the
 replaceWith function to display he results. Please see code below.

 TextField txtIncidentFilter = (TextField)
 IncidentListViewPanel.this.get(rowSearch:txtIncidentFilter);
String searchQuery = (String)
 txtIncidentFilter.getDefaultModelObject();
WebMarkupContainer cntIncidentList
 = (WebMarkupContainer)
 IncidentListViewPanel.this.get(cntIncidentList);
AjaxFallbackDefaultDataTable cmp =
 (AjaxFallbackDefaultDataTable)
 cntIncidentList.get(tblIncidents);


 myListParams.setQueryString(%+Commons.nvl(searchQuery,)+%.toLowerCase());
AjaxFallbackDefaultDataTable
 newIncidentFilterResults = new
 AjaxFallbackDefaultDataTable(tblIncidents,columns,new
 SortableIncidentDataProvider(INCIDENT_TS,myListParams),rowCount);

  cmp.replaceWith(newIncidentFilterResults);
cmp = newIncidentFilterResults;
cmp.setOutputMarkupId(true);
target.addComponent(cmp);

  target.addComponent(cntIncidentList);

 This works fine but I would think requires a lot of extra processing/memory
 etc, where you should simply be able to update the dataprovider for the
 component.

 Does anyone know how to provide a new data provider for a
 AjaxFallbackDefaultDataTable component?

 Using wicket 1.4.15 in PROD.

 Thanks,
 Matt

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackDefaultDataTable-Refresh-Data-Provider-tp4154899p4154899.html
 Sent from the Users forum 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: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Josh Kamau
Hi there,

Look for instructions on how to remove wicket tags here:
https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html.
Also look around to learn how to do a thousand other things in wicket.

Kind regards.
Josh.

On Sun, Nov 27, 2011 at 3:42 AM, Em mailformailingli...@yahoo.de wrote:

 Hello list,

 I am absolutely new to Apache Wicket (and new to writing
 java-web-frontends instead of web-services) and not sure whether it is
 right for my needs.

 I got some questions regarding the rendering process.
 For template sharing between client and server it would be great if I
 can get a wicket-tag-free template-version at processing time.

 The idea:
 My Wicket-template looks like:
wicket:panel
  table
tr
  th$userNameTitle/th
  th$lastLoginTitle/th
/tr

tr wicket:id=users
  tdspan wicket:id=username$userName/span/td
  tdspan wicket:id=lastLogin$lastLogin/span/td
/tr
  /table
/wicket:panel

 When I am interested in the user's section, I want to do the following
 (in pseudo-code):

 myUserView.getTemplate();
 //output is completely freed of Wicket-specific stuff:
  tr
tdspan$userName/span/td
tdspan$lastLogin/span/td
  /tr


 However I am even happy with this output:
  tr
td/td
td/td
  /tr
 NOTE: The inner wicket:id's were left. Maybe I have to call their
 content seperately (and then getting their content together with the
 corresponding placeholders).

 What is the main idea behind that?
 A collegue of mine comes from the PHP-corner. They were able to share
 the template between server and backend, so that a client-side
 JS-template-engine rendered the same HTML as the server's
 template-engine (PHP).
 On AJAX-requests they were saving a lot of traffic and ressources, since
 they just needed to serialize their PHP-models to JSON and respond them
 to the client.
 Their JavaScript developers did not need to know about the PHP-backend.
 Using Apache Wicket, I want to achieve the same with a Java-backend.

 Another thing:
 Using PHP and a placeholder-like template-engine that supports basic
 logic (if, else, loops) their designers did not need to know about the
 PHP-classes that are responsible for creating the placeholders as long
 as they worked correctly.
 So a designer without knowledge about the backend's language was able to
 work on a template. He was able to give even and uneven rows in a table
 different colours right from the template's logic.
 Is this possible with Apache Wicket, too?

 Any other suggestions, opinions, advices? :)

 Regards,
 Em

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




Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Josh Kamau
Gaetan;

I also like starting from a book. Then read the (scattered) docs and wiki
when am looking for a solution to specific issues. Some projects have an
official user guide that is downloadable as pdf or read online as html. I
know documentation is one of the the most boring tasks for developers but
its is necessary. May be we should hire someone to do the user guide. The
users can donate to pay him.

My 2c.

Josh.

On Fri, Nov 18, 2011 at 2:45 PM, Gaetan Zoritchak 
g.zoritc...@moncoachfinance.com wrote:

 I started with the book wicket in action so it was ok. Before choosing a
 technology I look at the number of existing books and I buy the best one.
 But I'm not sure that every body does like me.

 My main problem is the wiki. The pages are often very old explaining things
 that do not apply with the last version of wicket and the wiki si so
 slow that I can't imagine working on it to update the pages :(

 2011/11/18 robert.mcguinness robert.mcguinness@gmail.com

  i'm baffled when people say the documentation is poor, the javadocs are
  excellent and like igor said there are some great books (blogs too!).
   books
  and blogs get outdated fast since technlogy is rapidly advancing, so *use
  the source luke!*.  Not only will you learn Wicket, but I guarantee your
  Java skills will improve.
 
 
  awesome examples:
 
 
 
  https://github.com/apache/wicket https://github.com/apache/wicket  (scan
  over the unit test, best way to learn any framework not just wicket)
 
  https://github.com/55minutes/fiftyfive-wicket
  https://github.com/55minutes/fiftyfive-wicket  (fantastic)
 
  https://github.com/42Lines https://github.com/42Lines
 
  https://github.com/wicketstuff/core https://github.com/wicketstuff/core(a
  gem, tons of examples on how to pretty much do anything)
 
  http://code.google.com/p/wiquery/source/checkout
  http://code.google.com/p/wiquery/source/checkout
 
  https://github.com/jolira/wicket-stateless
  https://github.com/jolira/wicket-stateless  (wicket stateless is
  excellent,
  even easier with wicket 1.5)
 
  https://github.com/reaktor/oegyscroll
  https://github.com/reaktor/oegyscroll
  (endless pagination)
 
  http://code.google.com/p/wiquery/source/browse/core
  http://code.google.com/p/wiquery/source/browse/core  (jquery)
 
  http://code.google.com/p/jqwicket/source/browse/
  http://code.google.com/p/jqwicket/source/browse/  (jquery, learn from
 the
  code and roll your own if it doesn't fit your needs, super easy
 
  https://github.com/rjnichols/visural-wicket
  https://github.com/rjnichols/visural-wicket  (great ui tools)
 
  https://xaloon.googlecode.com/svn/ https://xaloon.googlecode.com/svn/
  (excellent!)
 
 
 
  rob
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4082034.html
  Sent from the Users forum 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: Apache Wicket is a Flawed Framework

2011-11-18 Thread Josh Kamau
- did not yet try out Ajax with Wicket, so I have no opinion on that 

In my opinion, ajax is the killer feature. Give it a try.

Josh.

On Fri, Nov 18, 2011 at 3:07 PM, heikki tropic...@gmail.com wrote:

 I have tried out the Wicket framework and many things I really like about
 it.
 Some observations:


 - Wicket changes drastically between versions, and even between minor
 versions / release candidates, things suddenly disappear from the API,
 sometimes without having been flagged as deprecated ;

 - as a result, many times the example code you find on the web or in books
 like 'Wicket in Action' does no longer work as is

 - the Javadoc of the source is quite OK for some classes, but for the great
 majority any textual explanations there are either sparse or absent

 - luckily the mailing list is nothing short of fantastic !

 - I agree that it is rather too easy for Wicket to make things stateful,
 when you don't want it

 - and in my opinion the stuff you need to do to achieve normal URLs (no
 ?,
 no version number, no nothing) is just a pain. *Every* URL, for stateless
 or
 stateless pages or whatever, should be normal, otherwise it is just not
 acceptable -- users never want to see those complicated-looking URLs under
 any circumstance

 - did not yet try out Ajax with Wicket, so I have no opinion on that

 Just my 2¢. In all, a great framework that is much easier to use than e.g.
 things based on JSP. Keep up the good work, guys !

 Kind regards
 Heikki Doeleman


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4082988.html
 Sent from the Users forum 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




Toggling Web markup container visibility

2011-10-30 Thread Josh Kamau
Hi there;

I want to toggle a visibility of a group of components. So i have put them
in a WebMarkupContainer and overriden the isVisible method to return the
value gotten from a check box.

The webmarkupcontainer is not toggled as expected when i added it to the
target object. The individual form components get toggled as expected. What
could be the problem ? is there a better way of grouping form components
other than a web makup container? in the html file i have a div.

Regards.
Josh.


Re: Toggling Web markup container visibility

2011-10-30 Thread Josh Kamau
thanks.  will try that

On 30 Oct 2011 23:06, Hans Lesmeister hans.lesmeis...@lessy-software.de
wrote:

Hi,

You should setOutputMaarkupPlaceholder to true (sorry probably not exactly
the correct methode name but very similar...)

Tip: do not override isVisible but override onConfigure and then call
setvisible(...) in there

Cheers
Hans


Am 30.10.11 21:14 schrieb Josh Kamau unter joshnet2...@gmail.com:


 Hi there;

 I want to toggle a visibility of a group of components. So i have put them
 in a ...
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: Toggling Web markup container visibility

2011-10-30 Thread Josh Kamau
It worked perfectly. Thanks for the hint Hans.

Josh

On Sun, Oct 30, 2011 at 11:11 PM, Josh Kamau joshnet2...@gmail.com wrote:

 thanks.  will try that

 On 30 Oct 2011 23:06, Hans Lesmeister hans.lesmeis...@lessy-software.de
 wrote:

 Hi,

 You should setOutputMaarkupPlaceholder to true (sorry probably not exactly
 the correct methode name but very similar...)

 Tip: do not override isVisible but override onConfigure and then call
 setvisible(...) in there

 Cheers
 Hans


 Am 30.10.11 21:14 schrieb Josh Kamau unter joshnet2...@gmail.com:


  Hi there;
 
  I want to toggle a visibility of a group of components. So i have put
 them
  in a ...

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




Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Josh Kamau
Looks like crap to me..

On Wed, Oct 26, 2011 at 9:08 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 missing a green dot in Framework extensions are done in Java - what
 else are the done in?

 missing a green dot in Application oriented - wicket is both page
 and application oriented - depends on how you want to build your
 app...

 not sure why in the IDE department we get only two stars...you dont
 need any plugins to make it easier to work with wicket other then some
 very minor things.

 why is there nothing in Number of downloadable add-ons? are they
 saying there are zero addons available to download?
 https://github.com/wicketstuff/core alone contains plenty of addons
 downloadable from the maven repo. and there are lots of other
 libraries published by people.

 my two cents.

 -igor


 On Wed, Oct 26, 2011 at 11:02 AM, shetc sh...@bellsouth.net wrote:
  https://vaadin.com/comparison An extensive RIA technology comparison
 matrix
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/An-extensive-RIA-technology-comparison-matrix-including-Wicket-tp3941573p3941573.html
  Sent from the Users forum 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: DataView or GridView with two columns by item

2011-10-25 Thread Josh Kamau
You can always use component#renderBodyOnly(true) method to ensure that the
containers markup is not rendered.

Josh.

On Tue, Oct 25, 2011 at 2:33 PM, Tito njyt...@gmail.com wrote:

 Hi,

 Wicket container works ok!
 But making trs webmarkupcontainers doesn't allow me to populate items of
 the
 table because it change hierarchy of components, and I can't get
 WebMarkupContainers from Item.

 I mean, before I had:

 wicket:container wicket:id=dedications
 tr
  tdspan wicket:id=hours[horas]/span/td
 tdspan wicket:id=timeFrom[hora desde]/span]/td
  tdspan wicket:id=timeTo[hora hasta]/span]/td
 tdspan wicket:id=task[tarea]/span/td
  tdspan wicket:id=accounts[cuentas]/span/td
 /tr
  tr
 td colspan=5
 input wicket:id=serviceStatus /
  /td
 /tr
 /wicket:container

 And I populated items in this way:

 @Override
 protected void populateItem(ItemDedication item) {
  DateFormat formatter = new SimpleDateFormat(hh:mm);
 final Dedication dedication = item.getModelObject();
  item.add(new Label(timeFrom,
  formatter.format(dedication.getTimeFrom(;
 item.add(new Label(timeTo,  formatter.format(dedication.getTimeTo(;
  item.add(new Label(hours, dedication.getHours().toString()));
 item.add(new Label(task, dedication.getTask().getName()));
  item.add(new Label(accounts, getAccounts(dedication)));
 item.add(new TextAreaString(serviceStatus, new
 PropertyModelString(item.getModel(), serviceStatus)));
  }


 But now if I do this in order to add Odd, Even classes:

 wicket:container wicket:id=dedications
  tr wicket:id=content
 tdspan wicket:id=hours[horas]/span/td
  tdspan wicket:id=timeFrom[hora desde]/span]/td
 tdspan wicket:id=timeTo[hora hasta]/span]/td
  tdspan wicket:id=task[tarea]/span/td
 tdspan wicket:id=accounts[cuentas]/span/td
  /tr
 tr wicket:id=details
 td colspan=5
  input wicket:id=serviceStatus /
 /td
 /tr
  /wicket:container

 I don't know how to populate items.

 Thanks for helping!

 Tito

 2011/10/24 Igor Vaynberg igor.vaynb...@gmail.com

  On Mon, Oct 24, 2011 at 9:31 AM, Tito njyt...@gmail.com wrote:
   I'm sorry, you are right!
   I said columns but I meant Rows!
  
   What is the java component for wicket container?
 
  no need for a java component, wicket:container is an auto tag like
  wicket:message
 
   How do you suggest to add Odd, Even classes?
 
  you can make trs webmarkupcontainers that add the correct class
 
  -igor
 
  
   Thank you!
  
   2011/10/24 Igor Vaynberg igor.vaynb...@gmail.com
  
   ahhh.
  
   so you want two *rows* not two *columns* per item, attach the repeater
   to a wicket:container tag like so:
  
   wicket:container wicket:id=repeater
   trtd.../tr
   trtd/tr
   /wicket:container
  
   you will have to rig up odd/even yourself
  
   -igor
  
   On Mon, Oct 24, 2011 at 9:10 AM, Tito njyt...@gmail.com wrote:
Hi Igor this is what i'm doing:
   
.java
   
public DedicationsReportPanel(String id, IModelUsers user, final
IModelDate dayOfReport) {
super(id);
   
add(new DataViewDedication(dedications, new
DedicationDataProvider(dedicationService,
   user.getObject().getUserName())) {
   
@Override
protected void populateItem(ItemDedication item) {
 DateFormat formatter = new SimpleDateFormat(hh:mm);
final Dedication dedication = item.getModelObject();
 item.add(new Label(timeFrom,
 formatter.format(dedication.getTimeFrom(;
item.add(new Label(timeTo,
   formatter.format(dedication.getTimeTo(;
 item.add(new Label(hours, dedication.getHours().toString()));
item.add(new Label(task, dedication.getTask().getName()));
 item.add(new Label(accounts, getAccounts(dedication)));
item.add(new TextAreaString(serviceStatus, new
PropertyModelString(item.getModel(), serviceStatus)));
 }
   
@Override
protected ItemDedication newItem(String id, int index,
   IModelDedication
model) {
 OddEvenItemDedication item = new OddEvenItemDedication(id,
 index,
model);
return item;
 }
});
}
   
.html
   
html
xmlns:wicket=
   http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

head/head
body
wicket:panel
table cellspacing=0 class=listado
 tr
thFecha/th
thHoras/th
 thTarea/th
thServicios/th
thAcciones/th
 /tr
div wicket:id=dedications
tr
 tdspan wicket:id=hours[horas]/span/td
tdspan wicket:id=timeFrom[hora desde]/span]/td
 tdspan wicket:id=timeTo[hora hasta]/span]/td
tdspan wicket:id=task[tarea]/span/td
 tdspan wicket:id=accounts[cuentas]/span/td
/tr
 tr
td colspan=5
input wicket:id=serviceStatus /
 /td
/tr
/div
 /table
/wicket:panel
/body
/html
   
I'm using a div to group two columns. The problem is that this not a
   valid
html, and I can't get Odd, Even class in rows. I think it is because
  div
   is
repeated instead of tr.
   
What i'm expecting in the final html is something like this:
   
table 

Re: DataView or GridView with two columns by item

2011-10-25 Thread Josh Kamau
Have you tried using attributeModifiers or attributeAppenders to add or
modify a css class?

Josh


On Tue, Oct 25, 2011 at 4:21 PM, Tito njyt...@gmail.com wrote:

 Yes, but I think this is not the problem.
 I have not problems with wicket:container, my problem is that I can't
 modify
 class attribute of tr to add Odd or Even.

 Tito

 2011/10/25 Josh Kamau joshnet2...@gmail.com

  You can always use component#renderBodyOnly(true) method to ensure that
 the
  containers markup is not rendered.
 
  Josh.
 
  On Tue, Oct 25, 2011 at 2:33 PM, Tito njyt...@gmail.com wrote:
 
   Hi,
  
   Wicket container works ok!
   But making trs webmarkupcontainers doesn't allow me to populate items
 of
   the
   table because it change hierarchy of components, and I can't get
   WebMarkupContainers from Item.
  
   I mean, before I had:
  
   wicket:container wicket:id=dedications
   tr
tdspan wicket:id=hours[horas]/span/td
   tdspan wicket:id=timeFrom[hora desde]/span]/td
tdspan wicket:id=timeTo[hora hasta]/span]/td
   tdspan wicket:id=task[tarea]/span/td
tdspan wicket:id=accounts[cuentas]/span/td
   /tr
tr
   td colspan=5
   input wicket:id=serviceStatus /
/td
   /tr
   /wicket:container
  
   And I populated items in this way:
  
   @Override
   protected void populateItem(ItemDedication item) {
DateFormat formatter = new SimpleDateFormat(hh:mm);
   final Dedication dedication = item.getModelObject();
item.add(new Label(timeFrom,
formatter.format(dedication.getTimeFrom(;
   item.add(new Label(timeTo,
  formatter.format(dedication.getTimeTo(;
item.add(new Label(hours, dedication.getHours().toString()));
   item.add(new Label(task, dedication.getTask().getName()));
item.add(new Label(accounts, getAccounts(dedication)));
   item.add(new TextAreaString(serviceStatus, new
   PropertyModelString(item.getModel(), serviceStatus)));
}
  
  
   But now if I do this in order to add Odd, Even classes:
  
   wicket:container wicket:id=dedications
tr wicket:id=content
   tdspan wicket:id=hours[horas]/span/td
tdspan wicket:id=timeFrom[hora desde]/span]/td
   tdspan wicket:id=timeTo[hora hasta]/span]/td
tdspan wicket:id=task[tarea]/span/td
   tdspan wicket:id=accounts[cuentas]/span/td
/tr
   tr wicket:id=details
   td colspan=5
input wicket:id=serviceStatus /
   /td
   /tr
/wicket:container
  
   I don't know how to populate items.
  
   Thanks for helping!
  
   Tito
  
   2011/10/24 Igor Vaynberg igor.vaynb...@gmail.com
  
On Mon, Oct 24, 2011 at 9:31 AM, Tito njyt...@gmail.com wrote:
 I'm sorry, you are right!
 I said columns but I meant Rows!

 What is the java component for wicket container?
   
no need for a java component, wicket:container is an auto tag like
wicket:message
   
 How do you suggest to add Odd, Even classes?
   
you can make trs webmarkupcontainers that add the correct class
   
-igor
   

 Thank you!

 2011/10/24 Igor Vaynberg igor.vaynb...@gmail.com

 ahhh.

 so you want two *rows* not two *columns* per item, attach the
  repeater
 to a wicket:container tag like so:

 wicket:container wicket:id=repeater
 trtd.../tr
 trtd/tr
 /wicket:container

 you will have to rig up odd/even yourself

 -igor

 On Mon, Oct 24, 2011 at 9:10 AM, Tito njyt...@gmail.com wrote:
  Hi Igor this is what i'm doing:
 
  .java
 
  public DedicationsReportPanel(String id, IModelUsers user,
 final
  IModelDate dayOfReport) {
  super(id);
 
  add(new DataViewDedication(dedications, new
  DedicationDataProvider(dedicationService,
 user.getObject().getUserName())) {
 
  @Override
  protected void populateItem(ItemDedication item) {
   DateFormat formatter = new SimpleDateFormat(hh:mm);
  final Dedication dedication = item.getModelObject();
   item.add(new Label(timeFrom,
   formatter.format(dedication.getTimeFrom(;
  item.add(new Label(timeTo,
 formatter.format(dedication.getTimeTo(;
   item.add(new Label(hours, dedication.getHours().toString()));
  item.add(new Label(task, dedication.getTask().getName()));
   item.add(new Label(accounts, getAccounts(dedication)));
  item.add(new TextAreaString(serviceStatus, new
  PropertyModelString(item.getModel(), serviceStatus)));
   }
 
  @Override
  protected ItemDedication newItem(String id, int index,
 IModelDedication
  model) {
   OddEvenItemDedication item = new OddEvenItemDedication(id,
   index,
  model);
  return item;
   }
  });
  }
 
  .html
 
  html
  xmlns:wicket=
 http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
  
  head/head
  body
  wicket:panel
  table cellspacing=0 class=listado
   tr
  thFecha/th
  thHoras/th
   thTarea/th
  thServicios/th

onInitialize or Constructor

2011-10-19 Thread Josh Kamau
Hi wicketeers ;

Which is the recommended way of initializing page components: onInitialize()
or Constructor ?

regards.
Josh.


Re: onInitialize or Constructor

2011-10-19 Thread Josh Kamau
Thanks. Its clear now.

On Wed, Oct 19, 2011 at 4:01 PM, Andrea Del Bene adelb...@ciseonweb.itwrote:

 Hi,

 when onInitialize is called, component has already been inserted into its
 hierarchy so you can call getParent() or getPage() safely.

  Hi wicketeers ;

 Which is the recommended way of initializing page components:
 onInitialize()
 or Constructor ?

 regards.
 Josh.



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




Re: Community tools

2011-10-07 Thread Josh Kamau
On a light note:

we can build our version of stackoverflow as a Q/A for wicket. We can build
it in wicket and let everyone access the code.  We can use it as a demo
wicket application.

Josh.

On Fri, Oct 7, 2011 at 1:40 PM, Gaetan Zoritchak 
g.zoritc...@moncoachfinance.com wrote:

 I fully understand the risk of relying on an external and uncontrolled
 party. The best of breed solution would be to have SO like a Q  A
 for wicket based on an  open source implementation like Bert mentionned.

 For the mailing list, I think the advantage of reading the messages on his
 phone is less important than the gate of a partially closed system that
 requires a subscription by email. See on
 http://softwareandsilicon.com/chapter:2 # toc2  - Freedom of Access and
 - Weak Group Identity

 Markmail:
 The traffic is constantly increasing from 1999 until late 2009 early
 2010 before being reduced significantly. I think the reason is due to the
 tool a little bit old. Even if the interface allows to search for messages,
 ergonomics and the quality of responses is not equivalent to what is
 available on intenet today.

 My point is not to criticize but to point out that this is negative for the
 adoption of wicket. Today when I choose a technology for a project, even
 though I prefer Wicket for its design, I have  to sell the framework to a
 team that does not necessarily find it very sexy.

 Gaetan


 2011/10/7 Martijn Dashorst martijn.dasho...@gmail.com

  The biggest issue with moving to Stack Overflow is that we deliver our
  community to an external party which can do anything with the
  questions, show stupid ads, etc. Have no mistake: stack exchange is a
  commercial venture. So one criterium is to be able to pull the plug on
  it whenever it goes sour. While the content of stack overflow is
  publicly available, it is not licensed with an Apache friendly license
  (http://creativecommons.org/licenses/by-sa/2.5/). This issue was the
  biggest hurdle SO needs to take to become a viable alternative for the
  user list at Apache.
 
  As for this list not being visible, you can always shop around for
  list archive providers. Nabble has a nice forum like interface, Mark
  mail provides awesome search tooling.
 
  Martijn
 
  On Fri, Oct 7, 2011 at 8:49 AM, Bert taser...@gmail.com wrote:
   I had a discussion about this with martin dashorst when we meet this
   year at a conference. Apparently, he does like the idea of a SO like
   QA site for wicket. But wicket being an Apache project, there are
   certain requirement if i recall our discussion correctly.
  
   One of the problems is the hosting of such a side. The mailing list,
   bugtracker, wicki,... are all hosted and maintained by the apache
   admins. Getting a new tool into there is not easy. One could host a
   solution outside of apache, but this opens questions about long term
   support of the infrastructure, privacy issues and so forth.
  
   There are a few opensource implementations available:
  
   http://gitorious.org/shapado (used by debian at http://ask.debian.net/
 )
   http://www.osqa.net/
  
   I do like the SO style (never been a fan of mailing lists), but on the
   other side registering here is not much of a hassle.
  
   My 2 cent
   Bert
  
   On Fri, Oct 7, 2011 at 07:25, Josh Kamau joshnet2...@gmail.com
 wrote:
   I like the mail. Atleast i can get the answers even on my not so smart
   phone.
  
   Josh.
  
   On Fri, Oct 7, 2011 at 6:43 AM, Chris Colman
   chr...@stepaheadsoftware.comwrote:
  
   Source management and bugs are also outdated. The version on github
 is
   much
   better.
  
   I recently had to get up to speed with github. Not sure what all the
   fuss is about. The learning curve was about 20x that of Subversion
 and
   I'm still not confident about how to do things or whether what I'm
  doing
   is the 'right' thing to be doing. Subversion on the other hand is
  really
   easy to understand (and most developers already know it) and even
  though
   it has 'theoretical' shortcomings compared to a distributed VCS like
  git
   in practice I never saw any difference in performance or usage apart
   from git being a lot 'weirder' ;)
  
   
   My 2 cents,
   
   Gaetan
  
   -
   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
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Community tools

2011-10-06 Thread Josh Kamau
I like the mail. Atleast i can get the answers even on my not so smart
phone.

Josh.

On Fri, Oct 7, 2011 at 6:43 AM, Chris Colman
chr...@stepaheadsoftware.comwrote:

 Source management and bugs are also outdated. The version on github is
 much
 better.

 I recently had to get up to speed with github. Not sure what all the
 fuss is about. The learning curve was about 20x that of Subversion and
 I'm still not confident about how to do things or whether what I'm doing
 is the 'right' thing to be doing. Subversion on the other hand is really
 easy to understand (and most developers already know it) and even though
 it has 'theoretical' shortcomings compared to a distributed VCS like git
 in practice I never saw any difference in performance or usage apart
 from git being a lot 'weirder' ;)

 
 My 2 cents,
 
 Gaetan

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




Re: DOUBT Questions Abt Wicket

2011-08-25 Thread Josh Kamau
Hi there,

Please go to www.stackoverflow.com and you will see many such questions.
Just search for wicket over there.

Josh.

On Thu, Aug 25, 2011 at 10:08 AM, Shunmuga Raj shunmugaraa...@gmail.comwrote:

 Hi All,

  I was a beginner to wicket. I have some doubts and questions
 abt wicket.

 Questions:
 1) What are the advantages of wicket over Struts, Springs, Tapestry,
 Stripes?

 2) What is the main advantages of Wicket?

 3) Where the wicket can be used in real time scenario?

 4) For which database it suits gud?

 5) Which framework is best on performance view?

 6) Why wicket has to be used?

 Doubts:

 Now i'm developing a web application project for feeding data  generating
 report for it. For feeding data, i have to give login for every users.
 according  a scenario at a time multiple concurrent users ll feed data. For
 this which java technology ll be more effective, powerful, efficient? which
 framework s best for this?

 another scenario is i have to ensure that one user can login at only one
 system, he should login at another system on the same time. tat is one user
 can have one sessin at one system at a time. he can login to another to
 another system at a same time if he tries means an error should be thrown.
 for this vat i've to do? can u offer some sample code?

 Where EJB can be used? What is the difference in using EJB over frameworks
 like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
 frameworks with EJB?

 which one ll be more faster in execution?


 Waiting for ur favorable reply/



 Thanking you,
 With regards,
 Shunmuga Raj.P



Re: Wicket - TinyMCE/FckEditor

2011-08-01 Thread Josh Kamau
Hi Michal,

If you want a really nice and simple Rich Text Editor, take a look at
visural-wicket project.

Here is the link to the demos - http://wicket.visural.net/examples/app/

regards.
Josh.

On Tue, Aug 2, 2011 at 8:27 AM, Chris Colman
chr...@stepaheadsoftware.comwrote:

 Are there any examples of Wicket integrated with FckEditor (the one
 before CkEditor)?

 -Original Message-
 From: Michal Letynski [mailto:m...@consol.ae]
 Sent: Tuesday, 2 August 2011 3:25 PM
 To: users@wicket.apache.org
 Subject: Re: Wicket - TinyMCE
 
 Hi.
 W dniu 2011-08-02 04:29, ramazan pekin pisze:
  Hi to everyone,
 
  I am looking for rich text editor and I found TinyMCE. But I couldnt
  find any document/example page how can I integrate wicket and TinyMCE
  explained detailed. Do you know is there any documentation or example
  about this subject?
 There are some examples for it:
 
 https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/tinymce-
 parent/tinymce-examples
 
  Thanks, br.
  Ramazan
 
  -
  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: RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Josh Kamau
are you prohibited from using a DI framework such as guice or spring?  it
can help you manage your object scope and lifecycle

On 26 Jul 2011 07:41, Miroslav F. mir...@seznam.cz wrote:

Bad. Wicket application start when you deploy it into Tomcat (it's time when
WebApplication.init() is
executed) and stop when you undeploy it or when you stop Tomcat - it should
be very long time ;-)

My scenario is: In WebPage class i do LoadableDetachableModel.load() and
here I load all data what I need
from database and do all DB stufs - open connection, run SQL, close
connection.



 -Original Message-
 From: eugenebalt [mailto:eugeneb...@yahoo.com]
 Sent: Tuesday, 2...


Re: dynamic DataTable

2011-07-21 Thread Josh Kamau
wickets AjaxFallbackDefaultDatatable is my favourite component.

Josh

On 21 Jul 2011 17:23, Martin Grigorov mgrigo...@apache.org wrote:

Am I that old or .NET is younger than 10 years ?

First tell me what is so complex with wicket-extensions DataTable and
I'll tell you how to do it ;-)

You *need* to extract the DB meta data if you want the dynamics.
Wicket is web framework, not common data extraction framework.
Once you have the column names then you can create the
ListIColumnEntity and IDataProviderEntity needed by DataTable.
From there on Wicket will create the table for you.

So if you do the easy part to extract the columns meta data then
give it to me and I'll do the hard part to dress it in a DataTable
;-)


On Thu, Jul 21, 2011 at 5:08 PM, davut uysal dauy...@gmail.com wrote:
 Yeah, I agree there must ...
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com


-
To unsubscribe, e-mail: users...


Re: Prevent Double Submit When Holding Enter Button

2011-07-09 Thread Josh Kamau
Are you submitting via ajax?

On Sat, Jul 9, 2011 at 12:39 PM, Horacio Natyural 
horacio.natyu...@gmail.com wrote:

 btw,

 this happens when I hold the Enter button without releasing it..


 Thanks

 On Sat, Jul 9, 2011 at 5:31 PM, Horacio Natyural
 horacio.natyu...@gmail.com wrote:
  Hi,
 
  Is there a way that I can prevent a double submit when I'm holding the
  enter button?
  I'm using a normal Button component.
 
  I can't seem to prevent it from submitting the form twice..
 
  Thanks
  Carlo
 

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




Re: Dynamic AJAX text in WebMarkupContainer

2011-06-12 Thread Josh Kamau
Scott,

What if you use a label(with a span) inside your jq-styled component, then
you call renderBodyOnly on the label ? The idea is to put content inside
your jq-styled component.

Josh.

On Sun, Jun 12, 2011 at 4:54 AM, Scott Reed sr...@avacoda.com wrote:

 Thank you, Benoît.

 I am not familiar enough with the inner workings of Wicket to know how to
 rewrite the tag changes. I looked at the source code and can see that it's
 not that simple. Can you (or anyone else here) point me to some examples or
 explanatory documentation that might help me.

 I'm also not clear why I need to create a Form based on text (Label?) when
 all I want is a version of Label that does not override the jQM styling.

   Scott


 On 6/11/2011 3:29 PM, Benoît de Biolley wrote:

 Hi Scott,
 you can write your own FormComponent based on the textComponent,
 just rewrite the methods that changes the  tags.

 I did it with a panel, so I tooks the code from wicket panel.







 Benoît de Biolley








  Date: Sat, 11 Jun 2011 00:03:36 -0400
 From: sr...@avacoda.com
 To: users@wicket.apache.org
 Subject: Dynamic AJAX text in WebMarkupContainer

 I am using Wicket with jQuery Mobile. I cannot use Wicket Label because
 it interferes with (eliminates) the jQM styling. I am using
 WebMarkupContainer for most components but I need to have dynamic AJAX
 text and would appreciate help on how  to do it with WebMarkupContainer
 or any other ideas on how to resolve this issue.
Thanks,
  Scott

 -
 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: Copying PageMaps from one session to another

2011-06-03 Thread Josh Kamau
Andy,

...Not only security frameworks can use this, you can do it yourself by
throwing a RestartResponseAtInterceptPage exception.

Josh


Re: Expandable row in datatable

2011-05-30 Thread Josh Kamau
Rambabu,

I did it using a datatable . The last column in the table containts the
expanded area. Try to achieve it with html and javascript first. Then you
can use wicket datatable and panels to put the html pieces together.

Josh.


Re: New Website up using wicket

2011-05-12 Thread Josh Kamau
Works really fast. Just curious. Whats on the back end?
spring/guice/hibernate/???

Josh.

On Thu, May 12, 2011 at 6:45 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Nice and works fine on my Android phone
 On May 12, 2011 4:20 PM, Henrique Boregio hbore...@gmail.com wrote:
  Hey, just wanted to let you guys know that with the help of this
  community, I was able to build my first real website using wicket.
 
  Thanks everyone for the support in always trying answering the
  questions I've answered. I look forward to using wicket in other
  projects.
 
  Oh, its spekios.com if anyone is interested. Thanks once again :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



Attaching OnChange behaviour or AjaxFormComponentUpdatingBehaviour

2011-05-10 Thread Josh Kamau
Hi there , is it possible to attach OnChange behaviour or
AjaxFormComponentUpdatingBehaviour on AutoCompleteTextField ? I am trying
the OnUpdate methods is not being fired.

Thanks

Regards.
Josh.


Re: Attaching OnChange behaviour or AjaxFormComponentUpdatingBehaviour

2011-05-10 Thread Josh Kamau
I have made it fire the methods but now the AutoComplete...component always
returns a string


On Tue, May 10, 2011 at 3:29 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi there , is it possible to attach OnChange behaviour or
 AjaxFormComponentUpdatingBehaviour on AutoCompleteTextField ? I am trying
 the OnUpdate methods is not being fired.

 Thanks

 Regards.
 Josh.



wicket facebook application

2011-05-02 Thread Josh Kamau
I am doing a facebook application in wicket. To get facebook authentication
token, I have written a wicket filter as below:



package com.mycompany.myapp.config;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.visural.common.StringUtil;

public class FBOAuth implements Filter {
public void init(FilterConfig fc) throws ServletException {
}

public void doFilter(ServletRequest sr, ServletResponse sr1, FilterChain
fc)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) sr;
HttpServletResponse res = (HttpServletResponse) sr1;
res.sendRedirect(FaceBook.getLoginRedirectURL());
String code = sr.getParameter(code);
if (StringUtil.isNotBlankStr(code)) {
String authURL = FaceBook.getAuthURL(code);
URL url = new URL(authURL);
try {
String result = readURL(url);
String accessToken = null;
Integer expires = null;
String[] pairs = result.split();
for (String pair : pairs) {
String[] kv = pair.split(=);
if (kv.length != 2) {
throw new RuntimeException(Unexpected auth
response);
} else {
if (kv[0].equals(access_token)) {
accessToken = kv[1];
}
if (kv[0].equals(expires)) {
expires = Integer.valueOf(kv[1]);
}
}
}
if (accessToken != null  expires != null)
{
HttpSession ses = req.getSession();
ses.setAttribute(authToken, accessToken);


} else {
throw new RuntimeException(
Access token and expires not found);
}
} catch (IOException e) {
throw new RuntimeException(e);
}

}
}
private String readURL(URL url) throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream is = url.openStream();
int r;
while ((r = is.read()) != -1) {
baos.write(r);
}
return new String(baos.toByteArray());
}

public void destroy() {
}
}





In the doFilter method, I have done all the redirects required and gotten
the authentication token(accesstoken). At this point, I store the value as
an attribute to the httpSession which i have gotten by
ServleteRequest.getSession();

I want to acess this token in a wicket page class so that I use RestFB to
create a FaceBook Client etc. This is what I have done in the wicket page
class:

HttpSession session = null;

if (RequestCycle.get()!= null)
session = ((WebRequest) RequestCycle.get().getRequest())
.getHttpServletRequest().getSession();

if (session != null) {

System.out.print(# AuthToken: 
+ session.getAttribute(authToken));

}


However, this is the output I get and I am totally stuck:

# AuthToken: null


Where am i going wrong?


Re: wicket facebook application

2011-05-02 Thread Josh Kamau
Thanks Peter. I hadnt thought about that.  I will do it that way.

Josh.

On Mon, May 2, 2011 at 7:10 PM, Peter Karich peat...@yahoo.de wrote:

  Why not doing this directly the wicket-way with PageParameters and your
 own Session?

 FBPage(PageParameters params) {
   // do something with: params.getString(xy);

   // construct a new MySession object within the WicketApp.init method:
   // @Override Session newSession(Request request, Response response) {
   //   return new MySession(request); }

   // No need for complicated stuff just call 'getSession()' and get or
 set the token:
   MySession session = (MySession)getSession();
   // session.getToken();
 }

 I've done similar things in jetwick for twitter authentication.

 Regards,
 Peter.



 --
 http://jetwick.com open twitter search


  I am doing a facebook application in wicket. To get facebook
 authentication
  token, I have written a wicket filter as below:
 
 
 
  package com.mycompany.myapp.config;
 
  import java.io.ByteArrayOutputStream;
  import java.io.IOException;
  import java.io.InputStream;
  import java.net.URL;
 
  import javax.servlet.Filter;
  import javax.servlet.FilterChain;
  import javax.servlet.FilterConfig;
  import javax.servlet.ServletException;
  import javax.servlet.ServletRequest;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.http.HttpSession;
 
  import com.visural.common.StringUtil;
 
  public class FBOAuth implements Filter {
  public void init(FilterConfig fc) throws ServletException {
  }
 
  public void doFilter(ServletRequest sr, ServletResponse sr1,
 FilterChain
  fc)
  throws IOException, ServletException {
  HttpServletRequest req = (HttpServletRequest) sr;
  HttpServletResponse res = (HttpServletResponse) sr1;
  res.sendRedirect(FaceBook.getLoginRedirectURL());
  String code = sr.getParameter(code);
  if (StringUtil.isNotBlankStr(code)) {
  String authURL = FaceBook.getAuthURL(code);
  URL url = new URL(authURL);
  try {
  String result = readURL(url);
  String accessToken = null;
  Integer expires = null;
  String[] pairs = result.split();
  for (String pair : pairs) {
  String[] kv = pair.split(=);
  if (kv.length != 2) {
  throw new RuntimeException(Unexpected auth
  response);
  } else {
  if (kv[0].equals(access_token)) {
  accessToken = kv[1];
  }
  if (kv[0].equals(expires)) {
  expires = Integer.valueOf(kv[1]);
  }
  }
  }
  if (accessToken != null  expires != null)
  {
  HttpSession ses = req.getSession();
  ses.setAttribute(authToken, accessToken);
 
 
  } else {
  throw new RuntimeException(
  Access token and expires not found);
  }
  } catch (IOException e) {
  throw new RuntimeException(e);
  }
 
  }
  }
  private String readURL(URL url) throws IOException {
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  InputStream is = url.openStream();
  int r;
  while ((r = is.read()) != -1) {
  baos.write(r);
  }
  return new String(baos.toByteArray());
  }
 
  public void destroy() {
  }
  }
 
 
 
 
 
  In the doFilter method, I have done all the redirects required and gotten
  the authentication token(accesstoken). At this point, I store the value
 as
  an attribute to the httpSession which i have gotten by
  ServleteRequest.getSession();
 
  I want to acess this token in a wicket page class so that I use RestFB to
  create a FaceBook Client etc. This is what I have done in the wicket page
  class:
 
  HttpSession session = null;
 
  if (RequestCycle.get()!= null)
  session = ((WebRequest) RequestCycle.get().getRequest())
  .getHttpServletRequest().getSession();
 
  if (session != null) {
 
  System.out.print(# AuthToken: 
  + session.getAttribute(authToken));
 
  }
 
 
  However, this is the output I get and I am totally stuck:
 
  # AuthToken: null
 
 
  Where am i going wrong?
 


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




Re: make link invisible via onclick

2011-03-28 Thread Josh Kamau
Hi,

How about something like this.

private Boolean isLinkVisible = true ;
...


final Link link = new Link(test){

  @Override
 public void onClick(){
  isLinkVisible = false ;
}

@Override
public void isVisible(){
   return isLinkVisible ;
}

}

Kind regards.

Josh


Re: issue with input type=reset

2011-03-28 Thread Josh Kamau
Hi

You can add a wicket button on your form and implement onClick/onSubmit on
the button.

There many buttons including ajax enabled ones. See javadocs for details.

Something like

form 
...
   button wicket:id=myButton/button
/form

myForm.add(new Button(myButton){
 @Override
public void onSubmit() {
//do your stuff here
}

})

Josh.





Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread Josh Kamau
I nominate Martin Grigorov a and Pedro Santos. Thanks to them, none of my
questions has gone un answered in this forum.

josh.

On Mon, Mar 28, 2011 at 8:45 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Hi guys

 Been a while, but theres cash in the shop[1] again so that means it's
 time to give out some merchandise :)

 So lets round up some nominees for the very prestigious Apache Wicket
 Merchandise community AWARD program..

 I nominate

 Igor for doing his Wicket cookbook[2]
 Michael O'Cleirigh for work on maintaining wicketstuff


 Please reply to this thread with other nominees, state name and reason
 why you think the nominee are the best contributer to the wicket
 community.. After April 15 I'll put up a poll so we all can decide who
 should be the lucky winner..


 [2]https://www.packtpub.com/apache-wicket-cookbook/book
 [1]http://www.cafepress.com/apachewicket
 regards Nino

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




Re: how to call javascript function on form submission

2011-03-27 Thread Josh Kamau
Yes you can

Lets say you are submitting the form with ajax, When you submit the form,
then you have to add the form to the ajax request target so that it can be
rerendered , then on the same target object, you calll
target.appendJavascript(
showFormTooltips());

My explanation is simplistic but it gives the general idea.

Wicket has ability to:
1. Determine if the entire form is valid
2. Determine if a specific field is valid
3. Hide or show validation message if the form/field is valid
4. Show a validation message on each field
5. Show all validation messages for all fields.



Josh


Re: how to call javascript function on form submission

2011-03-27 Thread Josh Kamau
Hi.

I know there could be many ways of achieving that . But i would do this.

I would create my component. e.g TextFieldString username = new
TextFieldString(username);

Then add validators to the textfield. e.g username.setRequired(true) ; //add
the wicket validators e.g email validators,StringValidators etc

then add a tooltip if the field is valid

eg. if (username.isValid()){
 username.add(new BeautyTipBehavior(username.getFeedbackMessage()).
setPositionPreference(TipPosition.left)));
 }

 The BeautyTipBehavior is from visural-wicket project  see
http://wicket.visural.net/examples/app/tooltips

NOTE: the code above is for illustration purposes. It may not be correct.

Hope you get the idea.

Josh.


Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Josh Kamau
hi.

Have you tried something like

 myLink.add(new AttributeAppender(...));

or

myLink.add(new AttributeModifier(...))

this methods can add/modify a css class in a markup element.

Please check the javadocs for method details if this is what you want.

However, if i were in your situation, i would use css only to archieve this
, that is , if each link reloads a different page.


Josh.


Re: how to call javascript function on form submission

2011-03-26 Thread Josh Kamau
Hi.

As you search on how to validate using jquery, I would like to tell you that
wicket has a very good support for validation/and displaying the
corresponding errors . Am just wondering whether you just prefer to validate
with jquery, or you havent learnt how to do validation the wicket way.

Josh


Re: Portlet Development with wicket

2011-03-21 Thread Josh Kamau
Thanks.

I hope the functionality will remain available somewhere. May be as a
separate library.

Josh.

On Mon, Mar 21, 2011 at 10:52 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  Does wicket support development of portlets ? I cant find much
 information
  by googling.

 Wicket 1.4 does (and it works fine at least in our context of using Liferay
 as container), apparently in 1.5 they are moving that functionality out from
 the main library.

 - Tor Iver


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




Re: Visural Wicket - Maven

2011-03-20 Thread Josh Kamau
Hi.

I use visural wicket with maven and havent had problems so far. Here is a
section of my pom.xml. If it doesnt work, then may be something changed
after my maven had already done the download.

dependency
groupIdcom.visural/groupId
artifactIdvisural-common/artifactId
version0.4.3/version
/dependency

dependency
groupIdcom.visural/groupId
artifactIdvisural-wicket/artifactId
version0.6.5/version
/dependency




repositories
repository
idvisural-common/id
namevisural-common/name
url
http://visural-common.googlecode.com/svn/trunk/visural-common/maven//url
/repository
repository
idvisural-wicket/id
namevisural-wicket/name
url
http://visural-wicket.googlecode.com/svn/trunk/visural-wicket/maven//url
/repository

On Sat, Mar 19, 2011 at 1:16 AM, Shelli Orton shelli.or...@sjrb.ca wrote:

 Hi,

 Has anybody used Visural Wicket with Maven?  I set up my repositories as
 per the information on this page:

 http://code.google.com/p/visural-wicket/wiki/MavenSupport

 The visural-common pom and jar files downloaded are empty even though
 they're not on the server.  However, there isn't a directory for
 visural-wicket on the server.

 Do I need to manually add the files to my repository?

 Thanks,

 -Original Message-
 From: Shelli Orton
 Sent: 18 March 2011 11:20 AM
 To: users@wicket.apache.org
 Subject: RE: Drop Down Choice

 Hi,

 The wicket.visural.net first example looks like exactly what I need.

 Thanks!

 Shelli

 -Original Message-
 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Sent: 18 March 2011 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Drop Down Choice

 theres this one (though not dropdown)

 http://www.wicket-library.com/wicket-examples/ajax/autocompletehttp://w
 ww.wicket-library.com/wicket-examples/ajax/autocomplete;jsessionid=FE414
 790D6B5E7ACECC809CB9E9C9CEB?0http://ww.wicket-library.com/wicket-examples/ajax/autocomplete;jsessionid=FE414%0A790D6B5E7ACECC809CB9E9C9CEB?0
 

 Or this one if you want a drop down:
 http://wicket.visural.net/examples/app/dropdown

 -Nino

 http://www.wicket-library.com/wicket-examples/ajax/autocomplete;jsessio
 nid=FE414790D6B5E7ACECC809CB9E9C9CEB?0

 2011/3/18 Shelli Orton shelli.or...@sjrb.ca

  Hi,
 
  I've been looking for a Wicket drop down widget where one can choose
 an
  item from the list by typing more than the first character.  For
  example, if my list contains the following values:
 
  One
  Two
  Three
  Four
  Five
 
  typing T would select Two, but typing Th would select Three.
 Is
  this possible in Wicket?
 
  Thanks!
 
  Shelli
 
  -
  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




Portlet Development with wicket

2011-03-20 Thread Josh Kamau
Team;

Does wicket support development of portlets ? I cant find much information
by googling.

Josh


Re: Using jQuery with Wicket

2011-03-10 Thread Josh Kamau
Create a smaller version of it (a quickstart application) demonstrating what
you want to achieve.

Josh.


Re: Using jQuery with Wicket

2011-03-09 Thread Josh Kamau
on the first Select , and an ajax form compenent behavior for 'onchange' ,

On the implementation ,  remove the item from the first select's model, add
it to the other select component's model then add both select components to
the  target.

Also use LoadableDetachableModels for your select components so that their
contents is 'recalculated' a fresh when its rendered.
Am assuming you know about models and Ajax behaviours.

Josh.


Re: Apache wicket eBook

2011-03-03 Thread Josh Kamau
You can buy Wicket In Action From manning. Its the best book so far. I think
it would be piracy if i send you my copy. May be with permission from the
authors.

Josh.

On Fri, Mar 4, 2011 at 8:51 AM, Jehan jeeha...@gmail.com wrote:

 Dear All

 If any one have apache wicket eBook then please email it,

 I will be very thankfull to him.



Re: Panel update after Ajax Submit

2011-03-01 Thread Josh Kamau
Hi there,

If you want to refresh the panel, call setOutputMarkupId(true)  on the panel
, then add the panel to the target.

If the Ajax Link  is on the same panel, you can call
this.setOutputMarkupId(true) , and you can also add MyPanel.this to the
target.

The point is , what ever you want to refresh via ajax must have
outputMarkupId set to true.

Hope that helps.

Josh.

On Tue, Mar 1, 2011 at 11:51 AM, Dmitriy Neretin 
dmitriy.nere...@googlemail.com wrote:

 Hello everybody!

 Hope someone can help me. I don't really understand, what I should add as
 ajax target :(

 So, I have an abstract class Index where I add all my panels (3) and it is
 my masterlayout. I add the panels in the index class like this:

 add(new ShoppingCartPanel(id, anotherMehod);

 The appropriate Markup has just following tags (ShoppingCartPanel.html):
 wicket:panel
  Content
 /wicketpanel

 In the other Page (that inherits from Index) I have implemented the
 AjaxSubmitLink:

 add(new AjaxSubmitLink(addtocart) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
target.addComponent(?);

 What I want is, when the link is activated the panel should be updated...

 First: I don't really understand what I have add to the addComponent()
 method ?
 Second: Where schould I set setOutputMarupId(true) ?

 Thank You!



Re: Displaying table in a modalDialog

2011-03-01 Thread Josh Kamau
Thanks Zoltan,

How did you resolve the issue? In my case ,  the entire table/table tag
is removed. If i put a test label just outside the table tag, it is
displayed.

Josh.

On Tue, Mar 1, 2011 at 5:22 PM, Zoltán Nagy zberke...@gmail.com wrote:

 Hi!

 Yes, i've also run into this problem.
 See the sources of the generated page, something will be between the
 table and th/tr/tbody/thead tags. The browser simply drops your
 generated list content or  takes it outside of your table tags.

 2011/2/28 Josh Kamau joshnet2...@gmail.com:
  Has anyone else experienced this problem?
 
  Or do i need to create a quickstart?
 
  Josh.
 
  On Mon, Feb 28, 2011 at 8:19 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
  Hi there,
 
  I am
   trying to use a list view in a modal dialog. But all the time the modal
  dialog shows everything else except what is inside the table/table
 tags
 
  Here is the panel that am setting as the modal dialog content.
 
  Panel.html
 
  wicket:panel
  form wicket:id=frmProject
  div id=content
  div style=margin: 2px 0pt 10px;
  div style=float: right;1 selected of 13/div
 
  input type=checkbox wicket:id=selector/
  Select/Deselect All
 
  /div
 
  div wicket:id=projectUsers
  span wicket:id=lbTest/span
  table class=grid_list_table
  thead
  tr
  th style=width: 10px;input
  type=checkbox/th
  thFirst Nameimg src=img/desc.png
  class=sort/th
  thLast Name/th
  th style=width: 50%;/th
  /tr
  /thead
  tbody
  tr class=odd wicket:id=checkList
  tdinput type=checkbox checked=checked
  wicket:id=checkbox/td
  td wicket:id=lbFirstNameBob/td
  td wicket:id=lbLastNameSmith/td
  td/td
  /tr
  /tbody
  /table
  /div
  /div
  /form
  /wicket:panel
 
  Here is the Java class
 
  package com.printgate.webportal.panels;
 
  import java.util.List;
 
  import org.apache.wicket.ajax.AjaxRequestTarget;
  import
 org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior;
  import org.apache.wicket.markup.html.basic.Label;
  import org.apache.wicket.markup.html.form.Check;
  import org.apache.wicket.markup.html.form.CheckGroup;
  import org.apache.wicket.markup.html.form.CheckGroupSelector;
  import org.apache.wicket.markup.html.form.Form;
  import org.apache.wicket.markup.html.list.ListItem;
  import org.apache.wicket.markup.html.list.ListView;
  import org.apache.wicket.markup.html.panel.Panel;
  import org.apache.wicket.model.CompoundPropertyModel;
  import org.apache.wicket.model.LoadableDetachableModel;
 
  import com.google.inject.Inject;
  import com.printgate.webportal.dao.ProjectDao;
  import com.printgate.webportal.dao.UserDao;
  import com.printgate.webportal.entities.Project;
  import com.printgate.webportal.entities.User;
  import java.util.ArrayList;
 
  public class ModifyUsersPanel extends Panel {
 
  /**
   *
   */
  private static final long serialVersionUID = 1L;
  private FormModifyUsersPanel frmProject;
  private ListViewUser lstUsers;
  private CheckGroupUser chbUsers;
  @Inject
  private ProjectDao projectDao;
  @Inject
  private UserDao userDao;
  private ListUser projectUsers = new ArrayListUser();
 
  public ModifyUsersPanel(String id, final Project project) {
  super(id);
 
  projectUsers = userDao.getAllUsers();
 
  frmProject = new FormModifyUsersPanel(frmProject, new
  CompoundPropertyModelModifyUsersPanel(ModifyUsersPanel.this));
  frmProject.setOutputMarkupId(true);
 
  chbUsers = new CheckGroupUser(projectUsers);
  chbUsers.add(new AjaxFormChoiceComponentUpdatingBehavior() {
 
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void onUpdate(AjaxRequestTarget target) {
  projectDao.updateProject(project);
  }
  });
 
  lstUsers = new ListViewUser(checkList, new
  LoadableDetachableModelListUser() {
 
  private static final long serialVersionUID = 1L;
 
  @Override
  protected ListUser load() {
  return userDao.getAllUsers();
  }
  }) {
 
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void populateItem(ListItemUser item) {
 
  item.add(new CheckUser(checkbox

  1   2   3   >