You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fachhoch <fa...@gmail.com> on 2010/07/09 14:13:12 UTC

using comet to find all clients using a page

using comet will I be able to get total number of clients using some  page ?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2283204.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by Martin Grigorov <mc...@e-card.bg>.
Take a look at wicketstuff-core/push project and its examples.
All you need is to subscribe a listener to a topic and when the admin
makes the action just send a message to that topic. Cometd will notify
all listeners and there you can do whatever you need.

On Mon, 2010-07-12 at 08:05 -0700, fachhoch wrote:
> I have a Page A , several browsers might have  page A opened.
> 
> 
> based on an admin action I want to open a popup in page A 
> ie 
> if admin performs an action I query  all Browsers connected to my server if
> they have page A opened
> 
> then open a modal window in all those pages   is this possible ?
> 
>   
> 



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


Re: using comet to find all clients using a page

Posted by fachhoch <fa...@gmail.com>.
wicket cometd is it  asychronous  or synchronus ?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2289929.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by vineetsemwal <vi...@gmail.com>.
you are already using comet,just create a event  when  admin does some
action,
you must be having channel listener corresponding to a component in page.
when a event is received ,do your stuff ..

-- 
regards,
Vineet Semwal
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2286251.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by fachhoch <fa...@gmail.com>.
I have a Page A , several browsers might have  page A opened.


based on an admin action I want to open a popup in page A 
ie 
if admin performs an action I query  all Browsers connected to my server if
they have page A opened

then open a modal window in all those pages   is this possible ?

  

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2286221.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by fachhoch <fa...@gmail.com>.
I have a Page called A  , 
now I need  sessions of  all the browsers which have  Page A opened is this
possible ?     


-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2286133.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by david_ <me...@gmail.com>.
ask obama and you'll know :)

I did something identical I think. But what do you mean with

> if any session has currently  has the deleted task page




2010/7/9 fachhoch [via Apache Wicket] <
ml-node+2283963-1645768850-232081@n4.nabble.com<ml...@n4.nabble.com>
>

> In   my case I have to refresh  some pages  based on some business logic,
> mine is a   workflow applicaiton , workflow creates tasks for user.I show
>  users tasks, these user task  pages are implemented in wicket.
>  we also have some admin functionality where admin can delete the task
> ,supposeadmin deletes a task , what i want is find if any session has
> currently  has the deleted task page and bring a popup telling this task is
> deleted   , can I do this ?
>
>
> ------------------------------
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2283963.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1066186228-232081@n4.nabble.com<ml...@n4.nabble.com>
> To unsubscribe from Wicket - User, click here<http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2>.
>
>
>

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2284342.html
Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using comet to find all clients using a page

Posted by fachhoch <fa...@gmail.com>.
In   my case I have to refresh  some pages  based on some business logic,
mine is a   workflow applicaiton , workflow creates tasks for user.I show 
users tasks, these user task  pages are implemented in wicket.
 we also have some admin functionality where admin can delete the task
,supposeadmin deletes a task , what i want is find if any session has
currently  has the deleted task page and bring a popup telling this task is
deleted   , can I do this ?

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2283963.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by david_ <me...@gmail.com>.
you can solve this yourself by managing a Map where you put in the users in
the constructor of the page
on session expiration, you remove the user from the Map

2010/7/9 fachhoch [via Apache Wicket] <
ml-node+2283204-669277367-232081@n4.nabble.com<ml...@n4.nabble.com>
>

> using comet will I be able to get total number of clients using some  page
> ?
>
> ------------------------------
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2283204.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1066186228-232081@n4.nabble.com<ml...@n4.nabble.com>
> To unsubscribe from Wicket - User, click here<http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2>.
>
>
>

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2283210.html
Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using comet to find all clients using a page

Posted by fachhoch <fa...@gmail.com>.
Please tell me  if it works ok on all servers or has problems with any ?
I saw some posts telling about problems with jetty ,


  
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2288834.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: using comet to find all clients using a page

Posted by Rodolfo Hansen <kr...@gmail.com>.
If they have javascript enabled and the comet loads correctly for them: 
 Yes.

On Fri, 2010-07-09 at 05:13 -0700, fachhoch wrote:
> using comet will I be able to get total number of clients using some  page ?



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