Re: FormComponentPanel's components onblur can't call validate?

2010-03-10 Thread Cemal Bayramoglu
Tony,

If you don't mind submitting the whole form add
AjaxFormSubmitBehaviors to the appropriate child components .

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


On 9 March 2010 23:52, Tony Wu e90t...@gmail.com wrote:
 I have a FormComponentPanel which holds 3 dropdowns for month-day-year (it's
 a birthday FormComponentPanel). I override convertInput on the
 FormComponentPanel to return the age based on the 3 drop downs. I have an
 age validator which makes sure they're over 18.

 Now, this all works fine on form submit (convertInput gets called and it
 runs the validator).

 But when I try to do it dynamically by attaching a onchange
 AjaxFormUpdatingBehavior event to the 3 drop downs to call
 FormComponentPanel.validate() (@Override onUpdate, and only when all 3 drop
 downs are selected of course), I know the onchange triggers (because it's
 @Override onUpdate runs - had a system.out.println which runs), but the
 validate() function doesn't run the age validator. It actually *never even
 calls convertInput* on the FormComponentPanel. Any ideas?


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



Re: DatePicker onblur

2010-03-10 Thread Martin Makundi
ONCHANGE!

2010/3/10 Arnaud Garcia arn...@imagemed-87.com:
 Hi list !

 I add an AjaxFormComponentUpdatingBehavior on my DateTextField to update my
 model on the fly...

 The updating behavior is based on the onblur event...
 it works well, but since I added a DatePicker to the dateTextField I can't
 react on the onblur javascript event.

 How can I intercept the moment when the dateTextField is updated by the
 DatePicker ?

 Thanks

 Arnaud


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



Re: DatePicker onblur

2010-03-10 Thread Vit Rozkovec

Hi,
this may help you:

I am using DateTextField from the package 
org.apache.wicket.datetime.markup.html.form;


In the panel where I add this field, you can do:
   @Override
   protected void onBeforeRender()
   {
   super.onBeforeRender();
   if (!hasBeenRendered())
   {
   dateField.get(date).add(new 
AjaxFormComponentUpdatingBehavior(onchange)

   {

   @Override
   protected void onUpdate(AjaxRequestTarget target)
   {

   }
   });
   }
   }

Regards
Vitek

Arnaud Garcia wrote:

Hi list !

I add an AjaxFormComponentUpdatingBehavior on my DateTextField to update my
model on the fly...

The updating behavior is based on the onblur event...
it works well, but since I added a DatePicker to the dateTextField I can't
react on the onblur javascript event.

How can I intercept the moment when the dateTextField is updated by the
DatePicker ?

Thanks

Arnaud

  



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



Re: Avoiding wickety URLs in login form

2010-03-10 Thread vineet semwal
 Hi,
sorry,those strategies  show magic only if you have stateful page,else you
will see the default behavior ie. wicket:interface information will be added
to page url.

if the page is stateful(just changing statelessform to form in your case)
you will see that wicket:interface information is removed from the url
instead a  number ie. page version is added ,



On Tue, Mar 9, 2010 at 9:30 PM, Neil Curzon neil.cur...@gmail.com wrote:

 Hi Vineet,

 Thanks for your reply. I tried changing our mount for our login page from:

 mountBookmarkablePage(/login, Login.class);
 to
 mount(new HybridUrlCodingStrategy(/login, Login.class));

 but this had no effect on the URL generated for the action of the login
 form
 (which is on the Login.class page). It seems that these strategies deal
 more
 with how parameters for the page get put on the URL bar, not how
 componentIds etc are put in links on that page. Or am I doing something
 wrong?

 Thanks,
 Neil

 On Tue, Mar 9, 2010 at 10:47 AM, vineet semwal
 vineetsemwal1...@gmail.comwrote:

  please try hybridurlcodingstrategy or mixedparamshybridurlcodingstrategy
  and
  see if it fits your need,
 
 
  On Tue, Mar 9, 2010 at 9:07 PM, Neil Curzon neil.cur...@gmail.com
 wrote:
 
   Hi, users,
  
   We're trying to avoid wicket specific stuff showing up in our URL bar.
  The
   client thinks that when the URL looks something like this:
   login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener::
 ,
  it
   kinda sucks and looks unprofessional. I find it hard to disagree.. I'd
   rather have the URL look prettier.
  
   For most of the pages this has been no problem for us, we mount
   bookmarkable
   URLs for them and all is great.
  
   However, for the login page, we've been through several iterations:
  
   1. We did the login form by AJAX, using an AjaxSubmitLink. This meant
  that
   the wicket-specific URL was still in the html source, but was invisible
  to
   the user. Issue: despite the fact that it's in a stateless form, AJAX
 in
   wicket seems to be stateful no matter what. This meant that the login
  page
   could expire, which was no good.
  
   2. I changed the AjaxSubmitLink to a SubmitLink. This succeeded in
 making
   our login stateless. However, the wickety URL that was hidden in the
 AJAX
   request now became visible to the user on a login failure.
  
   3. I tried setting up the CryptedUrlWebRequestCodingStrategy. This
   successfully managed to encrypt the resulting wicket specific URL to
   ?x=a325u0234usdajfasdf, but the thing is, the login page now started
   expiring again. The reason is that CryptedUrlWebRequestCodingStrategy
  uses
   a
   key stored in the session, which has the effect of making all stateless
   links stateful again.
  
   Does anybody have a good way for a stateless login form that doesn't
 show
   wickety stuff in the URL bar? Thanks in advance for any help.
  
   Neil
  
 
 
 
  --
  regards,
  Vineet Semwal
 




-- 
regards,
Vineet Semwal


Configure wicketpagetest to multi eclipse project layout

2010-03-10 Thread Per Newgro
Hi *,

i would like to know if someone is using wicketpagetest library in the 
following environment:

- IDE: Eclipse
- A project contains the webapp (wicket-quickstart).
- Another project contains the tests (integration-tests by usage of 
wicketpagetest).
- Both are concluded in a parent project with dependency of webapp project in 
test-project.

The problem is that the application is not deployed / or visible in selenium 
server and thus the first access to page fails with 

Get result: ERROR: element path:to:component not found on session.

I think this is because the web.xml file is located in the webapp project and 
the selenium default configuration points to src/main/webapp in the test 
project.

Is there a way to solve this? My only option for now is to move integration 
tests to wicket-quickstart project. But this is ugly for configuration 
deployment issues in the project.

Thanks
Per
-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

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



Get hiddenfield value on onError method

2010-03-10 Thread Gustavo Henrique
How I get the hiddenfield value on Form's onError  method?

thanks!


Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Michał Letyński
Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 
but i get the same error which James got.
My use case : I'm trying to submit a form via ajax to upload a file  
inside modal window.

After debug:
FileUploadBase.isMultipartContent get false because

if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType = 
application/x-www-form-urlencoded


James Carman pisze:

You're trying to submit a form via ajax to upload a file?

On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com wrote:
  

This issue seems to pop up in our environment from time to time and trying to 
figure out how to fix it once and for all.

We have a page with a form that pops up modal window with a form specified as 
well.

When we try to submit, we get the following exception:

java.lang.IllegalStateException: ServletRequest does not contain multipart 
content. One possible solution is to explicitly call Form.setMultipart(true), 
Wicket tries its best to auto-detect multipart forms but there are certain 
situation where it cannot.
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
...

Setting Form.setMultipart(true) on either form has no affect.

We are running Wicket Version 1.4.7.

Is there a fix for this issue?

Is this JIRA Issue related??? https://issues.apache.org/jira/browse/WICKET-2749






-
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: jWicket release 0.5.0

2010-03-10 Thread Ernesto Reinaldo Barreiro
Hi Stefan,

I just posted [1]. Let's see if someone answers... and is willing to fix the
issue.

Best,

Ernesto

References,

1-
http://forum.jquery.com/topic/drag-and-drop-problems-after-ajax-refresh-on-ie




On Mon, Mar 8, 2010 at 7:17 PM, Stefan Lindner lind...@visionet.de wrote:

 Hi Ernesto,

 yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the
 ticket you cited (4996). After a DOM replacement IE is unable to calculate
 it's bounding rect in the way jQuery does and IE then throws an exception
 that stops the re-registration of the behavior.
 The problem seems to be present since jQuery 1.3 and many related bus are
 open in jQuery's trac. I don't know why they don't fix the problem.
 So I put together some hints and proposals and modified jQuery.js. If you
 need the patch try to check it out from wickststuff trunk or contect me
 again.

 Good luck!
 Stefan

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 8. März 2010 19:07
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0

 Hi Stefan,

 My I ask what was your solution to the DD problem? Added a patch to
 jquery?
 Was this related to [1] and using jquery 1.4.2, independently of your
 project, and still find this issue.

 Best,

 Ernesto

 References,

 1-http://dev.jquery.com/ticket/4996

 http://dev.jquery.com/ticket/4996

 On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de
 wrote:

  I have committed jWicket version 0.5.0 to wicketstuff
 
  Changes:
  - jQuery update to Version 1.4.2
  - jQuery UI update to 1.8RC2
  - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
  in LazyLoad panels
  - drag/drop/resize improvements for less footprint in HTML, smaller js
  code generation
  - Effects rewritten completely, now covering all effects
  - Effects now support a chain of multiple effects
 
  Known Issues
  - Example application not very attractive
  - Example applicatioin contains some debugging code
 
  Let me know if someone needs prebuild jar files.
 
  Stefan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-03-10 Thread Wilhelmsen Tor Iver
 hello, I have another problem, with DropDown this time. If I have only
 one
 DropDown on my page, everything works great. But when I add another
 DropDown
 to the page, with diferent datasource, the first DropDown shows data
 from
 the second datasource. All DropDowns share the same datasource.

The only explanation I have is that somehow you are reusing the same underlying 
model for the two dropdowns... Or rather that when you configured the model for 
the second you overwrote configuration of the first. Remember to create new 
model objects.

- Tor Iver

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



Generic solution for tabindex?

2010-03-10 Thread espen . pedersen
Hi!

Is use a lot of panels on my pages and need to be able to dynamically set 
the tabindex attribute on the FormComponents contained in the panels, so 
that when I reuse them in differenet page compositions the tabindex will 
be correct (top-to-bottom).
Any good ideas out there on how this could be done?

--
Espen Ønvik Pedersen


Re: Support for serialization debugging.

2010-03-10 Thread Sergey Olefir

Thanks for the reply, Igor.

Indeed it was my own error -- there was a misconfiguration in our log4j
config which led to me simply not seeing error messages generated by Wicket
when serialization failed. It's only when I was shutting down the server,
the error message had enough severity to be seen.

On the other hand I found out a tidbit of information that I wanted to share
with the community :)

Under current Sun JDK, if you set JVM option:
-Dsun.io.serialization.extendedDebugInfo=true

then any NotSerializableExceptions will include detailed debug information
showing where the problem has occurred. This might be useful in cases where
SerializationChecker is not immediately available.



igor.vaynberg wrote:
 
 seems like it should be running.
 
 AbstractPageStore:203 serializes the page by calling
 Objects.objectToByteArray() which by default uses
 DefaultObjectStreamFactory which in turn runs your object through the
 SerializableChecker if an exception occurs, see
 IObjectStreamFactory:125
 
 so unless you installed your own objectoutputstreamfactory or if you
 are running on a non-sun jdk (serializable checker hacks stuff using
 reflection) you should be using it...
 
 -igor
 

-- 
View this message in context: 
http://old.nabble.com/Support-for-serialization-debugging.-tp27820726p27851166.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



possible bug in ComponentFeedBackPanel

2010-03-10 Thread Fernando Wermus
ComponentFeedBackPanel called to org.apache.wicket.util.lang.Objects.equals
to decide if there is a error message to show.

The implementation of this method is the following,

if (a == b)

{

return true;

}


 if ((a != null)  (b != null)  a.equals(b))

{

return true;

}


 return false;


For instance,


a is

[MarkupContainer [Component id = date]]

and in eclipse variables appears as [DateTextField id=460]


while


b is

[MarkupContainer [Component id = date]]

and in eclipse variables appears as [DateTextField id=463]

then this is returing false. This behavior only happens if the
ComponentFeedBackPanel
*is refreshed by ajax. ** *


I develop another class to test if I was misunderstanding the problem, but
it worked:


package com.misPartidos.web.eventos.paneles;


import org.apache.wicket.Component;

import org.apache.wicket.feedback.FeedbackMessage;

import org.apache.wicket.feedback.IFeedbackMessageFilter;

import org.apache.wicket.markup.html.panel.FeedbackPanel;


public class MyComponentFeedbackPanel extends FeedbackPanel {


 private static final long serialVersionUID = 1080609018238015083L;


 public MyComponentFeedbackPanel(String id, final Component filter) {

super(id);

setFilter(new IFeedbackMessageFilter(){

private static final long serialVersionUID = 3610826326194213455L;


 @Override

public boolean accept(FeedbackMessage message) {

final Component a=filter;

final Component b=message.getReporter();

if (a == b)

{

return true;

}

 if ((a!= null)  (b != null)  *a.getId().equals(b.getId()))*

{

return true;

}


 return false;

}

 });

}


}

I am just testing ids between a and b.

Does anyone has expirienced this wrong behavior with ComponentFeedBackPanel
in an ajax refreshed?

thanks in advance.


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: possible bug in ComponentFeedBackPanel

2010-03-10 Thread Martijn Dashorst
Probably you are not refreshing the component but rather recreating
it. Hence the different eclipse debugger id's. If this is inside a
listview, setReuseItems(true)

This behavior is most certainly not a bug in the Objects.equals().

Martijn

On Wed, Mar 10, 2010 at 5:03 PM, Fernando Wermus
fernando.wer...@gmail.com wrote:
 ComponentFeedBackPanel called to org.apache.wicket.util.lang.Objects.equals
 to decide if there is a error message to show.

 The implementation of this method is the following,

 if (a == b)

 {

 return true;

 }


  if ((a != null)  (b != null)  a.equals(b))

 {

 return true;

 }


  return false;


 For instance,


 a is

 [MarkupContainer [Component id = date]]

 and in eclipse variables appears as [DateTextField id=460]


 while


 b is

 [MarkupContainer [Component id = date]]

 and in eclipse variables appears as [DateTextField id=463]

 then this is returing false. This behavior only happens if the
 ComponentFeedBackPanel
 *is refreshed by ajax. ** *


 I develop another class to test if I was misunderstanding the problem, but
 it worked:


 package com.misPartidos.web.eventos.paneles;


 import org.apache.wicket.Component;

 import org.apache.wicket.feedback.FeedbackMessage;

 import org.apache.wicket.feedback.IFeedbackMessageFilter;

 import org.apache.wicket.markup.html.panel.FeedbackPanel;


 public class MyComponentFeedbackPanel extends FeedbackPanel {


  private static final long serialVersionUID = 1080609018238015083L;


  public MyComponentFeedbackPanel(String id, final Component filter) {

 super(id);

 setFilter(new IFeedbackMessageFilter(){

 private static final long serialVersionUID = 3610826326194213455L;


 �...@override

 public boolean accept(FeedbackMessage message) {

 final Component a=filter;

 final Component b=message.getReporter();

 if (a == b)

 {

 return true;

 }

  if ((a!= null)  (b != null)  *a.getId().equals(b.getId()))*

 {

 return true;

 }


  return false;

 }

  });

 }


 }

 I am just testing ids between a and b.

 Does anyone has expirienced this wrong behavior with ComponentFeedBackPanel
 in an ajax refreshed?

 thanks in advance.


 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



AW: jWicket release 0.5.0

2010-03-10 Thread Stefan Lindner
Hi Ernesto,

thank you for doing it. I was to busy during the last few days.

Best,

Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Mittwoch, 10. März 2010 15:53
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Hi Stefan,

I just posted [1]. Let's see if someone answers... and is willing to fix the
issue.

Best,

Ernesto

References,

1-
http://forum.jquery.com/topic/drag-and-drop-problems-after-ajax-refresh-on-ie




On Mon, Mar 8, 2010 at 7:17 PM, Stefan Lindner lind...@visionet.de wrote:

 Hi Ernesto,

 yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the
 ticket you cited (4996). After a DOM replacement IE is unable to calculate
 it's bounding rect in the way jQuery does and IE then throws an exception
 that stops the re-registration of the behavior.
 The problem seems to be present since jQuery 1.3 and many related bus are
 open in jQuery's trac. I don't know why they don't fix the problem.
 So I put together some hints and proposals and modified jQuery.js. If you
 need the patch try to check it out from wickststuff trunk or contect me
 again.

 Good luck!
 Stefan

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 8. März 2010 19:07
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0

 Hi Stefan,

 My I ask what was your solution to the DD problem? Added a patch to
 jquery?
 Was this related to [1] and using jquery 1.4.2, independently of your
 project, and still find this issue.

 Best,

 Ernesto

 References,

 1-http://dev.jquery.com/ticket/4996

 http://dev.jquery.com/ticket/4996

 On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de
 wrote:

  I have committed jWicket version 0.5.0 to wicketstuff
 
  Changes:
  - jQuery update to Version 1.4.2
  - jQuery UI update to 1.8RC2
  - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
  in LazyLoad panels
  - drag/drop/resize improvements for less footprint in HTML, smaller js
  code generation
  - Effects rewritten completely, now covering all effects
  - Effects now support a chain of multiple effects
 
  Known Issues
  - Example application not very attractive
  - Example applicatioin contains some debugging code
 
  Let me know if someone needs prebuild jar files.
 
  Stefan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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



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



Re: Don't increment the Session.pageIdCounter for stateless pages?

2010-03-10 Thread Igor Vaynberg
i think we can do this in 1.5

i would rather not mess with 1.4 because i think there is a lot of
code there that depends on the fact that the id is available right
away.

please create a jira issue for this

-igor

On Mon, Mar 8, 2010 at 4:30 PM, Martin Grotzke
martin.grot...@javakaffee.de wrote:
 Hi,

 the Page.init(PageMap) invokes setNextAvailableId(), which invokes
 getSession().nextPageId() if isPageIdUniquePerSession is set.

 getSession().nextPageId() modifies the Session.pageIdCounter.

 When I have a session and afterwards access a stateless page, the
 Session.pageIdCounter is the only data that is changed in the session
 AFAICS, everything else is the same as in the request before.

 Is it possible _not_ to modify the Session.pageIdCounter if the page is
 really stateless (or just don't invoke Page.setNextAvailableId())?

 I'm interested in this, as I'm just implementing a feature for the
 memcached-session-manager ([1], memcached based session replication),
 which checks if session data has changed and replicates sessions only if
 this is provided. If session data did not change, the replication is
 omitted. Therefore, if the Session.pageIdCounter would be left unchanged
 for stateless pages, this would allow to make use of this feature in
 wicket apps.

 Thanx  cheers,
 Martin


 [1] http://code.google.com/p/memcached-session-manager/




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



Re: Get hiddenfield value on onError method

2010-03-10 Thread Jeremy Thomerson
You can either call yourField.getValue() or get(yourField).getValue() - or
the other get*Input methods.

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



On Wed, Mar 10, 2010 at 8:31 AM, Gustavo Henrique gustavo...@gmail.comwrote:

 How I get the hiddenfield value on Form's onError  method?

 thanks!



Re: jquery/qtip integration troubles - ajax post stopped

2010-03-10 Thread Antoine van Wel
Turns out Wicket.$$(this) returned false after all. Thanks Richard!

I ended up adapting the AjaxButton by simply kicking out the
Wicket.$$(this) of the pre-condition check.

So can anybody tell me what this Wicket.$$(this) is good for ... I
got a gut-feeling what I've done is not such a good idea :-)


Antoine


On Tue, Mar 9, 2010 at 6:44 PM, Antoine van Wel
antoine.van@gmail.com wrote:
 Hi Richard,

 Thanks for the reply. It didn't bring me further though.
 When debugging, Wicket.$$(this) and the other one both return true, so
 that doesn't seem to be the problem.

 When tracking the evaluation of the precondition, I end up in wicket-event.js

 25 if (Function.prototype.bind == null) {
 26 Function.prototype.bind = function(object) {
 27 var __method = this;
 28 return function() {
 29 return __method.apply(object, arguments);
 30 }
 31 }
 32}

 where line 29 will return false.
 Does that ring any bells?


 By the way, in the code I copied-and-pasted in my previous email, two
 lines were not included which needs to be there:
 setOutputMarkupId(true) on parent  content components.


 Antoine

 On Tue, Mar 9, 2010 at 4:37 PM, Richard Wilkinson
 richardjohnwilkin...@googlemail.com wrote:
 Hi,

 'Ajax POST stopped because of precondition check' is probably your
 problem.  all wicket ajax can have a precondition, which is basically
 a function that returns true or false, and will only execute the ajax
 if it returns true.  I expect that for some reason in your case this
 function is returning false.

 for an AjaxButton (well AjaxFormSubmitBehavior) the precondition is
 this: return Wicket.$$(this)Wicket.$$(' + getForm().getMarkupId()
 + ');

 in the wicket ajax javascript file i see this:

 // returns if the element belongs to current document
 // if the argument is not element, function returns true
 Wicket.$$ = function(element) {
 ...
 }

 This must be failing for you, which I presume has something to do with
 how you are passing the content into the qtip;

 content: $('# + contentMarkupId + ').html()

 Hope that helps.

 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com


 On 9 March 2010 13:05, Antoine van Wel antoine.van@gmail.com wrote:
 Hi everybody,

 Integrating a Jquery tooltip (qtip) went smoothly until I tried to do
 an Ajax form submit.
 The Wicket Ajax Debug panel shows an Ajax POST stopped because of
 precondition check, so an Ajax response is never sent.

 What I'm doing is simply render the text for the tooltip on the same
 page in a hidden div, then pointing the content of the tooltip to that
 div.

 the html:

 wicket:head
        script type=text/javascript 
 src=/js/jquery-1.3.2.min.js/script
        script type=text/javascript 
 src=/js/jquery.qtip-1.0.0-rc3.min.js/script
 /wicket:head

 wicket:extend
        div wicket:id=content style=display: none;
                form wicket:id=form
                        input type=submit wicket:id=clickme 
 value=click me
                /form
        /div

        span wicket:id=tipmehover over me/span
 /wicket:extend

 the page class:

 public class JQueryTestPage extends BasePage {
        public JQueryTestPage() {
                WebMarkupContainer content = new 
 WebMarkupContainer(content);
                add(content);

                FormVoid form = new FormVoid(form);
                content.add(form);
                form.add(new AjaxButton(clickme) {
                       �...@override
                        protected void onSubmit(AjaxRequestTarget target, 
 Form? form) {
                                System.out.println(testing);
                        }

                });

                WebMarkupContainer qtip = new WebMarkupContainer(tipme);
                add(qtip);
                qtip.add(new QTipBehavior(qtip, content));
        }

 }


 and finally the QTipBehavior:

 public class QTipBehavior extends AbstractBehavior {
        private String componentMarkupId;
        private String contentMarkupId;

        public QTipBehavior(Component parent, Component content) {
                contentMarkupId = content.getMarkupId();
                componentMarkupId = parent.getMarkupId();
        }

       �...@override
        public void renderHead(IHeaderResponse response) {
                String javascript = new StringBuilder()
                        .append($(function() {)
                        .append(       $('# + componentMarkupId + 
 ').qtip({)
                        .append(               content: $('# + 
 contentMarkupId + ').html(),)
                        .append(               hide: { fixed: true },)
                        .append(               position: { corner: { 
 target: 'topRight', tooltip:
 'leftTop' } },)
                        .append(       }))
                        .append(});)
                        .toString();
                response.renderOnDomReadyJavascript(javascript);
        }
 }


 All 

Re: possible bug in ComponentFeedBackPanel

2010-03-10 Thread Fernando Wermus
Martijn,

I am recreating the components as you mentioned. But there is a line
which I dont understand in Objects.equals,

 if ((a != null)  (b != null)  a.equals(b))

I look for the implementation of equals in class Component and other classes
 and I havent found any. Then this is equivalent to do a==b.

Just for curiosity,
Are there any component which has an implementation of equals?
and,
why is not enought to compare id between components in
ComponentFeedbackMessageFilter.accept
instead of Objects.equals? Because I think I cant have more than a component
with the same id in same container.

thanks


On Wed, Mar 10, 2010 at 2:09 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 Probably you are not refreshing the component but rather recreating
 it. Hence the different eclipse debugger id's. If this is inside a
 listview, setReuseItems(true)

 This behavior is most certainly not a bug in the Objects.equals().

 Martijn

 On Wed, Mar 10, 2010 at 5:03 PM, Fernando Wermus
 fernando.wer...@gmail.com wrote:
  ComponentFeedBackPanel called to
 org.apache.wicket.util.lang.Objects.equals
  to decide if there is a error message to show.
 
  The implementation of this method is the following,
 
  if (a == b)
 
  {
 
  return true;
 
  }
 
 
   if ((a != null)  (b != null)  a.equals(b))
 
  {
 
  return true;
 
  }
 
 
   return false;
 
 
  For instance,
 
 
  a is
 
  [MarkupContainer [Component id = date]]
 
  and in eclipse variables appears as [DateTextField id=460]
 
 
  while
 
 
  b is
 
  [MarkupContainer [Component id = date]]
 
  and in eclipse variables appears as [DateTextField id=463]
 
  then this is returing false. This behavior only happens if the
  ComponentFeedBackPanel
  *is refreshed by ajax. ** *
 
 
  I develop another class to test if I was misunderstanding the problem,
 but
  it worked:
 
 
  package com.misPartidos.web.eventos.paneles;
 
 
  import org.apache.wicket.Component;
 
  import org.apache.wicket.feedback.FeedbackMessage;
 
  import org.apache.wicket.feedback.IFeedbackMessageFilter;
 
  import org.apache.wicket.markup.html.panel.FeedbackPanel;
 
 
  public class MyComponentFeedbackPanel extends FeedbackPanel {
 
 
   private static final long serialVersionUID = 1080609018238015083L;
 
 
   public MyComponentFeedbackPanel(String id, final Component filter) {
 
  super(id);
 
  setFilter(new IFeedbackMessageFilter(){
 
  private static final long serialVersionUID = 3610826326194213455L;
 
 
   @Override
 
  public boolean accept(FeedbackMessage message) {
 
  final Component a=filter;
 
  final Component b=message.getReporter();
 
  if (a == b)
 
  {
 
  return true;
 
  }
 
   if ((a!= null)  (b != null)  *a.getId().equals(b.getId()))*
 
  {
 
  return true;
 
  }
 
 
   return false;
 
  }
 
   });
 
  }
 
 
  }
 
  I am just testing ids between a and b.
 
  Does anyone has expirienced this wrong behavior with
 ComponentFeedBackPanel
  in an ajax refreshed?
 
  thanks in advance.
 
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


WicketStuff Dojo

2010-03-10 Thread Josh Chappelle
Hi,

 

Is anyone maintaining the wicketstuff-dojo project anymore? If not then I
can get the source code and try to get it working in 1.4 and commit the
changes. 

 

If this is not the forum for wicket-stuff questions I apologize and please
let me know where one is.

 

Thanks,

 

Josh



Re: Generic solution for tabindex?

2010-03-10 Thread Scott Swank
We have created a bad solution.  The core problem is ajax.  Say you
have five fields: A, B, C, D  E.  Now you want to insert X  Y
between A  B.  No static numbering system will allow an unknown
number of fields to be inserted in between the existing fields.

On top of that you need to have the boundaries of the numbering ranges
well-defined.  Say you have two columns, numbered as follows:

A(10)  D(40)
B(20)  E(50)
C(30)  F(60)

Now let's say you insert a new row (our old friends X  Y) after the
first, you want to end up with something like:

A(10)  D(40)
X(15)  Y(45)
B(20)  E(50)
C(30)  F(60)

But it is not a simple matter to accomplish this.  So here's what we
have, which as I said has problems with corner cases.

For various FormComponents we have subclasses such as the following:

public class TabIndexTextFieldT extends TextFieldT implements TabIndexable {
  private ModelInteger tabIndexModel = new ModelInteger(0);

  public TabIndexTextField(String id) {
super(id);
add(new AttributeModifier(tabindex, true, tabIndexModel));
  }

  @Override
  protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
// call a parent WebMarkupContainer that implements TabIndexed
// and knows how to examine 
// ValueMap vMap = c.getMarkupAttributes();
// if (vMap.containsKey(tabindex))
//tabIndex = vMap.getInt(tabindex);
// to set the tabIndexModel's value
  }
}

The above is reasonably sound, however the implementation of
TabIndexed needs cleanup and has problems with corner conditions.
I'll post the gist of that logic if you like, but the actual
implementation is spread out (unnecessarily) across a couple of
classes.

Scott

On Wed, Mar 10, 2010 at 7:12 AM,  espen.peder...@husbanken.no wrote:
 Hi!

 Is use a lot of panels on my pages and need to be able to dynamically set
 the tabindex attribute on the FormComponents contained in the panels, so
 that when I reuse them in differenet page compositions the tabindex will
 be correct (top-to-bottom).
 Any good ideas out there on how this could be done?

 --
 Espen Ønvik Pedersen


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



Re: WicketStuff Dojo

2010-03-10 Thread Jeremy Thomerson
Are you a committer in wicket-stuff?  If not, provide your sf.net user ID
and we can add you.

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



On Wed, Mar 10, 2010 at 11:43 AM, Josh Chappelle jchappe...@4redi.comwrote:

 Hi,



 Is anyone maintaining the wicketstuff-dojo project anymore? If not then I
 can get the source code and try to get it working in 1.4 and commit the
 changes.



 If this is not the forum for wicket-stuff questions I apologize and please
 let me know where one is.



 Thanks,



 Josh




RE: WicketStuff Dojo

2010-03-10 Thread Josh Chappelle
I am not. In fact I don't have a sf.net user id. How should I go about
getting one?

Josh

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Wednesday, March 10, 2010 11:48 AM
To: users@wicket.apache.org
Subject: Re: WicketStuff Dojo

Are you a committer in wicket-stuff?  If not, provide your sf.net user ID
and we can add you.

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



On Wed, Mar 10, 2010 at 11:43 AM, Josh Chappelle
jchappe...@4redi.comwrote:

 Hi,



 Is anyone maintaining the wicketstuff-dojo project anymore? If not then I
 can get the source code and try to get it working in 1.4 and commit the
 changes.



 If this is not the forum for wicket-stuff questions I apologize and please
 let me know where one is.



 Thanks,



 Josh




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



Re: WicketStuff Dojo

2010-03-10 Thread Jeremy Thomerson
Register on their site.

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



On Wed, Mar 10, 2010 at 11:54 AM, Josh Chappelle jchappe...@4redi.comwrote:

 I am not. In fact I don't have a sf.net user id. How should I go about
 getting one?

 Josh

 -Original Message-
 From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
 Sent: Wednesday, March 10, 2010 11:48 AM
 To: users@wicket.apache.org
 Subject: Re: WicketStuff Dojo

 Are you a committer in wicket-stuff?  If not, provide your sf.net user ID
 and we can add you.

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



 On Wed, Mar 10, 2010 at 11:43 AM, Josh Chappelle
 jchappe...@4redi.comwrote:

  Hi,
 
 
 
  Is anyone maintaining the wicketstuff-dojo project anymore? If not then I
  can get the source code and try to get it working in 1.4 and commit the
  changes.
 
 
 
  If this is not the forum for wicket-stuff questions I apologize and
 please
  let me know where one is.
 
 
 
  Thanks,
 
 
 
  Josh
 
 


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




RE: WicketStuff Dojo

2010-03-10 Thread Josh Chappelle
My sf.net user id is jchappelle.

Josh

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Wednesday, March 10, 2010 11:55 AM
To: users@wicket.apache.org
Subject: Re: WicketStuff Dojo

Register on their site.

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



On Wed, Mar 10, 2010 at 11:54 AM, Josh Chappelle
jchappe...@4redi.comwrote:

 I am not. In fact I don't have a sf.net user id. How should I go about
 getting one?

 Josh

 -Original Message-
 From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
 Sent: Wednesday, March 10, 2010 11:48 AM
 To: users@wicket.apache.org
 Subject: Re: WicketStuff Dojo

 Are you a committer in wicket-stuff?  If not, provide your sf.net user ID
 and we can add you.

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



 On Wed, Mar 10, 2010 at 11:43 AM, Josh Chappelle
 jchappe...@4redi.comwrote:

  Hi,
 
 
 
  Is anyone maintaining the wicketstuff-dojo project anymore? If not then
I
  can get the source code and try to get it working in 1.4 and commit the
  changes.
 
 
 
  If this is not the forum for wicket-stuff questions I apologize and
 please
  let me know where one is.
 
 
 
  Thanks,
 
 
 
  Josh
 
 


 -
 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 feedback

2010-03-10 Thread Martin Makundi
Hi!

 Could you help me with some examples?

In what way?

Normally you have a panel like this:

html
button wicket:id=button/
/html
class Panel {
  add(new Button(button));
}

You cannot change the panel content flexibly at runtime.

Now if you have a MashupContainer you can do:

mashupContainer.add(new Button());
mashupContainer.add(new Panel());
if (privileged) {
  mashupContainer.add(new GoogleMap());
  mashupContainer.add(new FacebookWidet());
}

Also you can add new components at runtime via ajax just by saying:
  mashupContainer.add(new PanelAtRuntime());
  ajaxRequestTarget.addComponent(mashupContainer);

So you can do pretty much anything with it without having to modify
HTML at the same time.

**
Martin

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



Re: WicketStuff Dojo

2010-03-10 Thread Jeremy Thomerson
You're added

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



On Wed, Mar 10, 2010 at 12:00 PM, Josh Chappelle jchappe...@4redi.comwrote:

 jchappelle


RE: WicketStuff Dojo

2010-03-10 Thread Josh Chappelle
Thanks a lot Jeremy.

Josh

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Wednesday, March 10, 2010 12:10 PM
To: users@wicket.apache.org
Subject: Re: WicketStuff Dojo

You're added

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



On Wed, Mar 10, 2010 at 12:00 PM, Josh Chappelle
jchappe...@4redi.comwrote:

 jchappelle


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



RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Yeah, some feedback from the Wicket Contributors on this issue would be greatly 
appreciated.

-Original Message-
From: Michał Letyński [mailto:mletyn...@consol.pl] 
Sent: Wednesday, March 10, 2010 7:52 AM
To: users@wicket.apache.org
Subject: Re: Nested Forms and Multipart Fileupload Issue

Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 
but i get the same error which James got.
My use case : I'm trying to submit a form via ajax to upload a file  
inside modal window.
After debug:
FileUploadBase.isMultipartContent get false because

if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType = 
application/x-www-form-urlencoded
 
James Carman pisze:
 You're trying to submit a form via ajax to upload a file?

 On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com wrote:
   
 This issue seems to pop up in our environment from time to time and trying 
 to figure out how to fix it once and for all.

 We have a page with a form that pops up modal window with a form specified 
 as well.

 When we try to submit, we get the following exception:

 java.lang.IllegalStateException: ServletRequest does not contain multipart 
 content. One possible solution is to explicitly call 
 Form.setMultipart(true), Wicket tries its best to auto-detect multipart 
 forms but there are certain situation where it cannot.
 at 
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
 at 
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
 at 
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
 at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
 at 
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
 at 
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 ...

 Setting Form.setMultipart(true) on either form has no affect.

 We are running Wicket Version 1.4.7.

 Is there a fix for this issue?

 Is this JIRA Issue related??? 
 https://issues.apache.org/jira/browse/WICKET-2749



 

 -
 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: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
Someone at work had some luck with this approach from what I understand...

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


2010/3/10 Michał Letyński mletyn...@consol.pl:
 Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 but
 i get the same error which James got.
 My use case : I'm trying to submit a form via ajax to upload a file  inside
 modal window.
 After debug:
 FileUploadBase.isMultipartContent get false because

 if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType =
 application/x-www-form-urlencoded

 James Carman pisze:

 You're trying to submit a form via ajax to upload a file?

 On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com
 wrote:


 This issue seems to pop up in our environment from time to time and
 trying to figure out how to fix it once and for all.

 We have a page with a form that pops up modal window with a form
 specified as well.

 When we try to submit, we get the following exception:

 java.lang.IllegalStateException: ServletRequest does not contain
 multipart content. One possible solution is to explicitly call
 Form.setMultipart(true), Wicket tries its best to auto-detect multipart
 forms but there are certain situation where it cannot.
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
 at
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
 at
 org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
 at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
 at
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 ...

 Setting Form.setMultipart(true) on either form has no affect.

 We are running Wicket Version 1.4.7.

 Is there a fix for this issue?

 Is this JIRA Issue related???
 https://issues.apache.org/jira/browse/WICKET-2749





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



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



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



RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Hmmm...I thought the Wicket Team already implemented something similar to this 
into the framework some time ago.

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com] 
Sent: Wednesday, March 10, 2010 11:15 AM
To: users@wicket.apache.org
Subject: Re: Nested Forms and Multipart Fileupload Issue

Someone at work had some luck with this approach from what I understand...

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


2010/3/10 Michał Letyński mletyn...@consol.pl:
 Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 but
 i get the same error which James got.
 My use case : I'm trying to submit a form via ajax to upload a file  inside
 modal window.
 After debug:
 FileUploadBase.isMultipartContent get false because

 if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType =
 application/x-www-form-urlencoded

 James Carman pisze:

 You're trying to submit a form via ajax to upload a file?

 On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com
 wrote:


 This issue seems to pop up in our environment from time to time and
 trying to figure out how to fix it once and for all.

 We have a page with a form that pops up modal window with a form
 specified as well.

 When we try to submit, we get the following exception:

 java.lang.IllegalStateException: ServletRequest does not contain
 multipart content. One possible solution is to explicitly call
 Form.setMultipart(true), Wicket tries its best to auto-detect multipart
 forms but there are certain situation where it cannot.
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
 at
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
 at
 org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
 at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
 at
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 ...

 Setting Form.setMultipart(true) on either form has no affect.

 We are running Wicket Version 1.4.7.

 Is there a fix for this issue?

 Is this JIRA Issue related???
 https://issues.apache.org/jira/browse/WICKET-2749





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



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



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



Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
Perhaps it's in Wicket-stuff?  I don't know.

On Wed, Mar 10, 2010 at 1:19 PM, Corbin, James jcor...@iqnavigator.com wrote:
 Hmmm...I thought the Wicket Team already implemented something similar to 
 this into the framework some time ago.

 -Original Message-
 From: James Carman [mailto:jcar...@carmanconsulting.com]
 Sent: Wednesday, March 10, 2010 11:15 AM
 To: users@wicket.apache.org
 Subject: Re: Nested Forms and Multipart Fileupload Issue

 Someone at work had some luck with this approach from what I understand...

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


 2010/3/10 Michał Letyński mletyn...@consol.pl:
 Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 but
 i get the same error which James got.
 My use case : I'm trying to submit a form via ajax to upload a file  inside
 modal window.
 After debug:
 FileUploadBase.isMultipartContent get false because

 if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType =
 application/x-www-form-urlencoded

 James Carman pisze:

 You're trying to submit a form via ajax to upload a file?

 On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com
 wrote:


 This issue seems to pop up in our environment from time to time and
 trying to figure out how to fix it once and for all.

 We have a page with a form that pops up modal window with a form
 specified as well.

 When we try to submit, we get the following exception:

 java.lang.IllegalStateException: ServletRequest does not contain
 multipart content. One possible solution is to explicitly call
 Form.setMultipart(true), Wicket tries its best to auto-detect multipart
 forms but there are certain situation where it cannot.
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
 at
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
 at
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
 at
 org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
 at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
 at
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 ...

 Setting Form.setMultipart(true) on either form has no affect.

 We are running Wicket Version 1.4.7.

 Is there a fix for this issue?

 Is this JIRA Issue related???
 https://issues.apache.org/jira/browse/WICKET-2749





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



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



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



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



Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Jeremy Thomerson
No - there is support for submitting forms via ajax that contain file upload
fields - in the core of Wicket.  It was added near the beginning of 1.4
IIRC.  However, I'm not sure about this particular use case.  It sounds like
a bug.

Could you please create a quickstart, attach to a JIRA, and post the JIRA
link back here?  Then we can take a look.

Thanks

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



On Wed, Mar 10, 2010 at 12:21 PM, James Carman jcar...@carmanconsulting.com
 wrote:

 Perhaps it's in Wicket-stuff?  I don't know.

 On Wed, Mar 10, 2010 at 1:19 PM, Corbin, James jcor...@iqnavigator.com
 wrote:
  Hmmm...I thought the Wicket Team already implemented something similar to
 this into the framework some time ago.
 
  -Original Message-
  From: James Carman [mailto:jcar...@carmanconsulting.com]
  Sent: Wednesday, March 10, 2010 11:15 AM
  To: users@wicket.apache.org
  Subject: Re: Nested Forms and Multipart Fileupload Issue
 
  Someone at work had some luck with this approach from what I
 understand...
 
 
 http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/
 
 
  2010/3/10 Michał Letyński mletyn...@consol.pl:
  Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7
 but
  i get the same error which James got.
  My use case : I'm trying to submit a form via ajax to upload a file
  inside
  modal window.
  After debug:
  FileUploadBase.isMultipartContent get false because
 
  if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType =
  application/x-www-form-urlencoded
 
  James Carman pisze:
 
  You're trying to submit a form via ajax to upload a file?
 
  On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com
 
  wrote:
 
 
  This issue seems to pop up in our environment from time to time and
  trying to figure out how to fix it once and for all.
 
  We have a page with a form that pops up modal window with a form
  specified as well.
 
  When we try to submit, we get the following exception:
 
  java.lang.IllegalStateException: ServletRequest does not contain
  multipart content. One possible solution is to explicitly call
  Form.setMultipart(true), Wicket tries its best to auto-detect
 multipart
  forms but there are certain situation where it cannot.
  at
 
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
  at
 
 org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
  at
 
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
  at
 
 org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
  at
 org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
  at
 
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
  at
 
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
  ...
 
  Setting Form.setMultipart(true) on either form has no affect.
 
  We are running Wicket Version 1.4.7.
 
  Is there a fix for this issue?
 
  Is this JIRA Issue related???
  https://issues.apache.org/jira/browse/WICKET-2749
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




Re: Mootools Clashes With wicket-event.js

2010-03-10 Thread nino martinez wael
hmm Mootips from wickstuff minies works fine... What version do you have of
mootools?

Would you do a quickstart?

2010/3/9 Ayodeji Aladejebi aladej...@gmail.com

 My mootools.js scripts wont work because of

 resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 What do i do

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




Spring @Autowire not working

2010-03-10 Thread Alec Swan
I use @SpringBean to wire service classes in my Wicket pages and it works great.

My service classes have dependencies on DAO classes. I am currently
wiring DAO classes into service classes adding setters for them and
adding them in the service classes and also specifying DAOs as
property elements in the Spring application context XML. This
approach works, but is verbose.

I would like to just annotate the DAO dependency with @Autowired
annotation in my service class and have it automatically injected by
Spring. This doesn't work and the DAO is never injected.

How can I fix this?

Thanks.

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



Re: Spring @Autowire not working

2010-03-10 Thread Martin Phee
I'm currently using jars from another application which using spring  
in a new Wicket application I'm writing without problems.


I'm using the service classes within a Wizard using the SpringBean  
annotation and within the service it's using @Resource to annotate the  
dao classes it's using.  No problems with this part so far.


My service is annotated with @Service and my Dao have @Repository.   
Nothing in xml files for the beans.  As long as you have your spring  
context files setup properly and your using the  
SpringComponentInjector it should work.


Though I'm having a very weird issue with another part of the  
application using spring security.  Plan on posting the issue soon.


On Mar 10, 2010, at 1:38 PM, Alec Swan wrote:

I use @SpringBean to wire service classes in my Wicket pages and it  
works great.


My service classes have dependencies on DAO classes. I am currently
wiring DAO classes into service classes adding setters for them and
adding them in the service classes and also specifying DAOs as
property elements in the Spring application context XML. This
approach works, but is verbose.

I would like to just annotate the DAO dependency with @Autowired
annotation in my service class and have it automatically injected by
Spring. This doesn't work and the DAO is never injected.

How can I fix this?

Thanks.

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




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



Re: Spring @Autowire not working

2010-03-10 Thread Igor Vaynberg
this is purely a spring question no? why dont you ask on their forums...

-igor

On Wed, Mar 10, 2010 at 11:38 AM, Alec Swan alecs...@gmail.com wrote:
 I use @SpringBean to wire service classes in my Wicket pages and it works 
 great.

 My service classes have dependencies on DAO classes. I am currently
 wiring DAO classes into service classes adding setters for them and
 adding them in the service classes and also specifying DAOs as
 property elements in the Spring application context XML. This
 approach works, but is verbose.

 I would like to just annotate the DAO dependency with @Autowired
 annotation in my service class and have it automatically injected by
 Spring. This doesn't work and the DAO is never injected.

 How can I fix this?

 Thanks.

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



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



Re: Mootools Clashes With wicket-event.js

2010-03-10 Thread Martijn Dashorst
On Tue, Mar 9, 2010 at 2:14 AM, Ayodeji Aladejebi aladej...@gmail.com wrote:
 My mootools.js scripts wont work because of
 resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 What do i do

Give more information on what doesn't work, why it doesn't work, which
version of Wicket, which version of mootools, what you have tried,
etc. Have you created a quickstart with just the mootools thing and
wicket that exhibits this problem?

Martijn

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



Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-03-10 Thread Richard Nichols
Can you post a code snippet?

You have to give the datasources unique name properties, as the name
is used in the client side javascript to link the component to the
datasource.

On 10 March 2010 01:52, danisevsky danisev...@gmail.com wrote:
 hello, I have another problem, with DropDown this time. If I have only one
 DropDown on my page, everything works great. But when I add another DropDown
 to the page, with diferent datasource, the first DropDown shows data from
 the second datasource. All DropDowns share the same datasource.




-- 
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



Suggestion list

2010-03-10 Thread Josh Chappelle
Hi,

 

I am trying to find a suggestion list component that works like a
DropDownChoice but can also be edited like a TextField. I tried to use the
wicketstuff-dojo component called DojoHtmlSuggestionList but it appears to
have some bugs because the model value was not binding to my object. In fact
a lot of components in wicketstuff-dojo seem to be riddled with bugs which
must be why it is dead and no one uses it.

 

Can anyone suggest a replacement javascript library that has wicket
integration that would achieve the suggestion list functionality?

 

Thanks,

 

Josh



Re: Suggestion list

2010-03-10 Thread Igor Vaynberg
wicket ships with
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextFieldT

-igor

On Wed, Mar 10, 2010 at 1:44 PM, Josh Chappelle jchappe...@4redi.com wrote:
 Hi,



 I am trying to find a suggestion list component that works like a
 DropDownChoice but can also be edited like a TextField. I tried to use the
 wicketstuff-dojo component called DojoHtmlSuggestionList but it appears to
 have some bugs because the model value was not binding to my object. In fact
 a lot of components in wicketstuff-dojo seem to be riddled with bugs which
 must be why it is dead and no one uses it.



 Can anyone suggest a replacement javascript library that has wicket
 integration that would achieve the suggestion list functionality?



 Thanks,



 Josh



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



Re: DateField problem

2010-03-10 Thread Cserep Janos
I've started to see this after upgrading from 1.4.3 to 1.4.6, it is
causing me trouble  right now... did you ever file a ticket in jira?
In wicket-date.js I see this line which changes 2010 to 10:

if(datePattern.match(/yy+/)) year =
Wicket.DateTime.padDateFragment(year % 100);

This is a bug introduced by http://issues.apache.org/jira/browse/WICKET-2648

Now even though the pattern has  in it, the year is still truncated.

I'll report it immediately.

2010/2/19 Gatos ega...@gmail.com:
 Hello,

 I have a strange problem if I enter to a date field date, from example
 2.3.2110 then it will be converted to 2.3.10.

 Does anyone know how to solve the problem?

 Thank you


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



RE: Suggestion list

2010-03-10 Thread Josh Chappelle
The AutoCompleteTextField is great but the problem is that the user has to
start typing before they can see the list of options which means they
already have to have an idea of some of the choices. For my particular use
case I need the user to be able to see the choices first.

If there is a way to easily override something in AutoCompleteTextField that
would be perfect.

Thanks,

Josh

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Wednesday, March 10, 2010 3:46 PM
To: users@wicket.apache.org
Subject: Re: Suggestion list

wicket ships with
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextF
ieldT

-igor

On Wed, Mar 10, 2010 at 1:44 PM, Josh Chappelle jchappe...@4redi.com
wrote:
 Hi,



 I am trying to find a suggestion list component that works like a
 DropDownChoice but can also be edited like a TextField. I tried to use the
 wicketstuff-dojo component called DojoHtmlSuggestionList but it appears to
 have some bugs because the model value was not binding to my object. In
fact
 a lot of components in wicketstuff-dojo seem to be riddled with bugs which
 must be why it is dead and no one uses it.



 Can anyone suggest a replacement javascript library that has wicket
 integration that would achieve the suggestion list functionality?



 Thanks,



 Josh



-
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: Suggestion list

2010-03-10 Thread Igor Vaynberg
AutoCompleteSettings.setShowListOnEmptyInput(true) ?

-igor

On Wed, Mar 10, 2010 at 1:54 PM, Josh Chappelle jchappe...@4redi.com wrote:
 The AutoCompleteTextField is great but the problem is that the user has to
 start typing before they can see the list of options which means they
 already have to have an idea of some of the choices. For my particular use
 case I need the user to be able to see the choices first.

 If there is a way to easily override something in AutoCompleteTextField that
 would be perfect.

 Thanks,

 Josh

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Wednesday, March 10, 2010 3:46 PM
 To: users@wicket.apache.org
 Subject: Re: Suggestion list

 wicket ships with
 org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextF
 ieldT

 -igor

 On Wed, Mar 10, 2010 at 1:44 PM, Josh Chappelle jchappe...@4redi.com
 wrote:
 Hi,



 I am trying to find a suggestion list component that works like a
 DropDownChoice but can also be edited like a TextField. I tried to use the
 wicketstuff-dojo component called DojoHtmlSuggestionList but it appears to
 have some bugs because the model value was not binding to my object. In
 fact
 a lot of components in wicketstuff-dojo seem to be riddled with bugs which
 must be why it is dead and no one uses it.



 Can anyone suggest a replacement javascript library that has wicket
 integration that would achieve the suggestion list functionality?



 Thanks,



 Josh



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


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



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



RE: Suggestion list

2010-03-10 Thread Josh Chappelle
Now I see the AutoCompleteSettings class. It looks like it has a
showListOnEmptyInput boolean in it. I'll give that a try.

Thanks a bunch!

Josh

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Wednesday, March 10, 2010 3:46 PM
To: users@wicket.apache.org
Subject: Re: Suggestion list

wicket ships with
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextF
ieldT

-igor

On Wed, Mar 10, 2010 at 1:44 PM, Josh Chappelle jchappe...@4redi.com
wrote:
 Hi,



 I am trying to find a suggestion list component that works like a
 DropDownChoice but can also be edited like a TextField. I tried to use the
 wicketstuff-dojo component called DojoHtmlSuggestionList but it appears to
 have some bugs because the model value was not binding to my object. In
fact
 a lot of components in wicketstuff-dojo seem to be riddled with bugs which
 must be why it is dead and no one uses it.



 Can anyone suggest a replacement javascript library that has wicket
 integration that would achieve the suggestion list functionality?



 Thanks,



 Josh



-
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



AutoCompleteTextField bug

2010-03-10 Thread Josh Chappelle
Hi,

 

It looks like there might be a bug with the AutoCompleteTextField component
or it might be a browser bug in IE8. I'm using the AutoCompleteTextField
with the constructor that takes just the id and I'm returning a list of
strings in the getChoices(String input) method. However when I start to type
a value the drop down list is rendered at the bottom of my screen as opposed
to right next to the TextField. There is also a javascript error on the
page. That says the following:

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Timestamp: Wed, 10 Mar 2010 22:16:45 UTC

 

 

Message: Invalid argument.

Line: 308

Char: 9

Code: 0

URI:
http://localhost:8080/risk/resources/org.apache.wicket.extensions.ajax.marku
p.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js

 

The component works fine in the Chrome browser. The behavior described above
was in IE8. I'm currently using wicket 1.3.6. 

 

Thanks,

 

Josh



RE: AutoCompleteTextField bug

2010-03-10 Thread Josh Chappelle
I apologize. It looks like this is fixed in 1.3.7.

Josh

-Original Message-
From: Josh Chappelle [mailto:jchappe...@4redi.com] 
Sent: Wednesday, March 10, 2010 4:17 PM
To: users@wicket.apache.org
Subject: AutoCompleteTextField bug

Hi,

 

It looks like there might be a bug with the AutoCompleteTextField component
or it might be a browser bug in IE8. I'm using the AutoCompleteTextField
with the constructor that takes just the id and I'm returning a list of
strings in the getChoices(String input) method. However when I start to type
a value the drop down list is rendered at the bottom of my screen as opposed
to right next to the TextField. There is also a javascript error on the
page. That says the following:

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Timestamp: Wed, 10 Mar 2010 22:16:45 UTC

 

 

Message: Invalid argument.

Line: 308

Char: 9

Code: 0

URI:
http://localhost:8080/risk/resources/org.apache.wicket.extensions.ajax.marku
p.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js

 

The component works fine in the Chrome browser. The behavior described above
was in IE8. I'm currently using wicket 1.3.6. 

 

Thanks,

 

Josh



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



Re: AutoCompleteTextField bug

2010-03-10 Thread Ilja Pavkovic
Hi,

 The component works fine in the Chrome browser. The behavior described
 above was in IE8. I'm currently using wicket 1.3.6.
You should upgrade to 1.4.7 and see if the problem still occurs.

Best Regards,
Ilja Pavkovic


-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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



Re: Configure wicketpagetest to multi eclipse project layout

2010-03-10 Thread Kent Tong

Hi Per,


Newgro wrote:
 
 I think this is because the web.xml file is located in the webapp project
 and the selenium default configuration points to src/main/webapp in the
 test project.
 

You can create a com.ttdev.wicketpagetest.Configuration to specify your
webapp root. For
an example of how to make it take effect, see the Overriding web.xml
example at 
http://wicketpagetest.sourceforge.net/examples.html.


-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/Configure-wicketpagetest-to-multi-eclipse-project-layout-tp27849140p27858206.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Spring @Autowire not working

2010-03-10 Thread Alec Swan
Hi Martin, thank you for sharing your setup. I will try it it out in
my application.

Igor, you are probably right and maybe this post doesn't belong on the
Wicket forum. The reason why I posted it is that @Autowired annotation
works when I call it from my tests, but doesn't work when I call it
from my Wicket pages. So, this is more of a configuration rather
than a bug question.  Keep up the good work!

Thanks.

On Wed, Mar 10, 2010 at 12:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 this is purely a spring question no? why dont you ask on their forums...

 -igor

 On Wed, Mar 10, 2010 at 11:38 AM, Alec Swan alecs...@gmail.com wrote:
 I use @SpringBean to wire service classes in my Wicket pages and it works 
 great.

 My service classes have dependencies on DAO classes. I am currently
 wiring DAO classes into service classes adding setters for them and
 adding them in the service classes and also specifying DAOs as
 property elements in the Spring application context XML. This
 approach works, but is verbose.

 I would like to just annotate the DAO dependency with @Autowired
 annotation in my service class and have it automatically injected by
 Spring. This doesn't work and the DAO is never injected.

 How can I fix this?

 Thanks.

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



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



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



Detecting end of request cycle

2010-03-10 Thread Apple Grew
Hi Wicket users,

I am using iBatis to handle my DB transactions. It recommends creating one
SqlSession object per http request, which can be reused multiple times for
that request. So I am exposing its reference from my custom RequestCycle,
where it is instantiated for the first time it is accessed.

But, this sql session needs to be closed at end of all the transactions. For
that I need a reliable method to detect the end of the request cycle to
close this sql session. Any suggestions?

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


Re: Detecting end of request cycle

2010-03-10 Thread Igor Vaynberg
requestcycle.onendrequest() or requestcycle.detach()

-igor

On Wed, Mar 10, 2010 at 6:54 PM, Apple Grew appleg...@gmail.com wrote:
 Hi Wicket users,

 I am using iBatis to handle my DB transactions. It recommends creating one
 SqlSession object per http request, which can be reused multiple times for
 that request. So I am exposing its reference from my custom RequestCycle,
 where it is instantiated for the first time it is accessed.

 But, this sql session needs to be closed at end of all the transactions. For
 that I need a reliable method to detect the end of the request cycle to
 close this sql session. Any suggestions?

 Regards,
 Apple Grew
 my blog @ http://blog.applegrew.com/


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



Re: Detecting end of request cycle

2010-03-10 Thread Apple Grew
Wow. Thanks. I looked up the hierarchy but somehow missed that.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Thu, Mar 11, 2010 at 8:35 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 requestcycle.onendrequest() or requestcycle.detach()

 -igor

 On Wed, Mar 10, 2010 at 6:54 PM, Apple Grew appleg...@gmail.com wrote:
  Hi Wicket users,
 
  I am using iBatis to handle my DB transactions. It recommends creating
 one
  SqlSession object per http request, which can be reused multiple times
 for
  that request. So I am exposing its reference from my custom RequestCycle,
  where it is instantiated for the first time it is accessed.
 
  But, this sql session needs to be closed at end of all the transactions.
 For
  that I need a reliable method to detect the end of the request cycle to
  close this sql session. Any suggestions?
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 

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




Re: Mootools Clashes With wicket-event.js

2010-03-10 Thread Ayodeji Aladejebi
Hi,
Although i have worked around the problem by switching to jQuery. I wanted
to do a simple accordion. so i switched to my old legacy mootools accordion
code.

i added *mootools-release-1.12.js* to the javascript link on my page

and later tried to execute moo tool accordion code:

window.addEvent('domready', function(){
var accordion = new Accordion('h3.toggle', 'div.toggle', {
opacity: false,
onActive: function(toggler, element){
toggler.setStyle('color', '#ff3300');
},
onBackground: function(toggler, element){
toggler.setStyle('color', '#33');
}
}, $('contentPanel'));
accordion.display(0);
});

I noticed that the accordion effect did not work, but each time i isolate
the markup, it worked fine. I know wicket adds some javascript to every page
header so i notice this particular line *wicket-event.js* was causing the
conflict.

I use *wicket 1.4.6*. I noticed the accordion code worked in older wicket
releases like wicket 1.2 because i noticed the *
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
* line was not being generated into the header for older wickets

so any way around?
thanks

On Wed, Mar 10, 2010 at 9:10 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 On Tue, Mar 9, 2010 at 2:14 AM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  My mootools.js scripts wont work because of
 
 resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
  What do i do

 Give more information on what doesn't work, why it doesn't work, which
 version of Wicket, which version of mootools, what you have tried,
 etc. Have you created a quickstart with just the mootools thing and
 wicket that exhibits this problem?

 Martijn

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




--


DropDownChoice + AjaxFallbackDefaultDataTable

2010-03-10 Thread Björn T .
Hi there,

I am completely new to Wicket and therefore I have a simple question. It would 
be nice if someone could point me in the right direction.

I have a form with a DropDownChoice and a AjaxFallbackDefaultDataTable on it. 
On first load all items on the table are displayed.

Changing the DropDownChoice means that only certain items are to be displayed, 
therefore I want to refresh/reload the rows/data in the 
AjaxFallbackDefaultDataTable.

How can I trigger the reload of the AjaxFallbackDefaultDataTable with the 
'onSelectionChanged' method of the dropdown ?

Thank you very much in advance.

Cheers Björn
___
WEB.DE DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://produkte.web.de/go/02/

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



Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-03-10 Thread danisevsky
ye, you are right.. sorry, I am stupid and forgot change the datasource
name. Thank you very much.

2010/3/10 Richard Nichols r...@richardnichols.net

 Can you post a code snippet?

 You have to give the datasources unique name properties, as the name
 is used in the client side javascript to link the component to the
 datasource.

 On 10 March 2010 01:52, danisevsky danisev...@gmail.com wrote:
  hello, I have another problem, with DropDown this time. If I have only
 one
  DropDown on my page, everything works great. But when I add another
 DropDown
  to the page, with diferent datasource, the first DropDown shows data from
  the second datasource. All DropDowns share the same datasource.
 



 --
 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




RE: modal window problem

2010-03-10 Thread Martin Asenov
Please, anyone give some support on this one?

Thank you,
Martin

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Monday, March 08, 2010 6:23 PM
To: users@wicket.apache.org
Subject: RE: modal window problem

Hi, Matthias! 

Well, I viewed the page source, and there is no text that says http://:/; . 
However, this happens only on two PCs from 10. Also, I typed on the one of the 
computers that have this error the above mentioned text in the browser and it 
led to the very same page with the very same parameters. Do you have any 
further ideas?

Thanks,
Martin

-Original Message-
From: Matthias Keller [mailto:matthias.kel...@ergon.ch] 
Sent: Monday, March 08, 2010 6:10 PM
To: users@wicket.apache.org
Subject: Re: modal window problem

On 2010-03-08 17:07, Martin Asenov wrote:
 It's me again. I just noticed some very strange error that I have no 
 explanation about. When I open a wicket modal window then it appears for a 
 while and closes and the entire page gets redirected to some browser related 
 pages, for instance ask.com, or some thing like this:

 http://www.mybrowserbar.com/cgi/errors.cgi?q=http%3A%2F%2F%3A%2Ftype=dnsISN=29A2367D3BED40D7A5BA3349E8CAA9FDccv=130cnid=374563cco=USct=12

 This is a modal window issue. Any help regarding the question will be highly 
 appreciated!

Hi

It appears that something on your page/modal window is referencing an 
URL http://:/; (or maybe just :/) so your browser bar takes over 
control since that host cannot be found. Maybe check the source of that 
page for such an URL...

Matt


-
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