Lazyloading node in LinkTree

2011-05-27 Thread Mathias Nilsson
Hi, 

I'm using the LinkTree for navigation and will in some cases have lots of
data so therefor I want to Lazy load the children of a parent. So far I have
extended the DefaultMutableTreeNode and overridden isLeaf to fake if a node
have children. Now I want to show a spinner in the tree add the children and
remove the spinner. 
Where would be the best way of doing this? 

I have added a treeStateListener add in the nodeExpanded added children to
the node but here there is no AjaxRequestTarget. If see that BaseTree has 

protected Component newJunctionLink(MarkupContainer parent, final String id,
final Object node); 

Will this be the correct way of Lazy loading children with a spinner?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Lazyloading-node-in-LinkTree-tp3554470p3554470.html
Sent from the Users forum 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 session statistics

2011-05-27 Thread KingFee Dong
Hello,

I think I find it getLiveSessions() can give me some help!

Thank you both!

Good Luck !

在 2011年5月27日 下午1:47,Tobias Gierke tobias.gie...@code-sourcery.de写道:

 Hi,

 Implement a

 http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html
 and put it in your web.xml.

 Regards,
 Tobias

  Hello,
 
  Maybe I found it,LiveSessionsPage.java ,it can count peak session,but not
  what i want.
 
  I want to count the online users,
 
  for example there a three users here, if somtime a user had closed his(or
  her) web browser this session number is two now
 
 
  How can I do it ?
 
  Thanks!
 
 
  2011/5/26 Martin Grigorov mgrigo...@apache.org
 
  Look deeper. This info is also provided.
 
  2011/5/26 KingFee Dong kingfee.d...@gmail.com:
  I found that DebugBar panel in wicket-devutils.jar is also talk about
  size
  of one session.
 
  What I want to count  is unexpired sessions in the wicket application.
 
  just like a forum,count the online users
 
  Thanks !
 
 
  2011/5/26 Martin Grigorov mgrigo...@apache.org
 
  Also Tomcat comes with ManagerApplication which provides such kind of
  information for all deployed apps
 
  On Thu, May 26, 2011 at 12:05 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
  see DebugBar panel in wicket-devutils.jar
 
  2011/5/26 KingFee Dong kingfee.d...@gmail.com:
  hello,
 
  Maybe my question is not very clear.
 
 
   I want to Statistics  Session Numbers, I mean the sessions in the
  application.
 
  for example there are two users online the session should be 2.
 
  Can anyone give me some solutions ?
 
  Thank you all the same,Martin Grigorov!
 
  Good Luck !
 
  2011/5/26 Martin Grigorov mgrigo...@apache.org
 
  org.apache.wicket.Session.getSizeInBytes()
 
  2011/5/26 KingFee Dong kingfee.d...@gmail.com
 
  Hi,EVERYONE
 
  I am a newer  to wicket ,now i  want to statistics session,how can
  i
  do
  it?
  Can anyone give me some suggestion ?
 
 
  Thanks!
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com http://jweekend.com/ http://jweekend.com/
 http://jweekend.com/
 
 
 
  --
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com http://jweekend.com/ http://jweekend.com/
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com http://jweekend.com/ http://jweekend.com/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
   Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com http://jweekend.com/ http://jweekend.com/
  
  -
  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: WicketTester and error messages

2011-05-27 Thread Mathilde Pellerin
no, it doesn't work. I have this error :
org.apache.wicket.WicketRuntimeException: No AjaxEventBehavior found on
component: ajaxSubmitLogin which matches the event: onClick

And it is true that I have not add AjaxEventBehavior to my AjaxButton : I
just override the onSubmit method of my Ajax Button.

2011/5/26 Per Newgro per.new...@gmx.ch

 As far as i understood this, FormTester submit is only for pushing the data
 from
 component to model. If you wait for the component to be executed the js
 event
 has to be executed.

 Is it working if you do an WicketTester.executeAjaxEvent(id, onclick);
 ?

 Cheers
 Per


  Hi all,

 I am testing a form with FormTester and WicketTester.
 When I test error messages which are send by form validation, test works
 well :
 tester.assertErrorMessages(new String[] {Le champ 'Identifiant' est
 obligatoire.});

 but when I test error message which is send by my submit ajaxButton, test
 fail : no error is sent.
 When I test application manually, this error appears in feedBackPanel.
 I don't understand why error is not sent when application is used by
 wicketTester.

 This is my submit button code :
 AjaxButton submitbutton = new AjaxButton(ajaxSubmitLogin) {

 @Override
 protected void onSubmit(AjaxRequestTarget target, Form?
  form)
 {
 Membre modelObject = (Membre) form.getModelObject();
 Membre membre;

 membre = serviceIdentif.identifier(modelObject.getId(),
 modelObject.getPassword());
 if(membre == null)
 error(Identifiant ou mot de passe incorrect);
 else
 setResponsePage(TableauBordPage.class);
 }

 @Override
 protected void onError(AjaxRequestTarget target, Form?
  form) {
 target.addComponent(feedBackPanel);
 }
 }

 and my test code
 FormTester formTester =
 tester.newFormTester(loginForm.getPageRelativePath());
 formTester.setValue(membreId, benj);
 formTester.setValue(password, password);
 formTester.submit(ajaxSubmitLogin);

 tester.assertErrorMessages(new String[] {Identifiant ou mot de
 passe incorrect});



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




-- 
 Mathilde Pellerin  Ingénieur en Génie Logiciel  Tél mobile :
06.60.78.79.03   E-mail
: mathilde.pelle...@gmail.com   Mon CV en ligne :
http://www.mathilde-pellerin.fr/ http://www.mathilde-pellerin.fr/Mes
liens :  http://www.viadeo.com/fr/profile/mathilde.pellerin
http://fr.linkedin.com/in/mathildepellerin


Re: WicketTester and error messages

2011-05-27 Thread Martin Grigorov
AjaxButton has AjaxFormSubmitBehavior which is AjaxEventBehavior
It should be able to find it

On Fri, May 27, 2011 at 10:17 AM, Mathilde Pellerin
mathilde.pelle...@gmail.com wrote:
 no, it doesn't work. I have this error :
 org.apache.wicket.WicketRuntimeException: No AjaxEventBehavior found on
 component: ajaxSubmitLogin which matches the event: onClick

 And it is true that I have not add AjaxEventBehavior to my AjaxButton : I
 just override the onSubmit method of my Ajax Button.

 2011/5/26 Per Newgro per.new...@gmx.ch

 As far as i understood this, FormTester submit is only for pushing the data
 from
 component to model. If you wait for the component to be executed the js
 event
 has to be executed.

 Is it working if you do an WicketTester.executeAjaxEvent(id, onclick);
 ?

 Cheers
 Per


  Hi all,

 I am testing a form with FormTester and WicketTester.
 When I test error messages which are send by form validation, test works
 well :
 tester.assertErrorMessages(new String[] {Le champ 'Identifiant' est
 obligatoire.});

 but when I test error message which is send by my submit ajaxButton, test
 fail : no error is sent.
 When I test application manually, this error appears in feedBackPanel.
 I don't understand why error is not sent when application is used by
 wicketTester.

 This is my submit button code :
         AjaxButton submitbutton = new AjaxButton(ajaxSubmitLogin) {

             @Override
             protected void onSubmit(AjaxRequestTarget target, Form?
  form)
 {
                 Membre modelObject = (Membre) form.getModelObject();
                 Membre membre;

                 membre = serviceIdentif.identifier(modelObject.getId(),
 modelObject.getPassword());
                 if(membre == null)
                     error(Identifiant ou mot de passe incorrect);
                 else
                     setResponsePage(TableauBordPage.class);
             }

             @Override
             protected void onError(AjaxRequestTarget target, Form?
  form) {
                 target.addComponent(feedBackPanel);
             }
         }

 and my test code
         FormTester formTester =
 tester.newFormTester(loginForm.getPageRelativePath());
         formTester.setValue(membreId, benj);
         formTester.setValue(password, password);
         formTester.submit(ajaxSubmitLogin);

         tester.assertErrorMessages(new String[] {Identifiant ou mot de
 passe incorrect});



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




 --
  Mathilde Pellerin  Ingénieur en Génie Logiciel  Tél mobile :
 06.60.78.79.03   E-mail
 : mathilde.pelle...@gmail.com   Mon CV en ligne :
 http://www.mathilde-pellerin.fr/ http://www.mathilde-pellerin.fr/    Mes
 liens :  http://www.viadeo.com/fr/profile/mathilde.pellerin
 http://fr.linkedin.com/in/mathildepellerin




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: WicketTester and error messages

2011-05-27 Thread Mathilde Pellerin
Yeah ! it's work : my mistake, I wrote onClick and not onclick...

Thanks a lot for your help !


2011/5/27 Martin Grigorov mgrigo...@apache.org

 AjaxButton has AjaxFormSubmitBehavior which is AjaxEventBehavior
 It should be able to find it

 On Fri, May 27, 2011 at 10:17 AM, Mathilde Pellerin
 mathilde.pelle...@gmail.com wrote:
  no, it doesn't work. I have this error :
  org.apache.wicket.WicketRuntimeException: No AjaxEventBehavior found on
  component: ajaxSubmitLogin which matches the event: onClick
 
  And it is true that I have not add AjaxEventBehavior to my AjaxButton : I
  just override the onSubmit method of my Ajax Button.
 
  2011/5/26 Per Newgro per.new...@gmx.ch
 
  As far as i understood this, FormTester submit is only for pushing the
 data
  from
  component to model. If you wait for the component to be executed the js
  event
  has to be executed.
 
  Is it working if you do an WicketTester.executeAjaxEvent(id,
 onclick);
  ?
 
  Cheers
  Per
 
 
   Hi all,
 
  I am testing a form with FormTester and WicketTester.
  When I test error messages which are send by form validation, test
 works
  well :
  tester.assertErrorMessages(new String[] {Le champ 'Identifiant' est
  obligatoire.});
 
  but when I test error message which is send by my submit ajaxButton,
 test
  fail : no error is sent.
  When I test application manually, this error appears in feedBackPanel.
  I don't understand why error is not sent when application is used by
  wicketTester.
 
  This is my submit button code :
  AjaxButton submitbutton = new AjaxButton(ajaxSubmitLogin) {
 
  @Override
  protected void onSubmit(AjaxRequestTarget target, Form?
   form)
  {
  Membre modelObject = (Membre) form.getModelObject();
  Membre membre;
 
  membre = serviceIdentif.identifier(modelObject.getId(),
  modelObject.getPassword());
  if(membre == null)
  error(Identifiant ou mot de passe incorrect);
  else
  setResponsePage(TableauBordPage.class);
  }
 
  @Override
  protected void onError(AjaxRequestTarget target, Form?
   form) {
  target.addComponent(feedBackPanel);
  }
  }
 
  and my test code
  FormTester formTester =
  tester.newFormTester(loginForm.getPageRelativePath());
  formTester.setValue(membreId, benj);
  formTester.setValue(password, password);
  formTester.submit(ajaxSubmitLogin);
 
  tester.assertErrorMessages(new String[] {Identifiant ou mot de
  passe incorrect});
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
   Mathilde Pellerin  Ingénieur en Génie Logiciel  Tél mobile :
  06.60.78.79.03   E-mail
  : mathilde.pelle...@gmail.com   Mon CV en ligne :
  http://www.mathilde-pellerin.fr/ http://www.mathilde-pellerin.fr/
  Mes
  liens :  http://www.viadeo.com/fr/profile/mathilde.pellerin
  http://fr.linkedin.com/in/mathildepellerin
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




-- 
 Mathilde Pellerin  Ingénieur en Génie Logiciel  Tél mobile :
06.60.78.79.03   E-mail
: mathilde.pelle...@gmail.com   Mon CV en ligne :
http://www.mathilde-pellerin.fr/ http://www.mathilde-pellerin.fr/Mes
liens :  http://www.viadeo.com/fr/profile/mathilde.pellerin
http://fr.linkedin.com/in/mathildepellerin


Datatable - Inserting new row when I click on master row

2011-05-27 Thread ramlael
Hi Friends,

I want  to  insert new row with column spanning on master row click 

My datatable have Users details (like username,phone number, credit card
number), when the user click on credit card number, I need to show the
credit card information below to user details row.

Please can you suggest, how to implement this.


Thank you
Rambabu

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Datatable-Inserting-new-row-when-I-click-on-master-row-tp3554625p3554625.html
Sent from the Users forum 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: Original page cloned after popup dialog closes

2011-05-27 Thread Andrea Del Bene

Hi Scott,

attach onClose() callback code, the problem should be there.
Out app has a WebPage that opens a ModalWindow dialog passing in the 
page. The dialog allows the user to modify the model of one of the 
page's components. When the dialog closes and the onClose() callback 
in the page is called, the object ID of the page has changed and the 
component model does not have the changes from the dialog.


This is very likely a common Wicket newbie error but I can't find 
anything about it anywhere. Please help. Let me know if I need to 
build a simple example to demonstrate this.


  Thanks,

-
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: Lazyloading node in LinkTree

2011-05-27 Thread Mathias Nilsson
Any other idé better than this

tree = new LinkTree(tree, treeModel){
private static final long serialVersionUID = 1L;

@Override 
protected void onNodeLinkClicked ( Object node, BaseTree tree,
AjaxRequestTarget target) { 
TreeNode current = (TreeNode) node;
onVirtualNodeSelected( 
((VirtualNode)current.getUserObject()).getId(),
target );
} 

@Override
public MarkupContainer newLink(String id, final 
ILinkCallback callback){
return new IndicatingAjaxLinkVoid(id){
private static final long 
serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget 
target)
{
callback.onClick(target);
}
};
}

@Override
protected Component newJunctionLink(MarkupContainer 
parent, final String
id, final Object node){
final MarkupContainer junctionLink;

if (isLeaf(node) == false)
{
junctionLink = newLink(id, new 
ILinkCallback()
{
private static final long 
serialVersionUID = 1L;

public void 
onClick(AjaxRequestTarget target)
{

/**
 * Lazy loading 
children here
 */
TreeNode current = 
(TreeNode) node;
for( int i = 0; i  50; 
i++){
current.add( 
new DefaultMutableTreeNode( new:  + i ) );
}

if 
(isNodeExpanded(node)){

getTreeState().collapseNode(node);
}
else
{

getTreeState().expandNode(node);
}

onJunctionLinkClicked(target, node);
updateTree(target);
}
});
junctionLink.add(new AbstractBehavior(){
private static final long 
serialVersionUID = 1L;

@Override
public void 
onComponentTag(Component component, ComponentTag tag){
if 
(isNodeExpanded(node)){

tag.put(class, junction-open);
}
else{

tag.put(class, junction-closed);
}
}
});
}
else{
junctionLink = new 
WebMarkupContainer(id){
private static final long 
serialVersionUID = 1L;

@Override
protected void 
onComponentTag(ComponentTag tag)
{

super.onComponentTag(tag);
tag.setName(span);
tag.put(class, 
junction-corner);
}

Re: Datatable - Inserting new row when I click on master row

2011-05-27 Thread Martin Grigorov
See GridView. It has better support for row/column spans.

On Fri, May 27, 2011 at 10:57 AM, ramlael grambab...@gmail.com wrote:
 Hi Friends,

 I want  to  insert new row with column spanning on master row click

 My datatable have Users details (like username,phone number, credit card
 number), when the user click on credit card number, I need to show the
 credit card information below to user details row.

 Please can you suggest, how to implement this.


 Thank you
 Rambabu

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Datatable-Inserting-new-row-when-I-click-on-master-row-tp3554625p3554625.html
 Sent from the Users forum 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Datatable - Inserting new row when I click on master row

2011-05-27 Thread ramlael
Please can you help me.. how to implement?.. give me some idea..

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Datatable-Inserting-new-row-when-I-click-on-master-row-tp3554625p3554684.html
Sent from the Users forum 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: Datatable - Inserting new row when I click on master row

2011-05-27 Thread Martin Grigorov
See wicket-examples : org.apache.wicket.examples.repeater.GridViewPage

On Fri, May 27, 2011 at 11:29 AM, ramlael grambab...@gmail.com wrote:
 Please can you help me.. how to implement?.. give me some idea..

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Datatable-Inserting-new-row-when-I-click-on-master-row-tp3554625p3554684.html
 Sent from the Users forum 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Datatable - Inserting new row when I click on master row

2011-05-27 Thread ramlael
I think, you are not understand my problem correctly... I need to insert
dynamic row (Credit card information) below to Userinformation row, based on
user click ( on credit card number). 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Datatable-Inserting-new-row-when-I-click-on-master-row-tp3554625p3554806.html
Sent from the Users forum 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: Expandable row in datatable

2011-05-27 Thread ramlael
Hey.. I am also looking for same kind of solution.. is any one have idea
about this problem.

 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3555020.html
Sent from the Users forum 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: Original page cloned after popup dialog closes

2011-05-27 Thread Scott Reed

Andre,
  Line 41 opens the dialog. The object ID of the page is the same 
there, on line 6 where the dialog is constructed as well as in the 
dialog once it opens. When the dialog closes and we get to line 11, the 
ID has changed and the component model does not have the changes that 
were made in the dialog. The request target at line 11 has the new page 
object ID as well.

  Thanks for looking at this,
Scott

  1. private void addFilterBtn( final WebMarkupContainer radioListArea
 )  {
  2.  final ModalWindow modalFilterDialog = new ModalWindow(
 filterDialog );
  3.  add( modalFilterDialog );
  4.  modalFilterDialog.setPageCreator(new
 ModalWindow.PageCreator(){
  5.  public Page createPage(){
  6. _*return new RadioListFilterDialog(
 RadioListPage.this.getPageReference(), modalFilterDialog);*_
  7.  }
  8.  });
  9. modalFilterDialog.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback(){
 10.  public void onClose(AjaxRequestTarget target){
 11. *_refreshRadioListAreaResponse( target );_*
 12. **}
 13.  });
 14. modalFilterDialog.setCloseButtonCallback(new
 ModalWindow.CloseButtonCallback(){
 15.  public boolean onCloseButtonClicked(AjaxRequestTarget target)
 16.  {
 17.refreshRadioListAreaResponse( target );
 18.return true;
 19.  }
 20.  });
 21.
 22.  // filter button in header
 23.  final WebMarkupContainer filterBtn = new WebMarkupContainer(
 filterbtn ){
 24.private static final long serialVersionUID = 1L;
 25.@Override
 26.public void onComponentTag(ComponentTag tag)  {
 27.  // add onclick attribute to the button with this AJAX
 call to Wicket
 28.  // passing the URL of the click event behavior
 29.  tag.put(onclick,
 wicketAjaxGet('+filterDialogBehavior.getCallbackUrl()+'));
 30.}
 31.  };
 32.  // expose AJAX assigned ID for filter button component
 33.  // so we can update it in back behavior below
 34.  filterBtn.setOutputMarkupId( true );
 35.  add( filterBtn );
 36.
 37.  filterDialogBehavior =  new AbstractDefaultAjaxBehavior(){
 38.private static final long serialVersionUID = 1L;
 39.public void respond( AjaxRequestTarget target )  {
 40.  // open filter dialog
 41. *_modalFilterDialog.show(target);_*
 42.}
 43.  };
 44.  add( filterDialogBehavior );
 45.}


On 5/27/2011 4:17 AM, Andrea Del Bene wrote:

Hi Scott,

attach onClose() callback code, the problem should be there.
Out app has a WebPage that opens a ModalWindow dialog passing in the 
page. The dialog allows the user to modify the model of one of the 
page's components. When the dialog closes and the onClose() callback 
in the page is called, the object ID of the page has changed and the 
component model does not have the changes from the dialog.


This is very likely a common Wicket newbie error but I can't find 
anything about it anywhere. Please help. Let me know if I need to 
build a simple example to demonstrate this.


  Thanks,

-
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



BrowserInfoPage loses PageParameters on redirect from 3rd party

2011-05-27 Thread shetc
Hi All,

I am using Session.getClientInfo() in a WebPage to determine some
information about the user's
browser. This works fine when parameters are sent to the page via a query
string. I have one
use case in which the page is via a redirect from a 3rd party web site. In
this case, the 3rd party
is using a POST to send the parameters. The PageParameters arrive at the
page but are lost
when the call to Session.getClientInfo() is made. This would appear to
happen in the constructor for
the BrowserInfoPage but I'm not sure why. Any advice would be appreciated.

Thanks,
Steve

Wicket v1.4.10
WebPage mounted as QueryStringUrlCodingStrategy



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BrowserInfoPage-loses-PageParameters-on-redirect-from-3rd-party-tp3556183p3556183.html
Sent from the Users forum 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



first app wicket jetty problem

2011-05-27 Thread Oleg Ruchovets
Hi ,
  Using this page http://wicket.apache.org/start/quickstart.html
made all instruction and try to run my first wicket project

using inteiilj idea. running jetty got such exception:

INFO  - log- Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
 STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
INFO  - log- jetty-6.1.25
WARN  - log- Web application not found
src/main/webapp
WARN  - log- Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@4de13d52{/,src/main/webapp}
java.io.FileNotFoundException: src/main/webapp
at
org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:987)
at
org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:822)
at
org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:479)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.mycompany.Start.main(Start.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
INFO  - log- Started SocketConnector@0.0.0.0:8080


please help


Re: first app wicket jetty problem

2011-05-27 Thread James Carman
Set the working directory to the root of your project
On May 27, 2011 4:41 PM, Oleg Ruchovets oruchov...@gmail.com wrote:
 Hi ,
 Using this page http://wicket.apache.org/start/quickstart.html
 made all instruction and try to run my first wicket project

 using inteiilj idea. running jetty got such exception:

 INFO - log - Logging to
 org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
 org.mortbay.log.Slf4jLog
 STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
 INFO - log - jetty-6.1.25
 WARN - log - Web application not found
 src/main/webapp
 WARN - log - Failed startup of context
 org.mortbay.jetty.webapp.WebAppContext@4de13d52{/,src/main/webapp}
 java.io.FileNotFoundException: src/main/webapp
 at

org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:987)
 at
 org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:822)
 at

org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
 at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:479)
 at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.Server.doStart(Server.java:224)
 at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at com.mycompany.Start.main(Start.java:35)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
 INFO - log - Started SocketConnector@0.0.0.0:8080


 please help


Re: TextField not getting the value after a validation eror

2011-05-27 Thread msalman
If you can please provide your code then may be I might be able to figure out
the problem.

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-not-getting-the-value-after-a-validation-eror-tp3521252p3556715.html
Sent from the Users forum 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




WicketTester and clicking a tree node

2011-05-27 Thread msalman
Hi,

I am trying to simulate/test clicking and expanding tree nodes.  My Tree is
based off LinkTree class.

Can some one please provide me the solution or ideas.

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-clicking-a-tree-node-tp3556724p3556724.html
Sent from the Users forum 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: WicketTester and clicking a tree node

2011-05-27 Thread Pedro Santos
You can use the ITreeState API to manipulate the expand/collapsed node
state. Put your code inside a link or a button and call it from Wicket
tester.

On Fri, May 27, 2011 at 10:21 PM, msalman mohammad_sal...@yahoo.com wrote:
 Hi,

 I am trying to simulate/test clicking and expanding tree nodes.  My Tree is
 based off LinkTree class.

 Can some one please provide me the solution or ideas.

 Thanks.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-clicking-a-tree-node-tp3556724p3556724.html
 Sent from the Users forum 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





-- 
Pedro Henrique Oliveira dos Santos

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