Questions Regarding Wicket URL Generation

2011-05-11 Thread Carlo Camerino
Hi There,

I'm mounting bookmarkable pages in the Wicket Application. For example,

mount(index, IndexPage.class);
mount(confirmPage, ConfirmPage.class);

I'm quite successful when using the following code

setResponsePage(IndexPage.class);

http://localhost:8080/application/index

However,
when I try to use
setResponsePage(new ConfirmPage());

http://localhost:8080/application/?wicket1::


It doesn't work already Is there anyway that I could workaround this?
It appears as something like this.

Thanks
Carlo


How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
HI,

I was just wondering, what mechanism does Wicket uses to get values from
Java beans?

Is reflection used or does wicket use a library to do this?
I had a very slow experience when using Reflection, how does Wicket do it?

Thanks
Carlo


Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
Does wicket use reflection for this purpose?

On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerino carlo.camer...@gmail.comwrote:

 HI,

 I was just wondering, what mechanism does Wicket uses to get values from
 Java beans?

 Is reflection used or does wicket use a library to do this?
 I had a very slow experience when using Reflection, how does Wicket do it?

 Thanks
 Carlo



Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
hi,

through what mechanism does it do it?
i was wondering if wicket uses reflection or it generates code on the fly

thanks

On Mon, Apr 4, 2011 at 12:21 AM, James Carman ja...@carmanconsulting.comwrote:

 That's not entirely correct.  Wicket uses the models to populate form
 components
 On Apr 3, 2011 9:11 AM, Sven Meier s...@meiers.net wrote:
  Yes, take a look at org.apache.wicket.util.lang.PropertyResolver
 
  Sven
 
  On 04/03/2011 03:01 PM, Carlo Camerino wrote:
  Does wicket use reflection for this purpose?
 
  On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerinocarlo.camer...@gmail.com
 wrote:
 
  HI,
 
  I was just wondering, what mechanism does Wicket uses to get values
 from
  Java beans?
 
  Is reflection used or does wicket use a library to do this?
  I had a very slow experience when using Reflection, how does Wicket do
 it?
 
  Thanks
  Carlo
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



How To Add Javascript With An Array Into A Wicket Page

2011-01-22 Thread Carlo Camerino
Hi,

I would like to add some javascript which contains an array  to my wicket page.
it would be rendered on page load What is the best way to dothis?

The array here should be coming from java code an is not static..

What is the best way that I could incorporate this into my wicket code?
I've use texttemplate contributor before but it can only replace
single variables,

What is my list size is dynamic such as in the example below?

$(function () {
        createJquery();
    })
    function createJquery() {
        var date = new Date();
        var d = date.getDate();
        var m = date.getMonth();
        var y = date.getFullYear();

        $('#calendar').fullCalendar({
            theme: true,
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            editable: false,
            events: [
                {
                    title: 'PHP 15,030.47',
                    start: new Date(2011, 0, 14),
                    end: new Date(2011, 0, 14),
                    className: 'fc-eventgreen'
                },
                {
                    title: 'PHP 5,000.00',
                    start: new Date(2011, 0, 10),
                    end: new Date(2011, 0, 10),
                    className: 'fc-eventred'
                },
                {
                    title: 'PHP 2,000.00',
                    start: new Date(2011, 0, 19),
                    end: new Date(2011, 0, 19),
                    className: 'fc-eventred'
                },
                {
                    title: 'PHP 3,000.00',
                    start: new Date(2011, 0, 4),
                    end: new Date(2011, 0, 4),
                    className: 'fc-eventred'
                },
                {
                    title: 'PHP 11.00',
                    start: new Date(2011, 0, 4),
                    end: new Date(2011, 0, 4),
                    className: 'fc-eventred'
                },
                {
                    title: 'PHP 8,500.00',
                    start: new Date(2011, 0, 10),
                    end: new Date(2011, 0, 10),
                    className: 'fc-eventgreen'
                },
                {
                    title: 'PHP 15,258.09',
                    start: new Date(2011, 0, 21),
                    end: new Date(2011, 0, 21),
                    className: 'fc-eventgreen'
                }
            ]
        });
    }


Help, Problems With Wicket Bookmarkable Page On Sun Web Server Pass Through

2010-06-26 Thread Carlo Camerino
Hi,

Need help on this.
We currently deployed a wicket application on glassfish.
The application's home page is mounted as /login - declared in the
application as a mountable bookmarkable page.

when i try to access it directly in glassfish
http://localhost:8080/application/login

i don't have a problem with the generated links

the login has a link to forgot password for example, when i click it i can
easily go to that link.

when i try to click that link,
it will not work properly.

however, when i try to access forgot password from login page via a web
server reverse proxy, it doesn't work properly.
it just returns me to the login page over and over again.  i'm using sun web
server 7.0 btw

this is what the genrated link looks like

http://localhost:82/bluelace-four/login/wicket:interface/:62:loginPanel:loginForm:forgotpassLink::ILinkListener::
it keeps bringing me back to the same page.


so what i did was to remove the bookmarkable page and i was able to access
the forgot password page once again.
the generated link allowed me to access it this time
here's the link

http://localhost:82/bluelace-three/?wicket:bookmarkablePage=:com.ccti.luminous.web.login.LoginPagewicket:interface=:4:loginPanel:loginForm:forgotpassLink::ILinkListener::

when i access it however through the application server directly, it all
works out.

really need help on this thanks guys

thanks
carlo


Re: Help, Problems With Wicket Bookmarkable Page On Sun Web Server Pass Through

2010-06-26 Thread Carlo Camerino
here's the difference of the two requests

Direct ( NO Web Server)
GET
/bluelace/login/wicket:interface/:29:loginPanel:loginForm:forgotpassLink::ILinkListener::
HTTP/1.1
Host: localhost:8091
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://localhost:8091/bluelace/login/
Cookie: JSESSIONID=m3ubb3bvzn66;
form:tree-hi=form:tree:applications:webApplications;
JSESSIONID=51b8264194cd4017dbc522e2d72f

Via Web Server:

Equest is : GET
/bluelace/login/wicket%3ainterface/%3a32%3aloginPanel%3aloginForm%3aforgotpassLink%3a%3aILinkListener%3a%3a
HTTP/1.1
Proxy-agent: Sun-Java-System-Web-Server/7.0
Host: localhost:82
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: JSESSIONID=m3ubb3bvzn66;
form:tree-hi=form:tree:applications:webApplications;
JSESSIONID=51b8264194cd4017dbc522e2d72f
Client-ip: 127.0.0.1
Via: 1.1 https-CARLOC-PC
Connection: keep-alive
Referer: http://localhost:82/bluelace/login/

as you can see, the :'s are replaced with %3a's

On Sat, Jun 26, 2010 at 6:37 PM, Carlo Camerino carlo.camer...@gmail.comwrote:

 Hi,

 Need help on this.
 We currently deployed a wicket application on glassfish.
 The application's home page is mounted as /login - declared in the
 application as a mountable bookmarkable page.

 when i try to access it directly in glassfish
 http://localhost:8080/application/login

 i don't have a problem with the generated links

 the login has a link to forgot password for example, when i click it i can
 easily go to that link.

 when i try to click that link,
 it will not work properly.

 however, when i try to access forgot password from login page via a web
 server reverse proxy, it doesn't work properly.
 it just returns me to the login page over and over again.  i'm using sun
 web server 7.0 btw

 this is what the genrated link looks like


 http://localhost:82/bluelace-four/login/wicket:interface/:62:loginPanel:loginForm:forgotpassLink::ILinkListener::
 it keeps bringing me back to the same page.


 so what i did was to remove the bookmarkable page and i was able to access
 the forgot password page once again.
 the generated link allowed me to access it this time
 here's the link


 http://localhost:82/bluelace-three/?wicket:bookmarkablePage=:com.ccti.luminous.web.login.LoginPagewicket:interface=:4:loginPanel:loginForm:forgotpassLink::ILinkListener::

 when i access it however through the application server directly, it all
 works out.

 really need help on this thanks guys

 thanks
 carlo




Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
Hi,

if any of you could help, we have a problem in one of our wicket
installations. We have a system that connects to another system. Sometimes
the system's reply lasts for more than a minute.
Wicket is having problem with regards to the page map being locked.

I click for example on a page to request for a balance, the host doesn't
return anymessage for about 1 minute or more.

So instead of waiting, i will try to move to another page, problem is... i
can't switch pages. wicket seems to have locked the page map and i can't
get out or even logout.

After  a minute, an exception is thrown saying that the page map may have
been locked for more than 1 minute

is there any way around this?

Thanks A Lot
Carlo


Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
hi,

i believe this is due to the fact that wicket has synchronized page maps for
access.

do you think it is safe to remove it?
what are the precautions when removing synchronized for wicket page maps?

Is there a setting that I could use to disable this?

Thanks A Lot

Carlo

On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@
gmail.com wrote:

 I'd suggest running the transaction in the background (separate
 thread) and using an AjaxStoppableSelfUpdatingTimer to periodically
 check if the thread was finished and only do the redirect after
 finishing. This way, the pagemap remains unlocked.

 2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
  Hi,
 
  if any of you could help, we have a problem in one of our wicket
  installations. We have a system that connects to another system.
 Sometimes
  the system's reply lasts for more than a minute.
  Wicket is having problem with regards to the page map being locked.
 
  I click for example on a page to request for a balance, the host doesn't
  return anymessage for about 1 minute or more.
 
  So instead of waiting, i will try to move to another page, problem is...
 i
  can't switch pages. wicket seems to have locked the page map and i
 can't
  get out or even logout.
 
  After  a minute, an exception is thrown saying that the page map may have
  been locked for more than 1 minute
 
  is there any way around this?
 
  Thanks A Lot
  Carlo
 



 --
 Jeroen Steenbeeke
 www.fortuityframework.com

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




Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
if i can't do this, is there anyway that i could at least increase the
timeout of the pagemap to greater than 1 minute?
1 minute would be too little i guess

On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Why not follow the Jeroen's suggestion instead of trying to trick framework
 internals?

 Ernesto

 On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino
 carlo.camer...@gmail.comwrote:

  hi,
 
  i believe this is due to the fact that wicket has synchronized page maps
  for
  access.
 
  do you think it is safe to remove it?
  what are the precautions when removing synchronized for wicket page maps?
 
  Is there a setting that I could use to disable this?
 
  Thanks A Lot
 
  Carlo
 
  On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@
  gmail.com wrote:
 
   I'd suggest running the transaction in the background (separate
   thread) and using an AjaxStoppableSelfUpdatingTimer to periodically
   check if the thread was finished and only do the redirect after
   finishing. This way, the pagemap remains unlocked.
  
   2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
Hi,
   
if any of you could help, we have a problem in one of our wicket
installations. We have a system that connects to another system.
   Sometimes
the system's reply lasts for more than a minute.
Wicket is having problem with regards to the page map being locked.
   
I click for example on a page to request for a balance, the host
  doesn't
return anymessage for about 1 minute or more.
   
So instead of waiting, i will try to move to another page, problem
  is...
   i
can't switch pages. wicket seems to have locked the page map and
 i
   can't
get out or even logout.
   
After  a minute, an exception is thrown saying that the page map may
  have
been locked for more than 1 minute
   
is there any way around this?
   
Thanks A Lot
Carlo
   
  
  
  
   --
   Jeroen Steenbeeke
   www.fortuityframework.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
is there anyway that i could just kill the previous thread?

On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote:

 if i can't do this, is there anyway that i could at least increase the
 timeout of the pagemap to greater than 1 minute?
 1 minute would be too little i guess


 On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 Why not follow the Jeroen's suggestion instead of trying to trick
 framework
 internals?

 Ernesto

 On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino
 carlo.camer...@gmail.comwrote:

  hi,
 
  i believe this is due to the fact that wicket has synchronized page maps
  for
  access.
 
  do you think it is safe to remove it?
  what are the precautions when removing synchronized for wicket page
 maps?
 
  Is there a setting that I could use to disable this?
 
  Thanks A Lot
 
  Carlo
 
  On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@
  gmail.com wrote:
 
   I'd suggest running the transaction in the background (separate
   thread) and using an AjaxStoppableSelfUpdatingTimer to periodically
   check if the thread was finished and only do the redirect after
   finishing. This way, the pagemap remains unlocked.
  
   2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
Hi,
   
if any of you could help, we have a problem in one of our wicket
installations. We have a system that connects to another system.
   Sometimes
the system's reply lasts for more than a minute.
Wicket is having problem with regards to the page map being locked.
   
I click for example on a page to request for a balance, the host
  doesn't
return anymessage for about 1 minute or more.
   
So instead of waiting, i will try to move to another page, problem
  is...
   i
can't switch pages. wicket seems to have locked the page map and
 i
   can't
get out or even logout.
   
After  a minute, an exception is thrown saying that the page map may
  have
been locked for more than 1 minute
   
is there any way around this?
   
Thanks A Lot
Carlo
   
  
  
  
   --
   Jeroen Steenbeeke
   www.fortuityframework.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 





Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
hi,

please do.

thanks a lot!

On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Carlo,

 If you need some code illustrating  how to do this, I can mail you the
 source code of a similar use case: creating a lengthy PDF and providing
 users with progress feedback... It uses the same approach Jeroen mentioned.

 Best,

 Ernesto

 On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@
 gmail.com wrote:

  If you do it my way, then you don't have to
 
  2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
   is there anyway that i could just kill the previous thread?
  
   On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino 
  carlo.camer...@gmail.comwrote:
  
   if i can't do this, is there anyway that i could at least increase the
   timeout of the pagemap to greater than 1 minute?
   1 minute would be too little i guess
  
  
   On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
   Why not follow the Jeroen's suggestion instead of trying to trick
   framework
   internals?
  
   Ernesto
  
   On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino
   carlo.camer...@gmail.comwrote:
  
hi,
   
i believe this is due to the fact that wicket has synchronized page
  maps
for
access.
   
do you think it is safe to remove it?
what are the precautions when removing synchronized for wicket page
   maps?
   
Is there a setting that I could use to disable this?
   
Thanks A Lot
   
Carlo
   
On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke 
 j.steenbeeke.ml@
gmail.com wrote:
   
 I'd suggest running the transaction in the background (separate
 thread) and using an AjaxStoppableSelfUpdatingTimer to
 periodically
 check if the thread was finished and only do the redirect after
 finishing. This way, the pagemap remains unlocked.

 2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
  Hi,
 
  if any of you could help, we have a problem in one of our
 wicket
  installations. We have a system that connects to another
 system.
 Sometimes
  the system's reply lasts for more than a minute.
  Wicket is having problem with regards to the page map being
  locked.
 
  I click for example on a page to request for a balance, the
 host
doesn't
  return anymessage for about 1 minute or more.
 
  So instead of waiting, i will try to move to another page,
  problem
is...
 i
  can't switch pages. wicket seems to have locked the page
 map
  and
   i
 can't
  get out or even logout.
 
  After  a minute, an exception is thrown saying that the page
 map
  may
have
  been locked for more than 1 minute
 
  is there any way around this?
 
  Thanks A Lot
  Carlo
 



 --
 Jeroen Steenbeeke
 www.fortuityframework.com


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


   
  
  
  
  
 
 
 
  --
  Jeroen Steenbeeke
  www.fortuityframework.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
where do i get this class?

AjaxStoppableSelfUpdatingTimer ?
On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote:

 hi,

 please do.

 thanks a lot!


 On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 Carlo,

 If you need some code illustrating  how to do this, I can mail you the
 source code of a similar use case: creating a lengthy PDF and providing
 users with progress feedback... It uses the same approach Jeroen
 mentioned.

 Best,

 Ernesto

 On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@
 gmail.com wrote:

  If you do it my way, then you don't have to
 
  2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
   is there anyway that i could just kill the previous thread?
  
   On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino 
  carlo.camer...@gmail.comwrote:
  
   if i can't do this, is there anyway that i could at least increase
 the
   timeout of the pagemap to greater than 1 minute?
   1 minute would be too little i guess
  
  
   On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
   Why not follow the Jeroen's suggestion instead of trying to trick
   framework
   internals?
  
   Ernesto
  
   On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino
   carlo.camer...@gmail.comwrote:
  
hi,
   
i believe this is due to the fact that wicket has synchronized
 page
  maps
for
access.
   
do you think it is safe to remove it?
what are the precautions when removing synchronized for wicket
 page
   maps?
   
Is there a setting that I could use to disable this?
   
Thanks A Lot
   
Carlo
   
On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke 
 j.steenbeeke.ml@
gmail.com wrote:
   
 I'd suggest running the transaction in the background (separate
 thread) and using an AjaxStoppableSelfUpdatingTimer to
 periodically
 check if the thread was finished and only do the redirect after
 finishing. This way, the pagemap remains unlocked.

 2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
  Hi,
 
  if any of you could help, we have a problem in one of our
 wicket
  installations. We have a system that connects to another
 system.
 Sometimes
  the system's reply lasts for more than a minute.
  Wicket is having problem with regards to the page map being
  locked.
 
  I click for example on a page to request for a balance, the
 host
doesn't
  return anymessage for about 1 minute or more.
 
  So instead of waiting, i will try to move to another page,
  problem
is...
 i
  can't switch pages. wicket seems to have locked the page
 map
  and
   i
 can't
  get out or even logout.
 
  After  a minute, an exception is thrown saying that the page
 map
  may
have
  been locked for more than 1 minute
 
  is there any way around this?
 
  Thanks A Lot
  Carlo
 



 --
 Jeroen Steenbeeke
 www.fortuityframework.com


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


   
  
  
  
  
 
 
 
  --
  Jeroen Steenbeeke
  www.fortuityframework.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 





Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing

2010-01-21 Thread Carlo Camerino
no prob.

i was thinking, if was going to do timerbehaior approach, might as well go
with comet

have any of you guys used comet for this kind of situation before?

thanks
carlo

On Thu, Jan 21, 2010 at 3:54 AM, Jeroen Steenbeeke j.steenbeeke.ml@
gmail.com wrote:

 My apologies, that is a class we use internally. Must have confused it
 with some basic wicket class.

 You can use AbstractAjaxTimerBehavior to similar effect. Just override
 the onTimer method

 2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
  where do i get this class?
 
  AjaxStoppableSelfUpdatingTimer ?
  On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino 
 carlo.camer...@gmail.comwrote:
 
  hi,
 
  please do.
 
  thanks a lot!
 
 
  On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
  Carlo,
 
  If you need some code illustrating  how to do this, I can mail you the
  source code of a similar use case: creating a lengthy PDF and providing
  users with progress feedback... It uses the same approach Jeroen
  mentioned.
 
  Best,
 
  Ernesto
 
  On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@
  gmail.com wrote:
 
   If you do it my way, then you don't have to
  
   2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
is there anyway that i could just kill the previous thread?
   
On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino 
   carlo.camer...@gmail.comwrote:
   
if i can't do this, is there anyway that i could at least increase
  the
timeout of the pagemap to greater than 1 minute?
1 minute would be too little i guess
   
   
On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
Why not follow the Jeroen's suggestion instead of trying to trick
framework
internals?
   
Ernesto
   
On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino
carlo.camer...@gmail.comwrote:
   
 hi,

 i believe this is due to the fact that wicket has synchronized
  page
   maps
 for
 access.

 do you think it is safe to remove it?
 what are the precautions when removing synchronized for wicket
  page
maps?

 Is there a setting that I could use to disable this?

 Thanks A Lot

 Carlo

 On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke 
  j.steenbeeke.ml@
 gmail.com wrote:

  I'd suggest running the transaction in the background
 (separate
  thread) and using an AjaxStoppableSelfUpdatingTimer to
  periodically
  check if the thread was finished and only do the redirect
 after
  finishing. This way, the pagemap remains unlocked.
 
  2010/1/21 Carlo Camerino carlo.camer...@gmail.com:
   Hi,
  
   if any of you could help, we have a problem in one of our
  wicket
   installations. We have a system that connects to another
  system.
  Sometimes
   the system's reply lasts for more than a minute.
   Wicket is having problem with regards to the page map being
   locked.
  
   I click for example on a page to request for a balance, the
  host
 doesn't
   return anymessage for about 1 minute or more.
  
   So instead of waiting, i will try to move to another page,
   problem
 is...
  i
   can't switch pages. wicket seems to have locked the
 page
  map
   and
i
  can't
   get out or even logout.
  
   After  a minute, an exception is thrown saying that the
 page
  map
   may
 have
   been locked for more than 1 minute
  
   is there any way around this?
  
   Thanks A Lot
   Carlo
  
 
 
 
  --
  Jeroen Steenbeeke
  www.fortuityframework.com
 
 
   -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail:
 users-h...@wicket.apache.org
 
 

   
   
   
   
  
  
  
   --
   Jeroen Steenbeeke
   www.fortuityframework.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
 



 --
 Jeroen Steenbeeke
 www.fortuityframework.com

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




Modal Window Problems On Internet Explorer.

2009-11-30 Thread Carlo Camerino
Hi,

I keep on experiencing this when I try to open a modal window in IE6, 7 and 8.


I don't know if any of you encountered it from before.

Can't move focus to the control because it is invisible, not enabled,
or of a type that does not accept the focus


It's happeningd on Internet Explorer only and it's quite annoying.

Thanks A Lot

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



Re: Session timeout - AJAX-enabled controls

2009-11-22 Thread Carlo Camerino
i have verified that this fix has already been implemented in 1.4


is there any chance that this would be backported to the 1.3 branch?
from what i understand, there would be no more releases for the 1.3 is this
correct?



2009/11/21 Igor Vaynberg igor.vaynb...@gmail.com

 http://www.wicket-library.com/wicket-examples/ is running a very old
 version, may even be 1.2.x.

 you should use wicketstuff.org/wicket14

 -igor

 2009/11/20 David Matoušek david.matou...@monetplus.cz:
  It was happening to me on Wicket examples page too. Especially on
  AjaxFallbackDataTable Example.
 
 ?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage
  I just checked it but now it seems to be working correctly. What version
 of
  Wicket are examples on url:
  http://www.wicket-library.com/wicket-examples/
  running and were they changed lately?
  I am using 1.3.6 so maybe it was fixed in 1.4.x versions.
 
  David Matousek
 
  I do not have that problem: if session expires any action the user does
  triggering a server round trip, AJAX or not, on a protected page
 redirects
  me to the login page... Can you post more details?
 
  Best,
 
  Ernesto
 
  2009/11/20 Carlo Camerino carlo.camer...@gmail.com
 
 
 
  yes we also have this prob lem For example i use a wicket in
  dicating ajax button in our logi n page. If thne user doesn t click a
  link that moves a page he will not be able to k now that the session
  has i ndeed expired. The screen o ly shows the rotating image  but
  nothing happens.  but if i use a normal submit li nk, im immeddiately
  redirected..
  Some clients didnt mind it bbut some clients do
 
  thanks
 
  On 11/20/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 
 
  afair any ajax interaction on an expired page causes the same reaction
  as a non-ajax interaction - going to the page expired page. open a bug
  with a quickstart if that is not the case.
 
  -igor
 
  2009/11/19 David Matoušek david.matou...@monetplus.cz:
 
 
  Hi,
  I have a problem with ajax behavior, that i use to fill various
 
 
  dropdowns
 
 
  by
  data from database.
  When session expires(user was inactive), non-ajax controls correctly
  redirect me to some kind of Error page. Thats correct.
  Components that have defined ajax behavior to update another
 components
  don't redirect, and doesn't update another components either.
  Is that Wicket feature, or a bug? Can components with ajax behaviors
 be
  forced to redirect to error page on session expire like non-ajax ones
 
 
  do?
 
 
  Any suggestions?
 
  Thanks for reply
 
  David Matousek
 
 
 
 
  --
  Tato zprava byla prohledana na vyskyt viru
  a nebezpecneho obsahu antivirovym systemem
  MailScanner a zda se byt cista.
 
 
  -
  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
 
 
 
 
 
 
 
  --
  Tato zprava byla prohledana na vyskyt viru
  a nebezpecneho obsahu antivirovym systemem
  MailScanner a zda se byt cista.
 
 

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




Re: Session timeout - AJAX-enabled controls

2009-11-19 Thread Carlo Camerino
yes we also have this prob lem For example i use a wicket in
dicating ajax button in our logi n page. If thne user doesn t click a
link that moves a page he will not be able to k now that the session
has i ndeed expired. The screen o ly shows the rotating image  but
nothing happens.  but if i use a normal submit li nk, im immeddiately
redirected..
Some clients didnt mind it bbut some clients do

thanks

On 11/20/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 afair any ajax interaction on an expired page causes the same reaction
 as a non-ajax interaction - going to the page expired page. open a bug
 with a quickstart if that is not the case.

 -igor

 2009/11/19 David Matoušek david.matou...@monetplus.cz:
 Hi,
 I have a problem with ajax behavior, that i use to fill various dropdowns
 by
 data from database.
 When session expires(user was inactive), non-ajax controls correctly
 redirect me to some kind of Error page. Thats correct.
 Components that have defined ajax behavior to update another components
 don't redirect, and doesn't update another components either.
 Is that Wicket feature, or a bug? Can components with ajax behaviors be
 forced to redirect to error page on session expire like non-ajax ones do?
 Any suggestions?

 Thanks for reply

 David Matousek




 --
 Tato zprava byla prohledana na vyskyt viru
 a nebezpecneho obsahu antivirovym systemem
 MailScanner a zda se byt cista.


 -
 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



Integrating Separate Different Wicket Applications Into One

2009-10-14 Thread Carlo Camerino
Hi,

I was wondering what are the most efficient ways to separate different
applications into one application?
We have this use case in which we need to integrate two different
wicket applications and make them appear as  if they are running in
one platform only.
I tried using portlets but it introduced a lot of coding
complications. I tried running it using Jetspeed 2 and found out that
several components are having problems.
Most of the problem seems to come from the fact that we are using the
indicatingajaxbutton. I have this issue in which I cannot easily
transfer page from one page to another. I don't really know if
portlets are the way to go because the applications by themselves are
rich in functionality. I just need to be able to access them all in
one page.
I know that it seems to be some sort of portal but i think 'd have to
take portlets out for the mean time due to the strict timeline and
it's actually the first time we tried using portlets in our company.

I'm thinking of using iframes for each application instead which will
lead me to a grand total of three different applications running with
only one entry point...
Is this the proper way of doing it? My issue will be with regards to
the httpsessions i'd have to have a total of three unlike in the
portlets...

My idea is I have a main application which serves as my entry point.
In that application I lay out the available functionalities via menu
links. When I click on a menu link,
I will place redirect my iframe to point to that page enabling me to
do that transaction? My main issue would be I think the httpsession
expiry. If the user spends a lot of time using the application, the
outside session could expire if the links outside are not clicked.

What are other possible solutions that I could use for this one? As of
now I could think of two ways using portlets and the other one using
iframes.. As of now we are  considering one application  and just
provide remoting for accessing business objects.

Is there anyway of getting html coming from another application and
showing it into my application?
For example, i have three applications 1 ,2 and 3,
3 is my main application but I get the html coming from 1 and 2,
without using iframes. Somewhat like WSRP (Web Service for Remote
Porlets). Or i just need to get the servlet response from the third
aplication/

I'm not sure if it's possible. Would appreciate your insights on this one..

Thanks
Carlo

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



Re: Integrating Separate Different Wicket Applications Into One

2009-10-14 Thread Carlo Camerino
thanks,

will take a look...

however, have you encountered instances in which you want to have
distributed web applications and still be able to shared httpsession?
The distributed web application however are different applications and
are not of the same kind unlike that of clustering

one function will go to this application server, another function will
go to this application server.

On Wed, Oct 14, 2009 at 11:28 PM,  ralf.eichin...@pixotec.de wrote:
 perhaps have a look on www.devproof.org.
 it is a portal like wicket application, which hosts different modules
 (JARs).

 Quoting Carlo Camerino carlo.camer...@gmail.com:

 Hi,

 I was wondering what are the most efficient ways to separate different
 applications into one application?
 We have this use case in which we need to integrate two different
 wicket applications and make them appear as  if they are running in
 one platform only.
 I tried using portlets but it introduced a lot of coding
 complications. I tried running it using Jetspeed 2 and found out that
 several components are having problems.
 Most of the problem seems to come from the fact that we are using the
 indicatingajaxbutton. I have this issue in which I cannot easily
 transfer page from one page to another. I don't really know if
 portlets are the way to go because the applications by themselves are
 rich in functionality. I just need to be able to access them all in
 one page.
 I know that it seems to be some sort of portal but i think 'd have to
 take portlets out for the mean time due to the strict timeline and
 it's actually the first time we tried using portlets in our company.

 I'm thinking of using iframes for each application instead which will
 lead me to a grand total of three different applications running with
 only one entry point...
 Is this the proper way of doing it? My issue will be with regards to
 the httpsessions i'd have to have a total of three unlike in the
 portlets...

 My idea is I have a main application which serves as my entry point.
 In that application I lay out the available functionalities via menu
 links. When I click on a menu link,
 I will place redirect my iframe to point to that page enabling me to
 do that transaction? My main issue would be I think the httpsession
 expiry. If the user spends a lot of time using the application, the
 outside session could expire if the links outside are not clicked.

 What are other possible solutions that I could use for this one? As of
 now I could think of two ways using portlets and the other one using
 iframes.. As of now we are  considering one application  and just
 provide remoting for accessing business objects.

 Is there anyway of getting html coming from another application and
 showing it into my application?
 For example, i have three applications 1 ,2 and 3,
 3 is my main application but I get the html coming from 1 and 2,
 without using iframes. Somewhat like WSRP (Web Service for Remote
 Porlets). Or i just need to get the servlet response from the third
 aplication/

 I'm not sure if it's possible. Would appreciate your insights on this
 one..

 Thanks
 Carlo

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





 
 This message was sent using IMP, the Internet Messaging Program.

 -
 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



Getting Wicket Examples To Work On Latest Liferay Or Glassfish Web Space Server

2009-10-13 Thread Carlo Camerino
Hi,

I have successfuly deployed the wicket examples on apache jetspeed 2
with minimal or no configuration altering at all.
I would like to try and deploy it on glassfish web space server
however i'm encountering a problem in which
When I try to add an application coming from liferay, nothing appears
in the page that i'm trying to add a portlet too.
I tried it also on the latest liferay community edition version 5.2.3
and get the same results.

Is there anything I need to be able to have this working? I'm just
trying to see if wicket will work on different portal servers.

i'm trying to deploy the latest wicket example release which is 1.4.2

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



Re: Getting Wicket Examples To Work On Latest Liferay Or Glassfish Web Space Server

2009-10-13 Thread Carlo Camerino
oops sorry  i forgot to mention.

i'm trying to make the portlets work by the way.

On Tue, Oct 13, 2009 at 3:30 PM, Carlo Camerino
carlo.camer...@gmail.com wrote:
 Hi,

 I have successfuly deployed the wicket examples on apache jetspeed 2
 with minimal or no configuration altering at all.
 I would like to try and deploy it on glassfish web space server
 however i'm encountering a problem in which
 When I try to add an application coming from liferay, nothing appears
 in the page that i'm trying to add a portlet too.
 I tried it also on the latest liferay community edition version 5.2.3
 and get the same results.

 Is there anything I need to be able to have this working? I'm just
 trying to see if wicket will work on different portal servers.

 i'm trying to deploy the latest wicket example release which is 1.4.2


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



Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-30 Thread Carlo Camerino
hi,

actually i'm able to make it work some how using this setting

getPageSettings().setAutomaticMultiWindowSupport(true);

it creates a new page map everytime i open a page in a new tab or new window.
however in the wicket documentation it says that it is enabled by
default. but upon checking it seems that it is not enabled by default
that's why i'm confused.

any recommendations regarding this?

i can now check the page map name for each page and throw a redirect
if a new page map is encountered other than the default.

carlo

On Wed, Sep 30, 2009 at 5:50 AM, Phil Housley undeconstruc...@gmail.com wrote:
 2009/9/29 Carlo Camerino carlo.camer...@gmail.com:
 Hi everyone,

 We have this requirement in which we cannot allow the customer to copy
 paste the url that's appearing in the address bar into the same
 browser. For example in a different tab or in a new window. This can
 easily be done in Wicket Framework since the url has a corresponding
 page attached to it. For example if i get
 http://localhost/wicket:interface=1 appearing in the address bar, I
 can open anew tab paste the url and I could get into the same page.
 The users don't want this behavior. Could I make it work in such a way
 that I copy http://localhost/wicket:inteface=1, when i try to copy and
 paste it, it will redirect me to an error page? This happens even
 after the user has already logged in. Really need help on this
 one.


 I've been playing with the ideas from
 http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html
 for something of my own, which might fit the bill in a way.  Following
 that you can convince wicket to serve up every instance of a mounted
 page from exactly the same URL.  That means if you copy the url, you
 get a brand new instance of the page.  You lose the ability to
 refresh, but if you are being strict on that sort of thing, I guess
 you will have a refresh button on the page when and only when it is
 appropriate.

 --
 Phil Housley

 -
 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



Wicket Throwing Out Of Memory Errors When AutomaticMultipleWindowSupport is set to true

2009-09-30 Thread Carlo Camerino
Hi,

I'm having problems . I think there is a bug in wicket in which the
memory usage zooms up exponentially when i copy and paste a url into a
new tab continuously.
This only happens when I explicity set automaticmultiplewindowsupport
to true. It seems to happen due to multiple page maps for the same
user.


For example I open in a browser

http://192.168.1.27:8010/loyalty/?wicket:interface=:1

I copy it to my clipboard, open a new tab, paste the url, open a new
tab, paste the url.
Tale note that the url changes in each tab...

Something like
http://192.168.1.27:8010/loyalty/?wicket:interface=:0-1
http://192.168.1.27:8010/loyalty/?wicket:interface=:1-1

I repeat this for a couple of times, and on the 9th or 10th iteration
the memory usage is way up afterwards I get an outofmemoryerror
already. (lack of heap space)
after checking the profiler, byte[] usage is way up. hundreds of
megabytes high.

I'm using wicket version 1.3.7

thanks
carlo

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



Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Carlo Camerino
Hi everyone,

We have this requirement in which we cannot allow the customer to copy
paste the url that's appearing in the address bar into the same
browser. For example in a different tab or in a new window. This can
easily be done in Wicket Framework since the url has a corresponding
page attached to it. For example if i get
http://localhost/wicket:interface=1 appearing in the address bar, I
can open anew tab paste the url and I could get into the same page.
The users don't want this behavior. Could I make it work in such a way
that I copy http://localhost/wicket:inteface=1, when i try to copy and
paste it, it will redirect me to an error page? This happens even
after the user has already logged in. Really need help on this
one.

Thanks

Carlo

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



Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Carlo Camerino
ya it's sort of our requirement i don't think i would set my pagemap to 0.

i'm thinking of a control i could use in order to determine that this
page is accessed. i'm thinking of the best way to do it though.
i could maybe include a hidden field in each of my form that i have to
check each time and check each request.
i don't know if this is possible.

On Wed, Sep 30, 2009 at 1:29 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 could'nt he just have a page map with a size of 0? Of course reloads
 would'nt work and probably a bunch of other stuff too.. Seems like at
 strange thing to limit on though.

 2009/9/29 Matej Knopp matej.kn...@gmail.com

 On Tue, Sep 29, 2009 at 6:48 PM, Pedro Santos pedros...@gmail.com wrote:
  We have this requirement in which we cannot allow the customer to copy
  paste the url that's appearing in the address bar into the same
  browser.
  Crazy thing. How about to include an request counter to your url
  encode/decode strategy?

 That wouldn't work. Or it would prevent refresh as well. This is not
 really doable. If you need this kind of control web applications
 simply aren't what you should be doing.

 -Matej

 
 
  On Tue, Sep 29, 2009 at 1:41 PM, Carlo Camerino 
 carlo.camer...@gmail.comwrote:
 
  Hi everyone,
 
  We have this requirement in which we cannot allow the customer to copy
  paste the url that's appearing in the address bar into the same
  browser. For example in a different tab or in a new window. This can
  easily be done in Wicket Framework since the url has a corresponding
  page attached to it. For example if i get
  http://localhost/wicket:interface=1 appearing in the address bar, I
  can open anew tab paste the url and I could get into the same page.
  The users don't want this behavior. Could I make it work in such a way
  that I copy http://localhost/wicket:inteface=1, when i try to copy and
  paste it, it will redirect me to an error page? This happens even
  after the user has already logged in. Really need help on this
  one.
 
  Thanks
 
  Carlo
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Pedro Henrique Oliveira dos Santos
 

 -
 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



How To Kill Previous Page

2009-08-07 Thread Carlo Camerino
Hi,

I would like to ask if it's possible to kill the previous page out of the
pagestore.
I have this requirement in which i have a view screen which can be able to
delete or edit an entity.

My problem is that when the client copies the url and pastes it back the
client can go back to the previous page since the client can retrieve it
from the session store.

Is there  a way in which wicket can actually destroy the previous page?

the problem is the users can copy for exampler

View Page
wicket:interface=1

Acknowledgement Page
wicket:interface=2

The user can actually paste the url

wicket:interface=1 to the browser and still be able to view the record.

Is there any way for me to kill the page with id = 1?

Thanks A Lot
Carlo


Re: How To Kill Previous Page

2009-08-07 Thread Carlo Camerino
what happens when you try to access a page that was taken away from the page
map?
i'm still looking at though, and probably would need to implement it soon.

thanks for the reply

On Fri, Aug 7, 2009 at 7:41 PM, Alex Objelean alex_objel...@yahoo.comwrote:


 getPage().getPageMap().remove(); ?

 Alex Objelean


 carlo c wrote:
 
  Hi,
 
  I would like to ask if it's possible to kill the previous page out of the
  pagestore.
  I have this requirement in which i have a view screen which can be able
 to
  delete or edit an entity.
 
  My problem is that when the client copies the url and pastes it back the
  client can go back to the previous page since the client can retrieve it
  from the session store.
 
  Is there  a way in which wicket can actually destroy the previous page?
 
  the problem is the users can copy for exampler
 
  View Page
  wicket:interface=1
 
  Acknowledgement Page
  wicket:interface=2
 
  The user can actually paste the url
 
  wicket:interface=1 to the browser and still be able to view the record.
 
  Is there any way for me to kill the page with id = 1?
 
  Thanks A Lot
  Carlo
 
 

 --
 View this message in context:
 http://www.nabble.com/How-To-Kill-Previous-Page-tp24863148p24863291.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




TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
Hi everyone,

I have some questions regarding TextTemplateHeaderContributor.

I can use it properly but I want to use it as a referenced script rather
than something that is included in the html page.

What i mean is i don't want to see

script lang = javascript type = text/javascript
   alerrt(hello world);
/script

this in the page but rather I would loike to see it as

script lang = javascript src = helloworld.js/

How do I do it using texttemplateheadercontributor or do i need to use
another object for this one?

Thanks
Carlo


Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
hmm,
ya

but how do i use texttemplateheadercontributor together with it?

Thanks

On Wed, Jul 29, 2009 at 3:12 PM, Frank Klein Koerkamp
fkleinkoerk...@educator.eu wrote:

 Hi,

 To do this use.

 add(HeaderContributor.forJavaScript(Clazz.class, path from class to file
 example: js\helloworld.js));

 This is for 1.3.5.


 Kind Regard,

 Frank

 -Original Message-
 From: Carlo Camerino [mailto:carlo.camer...@gmail.com]
 Sent: Wednesday, July 29, 2009 9:08 AM
 To: users@wicket.apache.org
 Subject: TextTemplateHeaderContributor Questions

 Hi everyone,

 I have some questions regarding TextTemplateHeaderContributor.

 I can use it properly but I want to use it as a referenced script rather
 than something that is included in the html page.

 What i mean is i don't want to see

 script lang = javascript type = text/javascript
   alerrt(hello world);
 /script

 this in the page but rather I would loike to see it as

 script lang = javascript src = helloworld.js/

 How do I do it using texttemplateheadercontributor or do i need to use
 another object for this one?

 Thanks
 Carlo

 The information contained in this communication is confidential, intended
 solely for the use of the individual or entity to whom it is addressed and
 may be legally privileged and protected by professional secrecy. Access to
 this message by anyone else is unauthorized. If you are not the intended
 recipient, any disclosure, copying, or distribution of the message, or any
 action or omission taken by you in reliance on it is prohibited and may be
 unlawful. Please immediately contact the sender if you have received this
 message in error. This email does not constitute any commitment from Cordys
 Holding BV or any of its subsidiaries except when expressly agreed in a
 written agreement between the intended recipient and Cordys Holding BV or
 its subsidiaries. Cordys is neither liable for the proper and complete
 transmission of the information contained in this communication nor for any
 delay in its receipt. Cordys does not guarantee that the integrity of this
 communication has been maintained nor that the communication is free of
 viruses, interceptions or interference. If you are not the intended
 recipient of this communication please return the communication to the
 sender and delete and destroy all copies.

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




Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
hmm,
ya

but how do i use texttemplateheadercontributor together with it?

Thanks


On Wed, Jul 29, 2009 at 3:12 PM, Frank Klein Koerkamp
fkleinkoerk...@educator.eu wrote:

 Hi,

 To do this use.

 add(HeaderContributor.forJavaScript(Clazz.class, path from class to file
 example: js\helloworld.js));

 This is for 1.3.5.


 Kind Regard,

 Frank

 -Original Message-
 From: Carlo Camerino [mailto:carlo.camer...@gmail.com]
 Sent: Wednesday, July 29, 2009 9:08 AM
 To: users@wicket.apache.org
 Subject: TextTemplateHeaderContributor Questions

 Hi everyone,

 I have some questions regarding TextTemplateHeaderContributor.

 I can use it properly but I want to use it as a referenced script rather
 than something that is included in the html page.

 What i mean is i don't want to see

 script lang = javascript type = text/javascript
   alerrt(hello world);
 /script

 this in the page but rather I would loike to see it as

 script lang = javascript src = helloworld.js/

 How do I do it using texttemplateheadercontributor or do i need to use
 another object for this one?

 Thanks
 Carlo

 The information contained in this communication is confidential, intended
 solely for the use of the individual or entity to whom it is addressed and
 may be legally privileged and protected by professional secrecy. Access to
 this message by anyone else is unauthorized. If you are not the intended
 recipient, any disclosure, copying, or distribution of the message, or any
 action or omission taken by you in reliance on it is prohibited and may be
 unlawful. Please immediately contact the sender if you have received this
 message in error. This email does not constitute any commitment from Cordys
 Holding BV or any of its subsidiaries except when expressly agreed in a
 written agreement between the intended recipient and Cordys Holding BV or
 its subsidiaries. Cordys is neither liable for the proper and complete
 transmission of the information contained in this communication nor for any
 delay in its receipt. Cordys does not guarantee that the integrity of this
 communication has been maintained nor that the communication is free of
 viruses, interceptions or interference. If you are not the intended
 recipient of this communication please return the communication to the
 sender and delete and destroy all copies.

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




Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
can't seem to find one in the javadocs,
hmmm, i guess it'ss better to put in html so that if values change, the
javascript won't be cached.

i don't know if its the reason for this.

On Wed, Jul 29, 2009 at 10:40 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:


 have you looked at the java doc? There should be a forjavascript method
 that
 takes both a class and a TextTemplate as parameter
 --
 View this message in context:
 http://www.nabble.com/TextTemplateHeaderContributor-Questions-tp24713664p24720298.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




Re: How To Call A Method When Browser Is Closed

2009-05-18 Thread Carlo Camerino
um,
sory i didn't get it,
what do i have to register, the page itself? what's pinh (sorry)
So i create a map and then i create a scheduled thread?

So that thread has to constantly poll the map?
is there a method in the page that I can use for this?

On Mon, May 18, 2009 at 2:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 You can have each page register pinh into an application scoped map.
 Then have a thread checking for timeouts.

 -Igor

 On Sunday, May 17, 2009, Carlo M. Camerino cmcamer...@gmail.com wrote:
 ya we've done something sort of similar to this one before but
 it kinda behaves differently on different browsers. Plus issues when the 
 user presses refresh also arises.

 I was wondering if there was anything server side that can do this ?
 Can comet implement this?

 - Original Message -
 From: Jeremy Thomerson jer...@wickettraining.com
 To: users@wicket.apache.org
 Sent: Monday, May 18, 2009 11:35:28 AM GMT +08:00 Beijing / Chongqing / Hong 
 Kong / Urumqi
 Subject: Re: How To Call A Method When Browser Is Closed

 You could try binding to window onUnload event but I think there are
 limitations as to what you can do within that and it may not always be
 called.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Sun, May 17, 2009 at 10:32 PM, Carlo M. Camerino
 cmcamer...@gmail.com wrote:
 Hi,

 I was just wondering if any of you have implemented this in your wicket 
 applications already.
 Have you tried calling a logout method when the user closed the browser?
 One of the things that I could do is to provide a timeout listener but it 
 would have to wait for the expiration time to happen.

 What I would like to happen is this:

 User A logins to the application
 User A has a session already and accesses some parts of the application.
 User A closes the firefox browser.

 Upon closing browser, the application automatically logouts User A and 
 destroys server side session.


 Thanks

 -
 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



 -
 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: Session Undo

2009-05-12 Thread Carlo Camerino
hi,

was just wondering if this is possible if i'm using the current page
as a reference to the
previous page for the next screen.

if i do this will i have errors?

thanks


On Wed, May 13, 2009 at 12:46 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 it really depends on what you want to happen.

 the easiest thing is to evict the page from the pagemap when the user
 is done with it - that way when the user attempts to submit the form
 they will get a page-expired error. to remove the page simply
 getpagemap().removepage(this);

 with a bit more work you can show a custom error:

 class singlesubmitform extends form {
  private boolean submitted=false;

  protected void onsubmit() {
      if (submitted) {showerror(); return;}
      whatever();
      submitted=true;
   }
 }

 -igor

 On Tue, May 12, 2009 at 8:08 AM, John Hendrikx hj...@xs4all.nl wrote:
 I've been trying to find some information on Wicket's session handling.
  From what I understand, Wicket solves the back button problem (and it
 does so perfectly), but there are times when certain pages are simply no
 longer correct.  Wicket is supposed to detect this, but I have a hard time
 figuring out how that would work -- or even how Wicket could possibly do
 this without some additional help from my side.

 Anyway, my problem is this:

 I've got a form with some validation.  At some point the user can press a
 Save button to commit this form to the database.   So for example:

  Overview Page - Edit step 1 - Edit step 2 - Save/Undo

 When the user reaches Save/Undo, pressing back would go back to stale
 data (as the database has already been updated).  How do I inform wicket
 that those previous pages are out of date?

 I've been looking at session.invalidate() and session.clear(), but the
 documentation seems to indicate that these methods are only rarely used
 (which seems to contradict what I want, as I would likely need these methods
 after every commit to the database).

 On a similar note, Wicket keeps track of previous states as it needs those
 for providing a correctly functioning Back button.  Now, I'm wondering if
 this can be used to provide the user with the ability to Undo things that
 were entered in a form (currently I just requery the data when the user
 pressed Undo).  In my example, going back to the Overview Page step (when
 Undo is pressed) would achieve the same goal...

 I'm not using any frameworks that might help with transaction boundaries or
 anything, basically it is just an embedded tomcat, wicket and hibernate.

 I'm (still) new to wicket, any hints in the right direction are appreciated.

 --John


 -
 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: Out Of Memory with Websphere 6.1 Wicket 1.3.5

2009-05-11 Thread Carlo Camerino
also did you install the websphere fix packs?

On Mon, May 11, 2009 at 9:58 PM, Carlo M. Camerino cmcamer...@gmail.com wrote:
 did you set your application to deployment mode?

 - Original Message -
 From: Serge Libotte slibo...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, May 11, 2009 9:06:14 PM GMT +08:00 Beijing / Chongqing / Hong 
 Kong / Urumqi
 Subject: Out Of Memory with Websphere 6.1  Wicket 1.3.5

 Hi all Wicket fellows,

 We have annoying OOM happening to our Wicket app based applications.
 We are running Wicket 1.3.5
 Before going to some more details, I'd like to know is the stacktrace
 rings someone's bell.

 Thanks,

 Serge.

 [5/11/09 9:43:47:585 MEST] 004a ServletWrappe E   SRVE0068E:
 Uncaught exception thrown in one of the service methods of t
 he servlet: wicket. Exception thrown : java.lang.OutOfMemoryError
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.init(ZipFile.java:203)
        at java.util.zip.ZipFile.init(ZipFile.java:234)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider$2.run(SinglePathClassProvider.java:249)
        at 
 com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromJar(SinglePathClassProvider.java:240)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes(SinglePathClassProvider.java:185)
        at 
 com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:458)
        at 
 com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at 
 org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException.init(AbortWithWebErrorCodeException.java:
 67)
        at 
 org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:563)
        at 
 org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:533)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource.access$101(CompressedPackageResource.java:46)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource.getPackageResourceStream(CompressedPackageResource.java:25
 6)
        at 
 org.apache.wicket.markup.html.JavascriptPackageResource$1.getOriginalResourceStream(JavascriptPackageResource.java
 :242)
        at 
 org.apache.wicket.markup.html.JavascriptPackageResource$FilteringResourceStream.lastModifiedTime(JavascriptPackage
 Resource.java:96)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource$CompressingResourceStream.lastModifiedTime(CompressedPacka
 geResource.java:105)
        at org.apache.wicket.Resource.onResourceRequested(Resource.java:113)
        at 
 org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:201
 )
        at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
        at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
        at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
        at 
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at 
 com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
        at 
 com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
        at 
 com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
        at 
 com.bgc.ecm.back.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:107)
        at 
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
        at 
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
        at 
 com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
        at 
 com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
        at 
 com.bgc.ecm.lof.front.callercontext.CallerContextFilter.doFilter(CallerContextFilter.java:62)
        at 
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
        at 
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
        at 
 com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
     

Re: Out Of Memory with Websphere 6.1 Wicket 1.3.5

2009-05-11 Thread Carlo Camerino
you would have to set
that setStripJavascriptCommentsAndWhiteSApace to false

also websphere always throw outofmemoryerrors when you deploy it using
development mode.

eveuntually websphere starts to slow down and stops working.

i was told that this was caused by something polling.
you could search the mailing list archives for this one

On Mon, May 11, 2009 at 10:24 PM, Serge Libotte slibo...@gmail.com wrote:
 Fix pack are installed while the application is not in deployment mode.
 In fact we had problem with deployment mode since this mode was not
 loading javascript files (with comments) correctly (previous version)
 and our application if AJAX (so JS) based.
 As a workaround (some told us to) application init is doing this:

        getMarkupSettings().setStripXmlDeclarationFromOutput(true);
        getMarkupSettings().setStripWicketTags(true);
        getPageSettings().setVersionPagesByDefault(false);
        getDebugSettings().setAjaxDebugModeEnabled(false);
        getMarkupSettings().setStripComments(false);
        getMarkupSettings().setStripWicketTags(true);
        getMarkupSettings().setCompressWhitespace(false);
        getResourceSettings().setStripJavascriptCommentsAndWhitespace(false);
        getResourceSettings().setUseDefaultOnMissingResource(true);
        getResourceSettings().setThrowExceptionOnMissingResource(false);
        addComponentInstantiationListener(new SpringComponentInjector(this));
        getMarkupSettings().setDefaultMarkupEncoding(iso-8859-1);

 Thanks for your help,

 Serge.


 2009/5/11 Carlo Camerino cmcamer...@gmail.com:
 also did you install the websphere fix packs?

 On Mon, May 11, 2009 at 9:58 PM, Carlo M. Camerino cmcamer...@gmail.com 
 wrote:
 did you set your application to deployment mode?

 - Original Message -
 From: Serge Libotte slibo...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, May 11, 2009 9:06:14 PM GMT +08:00 Beijing / Chongqing / Hong 
 Kong / Urumqi
 Subject: Out Of Memory with Websphere 6.1  Wicket 1.3.5

 Hi all Wicket fellows,

 We have annoying OOM happening to our Wicket app based applications.
 We are running Wicket 1.3.5
 Before going to some more details, I'd like to know is the stacktrace
 rings someone's bell.

 Thanks,

 Serge.

 [5/11/09 9:43:47:585 MEST] 004a ServletWrappe E   SRVE0068E:
 Uncaught exception thrown in one of the service methods of t
 he servlet: wicket. Exception thrown : java.lang.OutOfMemoryError
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.init(ZipFile.java:203)
        at java.util.zip.ZipFile.init(ZipFile.java:234)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider$2.run(SinglePathClassProvider.java:249)
        at 
 com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromJar(SinglePathClassProvider.java:240)
        at 
 com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes(SinglePathClassProvider.java:185)
        at 
 com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:458)
        at 
 com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at 
 org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException.init(AbortWithWebErrorCodeException.java:
 67)
        at 
 org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:563)
        at 
 org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:533)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource.access$101(CompressedPackageResource.java:46)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource.getPackageResourceStream(CompressedPackageResource.java:25
 6)
        at 
 org.apache.wicket.markup.html.JavascriptPackageResource$1.getOriginalResourceStream(JavascriptPackageResource.java
 :242)
        at 
 org.apache.wicket.markup.html.JavascriptPackageResource$FilteringResourceStream.lastModifiedTime(JavascriptPackage
 Resource.java:96)
        at 
 org.apache.wicket.markup.html.CompressedPackageResource$CompressingResourceStream.lastModifiedTime(CompressedPacka
 geResource.java:105)
        at org.apache.wicket.Resource.onResourceRequested(Resource.java:113)
        at 
 org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:201
 )
        at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
        at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
        at org.apache.wicket.RequestCycle.request

Re: Lazy Open Session In View with AOP

2009-05-06 Thread Carlo Camerino
spring has implemented itw own opensessioninview filter.,
i dont' think that you have to crete your own

Spring has a class like this which you can declare in your web.xml
OpenSessionInViewFilter

On Thu, May 7, 2009 at 2:29 AM, Christian Helmbold
christian.helmb...@yahoo.de wrote:

 Hello,

 I want to use the Open Session In View Pattern with Wicket, but I don't want 
 to open a Hibernate Session for every request like the ServletFilter approach 
 does.

 I looked at the lazy-loading Open Session in View for JPA implementation 
 from Wille Faler. 
 http://faler.wordpress.com/2009/04/30/building-a-more-scalable-open-session-in-view/
  He uses AOP instead of a ServletFilter to intercept only those method calls 
 that need an EntityManager.

 My plan is to build something similar for Hibernate with Spring AOP. The 
 solutions would consist of the following steps:

 1. An aspect creates a new Hibernate Session, if a method is called, that 
 needs one and none is already open.
 2. The transaction runs.
 3. The RequestCycle commits the transaction and closes the session. Or 
 rollback, if an exception was thrown.

 Is something wrong with it?

 The Hibernate Reference says: When the transaction ends, either through 
 commit or roll back, the current Session is closed automatically.
 https://www.hibernate.org/42.html#A6

 This means that only one transaction can be executed in one request, right? 
 But what is, if I need more than one transaction per request? Since I have to 
 hold the session open during rendering, because of lazy loading, I cannot 
 commit a transaction if I don't know another Session will be opened 
 immediately and not to be closed until the end of the request cycle.

 Hibernate typically bounds the Session to the current thread. But was is the 
 current thread in a Wicket Application? Are those threads pooled? Could the 
 same session be used in two requests, when no commit happened?

 Thanks in advance,
 Christian




 -
 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 Offline Applications

2009-05-03 Thread Carlo Camerino
hmm, you have a point here.however, every requirement is different.

I know that it may sound weird, but still I believe that it depends on the
nature of the application.
There are lots of types of applications that banks use.
Some I know would have to always have a central server managing it.

There are different types of Technical Architectures that we cater for in
our applications.
There are some applicationms that always require online mode regardless adn
there are applications that the user just
needs to be able to view customer information ,etc


actually it's hard to decide here.
on the downside, I heard that GWT consumes a lot of resources on the client
side, it's also a consideration.

Failsafe servers are of course an option but again, the network is still a
factor here.
For example a very slow connection to the central server makes my
productivity a lot less.
Some places suffer from low bandwidth, unreliable networks, etc...

I saw the value of distributed or offline applications that uses
synchronization.
It will be harder for the developers of course sicne they have to cater to
two modes.
On Sun, May 3, 2009 at 1:55 PM, Vladimir K koval...@gmail.com wrote:


 I would install failsafe cluster rather satisfying every client request
 about
 offline workability. You may end up implementing all the front-end and
 middle-end features in offline mode :)

 I believe offline mode should be used with care. The email applications are
 by nature offline. If you are certain that what the user does is offline by
 nature - implement it. If you have concerns that it should be involved into
 transaction (I mean a bit wider meaning than DB transaction) - implement it
 online and think about fail-safe servers.

 Concerning front-end and middle-end, AFAIK, every unit of work is a
 transaction which is done with multi-level authorization, including
 business
 authorization. You either implement all the authorization offline (insecure
 at all, and impossible in some cases) or defer authorization untill online
 mode (non-transactional). If a request of some client was satisfied (in
 offline mode) and then hasn't passed online authorization (for instance it
 violates some limits which can be thruly calculated on the server side
 only), you will have to call the client and tell him your appologises (or
 not directly you, then the bank. but the bank will then call you and tell
 you something awesome).

 Or just tell me the name of the bank. I will never become its client :)


 Carlo Camerino wrote:
 
  it's not for the public to use. but rather for people within the banks.
  internal applications. sometimes central connection is not available.
 
  On Fri, May 1, 2009 at 9:37 PM, James Carman
  jcar...@carmanconsulting.comwrote:
 
  Are you sure a banking application would be the right place for a
  gears-based implementation?  Wouldn't it be kinda important to make
  sure the main server knows where everything is, when money is
  concerned?
 
  On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com
  wrote:
   Hi,
  
   Is there any project which has Wicket And Google Gears Integration?
   Wicket has really done a lot of us in speeding up development time.
  Coming
   from a struts we saw the power of Wicket in terms its reusability and
  i've
   noticed that
   wicket already did most of the tasks that we would have to manually do
  using
   struts application, like session timeouts, redirects, etc
  
One of our main concerns however are that clients
   are asking for our applications to be available even if the network is
  down
   or if the central server is down..
   Currently we implemented our applications in a distributed fashion
  wherein
   every branch ( Remote Location)  has its own server.
   However, this has implications of cost and administration issues.
   However, if offline mode is enabled we can just begin syncing right.
  
   I think that Wicket WIth Google Gears Application will make it even
  better .
  
  
   I think this is really a plus when it comes to marketing it to
  customers.
   Most of the applications that we create our banking applications and
  any
   downtime is costing our clients.
  
   Hopefully we can also do this to offload the central servers and to
 put
   processing into client machines.
  
   One large problem I see though is that most code wil have to be moved
  to
  the
   Browser Layer.
   I'm thinking of how to create a wicket application which is mostly run
  by
   java classes work on the client side.
   Looks as if there will be a lot of code changes...
   I'm not really sure if it would be a totally different programming
  model.
  
   Anyone out there tried to integrate Gears And Wicket
  
   Carlo
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View this message in context

Re: Wicket Offline Applications

2009-05-03 Thread Carlo Camerino
There are really a lot of things i have to consider.
Especially security.

Here Are Some Of The Considerations I Guess

1.) To View (Subset) Records But Not Edit Or Delete Them
2.) Users must not be able to edit reference tables. Tables that are
referenced by others.
3.) Users must be able to enter transactions(Purely Insert,Transaction
Recording Only) with client side validation and observance of limits and
rules of course which were defined during online mode. ( Store This Queue
Somewhere)

I'm not reallyh sure that I want to go through with this however, this is
just a prototype idea.

On Sun, May 3, 2009 at 4:55 PM, Johan Compagner jcompag...@gmail.comwrote:

 I cannot believe that a typical wicket application (and a banking app
 fall under that category) does well in offline mode, to me offline
 mode works if the app is just about personal data (like gmail for your
 email) because if that is not the case and loads of none peronal ==
 shared data is used, how are you pushing that to the client? Maybe if
 the data is not thah much (not very likely  in a banking app if you
 ask me) then you can push it to the client. But then when he gets
 online again you have to merge everything and resolve conflicts in the
 data...

 But wicket doesnt really play well for this at all. GWT or just
 another fat client like air or just java webstart would be better

 On 03/05/2009, Carlo Camerino cmcamer...@gmail.com wrote:
  hmm, you have a point here.however, every requirement is different.
 
  I know that it may sound weird, but still I believe that it depends on
 the
  nature of the application.
  There are lots of types of applications that banks use.
  Some I know would have to always have a central server managing it.
 
  There are different types of Technical Architectures that we cater for in
  our applications.
  There are some applicationms that always require online mode regardless
 adn
  there are applications that the user just
  needs to be able to view customer information ,etc
 
 
  actually it's hard to decide here.
  on the downside, I heard that GWT consumes a lot of resources on the
 client
  side, it's also a consideration.
 
  Failsafe servers are of course an option but again, the network is still
 a
  factor here.
  For example a very slow connection to the central server makes my
  productivity a lot less.
  Some places suffer from low bandwidth, unreliable networks, etc...
 
  I saw the value of distributed or offline applications that uses
  synchronization.
  It will be harder for the developers of course sicne they have to cater
 to
  two modes.
  On Sun, May 3, 2009 at 1:55 PM, Vladimir K koval...@gmail.com wrote:
 
 
  I would install failsafe cluster rather satisfying every client request
  about
  offline workability. You may end up implementing all the front-end and
  middle-end features in offline mode :)
 
  I believe offline mode should be used with care. The email applications
  are
  by nature offline. If you are certain that what the user does is offline
  by
  nature - implement it. If you have concerns that it should be involved
  into
  transaction (I mean a bit wider meaning than DB transaction) - implement
  it
  online and think about fail-safe servers.
 
  Concerning front-end and middle-end, AFAIK, every unit of work is a
  transaction which is done with multi-level authorization, including
  business
  authorization. You either implement all the authorization offline
  (insecure
  at all, and impossible in some cases) or defer authorization untill
 online
  mode (non-transactional). If a request of some client was satisfied (in
  offline mode) and then hasn't passed online authorization (for instance
 it
  violates some limits which can be thruly calculated on the server side
  only), you will have to call the client and tell him your appologises
 (or
  not directly you, then the bank. but the bank will then call you and
 tell
  you something awesome).
 
  Or just tell me the name of the bank. I will never become its client :)
 
 
  Carlo Camerino wrote:
  
   it's not for the public to use. but rather for people within the
 banks.
   internal applications. sometimes central connection is not available.
  
   On Fri, May 1, 2009 at 9:37 PM, James Carman
   jcar...@carmanconsulting.comwrote:
  
   Are you sure a banking application would be the right place for a
   gears-based implementation?  Wouldn't it be kinda important to make
   sure the main server knows where everything is, when money is
   concerned?
  
   On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com
 
   wrote:
Hi,
   
Is there any project which has Wicket And Google Gears Integration?
Wicket has really done a lot of us in speeding up development time.
   Coming
from a struts we saw the power of Wicket in terms its reusability
 and
   i've
noticed that
wicket already did most of the tasks that we would have to manually
do
   using
struts application

Re: Wicket Offline Applications

2009-05-03 Thread Carlo Camerino
just to add, we don't have any plan of exposing this to the public (retail)
but rather only to people within organization.
so maybe we could have some sort of control.
I don't know the implications of opening offline banking applications to the
public yet :P and i don't really see any usecase for this type of
applications for now.

btw, it's not that easy to target a larger set of people if you are using
Fat Web clients.
Just my two cents. bandwidht, cpu considerations, etc... maybe it depends on
your geographical location

On Sun, May 3, 2009 at 7:27 PM, Carlo Camerino cmcamer...@gmail.com wrote:

 There are really a lot of things i have to consider.
 Especially security.

 Here Are Some Of The Considerations I Guess

 1.) To View (Subset) Records But Not Edit Or Delete Them
 2.) Users must not be able to edit reference tables. Tables that are
 referenced by others.
 3.) Users must be able to enter transactions(Purely Insert,Transaction
 Recording Only) with client side validation and observance of limits and
 rules of course which were defined during online mode. ( Store This Queue
 Somewhere)

 I'm not reallyh sure that I want to go through with this however, this is
 just a prototype idea.


 On Sun, May 3, 2009 at 4:55 PM, Johan Compagner jcompag...@gmail.comwrote:

 I cannot believe that a typical wicket application (and a banking app
 fall under that category) does well in offline mode, to me offline
 mode works if the app is just about personal data (like gmail for your
 email) because if that is not the case and loads of none peronal ==
 shared data is used, how are you pushing that to the client? Maybe if
 the data is not thah much (not very likely  in a banking app if you
 ask me) then you can push it to the client. But then when he gets
 online again you have to merge everything and resolve conflicts in the
 data...

 But wicket doesnt really play well for this at all. GWT or just
 another fat client like air or just java webstart would be better

 On 03/05/2009, Carlo Camerino cmcamer...@gmail.com wrote:
  hmm, you have a point here.however, every requirement is different.
 
  I know that it may sound weird, but still I believe that it depends on
 the
  nature of the application.
  There are lots of types of applications that banks use.
  Some I know would have to always have a central server managing it.
 
  There are different types of Technical Architectures that we cater for
 in
  our applications.
  There are some applicationms that always require online mode regardless
 adn
  there are applications that the user just
  needs to be able to view customer information ,etc
 
 
  actually it's hard to decide here.
  on the downside, I heard that GWT consumes a lot of resources on the
 client
  side, it's also a consideration.
 
  Failsafe servers are of course an option but again, the network is still
 a
  factor here.
  For example a very slow connection to the central server makes my
  productivity a lot less.
  Some places suffer from low bandwidth, unreliable networks, etc...
 
  I saw the value of distributed or offline applications that uses
  synchronization.
  It will be harder for the developers of course sicne they have to cater
 to
  two modes.
  On Sun, May 3, 2009 at 1:55 PM, Vladimir K koval...@gmail.com wrote:
 
 
  I would install failsafe cluster rather satisfying every client request
  about
  offline workability. You may end up implementing all the front-end and
  middle-end features in offline mode :)
 
  I believe offline mode should be used with care. The email applications
  are
  by nature offline. If you are certain that what the user does is
 offline
  by
  nature - implement it. If you have concerns that it should be involved
  into
  transaction (I mean a bit wider meaning than DB transaction) -
 implement
  it
  online and think about fail-safe servers.
 
  Concerning front-end and middle-end, AFAIK, every unit of work is a
  transaction which is done with multi-level authorization, including
  business
  authorization. You either implement all the authorization offline
  (insecure
  at all, and impossible in some cases) or defer authorization untill
 online
  mode (non-transactional). If a request of some client was satisfied (in
  offline mode) and then hasn't passed online authorization (for instance
 it
  violates some limits which can be thruly calculated on the server side
  only), you will have to call the client and tell him your appologises
 (or
  not directly you, then the bank. but the bank will then call you and
 tell
  you something awesome).
 
  Or just tell me the name of the bank. I will never become its client :)
 
 
  Carlo Camerino wrote:
  
   it's not for the public to use. but rather for people within the
 banks.
   internal applications. sometimes central connection is not available.
  
   On Fri, May 1, 2009 at 9:37 PM, James Carman
   jcar...@carmanconsulting.comwrote:
  
   Are you sure a banking application would be the right place

Wicket Offline Applications

2009-05-01 Thread Carlo Camerino
Hi,

Is there any project which has Wicket And Google Gears Integration?
Wicket has really done a lot of us in speeding up development time. Coming
from a struts we saw the power of Wicket in terms its reusability and i've
noticed that
wicket already did most of the tasks that we would have to manually do using
struts application, like session timeouts, redirects, etc

 One of our main concerns however are that clients
are asking for our applications to be available even if the network is down
or if the central server is down..
Currently we implemented our applications in a distributed fashion wherein
every branch ( Remote Location)  has its own server.
However, this has implications of cost and administration issues.
However, if offline mode is enabled we can just begin syncing right.

I think that Wicket WIth Google Gears Application will make it even better .


I think this is really a plus when it comes to marketing it to customers.
Most of the applications that we create our banking applications and any
downtime is costing our clients.

Hopefully we can also do this to offload the central servers and to put
processing into client machines.

One large problem I see though is that most code wil have to be moved to the
Browser Layer.
I'm thinking of how to create a wicket application which is mostly run by
java classes work on the client side.
Looks as if there will be a lot of code changes...
I'm not really sure if it would be a totally different programming model.

Anyone out there tried to integrate Gears And Wicket

Carlo


Re: Wicket Offline Applications

2009-05-01 Thread Carlo Camerino
it's not for the public to use. but rather for people within the banks.
internal applications. sometimes central connection is not available.

On Fri, May 1, 2009 at 9:37 PM, James Carman
jcar...@carmanconsulting.comwrote:

 Are you sure a banking application would be the right place for a
 gears-based implementation?  Wouldn't it be kinda important to make
 sure the main server knows where everything is, when money is
 concerned?

 On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com
 wrote:
  Hi,
 
  Is there any project which has Wicket And Google Gears Integration?
  Wicket has really done a lot of us in speeding up development time.
 Coming
  from a struts we saw the power of Wicket in terms its reusability and
 i've
  noticed that
  wicket already did most of the tasks that we would have to manually do
 using
  struts application, like session timeouts, redirects, etc
 
   One of our main concerns however are that clients
  are asking for our applications to be available even if the network is
 down
  or if the central server is down..
  Currently we implemented our applications in a distributed fashion
 wherein
  every branch ( Remote Location)  has its own server.
  However, this has implications of cost and administration issues.
  However, if offline mode is enabled we can just begin syncing right.
 
  I think that Wicket WIth Google Gears Application will make it even
 better .
 
 
  I think this is really a plus when it comes to marketing it to customers.
  Most of the applications that we create our banking applications and any
  downtime is costing our clients.
 
  Hopefully we can also do this to offload the central servers and to put
  processing into client machines.
 
  One large problem I see though is that most code wil have to be moved to
 the
  Browser Layer.
  I'm thinking of how to create a wicket application which is mostly run by
  java classes work on the client side.
  Looks as if there will be a lot of code changes...
  I'm not really sure if it would be a totally different programming model.
 
  Anyone out there tried to integrate Gears And Wicket
 
  Carlo
 

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




Re: Wicket Offline Applications

2009-05-01 Thread Carlo Camerino
ya, most bank applications are front end applications that simply require
that input be captured. and some minor validations.
Of course, there would be two modes, offline and online mode.

Would really be nice to implement this one.

On Fri, May 1, 2009 at 10:34 PM, James Carman
jcar...@carmanconsulting.comwrote:

 ah, then proceed! :)

 It's an interesting idea.  Don't know how it would work, though.

 On Fri, May 1, 2009 at 10:31 AM, Carlo Camerino cmcamer...@gmail.com
 wrote:
  it's not for the public to use. but rather for people within the banks.
  internal applications. sometimes central connection is not available.
 
  On Fri, May 1, 2009 at 9:37 PM, James Carman
  jcar...@carmanconsulting.comwrote:
 
  Are you sure a banking application would be the right place for a
  gears-based implementation?  Wouldn't it be kinda important to make
  sure the main server knows where everything is, when money is
  concerned?
 
  On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com
  wrote:
   Hi,
  
   Is there any project which has Wicket And Google Gears Integration?
   Wicket has really done a lot of us in speeding up development time.
  Coming
   from a struts we saw the power of Wicket in terms its reusability and
  i've
   noticed that
   wicket already did most of the tasks that we would have to manually do
  using
   struts application, like session timeouts, redirects, etc
  
One of our main concerns however are that clients
   are asking for our applications to be available even if the network is
  down
   or if the central server is down..
   Currently we implemented our applications in a distributed fashion
  wherein
   every branch ( Remote Location)  has its own server.
   However, this has implications of cost and administration issues.
   However, if offline mode is enabled we can just begin syncing right.
  
   I think that Wicket WIth Google Gears Application will make it even
  better .
  
  
   I think this is really a plus when it comes to marketing it to
 customers.
   Most of the applications that we create our banking applications and
 any
   downtime is costing our clients.
  
   Hopefully we can also do this to offload the central servers and to
 put
   processing into client machines.
  
   One large problem I see though is that most code wil have to be moved
 to
  the
   Browser Layer.
   I'm thinking of how to create a wicket application which is mostly run
 by
   java classes work on the client side.
   Looks as if there will be a lot of code changes...
   I'm not really sure if it would be a totally different programming
 model.
  
   Anyone out there tried to integrate Gears And Wicket
  
   Carlo
  
 
  -
  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: Tools for Managing a Wicket Project

2009-05-01 Thread Carlo Camerino
ya first time i actualy looked at sonar.i guess it's different from sonarj.
I thought they were the same thing.
I see this in the spring website.

Will take a look at it..
Seems like a tool which will be useful for us.

On Fri, May 1, 2009 at 3:28 PM, Linda van der Pal 
lvd...@heritageagenturen.nl wrote:

 Sonar is a tool that measures code quality, based on a lot of other tools
 like PMD, CheckStyle, Cobertura, and others. I've just started using it and
 it's very good.

 You should be able to get Effective Java at all the better bookstores and
 otherwise online at places like Amazon.com.

 Regards,
 Linda

 Carlo Camerino wrote:

 What does sonar do?
 Where can I get effective java?

 That's one of our problems actually.
 When we go on site in clients we have a hard time going to our centralized
 tools.
 I have been looking for an offline bugzilla or trac of some sort.
 Similar to offline gmail.
 I'm looking to also setup a distributed maven repository.

 Per our experience, all our tools become useless when there is no internet
 connection available, and sadly, most of our clients don't provide on.

 On Thu, Apr 30, 2009 at 7:02 AM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:



 Our current stack:
  - maven
  - Java 6
  - hibernate
  - spring
  - Wicket
  - svn
  - hudson
  - artifactory (though we might switch to another one)
 [ - sonar (icing on the cake) ]

 Wendy Smoak taught me an valuable lesson: use a company repository
 manager for maven, and a local one on your machine. This way you can
 run maven offline as well (after downloading the internet first).

 Martijn

 On Wed, Apr 29, 2009 at 5:13 PM, Dane Laverty danelave...@gmail.com
 wrote:


 My boss has asked me to manage development for a Java project. I'm going


 to


 be working with two other programmers and one designer.

 This is the first time that our organization has tried to formally
 coordinate several programmers on a project together, and it is also the
 first Java project we've done here (I'm the only programmer with


 extensive


 Java experience). I chose to use Wicket for this project because it


 seemed


 to be the most intuitive framework, and because I hope it will make it


 easy


 for the designer and programmers to work together without stepping on


 each


 others toes.

 At my previous job, we used CVS for managing code contribution and Ant


 for


 deployment. Is that still a good solution, or should I be looking at


 other


 tools? Also, how do you coordinate the designer's work with the


 programmers'


 work?

 My goal is to find a few tools that
 - work well with Wicket
 - make it easy for programmers to check code in and out
 - manage project dependencies
 - are easy to set up
 - are easy to use
 - are free

 I appreciate any and all suggestions. Thanks for your help!




 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.5 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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





  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database:
 270.12.11/2089 - Release Date: 04/30/09 17:53:00





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




Re: Tools for Managing a Wicket Project

2009-05-01 Thread Carlo Camerino
we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It was
simply amazing with all those plugins.

Code Review WIth Trac Is Good.
Review Board is also good software but it doesn't suit our programming
needs.

On Fri, May 1, 2009 at 11:38 PM, Matt Welch matt...@welchkin.net wrote:


 Tools that our team is using (after some trial and error):

 IDE - Eclipse/IDEA
 Source Control - SVN
 Build - Maven
 Local Network Maven Repo - Nexus (after a year trying different ones)
 Build Server  - TeamCity, which absolutely rocks (We actually purchased and
 used Bamboo for 9 months. I can't believe it comes from the same company as
 JIRA. Bamboo was terrible.)
 Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
 bad, but not fantastic either)
 Code Review - Code Collaborator (again not bad and I'd rather have it than
 nothing at all, but could be better)


 Our QA team has used various testing tools from expensive commercial tools
 like Mercury (now HP) Quality Center to Selenium. They use Rally for defect
 management.

 My highest recommendations are for TeamCity, Nexus, and SVN.

 -Matt


 --
 View this message in context:
 http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html
 Sent from the Wicket - User mailing list archive at Nabble.com.



Re: Wicket Offline Applications

2009-05-01 Thread Carlo Camerino
ya i guess they are mostly for rich internet applications use.First thing
I'd have to work on is to have tight with integration with a specific
javascript framework.

Wonder how gmail does it.
Offline gmail simply is the best.

On Fri, May 1, 2009 at 11:39 PM, Ryan Gravener r...@ryangravener.comwrote:

 I would just make an adobe air application for offline use.


 Ryan Gravener
 http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


 On Fri, May 1, 2009 at 10:53 AM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  I haven't looked into Gears at great length, but I think you may be up
  against a wall here - where the two may be incompatible.  Offline
  gears applications require fat clients.  Wicket isn't typically for
  making fat clients because everything about it ties it back to the
  server.
 
  If you already have it such that each office has their own server and
  database, then it seems that this isn't a product development problem
  so much as it's a network support issue.  How often should the network
  within an office really be down?  I'd try to push this problem back up
  the management chain.
 
  Conceptually, it's a cool idea, though.  Let us know if you have any
  success.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Fri, May 1, 2009 at 3:04 AM, Carlo Camerino cmcamer...@gmail.com
  wrote:
   Hi,
  
   Is there any project which has Wicket And Google Gears Integration?
   Wicket has really done a lot of us in speeding up development time.
  Coming
   from a struts we saw the power of Wicket in terms its reusability and
  i've
   noticed that
   wicket already did most of the tasks that we would have to manually do
  using
   struts application, like session timeouts, redirects, etc
  
One of our main concerns however are that clients
   are asking for our applications to be available even if the network is
  down
   or if the central server is down..
   Currently we implemented our applications in a distributed fashion
  wherein
   every branch ( Remote Location)  has its own server.
   However, this has implications of cost and administration issues.
   However, if offline mode is enabled we can just begin syncing right.
  
   I think that Wicket WIth Google Gears Application will make it even
  better .
  
  
   I think this is really a plus when it comes to marketing it to
 customers.
   Most of the applications that we create our banking applications and
 any
   downtime is costing our clients.
  
   Hopefully we can also do this to offload the central servers and to put
   processing into client machines.
  
   One large problem I see though is that most code wil have to be moved
 to
  the
   Browser Layer.
   I'm thinking of how to create a wicket application which is mostly run
 by
   java classes work on the client side.
   Looks as if there will be a lot of code changes...
   I'm not really sure if it would be a totally different programming
 model.
  
   Anyone out there tried to integrate Gears And Wicket
  
   Carlo
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Tools for Managing a Wicket Project

2009-04-29 Thread Carlo Camerino
try mercurial instead of subversion. (we're starting migration to mercurial)
We are on our way to migrate there.
Hudson is very easy to configure.
Try eclipse and maven 2 also.

one thing that i'd like to have though is a way to track common custom
components.
We have developed a lot of common components but once the project begins to
become larger, it's hard to keep track of them.

On Thu, Apr 30, 2009 at 1:06 AM, Per Lundholm per.lundh...@gmail.comwrote:

 Hi

 Have you seen the Maven guide?
 http://www.sonatype.com/books/maven-book/reference/

 It presents Nexus instead of Archiva which we use at my current contract.

 We also use Hudson and it was really easy to setup. You can try it
 with a simple click on the webstart button here:
 http://wiki.hudson-ci.org/display/HUDSON/Meet+Hudson

 Good Luck!

 mvh
  Per


 On Wed, Apr 29, 2009 at 6:43 PM, Dane Laverty danelave...@gmail.com
 wrote:
  Thanks for the suggestions of Continuum, Hudson, and Archiva. I'm not
  familiar with any of them, so that at least gives me some direction.
 Also,
  is there a book or website you would recommend that explains some best
  practices for Java project management?
 
  I would love to get a team training course in here. That's what we really
  need, but recent budget cuts have forced the college to cut way back on
 its
  training budget. As soon as the funding is back, I'm planning to give you
  guys a call :)
 
  On Wed, Apr 29, 2009 at 8:39 AM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:
 
  I'd definitely suggest SVN over CVS and Maven over Ant.  Maven truly
  manages dependencies.  Ant does not.
 
  I'd suggest Continuum rather than Hudson simply because it is quick
  and easy to set up and it is built to build Maven projects - so it
  will be easier for your inexperienced team to do so.
 
  And of course, a team training course is never a bad idea :)
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Wed, Apr 29, 2009 at 10:19 AM, Florian Sperber f...@sperber.info
  wrote:
   Hi Dane,
  
   Dane Laverty schrieb:
  
   My goal is to find a few tools that
   - work well with Wicket
   - make it easy for programmers to check code in and out
   - manage project dependencies
   - are easy to set up
   - are easy to use
   - are free
  
   I appreciate any and all suggestions. Thanks for your help!
  
  
   what about:
  
   - svn (instead of cvs)
   - maven (check the quickstart project on the wicket page)
   - archiva (your own maven repository)
   - hudson (continous integration build system)
  
  
   Kind regards
   Florian Sperber
  
   -
   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
 
 
 



 --
 Varning! E-post till och från Sverige, eller som passerar
 servrar i Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

 WARNING! E-mail to and from Sweden, or via servers in Sweden,
 is monitored by the National Defence Radio Establishment.

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




Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-27 Thread Carlo Camerino
yes you need to set the max heap and min heap. It depends on a 32-bit 4 gig
machine usually it's nice to set it to
256  and 1524 to be safe.

There have been problems when you set it too high on our previous
implementations.
i'm not really sure as it's hard to size an application properly.

One thing I'm sure of though is to make sure you install websphere fix packs
or you'll have classloader problems.
Also upgrade jdk version..

Yes 1.3 stores it into disk. It stores that most recently visited page into
the session which makes memory consumption a lot less

On Mon, Apr 27, 2009 at 7:03 PM, prasun prasan.ba...@landg.com wrote:


 thanks for replying.
 I was not looking for only native code usage, which I am sure wicket does
 not use.

 I have found out that in 1.3.x wicket uses 'DiskPageStore' to store some
 data to disk, whereas in 1.2.x all the data are in memory, is it correct?

 Would help if someone explains if wicket 1.2.x does any file I/O for
 storing
 PageMap data?

 thanks
 prasun


 Martijn Dashorst wrote:
 
  Wicket doesn't do anything with native stuff—we're doing pure Java.
  Either you did something strange, or there's a bug in WebSphere or the
  IBM JDK you're running into.
 
  Martijn
 
  On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS)
  prasan.ba...@landg.com wrote:
  Hi,
 
  Our web application use following configuration for development, and it
  frequently gives Java core dump without enough load.
  We contacted IBM support, who, after analysing dump file, has found that
  some of the html files of our app have been stored in the native memory
  space ( not heap memory) , presumably by wicket.
 
  Did any other user of wicket 1.2.x experience similar issues?
 
  Env:
  JDK = IBM JDK 1.4
  OS = Windows 2003 Server SP1
  Application Server = Websphere Process Server 6.0.2x
  Web application = Is a pure java app
  Wicket Version = 1.2.6
 
  Thanks
  prasun
 
 
  **
  This email (and any attachments) may contain privileged and/or
  confidential information. If you are not the intended recipient please
 do
  not disclose, copy, distribute, disseminate or take any action in
  reliance on it. If you have received this message in error please reply
  and tell us and then delete it. Should you wish to communicate with us
 by
  email we cannot guarantee the security of any data outside our own
  computer systems. For the protection of Legal  General's systems and
  staff, incoming emails will be automatically scanned. Any information
  contained in this message may be subject to applicable terms and
  conditions and must not be construed as giving investment advice within
  or outside the United Kingdom.
 
  Legal  General Group plc is registered in England under company number
  1417162 and is a holding company.
 
  The registered office for all companies in the Legal  General group is
  One Coleman Street London EC2R 5AA.
 
  The following subsidiary companies of Legal  General Group Plc are
  authorised and regulated by the Financial Services Authority: Legal 
  General Partnership Services Limited, Legal  General Insurance Limited,
  Legal  General Assurance Society Limited, Legal  General (Unit Trust
  Managers) Limited and Legal  General (Portfolio Management Services)
  Limited.
 
  Legal  General International (Ireland) is incorporated in Ireland under
  company number 440141 with its registered office at Beaux Lane House,
  Lower Mercer Street, Dublin 2, Ireland and is authorised by the
 Financial
  Regulator in Ireland and by the Financial Services Authority for the
  conduct of insurance business in the UK.
 
  Full details can be found at http://www.legalandgeneralgroup.com
 
  **
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.5 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  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://www.nabble.com/Native-memory-leak-using-wicket-1.2.6---IBM-JDK-1.4---Windows-2003-Server-SP1-tp23195156p23253981.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




Re: Possible to retrieve previous page from PageMap

2009-04-27 Thread Carlo Camerino
Try this

I have this method for getting the current page id and version.

protected PageIDVersion getCurrentPageIDVersion() {
PageIDVersion pageIDVersion = new
PageIDVersion(getPageMapEntry().getNumericId(), getCurrentVersionNumber());
return pageIDVersion;
  }

I send it to the next page by using a

class PageIDVersion {
private Integer pageNum;
private Integer version;
}

I store it as an instance in next page.

public class NextPage() {
private pageIdVersion pageIdVersion
private NextPage(PageIDVersion pageIdVersion) }
  this.pageIdVersion = pageIDversion;
   }
}

Then use this button to reference the previous page.

package com.ccti.base.web.components.button;

import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.link.Link;

import com.ccti.base.web.utilities.PageIDVersion;

/**
 * @author Carlo M. Camerino
 *
 */
public class BackButton extends Link {
private PageIDVersion pageIDVersion;

public BackButton(String id, PageIDVersion pageIDVersion) {
super(id);
this.pageIDVersion = pageIDVersion;
add(new SimpleAttributeModifier(value, Back));
}

@Override
public void onClick() {
setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(),
pageIDVersion.getVersion()));
}


}

On Mon, Apr 27, 2009 at 10:44 PM, James Carman jcar...@carmanconsulting.com
 wrote:

 Copy/paste the code for PageReference into your code.  That's what I
 did.  I also created a factory method to create a PageReference from
 the currently requested page (useful for being able to go back).

 On Mon, Apr 27, 2009 at 10:42 AM, Daniele Dellafiore ilde...@gmail.com
 wrote:
  I have tried to find something but, given that I am using wikcket 1.3
  and I do not have PageReferences, the only way I have found to recover
  the last page is to pass a parameter with the page name and then found
  the last version of that page in the HttpSession pageMap.
  Or to keep the reference of the last page in the session.
 
  I can do it but I expect that wicket already have that kind of
  mechanism. Doesn't it?
 
  On Tue, Apr 14, 2009 at 8:30 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  search this forum for pagereference
 
  -igor
 
  On Tue, Apr 14, 2009 at 9:28 AM, Daniele Dellafiore ilde...@gmail.com
 wrote:
  Here is my return to last page problem.
 
  A detail page has multiple tabs, an AjaxTabbedPanel. Swithing
  between tabs does not put another page in browser history, so
  history.back() is fine.
  I have also a checkbox that trigger enable/disable state of all the
  input of the form. Is an AjaxCheckBox that in the callback refresh the
  form component after changing the enable property. The
  history.back() works, again.
 
  But, I have a reset button that:
  1. reload the old values in the fields
  2. put the form in a disable state, like at the beginning.
 
  Now, to achieve this result, the Reset button actually calls a
  setResponsePage(getPage(), getPage().getPageParameters())
 
  so reloads the current page with original parameters.
  That calls actually make the history grow, so the history.back() is no
  longer useful becouse, in fact, goes to the last version of the actual
  page instead of the previous page.
 
  Any suggestion?
 
  I should simply use a document.form.reset() making that the Reset
  button is not a submit button... sounds fine?
 
  In general, what is the best solution wicket-like? Is something
  REST-like a la gmail, that returns to the /search/myFilter ? Or
  something statefull, so I suppose it should be easy to recover the
  last rendered page with the right version and so on...
 
  On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy
  francisco.tre...@gmail.com wrote:
  igor, i would agree with you if i wanted to mimic the browser back
  button functionality.
 
  but i do not. we intensively use panel swapping and we're only
  interested in registering when users click on certain pages (we can
  fine-tune pages which pages should be back-clickable).
 
  we actually considered using history.go(-1), but if you want your app
  to seriously take into account usability / user experience, it's
  useless -- for instance think panel swapping, or rendering links such
  as back to your search for ice-cream. personally i'm not someone who
  likes complexity just for the sake of it.
 
  francisco
 
 
  On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg 
 igor.vaynb...@gmail.com wrote:
  its really a lot of work to duplicate what the back button in the
  browser already does. or a simple a href=#
  onclick=history.go(-1)back/a will do as well.
 
  -igor
 
  On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy
  francisco.tre...@gmail.com wrote:
  to be honest i haven't read the whole thread, but we are also trying
  to achieve roughly the same thing.
 
  as of wicket 1.4-m1 there is a class called PageId that you may want
  to consider.
 
  i created a back state holder class that holds a 

Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-23 Thread Carlo Camerino
did yous witch your aplication to deployment mode.
Using development mode in websphere using wicket will cause it to have
memory leaks.
Even in 1.3.5 we experience it.
Try switching to deployment mode and see if helps

On Thu, Apr 23, 2009 at 10:20 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 Wicket doesn't do anything with native stuff—we're doing pure Java.
 Either you did something strange, or there's a bug in WebSphere or the
 IBM JDK you're running into.

 Martijn

 On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS)
 prasan.ba...@landg.com wrote:
  Hi,
 
  Our web application use following configuration for development, and it
  frequently gives Java core dump without enough load.
  We contacted IBM support, who, after analysing dump file, has found that
  some of the html files of our app have been stored in the native memory
  space ( not heap memory) , presumably by wicket.
 
  Did any other user of wicket 1.2.x experience similar issues?
 
  Env:
  JDK = IBM JDK 1.4
  OS = Windows 2003 Server SP1
  Application Server = Websphere Process Server 6.0.2x
  Web application = Is a pure java app
  Wicket Version = 1.2.6
 
  Thanks
  prasun
 
 
  **
  This email (and any attachments) may contain privileged and/or
 confidential information. If you are not the intended recipient please do
 not disclose, copy, distribute, disseminate or take any action in reliance
 on it. If you have received this message in error please reply and tell us
 and then delete it. Should you wish to communicate with us by email we
 cannot guarantee the security of any data outside our own computer systems.
 For the protection of Legal  General's systems and staff, incoming emails
 will be automatically scanned. Any information contained in this message may
 be subject to applicable terms and conditions and must not be construed as
 giving investment advice within or outside the United Kingdom.
 
  Legal  General Group plc is registered in England under company number
 1417162 and is a holding company.
 
  The registered office for all companies in the Legal  General group is
 One Coleman Street London EC2R 5AA.
 
  The following subsidiary companies of Legal  General Group Plc are
 authorised and regulated by the Financial Services Authority: Legal 
 General Partnership Services Limited, Legal  General Insurance Limited,
 Legal  General Assurance Society Limited, Legal  General (Unit Trust
 Managers) Limited and Legal  General (Portfolio Management Services)
 Limited.
 
  Legal  General International (Ireland) is incorporated in Ireland under
 company number 440141 with its registered office at Beaux Lane House, Lower
 Mercer Street, Dublin 2, Ireland and is authorised by the Financial
 Regulator in Ireland and by the Financial Services Authority for the conduct
 of insurance business in the UK.
 
  Full details can be found at http://www.legalandgeneralgroup.com
 
  **
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.5 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Carlo Camerino
I think we are also expericning this problem same as yours
If you will allow, can I have a copy of your fix for this one?
what files did you modify?
Thanks

Carlo

2009/4/22 Eyal Golan egola...@gmail.com

 I fixed the annoying thing by overriding the html panel of the palette
 (which I did previously for other purposes) and adding an element (1484 is
 our bugzilla issue number):
 !-- Do not remove ie7bug-1484. customepalette.js uses this element --
 span id=ie7bug-1484 style=display: none;/span

 Also:
/**
 * Renders header contributions
 *
 * @param response
 */
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(new
 ResourceReference(CustomPalette.class, customepalette.js));
}

 and finally:
 Wicket.Palette.moveUp=function(choicesId, selectionId, recorderId) {
var selection=Wicket.Palette.$(selectionId);

if (Wicket.Palette.moveUpHelper(selection)) {
document.getElementById('ie7bug-1484').innerHTML = '';
var recorder=Wicket.Palette.$(recorderId);
Wicket.Palette.updateRecorder(selection, recorder);
} else {
document.getElementById('ie7bug-1484').innerHTML = '';
}
}

 I really don't like these kinds of hacks, but what can I say? IE7 wouldn't
 let me any other option.

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary


 On Wed, Apr 22, 2009 at 12:13 PM, Eyal Golan egola...@gmail.com wrote:

  We have a very strange behavior in palette and IE7.
  We use Wicket 1.3.4 .
 
  The situation is:
  when pressing the UP button, the selected element goes up in each click.
  That's OK.
  The problem occurs when this element is in the second row.
  When pressing UP, it won't go to the first (upper) row. Only when we move
  the mouse to the area of the selected elements it goes up.
 
  In FF it doesn't happen.
  in IE6 it doesn't happen as well.
 
  I looked in the mailing list and couldn't see something about it.
 
  Was it fixed in 1.3.5 ?
 
  Thanks
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Wicket HttpSession Thread Safety

2009-04-20 Thread Carlo Camerino
Hi,

I would just like to post an inquiry on how wicket handles httpsession
concurrency.
When the application usage volume goes way up, it seems that httpsession is
problematic.

In struts for example,
if you use request.getSession() without synchronized access you might
encounter problems

My question is how does wicket handle this? Do we need to add any special
handling or does wicket take care of it automatically?

Thanks
Carlo


Page Redirect Question

2009-04-13 Thread Carlo Camerino
Hi I have This Page,

This page is handled by my link

public UploadFeedBackPageMain() {
User user = this.getSessionUser();
if (user.getCommunityType().equalsIgnoreCase(COURIER)) {
logger.debug(Directing to upload feedback file.);
Courier courier =
this.courierService.findCourierByCode(user.getCommunityCd());
this.setResponsePage(new UploadFeedBackPageTwo(courier));
}
else {
logger.debug(Directing to upload feedback file with courier search.);
// this.setRedirect(true);
// this.redirectToInterceptPage(new SearchCourierPage());
//this.setResponsePage(new SearchCourierPage());

}
}

I want to go to a different page upon load.
What command can I use to ti?

Thanks
Carlo


Wicket And Double Form Submission

2009-04-10 Thread Carlo Camerino
Hi,

I was just wondering how you guys implement double posting (double form
Submission) measures for wicket.
I was able to implement client side protection and was wondering if there
any way
to do it via server side also
Is there one like struts token approach that I can use?
What is the best way to do this?
Thanks

Carlo


Re: Wicket And Double Form Submission

2009-04-10 Thread Carlo Camerino
Does it work even if i use IndicatingAjaxButton and not the SubmitLink?

On Sat, Apr 11, 2009 at 3:10 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Wicket uses redirect by default to avoid double submission..

 **
 Martin

 2009/4/10 Carlo Camerino carlo.camer...@gmail.com:
  Hi,
 
  I was just wondering how you guys implement double posting (double form
  Submission) measures for wicket.
  I was able to implement client side protection and was wondering if there
  any way
  to do it via server side also
  Is there one like struts token approach that I can use?
  What is the best way to do this?
  Thanks
 
  Carlo
 

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




Re: Wicket And Double Form Submission

2009-04-10 Thread Carlo Camerino
ya i tested it on indicatingajaxbutton.

seems that when you don't enable javascripts, you don't go to the event
handler for
your button.
Instead the page is reloaded again
so if i'm able to catch it on the client side with javascript turned on, it
wouldn't anymore be a problem. hopefully :P

On Sat, Apr 11, 2009 at 3:16 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  Does it work even if i use IndicatingAjaxButton and not the SubmitLink?

 The wicket requestCycle redirects by default, you can put a brekpoint at
public final void setRedirect(final boolean redirect)
{
this.redirect = redirect;
}

 and you'll see.

 Ofcourse the http traffic is more efficient if you avoid double
 submission on client side and just 'gracefully' (more or less,
 depending on your service) fail on server side on double submit.

 **
 Martin


 
  On Sat, Apr 11, 2009 at 3:10 AM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  Wicket uses redirect by default to avoid double submission..
 
  **
  Martin
 
  2009/4/10 Carlo Camerino carlo.camer...@gmail.com:
   Hi,
  
   I was just wondering how you guys implement double posting (double
 form
   Submission) measures for wicket.
   I was able to implement client side protection and was wondering if
 there
   any way
   to do it via server side also
   Is there one like struts token approach that I can use?
   What is the best way to do this?
   Thanks
  
   Carlo
  
 
  -
  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