Re: [Wicket-user] Performance test, how do you do it?

2007-04-02 Thread serban.balamaci

We use HtmlUnit. The biggest problem that we had and chose HtmlUnit was the
testing of ajax pages. We could not find anything that was able to handle
the ajax calls. I had some problems, when switching to Wicket  1.2.2 
probably the wicket ajax engine was rewritten after version Wicket 1.2.2,
because I began to get runtime exceptions of javascript processing of the
ajax requests . Either the engine was modified in 1.2.5 or HtmlUnit in
version 1.1(current) was improved cause now it works great.

Thanks Wicket and HtmlUnit.


Nino Wael wrote:
 
 Hi, based on something in another thread,
 (http://www.nabble.com/Flexible-markup-with-same-Java-classes-tf3471204.html#a9689979)
 I was curious on how people does performance test with wicket?
  
 On our project we are using JMeter which we use as a http request
 processor. Which we record requests with and then in order to performance
 test, Jmeter plays the request and checks if responses are correct. At the
 same time JMeter times how long responses take etc. 
  
 Our customer wants to run and rerun the jmeter test over a longer periode,
 when adding content to the system inorder to check how this impacts
 performance. I guess this is normal procedure?
  
 I've looked at Selenium too, but selenium are more a browser testing tool
 that arent able to performance test. I had some trouble using Selenium
 against ajax queries, but you should be able to fix this by calling some
 alternate functions instead.
  
  
 So this is how we do it, how do you do it?
  
  
 regards Nino
 
 -
 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/Performance-test%2C-how-do-you-do-it--tf3504702.html#a9788717
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] error(...) No page found for component

2007-03-31 Thread serban.balamaci

Hi.

I have a problem in that inside the constructor of a page(panel actually) i
invoke a stored procedure which needs to get the model for the panel. The
stored procedure may throw an error message. The error message should be
seen by the user, he can understand what he did wrong. So inside the
constructor i have something like this:

public PanelConstructor() {
  try {
  } catch(UserPresentableException e) {
   error(e.getMessage);
  }
}

The problem is that if the error is thrown i get a No page found for
component. I understand that the cause of the error is that the error
component not being instantiated because of the constructor not being
finished(or i think that's the cause). 

Any ideas of solutions that i can implement? 
I know that i could set wicket to production instead of development and get
rid of the stack trace. The problem is that i would like to keep the error
message - to show the error message back to the user-. Should i instead of
doing error(e.getMessage) rethrow the message inside a new defined exception
and have a custom error page for that exception in which i would show only
the message of the error.

Is there any option that would keep me from treating the errors in the
constructor other than how i treat an error from a button push?

Thanks.



-- 
View this message in context: 
http://www.nabble.com/error%28...%29-No-page-found-for-component-tf3497125.html#a9767935
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] Pass popup parameters from parent page

2007-02-21 Thread serban.balamaci

Thanks


serban.balamaci wrote:
 
 Hi.
 
 I need to open a popup page that displays information that is related to
 parameters in the parent page. For example, a popuppage with a list of
 streets, and in the parent i would have a combo with counties ids, name
 and only the street in that county would be shown in the popup. The
 problem is that i would not want to make an unnecesary trip back to the
 server, but by not doing so the model behind the combo of counties is not
 updated, and an invocation on the onClick method of the link and calling
 combo.getModelObject does not return what was selected, since no data is
 passed to the server. 
 
 I guess that the problem could be solved by using javascript, but i tried
 and found no solutions to how i could pass the parameters without forcing
 the user to first submit the form and then open the popup.
 
 Temporary solution is an update of the model with 
 combo.add(new AjaxFormComponentUpdatingBehavior(onblur) {
   protected void onUpdate(AjaxRequestTarget target) {
   // nothing
   }
   });
 
 Can it be done some other way?
 
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9076917
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] Pass popup parameters from parent page

2007-02-20 Thread serban.balamaci

Thanks for the answer, but how can the searchfield value be retrieved in the
popup?
And will it actually hold the value in the control or the url string of the
component?



Marc-Andre Houle wrote:
 
 here is the way I have done it :
 popupSettings.setTarget (href +  + 'amp;searchfield=' + document. +
 searchForm.getId () + . + textField.getId () + .value);
 
 On 2/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 there is a lot of javascript out there that shows you how to read the
 currently selected item out of a select box

 -igor


 On 2/19/07, serban.balamaci [EMAIL PROTECTED] wrote:
 
 
  Hi.
 
  I need to open a popup page that displays information that is related
 to
  parameters in the parent page. For example, a popuppage with a list of
  streets, and in the parent i would have a combo with counties ids, name
  and
  only the street in that county would be shown in the popup. The problem
  is
  that i would not want to make an unnecesary trip back to the server,
 but
  by
  not doing so the model behind the combo of counties is not updated, and
  an
  invocation on the onClick method of the link and calling
  combo.getModelObject does not return what was selected, since no data
 is
  passed to the server.
 
  I guess that the problem could be solved by using javascript, but i
  tried
  and found no solutions to how i could pass the parameters without
  forcing
  the user to first submit the form and then open the popup.
 
  Can it even be done?
 
  Thanks.
  --
  View this message in context:
 
 http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9041563
  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
 
 

-- 
View this message in context: 
http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9056928
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] Pass popup parameters from parent page

2007-02-19 Thread serban.balamaci

Hi.

I need to open a popup page that displays information that is related to
parameters in the parent page. For example, a popuppage with a list of
streets, and in the parent i would have a combo with counties ids, name and
only the street in that county would be shown in the popup. The problem is
that i would not want to make an unnecesary trip back to the server, but by
not doing so the model behind the combo of counties is not updated, and an
invocation on the onClick method of the link and calling
combo.getModelObject does not return what was selected, since no data is
passed to the server. 

I guess that the problem could be solved by using javascript, but i tried
and found no solutions to how i could pass the parameters without forcing
the user to first submit the form and then open the popup.

Can it even be done?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9041563
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