Re: Error while closing the modal window

2012-01-25 Thread sudeivas
After researching, I found setting a different page map name for modal window
will fix the issue. But setPageMapName API is removed in wicket-1.5.3.

Any another solution for this?

Thanks,
Suresh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-while-closing-the-modal-window-tp4325332p4329137.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



How to get actual data from ByteArrayResource

2012-01-25 Thread kevjay
I have a ByteArrayResource where I have overridden getData (RSS feed).  I
have no problem accessing this through the browser and seeing my content. 
However, I want to "inject" this in an actual page via Label for debugging
purposes.  I've tried getting a hold of the actual data a number of ways
like the following in a Panel:

ResourceReference resourcesReference = new RSSReference();
Attributes attrs = new Attributes(getRequestCycle().getRequest(),
getRequestCycle().getResponse()); 
resourceReference.getResource().respond(attrs); 
String test = null;
getRequestCycle().getResponse().write(test);

However, nothing seems to work.  Any help is greatly appreciated!  I'm using
wicket 1.5.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-get-actual-data-from-ByteArrayResource-tp4328722p4328722.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



jQuery Mobile styling disappears after Wicket ajax update

2012-01-25 Thread wicket_newb
I'm trying to implement a list that updates itself after a user clicks on a
link.  The list is a ListView repeater and is a child of WebMarkupContainer. 
For each ListView item, I've attached an AjaxFallbackLink with the
WebMarkupContainer object as the sole ajax target.

My implementation mostly works except some jQuery Mobile styling in the
container disappear.  Looking at Firebug, I noticed that jQuery Mobile's
dynamically-generated class attributes are gone.

As an example, my repeating divs before Wicket ajax update looks like this:


etc...


After the ajax update:


etc...



Is there a way to tell Wicket to keep jQuery Mobile styling after an ajax
update?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jQuery-Mobile-styling-disappears-after-Wicket-ajax-update-tp4328874p4328874.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: Error while closing the modal window

2012-01-25 Thread sudeivas
I just added the below code,

modalWindow.setOutputMarkupId(true);

But now I am seeing a different error,

Page with id '6' has expired.
org.apache.wicket.protocol.http.PageExpiredException: Page with id '6' has
expired.
at
org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:169)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getPage(ListenerInterfaceRequestHandler.java:100)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:165)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
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
de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:147)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at com.xxx.tomcat.valves.QueryLogValve.invoke(QueryLogValve.java:78)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

So my question is whether opening a modal window release the source page
from session. Because when we close the modal window, we get page expiration
issue. So I think the source page is not there in the session.

Is this an issue or am I missing something?

-Suresh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-while-closing-the-modal-window-tp4325332p4327732.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: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?

2012-01-25 Thread robert.mcguinness
Example of monkey patching wicket 1.3 javascript to support dom
find/replacement across iFrames and window.opener, maybe this will give you
some ideas.


https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/pages/rm3.js#L17

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4327268.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 webshere 7

2012-01-25 Thread matteus

Its work with the servlet, but I had to change the implementation that you
gave me through the link. 

In my application when I put all the code was it not working so I had to put
only the following code:


wicket.application

org.apache.wicket.protocol.http.WicketServlet

applicationClassName
myApplication




wicket.application
/*


Only this and its work..

Thanks a lot to everyone who helped me


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4327096.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 webshere 7

2012-01-25 Thread James Carman
The surprising thing is that you actually have to do something like that to
get it to work properly.
On Jan 25, 2012 3:04 AM, "Geoff Lancaster" 
wrote:

> Filters work just fine. Did you set
>
> com.ibm.ws.webcontainer.invokefilterscompatibility= true
> In your web containers custom properties?
>
> Application servers -> server -> web container settings -> web container
> -> custom properties
>
> Sent from my iPhone
>
> On Jan 23, 2012, at 11:23 AM, matteus  wrote:
>
> >
> > Yes, my application is running with the filter  Wicket Filter.
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4321364.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: To enable client-side page caching

2012-01-25 Thread Michael Allan
PPS,

This isn't enough:

> > ... Is there an API to re-enable caching?  Or do I set
> > the response headers myself?
> 
> Sorry, I see the answer is WebResponse.enableCaching() ...

You must also override WebPage.setHeaders().  It isn't documented so I
updated the wiki and opened a bug on the 1.5.4 API:
https://cwiki.apache.org/WICKET/caching-in-wicket-15.html
https://issues.apache.org/jira/browse/WICKET-4357

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/

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



Re: How to customize RatingPanel markup

2012-01-25 Thread Geoff Lancaster
You named the panel "rating" in your java but did not define "rating" in your 
html

Sent from my iPhone

On Jan 23, 2012, at 12:18 PM, Daniel Watrous  wrote:

> I've been trying to override the default RatingPanel markup, but I'm
> having trouble. I found this:
> http://apache-wicket.1842946.n4.nabble.com/How-to-override-RatingPanel-default-CSS-td1873783.html
> 
> I create the subclass:
> 
> public abstract class MovieRatingPanel extends RatingPanel {
>public MovieRatingPanel(String id, IModel model, int
> numberOfStars, boolean defaultCss) {
>super(id, model, numberOfStars, defaultCss);
>}
> }
> 
> I then change the RatingPanel to MovieRatingPanel in my markup:
> 
>movieItem.add(new MovieRatingPanel ("rating", new
> PropertyModel(rating, "rating"), 5, false) {
>@Override
>public boolean onIsStarActive(int star) {
>return rating.isActive(star);
>}
>@Override
>public void onRated(int newRating,
> AjaxRequestTarget target) {
>movieItem.getModelObject().setRating(newRating);
>rating.updateRating(newRating);
> 
>Session session =
> HibernateUtil.getSessionFactory().getCurrentSession();
>session.beginTransaction();
>session.update(movieItem.getModelObject());
>session.getTransaction().commit();
> 
>movieList.detach();
>}
>});
> 
> The markup is
> 
> http://wicket.apache.org";>
> 
> 
> 
> 
>
> href="#" wicket:id="link">
>
> 
> 
> 
> 
> I am getting the Exception:
> Last cause: 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. [Component id = rating]
> 
> I'm not sure how to extend this so that I can simply replace the
> default markup with my own. Any pointers?
> 
> -
> 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: Wicket webshere 7

2012-01-25 Thread Geoff Lancaster
Filters work just fine. Did you set

com.ibm.ws.webcontainer.invokefilterscompatibility= true
In your web containers custom properties?

Application servers -> server -> web container settings -> web container -> 
custom properties

Sent from my iPhone

On Jan 23, 2012, at 11:23 AM, matteus  wrote:

> 
> Yes, my application is running with the filter  Wicket Filter.
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4321364.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
>