On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:

I've try what you talk about.  I have the impresion that there is only the
String representation of the page map that is pass.  Should I pass the
pageMap Name?  and then, how to pass it since it is null?  Here is the code
and the error generated.


yeah just pass the pagemap name.

P.S. : Igor, you rock!  With you, there is always a way to pass around
problems! :)


thanks :)

-igor


Caller
--------------------------------------------
PopupSettings popupSettings = new       
PopupSettings(PageMap.forName("popuppagemap")).setHeight(500).setWidth(500);
PageParameters popupparameters = new PageParameters();
popupparameters.put("parent_page_map", getPage().getPageMap ());
System.out.println(popupparameters.get ("parent_page_map"));
add(new BookmarkablePageLink ("basicSearchLink", SearchPopUp.class,
popupparameters).setPopupSettings(popupSettings));
------------------------------------------------


PopUp
--------------------------------------------
public SearchPopUp (PageParameters pp)
    {
        PageMap parentPageMap = (PageMap)pp.get ("parent_page_map");
        Class pageClass = PagingFactory.getInstance ().getPageClass (
NodeTypeConstants.RULE);
        add(new BookmarkablePageLink("nodeLink", pageClass).setPageMap
(parentPageMap).setParameter (WebPageConstants.PARAM_ID,
"4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29"));
    }
----------------------------------------------------------

The system.out of the pagemap give me this :
[PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
version=0]]]

And when creating the searchPopUp, it generate this error :
Can't instantiate page using constructor public
com.interfacing.epc.portal.view.search.SearchPopUp(wicket.PageParameters)
and argument parent_page_map = "[PageMap name=null, access=[[Access id=0,
version=0], [Access id=1, version=0]]]"
wicket.WicketRuntimeException: Can't instantiate page using constructor
public com.interfacing.epc.portal.view.search.SearchPopUp(
wicket.PageParameters) and argument parent_page_map = "[PageMap name=null,
access=[[Access id=0, version=0], [Access id=1, version=0]]]"
        at wicket.session.DefaultPageFactory.newPage(
DefaultPageFactory.java:175)
        at wicket.session.DefaultPageFactory.newPage(
DefaultPageFactory.java:96)
        at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage (
BookmarkablePageRequestTarget.java:271)
        at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
BookmarkablePageRequestTarget.java:286)
        at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(
BookmarkablePageRequestTarget.java:205)
        at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)
        at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(
AbstractCompoundRequestCycleProcessor.java:57)
        at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:896)
        at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:929)
        at wicket.RequestCycle.step(RequestCycle.java:1010)
        at wicket.RequestCycle.steps(RequestCycle.java:1084)
        at wicket.RequestCycle.request(RequestCycle.java:454)
        at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java
:219)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
        at
com.interfacing.epc.util.hibernate.HibernateSessionFilter.doFilter(
HibernateSessionFilter.java :80)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:81)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java :178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(
CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:856)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(
MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (
DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at wicket.session.DefaultPageFactory.newPage(
DefaultPageFactory.java:154)
        ... 36 more
Caused by: java.lang.ClassCastException: java.lang.String
        at com.interfacing.epc.portal.view.search.SearchPopUp.<init>(
SearchPopUp.java:35)
        ... 41 more

On 1/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> there is no way to communicate between windows in the http spec, so what
> you have to do is this:
>
> when you create the popup, you have to add a parameter to the generated
> url - and that should be the pagename of the page that is opening the popup.
> wicket sets window.name=pagemapname, and if you know this you can
> reference this window through the links target attr afaik.
>
> the popup's links should have target set to the passed in pagemap name
> and should be bookmarkable page links - passing in the criteria on the url
> through PageParameters.
>
> so what happens is that when you click on a link in the popup the page
> behind reloads from a bookmarkable url and shows the results
>
> -igor
>
>
> On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>
> >  Oh, and thanks in advance if there is an answer to that!
> > Marc
> >
> > On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:
> > >
> > > It is difficult to explain but the functionality is simple.
> > > You got a field to search. and a link to make advanced search.  When
> > > making an advance search, we want to open a pop-up window to get more
> > > searching functionality.  When the search is done, we display a list of 
item
> > > corresponding to this search.  When clicking the object, we want to change
> > > the page that is behind without closing the pop up to be able to modify 
the
> > > search and continue seeing the list of node.
> > >
> > > Is there something available in the wicket framework to do something
> > > like that?  I mean, from the pop-p, modifying the page in the background?
> > >
> > > Marc
> > >
> >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to