Use existing Wicket Application for Android Application

2012-12-26 Thread Arun Chauhan
I want to make a Android Application of grocery stores. I have an existing
Wicket Application deployed on server which I want to use in my Android
Application for request handling. Is it compatible to use wicket application
for android part.

There are 2 ways:

Use existing Wicket Application for request handling from Android
Application. Can some one suggest me is this possible or is this the right
way? If yes how can I achieve this and some tutorials are most welcome.

Second thing I thought about is integrate Spring with Wicket and migrate all
my service classes to Spring and then use those spring service classes for
Android Application. This approach is little costly and time consuming. But
if first aprroach is not so good, I might think of opting this. So any
tutorial on this part is also welcome.

Any help or suggestion are welcome. Thanks in advance !



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-existing-Wicket-Application-for-Android-Application-tp4655073.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: CSS for subpanel tabs

2012-12-26 Thread Per Newgro

Hello John Doe,

did you try a css selector by class instead of id?

PS: Posting without any name is not very respectful.
Posting such commonly phrased questions (my xyz is not working - tell me 
why)
oftenly stay unanswered. Please provide some code (java, html, css) and 
i bet you

get good answers here.

Cheers
Per

Am 26.12.2012 18:13, schrieb appwicket:

Hi,
I'm using panels contains tabbed panels and each tab contains few
sub-tabbedpanels.
I load my css in my page and it works fine for the tabs and the sub tabs in
first tab.
However the CSS doesn't work for other subtabs in other tabs.
(I got CSS from   Wicket - jQuery UI
  )

anyone can tell me how can i make it work for subtabs?
Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-for-subpanel-tabs-tp4655061.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





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



Re: Wicket Atmosphere does not run in Firefox 17

2012-12-26 Thread Emond Papegaaij
It seems you hosting provider does not support websockets. For some reason,
in Chrome the downgrade to 'streaming' works fine, but in Firefox it does
not. Firefox keeps trying to establish a ws connection, which fails over
and over again. I think this is a problem in Atmosphere. You could try
asking this question at their google groups. I've created a ticket
(WICKET-4946) for passing parameters to atmosphere, which would allow you
to disable websocket.

Best regards,
Emond Papegaaij


On Mon, Dec 24, 2012 at 12:22 PM, Noven  wrote:

>
> Hi,
>
> Thank you for your reply before. I did not change anything in firefox. If
> I have to, I can't use this feature.
> I doubt if the problem caused from firefox. When the quickstart deployed
> in my localhost (both tomcat and jetty), it run well in firefox.
>
>
> 
>  From: Andreas Kuhtz 
> To: users@wicket.apache.org; Noven 
> Sent: Monday, December 24, 2012 5:21 PM
> Subject: Re: Wicket Atmosphere does not run in Firefox 17
>
>
> Hi,
>
> Have you configured a proxy in firefox? if so, you may enable the "ws://*"
> to use the proxy, not only http and https.
> Hope this helps.
>
> Cheers
>
>
> 2012/12/24 Noven 
>
> Hi All,
> >
> >I just tried deploy the wicket-atmosphere-quickstart here at
> http://api.bola54.com into tomcat v.7.0.32
> >
> >It's able run well on safari and chrome, but fail run on newest firefox
> v.17.
> >
> >By using the same tomcat version, I am able to run it on firefox v.17 in
> my localhost but failed at http://api.bola54.com.
> >
> >
> >Did anybody know this issue before?
> >
> >
> >Thank you.
>


Re: Example of wicket atmosphere with channel

2012-12-26 Thread Emond Papegaaij
I presume you are refering to WICKET-4879, There are no examples of the new
API yet, but the changes are not that big. I did not really implement
channels, but made the changes that would allow you to implement channels.
It is now possible to post an event to a single client (rather than all
clients), either via the AtmosphereResource for that client, or its UUID. I
also added a contextAwareFilter() to @Subscribe, which allows you to access
the RequestCycle and session from the filter. This can be used to
differentiate on the receiver of the event, where filter() can only be used
to differentiate on the content of the event. Be careful with this new
method though, because it will not scale very will with large numbers of
concurrent users.

Looking at the code again, I think I'm going to change the Predicate into a
Function on AtmosphereResource. That would allow you to keep track of some
attributes in AtmosphereRequest on which to write your filter, which puts a
lot less weight on the server than setting up a RequestCycle.

Best regards,
Emond Papegaaij


On Thu, Dec 20, 2012 at 8:31 PM, Noven  wrote:

> Hi,
>
> I just saw new features released at wicket 6.40. And I am interested to
> see example code of the atmosphere channel. Where can i find the example of
> this feature?
>
> Thanks.
>
>


Re: Are Wicket models loaded concurrently ?

2012-12-26 Thread Igor Vaynberg
the bug is that something does not serialize access to the page. the
contract on models and components is that they always run in a
single-threaded environment. this is what allows the user code to be
simple and free of any synchronization logic.

so whatever push/pull/whatever framework you are using - it should
properly synchronize access to the page instance that owns the models.

-igor

On Wed, Dec 26, 2012 at 6:16 PM, Hendy Irawan  wrote:
> I think I just found a "bug" ... LoadableDetachableModel is potentially
> non-threadsafe.
>
> I experience weird behavior, my concurrent models are chained (i.e. calls
> other models getObject()), and my concurrent models extend
> LoadableDetachableModel. The weird behavior is that sometimes (!!) the
> models return null. But if debugged, they're not null. It's like a timing
> and race condition problem.
>
> Now I think I know why. LoadableDetachableModel, upon getObject(), sets
> attached=true before caling load(), which can take some time. If
> getObject() gets called again, it then immediately returns the "loaded
> object", which was still null (sometimes.).
>
> Should I report this as bug?
>
> On Wed, Dec 26, 2012 at 6:14 PM, Siefart, Olaf [via Apache Wicket] <
> ml-node+s1842946n4655056...@n4.nabble.com> wrote:
>
>> Hi,
>>
>> A dashboard with unrelated web services is exactly the usecase of our
>> christmas project (https://github.com/osiefart/wicket-christmas).
>>
>> @Hendy: I would not start the execution immediately upon model creation. I
>> would choose a Visitor - onConfigure - Solution. Then it is possible to
>> check the visibility of the component before loading data...
>>
>> Kindly regards,
>> Olaf
>>
>> -Ursprüngliche Nachricht-
>> Von: Serban.Balamaci [mailto:[hidden 
>> email]]
>>
>> Gesendet: Mittwoch, 26. Dezember 2012 11:45
>> An: [hidden email] 
>> Betreff: Re: Are Wicket models loaded concurrently ?
>>
>> Hello guys.
>> For sure this would be useful. I encountered many cases where the models
>> are using different unrelated web services and starting the requests in
>> parallel would be a nice improvement.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655055.html
>>
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655056.html
>>  To unsubscribe from Are Wicket models loaded concurrently ?, click 
>> here
>> .
>> NAML
>>
>
>
>
> --
> Hendy Irawan - on Twitter  - on
> LinkedIn
> Web Developer | Bippo Indonesia  | Akselerator
> Bisnis | Bandung
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655067.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
>

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



Re: Are Wicket models loaded concurrently ?

2012-12-26 Thread Hendy Irawan
I think I just found a "bug" ... LoadableDetachableModel is potentially
non-threadsafe.

I experience weird behavior, my concurrent models are chained (i.e. calls
other models getObject()), and my concurrent models extend
LoadableDetachableModel. The weird behavior is that sometimes (!!) the
models return null. But if debugged, they're not null. It's like a timing
and race condition problem.

Now I think I know why. LoadableDetachableModel, upon getObject(), sets
attached=true before caling load(), which can take some time. If
getObject() gets called again, it then immediately returns the "loaded
object", which was still null (sometimes.).

Should I report this as bug?

On Wed, Dec 26, 2012 at 6:14 PM, Siefart, Olaf [via Apache Wicket] <
ml-node+s1842946n4655056...@n4.nabble.com> wrote:

> Hi,
>
> A dashboard with unrelated web services is exactly the usecase of our
> christmas project (https://github.com/osiefart/wicket-christmas).
>
> @Hendy: I would not start the execution immediately upon model creation. I
> would choose a Visitor - onConfigure - Solution. Then it is possible to
> check the visibility of the component before loading data...
>
> Kindly regards,
> Olaf
>
> -Ursprüngliche Nachricht-
> Von: Serban.Balamaci [mailto:[hidden 
> email]]
>
> Gesendet: Mittwoch, 26. Dezember 2012 11:45
> An: [hidden email] 
> Betreff: Re: Are Wicket models loaded concurrently ?
>
> Hello guys.
> For sure this would be useful. I encountered many cases where the models
> are using different unrelated web services and starting the requests in
> parallel would be a nice improvement.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655055.html
>
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655056.html
>  To unsubscribe from Are Wicket models loaded concurrently ?, click 
> here
> .
> NAML
>



-- 
Hendy Irawan - on Twitter  - on
LinkedIn
Web Developer | Bippo Indonesia  | Akselerator
Bisnis | Bandung




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655067.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: Select2 - Wicket 1.4.18

2012-12-26 Thread Igor Vaynberg
yes, only 1.5 and 6 are supported.

-igor

On Wed, Dec 26, 2012 at 11:14 AM, xe0nre  wrote:
> Hmm...so at this point only wicket 1.5 and 6 are supported ?
>
> Oh...and that Igor for this component :) Nice work
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Select2-Wicket-1-4-18-tp4655059p4655065.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
>

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



Re: Select2 - Wicket 1.4.18

2012-12-26 Thread xe0nre
Hmm...so at this point only wicket 1.5 and 6 are supported ?

Oh...and that Igor for this component :) Nice work



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Select2-Wicket-1-4-18-tp4655059p4655065.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: Cookies and RestartResponseException

2012-12-26 Thread Alexandros Karypidis

So simple...

I spent the last 8 minutes (i.e. till I received your reply) playing 
with a custom PageProvider, trying to set the cookie in 
getPageInstance(), (only to find that it doesn't matter since the 3xx 
redirect ends up retrieving the page from the default page provider anyway).


Thx!

On 26/12/12 18:19, Sven Meier wrote:

Use NonResettingRestartException

Sven

On 12/26/2012 07:11 PM, Alexandros Karypidis wrote:

Hi,

I am using CookieUtils to store a cookie. Here's the catch though: 
after setting the cookie, I want to redirect the user to a new page, 
so that is followed immediately by a RestartResponseException:


new CookieUtils().save("some-key", "some-value")
throw new RestartResponseException(AnotherPage.class);

The net result seems to be that Wicket uses an HTTP 3xx to get the 
user agent to go to the new page (which is what I want, since the URL 
changes), but the cookie does NOT get set.


If instead of RestartResponseException the I use:

RequestCycle.get().setResponsePage(AnotherPage.class);

...the cookie gets set properly and the redirect occurs as desired, 
but I need to perform the redirect in "library code", which should 
prevent the calling thread from proceeding beyond the redirect point 
(which RestartResponseException nicely addresses).


Is there some way to use RestartResponseException without discarding 
cookies?


Cheers,
Alex



-
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



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



Re: Cookies and RestartResponseException

2012-12-26 Thread Sven Meier

Use NonResettingRestartException

Sven

On 12/26/2012 07:11 PM, Alexandros Karypidis wrote:

Hi,

I am using CookieUtils to store a cookie. Here's the catch though: 
after setting the cookie, I want to redirect the user to a new page, 
so that is followed immediately by a RestartResponseException:


new CookieUtils().save("some-key", "some-value")
throw new RestartResponseException(AnotherPage.class);

The net result seems to be that Wicket uses an HTTP 3xx to get the 
user agent to go to the new page (which is what I want, since the URL 
changes), but the cookie does NOT get set.


If instead of RestartResponseException the I use:

RequestCycle.get().setResponsePage(AnotherPage.class);

...the cookie gets set properly and the redirect occurs as desired, 
but I need to perform the redirect in "library code", which should 
prevent the calling thread from proceeding beyond the redirect point 
(which RestartResponseException nicely addresses).


Is there some way to use RestartResponseException without discarding 
cookies?


Cheers,
Alex



-
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



Cookies and RestartResponseException

2012-12-26 Thread Alexandros Karypidis

Hi,

I am using CookieUtils to store a cookie. Here's the catch though: after 
setting the cookie, I want to redirect the user to a new page, so that 
is followed immediately by a RestartResponseException:


new CookieUtils().save("some-key", "some-value")
throw new RestartResponseException(AnotherPage.class);

The net result seems to be that Wicket uses an HTTP 3xx to get the user 
agent to go to the new page (which is what I want, since the URL 
changes), but the cookie does NOT get set.


If instead of RestartResponseException the I use:

RequestCycle.get().setResponsePage(AnotherPage.class);

...the cookie gets set properly and the redirect occurs as desired, but 
I need to perform the redirect in "library code", which should prevent 
the calling thread from proceeding beyond the redirect point (which 
RestartResponseException nicely addresses).


Is there some way to use RestartResponseException without discarding 
cookies?


Cheers,
Alex



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



CSS for subpanel tabs

2012-12-26 Thread appwicket
Hi,
I'm using panels contains tabbed panels and each tab contains few
sub-tabbedpanels.
I load my css in my page and it works fine for the tabs and the sub tabs in
first tab.
However the CSS doesn't work for other subtabs in other tabs.
(I got CSS from   Wicket - jQuery UI
  )
 
anyone can tell me how can i make it work for subtabs?
Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-for-subpanel-tabs-tp4655061.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: Select2 - Wicket 1.4.18

2012-12-26 Thread Igor Vaynberg
it can, but it needs to be ported to that version of wicket.

-igor

On Wed, Dec 26, 2012 at 6:06 AM, xe0nre  wrote:
> Hello,
>
> I have a quick question about the Select2 component created by Igor.I tried
> to integrated it in my project (witch uses wicket 1.4.18) and could not do
> it...just received errors. When i tried it with wicket 1.5 i had no problem.
>
> So my question is: Can the select2 component be integrated in wicket 1.4.18?
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Select2-Wicket-1-4-18-tp4655059.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
>

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



Select2 - Wicket 1.4.18

2012-12-26 Thread xe0nre
Hello,

I have a quick question about the Select2 component created by Igor.I tried
to integrated it in my project (witch uses wicket 1.4.18) and could not do
it...just received errors. When i tried it with wicket 1.5 i had no problem.

So my question is: Can the select2 component be integrated in wicket 1.4.18?

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Select2-Wicket-1-4-18-tp4655059.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 resolve right path for variable images (with Jetty)

2012-12-26 Thread Delange
In my webapplication a user can upload images. They are displayed on other
pages.

When I start the application with Jetty from the Eclipse directory, all
images are stored directly under the project folder.
But when I want to display them, they must be under src/main/webapp/
The is caused by the ContextRelativeResource. If I don't use this it doesn't
work

Has anyone a solution for this strange effect?

My directory structure in eclipse is:
mywebapplication
images
   photos   
  pic001.jpg
src
   main
 java
...
 resources
 ...
 webapp
images
 photo
  pic001.jpg



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-right-path-for-variable-images-with-Jetty-tp4655058.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: Best way to set up a handler for 'Internal error'

2012-12-26 Thread Chris Colman
>hi,
>add your IRequestCycleListener which onexception checks if it's the
>exception you want to
>log/mail ,if it's then do so.

Ah! That looks like what I need!
Thanks.


>
>On Wed, Dec 26, 2012 at 3:45 AM, Chris Colman
> wrote:
>> When running in production mode and an error occurs Wicket will
display
>> 'Internal error/return to home page'.
>>
>> What is the best place to put in a hook or a listener to be activated
>> when this occurs so that we can have an email sent to an admin or log
>> extra details etc.,
>>
>> Yours sincerely,
>>
>> Chris Colman
>
>
>
>--
>regards,
>
>Vineet Semwal
>
>-
>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



AW: Are Wicket models loaded concurrently ?

2012-12-26 Thread Siefart, Olaf
Hi,

A dashboard with unrelated web services is exactly the usecase of our christmas 
project (https://github.com/osiefart/wicket-christmas).

@Hendy: I would not start the execution immediately upon model creation. I 
would choose a Visitor - onConfigure - Solution. Then it is possible to check 
the visibility of the component before loading data...

Kindly regards,
Olaf

-Ursprüngliche Nachricht-
Von: Serban.Balamaci [mailto:thespamtr...@gmail.com] 
Gesendet: Mittwoch, 26. Dezember 2012 11:45
An: users@wicket.apache.org
Betreff: Re: Are Wicket models loaded concurrently ?

Hello guys.
For sure this would be useful. I encountered many cases where the models are 
using different unrelated web services and starting the requests in parallel 
would be a nice improvement.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655055.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


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



Re: Best way to set up a handler for 'Internal error'

2012-12-26 Thread vineet semwal
hi,
add your IRequestCycleListener which onexception checks if it's the
exception you want to
log/mail ,if it's then do so.

On Wed, Dec 26, 2012 at 3:45 AM, Chris Colman
 wrote:
> When running in production mode and an error occurs Wicket will display
> 'Internal error/return to home page'.
>
> What is the best place to put in a hook or a listener to be activated
> when this occurs so that we can have an email sent to an admin or log
> extra details etc.,
>
> Yours sincerely,
>
> Chris Colman



-- 
regards,

Vineet Semwal

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