DOUBT Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Hi All,

  I was a beginner to wicket. I have some doubts and questions
abt wicket.

Questions:
1) What are the advantages of wicket over Struts, Springs, Tapestry,
Stripes?

2) What is the main advantages of Wicket?

3) Where the wicket can be used in real time scenario?

4) For which database it suits gud?

5) Which framework is best on performance view?

6) Why wicket has to be used?

Doubts:

Now i'm developing a web application project for feeding data  generating
report for it. For feeding data, i have to give login for every users.
according  a scenario at a time multiple concurrent users ll feed data. For
this which java technology ll be more effective, powerful, efficient? which
framework s best for this?

another scenario is i have to ensure that one user can login at only one
system, he should login at another system on the same time. tat is one user
can have one sessin at one system at a time. he can login to another to
another system at a same time if he tries means an error should be thrown.
for this vat i've to do? can u offer some sample code?

Where EJB can be used? What is the difference in using EJB over frameworks
like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
frameworks with EJB?

which one ll be more faster in execution?


Waiting for ur favorable reply/



Thanking you,
With regards,
Shunmuga Raj.P


Re: DOUBT Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Thanks. I ll look into it

On 8/25/11, Josh Kamau joshnet2...@gmail.com wrote:
 Hi there,

 Please go to www.stackoverflow.com and you will see many such questions.
 Just search for wicket over there.

 Josh.

 On Thu, Aug 25, 2011 at 10:08 AM, Shunmuga Raj
 shunmugaraa...@gmail.comwrote:

 Hi All,

  I was a beginner to wicket. I have some doubts and questions
 abt wicket.

 Questions:
 1) What are the advantages of wicket over Struts, Springs, Tapestry,
 Stripes?

 2) What is the main advantages of Wicket?

 3) Where the wicket can be used in real time scenario?

 4) For which database it suits gud?

 5) Which framework is best on performance view?

 6) Why wicket has to be used?

 Doubts:

 Now i'm developing a web application project for feeding data  generating
 report for it. For feeding data, i have to give login for every users.
 according  a scenario at a time multiple concurrent users ll feed data.
 For
 this which java technology ll be more effective, powerful, efficient?
 which
 framework s best for this?

 another scenario is i have to ensure that one user can login at only one
 system, he should login at another system on the same time. tat is one
 user
 can have one sessin at one system at a time. he can login to another to
 another system at a same time if he tries means an error should be thrown.
 for this vat i've to do? can u offer some sample code?

 Where EJB can be used? What is the difference in using EJB over frameworks
 like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
 frameworks with EJB?

 which one ll be more faster in execution?


 Waiting for ur favorable reply/



 Thanking you,
 With regards,
 Shunmuga Raj.P



-- 
Sent from my mobile device

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



Re: DOUBT Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Thanks a lot Andrea Del Bene. U gave answers for most of ma queries. I was
quite clarified in it. thanks again

On Thu, Aug 25, 2011 at 3:06 PM, Andrea Del Bene adelb...@ciseonweb.itwrote:

 Hi Shunmuga,

 based on my experience:

 1) What are the advantages of wicket over Struts, Springs, Tapestry,

 Stripes?

 2) What is the main advantages of Wicket?

 The frameworks you have listed are based on MVC frameworks. Wicket is a
 component oriented framework, like GWT or Vaadin.
 This kind of frameworks  are pretty similar to desktop GUI frameworks like
 Swing, meaning that they and offer an object oriented abstraction of web
 entities like pages, forms, input components and so on.  The difference
 between Wicket and MVC frameworks is well explained here:

 https://cwiki.apache.org/**WICKET/#Index-AboutWickethttps://cwiki.apache.org/WICKET/#Index-AboutWicket


 3) Where the wicket can be used in real time scenario?


 4) For which database it suits gud?

 Wicket is database-agnostic. You can integrate it with your favorite ORM o
 JDBC framework.

  5) Which framework is best on performance view?

 6) Why wicket has to be used?

 Wicket is ideal for pages with a complex behavior ( usually pages with
 some AJAX) and when you have to manage a lot of user data


 Now i'm developing a web application project for feeding data  generating
 report for it. For feeding data, i have to give login for every users.
 according  a scenario at a time multiple concurrent users ll feed data.
 For
 this which java technology ll be more effective, powerful, efficient?
 which
 framework s best for this?

 another scenario is i have to ensure that one user can login at only one
 system, he should login at another system on the same time. tat is one
 user
 can have one sessin at one system at a time. he can login to another to
 another system at a same time if he tries means an error should be thrown.
 for this vat i've to do? can u offer some sample code?

 Where EJB can be used? What is the difference in using EJB over frameworks
 like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
 frameworks with EJB?


 Yes, you can use these framework with EJB specification. Obviously if you
 use Spring you are likely to use the whole framework instead of EJB

 .

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




Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Shunmuga Raj
Hi all,

  I'm new to Wicket. Can you help me to know what is wicket  how it
works? pls ppl's mail me the links for it's tutorials and learning path. Now
i'm using Netbeans 6.9,7.0 so pls share the plugins for it too, Thanks in
advance

On Fri, Aug 19, 2011 at 11:28 PM, Mike Müller wicket-m...@gmx.de wrote:

 If i'm not completely wrong is tester.clickLink(path) a wrapper for
 tester.clickLink(path, isAjax = true). So you get an ajax response.
 You can check that by calling tester.dumpPage().

 The problem is that wicket tester only works on page markup. It is not
 working on ajax response markup (at least i didn't get it to work.
 Once i've wrote an extractor. Maybe that helps you to.

 code
 package de.frontend.wicket.testtools;

 public final class AjaxResponseComponentMarkup {

private final String _ajaxResponseMarkup;
private final int _componentTagStartPosition;
private final int _componentTagEndPosition;

public AjaxResponseComponentMarkup(String ajaxResponseMarkup) {
_ajaxResponseMarkup = ajaxResponseMarkup;
_componentTagStartPosition =
 _ajaxResponseMarkup.indexOf(component);
_componentTagEndPosition =
 _ajaxResponseMarkup.indexOf(/component);
}

public String extract() {
StringBuilder result = new StringBuilder();
if (hasComponentTag()) {

  
 result.append(_ajaxResponseMarkup.substring(startOfAjaxResponseComponentMarkup(),
 endOfAjaxResponseComponentMarkup()));
}
return result.toString();
}

private int startOfAjaxResponseComponentMarkup() {
String cdataTag = ![CDATA[;
return _ajaxResponseMarkup.indexOf(cdataTag,
 _componentTagStartPosition) + cdataTag.length();
}

private int endOfAjaxResponseComponentMarkup() {
String cdataTag = ]];
return
 _ajaxResponseMarkup.substring(_componentTagStartPosition,
 _componentTagEndPosition).lastIndexOf(cdataTag) +
 _componentTagStartPosition;
}

private boolean hasComponentTag() {
return _componentTagStartPosition != -1;
}
 }
 /code
 This is only extracting the markup in CDATA of ajax response.
 Use it this way:

 code

private void assertExpandedNodeAt(int row) {
ListTagTester t = TagTester.createTagsByAttribute(new
 AjaxResponseComponentMarkup(_tester.getServletResponse().getDocument()).extract(),
 wicketpath,
brdPage_availability_tariffTable_rows_ +
 row + _cells_1_cell_junction, true);
Assert.assertTrue(Node  + row +  is collapsed,
 t.get(0).getAttributeIs(class, tree-junction-expanded));
}
 /code

 Please see TagTester.createTagsByAttribute for concrete parameters
 required.

 Maybe someone else has a better approach. But for me this was working.

 Hth
 Mike

  Original-Nachricht 
  Datum: Fri, 19 Aug 2011 18:38:43 +0200
  Von: Mathilde Pellerin mathilde.pelle...@statlife.fr
  An: users@wicket.apache.org
  Betreff: Re: how to test what radio is checked in a radiogroup?

  hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink),
  but then there is no Ajax.
  This is the entire test, maybe it can help :
 
  @SuppressWarnings(unchecked)
  @Test @Transactional @Rollback
  public void
 testStory23_TA21_VerificationInitialisationBoutonsRadio(){
  tester.startPage(RecapitulatifQuestionnairePage.class);
  tester.assertRenderedPage(RecapitulatifQuestionnairePage.class);
  tester.clickLink(questionnaireEnCours:1:modifier);
  tester.assertRenderedPage(CreationQuestionnairePage.class);
 
  FormQuestionnaire form = (FormQuestionnaire)
  tester.getComponentFromLastRenderedPage(
  formCreationQuestionnaire);
 
  //On vérifie que le formulaire est préremplie avec le
  questionnaire
  sélectionné
  Questionnaire qObtenu = form.getModelObject();
  Assert.assertNotNull(qObtenu);
 
  //Vérification du sexe des destinataires
  String genreAttendu = qObtenu.getSexeDestinataire().toString();
  String genreObtenu =
  ((RadioGroupString)form.get(genre)).getDefaultModelObjectAsString();
  Assert.assertEquals(genreAttendu, genreObtenu);
 
  TagTester tagFemme =
  tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
  TagTester tagHomme =
  tester.getTagByWicketId(formCreationQuestionnaire:genre:homme);
  TagTester tagMixte =
  tester.getTagByWicketId(formCreationQuestionnaire:genre:mixte);
  tester.debugComponentTrees();
  Assert.assertNotNull(tagFemme);
 
  Assert.assertTrue(tagFemme.hasAttribute(checked));
  Assert.assertFalse(tagHomme.hasAttribute(checked));
  Assert.assertFalse(tagMixte.hasAttribute(checked));
  }

 --
 Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und 

Wicket Basics.

2011-08-19 Thread Shunmuga Raj
Hi Per Newgro,

  Thanks for your valuable information.  I dont
know wicket basics also. If u have any tuorials or tutorial links
means pls send me. I downloaded some files for netbeans plugin from
IDE Plugins link.  But i dont know how to install it. Do you small
program to understand the wicket easily. If so means, pls send those
things to these id's.

Thanks in advance
On 8/19/11, Per Newgro per.new...@gmx.ch wrote:
 Welcome to wicket Shunmuga

 Did you check the website http://wicket.apache.org already. It's all there.
 Check the wiki, component examples and books section.

 Hope you have fun with wicket

 Cheers
 Per

 -
 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