Re: Wicket Page Expired Exception

2009-03-23 Thread Per Newgro

Sandyc schrieb:

Hi,

 we are developing a website with apache wicket. I have scenario where i
have to go back to the previous page from the current page.i tried using the
MixedParamUrlCodingStrategy for passing the parameters from the current page
to the previous page but i get a page expired exception.Please help me
  
Can you please provide some code. Maybe more readers know the cause of 
your problem.


Thanks
Per

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



Re: Wicket Page Expired Exception

2009-03-23 Thread Sandyc

Please check following code. Actually i am calling the page from a Panel 

add(new StatelessLink(abstract){

private static final long serialVersionUID = 1L;

@Override
public void onClick() {
MapString,String mapName = new 
HashMapString,String();
mapName.put(pubmedid,pmid);
mapName.put(src,SearchConstants.DATA_SRC_PUBMED);
PageParameters pageParameters = new 
PageParameters(mapName);

   setResponsePage(ShowCitationDetails.class,pageParameters);
}
   
   });

Newgro wrote:
 
 Sandyc schrieb:
 Hi,

  we are developing a website with apache wicket. I have scenario where i
 have to go back to the previous page from the current page.i tried using
 the
 MixedParamUrlCodingStrategy for passing the parameters from the current
 page
 to the previous page but i get a page expired exception.Please help me
   
 Can you please provide some code. Maybe more readers know the cause of 
 your problem.
 
 Thanks
 Per
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Page-Expired-Exception-tp22654936p22656883.html
Sent from the Wicket - User 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 Page Expired Exception

2009-03-23 Thread Per Newgro

Sandyc schrieb:
Please check following code. Actually i am calling the page from a Panel 


add(new StatelessLink(abstract){

private static final long serialVersionUID = 1L;

@Override
public void onClick() {
MapString,String mapName = new 
HashMapString,String();
mapName.put(pubmedid,pmid);
mapName.put(src,SearchConstants.DATA_SRC_PUBMED);
PageParameters pageParameters = new 
PageParameters(mapName);

		   setResponsePage(ShowCitationDetails.class,pageParameters);

}
		   
	   });


Newgro wrote:
  

Sandyc schrieb:


Hi,

 we are developing a website with apache wicket. I have scenario where i
have to go back to the previous page from the current page.i tried using
the
MixedParamUrlCodingStrategy for passing the parameters from the current
page
to the previous page but i get a page expired exception.Please help me
  
  
Can you please provide some code. Maybe more readers know the cause of 
your problem.


Thanks
Per

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






  

API doc says:

StatelessLink.class

/**
* This link is stateless that means that the url to this link could 
generate a new page before the
* link onClick is called. Because of this you can't depend on model 
data in the onClick method.

*
* This Link component is the same as a normal link with the 
statelesshint to true.

*
* @author jcompagner
*/

I think that means that your pmid attribute will be NullOrWhatever. Is 
this the problem?


Cheers
Per

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



Re: Wicket Page Expired Exception

2009-03-23 Thread Sandyc

 The problem is no link or form element in the page or the panels in the page
works.
 probably this might be a problem in rendering the page.
 All the other links are normal links.Please suggest me if is a right idea
to use isversioned(false) for all the components in the page.

I am also getting an following error in the console. is that a problem

ERROR - RequestCycle   - Too many path parts, please provide
sufficient number of path parameter names
java.lang.IllegalArgumentException: Too many path parts, please provide
sufficie
nt number of path parameter names
at
org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.d
ecodeParameters(MixedParamUrlCodingStrategy.java:182)

Thanks,
Sandy




Newgro wrote:
 
 Sandyc schrieb:
 Please check following code. Actually i am calling the page from a Panel 

 add(new StatelessLink(abstract){

  private static final long serialVersionUID = 1L;

  @Override
  public void onClick() {
  MapString,String mapName = new 
 HashMapString,String();
  mapName.put(pubmedid,pmid);
  mapName.put(src,SearchConstants.DATA_SRC_PUBMED);
  PageParameters pageParameters = new 
 PageParameters(mapName);
  
 setResponsePage(ShowCitationDetails.class,pageParameters);
  }
 
 });

 Newgro wrote:
   
 Sandyc schrieb:
 
 Hi,

  we are developing a website with apache wicket. I have scenario where
 i
 have to go back to the previous page from the current page.i tried
 using
 the
 MixedParamUrlCodingStrategy for passing the parameters from the current
 page
 to the previous page but i get a page expired exception.Please help me
   
   
 Can you please provide some code. Maybe more readers know the cause of 
 your problem.

 Thanks
 Per

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



 

   
 API doc says:
 
 StatelessLink.class
 
 /**
  * This link is stateless that means that the url to this link could 
 generate a new page before the
  * link onClick is called. Because of this you can't depend on model 
 data in the onClick method.
  *
  * This Link component is the same as a normal link with the 
 statelesshint to true.
  *
  * @author jcompagner
  */
 
 I think that means that your pmid attribute will be NullOrWhatever. Is 
 this the problem?
 
 Cheers
 Per
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Page-Expired-Exception-tp22654936p22659259.html
Sent from the Wicket - User 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 Page Expired Exception

2009-03-23 Thread Jeremy Thomerson
Have you looked in your logs to see if there are serialization issues when
the page is first rendered?  This causes most page expiration problems,
because the page can't be serialized into the pagestore, which means when
you come back to it via a link, wicket can't retrieve the page.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Mar 23, 2009 at 7:36 AM, Sandyc sandeepreddy.chev...@bl.uk wrote:


  The problem is no link or form element in the page or the panels in the
 page
 works.
  probably this might be a problem in rendering the page.
  All the other links are normal links.Please suggest me if is a right idea
 to use isversioned(false) for all the components in the page.

 I am also getting an following error in the console. is that a problem

 ERROR - RequestCycle   - Too many path parts, please provide
 sufficient number of path parameter names
 java.lang.IllegalArgumentException: Too many path parts, please provide
 sufficie
 nt number of path parameter names
at
 org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.d
 ecodeParameters(MixedParamUrlCodingStrategy.java:182)

 Thanks,
 Sandy




 Newgro wrote:
 
  Sandyc schrieb:
  Please check following code. Actually i am calling the page from a Panel
 
  add(new StatelessLink(abstract){
 
   private static final long serialVersionUID = 1L;
 
   @Override
   public void onClick() {
   MapString,String mapName = new
 HashMapString,String();
   mapName.put(pubmedid,pmid);
   mapName.put(src,SearchConstants.DATA_SRC_PUBMED);
   PageParameters pageParameters = new
 PageParameters(mapName);
 
 
 setResponsePage(ShowCitationDetails.class,pageParameters);
   }
 
  });
 
  Newgro wrote:
 
  Sandyc schrieb:
 
  Hi,
 
   we are developing a website with apache wicket. I have scenario where
  i
  have to go back to the previous page from the current page.i tried
  using
  the
  MixedParamUrlCodingStrategy for passing the parameters from the
 current
  page
  to the previous page but i get a page expired exception.Please help me
 
 
  Can you please provide some code. Maybe more readers know the cause of
  your problem.
 
  Thanks
  Per
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  API doc says:
 
  StatelessLink.class
 
  /**
   * This link is stateless that means that the url to this link could
  generate a new page before the
   * link onClick is called. Because of this you can't depend on model
  data in the onClick method.
   *
   * This Link component is the same as a normal link with the
  statelesshint to true.
   *
   * @author jcompagner
   */
 
  I think that means that your pmid attribute will be NullOrWhatever. Is
  this the problem?
 
  Cheers
  Per
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-Page-Expired-Exception-tp22654936p22659259.html
 Sent from the Wicket - User 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