AW: Change pageId Parameter structure

2020-07-16 Thread Ravi Knox
Hi Bas,

 

I refactored my code as you described and it works well so far.

 

Thanks a lot J

 

Ravi





Re: Change pageId Parameter structure

2020-07-14 Thread Ravi Knox
Hi Martin,

 

that was a good starting point, thank you. 

I had to overwrite basically all Mappers within the SystemMapper and mounts
(since they create mappers themselves).

 

The following Methods I had to overwrite:

-#encodePageComponentInfo - for adding the custom page param

-#getPageComponentInfo - for reading the custom page param as
component id

-#extractPageParameters - to remove the custom page param from the
parameter list

 

Does that make sense to you or did I miss something?

 

Thanks,

 

Ravi

 



Hi Ravi,

 

The logic you look for is at

https://github.com/apache/wicket/blob/267fb06eec31e8e530fb5f0a4f691a0782e3d5
b8/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/AbstractC
omponentMapper.java#L79

It is called by:

https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/a
pache/wicket/core/request/mapper/PageInstanceMapper.java#L133

 

You will need to use custom version of PageInstanceMapper that overrides

protected void encodePageComponentInfo(Url url, PageComponentInfo info)

 

On Mon, Jul 13, 2020 at 8:40 AM Ravi Knox  wrote:

 

> Hi all,

> 

> 

> 

> my client has a website, where he includes our Wicket application (Wicket

> 8.3.0) via JQuery.load() in his template.

> 

> Because of a Reverse-Proxy, he has to whitelist all PageParameters.

> 

> 

> 

> To keep it short;

> 

> We need to change the pageId Parameter to something like

> "myapp.com/homepage?pageId=1".

> 

> 

> 

> After reading source code and googleing I couldn't find a way to do this.

> 

> Is it even possible? If so, where would be the place to look for?

> 

> 

> 

> Thanks for any hints,

> 

> 

> 

> Ravi

> 

> 

 



Quoted from: 

http://apache-wicket.1842946.n4.nabble.com/Change-pageId-Parameter-structure
-tp4684229p4684233.html



Change pageId Parameter structure

2020-07-12 Thread Ravi Knox
Hi all,

 

my client has a website, where he includes our Wicket application (Wicket
8.3.0) via JQuery.load() in his template.

Because of a Reverse-Proxy, he has to whitelist all PageParameters.

 

To keep it short;

We need to change the pageId Parameter to something like
"myapp.com/homepage?pageId=1".

 

After reading source code and googleing I couldn't find a way to do this.

Is it even possible? If so, where would be the place to look for?

 

Thanks for any hints, 

 

Ravi



Re: Wicket 8 rendering of components

2019-05-13 Thread Ravi
I'll try that,

Thank you for your quick response, Sven!

-Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket 8 rendering of components

2019-05-13 Thread Ravi
Hi Sven,

sure thing, here it is.

Thanks!

Ravi

secure-form-example1.zip
<http://apache-wicket.1842946.n4.nabble.com/file/t375522/secure-form-example1.zip>
  

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Wicket 8 rendering of components

2019-05-10 Thread Ravi
Hi all,

I have a question regarding the rendering in Wicket 8.3.0.

We have a Wicket 7.2.0 implementation of SecureForm for CSFR prevention
similar to what shayy posted here
http://apache-wicket.1842946.n4.nabble.com/Implementing-a-SecureForm-to-avoid-CSRF-attacks-td4666175.html

Basically we programatically add the markup of a hidden input in
onComponentTagBody( markup, tag) of the Form.
This hidden input was added to the component tree in onInitialize.
In onBeforeRender we mark the component as rendered.

Worked fine so far.

What seems to be happening is that onBeforeRender ist called in
ComponentRenderingRequestHandler.beforeRender before component.renderPart
ist called.
RenderPart resets the renderedComponents in the Page - throwing away our
hidden input that was added in onBeforeRender.
Leaving us with an exception that ist thrown during Page.checkRendering.

Is this the expected behavior and if so how would I go about marking
components as rendered?

Thanks for any hint,

Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Ajax-Fileupload on an ebedded webpage

2019-03-26 Thread Ravi
Almost thought so. I guess we have to bite the bullet.

Thank you Sven!

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Ajax-Fileupload on an ebedded webpage

2019-03-25 Thread Ravi
Hi all,

we're embedding a page from our application 'myApp' via JQuery.load() (No
iframe!) into our customers app 'customerApp'.
myApp uses AJAX almost exclusively.

Now we integrated a file upload into myApp and set the form to multipart.
That causes Wicket to send every form submit via an iframe.

What's breaking our functionality is that myApp runs under a different
domain that customerApp. 
Now after submitting the iframe, customerApp tries to accesss the content of
the iframe that runs under the domain of myApp.
For security reasons this is prohibited.

Does anyone know the reason behind the iframe usage?

Any Idea of how to work around this?

If I see correctly, Wicket 8 uses a jQuery solution. Unfortunately an update
is not possible on short notice.

We are using wicket 7.2.

Thank you,

Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxRequestHandler sends redirect if update contains a page

2018-05-25 Thread Ravi
Hi Martin,

a colleague also gave me the hint regarding the need of a markupId to
replace an element.
Makes perfect sense, thanks for clarification :)

-Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



AjaxRequestHandler sends redirect if update contains a page

2018-05-25 Thread Ravi
Hi,

I was wondering why AjaxRequestHandler sends a redirect when I add a page to
the ART.

I understand that for most cases it does not make sense to add the whole
page, but I'm just lucky enough to be on one of those situation.
Our page is being integrated in a third party page via JQuery.load(). At
some point we replace the current session and I want to re-render the whole
page to update the session urls.

A redirect sends me straight to our application, loosing the third party
page.

Since I was /intentionally adding the page to the ART/, shouldn't it be
treated as any other component?

Thanks,

Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: SPA, session replacement and pagestore

2018-05-22 Thread Ravi
Hi Bas,

thank you for taking the time!

If there is no way to move the pagestore from one session to another, we
might have to think in other directions. 
There are some more factors to be considered, but I'll keep your solution in
my mind. 

-Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



SPA, session replacement and pagestore

2018-05-18 Thread Ravi
Hi all,

we have a single page application (SPA). On the first entree we of course
get a Session url that will never disappear due to the nature of an SPA.
So what we do is a session replacement on the first button click to battle
Session Hijacking when posting the link in some forum.
For a single tab that works just fine.

If you have two tabs open and tab A fires a sessionreplacement, it clears
the pagestore, causing to loose the page that is displayed on tag B.
Interacxtion with tab B then leads to a session expired page.

Is there any best practice or has someone of you guys tackled something like
this before?
Or can I "remap" the old pagestore to the new session?

Thanks for any input,

Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket in a wildfly cluster

2018-03-08 Thread Ravi
Hi Shengche,

sorry for the late reply. The replication as such is working. We do run into
what seems to be a timing factor.

On a very small scale it works now with the pagestore on a shared
filesystem. We'll do some loadtesting within the next days.

-Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket in a wildfly cluster

2018-03-05 Thread Ravi
Hi,

wildfly runs in domain mode with default settings for the distributed cache.

It seems that the problem is not the jboss settings but somehow the
pagestore is either not written fast enough or concurrently.



--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket in a wildfly cluster

2018-03-02 Thread Ravi
We also tried to put the pagestore on a shared filesystem, with a similar
result.
The session itself is only a few kb.

Thanks for taking the time!

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket in a wildfly cluster

2018-03-02 Thread Ravi
Hi Bas,

we have an apache that balances by using a round robin (byrequest).
The application runs in an infrastructure that does not support
sticky-sessions.

So far from what we've seen both servers getting pinged withing
milliseconds. One server responds correctly. The other one throws a
ComponentNotFoundException.

But it is not deterministic, meaning it does work at times.


Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Wicket in a wildfly cluster

2018-03-02 Thread Ravi
Hi all,

we have the following scenario;

Our single-page application is a 100% used for application forms and makes
heavy use of ajax calls (validation, visibility, etc). 
There might even be an ajax call for every blur on an input field.

We're trying to put this application in a wildfly cluster that replicates
the session & pagestore through infinispan.

It seemes that the pagestore is not replicated fast enough(?), so that we
get a ComponentNotFoundException.

After playing around with the wicket/infinispan configuration our setup
looks like this:

Wicket:
- HttpSessionDataStore
- getStoreSettings().setAsynchronous(false);
- getStoreSettings().setInmemoryCacheSize(0);
-
getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER);

JBoss:
- cluster mode (ha profile)

Infinispan
- Distributed cache with default config
  
Although this configuration seems to work now and then, it still breaks
quite often and is very fragile.
Since no one here has a lot experience with clustering, maybe someone here
has any theoretical/practical experience and is willing to share :)

Needles to say that we googled the web and forum ;)

Thank you,

Ravi


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: File download not working after migrating to wicket 8

2018-01-02 Thread Ravi
That did the trick, thanks Sven!

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



File download not working after migrating to wicket 8

2018-01-02 Thread Ravi
Hi all,

I'm currently migrating our project to wicket 8. The migration guide was a
big help, thank you for that :)

I could solve all but one problem regarding an internal file download.
We have an ajax-button that returns a
"/window.location.href='dynamic-url/'".
Somehow I'm always getting the page source as a response, instead of the
actual file.

Technically I have a page implementing the /IRequestListener/ interface for
the /onRequest()/-method.
That page holds an ajaxlink that returns the above mentioned js-snippet with
the url generated by "/urlForListener(new PageParameters())/" method on the
page.
In /onRequest()/ we create a /ResourceStreamRecource /that should be
delivered to the user. 
Something like this:
/final Attributes a = new Attributes(cycle.getRequest(),
cycle.getResponse(), null);
resource.setFileName(new Date().getTime() +".txt");
resource.respond(a);
/
I can see that /onRequest /gets called, but what's delivered in the frontend
is always the page markup.
Also if I click the link again I'm getting a /StalePageException/.

Any idea what might cause this behavior?

I also upload a quickstart that shows the problem.
myproject.7z
<http://apache-wicket.1842946.n4.nabble.com/file/t375522/myproject.7z>  

Thanks for your help,

Ravi

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Localization of PageParameters

2017-07-12 Thread Ravi
Hi Martin,

here's the Ticket https://issues.apache.org/jira/browse/WICKET-6419

Thank you!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Localization-of-PageParameters-tp4678221p4678229.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



Localization of PageParameters

2017-07-11 Thread Ravi
Hi guys,

we stumbled on a behavior and I'm not sure why it is implemented as it is ;)

It concerns the reading of PageParameters. They all use the StringValue
constructor without passing the Session locale.
The StringValue will in turn use the systems locale.

So when I retrieve a _en formatted number (1.000) from my GET-Params, I get
a wrong number (1) because my Server runs on a _de machine where a dot is a
decimal delimeter.

I can work around that by again creating a StringValue based on my previous
StringValue, but with passing the Session locale.

Shouldn't it pass the session's locale in first place?

See  here
<https://github.com/apache/wicket/blob/master/wicket-request/src/main/java/org/apache/wicket/request/mapper/parameter/PageParameters.java#L167>
 
for the PageParameter implementation and  here
<https://github.com/apache/wicket/blob/master/wicket-util/src/main/java/org/apache/wicket/util/string/StringValue.java#L186>
 
for the StringValue implementation.

Thank you for taking the time,

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Localization-of-PageParameters-tp4678221.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: ResourceReference that contains relative paths

2017-05-22 Thread Ravi
Ok, I got it. Thank you for clarifying!!!

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReference-that-contains-relative-paths-tp4677885p4677916.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: ResourceReference that contains relative paths

2017-05-19 Thread Ravi
Hi Martin, thank you for your answer.

The thing is that we don't want to touch the css, so that we can easily
upgrade without having to customize the files.
For now I mounted all fonts to the requested path in my Application class.
Although it works, it does not feel exactly right...

With bootstrap in combination with CssResourceReference that would be a
fairly common problem?!
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReference-that-contains-relative-paths-tp4677885p4677909.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



ResourceReference that contains relative paths

2017-05-17 Thread Ravi
Hi,

I have the following scenario:
My packages look like:
-bootstrap
--css
---BootstrapCssResourceReference.java
---bootstrap.css
--fonts
---glyphicons-halflings-regular.eot

In that css file bootstrap defines its font by referencing a relative path
(src:url(../fonts/glyphicons-halflings-regular.eot)
The BootstrapCssResourceReference has the following url:
http://localhost:8080/webapp/wicket/resource/some.package.bootstrap.css.BootstrapCssResourceReference/bootstrap.min-ver-1495022368739.css

Now when the browser resolves the relativ font url, it comes up with
http://localhost:8080/webapp/wicket/resource/fonts/glyphicons-halflings-regular.eot
Obviously it won't find anything there. 

I'm wondering what is the best way of dealing with that kind of references?
I could mount a ResourceReference for each file, but maybe there is a better
way?

Thanks for your time,

Ravi




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReference-that-contains-relative-paths-tp4677885.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: Use Page from Pagestore even if PageParameters have changed

2017-02-03 Thread Ravi
Hi Sven,

just a quick update - your suggestion works perfectly. 
I tried implementing the LinkListener on my PaymentPanel and that works as
well.
The best thing is that I also have a dedicated onLinkClicked() method.

Thanks a lot!

Ravi



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676980.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: Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
Hi Sven,

thank your for your quick reply. I'll try your LinkListener suggestion.

-Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676975.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



Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
Hi,

We have a Single-Page-Application (SPA) with five pages. On page three we
redirect to a payment partner. Once the payment is done, it redirects back
to our application with given URL.
Because I want to continue on page three, the URL contains the pageId. 
Sounds good so far. But now the payment partner has added a reference token
to the URL and as described in  this Ticket
<https://issues.apache.org/jira/browse/WICKET-4441>  , Wicket will create a
new page instance because the PageParameter have changed.

What I want to do is that my application always uses the existing page, no
matter if parameters have changed.
I achieved this by  adding a custom MountedMapper, which basically reverts 
this commit
<https://fisheye.apache.org/changelog/wicket-git?cs=a53591f030b87b5d1552e567226705020dee2a62>
   

In your opinion, is this the proper way for handling those kinds of
problems, or are there any drawbacks to this approach?

Thanks for your time,

Ravi

Ticket-4441 https://issues.apache.org/jira/browse/WICKET-4441.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971.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: embed Wicket application on any page

2016-10-07 Thread Ravi
Hi,

we developed a software that can be embedded on any html with a JS-Snippet. 
Though we had to overcome a few obstacles, we managed to get it working for
our use-case.

The embedding application can pass an URL as a parameter to which we
redirect in case of an expired session. That'll result in a page reload of
the embedding page.
Works if you have only one (embedded) page.

The  section of embedded pages seem to get handled pretty well by most
Browsers. We hadn't had any problems so far (Desktop & Mobile)

You have to enable CORS, of course.
And the conflicting JS gave us some trouble...



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/embed-Wicket-application-on-any-page-tp4675695p4675706.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-07-18 Thread Ravi
Hi Martin,

Urls look good to me. All Ajax links point to 'page/param'.

Thank you.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4675132.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-07-11 Thread Ravi
Hi,

was the quickstart any help?

Regards,

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4675069.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-07-01 Thread Ravi
Done. Thank you for checking it out.

https://issues.apache.org/jira/browse/WICKET-6192

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4674996.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-07-01 Thread Ravi
Copied from Jira

/Works!
Thank you./

Sorry, but I have to correct myself.

The way I use it, it still does not work.
In a nutshell that's what we try to archive:
Save a cookie on a client browser under the path of the current page.
The page does have a mandatory named parameter!
If the Session expires. The SessionExpiredPage will read the cookie and
start a redirect.

What happens now is that by the time the AbstractBookmarkableMapper wants to
generate the URL of the component, before including the existent parameters,
it does an getRecreateMountedPagesAfterExpiry() check (see
https://github.com/apache/wicket/blob/wicket-7.x/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/AbstractBookmarkableMapper.java#L479).
which answers false and the existing parameters are not added to the new
UrlInfo object.

That in return will lead to a failure when calling setPlaceholders(copy,
url) (see
https://github.com/apache/wicket/blob/wicket-7.x/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/MountedMapper.java#L206)
and results in a null url return value, that lets wicket default to the
generic URL we had before.

I hope to get across what I mean, my english is a little rusty :)

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4674993.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-06-27 Thread Ravi
Hi Martin,

thank you for the fix. I couldn't test it last week because I was out of
town. Will do it this week.

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4674964.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: Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-06-17 Thread Ravi
Thank you Martin, here's the Ticket:
https://issues.apache.org/jira/browse/WICKET-6182

-Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4674922.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



Implications of setRecreateBookmarkablePagesAfterExpiry()

2016-06-15 Thread Ravi
Hi all,

I have an application where I set cookies with the app's context +
mountedPageUrl as the cookie's path.
Something like this: 'wicket-sandbox/pageA'

Work's fine out of the box.
Now I want to have a SessionExpiredPage.
According to this https://issues.apache.org/jira/browse/WICKET-4014 I simply
have to set setRecreateBookmarkablePagesAfterExpiry(false).

But now all of my Ajax-/Listener-URLs don't use their mounted page URLs
anymore, but a generic 'wicket/page'.

So before, they look like:
http://localhost:8081/wicket-sandbox/pageA?2-1.IBehaviorListener.0-increment&_=1465988637772
Now they look like:
http://localhost:8081/wicket-sandbox/wicket/page?1-1.IBehaviorListener.0-increment&_=1465988144642

So it is not possible to get or differentiate between the cookies.

I tried debugging it, but I do not see where I can change this behavior
because at the point where the application decides on which
IPageRequestHandler to use (/see Component.class, method
createRequestHandler(RequestListenerInterface listener, PageParameters
parameters, Integer id)/), 
it does query the getRecreateBookmarkablePagesAfterExpiry() method (which
returns false) and uses a ListenerInterfaceRequestHandler instead of an
BookmarkableListenerInterfaceRequestHandler.

Any ideas on how I can get this working?

Kind regards,

Ravi 

I am using wicket 7.2.0


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899.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:head and ajax updates

2016-06-02 Thread Ravi
One difference I see in the response is that in my application the  is
contained in the  element (not working). Whereas in my
quickstart it is in the in an  element (working) as such:

Quickstart:






My application:




any idea where I can start debugging or how to avoid this?
I also added an Ajaxlink in my application that send an event to my
Title-label and this works too!

I can not make out the where the difference lies, since the browserTitle
listens only to an event.

Any idea how to avoid this, or where I could start debugging?

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-and-ajax-updates-tp4674827p4674834.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:head and ajax updates

2016-06-02 Thread Ravi
Okay, my quickstart works as expected.
So the problem must be somewhere else in my code...

Thank you all for your quick response!

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-and-ajax-updates-tp4674827p4674833.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:head and ajax updates

2016-06-02 Thread Ravi
Francois Meillet wrote
> Hi Ravi,
> 
> a stupid question : are you sure the updated value is different from the
> original value ?
> 
> François 

Yes :)
I try to make a quikstart.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-and-ajax-updates-tp4674827p4674832.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:head and ajax updates

2016-06-02 Thread Ravi
@Ernesto
I added the version to my post.

@Martin
It is present in the Ajax response as well as in the page markup.
The page renders correctly the first time. Only the Ajax update does not
occur in the head.
I'll try to strip it down somewhat.

Usually I don't use wicket:head. So I wasn't sure if I'm missing something.

You have a point there martin, but since this is a base component for
multiple applications, we try to keep the applications itself as lean as
possible.

Ravi


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-and-ajax-updates-tp4674827p4674830.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



wicket:head and ajax updates

2016-06-02 Thread Ravi
Hi all,

I have following problem:
I have a panel with a wicket:head tag that contributes the  to a
page. The title is a simple Label.
Now the first time it renders without a problem. 
When I navigate in my form, it sends an event that the title-label listens
to and adds itself to the target.
But in the HTML it never gets refreshed. Although I can see it in the
response with the updated value.

Also the same mechanism worked before when I had it on the page itself and
put it directly in the  section.

any ideas what I missed?

Kind regards,

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-and-ajax-updates-tp4674827.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



Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Hi all,I'm facing the following problem, where I'm not sure how to best
handle it.I did specify all error pages, and they work if I'm within my
Request-Response perimeter.If I manipulate a Requestheader, that it says for
example: Wicket-Ajax: trssue instead of Wicket-Ajax: true, I get the
tomcat 500 error page with a stack trace and some Tomcat related Info.
Especially the Tomcat version. Since this can be a security Issue, it should
my custom page.As far as I can see, the exception is thrown within the
Wicketfilter.processRequest() method, more specifically:WebRequest
webRequest = application.createWebRequest(httpServletRequest, filterPath);It
does pass that Line two times, so I guess it does try to call may Error
page, but with the same Header, resulting again in an Error.Here is the
Stacktrace
org.apache.wicket.util.string.StringValueConversionException: Boolean value
trssue not recognized
org.apache.wicket.util.string.Strings.isTrue(Strings.java:623)
org.apache.wicket.protocol.http.WebApplication.createWebRequest(WebApplication.java:468)
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:196)
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
I don't see how to best approach that.Do you have any advice/ideas?I am
working with Wicket 7.M5.Thanks, Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828.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: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Nice, I didn't see that.

That does solve my Problem, Thank you :)


Martin Grigorov-4 wrote
 You can ignore paths in WicketFilter with 
 init-param
  -
 https://github.com/apache/wicket/blob/31f3acb0d01af7be11a85c8e611c420180f77924/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java#L77
 
 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov
 
 On Tue, May 19, 2015 at 3:06 PM, Ravi lt;

 ravi.knox@

 gt; wrote:
 
 Hi Martin,

 thank you for your quick reply.
 I have specified my errorpages inside the web.xml as well, although
 pointing
 to my Wicket pages.

 I now created a dedicated static .html file as a reference in the web.xml
 but I still pass through the WicketFilter, since it is mapped to root
 lvl.

 I will try it with a custom Filter next.

 thanks,

 Ravi

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828p4670830.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: 

 users-unsubscribe@.apache

 For additional commands, e-mail: 

 users-help@.apache






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828p4670836.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: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Hi Martin,

thank you for your quick reply.
I have specified my errorpages inside the web.xml as well, although pointing
to my Wicket pages.

I now created a dedicated static .html file as a reference in the web.xml
but I still pass through the WicketFilter, since it is mapped to root lvl.

I will try it with a custom Filter next.

thanks, 

Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828p4670830.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 disable pagination in inmethod grid?

2009-12-01 Thread Ravi Wallau

You have to use the DataGrid component instead of the DefaultDataGrid
component. The DataGrid doesn't include the pagination components at the
bottom of the grid.


Roman Ilin wrote:
 
 Hi *,
 
 does anybody know how to hide pagination and Showing x of y message
 in inmethod grid component?
 
 Regards
 
 Roman
 
 -
 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://old.nabble.com/how-to-disable-pagination-in-inmethod-grid--tp26386527p26601637.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