Hi,
I'm looking for a simple and feasible message sending solution for my
application.
The main goal is that components (both wicket and spring) should be send
messages if a specific event occurs to users.
The message will be displayed at top of the page with help
AjaxSelfUpdatingBehaviour.
Spring
Hi,
The session services could store messages to application scoped bean.
The Wicket components in either the Wicket Session or session scoped bean.
The AjaxSelfUpdatingBehaviour will check both.
The session scoped messages could be deleted after render but you have to
think of a way how to mark a
Hi
If you are looking for another approach, you can give a try to native
websockets.
In the java sample below, the business tier is triggering a listener event,
which received by the web tier, which sends the websocket message.
Client side, the page is registered to the websocket by a Behavior. W
Hi Chris,
Have you tried the following?:
In my case, the above solution was not properly redirecting to external url
in production mode, so I resorted to using RedirectToUrlException:
On the onSubmit(), I then calledsetResponsePage(new RedirectPage(
"external url" ) );
I hope this he
Hello All,
We are developing Wicket based application. Additionally on our demo server
we are using mod_proxy to allow access to the users who have port 5080
closed.
Everything worked as expected until we have added websockets :((
Maybe anyone have positive experience on configuring
mod_proxy+mo
Hi Maxim,
I think I have a Deja Vu :-)
You fought the same problem several months ago and reported that you have
implemented it at http://markmail.org/message/v25lzvhkfydu5yyb
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Apr 22, 2015 at 12:23 PM, Maxim So
Thanks for the reply Martin,
Unfortunately this story is not over :((
The solution published is not working, I'm still looking for the advice.
published configuration leads to: Error during WebSocket handshake:
Unexpected response code: 302
On Wed, Apr 22, 2015 at 4:02 PM, Martin Grigorov
wro
Hi, thanks a lot, I will try it out.
br, Chris
> Am 22.04.2015 um 10:58 schrieb lucast :
>
> Hi Chris,
> Have you tried the following?:
>
>
>
> In my case, the above solution was not properly redirecting to external url
> in production mode, so I resorted to using RedirectToUrlException:
>
Martin, thanks a lot for your explanations!
Chris
> Am 22.04.2015 um 08:05 schrieb Martin Grigorov :
>
> Hi,
>
> On Wed, Apr 22, 2015 at 4:48 AM, Chris wrote:
>
>> Hi all,
>>
>> I need so share a list of strings between some objects during a session;
>> Within the session, the list of strin
Martin, thanks for the tip.
I would like to use some dynamic List Model, but not a detachable one and put
following in the page’s initialization method:
IModel> poisModel = new ListModel() {
@Override
public List getObject() {
return service.retrieveList
Hi Martin,
do you have a tip for following problem?
Thanks!
>
> I have disabled Javascript in Firefox and inserted following code below but
> nevertheless, the page does not display "If you see this, it means that both
> javascript and meta-refresh are not support by your browser configurati
Hi Chris,
#getObject is potentially called often, yes. You should never override
#getObject() like this
A dynamic model is a LoadableDetachableModel. Overrides #load and it will
be called only once by server request, at each server request (that
consumes the model, of course).
Hope this helps
Hi Sebastian,
thanks - but if the page has many subcomponents that consume the model then
there would be many subsequent calls? The service call might be expensive,
isn’t it?
Is there another solution next to loadable detachable model? I could use a
static model if the model does not change dur
Hi all,
I would like to call a certain JS method in the #renderHead method based on
whether a cookie is set:
I am getting a Last cause: org.apache.wicket.response.StringResponse cannot be
cast to org.apache.wicket.request.http.WebResponse exception.
Is it still possible to do this in the #rende
Hi Chris,
thanks - but if the page has many subcomponents that consume the model then
> there would be many subsequent calls?
To getObject, yes. But if you use a (shared) LDM it doesn't matter.
> The service call might be expensive, isn’t it?
>
Yes, probably.
> Is there another solution nex
Hi Sebastian,
With „static“ I mean something as follows: model = new
ListModel(service.retrieve());
I do not quite understand why the subsequent calls do not matter when using a
LDM.
If I use an LDM and a component of the page uses this model (e.g. creating a
new Panel) then the service metho
It seems you have changed the response to StringResponse earlier and you
try to write a Cookie into it.
Please paste the stacktrace if you need more help.
On Apr 23, 2015 12:48 AM, "Chris" wrote:
> Hi all,
>
> I would like to call a certain JS method in the #renderHead method based
> on whether
See the implementation of LoadableDetachableModel. It caches the result for
the request lifetime. That's why it calls getObject() just once
On Apr 23, 2015 1:56 AM, "Chris" wrote:
> Hi Sebastian,
>
> With „static“ I mean something as follows: model = new
> ListModel(service.retrieve());
>
> I do
18 matches
Mail list logo