[Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
Hello,

I wonder if it is easily feasible to have functionality like
struts-nested, the struts extension made by the keyboardmonkey team
( 
http://www.keyboardmonkey.com/pilotlight/next/Tutorial_partTwo.jsp?content=yesplease
)

This allows to create forms with nested elements : a monkey having
some properties, and a list of beans representing a banana bunch, made
of some properties, as well as a (dynamically modifiable) list of
bananas,  whose bananas contain some properties ... ( the nesting
could be more than this one level example).

And in the same page : monkey properties are editable, existing bunchs
and bananas properties are editable. It is also possible to add a
bunch to the monkey, or a banana to a bunch, to delete a bunch from
the monkey, a banana from a bunch 


Not sure is this can be done easily in wicket ?
What would you suggest to do it the best way ?


Thanks in advance,

--
Laurent


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Eelco Hillenius
That's easy to do in Wicket. You can nest anyway you want in your
forms, including using listviews (though don't forget to set the
optimizeItemRemoval property to true).

Eelco


On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
 Hello,

 I wonder if it is easily feasible to have functionality like
 struts-nested, the struts extension made by the keyboardmonkey team
 ( 
 http://www.keyboardmonkey.com/pilotlight/next/Tutorial_partTwo.jsp?content=yesplease
 )

 This allows to create forms with nested elements : a monkey having
 some properties, and a list of beans representing a banana bunch, made
 of some properties, as well as a (dynamically modifiable) list of
 bananas,  whose bananas contain some properties ... ( the nesting
 could be more than this one level example).

 And in the same page : monkey properties are editable, existing bunchs
 and bananas properties are editable. It is also possible to add a
 bunch to the monkey, or a banana to a bunch, to delete a bunch from
 the monkey, a banana from a bunch 


 Not sure is this can be done easily in wicket ?
 What would you suggest to do it the best way ?


 Thanks in advance,

 --
 Laurent


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That's easy to do in Wicket. You can nest anyway you want in your
 forms, including using listviews (though don't forget to set the
 optimizeItemRemoval property to true).

I'll try to redo the struts monkey example in wicket, in order to
really feel what it is like doing it with Wicket.

By the time : I don't really like the name of the
setOptimizeItemRemoval method, if I must use this method not only for
optimization concerns, but also for functional concerns.
Having a key feature of the view of my application relying on an
optimization algorithm (as the name of the property implies) isn't
appealing to me.

For the moment I don't have anything better to suggest, I'm just with
that feeling that playing with optimization properties in order to
allow Form nesting sounds more like a trick than like a core feature


--
Laurent


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Eelco Hillenius
I never liked that name either. Other people did and we settled for
it. Just the way the world works sometimes :)

Eelco


On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
 On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That's easy to do in Wicket. You can nest anyway you want in your
  forms, including using listviews (though don't forget to set the
  optimizeItemRemoval property to true).

 I'll try to redo the struts monkey example in wicket, in order to
 really feel what it is like doing it with Wicket.

 By the time : I don't really like the name of the
 setOptimizeItemRemoval method, if I must use this method not only for
 optimization concerns, but also for functional concerns.
 Having a key feature of the view of my application relying on an
 optimization algorithm (as the name of the property implies) isn't
 appealing to me.

 For the moment I don't have anything better to suggest, I'm just with
 that feeling that playing with optimization properties in order to
 allow Form nesting sounds more like a trick than like a core feature
 

 --
 Laurent


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Juergen Donnerstag
Did you take a look at wicket-examples already? Compared to what is
explained on the page you pointed to, it is very easy in Wicket and
IMO much more flexibel.

Juergen

On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
 On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That's easy to do in Wicket. You can nest anyway you want in your
  forms, including using listviews (though don't forget to set the
  optimizeItemRemoval property to true).

 I'll try to redo the struts monkey example in wicket, in order to
 really feel what it is like doing it with Wicket.

 By the time : I don't really like the name of the
 setOptimizeItemRemoval method, if I must use this method not only for
 optimization concerns, but also for functional concerns.
 Having a key feature of the view of my application relying on an
 optimization algorithm (as the name of the property implies) isn't
 appealing to me.

 For the moment I don't have anything better to suggest, I'm just with
 that feeling that playing with optimization properties in order to
 allow Form nesting sounds more like a trick than like a core feature
 

 --
 Laurent


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Juergen Donnerstag
/**
 * If true, re-rendering the list view is more efficient if the window
 * doesn't get changed at all or if it gets scrolled (compared to 
paging).
 * But if you modify the listView model object, than you must manually 
call
 * listView.removeAll() in order to rebuild the ListItems.
 * If you nest a ListView in a Form, ALLWAYS set this property to true, 
as
 * otherwise validation will not work properly.
 */
private boolean optimizeItemRemoval = false;

Juergen

On 11/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Did you take a look at wicket-examples already? Compared to what is
 explained on the page you pointed to, it is very easy in Wicket and
 IMO much more flexibel.

 Juergen

 On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
  On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
   That's easy to do in Wicket. You can nest anyway you want in your
   forms, including using listviews (though don't forget to set the
   optimizeItemRemoval property to true).
 
  I'll try to redo the struts monkey example in wicket, in order to
  really feel what it is like doing it with Wicket.
 
  By the time : I don't really like the name of the
  setOptimizeItemRemoval method, if I must use this method not only for
  optimization concerns, but also for functional concerns.
  Having a key feature of the view of my application relying on an
  optimization algorithm (as the name of the property implies) isn't
  appealing to me.
 
  For the moment I don't have anything better to suggest, I'm just with
  that feeling that playing with optimization properties in order to
  allow Form nesting sounds more like a trick than like a core feature
  
 
  --
  Laurent
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
Yes I did, but maybe not too deeply I assume.

I'll try and do what I'm thinking of using Wicket, and then come back
to the list with questions, if any.

It seems to me that I haven't seen something as dynamic as what can be
done with nested (and the page I pointed to was not fair about the
dynamic possibilities).

I feel that it is possible to do that with Wicket, maybe it's just I
guess there are several possibilities to do that, and I'm not sure
what the best could be, with the hypothesis of an existing domain
model hierarchy ( monkey/bunches/bananas for example).

CU,

--
Laurent

On 11/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Did you take a look at wicket-examples already? Compared to what is
 explained on the page you pointed to, it is very easy in Wicket and
 IMO much more flexibel.

 Juergen

 On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
  On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
   That's easy to do in Wicket. You can nest anyway you want in your
   forms, including using listviews (though don't forget to set the
   optimizeItemRemoval property to true).
 
  I'll try to redo the struts monkey example in wicket, in order to
  really feel what it is like doing it with Wicket.
 
  By the time : I don't really like the name of the
  setOptimizeItemRemoval method, if I must use this method not only for
  optimization concerns, but also for functional concerns.
  Having a key feature of the view of my application relying on an
  optimization algorithm (as the name of the property implies) isn't
  appealing to me.
 
  For the moment I don't have anything better to suggest, I'm just with
  that feeling that playing with optimization properties in order to
  allow Form nesting sounds more like a trick than like a core feature
  
 
  --
  Laurent
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Eelco Hillenius
The fact that Wicket is an unmanaged framework means we put you, the
programmer, in power. If you look at nesting and the way IModel works
you are not limited in your options.

For full power, combine Forms with ListViews and Panels. With panels,
you can postpone any markup/ subcomponent decission until you actually
need it, so this gives you max flexibility (though less
previewability).

Eelco


On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
 Yes I did, but maybe not too deeply I assume.

 I'll try and do what I'm thinking of using Wicket, and then come back
 to the list with questions, if any.

 It seems to me that I haven't seen something as dynamic as what can be
 done with nested (and the page I pointed to was not fair about the
 dynamic possibilities).

 I feel that it is possible to do that with Wicket, maybe it's just I
 guess there are several possibilities to do that, and I'm not sure
 what the best could be, with the hypothesis of an existing domain
 model hierarchy ( monkey/bunches/bananas for example).

 CU,

 --
 Laurent

 On 11/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  Did you take a look at wicket-examples already? Compared to what is
  explained on the page you pointed to, it is very easy in Wicket and
  IMO much more flexibel.
 
  Juergen
 
  On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
   On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
That's easy to do in Wicket. You can nest anyway you want in your
forms, including using listviews (though don't forget to set the
optimizeItemRemoval property to true).
  
   I'll try to redo the struts monkey example in wicket, in order to
   really feel what it is like doing it with Wicket.
  
   By the time : I don't really like the name of the
   setOptimizeItemRemoval method, if I must use this method not only for
   optimization concerns, but also for functional concerns.
   Having a key feature of the view of my application relying on an
   optimization algorithm (as the name of the property implies) isn't
   appealing to me.
  
   For the moment I don't have anything better to suggest, I'm just with
   that feeling that playing with optimization properties in order to
   allow Form nesting sounds more like a trick than like a core feature
   
  
   --
   Laurent
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server. 
   Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
Yes,

I'm currently trying to translate the full powered version of monkey bean :
http://www.keyboardmonkey.com/StrutMonkey/monkey-action.do
( and also this slightly different version, with hide/show buttons :
http://www.keyboardmonkey.com/StrutMonkey/monkey-action-v2.do )

in Wicket.
Very interesting.

A lot of little things I don't know well about Wicket prevent me from
doing this as quickly as I hoped, but it's normal as my first try with
it, I think.

I think when I have understood how to do this with Wicket, I'll be
able to appreciate the power of nesting components.

On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 The fact that Wicket is an unmanaged framework means we put you, the
 programmer, in power. If you look at nesting and the way IModel works
 you are not limited in your options.

 For full power, combine Forms with ListViews and Panels. With panels,
 you can postpone any markup/ subcomponent decission until you actually
 need it, so this gives you max flexibility (though less
 previewability).

 Eelco


 On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
  Yes I did, but maybe not too deeply I assume.
 
  I'll try and do what I'm thinking of using Wicket, and then come back
  to the list with questions, if any.
 
  It seems to me that I haven't seen something as dynamic as what can be
  done with nested (and the page I pointed to was not fair about the
  dynamic possibilities).
 
  I feel that it is possible to do that with Wicket, maybe it's just I
  guess there are several possibilities to do that, and I'm not sure
  what the best could be, with the hypothesis of an existing domain
  model hierarchy ( monkey/bunches/bananas for example).
 
  CU,
 
  --
  Laurent
 
  On 11/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Did you take a look at wicket-examples already? Compared to what is
   explained on the page you pointed to, it is very easy in Wicket and
   IMO much more flexibel.
  
   Juergen
  
   On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote:
On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That's easy to do in Wicket. You can nest anyway you want in your
 forms, including using listviews (though don't forget to set the
 optimizeItemRemoval property to true).
   
I'll try to redo the struts monkey example in wicket, in order to
really feel what it is like doing it with Wicket.
   
By the time : I don't really like the name of the
setOptimizeItemRemoval method, if I must use this method not only for
optimization concerns, but also for functional concerns.
Having a key feature of the view of my application relying on an
optimization algorithm (as the name of the property implies) isn't
appealing to me.
   
For the moment I don't have anything better to suggest, I'm just with
that feeling that playing with optimization properties in order to
allow Form nesting sounds more like a trick than like a core feature

   
--
Laurent
   
   
---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server. 
   Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user