Re: wicketstuff-minis status?

2009-11-18 Thread Martijn Dashorst
apparently we're looking in the wrong directory:
http://wicketstuff.org/maven/repository/org/wicketstuff/minis/1.4-SNAPSHOT/

Martijn

On Tue, Nov 17, 2009 at 8:35 PM, Doug Leeper douglee...@yahoo.com wrote:

 But wouldn't i see the timestamp change on the jars, etc change with each
 deployment?

 from
 http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/

   maven-metadata.xml   0.3 kb  Tue, 28 Oct 2008 23:16:32 GMT
   maven-metadata.xml.md5       0.1 kb  Tue, 28 Oct 2008 23:16:32 GMT
   maven-metadata.xml.sha1      0.1 kb  Tue, 28 Oct 2008 23:16:32 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.jar         116.9 kb        Tue, 28 Oct 
 2008 23:16:32
 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.jar.md5     0.1 kb  Tue, 28 Oct 2008
 23:16:32 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.jar.sha1    0.1 kb  Tue, 28 Oct 2008
 23:16:32 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.pom         3.0 kb  Tue, 28 Oct 2008 
 23:16:32
 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.pom.md5     0.1 kb  Tue, 28 Oct 2008
 23:16:32 GMT
   wicketstuff-minis-1.4.0-SNAPSHOT.pom.sha1    0.1 kb  Tue, 28 Oct 2008
 23:16:32 GMT

 Also, how often do snapshots get built and distributed to the maven
 repositories?

 Thanks
 - Doug
 --
 View this message in context: 
 http://old.nabble.com/wicketstuff-minis-status--tp26394666p26396127.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





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

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



Can i convince WicketTester to click a label?

2009-11-18 Thread Per Newgro
Hi,

i've added the html tag label and it's attribute for to provide selection 
change of my checkbox.

form wicket:id=selected
  input type=checkbox wicket:id=check /
  label wicket:id=text/label
/form

final CheckBox checkbox = checkbox();
_item.add(checkbox);
_item.add(new Label(text, text()).add(labelfor(checkbox)));
}

private CheckBox checkbox() {
  final CheckBox checkbox = new CheckBox(check, choosen());
  checkbox.add(new NoopAjaxFormComponentUpdatingBehavior());
  return checkbox;
}

private LabelForTagModifierString labelfor(final CheckBox checkbox) {
  return new LabelForTagModifierString(new 
   AbstractReadOnlyModelString() {
 @Override
 public String getObject() {
   return checkbox.getMarkupId();
 }
   });
}

All works well. Now i would like to test the behavior. But if i execute the 
ajax event onclick on the component path i get:
org.apache.wicket.WicketRuntimeException: No AjaxEventBehavior found on 
component: text which matches the event: onclick
at 
org.apache.wicket.util.tester.BaseWicketTester.fail(BaseWicketTester.java:1449)
at 
org.apache.wicket.util.tester.BaseWicketTester.notNull(BaseWicketTester.java:1434)
at 
org.apache.wicket.util.tester.BaseWicketTester.executeAjaxEvent(BaseWicketTester.java:1217)
at 
org.apache.wicket.util.tester.BaseWicketTester.executeAjaxEvent(BaseWicketTester.java:1109)
...

It's clear to me that there is no ajax event behavior added to the label. But 
can i test the html event? I would like to get this by WicketTester and not 
by external Tester (Fitnesse, Selenium etc.).

But maybe it's impossible?

Thanks
Per
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

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



Re: Can i convince WicketTester to click a label?

2009-11-18 Thread Kent Tong


Newgro wrote:
 
 It's clear to me that there is no ajax event behavior added to the label.
 But can i test the html event? I would like to get this by WicketTester
 and not by external Tester (Fitnesse, Selenium etc.).
 

Would running Selenium internally work? If so, please see
http://wicketpagetest.sourceforge.net for more info.


-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: 
http://old.nabble.com/Can-i-convince-WicketTester-to-click-a-label--tp26405924p26406051.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: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the
project I was working on, but you probably don't need it.

JDBC connection settings are best done through a DataSource and
specified at the container level instead of programmatically.

Martijn

On Mon, Nov 16, 2009 at 6:38 PM, Jeffrey Schneller
jeffrey.schnel...@envisa.com wrote:
 At the link[1] it describes how to configure wicket to use Spring and
 Hibernate.  In the applicationContext.xml file there is reference to a n
 interceptor bean.  What is this interceptor bean?  What is the
 definition of this bean?  Everything else seems to make sense.



 Also how would one move the configuration of the jdbc connection to
 code?  It is desirable to db connection information reside at the server
 level so when deploying code from dev to stage to production, you do not
 need change or replace a file.  The configuration is at the server level
 [in the server context] and it is pulled from there.



 Thanks.







 [1]
 http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/







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

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



Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the
project I was working on, but you probably don't need it.

JDBC connection settings are best done through a DataSource and
specified at the container level instead of programmatically.

Martijn

On Mon, Nov 16, 2009 at 6:38 PM, Jeffrey Schneller
jeffrey.schnel...@envisa.com wrote:
 At the link[1] it describes how to configure wicket to use Spring and
 Hibernate.  In the applicationContext.xml file there is reference to a n
 interceptor bean.  What is this interceptor bean?  What is the
 definition of this bean?  Everything else seems to make sense.



 Also how would one move the configuration of the jdbc connection to
 code?  It is desirable to db connection information reside at the server
 level so when deploying code from dev to stage to production, you do not
 need change or replace a file.  The configuration is at the server level
 [in the server context] and it is pulled from there.



 Thanks.







 [1]
 http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/







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

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



Re: wicketstuff-minis status?

2009-11-18 Thread richardwilko

Hi Doug,

I originally wrote the prototip component, and the main reason why I never
upgraded the prototip js version is because the library changed to having a
commercial licence and I don't know exactly what the rules are about
including commercial code into wicket-stuff.

While I have no problem with you updating the code, I think that we should
be clear on the rules before including the updated javascript files, if that
is your intention.  Maybe one solution is to not bundle the javascript
files, so it is clear to the user that they are commercial files?

Thanks,

Richard



Doug Leeper wrote:
 
 We are about to integrate wicketstuff-minis in our project.  However, we
 noticed on Nabble that prototip is out of date based on some comments by
 the community.  I have wicketstuff commit rights and more than willing to
 update to the latest.  However, when I looked at the MVN repository for
 wicketstuff-minis
 (http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/),
 the timestamps are all in 2008.  If I change/commit the necessary code,
 will the MVN repository be updated with the new version on the next build?
 or do I need to request a build to be placed out there?
 
 Or are there other options?
 
 Thanks
 - Doug
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 


-
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: 
http://old.nabble.com/wicketstuff-minis-status--tp26394666p26406129.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



javascript slider implementation

2009-11-18 Thread pieter claassen
I would like to implement a slider to set the width of a component.

I could not get the Dojo Slider implementation working with wicket 1.4.1 (I
could not get the code in with maven even though the Dojo project built from
SVN, it just doesn't seem to contain the Slider class anymore).

My thinking is to build a very simple slider component that updates a
variable and on mouse-up returns this data to the server.

My approach so far is:
1. Implement my own SliderAbstractAjaxBehavior that in onRequest will accept
the current position of the slider.
2. I will then update the width of my component and mark it for repainting.
3. I will have to develop the javascript to read the slider values and react
to the mouseup event. Where can I look for more information on how to post
data back to onRequest from Javascript? I assume there is a function already
availble in the standard wicket JS implementation?

Any tips appreciated.

Rgds,
Pieter


RE: javascript slider implementation

2009-11-18 Thread Stefan Lindner
// Put Javascript into body after compoonent
@Override
protected void onComponentRendered() {
super.onComponentRendered();

JavascriptUtils.writeJavascript(response, our javascript);
}

or

// put Javascript into head
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);

response.renderJavascript(builder.toScriptTag(), null);
}

Your javascript should look like

this.getCallbackUrl() + myParam=' + myValue + ';


@Override
protected void respond(final AjaxRequestTarget target) {
Component component = getComponent();
Request request;
if (component != null  (request = component.getRequest()) != 
null) {
String myPAram = request.getParameter(myParam);
// do some processing on component
}

Stefan


-Ursprüngliche Nachricht-
Von: pieter.claas...@gmail.com [mailto:pieter.claas...@gmail.com] Im Auftrag 
von pieter claassen
Gesendet: Mittwoch, 18. November 2009 13:04
An: users@wicket.apache.org
Betreff: javascript slider implementation

I would like to implement a slider to set the width of a component.

I could not get the Dojo Slider implementation working with wicket 1.4.1 (I
could not get the code in with maven even though the Dojo project built from
SVN, it just doesn't seem to contain the Slider class anymore).

My thinking is to build a very simple slider component that updates a
variable and on mouse-up returns this data to the server.

My approach so far is:
1. Implement my own SliderAbstractAjaxBehavior that in onRequest will accept
the current position of the slider.
2. I will then update the width of my component and mark it for repainting.
3. I will have to develop the javascript to read the slider values and react
to the mouseup event. Where can I look for more information on how to post
data back to onRequest from Javascript? I assume there is a function already
availble in the standard wicket JS implementation?

Any tips appreciated.

Rgds,
Pieter

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



Re: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
IF upgrading, it should be moved out of minies, so IT's really really clear.
Otherwise people will get disappointed.

2009/11/18 richardwilko richardjohnwilkin...@gmail.com


 Hi Doug,

 I originally wrote the prototip component, and the main reason why I never
 upgraded the prototip js version is because the library changed to having a
 commercial licence and I don't know exactly what the rules are about
 including commercial code into wicket-stuff.

 While I have no problem with you updating the code, I think that we should
 be clear on the rules before including the updated javascript files, if
 that
 is your intention.  Maybe one solution is to not bundle the javascript
 files, so it is clear to the user that they are commercial files?

 Thanks,

 Richard



 Doug Leeper wrote:
 
  We are about to integrate wicketstuff-minis in our project.  However, we
  noticed on Nabble that prototip is out of date based on some comments by
  the community.  I have wicketstuff commit rights and more than willing to
  update to the latest.  However, when I looked at the MVN repository for
  wicketstuff-minis
  (
 http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/
 ),
  the timestamps are all in 2008.  If I change/commit the necessary code,
  will the MVN repository be updated with the new version on the next
 build?
  or do I need to request a build to be placed out there?
 
  Or are there other options?
 
  Thanks
  - Doug
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 


 -
 http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk
 --
 View this message in context:
 http://old.nabble.com/wicketstuff-minis-status--tp26394666p26406129.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: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
Why do you want to upgrade? I created the mootip integration, because I
needed the ajax integration.

2009/11/17 Doug Leeper douglee...@yahoo.com

 We are about to integrate wicketstuff-minis in our project.  However, we
 noticed on Nabble that prototip is out of date based on some comments by the
 community.  I have wicketstuff commit rights and more than willing to update
 to the latest.  However, when I looked at the MVN repository for
 wicketstuff-minis (
 http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/),
 the timestamps are all in 2008.  If I change/commit the necessary code, will
 the MVN repository be updated with the new version on the next build? or do
 I need to request a build to be placed out there?

 Or are there other options?

 Thanks
 - Doug


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




Re: javascript slider implementation

2009-11-18 Thread Martin Grigorov
check wicketstuff-jquery
there is a slider behavior + demo

On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote:
 I would like to implement a slider to set the width of a component.
 
 I could not get the Dojo Slider implementation working with wicket 1.4.1 (I
 could not get the code in with maven even though the Dojo project built from
 SVN, it just doesn't seem to contain the Slider class anymore).
 
 My thinking is to build a very simple slider component that updates a
 variable and on mouse-up returns this data to the server.
 
 My approach so far is:
 1. Implement my own SliderAbstractAjaxBehavior that in onRequest will accept
 the current position of the slider.
 2. I will then update the width of my component and mark it for repainting.
 3. I will have to develop the javascript to read the slider values and react
 to the mouseup event. Where can I look for more information on how to post
 data back to onRequest from Javascript? I assume there is a function already
 availble in the standard wicket JS implementation?
 
 Any tips appreciated.
 
 Rgds,
 Pieter



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



the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
I create a class Loginpage which extends WebPage,how the IDE show me many
errors when I use wicket 1.4 :

public LoginPage() {
User user = new User();
Form logForm = new Form(form, new CompoundPropertyModel(user)) {

protected void onSubmit() {

}

};
logForm.setMultiPart(true);
logForm.setMaxSize(Bytes.kilobytes(1000));

add(logForm);   Here it says :The method add(Component[]) in
the type MarkupContainer is not applicable for the arguments (Form)

TextField accountTextfield = new TextField(account);

logForm.add(accountTextfield); / here It says:The method
add(IFormValidator) in the type Form is not applicable for the arguments
(TextField)
}

Why?

Since I did not got the errors when I use wicket-1.3.

BTW, is the class DatePicker deprecated?


Re: multi file upload question

2009-11-18 Thread Marcelo Fukushima
couldnt it be done with some clever javascript? creating a new input
type=file each time one is selected?

On Mon, Nov 16, 2009 at 3:51 PM, Pieter Degraeuwe
pieter.degrae...@systemworks.be wrote:
 The multiple files upload is achieved by a flash object. It works both in
 firefox as chrome (but, indeed, sometimes it is in gmail not available).
 I didn't need such a feature yet, however I was curious how they (google)
 did it :-)

 To prove it is flash, just right click on the 'Attach a file', and you get
 the Flash context menu :-)

 Pieter

 On Mon, Nov 16, 2009 at 6:05 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 hrm, i know chrome supports it, but not firefox in gmail. you will
 have to look at how chrome does it, im sure building support for that
 should be pretty easy.

 -igor

 On Mon, Nov 16, 2009 at 8:51 AM, Troy Cauble troycau...@gmail.com wrote:
  I'm familiar with this multi file upload example:
  http://www.wicket-library.com/wicket-examples/upload/multi
  where a system file chooser is used multiple times to
  select single files to build the upload list.
 
  I see other web apps (gmail for example) where the user
  can select multiple files with one system chooser dialog.
  Is there a way to do this with Wicket?
 
  Thanks,
  troy
 
  -
  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




 --
 Pieter Degraeuwe
 Systemworks bvba
 Belgiëlaan 61
 9070 Destelbergen
 GSM: +32 (0)485/68.60.85
 Email: pieter.degrae...@systemworks.be
 visit us at http://www.systemworks.be




-- 
http://mapsdev.blogspot.com/
Marcelo Takeshi Fukushima

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



Re: multi file upload question

2009-11-18 Thread Marcelo Fukushima
nevermind me... should have seen the example before posting... ill
shut up now...

On Wed, Nov 18, 2009 at 11:33 AM, Marcelo Fukushima takesh...@gmail.com wrote:
 couldnt it be done with some clever javascript? creating a new input
 type=file each time one is selected?

 On Mon, Nov 16, 2009 at 3:51 PM, Pieter Degraeuwe
 pieter.degrae...@systemworks.be wrote:
 The multiple files upload is achieved by a flash object. It works both in
 firefox as chrome (but, indeed, sometimes it is in gmail not available).
 I didn't need such a feature yet, however I was curious how they (google)
 did it :-)

 To prove it is flash, just right click on the 'Attach a file', and you get
 the Flash context menu :-)

 Pieter

 On Mon, Nov 16, 2009 at 6:05 PM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:

 hrm, i know chrome supports it, but not firefox in gmail. you will
 have to look at how chrome does it, im sure building support for that
 should be pretty easy.

 -igor

 On Mon, Nov 16, 2009 at 8:51 AM, Troy Cauble troycau...@gmail.com wrote:
  I'm familiar with this multi file upload example:
  http://www.wicket-library.com/wicket-examples/upload/multi
  where a system file chooser is used multiple times to
  select single files to build the upload list.
 
  I see other web apps (gmail for example) where the user
  can select multiple files with one system chooser dialog.
  Is there a way to do this with Wicket?
 
  Thanks,
  troy
 
  -
  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




 --
 Pieter Degraeuwe
 Systemworks bvba
 Belgiëlaan 61
 9070 Destelbergen
 GSM: +32 (0)485/68.60.85
 Email: pieter.degrae...@systemworks.be
 visit us at http://www.systemworks.be




 --
 http://mapsdev.blogspot.com/
 Marcelo Takeshi Fukushima




-- 
http://mapsdev.blogspot.com/
Marcelo Takeshi Fukushima

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



Re: multi file upload question

2009-11-18 Thread Ilja Pavkovic
Hi,

 couldnt it be done with some clever javascript? creating a new input
 type=file each time one is selected?
well, there is a reason why google did NOT use javascript to implement it. In 
fact, the upload browser widget does not support multi file selection. Some 
http extensions exist but they are not unified nor available for all browsers.

Best Regards,
Ilja Pavkovic

 
 On Mon, Nov 16, 2009 at 3:51 PM, Pieter Degraeuwe
 
 pieter.degrae...@systemworks.be wrote:
  The multiple files upload is achieved by a flash object. It works both in
  firefox as chrome (but, indeed, sometimes it is in gmail not available).
  I didn't need such a feature yet, however I was curious how they (google)
  did it :-)
 
  To prove it is flash, just right click on the 'Attach a file', and you
  get the Flash context menu :-)
 
  Pieter
 
  On Mon, Nov 16, 2009 at 6:05 PM, Igor Vaynberg 
igor.vaynb...@gmail.comwrote:
  hrm, i know chrome supports it, but not firefox in gmail. you will
  have to look at how chrome does it, im sure building support for that
  should be pretty easy.
 
  -igor
 
  On Mon, Nov 16, 2009 at 8:51 AM, Troy Cauble troycau...@gmail.com 
wrote:
   I'm familiar with this multi file upload example:
   http://www.wicket-library.com/wicket-examples/upload/multi
   where a system file chooser is used multiple times to
   select single files to build the upload list.
  
   I see other web apps (gmail for example) where the user
   can select multiple files with one system chooser dialog.
   Is there a way to do this with Wicket?
  
   Thanks,
   troy
  
   -
   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
 
  --
  Pieter Degraeuwe
  Systemworks bvba
  Belgiëlaan 61
  9070 Destelbergen
  GSM: +32 (0)485/68.60.85
  Email: pieter.degrae...@systemworks.be
  visit us at http://www.systemworks.be
 

-- 
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: javascript slider implementation

2009-11-18 Thread pieter claassen
Thanks, this helped a lot.

My component that I want to resize is a WebMarkupContainer and I add my
Slider to it. However, I don't see any output from my onChange method.

here is the java and html. I am not sure what role SliderOptions and
SliderHandleOptions play? Where can I see some example implementations?

Slider slider=new Slider(slider, new
SliderOptions().setMax(100).setMin(0),new SliderHandleOptions(1, 50)) {

@Override
public void onChange(AjaxRequestTarget arg0, String handleid,
int val) {
System.out.println(SLIDER STUFF : +handleid+val);
}
};
add(holder);
holder.add(slider);

html
span class=questionholder wicket:id=holder
a href=# wicket:id=editor(edit)/a
span id=value wicket:id=statement.value/
span wicket:id=navpanel /
span wicket:id=slider/
/span


On Wed, Nov 18, 2009 at 1:51 PM, Martin Grigorov mcgreg...@e-card.bgwrote:

 check wicketstuff-jquery
 there is a slider behavior + demo

 On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote:
  I would like to implement a slider to set the width of a component.
 
  I could not get the Dojo Slider implementation working with wicket 1.4.1
 (I
  could not get the code in with maven even though the Dojo project built
 from
  SVN, it just doesn't seem to contain the Slider class anymore).
 
  My thinking is to build a very simple slider component that updates a
  variable and on mouse-up returns this data to the server.
 
  My approach so far is:
  1. Implement my own SliderAbstractAjaxBehavior that in onRequest will
 accept
  the current position of the slider.
  2. I will then update the width of my component and mark it for
 repainting.
  3. I will have to develop the javascript to read the slider values and
 react
  to the mouseup event. Where can I look for more information on how to
 post
  data back to onRequest from Javascript? I assume there is a function
 already
  availble in the standard wicket JS implementation?
 
  Any tips appreciated.
 
  Rgds,
  Pieter



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




-- 
Pieter Claassen
musmato.com


Re: wicketstuff-minis status?

2009-11-18 Thread Doug Leeper

Richard,

Thanks for the update.  This was one of the items to be looked at.  But
since prototip has moved to commercial, then I won't update the JS.

- Doug
-- 
View this message in context: 
http://old.nabble.com/wicketstuff-minis-status--tp26394666p26408385.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: wicketstuff-minis status?

2009-11-18 Thread Doug Leeper

I was going to see about upgrading Prototip but the current version has moved
to commercial license.  Since that is the case, I won't be updating
wicket-minis and will be looking at mootip.

Thanks
- Doug
-- 
View this message in context: 
http://old.nabble.com/wicketstuff-minis-status--tp26394666p26408386.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: the version of wicket1.4 and 1.3

2009-11-18 Thread Igor Vaynberg
you need to tweak your ide to enable java5 functionality i think.

-igor


On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com wrote:
 I create a class Loginpage which extends WebPage,how the IDE show me many
 errors when I use wicket 1.4 :

 public LoginPage() {
 User user = new User();
 Form logForm = new Form(form, new CompoundPropertyModel(user)) {

 protected void onSubmit() {

 }

 };
 logForm.setMultiPart(true);
 logForm.setMaxSize(Bytes.kilobytes(1000));

 add(logForm);   Here it says :The method add(Component[]) in
 the type MarkupContainer is not applicable for the arguments (Form)

 TextField accountTextfield = new TextField(account);

 logForm.add(accountTextfield); / here It says:The method
 add(IFormValidator) in the type Form is not applicable for the arguments
 (TextField)
 }

 Why?

 Since I did not got the errors when I use wicket-1.3.

 BTW, is the class DatePicker deprecated?


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



Open new window through a form

2009-11-18 Thread Zak Johnson
All -
 I am trying to find a way to open a new window after submitting a form.
I've seen the threads about using a Link with PopupSettings, but I can't use
a link in this case, I need this popup to happen within the onSubmit method.
I also can't use ModalWindow because I need the ability to keep the new
window open and still allow me to go back to the main window to submit
another form, spawning the creation of another new window, etc.

Basically, the app is executing queries (via a form, for variable input) and
I am trying to display the results in the new window. I Frequently need to
see the results of several queries, which is why I need the functionality to
go back to the main page and submit another form, opening an additional
window. I could use the Link with PopupSettings method to open the form in a
new window, but i'd prefer to avoid that option if possible.

I've been banging my head against a wall for days now. Does anyone have any
ideas?

Thanks,

Zak


Re: Open new window through a form

2009-11-18 Thread Martin Makundi
I have a somewhat similar need, I need to display the feedback panel
before opening popup.

In my undesranding you could do some kind of ajax deocrator that will
open the opup after successful form submit.

HEre is some discussion:
http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00472.html

**
Martin

2009/11/18 Zak Johnson zakinte...@gmail.com:
 All -
     I am trying to find a way to open a new window after submitting a form.
 I've seen the threads about using a Link with PopupSettings, but I can't use
 a link in this case, I need this popup to happen within the onSubmit method.
 I also can't use ModalWindow because I need the ability to keep the new
 window open and still allow me to go back to the main window to submit
 another form, spawning the creation of another new window, etc.

 Basically, the app is executing queries (via a form, for variable input) and
 I am trying to display the results in the new window. I Frequently need to
 see the results of several queries, which is why I need the functionality to
 go back to the main page and submit another form, opening an additional
 window. I could use the Link with PopupSettings method to open the form in a
 new window, but i'd prefer to avoid that option if possible.

 I've been banging my head against a wall for days now. Does anyone have any
 ideas?

 Thanks,

 Zak


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



RE: Spring/Wicket/Hibernate testing driving me banana nuts

2009-11-18 Thread Loritsch, Berin C.
OK.  I've got it working again.  The HibernateSession was set up in a hibernate 
Servlet filter.  I found the minimum necessary lines to get the system working 
using my session factory configured in Spring.  For the interested parties, 
here they are:



SessionFactory factory = (SessionFactory) 
getSpringContext().getBean(sessionFactory);
Session session = SessionFactoryUtils.getSession(factory, true);
session.setFlushMode(FlushMode.AUTO);
TransactionSynchronizationManager.bindResource(factory, new 
SessionHolder(session));


I have them set up just after I configured the Spring container.

Thank you for pointing me in the right direction.


-Original Message-
From: Eelco Hillenius [mailto:eelco.hillen...@gmail.com] 
Sent: Tuesday, November 17, 2009 7:06 PM
To: users@wicket.apache.org
Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts

So in typical web applications, people would install a session filter
(like https://www.hibernate.org/43.html), which would open a session
at the start of a request, and close it afterwards. You probably need
to find an alternative for that filter in your test code.

Eelco

On Tue, Nov 17, 2009 at 4:26 PM, Loritsch, Berin C.
berin.lorit...@gd-ais.com wrote:
 Hmm, OK attachments are stripped here.  Having gone back up through the stack 
 trace, WicketTester extends BaseWicketTester which then extends 
 MockWebApplication.  Essentially MockWebApplication has the base 
 implementations for setting up the WebRequestCycle.

 The @SpringBean is having an effect, because my exception is a 
 HibernateException and not a NullPointerException.  I think it has something 
 to do with how the     tx:annotation-driven transaction-manager=txManager 
 / interacts with the WicketTester that is unclear to me.  The thing that has 
 changed is that while I had that declaration, I introduced using the 
 @Transactional attributes on some of my Hibernate objects.  Spring is giving 
 me a proxied class that is supposed to take care of the hibernate sessions 
 and transactions for me.  It's having a hard time in the JUnit environment.  
 I'm using the following TransactionManager:

    bean id=txManager
        class=org.springframework.orm.hibernate3.HibernateTransactionManager
        property name=sessionFactory ref=sessionFactory /
    /bean


 -Original Message-
 From: Loritsch, Berin C. [mailto:berin.lorit...@gd-ais.com]
 Sent: Tuesday, November 17, 2009 4:15 PM
 To: users@wicket.apache.org
 Subject: RE: Spring/Wicket/Hibernate testing driving me banana nuts

 I've got the part that injects a Spring WebApplicationContext into the 
 WicketTester already (Source attached).  I should be using the application 
 class, if I'm not then something has changed unbeknownst to me.  Is there any 
 place it would swap out what I told it to use for what it decided on its own 
 to use?

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Tuesday, November 17, 2009 4:05 PM
 To: users@wicket.apache.org
 Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts

 i see you are using MockWebApplication in your tests. this application does 
 not install the SpringComponentInjector and so @SpringBean has no effect.

 you should either give wickettester an instance of your actual application 
 class, or create a mock one that installs springcomponentinjector.

 -igor

 On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C.
 berin.lorit...@gd-ais.com wrote:
  application.xml I initially had a setup that worked with both a
 Web context and a JUnit context.  The problem was the amount of hand
 coding and adjusting of the Spring context the approach needed.  I
 finally got the Spring's transaction interceptor working with the
 auto-wiring (the key is using an interface).  So now my problem is
 that while I've saved myself the headache of making changes to a bunch
 of files every time I add a new service, my unit tests are now failing.

 I've traced the failure to a specific class that is decorated with the
 InjectorHolder--although I believe that is merely because it is the
 first component that does any Hibernate requests.  I'll include the
 stacktrace at the bottom of the message.

 I had to remove the line that specified that sessions would be thread
 bound in Hibernate to take advantage of the Spring managed
 transactions, and adding that configuration item back in makes no
 difference for the tests.  I'm hoping I'm just missing something
 simple, but all my Googling is turning up dead ends.  Any help out there?








 org.apache.wicket.WicketRuntimeException: Error attaching this
 container for rendering: [MarkupContainer [Component id = content]]
        at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContain
 er
 .java:1739)
        at
 org.apache.wicket.Component.onBeforeRender(Component.java:3854)
        at
 

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread Pieter Degraeuwe
Don't want to be rude; did you import the correct types (Component / Form)
?... some IDE's have the 'exclude import' funtionallity, which is great
(don't want to mention its name, but it starts wich Intelli, and ends with J
:-) -- I'm loving it :-)

Pieter

On Wed, Nov 18, 2009 at 4:07 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 you need to tweak your ide to enable java5 functionality i think.

 -igor


 On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com
 wrote:
  I create a class Loginpage which extends WebPage,how the IDE show me many
  errors when I use wicket 1.4 :
 
  public LoginPage() {
  User user = new User();
  Form logForm = new Form(form, new CompoundPropertyModel(user)) {
 
  protected void onSubmit() {
 
  }
 
  };
  logForm.setMultiPart(true);
  logForm.setMaxSize(Bytes.kilobytes(1000));
 
  add(logForm);   Here it says :The method add(Component[]) in
  the type MarkupContainer is not applicable for the arguments (Form)
 
  TextField accountTextfield = new TextField(account);
 
  logForm.add(accountTextfield); / here It says:The method
  add(IFormValidator) in the type Form is not applicable for the arguments
  (TextField)
  }
 
  Why?
 
  Since I did not got the errors when I use wicket-1.3.
 
  BTW, is the class DatePicker deprecated?
 

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




-- 
Pieter Degraeuwe
Systemworks bvba
Belgiëlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degrae...@systemworks.be
visit us at http://www.systemworks.be


Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/18 Jeremy Thomerson jer...@wickettraining.com

 Well, you can't make a subclass a different parameterized type than it's
 parent.  It won't work.

 You should be using an Integer model for this and using a converter rather
 than a nested model to make it a string.  That's what converters are for.


Hi ,

Do you mean AbstractConverter ?

Is there any code snippet that demonstrates how to implement a Converter and
hook it into a page ?

Thanks a lot.


Re: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
Great, so you are aware that theres a mootip in minis aswell.. If you have
questions just ask

-Nino(author of mootip integration)

2009/11/18 Doug Leeper douglee...@yahoo.com


 I was going to see about upgrading Prototip but the current version has
 moved
 to commercial license.  Since that is the case, I won't be updating
 wicket-minis and will be looking at mootip.

 Thanks
 - Doug
 --
 View this message in context:
 http://old.nabble.com/wicketstuff-minis-status--tp26394666p26408386.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: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread Jeremy Thomerson
http://cwiki.apache.org/WICKET/using-custom-converters.html

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



On Wed, Nov 18, 2009 at 10:09 AM, smallufo small...@gmail.com wrote:

 2009/11/18 Jeremy Thomerson jer...@wickettraining.com

  Well, you can't make a subclass a different parameterized type than it's
  parent.  It won't work.
 
  You should be using an Integer model for this and using a converter
 rather
  than a nested model to make it a string.  That's what converters are for.
 
 
 Hi ,

 Do you mean AbstractConverter ?

 Is there any code snippet that demonstrates how to implement a Converter
 and
 hook it into a page ?

 Thanks a lot.



RE: best approach for a criteria and result page

2009-11-18 Thread Bernard LUPIN
Thank you very much Igor for your answer. 
You're right, this is working even without any code in the onSubmit() method 
(in fact I just added one line to manage the visibility of my result 
WebMarkupContainer).
Bernard

-Message d'origine-
De : Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Envoyé : lundi 9 novembre 2009 17:27
À : users@wicket.apache.org
Objet : Re: best approach for a criteria and result page

On Mon, Nov 9, 2009 at 6:21 AM,  bernard.lu...@orange-ftgroup.com wrote:
 Hi all,

 I browsed a lot of wicket example and searched through many articles, 
 but never found this classical web application example : I would have 
 on the same page a form with some criteria, a search button and a 
 result list : I enter some data, hit search and get the results under 
 my criteria, just like google does.

 No problem for me to define all these parts using wicket components, 
 but I don't know how to manage the workflow, and  especially what code 
 should I put in my form's onSubmit method.

you dont need to put any code in your onsubmit...

class mysearchpage extends webpage {
  private searchcriteria criteria=new searchcriteria();

  public mysearchpage() {
     add(new searchcriteriaform(form, new propertymodel(this, 
searchcriteria)));
     ^ form object connected to the criteria field of this page via a property 
model

     add(new listview(results, new propertymodel(this,
searchresults)) {...});
     ^ listview that will display results retrieved from the
getSearchresults() method on this page
   }

   public list getSearchresults() {
       // get whatever results based on the criteria field
   }
}

so in short, form pushes your criteria into the criteria field, listview uses 
the criteria field to build the resultset. yes, its that simple :)

-igor






 Here is a sample code :

 public class TestPage extends WebPage {
        public TestPage() {
                super();
                createComponents();
        }

       �...@suppresswarnings(serial)
        protected void createComponents() {
                final WebMarkupContainer datacontainer = new 
 WebMarkupContainer(data);

                FormSearchParameterBean searchForm = new 
 FormSearchParameterBean(searchForm,
                                new
 CompoundPropertyModelSearchParameterBean(new SearchParameterBean())) 
 {
                       �...@override
                        protected void onSubmit() {
                                SearchParameterBean searchParam =
 (SearchParameterBean) getModelObject();
                                // get contract list in a 
 LoadableDetachableModel, but can't give it to ListView
                                IModelListResultParameter 
 contractListModel = new 
 LoadableDetachableModelListResultParameter()
 {
                                       �...@override
                                        protected ListResultParameter
 load() {
                                                ListResultParameter 
 contractList = manageContract.getContracts();
                                                return contractList;
                                        }
                                };
                                // This is working, but I must have an 
 inner class and final WebMarkupContainer datacontainer
                                // What to do if I want to create a 
 class ConsultForm extends FormSearchParameterBean
                                datacontainer.setVisible(true);

                        }
                };
                searchForm.add(new TextFieldString(Id));
                add(searchForm);

                datacontainer.setVersioned(false);
                datacontainer.setVisible(false);
                add(datacontainer);

                // here I do not have access to my contractListModel
                PageableListViewResultParameter listView = new 
 PageableListViewResultParameter(contracts, contractListModel, 10){
                       �...@override
                        public void
 populateItem(ListItemResultParameter listItem) {
                                ResultParameter contract = 
 listItem.getModelObject();
                                Label name = new Label(Name, 
 contract.getName());
                                listItem.add(name);
                        }
                };
                datacontainer.add(listView);
        }


 The questions I have are :
 - How to pass model between the onSubmit() message which defines it, 
 and the FormView which shows itin the page ?
 - Do I have to define a setResponsePage() in my onSubmit() ? If I do 
 so, I must go to another page, and then I lost the user's choosen 
 criteria
 - What is the best practice to build such an application ?
 - Is there somewhere an example with criteria and results on the same 
 page ?

 Thank you very much,
 Bernard






-
To unsubscribe, e-mail: 

method assertWarningMessages

2009-11-18 Thread Bernard LUPIN
Hi all,
Components have 3 methods to put information in a feedback panel : info(), 
warn() and error().

But in the WicketTester class, there are only 2 asserts available : 
assertInfoMessages() and assertErrorMessages().

How can I verify my warning messages ? I can't find an assertWarnMessages. Even 
googling 'wicket +assertWarnMessages' returns nothing.

Am I missing something ?

Many thanks,
Bernard





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



Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/19 Jeremy Thomerson jer...@wickettraining.com

 http://cwiki.apache.org/WICKET/using-custom-converters.html


Thanks a lot , this solves my problem...
But , there is a more complicated situation :

Old code : (works in 1.3)

ListView poem = new ListView(poem , new PropertyModel(model , poem)
{
  @Override
  public Object getObject()
  {
ListString result = new ArrayListString();
String poemString = (String) super.getObject();
StringTokenizer st = new StringTokenizer(poemString);
while(st.hasMoreTokens())
  result.add(st.nextToken());
return result;
  }
})
{
  @Override
  protected void populateItem(ListItem listItem)
  {
listItem.add(new Label(poemLine ,
listItem.getDefaultModelObjectAsString()));
  }
};
add(poem);

In the above code , it get poem  ( a String ) from a PropertyModel , and
convert it to ListString ,
and then render each String in the populateItem() method.

I look into IConverter and AbstractConverter , both need to convert Object
to String , not what I need ( ListString )
How should I solve this problem ?


Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread Jeremy Thomerson
ListView needs a model that has ListV, so do this:

ListViewString poems = new ListViewString(poems, new
AbstractReadOnlyModelListString() {

  public ListString getObject() {
// here you put the code that takes the string and tokenizes it
  }
}) {

  @Override
  protected void populateItem(ListItemString listItem) {
// here - don't use the model object - use the model (best practice):
listItem.add(new Label(poemLine, listItem.getModel());
  }
};

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



On Wed, Nov 18, 2009 at 11:24 AM, smallufo small...@gmail.com wrote:

 2009/11/19 Jeremy Thomerson jer...@wickettraining.com

  http://cwiki.apache.org/WICKET/using-custom-converters.html
 
 
 Thanks a lot , this solves my problem...
 But , there is a more complicated situation :

 Old code : (works in 1.3)

ListView poem = new ListView(poem , new PropertyModel(model , poem)
{
  @Override
  public Object getObject()
  {
ListString result = new ArrayListString();
String poemString = (String) super.getObject();
StringTokenizer st = new StringTokenizer(poemString);
while(st.hasMoreTokens())
  result.add(st.nextToken());
return result;
  }
})
{
  @Override
  protected void populateItem(ListItem listItem)
  {
listItem.add(new Label(poemLine ,
 listItem.getDefaultModelObjectAsString()));
  }
};
add(poem);

 In the above code , it get poem  ( a String ) from a PropertyModel , and
 convert it to ListString ,
 and then render each String in the populateItem() method.

 I look into IConverter and AbstractConverter , both need to convert Object
 to String , not what I need ( ListString )
 How should I solve this problem ?



redirect parameter encoding issue

2009-11-18 Thread Scott Swank
I believe that I see a but in Wicket 1.3.5.  Perhaps it has been fixed
in a subsequent version.  Under certain circumstances an http
parameter that contains a slash / ascii 47 results in the following
exception:

*** URL fragment has unmatched key/value pairs, responding with 404. ***

The circumstances under which we've encountered this error are as
follows.  We have a page that is both the home page:

@Override
public Class? extends Page getHomePage()
{
return VcomCartDetailPage.class;
}

and is also mounted as a bookmarkable page in Application.init()

mountBookmarkablePage(/Cart, VcomCartDetailPage.class);

Then when an http get is made to the app root this is received by the
home page, which works correctly.  However, if you then redirect to a
new instance of the same page:

CartDetailPage redirectTo = new VcomCartDetailPage();
redirectTo.modelChanging();
// put stuff in the Cart -- i.e. in the Session
redirectTo.modelChanged();
// This is to guard against resubmitting legacy page cart additions. We
// redirect to a page mapped version of the base CartDetailPage so 
that
// the legacy submitted URL is cleared from the browser history, 
allowing
// back/forward button support.
setRedirect(true);
setResponsePage(redirectTo);

Then BookmarkablePageRequestTargetUrlCodingStrategy.encode() is
invoked (comes from mountBookmarkablePage in App.init()), and
ultimately the parameters are written in a REST-style in
AbstractRequestTargetUrlCodingStrategy.appendValue().

private void appendValue(AppendingStringBuffer url, String key,
String value)
{
String escapedValue = urlEncodePathComponent(value);
if(!Strings.isEmpty(escapedValue))
{
if(!url.endsWith(/))
url.append(/);
url.append(key).append(/).append(escapedValue).append(/);
}
}

However, because the path component encoder in WicketURLEncoder

public static final WicketURLEncoder PATH_INSTANCE = new
WicketURLEncoder(2);

Does not encode a slash (ascii 47)

// from WicketURLEncoder's constructor
switch(type)
{
case 1: // '\001'
dontNeedEncoding.set(32);
dontNeedEncoding.set(47);
dontNeedEncoding.set(63);
break;

case 2: // '\002'
dontNeedEncoding.set(38);
dontNeedEncoding.set(61);
dontNeedEncoding.set(43);
break;
}

if one of the parameter values contains a slash we end up with a bad
path.  E.g. for the following parameters:

key1 :: value1
key2 :: value2with/slashembedded
key3 :: value3

org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
URL fragment has unmatched key/value pairs, responding with 404.
Fragment: key1/value1/key2/value2with/slashembedded/key3/value3

Can anyone suggest a work-around?  Has this been fixed in any version
past 1.3.5?

Thank you,
Scott

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



How to compile a component for both Wicket 1.3 and 1.4?

2009-11-18 Thread Matt Brictson
Hello,

I am writing a Wicket component that I would like to use in two different 
Wicket applications. One application is using Wicket 1.4.3, and the other is a 
legacy application using Wicket 1.3.6. Unfortunately upgrading this legacy app 
to 1.4 is not an option.

I'm using maven for my build process. Right now I am considering the following 
approach:

1. Set up a multi-module maven project.

2. Create a common module that contains all the code that will safely execute 
in both Wicket 1.3 and Wicket 1.4.

3. Create a wicket13 module that contains the 1.3-specific code.

4. Create a wicket14 module that contains the 1.4-specific code.

That sounds like a lot of trouble. Can anyone think of a simpler solution, 
perhaps using maven build profiles? Or am I approaching this completely wrong?

--
Matt


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



Palette and LazyLoadingException. How to solve?

2009-11-18 Thread Fernando Wermus
Hi all,
 I would ask how to solve a problem regarding palette component.

Palette accepts two models: one that is for showing possibles elements to
select and another one that collects users choices.

For the first case, I dont have any problem. I just use a LDM to bring back
a collection from db.


But I have a problem with the items collected by the user because I got a
LazyLoading exception.
Like they are selected by the user, I cannot use a LDM to bring them back,
they are a subset of the all posible items.
The only option that comes to mind It is to have a collection of Model for
restore the entities. But I dont like this impl. at all.

Which would be the best way to deal with items selected by the user and
OSIV?

thanks in advance.


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Palette and LazyLoadingException. How to solve?

2009-11-18 Thread Igor Vaynberg
maybe you have a model that internally converts between a listentity
and listid, storing only the listid

-igor

On Wed, Nov 18, 2009 at 11:00 AM, Fernando Wermus
fernando.wer...@gmail.com wrote:
 Hi all,
     I would ask how to solve a problem regarding palette component.

 Palette accepts two models: one that is for showing possibles elements to
 select and another one that collects users choices.

 For the first case, I dont have any problem. I just use a LDM to bring back
 a collection from db.


 But I have a problem with the items collected by the user because I got a
 LazyLoading exception.
 Like they are selected by the user, I cannot use a LDM to bring them back,
 they are a subset of the all posible items.
 The only option that comes to mind It is to have a collection of Model for
 restore the entities. But I dont like this impl. at all.

 Which would be the best way to deal with items selected by the user and
 OSIV?

 thanks in advance.


 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


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



Re: London Wicket Event at Foyles Bookshop, November 21st, 2009

2009-11-18 Thread jWeekend

I have asked Foyles to stock up on Wicket In Action - Manning are sending
10 extra copies which should be on the shelves by Saturday morning. Thanks
for kindly offering to do some signing again, Martijn; my signed copy from
your last visit to the London Wicket Event is looking rather worn these days
so I too may be in the queue at some point. 

Foyles do not offer internet connectivity in their Gallery - I will
provide 3G for our presenters (and/or any guests with very pressing needs).
There is free WiFi in their cafe just down the stairs.  

We have also arranged coffee for our guests during breaks.

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



Martijn Dashorst wrote:
 
 Bring your copy of Wicket in Action 
 
 Martijn
 
 On Tue, Nov 3, 2009 at 12:11 AM, jWeekend jweekend_for...@cabouge.com
 wrote:
 We will hold our next London Wicket Event on Saturday, 21st November,
 from
 14:45. This time we have hired The Gallery at the iconic Foyles
 Bookshop
 in central London.
 We again welcome guests and speakers from several countries, including at
 least 3 core committers, Matej, Jeremy and of course, Alastair, as well
 as
 the founders of WiQuery (Wicket-jQuery integration), Lionel Armanet and
 his
 team.

 Join us for some very interesting, high quality presentations and to chat
 with fellow Wicket users and developers at all levels. We're expecting
 this
 to be another popular event and since places are limited book and confirm
 early if you can make it. Details and registration are at the usual place
 [1].
 There is a cool little Jazz cafe at Foyles too, where there'll be a live
 act
 (Femi Temowo) at 13:00 if you enjoy some Jazz guitar relaxation before
 your
 intellectual stimulation. They offer a decent range of food and drink
 there
 too.

 The event schedule looks like:
 Cemal Bayramoglu: Introduction
 Jeremy Thomerson (USA): Custom JavaScript Integrations with Wicket + Auto
 Resolvers
 Lionel Armanet (FR): Announcing WiQuery 1.0: Introduction  Demo
 Matej Knopp (SK): BRIX CMS + Wicket 1.5 Developments QA
 Alastair Maw (UK): The Al Talk
 Our Regular General Wicket QA with Al and Cemal
 We expect to formally finish by around 19:00. I would expect the usual
 suspects will be heading somewhere in the neighbourhood for refreshments
 straight after the event, and of course you are more than welcome to join
 us.
 Regards - Cemal jWeekend http://jWeekend.com
 Training, Consulting, Development
 [1] http://jweekend.com/dev/LWUGReg/
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/London-Wicket-Event-at-Foyles-Bookshop%2C-November-21st%2C-2009-tp26172328p26414900.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



AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread pieter claassen
Hi Guys,

Here is a blog entry on how I update listviews in listviews with Ajax.

http://skeptical-inquirer.blogspot.com/2009/11/updating-listview-in-listview-with-ajax.html

I would appreciate any comments to help me improve this pattern.

Cheers,
Pieter


Re: AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread Sven Meier
I'm afraid forcing the reader to enter credentials isn't going to 
increase your comment count.


Nevertheless here are some suggestions:
A)
Use PropertyListView and you won't have to twiddle with the item's model.
B)
IMHO passing the container into EditableQuestionPanel isn't a good idea 
- why should it know anything about its parent? Instead I'd add a hook 
method into EditableQuestionPanel so that it can notify about changes. 
The containing QuestionEditPanel can then do whatever it needs to update 
itself on an Ajax request.

C)
Why is QuestionNavigationPanel concerned with the model object of one of 
its ancestors?
QuestionEditPanel should use a LoadableDetachableModel to always work on 
up-to-date data. When notified of changes (see hook method above) it can 
detach its model explicitly so the data is fetched again from your 
QuestionProcessor.


Hope this helps

Sven

pieter claassen wrote:

Hi Guys,

Here is a blog entry on how I update listviews in listviews with Ajax.

http://skeptical-inquirer.blogspot.com/2009/11/updating-listview-in-listview-with-ajax.html

I would appreciate any comments to help me improve this pattern.

Cheers,
Pieter
  


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



Wicket 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread VGJ
I'm completely at wits end here and I hope someone can point out what's
wrong.

I've got an e-commerce application that is simply moving between two pages
using setRedirectPage() when going from a product detail page to the
shopping cart page.  There isn't anything remarkable about either of these
two pages, they're basically like any other in the app.  However, when the
cart page loads, I get the exception at the bottom of this message.

I've tried implementing Serializable on the Cart() page class but it makes
no difference.  It points out
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate as the
culprit.  I use a stateful session bean (ShoppingCart) which is passed
around the app as part of the session (custom WebSession-derived class)

This is the only page this occurs on.  There are several other steps in the
cart's checkout process that look exactly like this one and the exception
doesn't happen on any of the others

Any ideas?

Exception:

25717 [httpSSLWorkerThread-8080-1] ERROR org.apache.wicket.util.lang.Objects
- Error serializing object class com.myapp.ui.Cart [object=[Page class =
com.myapp.ui.Cart, id = 3, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
Field hierarchy is:
  3 [class=com.myapp.ui.Cart, path=3]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private
org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper
org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[6]
[class=org.apache.wicket.markup.html.form.Form, path=3:cartForm]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children[0] [class=com.myapp.ui.Cart$1,
path=3:cartForm:orderLinesView]
final com.myapp.session.ShoppingCartLocal
com.myapp.ui.Cart$1.val$cart [class=$Proxy92]
  protected java.lang.reflect.InvocationHandler
java.lang.reflect.Proxy.h
[class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
- field that is not serializable
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:346)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at
org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:684)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:129)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at
org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1120)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
at org.apache.wicket.Session.requestDetached(Session.java:1404)
at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1454)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
2009/11/18 Igor Vaynberg igor.vaynb...@gmail.com

 you need to tweak your ide to enable java5 functionality i think.

In fact The jre library I add is jdk1.6


 -igor


 On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com
 wrote:
  I create a class Loginpage which extends WebPage,how the IDE show me many
  errors when I use wicket 1.4 :
 
  public LoginPage() {
  User user = new User();
  Form logForm = new Form(form, new CompoundPropertyModel(user)) {
 
  protected void onSubmit() {
 
  }
 
  };
  logForm.setMultiPart(true);
  logForm.setMaxSize(Bytes.kilobytes(1000));
 
  add(logForm);   Here it says :The method add(Component[]) in
  the type MarkupContainer is not applicable for the arguments (Form)
 
  TextField accountTextfield = new TextField(account);
 
  logForm.add(accountTextfield); / here It says:The method
  add(IFormValidator) in the type Form is not applicable for the arguments
  (TextField)
  }
 
  Why?
 
  Since I did not got the errors when I use wicket-1.3.
 
  BTW, is the class DatePicker deprecated?
 

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




Re: the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
2009/11/18 Pieter Degraeuwe pieter.degrae...@systemworks.be

 Don't want to be rude; did you import the correct types (Component / Form)

I think so , since I can new a Form object, but  can not use the add
method.

 ?... some IDE's have the 'exclude import' funtionallity, which is great
 (don't want to mention its name, but it starts wich Intelli, and ends with
 J
 :-) -- I'm loving it :-)

 Pieter

 On Wed, Nov 18, 2009 at 4:07 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  you need to tweak your ide to enable java5 functionality i think.
 
  -igor
 
 
  On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com
  wrote:
   I create a class Loginpage which extends WebPage,how the IDE show me
 many
   errors when I use wicket 1.4 :
  
   public LoginPage() {
   User user = new User();
   Form logForm = new Form(form, new CompoundPropertyModel(user)) {
  
   protected void onSubmit() {
  
   }
  
   };
   logForm.setMultiPart(true);
   logForm.setMaxSize(Bytes.kilobytes(1000));
  
   add(logForm);   Here it says :The method add(Component[])
 in
   the type MarkupContainer is not applicable for the arguments (Form)
  
   TextField accountTextfield = new TextField(account);
  
   logForm.add(accountTextfield); / here It says:The method
   add(IFormValidator) in the type Form is not applicable for the
 arguments
   (TextField)
   }
  
   Why?
  
   Since I did not got the errors when I use wicket-1.3.
  
   BTW, is the class DatePicker deprecated?
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Pieter Degraeuwe
 Systemworks bvba
 Belgiëlaan 61
 9070 Destelbergen
 GSM: +32 (0)485/68.60.85
 Email: pieter.degrae...@systemworks.be
 visit us at http://www.systemworks.be



Re: How to compile a component for both Wicket 1.3 and 1.4?

2009-11-18 Thread mbrictson

If anyone is interested, here's how I solved the problem of building a Wicket
1.3-compatible JAR and 1.4-compatible JAR from the same codebase.

First I tweaked my Wicket code so that it could compile under 1.3 and 1.4.
Basically, I started with 1.4 code, then removed generics, and avoided using
get/setDefaultModel.

Then I added build profiles to my POM (see below). I can now use the build
profiles to compile and deploy JARs for both 1.3 and 1.4, using maven's
classifier to distinguish the two JARs.

profiles
  profile
idwicket14/id
activation
  activeByDefaulttrue/activeByDefault
/activation
properties
  wicket.version1.4.3/wicket.version
/properties
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
classifierwicket14/classifier
  /configuration
/plugin
  /plugins
/build
  /profile
  profile
idwicket13/id
activation
  property
namewicket13/name
  /property
/activation
properties
  wicket.version1.3.6/wicket.version
/properties
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
classifierwicket13/classifier
  /configuration
/plugin
  /plugins
/build
  /profile
/profiles


mbrictson wrote:
 
 Hello,
 
 I am writing a Wicket component that I would like to use in two different
 Wicket applications. One application is using Wicket 1.4.3, and the other
 is a legacy application using Wicket 1.3.6. Unfortunately upgrading this
 legacy app to 1.4 is not an option.
 
 I'm using maven for my build process. Right now I am considering the
 following approach:
 
 1. Set up a multi-module maven project.
 
 2. Create a common module that contains all the code that will safely
 execute in both Wicket 1.3 and Wicket 1.4.
 
 3. Create a wicket13 module that contains the 1.3-specific code.
 
 4. Create a wicket14 module that contains the 1.4-specific code.
 
 That sounds like a lot of trouble. Can anyone think of a simpler solution,
 perhaps using maven build profiles? Or am I approaching this completely
 wrong?
 
 --
 Matt
 
 
 -
 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://old.nabble.com/How-to-compile-a-component-for-both-Wicket-1.3-and-1.4--tp26413392p26419338.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



General questions regarding Wicket roadmap and plans

2009-11-18 Thread Lester Chua

Hi,

I've finished converting major portions of an existing in-house 
application from EXTJS/JSON Servlets to Wicket as part of an evaluation 
of Wicket.
Right now I'm VERY impressed with the framework and would like to 
introduce it to the organization I'm working for.


There are a couple of things that I could not find and was wondering if 
the Wicket Team have them but somehow failed to make them available in 
the Wicket Site.
I hope someone can help me out if this is available but I had somehow 
missed it.


1) Product Roadmap (Release plans, upcoming features etc)
This is important to us because it will at least indicate the intentions 
of Wicket Team. As any technology that is adopted enterprise-wide needs 
to be long-lived and well supported in addition to it's features and 
technology, some visibility about the product lifecycle is required.


2) Recent Adoption Statistics (No of downloads, usage projections)
We need this to gauge the interest in the project. Has it peaked? What 
is the pattern like?


Some comments about Wicket (project/product aspects), this is not a 
critique but just observations that may be wrong, do correct me if I had 
missed something or have some wrong impression about Wicket site.


a) Although there is examples and documentation available on Wicket main 
site and Wicket stuff, I find that the organization of the information 
is probably not friendly enough for easy viewing. E.g. the examples site 
does not contain source and viewable example together in an easy to read 
page. This can be improved on significantly.


b) Having a Wicket Stuff site that does not appear updated nor actively 
maintained will HURT the project in terms of it's adoption.
Wicket is FANTASTIC as a component based solution to our current web 
development landscape. I am preaching to the sold when I say that it's 
easy to use and yet flexible to do moderately complex stuff 
productively. Being such an easy to use component framework, I am really 
puzzled about why the plugin development seems so bare (in comparison to 
other frameworks I'm used to like JQuery, ExtJS, Grails, Ruby on Rails 
etc). In fact, Wicket makes plugin deployment and integration seem like 
a piece of cake compared to some of the frameworks mentioned earlier. 
And yet, wicket seems woefully underpowered in the plugins department 
and worse, the official site seems abandoned which will definitely harm 
Wicket's adoption rate.


c) The mailing list is wonderful and I have had some questions very 
quickly answered, which points to an active and supportive community for 
which I'm grateful. If there is a way to harness this and make the 
information more easily accessible, it'll be awesome.


Ok, enough bitching =), I love Wicket! Hopefully, I can become 
proficient enough to actively contribute to the documentation to make 
this great framework more accessible to newbies like myself. But first, 
I need to sell my team and management on the long term product aspects 
of Wicket.


Any help or information about point 1  2 is greatly appreciated.

Lester

On a more irrelevant note when I first started web development back in 
1999, I was wondering if I could use Rational Rose to generate a UML 
model of my web project (it can't). But now with wicket, I can fully 
reverse engineer a UML model that MAKES SENSE for my Wicket App! Ok, I 
may not want to do that now, but it's actually possible, try doing that 
with any other web framework.






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



Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua

Hi,

I'm using log4j as my logging tool.
But when I add log4j loggers into my components, I get serialization issues.
Wicket gives serialization errors because of the logger.

E.g.

class SomeForm extends Form {

   Logger logger = LogManager.getLogger(SomeForm.class);

   public void someMethod() {
  logger.debug(Some Message);
   }

}

This class will give an serialization error. Wicket complains about 
serializing logger.

Is there a recommended way to do logging in wicket to avoid this?

Thanks in advance.

Lester


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



Re: Question regarding Logging in Wicket

2009-11-18 Thread James Carman
Commons Logging?

On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com wrote:
 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

   Logger logger = LogManager.getLogger(SomeForm.class);

   public void someMethod() {
      logger.debug(Some Message);
   }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


 -
 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: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
declare your logger static

-igor

On Wed, Nov 18, 2009 at 8:11 PM, Lester Chua cicowic...@gmail.com wrote:
 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

   Logger logger = LogManager.getLogger(SomeForm.class);

   public void someMethod() {
      logger.debug(Some Message);
   }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


 -
 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: General questions regarding Wicket roadmap and plans

2009-11-18 Thread Martin Makundi
 1) Product Roadmap (Release plans, upcoming features etc)
 This is important to us because it will at least indicate the intentions of
 Wicket Team. As any technology that is adopted enterprise-wide needs to be
 long-lived and well supported in addition to it's features and technology,
 some visibility about the product lifecycle is required.

http://cwiki.apache.org/WICKET/wicket-15-wish-list.html
http://cwiki.apache.org/WICKET/wicket-14-wish-list.html

2) Recent Adoption Statistics (No of downloads, usage projections)
We need this to gauge the interest in the project. Has it peaked? What
is the pattern like?

++ Nice idea

 a) Although there is examples and documentation available on Wicket main
 site and Wicket stuff, I find that the organization of the information is
 probably not friendly enough for easy viewing. E.g. the examples site does
 not contain source and viewable example together in an easy to read page.
 This can be improved on significantly.

you and your team are welcome to contribute, great ideas btw

 Being such an easy to use component framework, I am really puzzled about why 
 the
 plugin development seems so bare

One reason is that it's so easy to make plugins it feels unnecessary
to publish them.

 c) The mailing list is wonderful and I have had some questions very quickly
 answered, which points to an active and supportive community for which I'm
 grateful. If there is a way to harness this and make the information more
 easily accessible, it'll be awesome.

Google reaches most of the discussion via nable/osdir.



My 2cents worth ;)


**
Martin

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



Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua

Thanks,

I was wondering about that since it seems to get away from 
Serialization. But I do not understand Wicket internals when it comes to 
clustering. Will this approach impact the clustering facility supported 
by Wicket out of box?


Lester

Igor Vaynberg wrote:

declare your logger static

-igor

On Wed, Nov 18, 2009 at 8:11 PM, Lester Chua cicowic...@gmail.com wrote:
  

Hi,

I'm using log4j as my logging tool.
But when I add log4j loggers into my components, I get serialization issues.
Wicket gives serialization errors because of the logger.

E.g.

class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
 logger.debug(Some Message);
  }

}

This class will give an serialization error. Wicket complains about
serializing logger.
Is there a recommended way to do logging in wicket to avoid this?

Thanks in advance.

Lester


-
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: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
I think I'll use this then. I was reluctant to because of the need to 
introduce yet another library (some examples used this).


Thanks!

Lester

James Carman wrote:

Commons Logging?

On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com wrote:
  

Hi,

I'm using log4j as my logging tool.
But when I add log4j loggers into my components, I get serialization issues.
Wicket gives serialization errors because of the logger.

E.g.

class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
 logger.debug(Some Message);
  }

}

This class will give an serialization error. Wicket complains about
serializing logger.
Is there a recommended way to do logging in wicket to avoid this?

Thanks in advance.

Lester


-
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: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
no

-igor

On Wed, Nov 18, 2009 at 9:05 PM, Lester Chua cicowic...@gmail.com wrote:
 Thanks,

 I was wondering about that since it seems to get away from Serialization.
 But I do not understand Wicket internals when it comes to clustering. Will
 this approach impact the clustering facility supported by Wicket out of box?

 Lester

 Igor Vaynberg wrote:

 declare your logger static

 -igor

 On Wed, Nov 18, 2009 at 8:11 PM, Lester Chua cicowic...@gmail.com wrote:


 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization
 issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
     logger.debug(Some Message);
  }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


 -
 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: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
i wouldnt, commons logging, aka clogging, has been a bane of web
applications for a long time...

wicket uses slf4j, why dont you do the same? still declaring your
loggers static.

-igor

On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote:
 I think I'll use this then. I was reluctant to because of the need to
 introduce yet another library (some examples used this).

 Thanks!

 Lester

 James Carman wrote:

 Commons Logging?

 On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com
 wrote:


 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization
 issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
     logger.debug(Some Message);
  }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


 -
 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: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
H, very interesting, didnt realise that commons-logging was 
problematic, just that I avoided it before because I didnt want to 
introduce yet another library dependency for logging; which is so low 
level that I don't think the logging stack ever change in a project 
lifetime.


About slf4j, what makes it different compared to commons-logging? Wont 
it have class loading issues as well?


I guess a big plus point is that it comes with Wicket anyway, so I might 
as well use it.


Regards,

Lester

Igor Vaynberg wrote:

i wouldnt, commons logging, aka clogging, has been a bane of web
applications for a long time...

wicket uses slf4j, why dont you do the same? still declaring your
loggers static.

-igor

On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote:
  

I think I'll use this then. I was reluctant to because of the need to
introduce yet another library (some examples used this).

Thanks!

Lester

James Carman wrote:


Commons Logging?

On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com
wrote:

  

Hi,

I'm using log4j as my logging tool.
But when I add log4j loggers into my components, I get serialization
issues.
Wicket gives serialization errors because of the logger.

E.g.

class SomeForm extends Form {

 Logger logger = LogManager.getLogger(SomeForm.class);

 public void someMethod() {
logger.debug(Some Message);
 }

}

This class will give an serialization error. Wicket complains about
serializing logger.
Is there a recommended way to do logging in wicket to avoid this?

Thanks in advance.

Lester


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





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


  

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





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

  



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



Re: General questions regarding Wicket roadmap and plans

2009-11-18 Thread Lester Chua

Thanks for the reply.


1) Product Roadmap (Release plans, upcoming features etc)
This is important to us because it will at least indicate the intentions of
Wicket Team. As any technology that is adopted enterprise-wide needs to be
long-lived and well supported in addition to it's features and technology,
some visibility about the product lifecycle is required.



http://cwiki.apache.org/WICKET/wicket-15-wish-list.html
http://cwiki.apache.org/WICKET/wicket-14-wish-list.html
  
I did see the wishlist but was wishing for something more like a roadmap 
with projected release timelines, I can see why that it will probably 
not be accurate for an open sourced project but an indication of a rough 
ETA and included features will be good.


By the way, is the wishlist official? As in are the features present in 
the wishlist official? Or is the wishlist used as an idea 
incubator/exchange?



2) Recent Adoption Statistics (No of downloads, usage projections)
We need this to gauge the interest in the project. Has it peaked? What
is the pattern like?

++ Nice idea

  

a) Although there is examples and documentation available on Wicket main
site and Wicket stuff, I find that the organization of the information is
probably not friendly enough for easy viewing. E.g. the examples site does
not contain source and viewable example together in an easy to read page.
This can be improved on significantly.



you and your team are welcome to contribute, great ideas btw

  

Planning to once I get up to speed.

Being such an easy to use component framework, I am really puzzled about why the
plugin development seems so bare



One reason is that it's so easy to make plugins it feels unnecessary
to publish them.

  
Actually I kinda disagree. Take Delphi which was awesome for it's 
component architecture and IDE. Writing components and packaging them 
was very easy but it had a HUGE thriving component library market place 
where you can literally purchase thousands of packages and libraries.

c) The mailing list is wonderful and I have had some questions very quickly
answered, which points to an active and supportive community for which I'm
grateful. If there is a way to harness this and make the information more
easily accessible, it'll be awesome.



Google reaches most of the discussion via nable/osdir.

  
Yea, that is how I got most of the solutions to my little set of 
problems. =) Just wishing that it can be better.


My 2cents worth ;)


**
Martin

-
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: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
their website is a good source of information, afair the basic
difference that unlike clogging slf4j uses compile-time binding
instead of run-time binding of api to impl thus avoiding classloader
hell.

-igor

On Wed, Nov 18, 2009 at 9:21 PM, Lester Chua cicowic...@gmail.com wrote:
 H, very interesting, didnt realise that commons-logging was problematic,
 just that I avoided it before because I didnt want to introduce yet another
 library dependency for logging; which is so low level that I don't think the
 logging stack ever change in a project lifetime.

 About slf4j, what makes it different compared to commons-logging? Wont it
 have class loading issues as well?

 I guess a big plus point is that it comes with Wicket anyway, so I might as
 well use it.

 Regards,

 Lester

 Igor Vaynberg wrote:

 i wouldnt, commons logging, aka clogging, has been a bane of web
 applications for a long time...

 wicket uses slf4j, why dont you do the same? still declaring your
 loggers static.

 -igor

 On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote:


 I think I'll use this then. I was reluctant to because of the need to
 introduce yet another library (some examples used this).

 Thanks!

 Lester

 James Carman wrote:


 Commons Logging?

 On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com
 wrote:



 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization
 issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
    logger.debug(Some Message);
  }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


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





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




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




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




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



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



Re: Question regarding Logging in Wicket

2009-11-18 Thread James Carman
By the way (not to start a flame war or anything), but clogging has
been working just fine for us.  We use it along with SLF4J using the
adapter,  We've had no problems at all.  Don't get me wrong, I am
aware of the issues with Commons Logging and I've argued for us to
change the way it works to be more slf4j-like.  I suggested it a LONG
time ago...

http://www.opensubscriber.com/message/d...@commons.apache.org/8725291.html



On Thu, Nov 19, 2009 at 12:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 i wouldnt, commons logging, aka clogging, has been a bane of web
 applications for a long time...

 wicket uses slf4j, why dont you do the same? still declaring your
 loggers static.

 -igor

 On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote:
 I think I'll use this then. I was reluctant to because of the need to
 introduce yet another library (some examples used this).

 Thanks!

 Lester

 James Carman wrote:

 Commons Logging?

 On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com
 wrote:


 Hi,

 I'm using log4j as my logging tool.
 But when I add log4j loggers into my components, I get serialization
 issues.
 Wicket gives serialization errors because of the logger.

 E.g.

 class SomeForm extends Form {

  Logger logger = LogManager.getLogger(SomeForm.class);

  public void someMethod() {
     logger.debug(Some Message);
  }

 }

 This class will give an serialization error. Wicket complains about
 serializing logger.
 Is there a recommended way to do logging in wicket to avoid this?

 Thanks in advance.

 Lester


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




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




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



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



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



Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua

Many thanks to both you and James.
I will use slf4j (with log4j underlying) and static the logger.

Regards,

Lester

Igor Vaynberg wrote:

their website is a good source of information, afair the basic
difference that unlike clogging slf4j uses compile-time binding
instead of run-time binding of api to impl thus avoiding classloader
hell.

-igor

On Wed, Nov 18, 2009 at 9:21 PM, Lester Chua cicowic...@gmail.com wrote:
  

H, very interesting, didnt realise that commons-logging was problematic,
just that I avoided it before because I didnt want to introduce yet another
library dependency for logging; which is so low level that I don't think the
logging stack ever change in a project lifetime.

About slf4j, what makes it different compared to commons-logging? Wont it
have class loading issues as well?

I guess a big plus point is that it comes with Wicket anyway, so I might as
well use it.

Regards,

Lester

Igor Vaynberg wrote:


i wouldnt, commons logging, aka clogging, has been a bane of web
applications for a long time...

wicket uses slf4j, why dont you do the same? still declaring your
loggers static.

-igor

On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote:

  

I think I'll use this then. I was reluctant to because of the need to
introduce yet another library (some examples used this).

Thanks!

Lester

James Carman wrote:



Commons Logging?

On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com
wrote:


  

Hi,

I'm using log4j as my logging tool.
But when I add log4j loggers into my components, I get serialization
issues.
Wicket gives serialization errors because of the logger.

E.g.

class SomeForm extends Form {

 Logger logger = LogManager.getLogger(SomeForm.class);

 public void someMethod() {
   logger.debug(Some Message);
 }

}

This class will give an serialization error. Wicket complains about
serializing logger.
Is there a recommended way to do logging in wicket to avoid this?

Thanks in advance.

Lester


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






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



  

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





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


  

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





-
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 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread Pieter Degraeuwe
Your cart has a reference to the sessionBean ShopingCart. This is not
allowed, however. The IOC incjectionsupport makes this possible by wrapping
this EJB reference with a serializable proxy.

I only have expecience with wicket-spring end it works great. (In your case,
define your ejb reference in spring and inject it via wicket-spring support
in your page.
problem solved!

Pieter

On Wed, Nov 18, 2009 at 10:50 PM, VGJ zambi...@gmail.com wrote:

 I'm completely at wits end here and I hope someone can point out what's
 wrong.

 I've got an e-commerce application that is simply moving between two pages
 using setRedirectPage() when going from a product detail page to the
 shopping cart page.  There isn't anything remarkable about either of these
 two pages, they're basically like any other in the app.  However, when the
 cart page loads, I get the exception at the bottom of this message.

 I've tried implementing Serializable on the Cart() page class but it makes
 no difference.  It points out
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate as the
 culprit.  I use a stateful session bean (ShoppingCart) which is passed
 around the app as part of the session (custom WebSession-derived class)

 This is the only page this occurs on.  There are several other steps in the
 cart's checkout process that look exactly like this one and the exception
 doesn't happen on any of the others

 Any ideas?

 Exception:

 25717 [httpSSLWorkerThread-8080-1] ERROR
 org.apache.wicket.util.lang.Objects
 - Error serializing object class com.myapp.ui.Cart [object=[Page class =
 com.myapp.ui.Cart, id = 3, version = 0]]

 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 Field hierarchy is:
  3 [class=com.myapp.ui.Cart, path=3]
private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
  private
 org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper

 org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[6]
 [class=org.apache.wicket.markup.html.form.Form, path=3:cartForm]
private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
  private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0] [class=com.myapp.ui.Cart$1,
 path=3:cartForm:orderLinesView]
final com.myapp.session.ShoppingCartLocal
 com.myapp.ui.Cart$1.val$cart [class=$Proxy92]
  protected java.lang.reflect.InvocationHandler
 java.lang.reflect.Proxy.h
 [class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
 - field that is not serializable
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:346)
at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
at

 org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:684)
at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at

 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:129)
at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1120)
at

 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
at

 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
at

 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
at org.apache.wicket.Session.requestDetached(Session.java:1404)
at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1454)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
 

Re: Wicket 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread Igor Vaynberg
wicket stuff contains a wicket-jee module which supports injecting ejb
beans into wicket components the same way that wicket-spring injects
wicket beans.

-igor

On Wed, Nov 18, 2009 at 10:37 PM, Pieter Degraeuwe
pieter.degrae...@systemworks.be wrote:
 Your cart has a reference to the sessionBean ShopingCart. This is not
 allowed, however. The IOC incjectionsupport makes this possible by wrapping
 this EJB reference with a serializable proxy.

 I only have expecience with wicket-spring end it works great. (In your case,
 define your ejb reference in spring and inject it via wicket-spring support
 in your page.
 problem solved!

 Pieter

 On Wed, Nov 18, 2009 at 10:50 PM, VGJ zambi...@gmail.com wrote:

 I'm completely at wits end here and I hope someone can point out what's
 wrong.

 I've got an e-commerce application that is simply moving between two pages
 using setRedirectPage() when going from a product detail page to the
 shopping cart page.  There isn't anything remarkable about either of these
 two pages, they're basically like any other in the app.  However, when the
 cart page loads, I get the exception at the bottom of this message.

 I've tried implementing Serializable on the Cart() page class but it makes
 no difference.  It points out
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate as the
 culprit.  I use a stateful session bean (ShoppingCart) which is passed
 around the app as part of the session (custom WebSession-derived class)

 This is the only page this occurs on.  There are several other steps in the
 cart's checkout process that look exactly like this one and the exception
 doesn't happen on any of the others

 Any ideas?

 Exception:

 25717 [httpSSLWorkerThread-8080-1] ERROR
 org.apache.wicket.util.lang.Objects
 - Error serializing object class com.myapp.ui.Cart [object=[Page class =
 com.myapp.ui.Cart, id = 3, version = 0]]

 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 Field hierarchy is:
  3 [class=com.myapp.ui.Cart, path=3]
    private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
      private
 org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper

 org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[6]
 [class=org.apache.wicket.markup.html.form.Form, path=3:cartForm]
        private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
          private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0] [class=com.myapp.ui.Cart$1,
 path=3:cartForm:orderLinesView]
            final com.myapp.session.ShoppingCartLocal
 com.myapp.ui.Cart$1.val$cart [class=$Proxy92]
              protected java.lang.reflect.InvocationHandler
 java.lang.reflect.Proxy.h
 [class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
 - field that is not serializable
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:346)
        at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
        at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
        at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392)
        at

 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:615)
        at

 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538)
        at

 org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:684)
        at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
        at

 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:129)
        at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
        at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1120)
        at

 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
        at

 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
        at

 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
        at 

Re: javascript slider implementation

2009-11-18 Thread pieter claassen
Hi Martin,

I tried to implement your Slider suggestion but even if I duplicate the code
in the examples, I get no feedback to the onChange method. My ajax debug
console also shows nothing so I get the feeling I am missing  some
javascript code here.

I have the jquery-1.4-SNAPSHOT.jar (1.4-20091110.07192) installed (I am
using wicket 1.4.1)

Any suggestions?

Rgds,
Pieter

On Wed, Nov 18, 2009 at 1:51 PM, Martin Grigorov mcgreg...@e-card.bgwrote:

 check wicketstuff-jquery
 there is a slider behavior + demo

 On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote:
  I would like to implement a slider to set the width of a component.
 
  I could not get the Dojo Slider implementation working with wicket 1.4.1
 (I
  could not get the code in with maven even though the Dojo project built
 from
  SVN, it just doesn't seem to contain the Slider class anymore).
 
  My thinking is to build a very simple slider component that updates a
  variable and on mouse-up returns this data to the server.
 
  My approach so far is:
  1. Implement my own SliderAbstractAjaxBehavior that in onRequest will
 accept
  the current position of the slider.
  2. I will then update the width of my component and mark it for
 repainting.
  3. I will have to develop the javascript to read the slider values and
 react
  to the mouseup event. Where can I look for more information on how to
 post
  data back to onRequest from Javascript? I assume there is a function
 already
  availble in the standard wicket JS implementation?
 
  Any tips appreciated.
 
  Rgds,
  Pieter



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




-- 
Pieter Claassen
musmato.com