Terracotta integration and issue sharing pagemaps

2008-12-10 Thread Michael Oswell
I am running into an issue that I _think_ is related to our terracotta  
installation.


1.  User visits page with a PageableListView.
2.  User navigates to another page in the PageableListView
3.  User clicks on a link generated within the listview

The following exception is generated

org.apache.wicket.WicketRuntimeException: component  
mainContentPanel:photoListContainer:photoList:82:switchLink not  
found on page com.example.wicket.pages.ExamplePage[id = 2],  
listener interface = [RequestListenerInterface  
name=IBehaviorListener, method=public abstract void  
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
	at  
org 
.apache 
.wicket 
.request 
.AbstractRequestCycleProcessor 
.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java: 
416)
	at  
org 
.apache 
.wicket 
.request 
.AbstractRequestCycleProcessor 
.resolveRenderedPage(AbstractRequestCycleProcessor.java:461)
	at  
org 
.apache 
.wicket 
.protocol 
.http 
.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
	at com.example.wicket.WicketApplication 
$2.resolve(WicketApplication.java:119)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
	at  
org 
.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 
387)
	at  
org 
.apache 
.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
	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  
com.randomcoder.security.DisableUrlSessionFilter.doFilter(Unknown  
Source)
	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:233)
	at  
org 
.apache 
.catalina 
.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at  
org 
.apache 
.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at  
org 
.apache 
.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at  
org 
.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 
568)
	at  
org 
.apache 
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
109)
	at  
com.tc.tomcat55.session.SessionValve55.tcInvoke(SessionValve55.java: 
63)
	at  
com.tc.tomcat55.session.SessionValve55.invoke(SessionValve55.java:50)
	at  
org 
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
286)
	at  
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java: 
283)

at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
	at  
org 
.apache 
.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
	at org.apache.jk.common.ChannelSocket 
$SocketConnection.runIt(ChannelSocket.java:889)
	at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:690)

at java.lang.Thread.run(Thread.java:595)


If I run only one server, then everything works as expected.  As soon  
as I add extra servers I begin to see this error.
From what I can tell, it appears as though the page map is not being  
distributed via terracotta, though I could be wrong. :)
The reason I think this is it appears as though the PageableListView  
page that I navigate to doesn't exist in the pagemap on the server  
that handles the request when I click a link and as such, generates  
the above exception.


Installation:
Terracotta 2.7.1
Wicket 1.3.5
tim-wicket-1.3-1.1.3

Any suggestions welcome.

thanks,

-- Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Terracotta integration and issue sharing pagemaps

2008-12-10 Thread Michael Oswell


Ned,

I have tried setting setReuseItems(true) on the PageableListView but  
it makes no difference.


thanks,

-- Mike

On 10-Dec-08, at 4:30 PM, Ned Collyer wrote:

From a quick glance (and im not at all familiar with  
PageableListView - but

am alright with their parent - ListView)

Has it anything to do with not calling setReuseItems(true) on the  
list view
itself? - Ie, its destroying the links, then recreating them each  
request?


Rgds

Ned



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AjaxButton submit url

2008-10-09 Thread Michael Oswell
I am curious if it is possible to change the URL that is used for the  
XMLHttpRequest so that I can force a form on a non-SSL enabled page to  
post to an SSL url.
In this particular case, I have a non-secure page with a login panel  
on it.  The form in the panel is using an AjaxButton for form  
submission, and I would like to have it post the login request over  
SSL so need to change the URL used in the request.


Possible?

thanks,

-- Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redirect to different url before page renders

2008-10-04 Thread Michael Oswell
I'm looking for a way to redirect the user to a different url  
depending on page parameters before the page they are requesting  
renders.
I've looked around and don't see a simple way to do this.  From what I  
can tell, using the standard redirects (ie  
RequestCycle.get().setRequestTarget(new RedirectRequestTarget(/));)  
doesn't perform the redirect until after the requested page has  
finished rendering which seems like a waste of cycles.


thanks!

-- Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]