Re: Apache Wicket is a Flawed Framework

2011-11-19 Thread Cristi Manole
I think all of us were frustrated a lot more than once during our career
and decided to rant about it. I do think Eric's comments were actually made
to be contradicted by the experienced people here so that he could learn
more about Wicket and so take something out of it. It showed passion for
the profession. It's a shame to analyze somebody's competence based on
their LinkedIn profile, no matter how you look at it. How relevant is that,
really? I've seen people with tens of years of experience who couldn't
properly debug code.

I for one love Wicket and might use it for any kind of webapp, but it's by
no means a silver bullet. Anyway, reality proved that most times it was my
dumb programming that made the application not scale or use too much
memory, etc, not the Wicket framework. More I learned about it, which was
most times by browsing the CODE itself, not the books, not the
documentation, the more I knew how great of a framework it is.

I do love writing the SQLs myself or the html or pluging some nice JQuery,
but also letting my designer do his own thing (and appreciate a good DBA),
no matter how much I believe in my own skills and basically Wicket was the
first framework that I found to allow me to do just that.

Then again, I'm the only one I know who really appreciated Swing
development, which comes close to the Wicket way, so I'm sure there are
plenty who think Wicket sucks. It's their choice to do so, even it they say
it to my face, in my home and even not so politely :)

On Sat, Nov 19, 2011 at 8:24 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Sorry, I don't have time to read your whole message right now (man these
 are some long messages, huh?), but I scanned it and saw a couple things I
 could help you with right away.

 On Sat, Nov 19, 2011 at 7:52 PM, jlazeraski
 supreme_java_gur...@yahoo.comwrote:

  Hey all,
 
  Wanted to weigh in on the subject as I have some similar feelings
 regarding
  Wicket and since so many experienced have posted perhaps they can be
  addressed.
 
  I will however include some positives. I absolutely love the idea of the
  templated html page where by a web designer can build up the page and I
 can
  focus on the back end code that adds the dynamic content. I did buy WIA
 and
  another, Wicket Cookbook I think it is, and while I read and understand
 the
  principals behind the framework, it was indeed a much steeper learning
  curve
  for me. So much so that even after reading the book and starting on my
 own
  project, I had a difficult time getting basic stuff working. However, I'd
  still like to learn it more and use it for the separation it provides
  between the back end and the web page itself.
 
  I also love the idea of panels. My go to framework is (don't hate me for
  it)
  Struts 2 and/or Jersey (via ajax calls to a rest api). I have found that
 I
  love the idea of annotated classes to handle actions, response strings
 that
  forward to specific jsp pages and all the code I can do.. calling to ejb
  session beans, etc. The biggest down side to using Struts is, as many
 said,
  the JSP hell. JSP itself is not too bad.. but when you add in % % code,
  scriplets, looping constructs.. it's a darn pain in the butt to manage.
  This
  is why Wicket appealed to me so much. Also, getting back to panels, the
  notion of reusable components that you just place an element in the html
  page and put the component in the tree in code and it works is
  fantastic!!
  Those two things are why I will attempt to use Wicket in the near future
  soon as the project I am working on is out in beta and I can look to
 switch
  from Struts 2 to Wicket.
 
  Now for the areas I am not so sure about and hope maybe some of you may
  have
  some answers for.
 
  The big one for me is the server side statefulness. Maybe I misunderstood
  this, but I am really worried about the ability for Wicket to scale given
  that it keeps per user object trees in memory for the page the user is
 on.
  On the one hand, that is pretty nifty especially for the swing like event
  driven approach with ajax, but where I am not sure of is with the memory
  consumption used continuously on a server, it seems to me you would
 reduce
  the number of users per server you could handle.


 A lot of people have this same concern when coming to Wicket.  However,
 this amounts to the equivalent of premature optimization - assuming that
 something will be your hotspot when it will not be.  I recently wrote an
 article for an in-print Java magazine about Wicket (I'll post more details
 to the list soon).  Here is an excerpt from it.  Please read the two
 included links:

 QUOTE: If you’re really concerned about being able to validate my
 assertion that Wicket will not use more memory than other frameworks, you
 may want to check out http://tinyurl.com/wicket-perf-1 and for a more
 elaborate comparison of Wicket versus several alternative frameworks, see
 http://tinyurl.com/wicket-perf-2 (both 

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread Cristi Manole
yup, nice read. tks for sharing

onComponentTag saved my arse too in the past. Probably that's why I don't
think it's that ugly anymore :)

On Tue, Mar 1, 2011 at 2:41 PM, robert.mcguinness 
robert.mcguinness@gmail.com wrote:

 Per,

 Awesome summary.  Much obliged.

 Rob

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3330455.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: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread Cristi Manole

 
  To unsubscribe from Just 100K per session? That would be my dream come
  true! (Anyone here who has tuned session size before?), click here
  

 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3308014code=cGVyQGhhbWJ1cmcuZGV8MzMwODAxNHwtMjI2MTAwMzE0
 .
 



 --
 View this message in context:

 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3330425.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






 Notice: This communication, including any attachments, is intended solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.




-- 

*Cristi Manole*, PMP   Dream Leader
+40 (721) 437 497   cristiman...@novacreator.com
Nova Creator Software www.novacreator.com


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

2010-05-29 Thread Cristi Manole
read it here

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

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

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


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

 Cheerss!
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Very-interesting-question-my-boss-complain-about-one-of-my-implementations-tp2233874p2235766.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Cristi Manole
cool site! I like it! congrats.

On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote:

 Hey all,

 Just thought fellow Wicketeers might be interested to take a look at a
 site I have just launched built 100% with Wicket -
 http://www.onmydoorstep.com.au/

 The site is a community portal for people living in Victoria,
 Australia and displays government data about every suburb, city and
 town in the state. It also allows users to find government services
 and business nearby and submit community events/festivals and ask
 questions of other users.

 It integrates Wicket with Facebook Connect, Google Maps, Google
 Charts, Google's Weather API, plus on the backend, warp-persist, Guice
 and Hibernate/JPA. I also made extensive use of
 http://code.google.com/p/visural-wicket

 Anyhow - happy to answer any questions about the above technologies
 and the experience of building the site with Wicket. Also welcome
 feedback  criticism should you have some :)


 cheers,
 Richard.

 --
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Question on brix

2009-08-21 Thread Cristi Manole
Hello,

I am after building a (basic) ecommerce application and I'd love to do it in
wicket with Brix. My question is if it's feasible for this task.
Specifically, I'd like to be able to offer to a non technical user the
possibility to enter products with description, prices, photos, etc, to have
access to (simple) layout rules.

I think Brix was designed exactly for tasks like this and, while I know up
front that I could check everything out myself, this takes a great deal of
time so I'd like to find out if I'm wasting my time looking more into Brix
for this.

Thanks a mil,

-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
Not sure if it will help you, but did you also try

item.add(new AttributeModifier(class, *true, *new PropertyModel(this,
runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));

?

That would add class to item if it doesn't have it in markup.

On Wed, Aug 5, 2009 at 12:36 AM, Arun Gupta arun.gu...@gmail.com wrote:

 Trying to provide different color to alternate rows by following the
 recommendation at:


 http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html

 The source code is available at:


 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/java/org/example/runner/runlog/RunlogPage.java?rev=118

 Adding the following code:

 item.add(new AttributeModifier(class, new PropertyModel(this,
 runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));

 at line 104 or 134 gives the following error:

 -- cut here --
 WicketMessage: No get method defined for class: class
 org.example.runner.runlog.RunlogPage$2 expression: list-line-odd

 Root cause:

 org.apache.wicket.WicketRuntimeException: No get method defined for
 class: class org.example.runner.runlog.RunlogPage$2 expression:
 list-line-odd
 at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:440)
 at
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:282)
 at
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
 -- cut here --

 CSS is statically linked as:

 link rel=stylesheet type=text/css href=css/runlog.css/

 The CSS is at:


 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/webapp/css/runlog.css?rev=118

 Any idea, what's wrong ?

 Or a better advise to provide odd/even rows with different colors ?

 Thanks,
 -Arun
 --
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
I think your error is because you're making class either the result of
this.list-line-odd or this.list-line-event and this doesn not implement a
getter for those.

maybe

item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ?
list-line-odd : list-line-event));
?

or change/add parantheses ...

On Wed, Aug 5, 2009 at 12:56 AM, arungupta arun.gu...@gmail.com wrote:


 I've been using 1.3.6 but let me try 1.4 rc build and see where it takes
 me.

 Is there an example that shows how it can be used in the above context ?

 -Arun


 igor.vaynberg wrote:
 
  see
 
  org.apache.wicket.markup.repeater.OddEvenItem
 
  for a cleaner, simpler way to do this
 
  -igor
 
  On Tue, Aug 4, 2009 at 4:36 PM, Arun Guptaarun.gu...@gmail.com wrote:
  Trying to provide different color to alternate rows by following the
  recommendation at:
 
 
 http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html
 
  The source code is available at:
 
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/java/org/example/runner/runlog/RunlogPage.java?rev=118
 
  Adding the following code:
 
  item.add(new AttributeModifier(class, new PropertyModel(this,
  runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));
 
  at line 104 or 134 gives the following error:
 
  -- cut here --
  WicketMessage: No get method defined for class: class
  org.example.runner.runlog.RunlogPage$2 expression: list-line-odd
 
  Root cause:
 
  org.apache.wicket.WicketRuntimeException: No get method defined for
  class: class org.example.runner.runlog.RunlogPage$2 expression:
  list-line-odd
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:440)
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:282)
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
  -- cut here --
 
  CSS is statically linked as:
 
  link rel=stylesheet type=text/css href=css/runlog.css/
 
  The CSS is at:
 
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/webapp/css/runlog.css?rev=118
 
  Any idea, what's wrong ?
 
  Or a better advise to provide odd/even rows with different colors ?
 
  Thanks,
  -Arun
  --
  Need Application Server ? - Download glassfish.org
  Blog: http://blogs.sun.com/arungupta
 
  -
  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
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Alternate-rows-with-different-color-tp24818138p24818321.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
you can always just wrap it...

item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ? new
Model(list-line-odd) : new Model(list-line-event)));

note that you'll get different colors only if you have defined list-line-odd
in your css, added that to page and, of course, if runlog.geId() returns
alternating odd/even numbers.

On Wed, Aug 5, 2009 at 1:17 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 this was meant as an example for you and can work under 1.3.6 as well as
 1.4.

 look at the source to see what it does, you would use it like so:

 new refreshingview() { protected item newItem(..) { return new
 oddevenitem(...); }}

 btw 1.4.0 is out.

 -igor

 On Tue, Aug 4, 2009 at 4:56 PM, arunguptaarun.gu...@gmail.com wrote:
 
  I've been using 1.3.6 but let me try 1.4 rc build and see where it takes
 me.
 
  Is there an example that shows how it can be used in the above context ?
 
  -Arun
 
 
  igor.vaynberg wrote:
 
  see
 
  org.apache.wicket.markup.repeater.OddEvenItem
 
  for a cleaner, simpler way to do this
 
  -igor
 
  On Tue, Aug 4, 2009 at 4:36 PM, Arun Guptaarun.gu...@gmail.com wrote:
  Trying to provide different color to alternate rows by following the
  recommendation at:
 
 
 http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html
 
  The source code is available at:
 
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/java/org/example/runner/runlog/RunlogPage.java?rev=118
 
  Adding the following code:
 
  item.add(new AttributeModifier(class, new PropertyModel(this,
  runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));
 
  at line 104 or 134 gives the following error:
 
  -- cut here --
  WicketMessage: No get method defined for class: class
  org.example.runner.runlog.RunlogPage$2 expression: list-line-odd
 
  Root cause:
 
  org.apache.wicket.WicketRuntimeException: No get method defined for
  class: class org.example.runner.runlog.RunlogPage$2 expression:
  list-line-odd
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:440)
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:282)
  at
 
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
  -- cut here --
 
  CSS is statically linked as:
 
  link rel=stylesheet type=text/css href=css/runlog.css/
 
  The CSS is at:
 
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/webapp/css/runlog.css?rev=118
 
  Any idea, what's wrong ?
 
  Or a better advise to provide odd/even rows with different colors ?
 
  Thanks,
  -Arun
  --
  Need Application Server ? - Download glassfish.org
  Blog: http://blogs.sun.com/arungupta
 
  -
  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
 
 
 
 
  --
  View this message in context:
 http://www.nabble.com/Alternate-rows-with-different-color-tp24818138p24818321.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
How about

public class RunlogPage extends BasePage {
private int counter;

(...)

item.add(new AttributeModifier(class, counter++ % 2 == 0 ? new
Model(list-line-odd) : new Model(list-line-event)));

?


On Wed, Aug 5, 2009 at 1:33 AM, arungupta arun.gu...@gmail.com wrote:


 Sweet, that worked :)

 Now runlog.getId() does not return alternating odd/even numbers so will
 need
 to figure out what might ;) Is there anything in the model that might
 provide that information ?

 -Arun


 Cristi Manole wrote:
 
  you can always just wrap it...
 
  item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ? new
  Model(list-line-odd) : new Model(list-line-event)));
 
  note that you'll get different colors only if you have defined
  list-line-odd
  in your css, added that to page and, of course, if runlog.geId() returns
  alternating odd/even numbers.
 
  On Wed, Aug 5, 2009 at 1:17 AM, Igor Vaynberg
  igor.vaynb...@gmail.comwrote:
 
  this was meant as an example for you and can work under 1.3.6 as well as
  1.4.
 
  look at the source to see what it does, you would use it like so:
 
  new refreshingview() { protected item newItem(..) { return new
  oddevenitem(...); }}
 
  btw 1.4.0 is out.
 
  -igor
 
  On Tue, Aug 4, 2009 at 4:56 PM, arunguptaarun.gu...@gmail.com wrote:
  
   I've been using 1.3.6 but let me try 1.4 rc build and see where it
  takes
  me.
  
   Is there an example that shows how it can be used in the above context
  ?
  
   -Arun
  
  
   igor.vaynberg wrote:
  
   see
  
   org.apache.wicket.markup.repeater.OddEvenItem
  
   for a cleaner, simpler way to do this
  
   -igor
  
   On Tue, Aug 4, 2009 at 4:36 PM, Arun Guptaarun.gu...@gmail.com
  wrote:
   Trying to provide different color to alternate rows by following the
   recommendation at:
  
  
 
 http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html
  
   The source code is available at:
  
  
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/java/org/example/runner/runlog/RunlogPage.java?rev=118
  
   Adding the following code:
  
   item.add(new AttributeModifier(class, new PropertyModel(this,
   runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));
  
   at line 104 or 134 gives the following error:
  
   -- cut here --
   WicketMessage: No get method defined for class: class
   org.example.runner.runlog.RunlogPage$2 expression: list-line-odd
  
   Root cause:
  
   org.apache.wicket.WicketRuntimeException: No get method defined for
   class: class org.example.runner.runlog.RunlogPage$2 expression:
   list-line-odd
   at
  
 
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:440)
   at
  
 
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:282)
   at
  
 
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
   -- cut here --
  
   CSS is statically linked as:
  
   link rel=stylesheet type=text/css href=css/runlog.css/
  
   The CSS is at:
  
  
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/webapp/css/runlog.css?rev=118
  
   Any idea, what's wrong ?
  
   Or a better advise to provide odd/even rows with different colors ?
  
   Thanks,
   -Arun
   --
   Need Application Server ? - Download glassfish.org
   Blog: http://blogs.sun.com/arungupta
  
  
 -
   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
  
  
  
  
   --
   View this message in context:
 
 http://www.nabble.com/Alternate-rows-with-different-color-tp24818138p24818321.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Cristi Manole
 
  Nova Creator Software
  www.novacreator.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Alternate-rows-with-different-color-tp24818138p24818677.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
your solution is definitely better, Igor, but he seems very new to wicket
and it was faster to get that working than to explain he needs to change the
repeater. at least that's what i thought.

On Wed, Aug 5, 2009 at 1:43 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 you guys are more then welcome to head down this badly broken road, or
 you can look at what i said...

 -igor

 On Tue, Aug 4, 2009 at 5:37 PM, Cristi Manolecristiman...@gmail.com
 wrote:
  How about
 
  public class RunlogPage extends BasePage {
  private int counter;
 
  (...)
 
  item.add(new AttributeModifier(class, counter++ % 2 == 0 ? new
  Model(list-line-odd) : new Model(list-line-event)));
 
  ?
 
 
  On Wed, Aug 5, 2009 at 1:33 AM, arungupta arun.gu...@gmail.com wrote:
 
 
  Sweet, that worked :)
 
  Now runlog.getId() does not return alternating odd/even numbers so will
  need
  to figure out what might ;) Is there anything in the model that might
  provide that information ?
 
  -Arun
 
 
  Cristi Manole wrote:
  
   you can always just wrap it...
  
   item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ? new
   Model(list-line-odd) : new Model(list-line-event)));
  
   note that you'll get different colors only if you have defined
   list-line-odd
   in your css, added that to page and, of course, if runlog.geId()
 returns
   alternating odd/even numbers.
  
   On Wed, Aug 5, 2009 at 1:17 AM, Igor Vaynberg
   igor.vaynb...@gmail.comwrote:
  
   this was meant as an example for you and can work under 1.3.6 as well
 as
   1.4.
  
   look at the source to see what it does, you would use it like so:
  
   new refreshingview() { protected item newItem(..) { return new
   oddevenitem(...); }}
  
   btw 1.4.0 is out.
  
   -igor
  
   On Tue, Aug 4, 2009 at 4:56 PM, arunguptaarun.gu...@gmail.com
 wrote:
   
I've been using 1.3.6 but let me try 1.4 rc build and see where it
   takes
   me.
   
Is there an example that shows how it can be used in the above
 context
   ?
   
-Arun
   
   
igor.vaynberg wrote:
   
see
   
org.apache.wicket.markup.repeater.OddEvenItem
   
for a cleaner, simpler way to do this
   
-igor
   
On Tue, Aug 4, 2009 at 4:36 PM, Arun Guptaarun.gu...@gmail.com
   wrote:
Trying to provide different color to alternate rows by following
 the
recommendation at:
   
   
  
 
 http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html
   
The source code is available at:
   
   
  
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/java/org/example/runner/runlog/RunlogPage.java?rev=118
   
Adding the following code:
   
item.add(new AttributeModifier(class, new PropertyModel(this,
runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)));
   
at line 104 or 134 gives the following error:
   
-- cut here --
WicketMessage: No get method defined for class: class
org.example.runner.runlog.RunlogPage$2 expression: list-line-odd
   
Root cause:
   
org.apache.wicket.WicketRuntimeException: No get method defined
 for
class: class org.example.runner.runlog.RunlogPage$2 expression:
list-line-odd
at
   
  
 
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:440)
at
   
  
 
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:282)
at
   
  
 
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
-- cut here --
   
CSS is statically linked as:
   
link rel=stylesheet type=text/css href=css/runlog.css/
   
The CSS is at:
   
   
  
 
 http://kenai.com/projects/runner/sources/subversion/content/wicket/runner/src/main/webapp/css/runlog.css?rev=118
   
Any idea, what's wrong ?
   
Or a better advise to provide odd/even rows with different colors
 ?
   
Thanks,
-Arun
--
Need Application Server ? - Download glassfish.org
Blog: http://blogs.sun.com/arungupta
   
   
  -
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
   
   
   
   
--
View this message in context:
  
 
 http://www.nabble.com/Alternate-rows-with-different-color-tp24818138p24818321.html
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr

Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
Hello,

I've got an ajaxTabbedPanel inside a ModalWindow. I would like to call some
javascript _after_ the panel from ajaxTabbedPanel is displayed.

Overriding onAjaxUpdate(AjaxRequestTarget target) doesn't help as it seems
it gets called before the panel gets displayed.

Do you have any ideas?

Thanks,
-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
Hello,

Tks for the reply. Yes, I'm using that, the problem is it gets called before
the rendering finishes. I need something that runs after it got rendered.

Any ideas?

Cristi

On Mon, Aug 3, 2009 at 1:07 PM, Eyal Golan egola...@gmail.com wrote:

 I'm not sure, but are you looking for this:
 AjaxRequestTarget #appendJavascript(javascript)
 ?

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary


 On Mon, Aug 3, 2009 at 2:11 PM, Cristi Manole cristiman...@gmail.com
 wrote:

  Hello,
 
  I've got an ajaxTabbedPanel inside a ModalWindow. I would like to call
 some
  javascript _after_ the panel from ajaxTabbedPanel is displayed.
 
  Overriding onAjaxUpdate(AjaxRequestTarget target) doesn't help as it
 seems
  it gets called before the panel gets displayed.
 
  Do you have any ideas?
 
  Thanks,
  --
  Cristi Manole
 
  Nova Creator Software
  www.novacreator.com
 




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
I think you're right. Maybe I need smth like a dom ready thing. The
javascript call I'm making is to update something that's not yet there. If I
use firebug to inject the call after it finished rendering it works.

On Mon, Aug 3, 2009 at 2:03 PM, Erik van Oosten e.vanoos...@grons.nlwrote:

 That can not be right. The javascript added with
 AjaxRequestTarget#appendJavascript should be executed /after/ the DOM
 manipulations have finished. Maybe you called prependJavascript by accident?

 Or do you refer to something another thing when you write 'before the
 rendering finishes'?

 BTW, I assume you are using an overriden AjaxTabbedPanel#onAjaxUpdate.

 Regards,
   Erik.

 Cristi Manole wrote:

 Hello,

 Tks for the reply. Yes, I'm using that, the problem is it gets called
 before
 the rendering finishes. I need something that runs after it got rendered.

 Any ideas?

 Cristi

 On Mon, Aug 3, 2009 at 1:07 PM, Eyal Golan egola...@gmail.com wrote:


 I'm not sure, but are you looking for this:
 AjaxRequestTarget #appendJavascript(javascript)
 ?

 Eyal Golan
 egola...@gmail.com



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



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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
I used  JQuery

$(document).*ready*(function(){
  // Your code here...
});

and it works now. Don't know why OOB Wicket doesn't work in this case.

Thks.

On Mon, Aug 3, 2009 at 2:08 PM, Cristi Manole cristiman...@gmail.comwrote:

 I think you're right. Maybe I need smth like a dom ready thing. The
 javascript call I'm making is to update something that's not yet there. If I
 use firebug to inject the call after it finished rendering it works.


 On Mon, Aug 3, 2009 at 2:03 PM, Erik van Oosten e.vanoos...@grons.nlwrote:

 That can not be right. The javascript added with
 AjaxRequestTarget#appendJavascript should be executed /after/ the DOM
 manipulations have finished. Maybe you called prependJavascript by accident?

 Or do you refer to something another thing when you write 'before the
 rendering finishes'?

 BTW, I assume you are using an overriden AjaxTabbedPanel#onAjaxUpdate.

 Regards,
   Erik.

 Cristi Manole wrote:

 Hello,

 Tks for the reply. Yes, I'm using that, the problem is it gets called
 before
 the rendering finishes. I need something that runs after it got rendered.

 Any ideas?

 Cristi

 On Mon, Aug 3, 2009 at 1:07 PM, Eyal Golan egola...@gmail.com wrote:


 I'm not sure, but are you looking for this:
 AjaxRequestTarget #appendJavascript(javascript)
 ?

 Eyal Golan
 egola...@gmail.com



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



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




 --
 Cristi Manole

 Nova Creator Software
 www.novacreator.com




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: img src= ... tags are truely evil!

2009-08-03 Thread Cristi Manole
anything similar for Eclipse?

On Mon, Aug 3, 2009 at 4:40 PM, Nick Heudecker nheudec...@gmail.com wrote:

 The next version of WicketForge has an inspection that looks for this.

 On Mon, Aug 3, 2009 at 8:24 AM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  it should be possible to create an IResponseFilter that checks for
  this and reports the error in dev mode.
 
  -igor
 
  On Mon, Aug 3, 2009 at 8:00 AM, Martin Funkmafulaf...@googlemail.com
  wrote:
   I know its been talked about before
  
 
 http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas
  
   Just had to restate it, make myself remember.
  
   mf
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: tinymce textarea in a modal window not letting to type

2009-07-04 Thread Cristi Manole
Fixed

Just add the tinyMCE again after the modal is displayed

target.appendJavascript(tinyMCE.execCommand('mceRemoveControl',false,' +
...

target.appendJavascript(tinyMCE.execCommand('mceAddControl',false,' + ...


On Sat, Jul 4, 2009 at 4:01 AM, Cristi Manole cristiman...@gmail.comwrote:

 Hey,

 Did you manage to solve this? I'm facing the same problem - tinymce added
 to a modal (based on panel) works the first time, second time it is
 displayed nicely but cannot do anything with it (cannot focus so cannot
 type).

 Or anybody else?

 Thanks


 On Sat, Apr 25, 2009 at 6:23 AM, balingen tame 
 euuesundtrin...@gmail.comwrote:

 I  am using tinymce text area in several pages, today I added this to a
 wicket modal window, the   tinymce textarea shows up fine but when I type
 nothing goes into it , its not disabled  , I can click on the editor
 buttons, it does not take the mouse , please help me resolve this




 --
 Cristi Manole

 Nova Creator Software
 www.novacreator.com




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: tinymce textarea in a modal window not letting to type

2009-07-03 Thread Cristi Manole
Hey,

Did you manage to solve this? I'm facing the same problem - tinymce added to
a modal (based on panel) works the first time, second time it is displayed
nicely but cannot do anything with it (cannot focus so cannot type).

Or anybody else?

Thanks

On Sat, Apr 25, 2009 at 6:23 AM, balingen tame euuesundtrin...@gmail.comwrote:

 I  am using tinymce text area in several pages, today I added this to a
 wicket modal window, the   tinymce textarea shows up fine but when I type
 nothing goes into it , its not disabled  , I can click on the editor
 buttons, it does not take the mouse , please help me resolve this




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-25 Thread Cristi Manole
Very very cool. Congrats!

On Fri, Jun 26, 2009 at 12:03 AM, rrmlwt rrm...@gmail.com wrote:

 Hi Folks,

 I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of
 graphical resources that are boring to create, such as buttons, borders, and
 layouts.
 It's an early release in the sense that it does not contain everything I'd
 like, but at least here it is.
 Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
 runs on 1.3 (haven't tested).
 The homepage: http://swit.kornr.net
 The google code page: http://code.google.com/p/swit/

 cheers,
 Rodrigo


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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Wicket generics?

2009-06-12 Thread Cristi Manole
declaration is not the problem. from what i remember from generics (I might
be wrong), you're not allowed to instantiate generically. you have to tell
the compiler exactly what type you want. at runtime it has no idea about
generics.

On Sat, Jun 13, 2009 at 12:41 AM, James Carman
ja...@carmanconsulting.comwrote:

 Just because the constructor is declared that way (with the ?) doesn't mean
 you have to declare your variables that way.

 On Jun 12, 2009 4:43 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

  new DropDownChoiceBaseClass ?

 Maybe ...

 **
 Martin

   On Fri, Jun 12, 2009 at 6:06 AM, Martin  Makundi
 martin.maku...@koodaripalvelut.com wrote: ...




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Locale

2009-06-10 Thread Cristi Manole
Hello,

One of our applications has to be internationalized. For this we use the out
of the box Wicket solution (1.3.5) We don't set the locale anywhere. The
application is deployed on Tomcat.

When testing, we found out that the first user that accesses the application
is going to set up the locale for all the others. For instance, if a user
which has Firefox configured with Spanish as the primary language, he will
get the pages correctly rendered in Spanish. When a user with English as
primary language accesses the page, he will also see the page in Spanish. If
we restart the server and the English user accesses it first, the Spanish
user will see everything in English.

We thought that the pages are rendered based on the language settings in the
browser dynamically. Are we missing something?

Thanks in advance,

-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Locale

2009-06-10 Thread Cristi Manole
Hello,

We have properties as xml. Default is English. But we provide for instance
the translation for Argentinean Spanish:

SomePage.html
SomePage.xml
SomePage_es_AR.xml

We test using two computers, one with IE (configured as is - defaults to
English) and another FF (primary language set to Argentinean Spanish). Same
LAN.

We do not set anywhere the locale. We have nothing else related to the
locale other than these xml files (and of course in the html we use
extensively wicket:message).

Thanks for your response.

On Wed, Jun 10, 2009 at 3:08 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Seems so, my experience are that it should be working.

 However if your default language are spanish (default.properties) and
 you do not support english us(default_en_us.properties) it will
 fallback to default.. But seems you are relying on something static?
 How did you test this?

 2009/6/10 Cristi Manole cristiman...@gmail.com:
  Hello,
 
  One of our applications has to be internationalized. For this we use the
 out
  of the box Wicket solution (1.3.5) We don't set the locale anywhere. The
  application is deployed on Tomcat.
 
  When testing, we found out that the first user that accesses the
 application
  is going to set up the locale for all the others. For instance, if a user
  which has Firefox configured with Spanish as the primary language, he
 will
  get the pages correctly rendered in Spanish. When a user with English as
  primary language accesses the page, he will also see the page in Spanish.
 If
  we restart the server and the English user accesses it first, the Spanish
  user will see everything in English.
 
  We thought that the pages are rendered based on the language settings in
 the
  browser dynamically. Are we missing something?
 
  Thanks in advance,
 
  --
  Cristi Manole
 
  Nova Creator Software
  www.novacreator.com
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Locale

2009-06-10 Thread Cristi Manole
Thanks for your help. I will try to see more into it. If i cannot solve it,
I will prepare a quickstart.

On Wed, Jun 10, 2009 at 3:40 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Hmm could you try to switch it around? So the IE uses default and FF
 uses the Argentinean Spanish locale..? Just wondering about ie..

 Which version of ie are it?

 And could you try these:

 http://wicketstuff.org/wicket13/hellobrowser/howdy/HelloBrowser/
 http://wicketstuff.org/wicket13/pub/

 On both to see the result? Probably the pub example arent that
 intresting.. Since it does not support es ar..

 Im just wondering if its browser trouble... Which IE are it?

 2009/6/10 Cristi Manole cristiman...@gmail.com:
  Hello,
 
  We have properties as xml. Default is English. But we provide for
 instance
  the translation for Argentinean Spanish:
 
  SomePage.html
  SomePage.xml
  SomePage_es_AR.xml
 
  We test using two computers, one with IE (configured as is - defaults to
  English) and another FF (primary language set to Argentinean Spanish).
 Same
  LAN.
 
  We do not set anywhere the locale. We have nothing else related to the
  locale other than these xml files (and of course in the html we use
  extensively wicket:message).
 
  Thanks for your response.
 
  On Wed, Jun 10, 2009 at 3:08 PM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
  Seems so, my experience are that it should be working.
 
  However if your default language are spanish (default.properties) and
  you do not support english us(default_en_us.properties) it will
  fallback to default.. But seems you are relying on something static?
  How did you test this?
 
  2009/6/10 Cristi Manole cristiman...@gmail.com:
   Hello,
  
   One of our applications has to be internationalized. For this we use
 the
  out
   of the box Wicket solution (1.3.5) We don't set the locale anywhere.
 The
   application is deployed on Tomcat.
  
   When testing, we found out that the first user that accesses the
  application
   is going to set up the locale for all the others. For instance, if a
 user
   which has Firefox configured with Spanish as the primary language, he
  will
   get the pages correctly rendered in Spanish. When a user with English
 as
   primary language accesses the page, he will also see the page in
 Spanish.
  If
   we restart the server and the English user accesses it first, the
 Spanish
   user will see everything in English.
  
   We thought that the pages are rendered based on the language settings
 in
  the
   browser dynamically. Are we missing something?
  
   Thanks in advance,
  
   --
   Cristi Manole
  
   Nova Creator Software
   www.novacreator.com
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Cristi Manole
 
  Nova Creator Software
  www.novacreator.com
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Write XML response

2009-06-09 Thread Cristi Manole
Take a look here:
http://www.levmuchnik.net/Content/ProgrammingTips/WEB/XMLDisplay/DisplayXMLFileWithJavascript.html

Maybe this is what you want.

I found this by searching on Google, but it seems very easy to integrate
with wicket, change display colors, etc...

Hope it helps.

On Tue, Jun 9, 2009 at 9:49 PM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 It's a feature of older versions of IE - most newer versions show XML
 with some styling instead.  But it is dependent on the entire response
 being XML - and having text/xml as the response type.

 So, no, you can't do this for a portion of the page.  (barring
 possibly using an iframe)

 And, no, you wouldn't want to - it's not a reliable way of displaying
 information in a cross-browser compatible way.  However, I would bet
 that there are JS libraries out there that take a raw XML string and
 display it in a pretty way - possibly even with expanding and
 collapsing nodes, etc.  There may even be a Wicket component somewhere
 that does it - similar to treeview or something - but I don't know of
 one.

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




 On Tue, Jun 9, 2009 at 1:43 PM, m_salmanmohammad_sal...@yahoo.com wrote:
 
  What I mean is that I click on the '+' sign and it expands, '-' sign
  condenses it.
 
  I think it is the response header thing.  Can that be set for the label?
  But you do say that has to be for the entire response..
 
  Thanks.
 
 
  Jeremy
  Thomerson-5 wrote:
 
  What do you mean interactive form?  Most browsers apply their own
  formatting to a page if the entire response is XML (response header is
  text/xml) and there is no stylesheet attached.  I think that's what
  you mean - but I'm not sure.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Tue, Jun 9, 2009 at 1:31 PM, m_salmanmohammad_sal...@yahoo.com
 wrote:
 
  Thanks for the quick response.  Well I am using the label but I get the
  output as booktitleBook on
  Logic/titleauthorAristotle/author/book
 
  How can I show that in interactive form as shown in a browser?
 
  Thanks again.
 
 
 
  Jeremy Thomerson-5 wrote:
 
  XML is just another type of markup.  If the XML is generated by some
  service, etc, just use a label to display it.  Otherwise, just make
  your markup FooPanel.xml - put your markup in their, using wicket:id
  tags as normal, etc.  Then in FooPanel.java override getMarkupType and
  return xml.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Tue, Jun 9, 2009 at 1:17 PM, m_salmanmohammad_sal...@yahoo.com
  wrote:
 
  I would appreciate very much if some one can tell me how can I use
 this
  method, or any other method, to display xml in a panel.  I want xml
 to
  be
  displayed in an interactive format in  a panel when a form is
  submitted.
 
  Thanks.
  --
  View this message in context:
  http://www.nabble.com/Write-XML-response-tp20210589p23948547.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  View this message in context:
  http://www.nabble.com/Write-XML-response-tp20210589p23948835.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  View this message in context:
 http://www.nabble.com/Write-XML-response-tp20210589p23949030.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: wicket logo

2009-05-29 Thread Cristi Manole
Hello Martijn,

I think he meant using the (official) Apache Wicket badge on a page (site)
of his own. Promoting that his site is using the fabulous Wicket framework.
And not redesigning the wicket logo itself.

Maybe I'm wrong. But iterating on the question - can I use an official
Wicked badge somewhere on my site, saying something like Powered by insert
Wicked badge here ? If so, where can I find more badges (size, etc) ?

Thanks,
Cristi Manole

On Fri, May 29, 2009 at 5:36 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 On Wed, May 27, 2009 at 8:09 AM, Luther Baker lutherba...@gmail.com
 wrote:
  Is there an official Wicket website badge?

 Nope.

  Any problems with dropping the orange Wicket logo into a Power By
 Wicket
  slogan at the bottom of a site?

 Unfortunately, yes. This is something the Apache PRC committee is
 being very anal about: using Apache trademarks.

 Send your design to p...@apache.org and ask for permission to use the
 badge. If you're very good at design, you might want to consider
 donating the badge under a CLA to our project, and then we'll include
 it with our site, and ensure the PRC approves the badge.

 Martijn

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: wicket and jquery

2009-05-29 Thread Cristi Manole
Hi,

There's no magic here. it's just a (decent) javascript library that you can
use. Usually what people are doing (or at least how I use it) here is build
the web application the normal way - html / css / javascript (consider this
the designer role) and then wickify it - meaning go through the initial
design and put wicket:id's to elements I want to connect to my java logic.
And do whatever my business rules are. Or go one step further and build
stand-alone component for reuse on other projects.

The point is I don't actually care if the designer uses jquery or extjs or
anything else. He's not forced on using any javascript at all. Perfectly
clean separation.

I guess you're looking on using a nice widget that somebody built using
jquery. The integration with wicket is as simple as I said above. No magic.

For a very (_very_) dumb example, take a look for instance here (to get an
idea) :
http://www.dooriented.com/blog/2009/05/11/wicket-component-jquery-accordion-menu/

Hope I was able to help you a little bit,
Cristi Manole

2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de

 Hello everyone,

 i know this might sound a little weird and naive and maybe stupid ... I
 dunno, I'll ask anyway (though I did research myself, but I would need some
 sort of useful hint for a total wicket-jquery-newbie): how can I use wicket
 and jquery together? Where can I find an example?

 And yes I did ask google, but seriously - no harm meant - it seems soo
 NOT organized ... there are like a billion dead links ... maybe even more
 and I am on the edge and desperate ... s please, bear with me!

 Thnx,
 dg


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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: wicket and jquery

2009-05-29 Thread Cristi Manole
not bad. do you have a link?

Cristi Manole

On Fri, May 29, 2009 at 1:39 PM, Stefan Lindner lind...@visionet.de wrote:

 Currently I'm building a wicket library around jQuery. Drag and drop and
 resizable are ready for use (with callback handlers in Wicket-Java onDrop,
 on Resized etc.). If anybody is interrested I can provied a simple library
 with some simple examples.

 -Ursprüngliche Nachricht-
 Von: Dorothée Giernoth [mailto:dorothee.giern...@kds-kg.de]
 Gesendet: Freitag, 29. Mai 2009 17:33
 An: users@wicket.apache.org
 Betreff: AW: wicket and jquery

 Thnx guys, I will check that out. This might mean, that not all hope is
 lost!
 Have a great weekend!


 -Ursprüngliche Nachricht-
 Von: Rodolfo Hansen [mailto:kry...@gmail.com]
 Gesendet: Freitag, 29. Mai 2009 17:21
 An: users@wicket.apache.org
 Betreff: Re: wicket and jquery

 Also you can checkout

 http://code.google.com/p/wiquery/

 which has a couple of ideas...

 On Fri, May 29, 2009 at 11:15 AM, Dipu dipu@googlemail.com wrote:

  take a look at this
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent
 
  -dipu
 
  2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de:
   Hello everyone,
  
   i know this might sound a little weird and naive and maybe stupid ... I
  dunno, I'll ask anyway (though I did research myself, but I would need
 some
  sort of useful hint for a total wicket-jquery-newbie): how can I use
 wicket
  and jquery together? Where can I find an example?
  
   And yes I did ask google, but seriously - no harm meant - it seems
  soo NOT organized ... there are like a billion dead links ... maybe
 even
  more and I am on the edge and desperate ... s please, bear with me!
  
   Thnx,
   dg
  
  
   -
   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
 
 


 --
 Rodolfo Hansen
 CEO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Office: 1 (809) 732-5200
 Mobile: 1 (809) 299-7332

 -
 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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Cristi Manole
In order to have something like that, I have to specifically mention
something in my WebApplication class, right (if i remember correctly) ? And
I think the way wicket works for browser extend is to redirect to some page
where it reads this info. I think it's too much just to see the support for
js.

Why not go the easy way and have some kind of html tag that holds a value
like x. Through javascript I change that value like y. I tie that with a
wicket:id to read it. If it's x, I have js.

Or what i'm saying is not valid?

Cristi Manole

On Fri, May 29, 2009 at 1:14 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 you can ask wicket to figure out if the browser supports javascript or not,
 see

 getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo()

 the way the fallback button works is that it is a regular button and
 we use javascript to override the default behavior - thus if no
 javascript is there then nothing is overridden and the button works
 like a regular button instead of ajax.

 -igor

 On Fri, May 29, 2009 at 4:51 AM, yong mook kim mkyong2...@yahoo.com
 wrote:
 
  hi,
 
Thanks, i agree with your point. However what i want is a browser's
 javascript detect function, if isJavascriptEnable() then load the
 LazyLoadPanel else fall back to normal panel behaviour.
 
  something like below
 
  Page start
 
  if(isJavascriptEnable()){
add(new AjaxLazyLoadPanel('123')...
  }else{
add(new ABCPanel('123')
  }
 
  Page end
 
  I wonder how Wicket AjaxFallBackButton work?
 
 
 
 
 
  --- On Fri, 5/29/09, Martijn Dashorst martijn.dasho...@gmail.com
 wrote:
 
  From: Martijn Dashorst martijn.dasho...@gmail.com
  Subject: Re: AjaxLazyLoadPanel fallback version?
  To: users@wicket.apache.org
  Date: Friday, May 29, 2009, 7:26 AM
  It's called Panel. Either your users
  have to have javascript enabled
  and you can use LazyLoadPanel, or you have to use direct
  Panel's.
 
  There is no way to lazy load anything without having to
  resort to
  JavaScript. Think about it. How could you instruct the
  browser to
  retrieve and replace a part of your page after a given
  time?
 
  The only thing that comes to mind is using iframes.
 
  Martijn
 
  On Fri, May 29, 2009 at 12:09 PM, yong mook kim mkyong2...@yahoo.com
  wrote:
  
   Hi,
  
When browser's Javascript is disabled,
  AjaxLazyLoadPanel's image (wicket ajax deafult image) will
  keep loading forever, page will not return. Is there a
  AjaxLazyLoadPanel fallback version which will delegate to
  normal request if javascript is disabled?
  
   I wonder how Wicket detect the browser's javascript is
  disabled?  Thanks
  
   regards
   yong
  
  
  
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.5 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Inmethod DataGrid without column headers?

2009-05-29 Thread Cristi Manole
I might be wrong, but...

Datagrid extends AbstractGrid which has
public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {
addToolbar(toolbar, headerToolbarContainer);
}

simply overriding that in your Datagrid
public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {
//nothing
}
doesn't do what you want?

Cristi Manole


On Fri, May 29, 2009 at 12:37 PM, Marcin Palka marcin.pa...@gmail.comwrote:

 Hi,

 Is there any way to render a Inmethod DataGrid without column headers?
 For wicket's standard DataTable there's a HeaderlessColumn but I
 haven't been able to find an equivalent column type for DataGrid.

 cheers
 Marcin

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Cristi Manole
I don't remember now exactly so i'm just typing whatever i think it's ok,
but on some project we checked some javascript related stuff using something
like the following

on html
script type=text/javascript 
function callWicket() {
wicketAjaxGet(callback + 'parameter=value', function() {}, function()
{});
}
/script

where callback is an extends AbstractDefaultAjaxBehaviour that if it gets
called, you have js,

dummyDiv.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(whatever)) {
@Override
protected void onPostProcessTarget(AjaxRequestTarget target) {
target.appendJavascript(callWicket(););
}
});
dummyDiv.add(behavior);

We got rid of the div through ajax after being used. if js is not enabled, I
wouldn't have the self updating timer doing anything in the first place.

Maybe it's stupid, maybe it's too much but it worked for us, without any
redirect, without showing anything to the user. And once you have it in a
component, I don't care about it, just dumb it to the page.

Cristi Manole

On Fri, May 29, 2009 at 2:39 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 thats exactly what the redirect page does

 you can of course implement the check yourself but you need to know
 that on server side so it has to be submitted somehow.

 -igor

 On Fri, May 29, 2009 at 10:36 AM, Cristi Manole cristiman...@gmail.com
 wrote:
  In order to have something like that, I have to specifically mention
  something in my WebApplication class, right (if i remember correctly) ?
 And
  I think the way wicket works for browser extend is to redirect to some
 page
  where it reads this info. I think it's too much just to see the support
 for
  js.
 
  Why not go the easy way and have some kind of html tag that holds a value
  like x. Through javascript I change that value like y. I tie that with a
  wicket:id to read it. If it's x, I have js.
 
  Or what i'm saying is not valid?
 
  Cristi Manole
 
  On Fri, May 29, 2009 at 1:14 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  you can ask wicket to figure out if the browser supports javascript or
 not,
  see
 
 
 getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo()
 
  the way the fallback button works is that it is a regular button and
  we use javascript to override the default behavior - thus if no
  javascript is there then nothing is overridden and the button works
  like a regular button instead of ajax.
 
  -igor
 
  On Fri, May 29, 2009 at 4:51 AM, yong mook kim mkyong2...@yahoo.com
  wrote:
  
   hi,
  
 Thanks, i agree with your point. However what i want is a browser's
  javascript detect function, if isJavascriptEnable() then load the
  LazyLoadPanel else fall back to normal panel behaviour.
  
   something like below
  
   Page start
  
   if(isJavascriptEnable()){
 add(new AjaxLazyLoadPanel('123')...
   }else{
 add(new ABCPanel('123')
   }
  
   Page end
  
   I wonder how Wicket AjaxFallBackButton work?
  
  
  
  
  
   --- On Fri, 5/29/09, Martijn Dashorst martijn.dasho...@gmail.com
  wrote:
  
   From: Martijn Dashorst martijn.dasho...@gmail.com
   Subject: Re: AjaxLazyLoadPanel fallback version?
   To: users@wicket.apache.org
   Date: Friday, May 29, 2009, 7:26 AM
   It's called Panel. Either your users
   have to have javascript enabled
   and you can use LazyLoadPanel, or you have to use direct
   Panel's.
  
   There is no way to lazy load anything without having to
   resort to
   JavaScript. Think about it. How could you instruct the
   browser to
   retrieve and replace a part of your page after a given
   time?
  
   The only thing that comes to mind is using iframes.
  
   Martijn
  
   On Fri, May 29, 2009 at 12:09 PM, yong mook kim 
 mkyong2...@yahoo.com
   wrote:
   
Hi,
   
 When browser's Javascript is disabled,
   AjaxLazyLoadPanel's image (wicket ajax deafult image) will
   keep loading forever, page will not return. Is there a
   AjaxLazyLoadPanel fallback version which will delegate to
   normal request if javascript is disabled?
   
I wonder how Wicket detect the browser's javascript is
   disabled?  Thanks
   
regards
yong
   
   
   
   
   
   -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
  
   --
   Become a Wicket expert, learn from the best:
 http://wicketinaction.com
   Apache Wicket 1.3.5 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h

congrats to inmethod

2009-05-29 Thread Cristi Manole
I was trying to see if the inmethod site still links the (best) wicket
data/tree table (although i knew it's been moved to wicket-stuff) and I
stumbled on the new site.

The site looks great and so does the service. Congrats to Matej... Igor
(brix in action) ?... and best of luck with it.

Why didn't you guys promote it here?

http://www.inmethod.com

-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Any forum (bb) components / applications written using Wicket?

2009-05-25 Thread Cristi Manole
Hi,

Thanks to both of you. I've checked JForum in the past, and while I like it
a lot (I think we have it implemented on one of the sites we did for a
client), I thought back then it would be hard to really integrate it with
Wicket.

I decided to write what I need from scratch, since I don't need a full blown
forum anyways.

Once I finish it, if it seems worth anything to somebody else, I will
release the code to the crowd.

Again, thanks,
Cristi

On Mon, May 25, 2009 at 4:51 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Hi

 I did the BBcode integration, it's very basic. But a starting point..

 If you need something more, you could use Jforum it's since it's
 possible todo a single sign on from your application to theirs..

 http://www.jforum.net/



 2009/5/24 Cristi Manole cristiman...@gmail.com:
  Hello,
 
  I'm in the need of a forum (bulletin board) component / application
 written
  in Wicket to integrate in a larger Wicket application.
 
  Does anybody have one / know of one? Please promote it. :)
 
  I don't mind if it's still in alpha or something as I prefer building on
 top
  of that rather than starting from scratch :) I'm on a _very_ tight
 schedule.
 
  Thanks,
  --
  Cristi Manole
 
  Nova Creator Software
  www.novacreator.com
 

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Any forum (bb) components / applications written using Wicket?

2009-05-24 Thread Cristi Manole
Hello,

I'm in the need of a forum (bulletin board) component / application written
in Wicket to integrate in a larger Wicket application.

Does anybody have one / know of one? Please promote it. :)

I don't mind if it's still in alpha or something as I prefer building on top
of that rather than starting from scratch :) I'm on a _very_ tight schedule.

Thanks,
-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Simple Wicket component available

2009-05-11 Thread Cristi Manole
Hello everybody,

Simple Wicket Component - JQuery Accordion Menu available if anybody needs
one:

http://www.dooriented.com/blog/2009/05/11/wicket-component-jquery-accordion-menu/

-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Cristi Manole
Hello,

Can you try adding this to the WebSession constructor (or before actually
using the bean) :

InjectorHolder.getInjector().inject(this);

I don't know if this is the usual way of doing things, but it works for me.

Cristi Manole

On Sat, Apr 18, 2009 at 11:28 AM, Khlystov Alexandr a...@ovservice.orgwrote:


 Hi all!

 Qustion: how to setup the @SpringBean for the WebSession?

 I am folowing this guide:
 http://cwiki.apache.org/WICKET/spring.html#spring-us...@springbeanbeyondwicket

 I have defined a simple bean:
 ...
  bean name=navigationManager
 class=org.ovservice.hellowebapp.manager.NavigationManagerImpl
   property name=navigationDao
 ref bean=navigationDao /
   /property
  /bean
 ...
 and at WebApplication code:
 ...
   protected void init() {
   super.init();
   addComponentInstantiationListener(new SpringComponentInjector(this));
 ...

 it works correctly for WebPage:
 ...
 public class Left3ColumnPanel extends Panel{

   @SpringBean(name=navigationManager)
   private NavigationManager navigationManager;
 ...

 but it doesn't work for session:
 ...
 public class HelloWebappWebSession extends AuthenticatedWebSession{
 ...
   @SpringBean(name=navigationManager)
   private NavigationManager navigationManager;
 ...

 I've got the

 java.lang.NullPointerException
at
 org.ovservice.hellowebapp.web.HelloWebappWebSession.authenticate(HelloWebappWebSession.java:47)


 How can I use beans in WebSession? and maybe in some classes which are not
 the Wicket components.

 Thanks in advance!



 --
 Khlystov Alexandr


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




Request input stream

2009-04-11 Thread Cristi Manole
Hello,

Is there a way on a org.apache.wicket.markup.html.WebPage to access the
HttpServletRequest? Is it mapped somehow?

Or to have access to the input stream of the request the way getResponse()
offers to the output stream?

Thank you,
Cristi Manole


Re: Request input stream

2009-04-11 Thread Cristi Manole
actually

((*WebRequest*)getRequestCycle().getRequest()).getHttpServletRequest()

Thanks a lot for the [very] quick answer!!

Cristi

On Sun, Apr 12, 2009 at 2:38 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 ((webresponse)getrequestcycle().getrequest()).gethttpservletrequest()

 -igor

 On Sat, Apr 11, 2009 at 4:30 PM, Cristi Manole cristiman...@gmail.com
 wrote:
  Hello,
 
  Is there a way on a org.apache.wicket.markup.html.WebPage to access the
  HttpServletRequest? Is it mapped somehow?
 
  Or to have access to the input stream of the request the way
 getResponse()
  offers to the output stream?
 
  Thank you,
  Cristi Manole
 

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




Re: Communication between applications, one using wicket

2009-04-09 Thread Cristi Manole
Thanks for your feedback, guys. I don't like the idea of both writing to the
database directly, because I want the layers separated. I don't think either
application should know anything about the other's database.

I used Axis2 before, but at the moment i don't see how it can solve my
problem - meaning how to update some panel *without* doing some action
repeatedly until something worth displaying to the user happens.

On Thu, Apr 9, 2009 at 4:00 PM, James Carman
jcar...@carmanconsulting.comwrote:

 Or, just write to the database, since the wicket application polls the
 db for changes anyway.

 On Thu, Apr 9, 2009 at 8:59 AM, John Krasnay j...@krasnay.ca wrote:
  On Thu, Apr 09, 2009 at 07:48:10AM -0500, David Brown wrote:
  Hello Cristi, this is typically referred to as diparate sytems
  communications issue. In the past I have had some success between such
  sytems using a WSDL and messaging. I did not have a lot of time so I
  opted for the Apache Axis2 framework (http://ws.apache.org/axis2/).
  You will have to do some work but better than developing something
  with low-level Java nuts-and-bolts.
 
  Ugh! I think Cristi's approach of a bookmarkable page is far simpler
  than messing with SOAP stacks.
 
  jk
 
  -
  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 presentation at Bulgarian JUG

2009-01-22 Thread Cristi Manole
Hey Martin,

That's a great idea. Only that I don't know if there's a wicket group or
anything in Romania. I'm already a huge fan of Wicket and use it all the
time for the stuff I do in my own private company, but I really don't know
about any community, any interest.

But I cannot make it in February. I'm happily stuck in Buenos Aires at an
Oracle client till the middle of the year, my regular employee.

Hope we get another chance though,
Cristi Manole

On Thu, Jan 22, 2009 at 5:09 AM, Martin Grigorov mcgreg...@e-card.bgwrote:

 Thanks for the kind words, everyone !

 @Cristi: there is a chance I could be in Bucharest next month, around
 13-16 Feb. If you are interested I could make the presentation again for
 you guys.

 El dom, 18-01-2009 a las 14:38 -0200, Cristi Manole escribió:
  Yeah, absolutely, good stuff. Congrats. I wish we'd be having one
  presentation like this in Romania too.
 
  Cristi Manole
 
  On Sun, Jan 18, 2009 at 2:34 PM, Peter Thomas ptrtho...@gmail.com
 wrote:
 
   On Sun, Jan 18, 2009 at 8:42 PM, Martin Grigorov 
   martin.grigo...@fredhopper.com wrote:
  
Hi all,
   
I just uploaded the presentation that me and a colleague of mine did
last Wednesday at Bulgarian Java user group.
The event was quite a success. I hope we refactored some of the JSF
supporters :-)
   
The interesting thing about this presentation is that it was made
 with
Wicket itself. Yes, the presentation is a web application that shows
 the
Wicket concepts in action.
  
  
   Just looked at it.  Really neat, congratulations !  Thanks for making
 the
   source available as well.
  
   Just wanted to mention for the benefit of others that I initially did
 not
   notice the link to the English version - but was glad to find it at the
   bottom of the page.
  
   Oh and a very minor nit-pick - the title of the last slide (English)
 says
   Q
   amp; A
  
  
   
   
You could see the presentation at
http://marto.homeunix.org:8080/presentation
   
And download the application from
http://groups.google.com/group/bg-jug/web/20090114-bgjug-wicket.tgz
   
Cheers
martin-g
   
P.S. As a source of inspiration we used all the presentations we
 found
out there. Credits shared with their authors !
   
   
-
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 presentation at Bulgarian JUG

2009-01-18 Thread Cristi Manole
Yeah, absolutely, good stuff. Congrats. I wish we'd be having one
presentation like this in Romania too.

Cristi Manole

On Sun, Jan 18, 2009 at 2:34 PM, Peter Thomas ptrtho...@gmail.com wrote:

 On Sun, Jan 18, 2009 at 8:42 PM, Martin Grigorov 
 martin.grigo...@fredhopper.com wrote:

  Hi all,
 
  I just uploaded the presentation that me and a colleague of mine did
  last Wednesday at Bulgarian Java user group.
  The event was quite a success. I hope we refactored some of the JSF
  supporters :-)
 
  The interesting thing about this presentation is that it was made with
  Wicket itself. Yes, the presentation is a web application that shows the
  Wicket concepts in action.


 Just looked at it.  Really neat, congratulations !  Thanks for making the
 source available as well.

 Just wanted to mention for the benefit of others that I initially did not
 notice the link to the English version - but was glad to find it at the
 bottom of the page.

 Oh and a very minor nit-pick - the title of the last slide (English) says
 Q
 amp; A


 
 
  You could see the presentation at
  http://marto.homeunix.org:8080/presentation
 
  And download the application from
  http://groups.google.com/group/bg-jug/web/20090114-bgjug-wicket.tgz
 
  Cheers
  martin-g
 
  P.S. As a source of inspiration we used all the presentations we found
  out there. Credits shared with their authors !
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Hourglass during Ajax

2008-12-05 Thread Cristi Manole
take a look on viel in wicketstuff, if it's still available. i used it, it's
nice and easy.

On Fri, Dec 5, 2008 at 10:04 AM, Anton Veretennikov 
[EMAIL PROTECTED] wrote:

 Hello Wicket users,

 I would like to know how to show some hourglass in a Wicket way
 during Ajax so user will not click something else.
 How to do this?

 Thank you

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




Re: Hourglass during Ajax

2008-12-05 Thread Cristi Manole
[but if you need to _make sure_ the user doesn't click anything while the
request is processing use the viel]

On Fri, Dec 5, 2008 at 10:27 AM, jWeekend [EMAIL PROTECTED]wrote:


 Anton,

 See IndicatingAjaxLink (and other, similarly named components) and
 IndicatingAjaxButton.

 Regards - Cemal
 http://www.jWeekend.co.uk http://jWeekend.co.uk


 Anton Veretennikov wrote:
 
  Hello Wicket users,
 
  I would like to know how to show some hourglass in a Wicket way
  during Ajax so user will not click something else.
  How to do this?
 
  Thank you
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/%22Hourglass%22-during-Ajax-tp20853368p20853733.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Firefox 2.0.0.18

2008-11-17 Thread Cristi Manole
Hello,

In case somebody else hits the same wall, I wanna say that in my case it was
because of the RealPlayer Browser Record Plugin. Disabling / uninstalling it
on the client machines fixed things. (my applications were used in an
intranet).

Have a great day,
Cristi Manole

On Mon, Nov 17, 2008 at 10:25 AM, Cristi Manole [EMAIL PROTECTED]wrote:

 Hello,

 Thank you for your replies.

 The wicket versions I'm using for the applications are 1.3.0beta4, 1.3.1,
 1.3.2. I know all of them are pretty old but so are the deployed
 applications. I have no wicket console available - I cannot put the
 applications in debug mode as those are already in production. No  errors
 are being displayed by firefox. It just doesn't work.

 I tried the link given by jWeekend and it works so I suspect theres a
 conflict with 2.0.0.18 the wicket versions I was using.

 Sorry for the lame way I asked the question yesterday but it was already
 very late here...

 Cristi Manole


 On Mon, Nov 17, 2008 at 1:44 AM, jWeekend [EMAIL PROTECTED]wrote:


 Cristi,

 We have just upgraded to 2.0.0.18 on one of our machines and all the AJAX
 on
 http://jweekend.com/dev/BookingPage/ this page  works fine.
 Try that link and if it fails to work check Tools/Options/Content to
 ensure
 JavaScript is enabled.

 Regards - Cemal
 http://www.jWeekend.co.uk http://jWeekend.co.uk



 Cristi Manole wrote:
 
  Hello,
 
  Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
  application (for instance ajax link / button) stopped working if it
 didn't
  have fallback.
 
  The applications I have are all in production so this is very annoying.
 In
  Internet Explorer all work.
 
  Did anybody else experience this? Is there a workaround?
 
  Thank you,
  Cristi Manole
 
 

 --
 View this message in context:
 http://www.nabble.com/Firefox-2.0.0.18-tp20531316p20531584.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





Firefox 2.0.0.18

2008-11-16 Thread Cristi Manole
Hello,

Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
application (for instance ajax link / button) stopped working if it didn't
have fallback.

The applications I have are all in production so this is very annoying. In
Internet Explorer all work.

Did anybody else experience this? Is there a workaround?

Thank you,
Cristi Manole


Re: continuetooriginaldestination in expired page

2008-11-06 Thread Cristi Manole
thanks for your response.

but... why is this handled differently (trying to call some ajax) than
requesting a regular page ? (like a bookmarkable page). i don't think wicket
internally uses cookies to redirect on continuetooriginaldestination. i
might be wrong.

i mean, if the user is on a page, i stop-restart the server, the user
requests a bookmarkable page, he won't be redirected to pageexpired but to
the login page where he logs in and then continuetooriginaldestination (the
page he requested). Works like a charm. I cannot have the same on any type
of call?

Maybe i'm asking a stupid question, but i'd like to understand :).

Thank you,
Cristi Manole

On Thu, Nov 6, 2008 at 1:15 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 you need to store a bookmarkable url that the user should be
 redirected to. then your pageexpirederrorpage can check for that url
 and redirect to it instead.

 since the session is gone you cant store the url there, so i would
 suggest storing it in a cookie.

 -igor

 On Wed, Nov 5, 2008 at 6:03 PM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
  Consider a user who is on a modal window and his session expires. When he
  tries to do something he will be redirected to the page expired page.
 
  Is it possible that after he logs in to be redirected to the page from
 where
  he opened the modal window? Something like what
  continuetooriginaldestination does?
 
  I can see that in the implementation I have the information about the
 last
  page he was on is lost when instantiating page expired
 
  If the user is on a regular page, if I take the server down and put it up
  again, when he tries to get to some other page, he will be redirected to
  login, log again and correctly be redirected to where he wanted to go. No
  page expired. How can I have this exact same functionality?
 
  Thank you in advance,
  Cristi Manole
 

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




Re: continuetooriginaldestination in expired page

2008-11-06 Thread Cristi Manole
o, i figured wicket also keeps the page from where the ajax call was
initiated somewhere. that's why i thought i was just doing something wrong
that i didn't get anything useful in page expired. sorry, i should first
check wicket code before wasting somebody's time.

thank you very much, cookies [implemented by me] it is.

On Thu, Nov 6, 2008 at 1:37 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 that only works for normal requests because the requested url is the
 one from browser's address bar. when you issue an ajax request wicket
 doesnt know what url is in browser's address bar, it only knows the
 non-bookmarkable ajax url that was invoked.

 -igor

 On Thu, Nov 6, 2008 at 8:33 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  thanks for your response.
 
  but... why is this handled differently (trying to call some ajax) than
  requesting a regular page ? (like a bookmarkable page). i don't think
 wicket
  internally uses cookies to redirect on continuetooriginaldestination. i
  might be wrong.
 
  i mean, if the user is on a page, i stop-restart the server, the user
  requests a bookmarkable page, he won't be redirected to pageexpired but
 to
  the login page where he logs in and then continuetooriginaldestination
 (the
  page he requested). Works like a charm. I cannot have the same on any
 type
  of call?
 
  Maybe i'm asking a stupid question, but i'd like to understand :).
 
  Thank you,
  Cristi Manole
 
  On Thu, Nov 6, 2008 at 1:15 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
 
  you need to store a bookmarkable url that the user should be
  redirected to. then your pageexpirederrorpage can check for that url
  and redirect to it instead.
 
  since the session is gone you cant store the url there, so i would
  suggest storing it in a cookie.
 
  -igor
 
  On Wed, Nov 5, 2008 at 6:03 PM, Cristi Manole [EMAIL PROTECTED]
  wrote:
   Hello,
  
   Consider a user who is on a modal window and his session expires. When
 he
   tries to do something he will be redirected to the page expired
 page.
  
   Is it possible that after he logs in to be redirected to the page from
  where
   he opened the modal window? Something like what
   continuetooriginaldestination does?
  
   I can see that in the implementation I have the information about the
  last
   page he was on is lost when instantiating page expired
  
   If the user is on a regular page, if I take the server down and put it
 up
   again, when he tries to get to some other page, he will be redirected
 to
   login, log again and correctly be redirected to where he wanted to go.
 No
   page expired. How can I have this exact same functionality?
  
   Thank you in advance,
   Cristi Manole
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




continuetooriginaldestination in expired page

2008-11-05 Thread Cristi Manole
Hello,

Consider a user who is on a modal window and his session expires. When he
tries to do something he will be redirected to the page expired page.

Is it possible that after he logs in to be redirected to the page from where
he opened the modal window? Something like what
continuetooriginaldestination does?

I can see that in the implementation I have the information about the last
page he was on is lost when instantiating page expired

If the user is on a regular page, if I take the server down and put it up
again, when he tries to get to some other page, he will be redirected to
login, log again and correctly be redirected to where he wanted to go. No
page expired. How can I have this exact same functionality?

Thank you in advance,
Cristi Manole


Re: I have some Wicket based opportunities/jobs if you're interested.

2008-08-21 Thread Cristi Manole
Hello,

First I'd like to wish you the best with your application.

I am interested in finding out more about you project because I'd like to be
part of it, if I can. I have extensive experience with Java, but I've been
writing Wicket applications only for a couple of years.

The other problem is I work for Oracle as a technical consultant so I travel
a lot. Next week for instance I'm expected in Argentina. That means my
working hours depend on the time zone and regular workload.

Please share more details like when the project is planned to start, how
many hours per day, etc.

Thank you,
Cristi Manole

On Thu, Aug 21, 2008 at 5:43 PM, Wayne Pope 
[EMAIL PROTECTED] wrote:

 Hi,

 Ok following my last email I have some opportunities for the right people.

 I'm in the middle of creating a new start-up with funding already sorted.
 We've got a great idea for an online application totally based on Wicket.

 I'm activity seeking 2 to 4 developers who would like to get involved in
 this new startup. We're based in the South of France/Cannes area (though
 I'm
 personally from the UK) and ideally looking for people to join us here for
 a
 6 month contract to start with.

 However I realise that many of you a) already have jobs b) happy living
 where you are.
 So with this in mind I'm looking at perhaps creating a distributed/remote
 team to work on this. - think 37signals.com for those who are aware.

 We can pay a straight daily rate, or perhaps more motivating - to have
 shares in the company and grow with it. It's a strong business case, and I
 believe we have to right people onboard outside of development.

 I wanted to go with an Agile/XP approach to this - so lots of fun coding
 and
 constant working version. This however isn't going to work as well if it
 ends up being a remote team so may have to adopt. Like I said previously -
 we're looking to create the small team here on the Riviera *ideally*.

 So if this sounds interesting please do email me or reply to this, and we
 can talk some more.


 Thanks

 Wayne



Re: DateTextField question

2008-07-23 Thread Cristi Manole
I solved it on my project.

The problem was due to a conflict between inMethod's grid yui and wicket
yui. Although I updated both of them to use the same yui version, this
didn't fix my problem - the calendar would still not show.

Then I moved the code that generated the grid after the one that created the
calendar. This did it.

I think the real problem is including yui twice. And I think this was
discussed a lot in this mailing list. I don't know if a real solution was
found though.

Cristi Manole

On Wed, Jul 16, 2008 at 5:11 AM, Cristi Manole [EMAIL PROTECTED]
wrote:

 I'm running on (quite) the same config.

 Anyways, I think Serkan is right -  if you have an ajax component on the
 page the date text field will stop working. He has another date text field,
 I have a single date text field but on a modal window implemented as a panel
 (if that even matters).

 I think *the problem is here *:
 -line 273 DatePicker

 if (AjaxRequestTarget.get() != null)
 {
 final String javascript = var e = Wicket.$(' +
 getEscapedComponentMarkupId() + Dp +
 '); if (e != null  typeof(e.parentNode) !=
 'undefined'   +
 typeof(e.parentNode.parentNode != 'undefined'))  +
 e.parentNode.parentNode.removeChild(e.parentNode);;

 response.renderJavascript(javascript, null);
 }


 [javascript =
 var e = Wicket.$('i1d6Dp'); if (e != null  typeof(e.parentNode) !=
 'undefined'  typeof(e.parentNode.parentNode != 'undefined'))
 e.parentNode.parentNode.removeChild(e.parentNode);]

 This piece of code gets executed when I'm inside an ajax request (which is
 our case). I think what it tries to clean is not doing very well. When I
 have a (one) date text field on a regular page, that code will of course not
 get executed. So I guess it's erasing yui magic, not cleaning up the html.

 The only reason for the fact that the examples in wicket work (for modal +
 date thingy) is because instead of an input tag, the date*field *uses
 span or div...



 On Tue, Jul 15, 2008 at 3:53 PM, Serkan Camurcuoglu [EMAIL PROTECTED]
 wrote:

 No, my configuration is Tomcat 5.5.23 Jetspeed 2.1.3 Wicket 1.3.4 and
 Firefox 2.0 on Linux.. Do you know which file was patched for the safari
 problem? This could be a pointer to find the cause of the problem..

 Regards,





 Ryan Gravener wrote:

 Are you guys using safari?  If so I think this problem is patched in
 1.3.4.

 On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote:


 I'm not sure about the reason, but in my portlet application, only one
 of the date pickers is initialized if I add two portlets on the same
 page containing date pickers, so only one of them works.. also it seems
 like the date picker doesn't work if there is any other wicket ajax
 component loaded on the page.. I think it's a problem with the
 wicketCalendarInits array object which is used for initializing these
 date pickers, but I haven't found the exact cause yet, I'd like to hear
 if you find a solution..


 Cristi Manole wrote:


 Hello,

 Any ideas why the calendar does not show on my modal window?

 -I've seen the examples and I know it's working.
 -It is not a problem related to z-index

 *It seems the yui class does not get appended to the tag so clicking
 the
 calendar icon does nothing (i presume that's the reason).

 *Has anyone by any chance experienced this or something similar? Any
 suggestion is highly appreciated :).

 Tks a bunch,
 Cristi Manole




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










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





Re: Making a DataTable Editable

2008-07-15 Thread Cristi Manole
There's an wicket component that does exactly what you need:
- take a look on inmethod.com

The website is down for some reason at this moment but i'm sure it'll be
available soon.

Meanwhile you could take a look into apache wicket-stuff repository (and
search for inmethod grid component].

Cheers,
Cristi Manole

On Tue, Jul 15, 2008 at 6:31 AM, Umesh Paliwal [EMAIL PROTECTED]
wrote:

 Hi all,



 I have a datatable and a button.

 When I click on the button , the datatable should add a new row at the
 bottom of the datatable.



 Could you please guide me how to achieve this.



 Thanks and regards,

 Umesh Paliwal




DateTextField question

2008-07-15 Thread Cristi Manole
Hello,

Any ideas why the calendar does not show on my modal window?

-I've seen the examples and I know it's working.
-It is not a problem related to z-index

*It seems the yui class does not get appended to the tag so clicking the
calendar icon does nothing (i presume that's the reason).

*Has anyone by any chance experienced this or something similar? Any
suggestion is highly appreciated :).

Tks a bunch,
Cristi Manole


Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Cristi Manole
Hello,

Could you share with us the link to the website ? I don't think it's
jayway.dk.

And I was wondering what your DB is...? Are you using Hibernate?

I think everyone would appreciate you sharing all the information you can
about the design, etc. Most of us are hoping to build a website just like
yours :))

Btw, congrats :)

Cristi Manole

On Tue, Jul 15, 2008 at 5:49 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Yeah, will look into it.. And thanks! :)


 Erik van Oosten wrote:

 Nino Saturnino Martinez Vazquez Wael wrote:


   * Clustering(simple web server clustering with apache
 http/loadbalancer/tomcat)
 o Would Jetty be better?


 Terracotta?


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



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




 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: DateTextField question

2008-07-15 Thread Cristi Manole
I'm running on (quite) the same config.

Anyways, I think Serkan is right -  if you have an ajax component on the
page the date text field will stop working. He has another date text field,
I have a single date text field but on a modal window implemented as a panel
(if that even matters).

I think *the problem is here *:
-line 273 DatePicker

if (AjaxRequestTarget.get() != null)
{
final String javascript = var e = Wicket.$(' +
getEscapedComponentMarkupId() + Dp +
'); if (e != null  typeof(e.parentNode) !=
'undefined'   +
typeof(e.parentNode.parentNode != 'undefined'))  +
e.parentNode.parentNode.removeChild(e.parentNode);;

response.renderJavascript(javascript, null);
}


[javascript =
var e = Wicket.$('i1d6Dp'); if (e != null  typeof(e.parentNode) !=
'undefined'  typeof(e.parentNode.parentNode != 'undefined'))
e.parentNode.parentNode.removeChild(e.parentNode);]

This piece of code gets executed when I'm inside an ajax request (which is
our case). I think what it tries to clean is not doing very well. When I
have a (one) date text field on a regular page, that code will of course not
get executed. So I guess it's erasing yui magic, not cleaning up the html.

The only reason for the fact that the examples in wicket work (for modal +
date thingy) is because instead of an input tag, the date*field *uses
span or div...


On Tue, Jul 15, 2008 at 3:53 PM, Serkan Camurcuoglu [EMAIL PROTECTED]
wrote:

 No, my configuration is Tomcat 5.5.23 Jetspeed 2.1.3 Wicket 1.3.4 and
 Firefox 2.0 on Linux.. Do you know which file was patched for the safari
 problem? This could be a pointer to find the cause of the problem..

 Regards,





 Ryan Gravener wrote:

 Are you guys using safari?  If so I think this problem is patched in
 1.3.4.

 On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote:


 I'm not sure about the reason, but in my portlet application, only one
 of the date pickers is initialized if I add two portlets on the same
 page containing date pickers, so only one of them works.. also it seems
 like the date picker doesn't work if there is any other wicket ajax
 component loaded on the page.. I think it's a problem with the
 wicketCalendarInits array object which is used for initializing these
 date pickers, but I haven't found the exact cause yet, I'd like to hear
 if you find a solution..


 Cristi Manole wrote:


 Hello,

 Any ideas why the calendar does not show on my modal window?

 -I've seen the examples and I know it's working.
 -It is not a problem related to z-index

 *It seems the yui class does not get appended to the tag so clicking the
 calendar icon does nothing (i presume that's the reason).

 *Has anyone by any chance experienced this or something similar? Any
 suggestion is highly appreciated :).

 Tks a bunch,
 Cristi Manole




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










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




Re: Localization for table component

2008-07-13 Thread Cristi Manole
nope. it does not work. i changed both properties files to have the
component ids and  now i get the default value in both, meaning it's not
localizing at all.

i think the keys are hard coded. I will extend the classes...

did it work for you? maybe i;m doing smth wrong

On Sun, Jul 13, 2008 at 3:28 PM, Jeremy Thomerson [EMAIL PROTECTED]
wrote:

 In your properties file for the page, try:

 id-of-table-in-modal-window.datagrid.no-records-found

 Jeremy Thomerson
 http://www.wickettraining.com
 -- sent from a wireless device


 -Original Message-
 From: Cristi Manole [EMAIL PROTECTED]
 Sent: Saturday, July 12, 2008 5:20 PM
 To: users@wicket.apache.org
 Subject: Localization for table component

 Hello,

 I have a page with a table component on it. I use the following keys to
 localize it and it works great
 datagrid.no-records-found
 NavigatorLabel

 On the same page I define a div which is a modal window. On the modal
 window
 I have another table component which I want to localize (with different
 text
 messages).

 My problem is that although I define another properties file with the name
 of the (modal window) panel, the properties are still read from the page
 properties file.

 How can I do what I'm looking for?

 Tks,
 Cristi Manole


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




Localization for table component

2008-07-12 Thread Cristi Manole
Hello,

I have a page with a table component on it. I use the following keys to
localize it and it works great
datagrid.no-records-found
NavigatorLabel

On the same page I define a div which is a modal window. On the modal window
I have another table component which I want to localize (with different text
messages).

My problem is that although I define another properties file with the name
of the (modal window) panel, the properties are still read from the page
properties file.

How can I do what I'm looking for?

Tks,
Cristi Manole


Re: Issue with the FileUploadField

2008-07-09 Thread Cristi Manole
Hello Arun,

For the Ajax file upload, check out
http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/

Cristi Manole

On Wed, Jul 9, 2008 at 5:35 PM, Arun Wagle [EMAIL PROTECTED] wrote:

 Hello All,

 I have an issue with the file upload
 I have a Fileupload input filed on a tabbed panel.  The first time when I
 select a file and submit,  the following returns null
 FileUpload upload = fileUploadField.getFileUpload(); return null.
 But if I select the same file again and submit I get the value. Have anyone
 encountered this before ?

 If this can be of any help, the TabbedPanel link is a AJAXSubmit as I need
 to retain some of the form values on tab change .
 Also the above action occurs on the submit of another File Upload button
 on the form and not on the Tabbed link Submit

 Also is there a AJAX Fileupload component anyone know of or has written? .

 Thank you all in advance

 Regards,
 Arun Wagle



Panel switching and back button

2008-06-26 Thread Cristi Manole
Hello,

I am implementing navigation through my application by switching panels.

When the user presses the back button, I'd like to show the previously
displayed panel. Is this possible?

Thanks,
Cristi Manole


Re: Panel switching and back button

2008-06-26 Thread Cristi Manole
yes, with Ajax

On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote:

 I would expect that to happen by default. Replacing a panel should create a
 new page version which should change the Page URL. Are you using AJAX?

 Thomas

 On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:

  Hello,
 
  I am implementing navigation through my application by switching panels.
 
  When the user presses the back button, I'd like to show the previously
  displayed panel. Is this possible?
 
  Thanks,
  Cristi Manole
 



Re: Panel switching and back button

2008-06-26 Thread Cristi Manole
will try that. tks

On Thu, Jun 26, 2008 at 4:16 PM, Thomas Mäder [EMAIL PROTECTED] wrote:

 Hmhhh... isn't there a Javascript function which allows to replace the URL
 of the current page in the history? I'm not sure this would work, but
 couldn't you try this:

 1) replace the panel
 2) reload the IFrame
 3) now manipulate the browser history to point to the currect URL for the
 current page version

 Thomas

 On Thu, Jun 26, 2008 at 3:08 PM, Cristi Manole [EMAIL PROTECTED]
 wrote:

  yes, I know, I'm trying to figure out a solution myself.
 
  I was sure though somebody else ran into this. :)
 
  On Thu, Jun 26, 2008 at 3:28 PM, Thomas Mäder [EMAIL PROTECTED]
  wrote:
 
   Aha, the problem is that ajax does not cause a history entry to be
  created.
   I've seen workarounds for this (not with wicket, though) which reload a
   hidden IFrame each time they make a relevant change. I can't see right
  now
   how that helps you in wicket, tough.
  
   Thomas
  
  
   On Thu, Jun 26, 2008 at 1:56 PM, Cristi Manole [EMAIL PROTECTED]
 
   wrote:
  
yes, with Ajax
   
On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED]
 
wrote:
   
 I would expect that to happen by default. Replacing a panel should
   create
a
 new page version which should change the Page URL. Are you using
  AJAX?

 Thomas

 On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole 
   [EMAIL PROTECTED]
 wrote:

  Hello,
 
  I am implementing navigation through my application by switching
panels.
 
  When the user presses the back button, I'd like to show the
   previously
  displayed panel. Is this possible?
 
  Thanks,
  Cristi Manole
 

   
  
 



Re: Cannot get rid of these error and warnings

2008-06-18 Thread Cristi Manole
I'm using inmethod's GREAT grid component. Inside a column I have a drop
down which does an ajax form submit when changed.

I didn't have time to take another look on this yet, but I will pretty soon
and post what I did here.

Thanks for all your support,
Cristi Manole

On Wed, Jun 18, 2008 at 5:50 AM, Timo Rantalaiho [EMAIL PROTECTED]
wrote:

 On Mon, 16 Jun 2008, Johan Compagner wrote:
  Calls are synced but they can be in the wait for each other and if
  then the first changes the component structure then the other that is
  already waiting comes in then it cant find it anymore. But this call
  should just be ignored as far as i know

 I don't think it is, at least in 1.3.4?

   On Sun, Jun 15, 2008 at 7:46 PM, Cristi Manole [EMAIL PROTECTED]
 
   wrote:
   I have a table with a drop down in one of the columns. This table gets
   refreshed every 10 seconds through Ajax.
  
   I did some testing and it seams I get the error when I'm trying to
 change
   the content of the drop down (which gets posted through Ajax) exactly
 when
   the table gets refreshed. So it fails with that error being caused by
 the
   fact that Wicket cannot find a page for the drop down component.

 So are you updating also the dropdown via ajax? If your
 table (or its row) is a repeater that creates its items
 again on rendering, this might cause the problem, because
 the original dropdown would not be in the component
 hierarchy anymore. So here an item reuse strategy as Maurice
 suggested might help. Also you could check that the dropdown
 is still on the page before adding it to AjaxRequestTarget,
 or consider whether you have to add it separately at all if
 the whole table gets repainted pretty frequently anywway.

 It should be easy enough to find out when new items are
 created (e.g. with Thread.dumpStack() in newItem).

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




Re: Cannot get rid of these error and warnings

2008-06-15 Thread Cristi Manole
I have a table with a drop down in one of the columns. This table gets
refreshed every 10 seconds through Ajax.

I did some testing and it seams I get the error when I'm trying to change
the content of the drop down (which gets posted through Ajax) exactly when
the table gets refreshed. So it fails with that error being caused by the
fact that Wicket cannot find a page for the drop down component.

Is my logic correct? Is there a nice way to prevent this error? If so, how?

Although this error does NOT get through to the user, I'd like to keep my
code clean of errors.

About [2] - setting the type of the model, why is that necessary? Couldn't
Wicket determine that? At least in most of the cases?

Thanks,
Cristi Manole

On Sat, Jun 14, 2008 at 11:18 PM, Maurice Marrink [EMAIL PROTECTED] wrote:

 On Fri, Jun 13, 2008 at 12:31 PM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  [1] I get these kind of errors quite often:
 
  there was an error cleaning up target [EMAIL PROTECTED]
  markupIdToComponent
 
  any idea what causes them? [i'm guessing it's a panel that gets updated
 to
  often for my server - 10s, lots of clients, but that's just a guess].

 Can you show us the entire stacktrace? this is throw from the
 requestcycle in the detach wich will attempt to detach your entire
 page. Apparently something does not like being detached :)

 
  [2] And this keeps on bothering me (but not as much):
 
  Couldn't resolve model type of
 
 Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[user]
  for [MarkupContainer [Component id = User, page =
  com.foreverpizza.core.HomePage, path =
 0:signInForm:User.RequiredTextField,
  isVisible = true, isVersioned = false]], please set the type yourself.
 
  How can I set this myself? I never got this warning before 1.3.3.

 You can do setType on any formcomponent, most also allow you to pass
 it as a constructor parameter, like RequiredTextField does.


 Maurice

 
  Thanks,
  Cristi Manole
 

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




Cannot get rid of these error and warnings

2008-06-13 Thread Cristi Manole
[1] I get these kind of errors quite often:

there was an error cleaning up target [EMAIL PROTECTED]
markupIdToComponent

any idea what causes them? [i'm guessing it's a panel that gets updated to
often for my server - 10s, lots of clients, but that's just a guess].

[2] And this keeps on bothering me (but not as much):

Couldn't resolve model type of
Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[user]
for [MarkupContainer [Component id = User, page =
com.foreverpizza.core.HomePage, path = 0:signInForm:User.RequiredTextField,
isVisible = true, isVersioned = false]], please set the type yourself.

How can I set this myself? I never got this warning before 1.3.3.

Thanks,
Cristi Manole


AutoCompleteTextField behaviors and validator

2008-06-09 Thread Cristi Manole
Hello,

I'm using a AutoCompleteTextField and I need to assign two validators and a
behavior to it, like this:

add(telefon = new AutoCompleteTextField(Telefon, new
Model(), new AbstractAutoCompleteTextRenderer() {
@Override
protected String getTextValue(Object object) {
ClientDAO client = (ClientDAO)object;
return client.getTelefon() + | + client.getNume() +
| + client.getPrenume();
}

@Override
protected void renderChoice(Object object, Response
response, String criteria){
ClientDAO client = (ClientDAO)object;
response.write(client.getTelefon() +  -  +
client.getNume() +   + client.getPrenume());
}
}) {
@Override
protected IteratorClientDAO getChoices(String input) {
return jdbcClienti.getClienti(input).iterator();
}
});
telefon.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override
protected void onUpdate(AjaxRequestTarget target) {
String[] date =
telefon.getModelObject().toString().split(\\|);
telefon.setModelObject(date[0]);
target.addComponent(telefon);
if(date.length == 3) {
selectedClient = jdbcClienti.getClientFor(date[1],
date[2], date[0]);
}
}
});
telefon.add(new StringValidator.ExactLengthValidator(10));
telefon.add(new PatternValidator(\\d+));
telefon.setRequired(true);

using the code above, the onUpdate method is never called. If I move the
validators inside de onUpdate, all will work just fine until there's an
error and then the behavior will again not work.

How can I make all three work as required? Why don't they?

Thank you,
Cristi Manole


ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
Hello,

I've searched the archives and it seams I'm looking exactly for this :
https://issues.apache.org/jira/browse/WICKET-1368

Is there any workaround I could try?

Tks,
Cristi Manole


Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
yup. didn't work for me. did it work for you?


On Sun, May 25, 2008 at 4:10 PM, James Carman [EMAIL PROTECTED]
wrote:

 Have you tried using an on close handler to the window to do the redirect?

 On Sun, May 25, 2008 at 5:32 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
  I've searched the archives and it seams I'm looking exactly for this :
  https://issues.apache.org/jira/browse/WICKET-1368
 
  Is there any workaround I could try?
 
  Tks,
  Cristi Manole
 

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




Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
i'll try that. tks!

Cristi Manole

On Sun, May 25, 2008 at 5:22 PM, James Carman [EMAIL PROTECTED]
wrote:

 I got it to work for me.  In my ajax button on my popup window
 contents, I close the window.  Then, in the on window close handler, I
 do the redirect.

 On Sun, May 25, 2008 at 10:19 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  I think the problem is you can't go out of the ajax target with the
  redirect. i'm sure i'm talking non-sense:)
 
  anyways, what i did is implement the page i wanned to redirect to as a
 panel
  and do the old replacewith stunt and replace the current panel (that
 creates
  the modal) with the new panel. since all involves ajax i get no
 complaints.
 
  but, in some other project, i cannot do this, i need to redirect to a
  regular page... so... i'm left hanging...
 
  Cristi Manole
 
  On Sun, May 25, 2008 at 5:15 PM, Cristi Manole [EMAIL PROTECTED]
  wrote:
 
  yup. didn't work for me. did it work for you?
 
 
 
  On Sun, May 25, 2008 at 4:10 PM, James Carman 
 [EMAIL PROTECTED]
  wrote:
 
  Have you tried using an on close handler to the window to do the
 redirect?
 
  On Sun, May 25, 2008 at 5:32 AM, Cristi Manole [EMAIL PROTECTED]
 
  wrote:
   Hello,
  
   I've searched the archives and it seams I'm looking exactly for this
 :
   https://issues.apache.org/jira/browse/WICKET-1368
  
   Is there any workaround I could try?
  
   Tks,
   Cristi Manole
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

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




Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
nope, that does not work for sure. that's what i've been trying.

On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 instead of redirect you can just


 target.appendjavascript(window.location='+urlfor(mypage.class/mypage)+';);

 -igor

 On Sun, May 25, 2008 at 6:10 AM, James Carman
 [EMAIL PROTECTED] wrote:
  Have you tried using an on close handler to the window to do the
 redirect?
 
  On Sun, May 25, 2008 at 5:32 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
  I've searched the archives and it seams I'm looking exactly for this :
  https://issues.apache.org/jira/browse/WICKET-1368
 
  Is there any workaround I could try?
 
  Tks,
  Cristi Manole
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
it asks the user for the confirmation (like pressing F5 when the modal is
being displayed)

maybe i was not certain, it iworks/i but not straight fw.

On Sun, May 25, 2008 at 8:01 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 what does it do?

 -igor

 On Sun, May 25, 2008 at 9:58 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  nope, that does not work for sure. that's what i've been trying.
 
  On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:
 
  instead of redirect you can just
 
 
 
 target.appendjavascript(window.location='+urlfor(mypage.class/mypage)+';);
 
  -igor
 
  On Sun, May 25, 2008 at 6:10 AM, James Carman
  [EMAIL PROTECTED] wrote:
   Have you tried using an on close handler to the window to do the
  redirect?
  
   On Sun, May 25, 2008 at 5:32 AM, Cristi Manole 
 [EMAIL PROTECTED]
  wrote:
   Hello,
  
   I've searched the archives and it seams I'm looking exactly for this
 :
   https://issues.apache.org/jira/browse/WICKET-1368
  
   Is there any workaround I could try?
  
   Tks,
   Cristi Manole
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
where certain = clear

On Sun, May 25, 2008 at 8:19 PM, Cristi Manole [EMAIL PROTECTED]
wrote:

 it asks the user for the confirmation (like pressing F5 when the modal is
 being displayed)

 maybe i was not certain, it iworks/i but not straight fw.


 On Sun, May 25, 2008 at 8:01 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

 what does it do?

 -igor

 On Sun, May 25, 2008 at 9:58 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  nope, that does not work for sure. that's what i've been trying.
 
  On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg [EMAIL PROTECTED]
 
  wrote:
 
  instead of redirect you can just
 
 
 
 target.appendjavascript(window.location='+urlfor(mypage.class/mypage)+';);
 
  -igor
 
  On Sun, May 25, 2008 at 6:10 AM, James Carman
  [EMAIL PROTECTED] wrote:
   Have you tried using an on close handler to the window to do the
  redirect?
  
   On Sun, May 25, 2008 at 5:32 AM, Cristi Manole 
 [EMAIL PROTECTED]
  wrote:
   Hello,
  
   I've searched the archives and it seams I'm looking exactly for this
 :
   https://issues.apache.org/jira/browse/WICKET-1368
  
   Is there any workaround I could try?
  
   Tks,
   Cristi Manole
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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





Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
no, but since James Carman said his solution works, i'm fine with that and
I'll use that.

+ i'm certain anything related to adding something the target won't work.

On Sun, May 25, 2008 at 8:31 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 have you tried window.top.location instead of window.location?

 never really tried to do this myself, just throwing out guesses

 -igor

 On Sun, May 25, 2008 at 10:19 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  where certain = clear
 
  On Sun, May 25, 2008 at 8:19 PM, Cristi Manole [EMAIL PROTECTED]
  wrote:
 
  it asks the user for the confirmation (like pressing F5 when the modal
 is
  being displayed)
 
  maybe i was not certain, it iworks/i but not straight fw.
 
 
  On Sun, May 25, 2008 at 8:01 PM, Igor Vaynberg [EMAIL PROTECTED]
 
  wrote:
 
  what does it do?
 
  -igor
 
  On Sun, May 25, 2008 at 9:58 AM, Cristi Manole [EMAIL PROTECTED]
 
  wrote:
   nope, that does not work for sure. that's what i've been trying.
  
   On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
  
   wrote:
  
   instead of redirect you can just
  
  
  
 
 target.appendjavascript(window.location='+urlfor(mypage.class/mypage)+';);
  
   -igor
  
   On Sun, May 25, 2008 at 6:10 AM, James Carman
   [EMAIL PROTECTED] wrote:
Have you tried using an on close handler to the window to do the
   redirect?
   
On Sun, May 25, 2008 at 5:32 AM, Cristi Manole 
  [EMAIL PROTECTED]
   wrote:
Hello,
   
I've searched the archives and it seams I'm looking exactly for
 this
  :
https://issues.apache.org/jira/browse/WICKET-1368
   
Is there any workaround I could try?
   
Tks,
Cristi Manole
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

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




Wicket properties file

2008-05-25 Thread Cristi Manole
Hello,

I have a page with a properties file associated with it and a panel with
another properties file.

When i display the panel on some page (with no properties), wicket works as
expected : it loads the properties from the properties file associated with
the panel.

But when I have a modal window displaying the panel on the page with an
associated properties file, the properties of the modal will override those
for the panel (obviously, those having the same name).

I can understand why this would happen, but since i _must_ use the same
names, how can I load them from the panel's proporties (something like
override) ? I need some kind of reset... something.

I hope I made myself clear :) It's way into the night here :)

Tks,
Cristi Manole


Re: Wicket properties file

2008-05-25 Thread Cristi Manole
correction :
instead of
But when I have a modal window displaying the panel on the page with an
associated properties file, the *properties of the modal* will override
those for the panel (obviously, those having the same name).

- properties of the page containing the modal

On Mon, May 26, 2008 at 1:01 AM, Cristi Manole [EMAIL PROTECTED]
wrote:

 Hello,

 I have a page with a properties file associated with it and a panel with
 another properties file.

 When i display the panel on some page (with no properties), wicket works as
 expected : it loads the properties from the properties file associated with
 the panel.

 But when I have a modal window displaying the panel on the page with an
 associated properties file, the properties of the modal will override those
 for the panel (obviously, those having the same name).

 I can understand why this would happen, but since i _must_ use the same
 names, how can I load them from the panel's proporties (something like
 override) ? I need some kind of reset... something.

 I hope I made myself clear :) It's way into the night here :)

 Tks,
 Cristi Manole



Deployment vs development session

2008-05-20 Thread Cristi Manole
Hello,

Today I tested an application on a number of computers (if it's useful know
that they were in the same network).

What I found out is that the wicket session was shared among them when
wicket was started in dev mode. When I started the application in deploy
mode, everything was as needed - a session object was created for each
client.

Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2.

Thank you,
Cristi Manole


Re: Deployment vs development session

2008-05-20 Thread Cristi Manole
well, i figured it was just me... so I quit bothering you guys with
something that's ... just me... :)

i'm using tomcat, no clustering.

this is my websession class:

package com.fx.core;

import java.security.NoSuchAlgorithmException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.wicket.Request;
import org.apache.wicket.authentication.AuthenticatedWebApplication;
import org.apache.wicket.authentication.AuthenticatedWebSession;
import org.apache.wicket.authorization.strategies.role.Roles;
import org.apache.wicket.injection.web.InjectorHolder;
import org.apache.wicket.spring.injection.annot.SpringBean;

import com.fx.utils.crypt.UltraPasswordHasher;

@SuppressWarnings(serial)
public class WebSession extends AuthenticatedWebSession {
private static final Log log = LogFactory.getLog(WebSession.class);

@SpringBean
private JdbcUtilizatori jdbcUtilizatori;

private Utilizator utilizator;

public WebSession(final AuthenticatedWebApplication application, Request
request) {
super(request);
InjectorHolder.getInjector().inject(this); //don't get spring by
default in sessions...
}

@Override
*public boolean authenticate(final String username, final String
password) {
if(utilizator == null) {
*UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(username);
if(dao != null) {
try {
if(new
UltraPasswordHasher().verifyPassword(password.getBytes(), dao.getParola()))
{
utilizator = new Utilizator(dao.getId(), username,
dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip());
utilizator.addRole(AUTHENTICATED);
}
} catch (NoSuchAlgorithmException e) {
log.error(ERROR:, e);
return false;
}
}
}

return utilizator != null;
}

public void logOut() {
utilizator = null;
signOut();
}

@Override
public Roles getRoles() {
if (isSignedIn()) {
// If the user is signed in, they have these roles
return new Roles((String[])utilizator.getRoles().toArray(new
String[0]));
}
return null;
}

public Utilizator getUtilizator() {
return utilizator;
}

public Utilizator getUtilizatorFor(String password) {
UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(password);
if(dao == null) {
return null;
} else {
return new Utilizator(dao.getId(), dao.getUser(),
dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip());
}
}
}

in dev mode, running from two stations, same network (didn't test
otherwise), utilizator is not null for the second user after the first has
logged in (see bolded text above). And no matter what he puts in the login,
it will get logged in with the others credential.

*I really think I'm doing something stupid* cause this is the first time I
get this and I've been developing quite a few web apps in wicket (then again
i rarely develop in dev mode).

Tks,
Cristi Manole

On Tue, May 20, 2008 at 5:23 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
  Today I tested an application on a number of computers (if it's useful
 know
  that they were in the same network).
 
  What I found out is that the wicket session was shared among them when
  wicket was started in dev mode.

 what symptoms of this did you see? does it also happen with a plain
 wicket-quickstart? what kind of server did you have running? what kind
 of cluster topology? what replication tech did you use?

 you cant just tell us something interesting like this and leave us hanging!

 -igor

  When I started the application in deploy
  mode, everything was as needed - a session object was created for each
  client.
 
  Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2.
 
  Thank you,
  Cristi Manole
 

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




AutoCompleteTextField question

2008-05-20 Thread Cristi Manole
Hello,

I'm interested in the following behavior for an auto complete text field,
which is to contain a phone number:

- when the user starts typing a phone number in the text field, the
autocomplete will present information structured like this [number] -
[name].
- when the user selects a [number] - [name] record, the text field should
be filled only with [number].

What I managed so far is something like this:

phone.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override public void onUpdate(AjaxRequestTarget target){

phone.setModelObject(telefon.getModelObjectAsString().substring(0, 10));
target.addComponent(phone);
}
});


but i'm sure there must be another, nicer way.

Tks, Cristi Manole


Re: Deployment vs development session

2008-05-20 Thread Cristi Manole
no, nothing fancy there...

anyways, I can't seem to replicate it easily now and I don't have time for
further investigation.

sorry for your time and also thank you for it.

i will definitely try later.

On Tue, May 20, 2008 at 8:59 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 also, what does your code look like that creates a new instance of
 session (application.newsession())

 -igor

 On Tue, May 20, 2008 at 10:58 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
  do the two users have different session ids? try printing it out from
  your authenticate method.
 
  -igor
 
 
  On Tue, May 20, 2008 at 7:59 AM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  well, i figured it was just me... so I quit bothering you guys with
  something that's ... just me... :)
 
  i'm using tomcat, no clustering.
 
  this is my websession class:
 
  package com.fx.core;
 
  import java.security.NoSuchAlgorithmException;
 
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  import org.apache.wicket.Request;
  import org.apache.wicket.authentication.AuthenticatedWebApplication;
  import org.apache.wicket.authentication.AuthenticatedWebSession;
  import org.apache.wicket.authorization.strategies.role.Roles;
  import org.apache.wicket.injection.web.InjectorHolder;
  import org.apache.wicket.spring.injection.annot.SpringBean;
 
  import com.fx.utils.crypt.UltraPasswordHasher;
 
  @SuppressWarnings(serial)
  public class WebSession extends AuthenticatedWebSession {
 private static final Log log = LogFactory.getLog(WebSession.class);
 
 @SpringBean
 private JdbcUtilizatori jdbcUtilizatori;
 
 private Utilizator utilizator;
 
 public WebSession(final AuthenticatedWebApplication application,
 Request
  request) {
 super(request);
 InjectorHolder.getInjector().inject(this); //don't get spring by
  default in sessions...
 }
 
 @Override
  *public boolean authenticate(final String username, final String
  password) {
 if(utilizator == null) {
  *UtilizatorDAO dao =
 jdbcUtilizatori.getUtilizator(username);
 if(dao != null) {
 try {
 if(new
  UltraPasswordHasher().verifyPassword(password.getBytes(),
 dao.getParola()))
  {
 utilizator = new Utilizator(dao.getId(),
 username,
  dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip());
 utilizator.addRole(AUTHENTICATED);
 }
 } catch (NoSuchAlgorithmException e) {
 log.error(ERROR:, e);
 return false;
 }
 }
 }
 
 return utilizator != null;
 }
 
 public void logOut() {
 utilizator = null;
 signOut();
 }
 
 @Override
 public Roles getRoles() {
 if (isSignedIn()) {
 // If the user is signed in, they have these roles
 return new Roles((String[])utilizator.getRoles().toArray(new
  String[0]));
 }
 return null;
 }
 
 public Utilizator getUtilizator() {
 return utilizator;
 }
 
 public Utilizator getUtilizatorFor(String password) {
 UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(password);
 if(dao == null) {
 return null;
 } else {
 return new Utilizator(dao.getId(), dao.getUser(),
  dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip());
 }
 }
  }
 
  in dev mode, running from two stations, same network (didn't test
  otherwise), utilizator is not null for the second user after the first
 has
  logged in (see bolded text above). And no matter what he puts in the
 login,
  it will get logged in with the others credential.
 
  *I really think I'm doing something stupid* cause this is the first time
 I
  get this and I've been developing quite a few web apps in wicket (then
 again
  i rarely develop in dev mode).
 
  Tks,
  Cristi Manole
 
  On Tue, May 20, 2008 at 5:23 PM, Igor Vaynberg [EMAIL PROTECTED]
 
  wrote:
 
  On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED]
 
  wrote:
   Hello,
  
   Today I tested an application on a number of computers (if it's
 useful
  know
   that they were in the same network).
  
   What I found out is that the wicket session was shared among them
 when
   wicket was started in dev mode.
 
  what symptoms of this did you see? does it also happen with a plain
  wicket-quickstart? what kind of server did you have running? what kind
  of cluster topology? what replication tech did you use?
 
  you cant just tell us something interesting like this and leave us
 hanging!
 
  -igor
 
   When I started the application in deploy
   mode, everything was as needed - a session object was created for
 each
   client.
  
   Is this how it's suppose to work in dev mode? I'm using wicket
 1.3.2.
  
   Thank you,
   Cristi Manole

Re: Forum?

2008-05-20 Thread Cristi Manole
I am interested in helping out. And I am sure others are too. I hope you
keep going with this idea.

Cristi Manole

On Tue, May 20, 2008 at 11:26 PM, Peter Ertl [EMAIL PROTECTED] wrote:

 Don't forget to make it language independent so it runs on C#, Scala,
 Fortran or Algol 68 as well :-)

 Am 20.05.2008 um 22:15 schrieb James Carman:


  If you are creating a product, why do you need to be able to plugin
 a different IoC container (Guice vs. Spring for example)?  Do you
 think a site admin will honestly care which container you use (or ORM
 API for that matter)?

 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]:

 hi

 i remember someone asking for a wicket based forum few weeks ago. i plan
 to
 build one within the next few months. is there anyone interested in
 contributing code, ideas, reviews, tests or criticism?

 it is going to be as modular as i can get it, and should play nicely with
 guice as well as spring, jpa as well as hibernate or ibatis, etc...

 anyone interested in helping out?

 cu uwe
 --

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 0
 F  + 49 761 3 85 59 550
 E  [EMAIL PROTECTED]
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
 kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.

 Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
 16:00
 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
 lautet [EMAIL PROTECTED]


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



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



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




Re: Scheduler in wicket

2008-05-15 Thread Cristi Manole
quartz, definitely... do look into spring + quartz. excellent control.

Cristi

On Thu, May 15, 2008 at 1:51 PM, Jan Kriesten [EMAIL PROTECTED]
wrote:


 hi,

  I am planning to use quartz, but before starting to integrate it in my
 wicket's app i would like to know if anybody have used it or another
 scheduler with
 wicket.


 quartz is a good choice - it just works (tm).

 best regards, --- jan.




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




Re: Confirmation box with ok and cancel buttons in IFrame...

2008-05-06 Thread Cristi Manole
check out this example and modify it as it suits your needs.

http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/

implement the iframe so that it contains the panels you need.
the confirmation box can be a modal window (check out the modal window in
wicket) or pure and simple some javascript appended to the ajax target.

Cristi Manole

On Tue, May 6, 2008 at 8:50 AM, john_wicket [EMAIL PROTECTED] wrote:


 I'm using iframe, in that i am using panels...

 the panel contains list of records..the user can delete the record ..
 after
 click on the record the user get Confirmation box with ok and cancel
 button.. if the user pressed ok then that record will be deleted

 can any one reply how to do this in wicket using iframes... ..

 thanks...

 --
 View this message in context:
 http://www.nabble.com/Confirmation-box-with-ok-and-cancel-buttons-in-IFrame...-tp17071600p17071600.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Modal window and height

2008-05-04 Thread Cristi Manole
For me it works just by using setinitialwidth/height... doesn't it work for
you too?

Cristi Manole

On Sat, May 3, 2008 at 3:14 PM, Mathias P.W Nilsson [EMAIL PROTECTED]
wrote:


 The java doc for the modal windows says

  * licode[EMAIL PROTECTED] #setResizable(boolean)}/code specifies, 
 whether the
 window can be resized.
  * licode[EMAIL PROTECTED] #setInitialWidth(int)}/code and code[EMAIL 
 PROTECTED]
 #setInitialHeight(int)}/code
  * specify the initial width and height of window. If the window is
 resizable, the unit of these
  * dimensions is always px. If the window is not resizable, the unit can
 be specified using
  * code[EMAIL PROTECTED] #setWidthUnit(String)}/code and code[EMAIL 
 PROTECTED]
 #setHeightUnit(String)}/code.
  * If the window is not resizable and the content is a component (not a
 page), the initial height
  * value can be ignored and the actual height can be determined from the
 height of the content. To
  * enable this behavior use code[EMAIL PROTECTED]
 #setUseInitialHeight(boolean)}/code.
  * liThe window position (and size if the window is resizable) can be
 stored in a cookie, so that
  * it is preserved when window is close. The name of the cookie is
 specified
 via
  * code[EMAIL PROTECTED] #setCookieName(String)}/code. If the name is
 codenull/code, position is
  * not stored (initial width and height are always used). Default cookie
 name is null (position is
  * not stored).

 Now I have setCookieName( null ) , set minimum height but the window
 always
 opens in the same size.
 How do I set the height and width exactly as I want?

 --
 View this message in context:
 http://www.nabble.com/Modal-window-and-height-tp16960447p17034566.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Modal window and height

2008-05-04 Thread Cristi Manole
even if you don't use setcookiename at all? try not setting anything related
to a cookie...

this is how i do it and it works:
reportModalWindow = new ModalWindow(reportWindow);
reportModalWindow.setInitialHeight(410);
reportModalWindow.setInitialWidth(750);
reportModalWindow.setMinimalHeight(410);
reportModalWindow.setMinimalWidth(750);
return reportModalWindow;


On Sun, May 4, 2008 at 1:39 PM, Mathias P.W Nilsson [EMAIL PROTECTED]
wrote:


 No it does not work. I have looked in the source code as well but to see
 if
 I'm doing something wrong but I still get default height and width that is
 set in the source.
 --
 View this message in context:
 http://www.nabble.com/Modal-window-and-height-tp16960447p17044911.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: After Upload File via ModalWindow and IFrame, the TreeModels UserOject Attributes are null

2008-04-30 Thread Cristi Manole
I don't think it's because of the iFrame. If you take it out of the modal
page content, will that stop messing up the linktree?

can you provide more code?

On Mon, Apr 28, 2008 at 2:15 PM, geke [EMAIL PROTECTED] wrote:


 Hello,

 I´m upload a file via a modal window and an iFrame. It`s described in

 http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window
 .

 Also I have a LinkTree on my site. But after closing the modal window, the
 tree models userObject has a reference, but the attributes of the
 userObject
 are all null. Hence after the onClicked event on nodes in my tree, there
 are
 no Nodes visible.
 That is even the modal window is closed without a fileupload. It seems to
 me, that there is a problem with the iFrame.

 I´m thankfully for any inspiration

 --
 View this message in context:
 http://www.nabble.com/After-Upload-File-via-ModalWindow-and-IFrame%2C-the-TreeModels-UserOject-Attributes-are-null-tp16936673p16936673.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
I wasn't able to reuse a ModalWindow object in my projects. I always had to
build it again. I obviously must be doing something wrong if you managed to
do exactly this.

Anyways, this is the output of the javascript debug window when using the
code Marieke initially wrote (it doesn't give me any clues):

*NFO: *focus set on linkOpen2*INFO: *
*INFO: *
Initiating Ajax GET request on
;jsessionid=DC1CC910C0903823CB6D89780AA63227?wicket:interface=:0:linkOpen::IBehaviorListener:0:random=0.8450107536275825
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (1678 characters)
*INFO: *
?xml version=1.0
encoding=UTF-8?ajax-responseheader-contribution
encoding=wicket1 ![CDATA[head xmlns:wicket=
http://wicket.apache.org;script type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

script type=text/javascript
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
wicketAjaxDebugEnable=true;
/*--]^]^*//script

script type=text/javascript
src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script

link rel=stylesheet type=text/css
href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
/

/head]]/header-contributioncomponent id=dataChooser1
![CDATA[div id=dataChooser1 style=display:none
div id=content3
/div
/div]]/componentevaluate![CDATA[var settings = new Object();
settings.minWidth=200;
settings.minHeight=200;
settings.className=w_blue;
settings.width=600;
settings.height=400;
settings.resizable=true;
settings.src=?wicket:interface=:1;
settings.iframeName=modal-dialog-pagemap;
settings.mask=semi-transparent;
settings.onClose = function() { var
wcall=wicketAjaxGet('?wicket:interface=:0:dataChooser::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$('dataChooser1') != null;}.bind(this)); };
Wicket.Window.create(settings).show();
]]/evaluate/ajax-response
*INFO: *Response parsed. Now invoking steps...
*INFO: *
*INFO: *
Initiating Ajax GET request on
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (6062 characters)
*INFO: *Invoking post-call handler(s)...
*INFO: *
*INFO: *
Initiating Ajax GET request on
resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (60129 characters)
*INFO: *Invoking post-call handler(s)...
*INFO: *
*INFO: *
Initiating Ajax GET request on
resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (8183 characters)
*INFO: *Invoking post-call handler(s)...
*INFO: *
*INFO: *
Initiating Ajax GET request on
resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (41693 characters)
*INFO: *Invoking post-call handler(s)...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
*INFO: *last focus id was not set
*INFO: *focus set on
*INFO: *focus removed from
*INFO: *
*INFO: *
Initiating Ajax GET request on
?wicket:interface=:0:dataChooser::IBehaviorListener:1:-1random=0.8103637903503486
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (69 characters)
*INFO: *
?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
*INFO: *Response parsed. Now invoking steps...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
*INFO: *last focus id was not set
*INFO: *focus set on linkOpen2
*INFO: *
*INFO: *
Initiating Ajax GET request on
;jsessionid=DC1CC910C0903823CB6D89780AA63227?wicket:interface=:0:linkOpen::IBehaviorListener:0:random=0.6139253992868053
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (69 characters)
*INFO: *
?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
*INFO: *Response parsed. Now invoking steps...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
*INFO: *Calling focus on linkOpen2
*INFO: *focus removed from linkOpen2

Cristi Manole

On Tue, Apr 29, 2008 at 9:51 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 We reuse the dialog constantly, so i dont know what goes wrong for
 you. What does the javascript debug window tell you?
 Maybe the modal window some things that is is still shown

 On 4/29/08, Marieke Vandamme [EMAIL PROTECTED] wrote:
 
  Hello,
  Thanks for the reply.
  But isn't it possible to reuse the modalwindow? Because in my
 application
  the window needs to be opened many times, and I thought it would be
 better
  to reuse the same window multiple times. Or has

Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
Exactly, you always create a new panel for content. Can you reuse the
ManageWeightPanel object?

Cristi Manole

On Tue, Apr 29, 2008 at 11:24 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Im doing it like this:


   AjaxLink popupLink = new AjaxLink(manageWeightPop) {
   @Override
   public void onClick(AjaxRequestTarget target) {
   target
   modalWindow.setTitle(getString(weightlog));
   modalWindow.setMinimalHeight(700);
   modalWindow.setContent(new ManageWeightPanel(modalWindow
   .getContentId(), modalWindow,
   new BaseEntityDetachableModel(getPerson(;
   modalWindow.show(target);

   }
   };



 Marieke Vandamme wrote:

  The javascript debug window is printing no error. The server returns an
  empty response (?xml version=1.0
  encoding=UTF-8?ajax-response/ajax-response)
  I did some debugging and came to the function in ModalWindow
  public void show(AjaxRequestTarget target)
  there the boolean shown is tested. The content is only showed when
  shown=false, in my case shown=true...
 
  Can you please try the code from my first post? If you say you reuse the
  dialog, what am I doing wrong? How do you guys do it? Thanks !
 
 
  Johan Compagner wrote:
 
 
   We reuse the dialog constantly, so i dont know what goes wrong for
   you. What does the javascript debug window tell you?
   Maybe the modal window some things that is is still shown
  
   On 4/29/08, Marieke Vandamme [EMAIL PROTECTED] wrote:
  
  
Hello,
Thanks for the reply.
But isn't it possible to reuse the modalwindow? Because in my
application
the window needs to be opened many times, and I thought it would be
better
to reuse the same window multiple times. Or has that no affect to
the
memory-usage?
   
   
Cristi Manole wrote:
   
   
 I am 99% certain that if you change your code from :

 *final MyChooser myChooser = new MyChooser(modal);*
 *modal.setPageCreator(new ModalWindow.PageCreator() {
  public Page createPage() {
   return myChooser;
   }
 }
 *
 to this :

 *modal.setPageCreator(new ModalWindow.PageCreator() {
  public Page createPage() {
   return new MyChooser(modal);
   }
 }
 *
 it will work.

 Try it.
 Cristi Manole

 On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme [EMAIL PROTECTED]
 wrote:



  Hello,
 
  can't anyone help me with this problem?
  If I need to code it differently, please tell me.
  Thanks !!
 
 
  Marieke Vandamme wrote:
 
 
   Hello,
  
   i'm having problems with the modal window. It shows up fine
   when I
  
  
  click
 
 
   my link the first time, but after closing the window with the
   'X',
  
  
  it
   
   
 won't open again.
   I don't know if I'm using it wrong or if it's a bug.
   Any help is welcome ! thanks. Marieke.
  
   My code :
   public class TestModalWindow extends WebPage {
  
  public TestModalWindow() {
  final ModalWindow modal = new
   ModalWindow(dataChooser);
  add(modal);
  final MyChooser myChooser = new MyChooser(modal);
  modal.setPageCreator(new ModalWindow.PageCreator() {
  
  public Page createPage() {
  return myChooser;
  }
  });
  
   add(new AjaxLink(lnkOpen) {
  
  public void onClick(AjaxRequestTarget target) {
  myChooser.reload(target);
  }
  });
  }
  
  public class MyChooser extends WebPage {
  
  private ModalWindow window;
  
  public MyChooser(ModalWindow w) {
  this.window = w;
  }
  
  public void reload(AjaxRequestTarget target) {
  this.window.show(target);
  }
  }
   }
  
  
  
  --
  View this message in context:
 
 
 

http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
   
   
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


--
View this message in context:
   
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16953499.html
Sent from the Wicket - User mailing list archive at Nabble.com

Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
I for one think it's a bug somewhere. Not in Marieke's code.

On Tue, Apr 29, 2008 at 12:11 PM, Marieke Vandamme [EMAIL PROTECTED] wrote:


 Sorry, but I don't know what the solution is for me now?
 When looking into ModalWindow again :
 public void close(AjaxRequestTarget target)
{
getContent().setVisible(false);
target.appendJavascript(getCloseJavacript());
shown = false;
}
 When debugging, the shown is set to false.
 But the next time, in the show function, it's true again...

 Should I set it somewhere to false myself?


 Johan Compagner wrote:
 
  exactly what i thought
  somehow your shown boolean stays on true
  So the problem is not showing it again
  The problem for you is in the closing..
  Because the shown boolean should be reverted to false
 
  johan
 
 
  On Tue, Apr 29, 2008 at 10:21 AM, Marieke Vandamme [EMAIL PROTECTED] 
  wrote:
 
 
  The javascript debug window is printing no error.
  The server returns an empty response (?xml version=1.0
  encoding=UTF-8?ajax-response/ajax-response)
  I did some debugging and came to the function in ModalWindow
  public void show(AjaxRequestTarget target)
  there the boolean shown is tested. The content is only showed when
  shown=false, in my case shown=true...
 
  Can you please try the code from my first post? If you say you reuse
 the
  dialog, what am I doing wrong? How do you guys do it?
  Thanks !
 
 
  Johan Compagner wrote:
  
   We reuse the dialog constantly, so i dont know what goes wrong for
   you. What does the javascript debug window tell you?
   Maybe the modal window some things that is is still shown
  
   On 4/29/08, Marieke Vandamme [EMAIL PROTECTED] wrote:
  
   Hello,
   Thanks for the reply.
   But isn't it possible to reuse the modalwindow? Because in my
  application
   the window needs to be opened many times, and I thought it would be
   better
   to reuse the same window multiple times. Or has that no affect to
 the
   memory-usage?
  
  
   Cristi Manole wrote:
   
I am 99% certain that if you change your code from :
   
*final MyChooser myChooser = new MyChooser(modal);*
*modal.setPageCreator(new ModalWindow.PageCreator() {
 public Page createPage() {
   return myChooser;
   }
}
*
to this :
   
*modal.setPageCreator(new ModalWindow.PageCreator() {
 public Page createPage() {
   return new MyChooser(modal);
   }
}
*
it will work.
   
Try it.
Cristi Manole
   
On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme [EMAIL PROTECTED]
  wrote:
   
   
Hello,
   
can't anyone help me with this problem?
If I need to code it differently, please tell me.
Thanks !!
   
   
Marieke Vandamme wrote:

 Hello,

 i'm having problems with the modal window. It shows up fine
 when
  I
click
 my link the first time, but after closing the window with the
  'X',
   it
 won't open again.
 I don't know if I'm using it wrong or if it's a bug.
 Any help is welcome ! thanks. Marieke.

 My code :
 public class TestModalWindow extends WebPage {

 public TestModalWindow() {
 final ModalWindow modal = new
 ModalWindow(dataChooser);
 add(modal);
 final MyChooser myChooser = new MyChooser(modal);
 modal.setPageCreator(new ModalWindow.PageCreator() {

 public Page createPage() {
 return myChooser;
 }
 });

  add(new AjaxLink(lnkOpen) {

 public void onClick(AjaxRequestTarget target) {
 myChooser.reload(target);
 }
 });
 }

 public class MyChooser extends WebPage {

 private ModalWindow window;

 public MyChooser(ModalWindow w) {
 this.window = w;
 }

 public void reload(AjaxRequestTarget target) {
 this.window.show(target);
 }
 }
 }

   
--
View this message in context:
   
  
 
 http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16953499.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Cristi Manole
To answer your second point :
-NO, at this point you cannot define multiple wicket:child anywhere.
Try using fragments or generic panels (i don't know which would be better
for you). Replace a generic panel with the specific panel you need.

Cristi Manole

On Mon, Apr 28, 2008 at 11:34 AM, Martin Makundi 
[EMAIL PROTECTED] wrote:

 Well, here you have an example of a panel:
 http://www.javalobby.org/java/forums/t60926.html

 It is reusable, so you can use it from anywhere, or decide not to use it.

 Design one page which uses panels. Then change the panels according to
 some session state, for example. Here is a trivial bad example:

 public class MyChangingPage extends WebPage {
 private static int pageReloadCount;

 public MyChangingPage() {
   pageReloadCount++;

   boolean even = (pageReloadCount % 2) == 0;

   if (even) {
  add(new EvenPanel(panel_id));
   } else {
  add(new OddPanel(panel_id));
   }
  }
 }



 Ofcourse in real life a static counter is not what you want.


 **
 Martin

 2008/4/28 Azzeddine Daddah [EMAIL PROTECTED]:
  Could you or somebody else please provide some code?
   I didn't understand your last sentence  Start with one hard coded
 layout
 
  and then tune it using an internal
   state, for example.
 
   Thank you,
 
   Azzeddine
 
 
 
   On Mon, Apr 28, 2008 at 10:16 AM, Martin Makundi 
   [EMAIL PROTECTED] wrote:
 
I would guess that it is better to use panels or fragments and
 instead
of using setXXX, just initialize everyting in its place according to
an internal state.
   
Start with one hard coded layout and then tune it using an internal
state, for example.
   
**
Martin
   
2008/4/28 Azzeddine Daddah [EMAIL PROTECTED]:
 Hi there,

  I'm new to Wicket trying to build my first application :).
  I've already token a look at Creating layouts using markup
inheritance
  tutorial from the Wicket website, but still have some questions:
  Suppose that I've a base page which I want that some of my pages
inherits
  the layout from it. What I want to do is to have some protected
 methods
like
  f.e. appendComponen(final Component comp, String position) and
  setTitle(String title). The position string In the first method
indicates
  the position where the component in the page should be appended.

1. How can I implement this?
2. Is it possible to define multiple wicket:child / in the
 base
page?

  Gr. Azzeddine

   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
 
   --
   Azzeddine Daddah
   www.hbiloo.com
 

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




Re: Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Cristi Manole
I think that your images div is overlapping the tab-row div.

You could try to *add margin-top: 45px;* in the #photos style [line 172 in
your style.css].

I am not sure if this will work since I see the first time the page loads
the tabs work... anyways, by changing those on the fly in my browser I
managed to get it working after clicking the navigator, as you need it to.

Hope this helps,
Cristi Manole

On Mon, Apr 28, 2008 at 9:18 AM, Matthew Young [EMAIL PROTECTED] wrote:

 I have a tabpanel.  After ajax update to a div inside the tab-panel, the
 tab
 stop working: rollover hover doesn't work, no reaction to click.  This
 only
 happen to Firefox both Windows and Linux. No problem with IE7, Opera or
 Safari.  You can see this in action here: 
 http://208.131.142.119:8080/gsweb/invitations;.  Scroll to the bottom and
 click on the navigator.  This triggers an ajax update to a div inside the
 tab-panle div and the navigator itself.  After that, the tabs stop
 working.
 What is going on?



Re: Modal Window not opening the second time

2008-04-28 Thread Cristi Manole
I am 99% certain that if you change your code from :

*final MyChooser myChooser = new MyChooser(modal);*
*modal.setPageCreator(new ModalWindow.PageCreator() {
 public Page createPage() {
   return myChooser;
   }
}
*
to this :

*modal.setPageCreator(new ModalWindow.PageCreator() {
 public Page createPage() {
   return new MyChooser(modal);
   }
}
*
it will work.

Try it.
Cristi Manole

On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme [EMAIL PROTECTED] wrote:


 Hello,

 can't anyone help me with this problem?
 If I need to code it differently, please tell me.
 Thanks !!


 Marieke Vandamme wrote:
 
  Hello,
 
  i'm having problems with the modal window. It shows up fine when I click
  my link the first time, but after closing the window with the 'X', it
  won't open again.
  I don't know if I'm using it wrong or if it's a bug.
  Any help is welcome ! thanks. Marieke.
 
  My code :
  public class TestModalWindow extends WebPage {
 
  public TestModalWindow() {
  final ModalWindow modal = new ModalWindow(dataChooser);
  add(modal);
  final MyChooser myChooser = new MyChooser(modal);
  modal.setPageCreator(new ModalWindow.PageCreator() {
 
  public Page createPage() {
  return myChooser;
  }
  });
 
   add(new AjaxLink(lnkOpen) {
 
  public void onClick(AjaxRequestTarget target) {
  myChooser.reload(target);
  }
  });
  }
 
  public class MyChooser extends WebPage {
 
  private ModalWindow window;
 
  public MyChooser(ModalWindow w) {
  this.window = w;
  }
 
  public void reload(AjaxRequestTarget target) {
  this.window.show(target);
  }
  }
  }
 

 --
 View this message in context:
 http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Anchor Links

2008-04-28 Thread Cristi Manole
does your descriptionLabel start with #?

On Mon, Apr 28, 2008 at 11:17 AM, tbt [EMAIL PROTECTED] wrote:


 Hi

 I'm new to wicket and I have a listview which dynamically creates links.
 I'm
 using the following code to anchor links so that when the user clicks a
 link, it will be directed to the correct area in the page.

 protected void populateItem(ListItem item)
 {
Link boardLink = new Link(boardLink)
{
public void onClick()
{

}
};

Label descriptionLabel = new Label(description);
descriptionLabel.setOutputMarkupId(true);

boardLink.setAnchor(descriptionLabel);

item.add(descriptionLabel);
item.add(boardLink );
 }

 ..




 However this code is not working. How should i modify the code.

 Thanks
 --
 View this message in context:
 http://www.nabble.com/Anchor-Links-tp16930767p16930767.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Problems with FileUploadField

2008-04-24 Thread Cristi Manole
I really don't think it can be done w/o an iframe.

@Fabien - here's the (simple) code:

http://www.dooriented.com/blog/2008/04/

Cristi Manole

On Wed, Apr 23, 2008 at 5:39 PM, Rüdiger Schulz [EMAIL PROTECTED]
wrote:

 Hello Michael,

 Could you share this fileupload.js? I'd bet it creates some iframe tag via
 DOM manipulation ;-)

 greetings,

 Rüdiger

 2008/4/23 Michael Mehrle [EMAIL PROTECTED]:

  Yeah, that's how it works. There's a fileupload.js that leverages
  jQuery. When the user presses the upload button it does a binary upload
  to a page of your choosing - that's where I had to change the existing
  PHP-integrated lib that I used as a template. I used a Page that was
  accessible via a mapped URI to parse out the stream and store it to the
  backend. Then I bounced back a JSON msg, which can contain various
  status and error notifications. Those can be popped up as JS alerts,
  which is kind of cool. I even managed to bounce back the image id and
  the local path, so that I could do some frontend magic. Works just fine
  - one of the other problems was to make it work with Wicket since the
  component ids had to match. This was done by injecting the proper ids
  into the JS lib when loading the enclosing page.
 
  A bit of a hack, I know - but it's working, which is all I care about.
 
  Michael
 
  -Original Message-
  From: Johan Compagner [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 22, 2008 2:29 PM
  To: users@wicket.apache.org
  Subject: Re: Problems with FileUploadField
 
  really?
  are you using the XMLHttpRequest  request to do a binary upload with a
  form
  post?
 
  everywhere on the internet they say that isnt possible
 
  johan
 
 
  On Tue, Apr 22, 2008 at 8:05 PM, Michael Mehrle [EMAIL PROTECTED]
  wrote:
 
   I recently implemented an AJAX based file upload field that works just
   fine. It's works 'outside of Wicket AJAX' but does leverage an AJAX
   fileuploadfield. Let me know if you want to use it, I don't mind
  sharing
   the code. It took a lot of work to make this happen, since the
  original
   jQuery based upload code had to be modified + was a bit buggy to begin
   with.
  
   Cheers,
  
   Michael
  
   -Original Message-
   From: Fabien D. [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, April 22, 2008 7:02 AM
   To: users@wicket.apache.org
   Subject: Re: Problems with FileUploadField
  
  
   My researches show FileUploadField does not support ajax behavior
  
   So there is no wicket input, which permits to the user to browse his
   local
   disk?
  
   Thank you in advance.
  
  
   Fabien D. wrote:
   
Hi, I would like to add a behavior on my FileUploadField
   
But I can't get back the path of the file, or the file
   
this.logo = new FileUploadField(inputLogo);
  logo.setRequired(false);
  logo.add(new AjaxFormComponentUpdatingBehavior(onchange) {
  private static final long serialVersionUID = 1L;
protected void onUpdate(AjaxRequestTarget target) {
   ..
}
   
I have try everything :
   
FileUpload up = logo.getFileUpload(); - null
File file = (File)logo.getModelObject(); - null
logo.getModelObjectAsString() - null
   
So how can i get the file or just the path and the name file
   
   
  
   --
   View this message in context:
  
  http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.
  
  htmlhttp://www.nabble.com/Problems-with-FileUploadField-tp16823823p1682
  4291.html
 http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.html
 
  
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 greetings from Berlin,

 Rüdiger Schulz

 www.2rue.de
 www.indyphone.de - Coole Handy Logos einfach selber bauen



Re: How to set the path for a uploadfolder?

2008-04-24 Thread Cristi Manole
Hi,

Beware of using getRealPath if your app is deployed on a Tomcat server where
it's set _not_ to unpack the wars (for instance 99% of the plesk domain
hostings).

It will always return null.

My 2 cents.

Cristi Manole

On Thu, Apr 24, 2008 at 4:23 PM, Mathias P.W Nilsson [EMAIL PROTECTED]
wrote:


 Not quite sure but you can get the folder that is the root of your
 application context

 File file = new File( getServletContext().getRealPath( / ) );
 --
 View this message in context:
 http://www.nabble.com/How-to-set-the-path-for-a-uploadfolder--tp16848200p16850438.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Form submit with a FileUploadField appears not to work

2008-04-22 Thread Cristi Manole
Hi,

Implement a simple iframe inside the modal window and make the form post to
that.

Then you'll be able to use ajax _and_ do the file upload.

Cristi Manole

On Sun, Apr 20, 2008 at 8:15 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 fileuploadfields are not supported with ajax

 -igor


 On Sun, Apr 20, 2008 at 10:12 AM, Doug Leeper [EMAIL PROTECTED]
 wrote:
 
   I just recently upgraded to 1.3.3 from 1.3.2 as there was a bug that
 was
   fixed in 1.3.2 (https://issues.apache.org/jira/browse/WICKET-1442) that
 I
   was getting.
 
   However, in my AjaxButton.onSubmit( AjaxRequestTarget target, Form form
 )
   when I call my FileUploadField.getFileUpload() it is always null.
 
   Any suggestions?
 
   Note: I  submitting my form in a ModalWindow.
 
   Here is my code:
 
   public class NewImageTransformPanel extends LocalBasePanel {
 
  private FileUploadField fileUpload;
  private ImageTransform image;
 
 
  public NewImageTransformPanel(final ModalWindow window,
  final Integer campaignId) {
  super(window.getContentId());
 
  image = new ImageTransform();
 
  Form form = new Form(transformForm);
  form.setOutputMarkupId(true);
  add(form);
  form.add(new
 PTFeedbackPanel(feedback).setOutputMarkupId(true));
 
  form.setModel(new CompoundPropertyModel(image));
 
  form.add( new RequiredTextField( imageFileName ));
 
  fileUpload = new FileUploadField(imageFile);
  form.setMultiPart( true );
  form.add(fileUpload);
 
 
  form.add(new AjaxButton(addTransform) {
  public void onSubmit(AjaxRequestTarget target,
 Form form) {
  try {
  String fileName =
 fileUpload.getFileUpload()
 
 .getClientFileName();   === NPE every time
  String contentType =
 fileUpload.getFileUpload()
 
 .getContentType();
  byte[] content =
 fileUpload.getFileUpload().getBytes();
 
  if
 (StoredImage.isAllowed(contentType) == false) {
  error(File type is not
 supported. 
  +
 Supported types are JPEG, GIF, and PNG.);
 
 target.addComponent(form);
  return;
  }
 
 
 image.setImageContentType(contentType);
  image.setImageContent(content);
 
 
 CampaignMgr.getInstance().addImageTransform(campaignId,
  image);
  info(Image transformation was
 added successfully.);
  window.close(target);
  } catch (Exception e) {
  e.printStackTrace();
  error(e);
  target.addComponent(form);
  }
  }
 
  @Override
  protected void onError(AjaxRequestTarget target,
 Form form) {
  target.addComponent(form);
  }
 
  });
 
  form.add(new AjaxLink(cancel) {
  public void onClick(AjaxRequestTarget target) {
  window.close(target);
  }
  });
  }
 
   }
   --
   View this message in context:
 http://www.nabble.com/Form-submit-with-a-FileUploadField-appears-not-to-work-tp16795627p16795627.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: Problems with FileUploadField

2008-04-22 Thread Cristi Manole
The FileUploadField doesn't work with Ajax like that.

You have to add an iframe and post to that.

At least, I haven't managed to get it working with Ajax...


Cristi Manole

On Tue, Apr 22, 2008 at 3:04 PM, Fabien D. [EMAIL PROTECTED]
wrote:


 Hi, I would like to add a behavior on my FileUploadField

 But I can't get back the path of the file, or the file

 this.logo = new FileUploadField(inputLogo);
logo.setRequired(false);
logo.add(new AjaxFormComponentUpdatingBehavior(onchange) {
private static final long serialVersionUID = 1L;
protected void onUpdate(AjaxRequestTarget target) {
   ..
 }

 I have try everything :

 FileUpload up = logo.getFileUpload(); - null
 File file = (File)logo.getModelObject(); - null
 logo.getModelObjectAsString() - null

 So how can i get the file or just the path and the name file

 --
 View this message in context:
 http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16823823.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Problems with FileUploadField

2008-04-22 Thread Cristi Manole
I can share my code with iframe (no-brainer), so go ahead and ask :)

Cristi Manole

On Tue, Apr 22, 2008 at 9:05 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:

 I recently implemented an AJAX based file upload field that works just
 fine. It's works 'outside of Wicket AJAX' but does leverage an AJAX
 fileuploadfield. Let me know if you want to use it, I don't mind sharing
 the code. It took a lot of work to make this happen, since the original
 jQuery based upload code had to be modified + was a bit buggy to begin
 with.

 Cheers,

 Michael

 -Original Message-
 From: Fabien D. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 22, 2008 7:02 AM
 To: users@wicket.apache.org
 Subject: Re: Problems with FileUploadField


 My researches show FileUploadField does not support ajax behavior

 So there is no wicket input, which permits to the user to browse his
 local
 disk?

 Thank you in advance.


 Fabien D. wrote:
 
  Hi, I would like to add a behavior on my FileUploadField
 
  But I can't get back the path of the file, or the file
 
  this.logo = new FileUploadField(inputLogo);
logo.setRequired(false);
logo.add(new AjaxFormComponentUpdatingBehavior(onchange) {
private static final long serialVersionUID = 1L;
  protected void onUpdate(AjaxRequestTarget target) {
 ..
  }
 
  I have try everything :
 
  FileUpload up = logo.getFileUpload(); - null
  File file = (File)logo.getModelObject(); - null
  logo.getModelObjectAsString() - null
 
  So how can i get the file or just the path and the name file
 
 

 --
 View this message in context:
 http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.
 htmlhttp://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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




Modal Window onSubmit prevent closing

2008-04-10 Thread Cristi Manole
Hello,

Is it possible to prevent the modal window from closing after regular
onSubmit?

My use case is that I have a modal window with a form where the user can
upload a picture. The submit is not Ajax because (i think) the form could
then not be multi-part. Being stuck with a regular onSubmit, i cannot use
.setDefaultFormProcessing(false)); (am I wrong?)

Whenever I press upload, it will ask me if I want to continue and if I press
yes, it will close my modal window. I want to stay on that page for as long
as the upload takes place.

Thanks,
Cristi Manole


Re: Modal Window onSubmit prevent closing

2008-04-10 Thread Cristi Manole
thank you for your quick response.

yes, i'm using it with panel.

there's no other way to achieve what i'm looking for?

Can I use ajax and keep the form multi-part? Can I get the file name without
the regular submit?

Tks,
Cristi Manole

On Thu, Apr 10, 2008 at 6:39 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 You can use regular submit button only if you have a modal window with
 page. If you have modal window with panel you are bound to using
 ajaxbutton.

 -Matej

 On Thu, Apr 10, 2008 at 5:21 PM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
   Is it possible to prevent the modal window from closing after regular
   onSubmit?
 
   My use case is that I have a modal window with a form where the user
 can
   upload a picture. The submit is not Ajax because (i think) the form
 could
   then not be multi-part. Being stuck with a regular onSubmit, i cannot
 use
   .setDefaultFormProcessing(false)); (am I wrong?)
 
   Whenever I press upload, it will ask me if I want to continue and if I
 press
   yes, it will close my modal window. I want to stay on that page for as
 long
   as the upload takes place.
 
   Thanks,
   Cristi Manole
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

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




Re: Promotion

2008-04-07 Thread Cristi Manole
Thanks, Martin :))

On Sun, Apr 6, 2008 at 10:25 PM, Martin Grigorov [EMAIL PROTECTED]
wrote:

 Congrats Cristi,

 I like the styling of the sign in modal window!

 Really cool (self-documenting) ids ;-)
 div id=mainshit

 On Sun, 2008-04-06 at 21:03 +0300, Cristi Manole wrote:
  Hi,
 
  Please excuse me for taking 2 minutes of your time, but I would like to
  promote a website developed with Wicket: www.sssmoking.com
 
  It's a very simple site, developed in a few hours, so not much to say
 about
  it... it's purpose is to keep track of your daily smoking. And a lot
 more
  will be added soon.
 
  Of course, your feedback would be more than welcome.
 
  Thanks,
  Cristi Manole


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




Promotion

2008-04-06 Thread Cristi Manole
Hi,

Please excuse me for taking 2 minutes of your time, but I would like to
promote a website developed with Wicket: www.sssmoking.com

It's a very simple site, developed in a few hours, so not much to say about
it... it's purpose is to keep track of your daily smoking. And a lot more
will be added soon.

Of course, your feedback would be more than welcome.

Thanks,
Cristi Manole


IE 6 7 Ajax Refresh Issue

2008-04-04 Thread Cristi Manole
Hello,

I have on a page 3 radio buttons in a group and for each radio a drop down:

xDropDown1 V
oDropDown2 V
oDropDown3 V

When the user selects a radio, the corresponding dropdown will be enabled
and the other two disabled.

In Firefox, this works as I need it to, but in IE, the dropdowns are not
enabled/disabled as needed (either not at all - in IE6 or oddly in IE7). The
funny thing is the functionality is there - i mean, although graphically
they are wrong, I can change the values only for the dropdown which is
enabled. And when I try to do that, all the dropdowns will be updated
correctly.

Any ideas what's wrong with IE and how i could update the dropdowns
correctly? I use just setEnabled(true/false) and target.addComponent(...).

Thanks,
Cristi Manole


Re: Default selection in radio group?

2008-04-04 Thread Cristi Manole
Hi,

What I did is use the same model for the group and for the radio item I want
selected.
For example:

add(radioGroup = new RadioGroup(group, new Model(selectthis))); //the
radio who has the same model will be selected

radioGroup.add(someradio1Radio = new Radio(someradio1radio, new
Model(selectthis)));
radioGroup.add(someradio2Radio = new Radio(someradio2radio, new
Model()));
radioGroup.add(someradio3Radio = new Radio(someradio3radio, new
Model()));

I hope this helps,
Cristi Manole

On Fri, Apr 4, 2008 at 3:01 PM, Hoover, William [EMAIL PROTECTED] wrote:

 see http://cwiki.apache.org/confluence/display/WICKET/Using+RadioGroups

 -Original Message-
 From: Michael Mehrle [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 03, 2008 8:49 PM
 To: users@wicket.apache.org
 Subject: Default selection in radio group?


 I created a RadioGroup with three radios attached. For some reason the
 form is being drawn with the last radio pre-selected, which I don't want.
 How can I pre-select a default radio and also how can I set the group to
 nothing selected?

 Thanks,

 Michael




  1   2   >