Re: The component(s) below failed to render (BasePage components are not rendering)

2011-01-24 Thread Martin Sachs
hi,

i dont see problems in the markup. Can u please post some
java-components ? Do you have called super. ... -methodes (e.g.
onInitialize)

martin

Am 24.01.2011 20:19, schrieb Teddy C:
> Using the Wicket Phonebook as a base, I am having problem dispalyng the
> EditContactPage. To the BasePage I add user and role and a Session to save
> the login user and role. The listContactPage wich extends the BasePage works
> fine. The EditContactPage which also extends the Basepage, is mot able to
> display the EditContactPage, failing to render the Components that are
> defined in the BasePage.
>
> I would appreciate if someone has any idea of a  solution to this problem.
>
> BasePage.Html
> 
>   
>   Wicket Phonebook
>   
>   
>   
>   
>   
>   Login Name:
>   
>   
>   
>   Login Role: 
>   
>   
>   [[status 
> messages]]
>   
>   
> 
>
> ListContactpage:
> 
> 
> 
>   
>   
>   
>   [call to focus restore script]
>type="submit"/>
> 
>
> 
> 
>
> EditContactPage:
> 
> 
> 
> 
> 
>key="passenger">[passenger] wicket:id="passenger" size="30"/>
> 
> 
>key="costcenter">[costcenter] wicket:id="costcenter" size="5" maxlength="6"/>
> 
> 
>key="car_no">[car_no] wicket:id="car_no" size="30"/>
> 
> 
>key="pu_addr">[pu_addr] wicket:id="pu_addr" size="30"/>
> 
> 
>key="dest_addr">[dest_addr] wicket:id="dest_addr" size="30"/>
> 
> 
>   [rate] wicket:id="rate" size="30"/>
> 
> 
>   [toll] wicket:id="toll" size="30"/>
> 
> 
>   [wait] wicket:id="wait" size="30"/>
> 
> 
>   [stops] wicket:id="stops" size="30"/>
> 
> 
> 
>   [other] wicket:id="other" size="30"/>
> 
> 
> 
>key="wc2pct">[wc2pct] wicket:id="wc2pct" size="30"/>
> 
> 
> 
>   [total] wicket:id="total" size="10"/>
> 
> 
>    
>   
> 
> 
> 
> 
> 
>
> ERROR:
> WicketMessage: The component(s) below failed to render. A common problem is
> that you have added a component in code but forgot to reference it in the
> markup (thus the component will never be rendered).1. [MarkupContainer
> [Component id = status]]2. [Component id = Name]3. [Component id = Role]Root
> cause:org.apache.wicket.WicketRuntimeException: The component(s) below
> failed to render. A common problem is that you have added a component in
> code but forgot to reference it in the markup (thus the component will never
> be rendered).1. [MarkupContainer [Component id = status]]2. [Component id =
> Name]3. [Component id = Role] at
> org.apache.wicket.Page.checkRendering(Page.java:1182) at
> org.apache.wicket.Page.renderPage(Page.java:922) at
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:167)
> 
> at
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
> 
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
> 
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
> 
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)  
>   
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 
> at
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
> 
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 
> at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 
> at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> 
> at
> org.apache.catalina.authenticator.AuthenticatorBase.

The component(s) below failed to render (BasePage components are not rendering)

2011-01-24 Thread Teddy C

Using the Wicket Phonebook as a base, I am having problem dispalyng the
EditContactPage. To the BasePage I add user and role and a Session to save
the login user and role. The listContactPage wich extends the BasePage works
fine. The EditContactPage which also extends the Basepage, is mot able to
display the EditContactPage, failing to render the Components that are
defined in the BasePage.

I would appreciate if someone has any idea of a  solution to this problem.

BasePage.Html


Wicket Phonebook





Login Name:



Login Role: 


[[status 
messages]]




ListContactpage:






[call to focus restore script]






EditContactPage:





[passenger]


[costcenter]


[car_no]


[pu_addr]


[dest_addr]


[rate]


[toll]


[wait]


[stops]



[other]



[wc2pct]



[total]


 







ERROR:
WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).1. [MarkupContainer
[Component id = status]]2. [Component id = Name]3. [Component id = Role]Root
cause:org.apache.wicket.WicketRuntimeException: The component(s) below
failed to render. A common problem is that you have added a component in
code but forgot to reference it in the markup (thus the component will never
be rendered).1. [MarkupContainer [Component id = status]]2. [Component id =
Name]3. [Component id = Role] at
org.apache.wicket.Page.checkRendering(Page.java:1182) at
org.apache.wicket.Page.renderPage(Page.java:922) at
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:167)

at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)

at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)

at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)  
  
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at
org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) 
   
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)   
 
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)   
 
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)




-- 
View this message in context: 
http://apache-wicke

Re: wicket examples very slow

2011-01-24 Thread Martin Grigorov
Each request fails with

WARN  - ServletWebRequest  - Error parsing request body for post
parameters; Fallback to ServletRequest#getParameters().
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
at org.apache.coyote.Request.doRead(Request.java:427)
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
at
org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:329)
at
org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:382)
at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:351)
at
org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:80)
at org.apache.wicket.util.io.Streams.readString(Streams.java:192)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.generatePostParameters(ServletWebRequest.java:251)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getPostRequestParameters(ServletWebRequest.java:294)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.access$000(ServletWebRequest.java:60)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest$1.getParameterValue(ServletWebRequest.java:318)
at
org.apache.wicket.request.parameter.CombinedRequestParametersAdapter.getParameterValue(CombinedRequestParametersAdapter.java:71)
at
org.apache.wicket.request.http.WebRequest.isAjax(WebRequest.java:124)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getClientUrl(ServletWebRequest.java:124)
at
org.apache.wicket.request.cycle.RequestCycle.newUrlRenderer(RequestCycle.java:143)
at
org.apache.wicket.request.cycle.RequestCycle.getUrlRenderer(RequestCycle.java:167)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:191)


It is either the JVM (1.5.0_22) or Tomcat (5.5.?) ...

On Mon, Jan 24, 2011 at 7:51 PM, Martin Grigorov wrote:

> On Mon, Jan 24, 2011 at 7:48 PM, Jeremy Thomerson <
> jer...@wickettraining.com> wrote:
>
>> On Mon, Jan 24, 2011 at 12:23 PM, fachhoch  wrote:
>>
>> >
>> > I was trying to see wicket examples
>> >
>> > http://www.wicket-library.com/wicket-examples/
>> >
>> > its very slow I tried on Friday ,again today   its very slow , I tried
>> in
>> > different browsers.It did not help.
>> >
>>
>> Run them locally:
>>
>> svn co https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
>> cd wicket-1.4.x/
>> mvn install
>> # if you want to load the code in Eclipse to put debug points, etc, run
>> "mvn
>> eclipse:eclipse"
>> cd wicket-examples
>> mvn jetty:run
>>
>> Browse to http://localhost:8080/wicket-examples/
>>
>> except the fact that this is 1.5 demo
>
> I'm looking what is wrong
>
>
>> --
>>
>> Jeremy Thomerson
>> http://wickettraining.com
>> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>>
>
>


Re: wicket examples very slow

2011-01-24 Thread Martin Grigorov
On Mon, Jan 24, 2011 at 7:48 PM, Jeremy Thomerson  wrote:

> On Mon, Jan 24, 2011 at 12:23 PM, fachhoch  wrote:
>
> >
> > I was trying to see wicket examples
> >
> > http://www.wicket-library.com/wicket-examples/
> >
> > its very slow I tried on Friday ,again today   its very slow , I tried in
> > different browsers.It did not help.
> >
>
> Run them locally:
>
> svn co https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
> cd wicket-1.4.x/
> mvn install
> # if you want to load the code in Eclipse to put debug points, etc, run
> "mvn
> eclipse:eclipse"
> cd wicket-examples
> mvn jetty:run
>
> Browse to http://localhost:8080/wicket-examples/
>
> except the fact that this is 1.5 demo

I'm looking what is wrong


> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>


Re: wicket examples very slow

2011-01-24 Thread Jeremy Thomerson
On Mon, Jan 24, 2011 at 12:23 PM, fachhoch  wrote:

>
> I was trying to see wicket examples
>
> http://www.wicket-library.com/wicket-examples/
>
> its very slow I tried on Friday ,again today   its very slow , I tried in
> different browsers.It did not help.
>

Run them locally:

svn co https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
cd wicket-1.4.x/
mvn install
# if you want to load the code in Eclipse to put debug points, etc, run "mvn
eclipse:eclipse"
cd wicket-examples
mvn jetty:run

Browse to http://localhost:8080/wicket-examples/

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


wicket examples very slow

2011-01-24 Thread fachhoch

I was trying to see wicket examples   

http://www.wicket-library.com/wicket-examples/

its very slow I tried on Friday ,again today   its very slow , I tried in
different browsers.It did not help.
   
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-examples-very-slow-tp3234627p3234627.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: Ajax Response xml showing in browser

2011-01-24 Thread Jeremy Thomerson
Perhaps this thread will help:
http://apache-wicket.1842946.n4.nabble.com/Ajax-response-render-as-source-in-the-browser-tt3028722.html

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*

On Mon, Jan 24, 2011 at 9:48 AM, Igor Vaynberg wrote:

> please attach a quickstart that reproduce it to a jira issue.
>
> -igor
>
> On Sun, Jan 23, 2011 at 10:40 PM, Jeffrey Schneller
>  wrote:
> > Got an odd issue occurring where the Ajax Response xml is showing in the
> > browser rather than modifying the DOM of the page as it usually does.
> > The scenario is the following:
> >
> >
> >
> > My Login page is abstract and has an abstract method called
> > onLoginSuccess.
> >
> > When the login is successful we call onLoginSuccess.
> >
> >
> >
> >
> >
> > Abstract Class called LoginLink which extends AjaxLink
> >
> > LoginLink has an abstract method called onSuccess() and
> > onAlreadyLoggedIn()
> >
> > The Login page is constructed and has it's abstract method
> > onLoginSuccess defined to call onSuccess()
> >
> > The onClick method of LoginLink does a setResponsePage to my Login page
> > if not already logged in and calls onAlreadyLoggedIn() if the user is
> > already logged into the site.
> >
> >
> >
> > I have a page called Page1 which contains a LoginLink.
> >
> > The onSuccess() method is defined to setResponsePage() to the page I
> > ultimately need to go to say Page2.
> >
> > The onAlreadyLoggedIn() method is defined to setResponsePage() to the
> > page I ultimately need to go to say Page2.
> >
> >
> >
> > On Page2, there are AjaxButtons to submit forms.  If any button is
> > clicked I get the AjaxResponse xml showing in the browser window.
> >
> >
> >
> > Any ideas on how to solve this?   Is there another way of doing this
> > interaction with built in wicket components.
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Jeff
> >
> >
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Ajax Response xml showing in browser

2011-01-24 Thread Igor Vaynberg
please attach a quickstart that reproduce it to a jira issue.

-igor

On Sun, Jan 23, 2011 at 10:40 PM, Jeffrey Schneller
 wrote:
> Got an odd issue occurring where the Ajax Response xml is showing in the
> browser rather than modifying the DOM of the page as it usually does.
> The scenario is the following:
>
>
>
> My Login page is abstract and has an abstract method called
> onLoginSuccess.
>
> When the login is successful we call onLoginSuccess.
>
>
>
>
>
> Abstract Class called LoginLink which extends AjaxLink
>
> LoginLink has an abstract method called onSuccess() and
> onAlreadyLoggedIn()
>
> The Login page is constructed and has it's abstract method
> onLoginSuccess defined to call onSuccess()
>
> The onClick method of LoginLink does a setResponsePage to my Login page
> if not already logged in and calls onAlreadyLoggedIn() if the user is
> already logged into the site.
>
>
>
> I have a page called Page1 which contains a LoginLink.
>
> The onSuccess() method is defined to setResponsePage() to the page I
> ultimately need to go to say Page2.
>
> The onAlreadyLoggedIn() method is defined to setResponsePage() to the
> page I ultimately need to go to say Page2.
>
>
>
> On Page2, there are AjaxButtons to submit forms.  If any button is
> clicked I get the AjaxResponse xml showing in the browser window.
>
>
>
> Any ideas on how to solve this?   Is there another way of doing this
> interaction with built in wicket components.
>
>
>
> Thanks.
>
>
>
> Jeff
>
>
>
>
>
>

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



How to make DateTimeField default to PM

2011-01-24 Thread Jim Pinkham
I wanted to have my DateTimeField (That's the wicket-extensions component
with a date text field, button to open calendar, and hours/minutes fields
with optional AM_PM choice) default to PM instead of AM for new dates
because I noticed most dates in this part of my app are evening dates.

I came up with this; maybe it helps someone, or let me know if you have a
better way:

FormComponent dateField = new DateTimeField("eventOn") {
private static final long serialVersionUID = 1L;

// amOrPmChoice is final, so we have a little kludge to
default new item's eventOn date to PM
// TODO: find a less clever way
@Override
protected void onBeforeRender() {
Date d = (Date)getDefaultModelObject();
if (d == null) { // user hasn't entered a date (yet)
Calendar c = Calendar.getInstance();
c.set(Calendar.HOUR_OF_DAY, 18);  // anything after
noon would work
IModel dm = (IModel) getDefaultModel();
dm.setObject(c.getTime());
super.onBeforeRender();   // initializes
amOrPmChoice as side-effect
dm.setObject(null);
}
super.onBeforeRender();
}

@Override
protected DateTextField newDateTextField(final String id,
final PropertyModel dateFieldModel) {
return DateTextField.forDatePattern(id, dateFieldModel,
"MM/dd/");
}
};
Cheers,
-- Jim.


Re: AjaxButton and opening popup

2011-01-24 Thread Altuğ Bilgin Altıntaş
Thanks Martin.

2011/1/24 Martin Grigorov 

> target.appendJavascript("window.open('"+ url +"', 'someName');");
>
> 2011/1/24 Altuğ Bilgin Altıntaş 
>
> > Hi all;
> >
> > Is it possible opening a new page at AjaxButton's onSubmit button ?
> >
> > I've tried
> >
> >  PopupSettings popupSettings = new PopupSettings();
> >  popupSettings.setTarget("'" + url + "'");
> >  target.appendJavascript(popupSettings.getPopupJavaScript());
> >
> > but it doesn't work.
> >
> > Also
> >
> > throw new RestartResponseAtInterceptPageException(new RedirectPage(url);
> >
> > works but it opens popup in the same tab not a new window.
> >
> >
> > Any suggestions ?
> >
> > Thanks.
> >
> > --
> > *Altuğ*
> > ** 
> >
>



-- 
*Altuğ*
*www.kodcu.com* **


Re: AjaxButton and opening popup

2011-01-24 Thread Martin Grigorov
target.appendJavascript("window.open('"+ url +"', 'someName');");

2011/1/24 Altuğ Bilgin Altıntaş 

> Hi all;
>
> Is it possible opening a new page at AjaxButton's onSubmit button ?
>
> I've tried
>
>  PopupSettings popupSettings = new PopupSettings();
>  popupSettings.setTarget("'" + url + "'");
>  target.appendJavascript(popupSettings.getPopupJavaScript());
>
> but it doesn't work.
>
> Also
>
> throw new RestartResponseAtInterceptPageException(new RedirectPage(url);
>
> works but it opens popup in the same tab not a new window.
>
>
> Any suggestions ?
>
> Thanks.
>
> --
> *Altuğ*
> ** 
>


AjaxButton and opening popup

2011-01-24 Thread Altuğ Bilgin Altıntaş
Hi all;

Is it possible opening a new page at AjaxButton's onSubmit button ?

I've tried

 PopupSettings popupSettings = new PopupSettings();
 popupSettings.setTarget("'" + url + "'");
 target.appendJavascript(popupSettings.getPopupJavaScript());

but it doesn't work.

Also

throw new RestartResponseAtInterceptPageException(new RedirectPage(url);

works but it opens popup in the same tab not a new window.


Any suggestions ?

Thanks.

-- 
*Altuğ*
** 


Re: SwramWebApplication and session

2011-01-24 Thread jussi isokangas
Hi,
I solved it.

Your advise works with little parameter changes. Additionally I had to
change MySessio extends from WebSessio to SwampSessio.


Here my Application.class (VerkkokauppaSovellus)
*...*
 *@Override
  public Session newSession(Request request, Response response) {
return session =  new Sessio(request,VerkkokauppaSovellus.this);

  }
...*


and here Sessio.class

*package fi.harjoitustyo.verkkokauppa.web;

import org.apache.wicket.Request;
import org.apache.wicket.security.WaspSession;

*

*public class Sessio extends WaspSession{

private static final long serialVersionUID = 1L;
private Ostoskori ostoskori ;


public Sessio(Request request, VerkkokauppaSovellus sovellus){

super(sovellus,request);
ostoskori  = new Ostoskori();

}



public Ostoskori haeOstoskori()
  { return ostoskori;
  }

}

*and here Basepage*

public abstract class Sivupohja extends WebPage {

  @SuppressWarnings("unused")
  private static final Log log =
  LogFactory.getLog(Sivupohja.class);
  private static final long serialVersionUID = 1L;

  protected Ostoskori ostoskori = ((Sessio)
  getSession()).haeOstoskori();
  ...*

t. jussi





2011/1/21 Martin Makundi 

> Hi!
>
> I am not sure what you mean, but we have like this:
>
> /**
>   * @see com.myapp.MyApplication#newSession(org.apache.wicket.Request,
> org.apache.wicket.Response)
>   */
>  @Override
>  public Session newSession(Request request, Response response) {
>  return session = new MySession(request, response);
>  }
>
> **
> Martin
>
> 2011/1/20 jussi isokangas :
> > Hi,
> >
> > My application extends SwramWebApplication. Session doesn't accpet that
> for
> > paramater. I need to use session for ShoppingCart.
> > How to solve it?
> >
> > Regards Jussi
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>