Re: [Wicket-user] Joost uses Wicket

2007-03-17 Thread ZedroS Schwart
Regarding static content, is it such a big issue to have some wicket
html pages with empty classes behind ?

Thanks in advance
ZedroS

On 3/15/07, Ryan [EMAIL PROTECTED] wrote:
 It is definitely possible. First make sure you are running 1.2.5 or
 better (this will fix a bug where posts did not have a '/' after the
 context name if you choose to deploy the application with a non root
 context). Map your servlet to '/*' ... Next, deploy. =)

 The only other issue to worry about is how to serve static content. My
 preference is to frontend tomcat or jetty with apache and have apache
 serve anything located at /images or /css etc. This means in wicket if
 I want to create an image tag that refers to a static image I create a
 url that references /images/filename.jpg. When deploying with apache
 this will be served by apache and when running without apache I deploy
 a static web application to the /images context. This has proven to
 work very well for the last few projects I have worked on.

 Ryan

 On 3/12/07, cowwoc [EMAIL PROTECTED] wrote:
 
  My point is that you can't do that with Wicket, unless you know
  something I don't...?
 
  Gili
 
  Ryan wrote:
   In any public application I deploy I remove the servlet context path
   (wicket or no wicket).
  
   Ryan
  
   On 3/12/07, cowwoc [EMAIL PROTECTED] wrote:
   If they use Wicket why doesn't it show at all on their website at
   joost.com? I am expecting to at least see some evidence of a servlet
   context path...
  
   Gili
  
   Brian Topping wrote:
   Here I thought they were cool, then they use Ant?!?
  
   :b
  
   On Mar 12, 2007, at 8:45 AM, mraible wrote:
  
   Thought y'all might be interested:
  
   http://opensource.joost.com/
  
   Joost is a new company started by the founders of Skype:
  
   http://en.wikipedia.org/wiki/Joost
  
   Matt
   --
   View this message in context: http://www.nabble.com/Joost-uses-
   Wicket-tf3390296.html#a9437082
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   --
   ---
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
   http://www.techsay.com/default.php?
   page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys-and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys-and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys-and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief 

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread ZedroS Schwart
Thanks Jonathan for the tip.

I've now read on the wiki about it and this detachable compound
property model seems the best way to do (or even the Detachable
BoundCompoundPropertyModel !) .

I've just a question (a newbe one as usual lol) : how does wicket work
with non detachable models ? They're kept during the whole user
session even if they're updated every time there is a new access to
the page to whom they're linked ?

Thanks again
ZedroiS


On 3/17/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 you don't have to choose.  you can wrap a compoundpropertymodel around a
 detachablemodel and get both access convenience and detachability.  wicket
 models are much more flexible and powerful than most people realize at
 first.


 ZedroS Schwart wrote:
 
  Thanks for your comment Igor, I really appreciate.
 
  Just some questions : do you use CompoundPropertyModel or the detachable
  one ?
 
  For the form beans, the user profile page I'm working on really proves
  you right. I was willing at first to avoid yet another bean but in
  fact it seems indeed to be the easiest way.
 
  For the optimistic locking, I've read
  http://www.hibernate.org/hib_docs/reference/en/html/transactions.html#transactions-optimistic
  Is it what you had in mind ?
 
  Thanks again
 
  ZedroS
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/Re%3A-Hibernate-Spring-and-Wicket-architecture-%22request-for-validation%22-%28was-Wicket%27s-questions%29-tf3405475.html#a9526281
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] colored labels in validation error

2007-03-17 Thread Wouter de Vaal
Hi,

Is there a wicket standard way to have input label have a special
style (e.g. color: red) when the corresponding input field validation
fails?

Thanx,
Wouter

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] colored labels in validation error

2007-03-17 Thread Martijn Dashorst
field.add(new AttributeModifier(class, true, new Model() {
public Object getObject(Component c) {
return ((FormComponent)c).isValid() ?  : error;
}
}
);

Should work. Provided you do:
.error { background-color : red; }
in your stylesheet.

Martijn

On 3/17/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
 Hi,

 Is there a wicket standard way to have input label have a special
 style (e.g. color: red) when the corresponding input field validation
 fails?

 Thanx,
 Wouter

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] colored labels in validation error

2007-03-17 Thread Wouter de Vaal
Thanx.

It works with the modification that getObject(Component c) is not a
part of Model anymore in the wicket version that I use (a 2.0
snapshot).

Wouter

On 3/17/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 field.add(new AttributeModifier(class, true, new Model() {
 public Object getObject(Component c) {
 return ((FormComponent)c).isValid() ?  : error;
 }
 }
 );

 Should work. Provided you do:
 .error { background-color : red; }
 in your stylesheet.

 Martijn

 On 3/17/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a wicket standard way to have input label have a special
  style (e.g. color: red) when the corresponding input field validation
  fails?
 
  Thanx,
  Wouter
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Learn Wicket at ApacheCon Europe: http://apachecon.com
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.5 will keep your server alive. Download Wicket now!
 http://wicketframework.org

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Jonathan Locke


Non-detachable models probably are not the best way to work
with a database.  And since they can't be detached, your whole 
model stays in the session the whole time, while the detachable 
ones shrink to a few bytes (object header + id + transient slot)
when they are detached by Wicket after each request.


ZedroS Schwart wrote:
 
 Thanks Jonathan for the tip.
 
 I've now read on the wiki about it and this detachable compound
 property model seems the best way to do (or even the Detachable
 BoundCompoundPropertyModel !) .
 
 I've just a question (a newbe one as usual lol) : how does wicket work
 with non detachable models ? They're kept during the whole user
 session even if they're updated every time there is a new access to
 the page to whom they're linked ?
 
 Thanks again
 ZedroiS
 
 
 On 3/17/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 you don't have to choose.  you can wrap a compoundpropertymodel around a
 detachablemodel and get both access convenience and detachability. 
 wicket
 models are much more flexible and powerful than most people realize at
 first.


 ZedroS Schwart wrote:
 
  Thanks for your comment Igor, I really appreciate.
 
  Just some questions : do you use CompoundPropertyModel or the
 detachable
  one ?
 
  For the form beans, the user profile page I'm working on really proves
  you right. I was willing at first to avoid yet another bean but in
  fact it seems indeed to be the easiest way.
 
  For the optimistic locking, I've read
 
 http://www.hibernate.org/hib_docs/reference/en/html/transactions.html#transactions-optimistic
  Is it what you had in mind ?
 
  Thanks again
 
  ZedroS
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Re%3A-Hibernate-Spring-and-Wicket-architecture-%22request-for-validation%22-%28was-Wicket%27s-questions%29-tf3405475.html#a9526281
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Hibernate-Spring-and-Wicket-architecture-%22request-for-validation%22-%28was-Wicket%27s-questions%29-tf3405475.html#a9529946
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Trim user input

2007-03-17 Thread genepi

Hi,

Is there a way to specify that user input in a text field component has to
be trimmed from white spaces, before the field content is transfered in the
model?
I haven't found a AbstractTextComponent.setTrimmed(boolean trim) method.
Neither a TrimStringConverter class...

-- Pierre Métras
-- 
View this message in context: 
http://www.nabble.com/Trim-user-input-tf3419902.html#a9531558
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Trim user input

2007-03-17 Thread genepi

Hi again,

Forget about it. I couldn't post a message and search the list at the same
time. Wicket already trim input the way I need it...

-- Pierre Métras

-- 
View this message in context: 
http://www.nabble.com/Trim-user-input-tf3419902.html#a9531712
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Example 1.2.5 Tree problem

2007-03-17 Thread Ryan Holmes
I think this is WICKET-281: http://issues.apache.org/jira/browse/ 
WICKET-281

It's fixed but I'm not sure when 1.2.6 will be released.

-Ryan

On Mar 16, 2007, at 3:18 AM, Robert . wrote:

 Hi,

 I noticed a problem on the Tree pages of wicket-examples.1.2.5
 If you do some actions on one of the tree pages and then switch to  
 another page, then the WICKET AJAX DEBUG link is not available, and  
 the tree does not work.
 For example:
 1) Goto Simple tree
 2) Click Expand all nodes
 3) Goto Tree table

 It's always reproducable in both IE and Firefox. I use Tomcat 5.5.20
 Should I file a JIRA issue?

 Robert

 -- 
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to  
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php? 
 page=join.phpp=sourceforgeCID=DEVDEV 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Erik van Oosten
Still, if you know what you are doing non-detachable models may be 
appropriate. For example, I have used them for some slow-to-get database 
query results. But I also wrote my own custom cached page invalidator to 
make sure these results do not stay around for too long.

Regards,
Erik.

Jonathan Locke wrote:
 Non-detachable models probably are not the best way to work
 with a database.  And since they can't be detached, your whole 
 model stays in the session the whole time, while the detachable 
 ones shrink to a few bytes (object header + id + transient slot)
 when they are detached by Wicket after each request.

   

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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Eelco Hillenius
They are also good for when you work with value objects ('thin'
representations of the your domain objects).

Eelco

On 3/17/07, Erik van Oosten [EMAIL PROTECTED] wrote:
 Still, if you know what you are doing non-detachable models may be
 appropriate. For example, I have used them for some slow-to-get database
 query results. But I also wrote my own custom cached page invalidator to
 make sure these results do not stay around for too long.

 Regards,
 Erik.

 Jonathan Locke wrote:
  Non-detachable models probably are not the best way to work
  with a database.  And since they can't be detached, your whole
  model stays in the session the whole time, while the detachable
  ones shrink to a few bytes (object header + id + transient slot)
  when they are detached by Wicket after each request.
 
 

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


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry - Wicket | Action Service

2007-03-17 Thread Ryan Holmes

On Mar 16, 2007, at 5:46 AM, Robert . wrote:


 However what if I don't have a component and
 there is some javascript that wants to change the page? I'll try to  
 write about this more in the other replies in this thread.
What causes the JavaScript to change the page? Does it happen in  
response to a user event or what? An example would be helpful.

I'm wondering why you need custom javascript outside of a component  
and if there isn't a better approach to the problem in Wicket...

-Ryan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-17 Thread Ryan Holmes
DropDownChoice.setNullValid(true)

And remember that for a null valid drop down choice, Wicket will  
look up a localized string with the key nullValid (rather than  
null) to represent the null option.

Also see the JavaDocs for DropDownChoice and it's superclasses, plus  
this wiki page: http://cwiki.apache.org/WICKET/dropdownchoice- 
examples.html

-Ryan

On Mar 16, 2007, at 1:55 PM, GS-ikiini wrote:


 hey,

 is there way to get the select one option to remain in the  
 selection list
 after the user has made a selection?

 -B


 igor.vaynberg wrote:

 the id of dropdowns has nothing to do with their model. i am not  
 using a
 compound property model anywhere in the code, nor am i not  
 specifying it
 directly.

 the model for each dropdown is specified as a propertymodel where  
 this
 refers to the page and the string refers to the property on that  
 page.

 so the selected user object will go into the user page property,  
 and the
 selected logtype will go into the page's logtype property just  
 like the
 property models specify.

 then your dataprovider picks up those two properties and uses them to
 filter
 the result just like the code shows.

 the models are just glue between formcomponent and properties on  
 some java
 bean - which in this case happens to be the page.

 -igor


 On 3/16/07, GS-ikiini [EMAIL PROTECTED] wrote:


 let me make sure i understand..
 add(new DropDownChoice(users,new PropertyModel(this,  
 user),));
 the Property model returns the User model. and the id of this
 dropdownchoice
 is used to access that model? so get or setUsers on the User user of
 this?
 if that is correct. can i do  add(new DropDownChoice(users,new
 PropertyModel(mydataprovider, user),)); and get a model  
 that is a
 property over there set to something?

 let me give a bit more detail..

 I have a filter in my dataprovider that searches my DB using a  
 service
 that
 takes users and logTypes and returns a list. thats why i need to  
 set them
 in
 there. I have a list of all the users tied to a list and all the log
 types
 tied to a list in the web page. i just want to take the once  
 selected and
 hand it to the dataprovider who will give me back a list of all the
 process
 matching those 2 models it was given. I understand what you said  
 but just
 need some clarity on weither or not it would work in the way i am  
 doing
 it.
 or is there another way i should be approaching the problem.  
 Thank you
 for
 you repeated assistance.

 -B
 .

 igor.vaynberg wrote:

 once you understand models it becomes quiet trivial :)
 below is the simple way (without using a compound property model)

 class mypage extends webpage {
 private user user;
 private logtype logtype;
 // getters setters (only necessary in 1.2.x, in later wicket will
 access
 private properties through property model)

 public mypage() {
   form form=new form();
   add(new DropDownChoice(users,new PropertyModel(this,
 user),));
   add(new DropDownChoice(logtypes, new PropertyModel(this,
 logtype),...));

add(new DataView(results,new MyDataProvider(),...
...


   private class MyDataProvider implements IDataProvider {
   public Iterator iterator(int f,int c) {
   return getlogs(user,logtype);
}
}
 }

 and thats all she wrote. makes sense?

 -igor




 On 3/15/07, GS-ikiini [EMAIL PROTECTED] wrote:


 The popilateItem as i know it is used within the dataview. That  
 part i
 understand. let me re-explain myself.

 on my webpage class, i have a dataview component. i also have a
 dropdownview
 component . they are both children of a form component. i have  
 a beans
 user,
 log and logtype. (I am using wicket along with spring.). now in my
 webpage
 i have a drop down class whic implements dropdownchoice. the  
 list for
 the
 drop down is generated earlier in the webpage class. i have a drop
 down
 for
 the user. and a drop down for the log type. I want to get the user
 selection
 for these two, tie it back to the appropriate bean then set those
 beans
 in
 the implementation of the dataprovider then use the  
 implementation of
 the
 data provider as the model for the dataview. My problem lies is
 getting
 the
 user selection from the drop down. I can't seem get it without  
 having
 a
 model to tie it to.



 igor.vaynberg wrote:

 first of all the dataprovider is a readonly interface, it has  
 no set
 method
 like the model.

 that said what you want is simple:

 populateitem(item item) {
final imodel namemodel=new propertymodel(item.getmodel(),
 name);
add(new dropdownchoice(names,namemodel,nameslist));
 }

 -igor


 On 3/15/07, GS-ikiini [EMAIL PROTECTED] wrote:


 i seei have a fair understaning of models this is what i am
 doing:
 I
 have
 a dataprovider that services a dataview. this data provider  
 is the
 the
 model
 that i ultimately need to update. however the properties within
 this
 are
 beans i need to set them using the selection from the  
 dropdown. so
 fo
 

Re: [Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-17 Thread Johan Compagner

Those exceptions do happen when the browser terminates the connection
So if you do an ajax request and then press the stop button? Or click on
another link when
the ajax request is still happening?
Then the browser will close the connection and then you get that connection
reset by peer

johan


On 3/15/07, Matej Knopp [EMAIL PROTECTED] wrote:


I've got no clue about those exception. There is problem with current
wicket's output stream (it's obvious even in wicket-examples.
Reverting back to default helps here).

But. There is bigger problem than this. The problem with two different
instances of one page. I don't see easy solution for this. Normally,
this is not an issue, because if you keep page instance, you usually
call setResposnePage(instance) to get to it. However, this is not the
case with modal window. So if you keep reference to modal window page,
and then change it's state, it won't help you, because wicket reads
the serialized age anyway.



On 3/15/07, ChuckDeal [EMAIL PROTECTED] wrote:

 A Page, with a private final ModalWindow reference.

 Also, the more I used the ModalWindow in a Tomcat session (between start
and
 stop of server) the less of the exceptions I see.  In one case where I
was
 constantly loading the ModalWindow, I stopped getting those
exceptions!  I
 didn't get the chance to debug it further because my top priority was
 figuring out what had changed since the last time my code worked.

 Chuck


 Matej Knopp-2 wrote:
 
  This really is strange. Do you have panel inside the window or a page?
 
  -Matej
 
  On 3/15/07, ChuckDeal [EMAIL PROTECTED] wrote:
 
  Yeah, already tried that :)  I knew there was something else I was
  supposed
  to say in that last post...
 
  On a side note, I don't know if this is related, but I get a bunch of
the
  following exceptions just by opening my ModalWindow, regardless of
the
  SessionStore or ObjectStream:
 
  12:39:42,537 ERROR RequestCycle:1096 - ClientAbortException:
  java.net.SocketException: Connection reset by peer: socket write
error
  wicket.WicketRuntimeException: ClientAbortException:
  java.net.SocketException: Connection reset by peer: socket write
error
  at wicket.Response.write(Response.java:308)
  at
  wicket.request.target.resource.ResourceStreamRequestTarget.respond(
ResourceStreamRequestTarget.java:125)
  at
  wicket.request.AbstractRequestCycleProcessor.respond(
AbstractRequestCycleProcessor.java:102)
  at wicket.RequestCycle.respond(RequestCycle.java:1001)
  at wicket.RequestCycle.step(RequestCycle.java:1074)
  at wicket.RequestCycle.steps(RequestCycle.java:1138)
  at wicket.RequestCycle.request(RequestCycle.java:474)
  at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
:256)
  at
  wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:137)
  at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
  at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
  at
  org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
  at
  org.apache.catalina.valves.FastCommonAccessLogValve.invoke(
FastCommonAccessLogValve.java:495)
  at
  org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
  at
  org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
  at
  org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
  at
  org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
  at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
  at
 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
  at
  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
  at
  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595)
  Caused by: ClientAbortException:  java.net.SocketException:
Connection
  reset
  by peer: socket write error
  at
  org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java
:327)
  at
  org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java
:293)
  at
  org.apache.catalina.connector.CoyoteOutputStream.flush(
CoyoteOutputStream.java:97)
  at wicket.Response.write(Response.java:304)
  ... 23 more
  Caused by: java.net.SocketException: Connection reset by peer: socket
  write
  error
  at java.net.SocketOutputStream.socketWrite0(Native Method)
  at