Wicket Portlets and Liferay

2010-01-13 Thread Klaus Astner
Hi,

We want to use Wicket Portlets in Liferay. The first step would be that all the 
wicket-example stuff is working - including Ajax. Onfortunately it does not 
work as intended.

The versions to be used are:
- Liferay-5.2.2 with Tomcat 6 (currently they use 6.0.18) bundled
- Apache Wicket 1.4.5 

The tests I did so far are:
Jetspeed-2 with Tomcat 6.0.18 and wicket 1.4.5 - everything is working
Liferay-5.2.2 with Jetty bundled, wicket-1.4.5  - everything is working
Liferay-5.2.2 with Tomcat bundled, wicket-1.4.5 - nothing is displayed
Liferay-5.2.2 with Tomcat bundled, wicket-1.4-rc2: porlets working, ajax stuff 
not

Liferay-5.2.2 with Tomcat bundled, wicket 1.4.5 but portlet.xml removed: 
methods work (incl. Ajax), but as it is unusable (no portlets).


Any experience?

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



Re: post a form to external site statelessly

2010-01-13 Thread Stijn Maller
Just use form action=http://your.other.site; instead of a wicket form
component, good old html... :o)

2010/1/13 Afsaneh Abouie afsaneh.abo...@gmail.com

 Hello everyone,
 I want to post my form to an external and non wicket site and  as I read in
 mail list, it can be done with ajax but my form and panels are stateless so
 I can't use ajax
 help me please

 --
 Regards,
 Afsaneh Abouie



Re: post a form to external site statelessly

2010-01-13 Thread Afsaneh Abouie
thanks, but I want to do some actions in model when user pressed submit
button then post generated params to external site



-- 
Regards,
Afsaneh Abouie


Re: Help with Wicket Adoption Numbers

2010-01-13 Thread manuelbarzi
struts is as c what wicket is as java (still beyond c++)


Re: post a form to external site statelessly

2010-01-13 Thread Afsaneh Abouie
thanks, but I want to do some actions in model when user pressed submit
button then post generated params to external site


-- 
Regards,
Afsaneh Abouie


Re: post a form to external site statelessly

2010-01-13 Thread Afsaneh Abouie
thanks, but I want to do some actions in model when user pressed submit
button then post generated params to external site


On Wed, Jan 13, 2010 at 12:32 PM, Stijn Maller stijn.mal...@gmail.comwrote:

 Just use form action=http://your.other.site; instead of a wicket form
 component, good old html... :o)

 2010/1/13 Afsaneh Abouie afsaneh.abo...@gmail.com

 Hello everyone,
 I want to post my form to an external and non wicket site and  as I read
 in
 mail list, it can be done with ajax but my form and panels are stateless
 so
 I can't use ajax
 help me please

 --
 Regards,
 Afsaneh Abouie





-- 
Regards,
Afsaneh Abouie


Re: post a form to external site statelessly

2010-01-13 Thread Ernesto Reinaldo Barreiro
I haven´t tried it myself but can´t you use

WebRequestCycle.get().setRequestTarget(new RedirectRequestTarget(URL...));

Ernesto

On Wed, Jan 13, 2010 at 10:57 AM, Afsaneh Abouie
afsaneh.abo...@gmail.comwrote:

 thanks, but I want to do some actions in model when user pressed submit
 button then post generated params to external site



 --
 Regards,
 Afsaneh Abouie



AW: Wicket Portlets and Liferay

2010-01-13 Thread Andreas Thiel
Hi,

I stumbled across this problem, too. I was using LR 5.2.3 with Tomcat 6 
bundled and Wicket 1.4.3.

After several unsuccessful tries to get the wicket examples running, I 
tried to get a simple wicket portlet running. After several frustrating 
days, I got it running. Here's what I did:

1) Mime types

Liferay apparently does not support wildcards in portlet.xml for the 
//supports/mime-type element. Instead of

supports
  mime-type*/*/mime-type
  portlet-modeVIEW/portlet-mode
/supports

I had to use:

supports
  mime-typetext/html/mime-type
  portlet-modeVIEW/portlet-mode
/supports

For AJAX/resource requests, another supports element for mime-type 
text/xml is needed.

2) Name congruence in deployment descriptors

The name in the pattern under //filter-mapping/url-pattern in web.xml 
(e.g. /testPortlet/*) has to match with the value under 
//portlet/portlet-name in portlet.xml, otherwise the portlet will not be 
rendered, or you get StackOverflowExceptions in LR.

//portlet/init-param[name='wicketFilterPath']/value has to be adapted 
accordingly, e.g. /testPortlet. Otherwise the portal shows a message 
The requested resource (/hellowicket-portlet-1.0-SNAPSHOT/testPortlet/) 
is not available. instead of the actual portlet content.

(The entry in liferay-display.xml should be adapted, too, otherwise the 
portlet will be listed under the category Undefined in the application 
chooser.)

3) Activate portlet mode for Wicket

I used the web.xml method to tell wicket to run in portlet mode. In 
web.xml of my wicket portlet, I added:

context-param
  param-nameorg.apache.wicket.detectPortletContext/param-name
  param-valuetrue/param-value
/context-param

Otherwise, I got an java.lang.IllegalArgumentException: URL path must 
start with a '/' or include '://'

4) FORWARD dispatcher in filter mapping

An additional FORWARD dispatching in the servlet-filter for the wicket 
portlet is indispensable, otherwise you get StackOverflow exceptions:

filter-mapping
  filter-namewicket.testPortlet/filter-name
  url-pattern/testPortlet/*/url-pattern
  dispatcherREQUEST/dispatcher
  dispatcherFORWARD/dispatcher !-- important --
  dispatcherINCLUDE/dispatcher
/filter-mapping

5) Spring

In web.xml of my wicket portlet, another context-param is needed so that 
Spring can find the context configuration for the WebApplicationContext of 
wicket:

context-param
  param-namecontextConfigLocation/param-name
  param-valueclasspath*:applicationContext.xml/param-name
/context-param

Also needed there:

listener
  
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
/listener

Otherwise, I got the following message during deployment of the wicket 
portlet:

FATAL: Error filterStart



Hope this helps.

Cheers,
Andreas




-- 
Andreas Thiel
Principal Consultant
mailto:andreas.th...@valtech.de
Mobile: +49 172 8982687

Valtech GmbH
Bahnstraße 16
40212 Düsseldorf
Germany

Phone: +49 211 179237-0
Fax: +49 211 179237-19

http://www.valtech.de

Geschäftsführer: Ingo Kriescher
Amtsgericht Düsseldorf HRB48672


  -Ursprüngliche Nachricht-

Von: Klaus Astner [mailto:klaus.ast...@ec3.at]
Gesendet: Mittwoch, 13. Januar 2010 09:40
An: users@wicket.apache.org
Betreff: Wicket Portlets and Liferay

Hi,

We want to use Wicket Portlets in Liferay. The first step would be that 
all the wicket-example stuff is working - including Ajax. Onfortunately it 
does not work as intended.

The versions to be used are:
- Liferay-5.2.2 with Tomcat 6 (currently they use 6.0.18) bundled
- Apache Wicket 1.4.5

The tests I did so far are:
Jetspeed-2 with Tomcat 6.0.18 and wicket 1.4.5 - everything is working
Liferay-5.2.2 with Jetty bundled, wicket-1.4.5  - everything is working
Liferay-5.2.2 with Tomcat bundled, wicket-1.4.5 - nothing is displayed
Liferay-5.2.2 with Tomcat bundled, wicket-1.4-rc2: porlets working, ajax 
stuff not

Liferay-5.2.2 with Tomcat bundled, wicket 1.4.5 but portlet.xml removed: 
methods work (incl. Ajax), but as it is unusable (no portlets).


Any experience?

Klaus
-
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: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
Please, everyone, I'm really despaired about this one, I'll greatly appreciate 
any help!

Best regards,

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Tuesday, January 12, 2010 4:37 PM
To: users@wicket.apache.org
Subject: RE: page expired problem issue wicket how resolve fix eofexception 
peekbyte

Thanks a lot for your time, Chuck!

I hope others will join our conversation...

Regards,

-Original Message-
From: Chuck Brinkman [mailto:chasb1...@gmail.com] 
Sent: Tuesday, January 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte

Martin,

I was not suggesting a permanent change to the framework.  Just temporary
while you debug the problem.  I got the source, did mvn install, it
generated the jar file which I then copied over to my project.  If I can do
it anyone can.  The problem isn't in wicket but in your domain object(s).
I'm out of ideas.  Maybe someone from the wicket team has a good suggestion.
Sorry :-(

Chuck

On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

 No, Chuck, I don't know what page is causing this. As you can see the
 thrown exception messages don't say anything particular. I think the
 messaging is poor. I face such problems in lots of frameworks, for example
 hibernate and so on. The messages are not pointing to a particular problem,
 only messing your head with unclear statements. Anyway, I don't plan to edit
 the frameworks. Do you think if not generic parameterized TextField or
 DropDownChoice for example can cause this?

 Thanks,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 2:13 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix eofexception
 peekbyte

 Martin,

 I don't know a good way.

 Do you know what page is causing the problem?  Manually check each object
 in
 all components of the page.

 Once you know the page you can try removing components until the error goes
 away.  Last one removed is the offender.  There may be multiple offenders.

 Maybe not a good way.  Get the source for wicket and modify
 org.apache.wicket.Component.readObject(Component.java:4465) to catch the
 exception.  At this point you can either print the class of the object
 being
 read (some type of Component) or use the debugger (my preference).  You
 might have to back up to org.apache.wicket.protocol.

 http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
 This may be a bit of work and might not tell you anything.  The up side is
 that you now have wicket source and can debug your next problem.  I usually
 assume there will be another problem.

 I'm sure others reading along will have better ideas.

 Chuck



 On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com wrote:

  Hi Chuck, nice to read from you!
 
  Yes, this could be all true, but I can't see anywhere in the logs
  comprehendible reports of what happens. Nothing says which is the
  problematic object, and I can only guess. Do you now a way to trace down
  where the problem comes from?
 
  Thank you!
 
  P.S. I'm new to Wicket too :)
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 1:23 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Hi Martin,
 
  I'm new to wicket.  Could this have something to do with wicket trying to
  restore a page from serialized data.  If one of the objects on your page
  can
  not be serialized you will get an error when wicket tries to restore the
  page.  I think you might see this when the back button is pressed.  I
 think
  using a detachable model is one option if you use a 3rd party object that
  isn't serializable..  If you wrote the object you can make is
 serializable.
  Then again I could be all wrong.
 
  Chuck
 
  On Tue, Jan 12, 2010 at 5:42 AM, Martin Asenov mase...@velti.com
 wrote:
 
   Hello, everyone! I'm currently developing a webapp and I've nearly
  finished
   it. However, there's an issue that bothers me - from time to time
 wicket
   comes up with 'page expired' messages that piss me off. Of course, I
 have
  to
   make sure such messages will not be seen by the end user. I examined
 the
   logs and saw the above following exception occurring many times. Could
 it
  be
   the reason for all this?
  
   Thanks in advance for your help!
  
   P.S. Sorry for the subject field, but I guess it would be more useful
  that
   way, since it contains many tags regarding the problem.
  
   SEVERE: Exception loading sessions from persistent storage
   java.io.EOFException
  at
  
 
 java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
  at
   

Re: post a form to external site statelessly

2010-01-13 Thread Stijn Maller
Or you could do that... :o)
Depends on who has to treat the response from the external site. Your
Server? Or Your client?

2010/1/13 Ernesto Reinaldo Barreiro reier...@gmail.com

 I haven´t tried it myself but can´t you use

 WebRequestCycle.get().setRequestTarget(new
 RedirectRequestTarget(URL...));

 Ernesto

 On Wed, Jan 13, 2010 at 10:57 AM, Afsaneh Abouie
 afsaneh.abo...@gmail.comwrote:

  thanks, but I want to do some actions in model when user pressed submit
  button then post generated params to external site
 
 
 
  --
  Regards,
  Afsaneh Abouie
 



RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
Here's again the original message, please, need some assistance...

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Tuesday, January 12, 2010 12:43 PM
To: users@wicket.apache.org
Subject: page expired problem issue wicket how resolve fix eofexception peekbyte

Hello, everyone! I'm currently developing a webapp and I've nearly finished it. 
However, there's an issue that bothers me - from time to time wicket comes up 
with 'page expired' messages that piss me off. Of course, I have to make sure 
such messages will not be seen by the end user. I examined the logs and saw the 
above following exception occurring many times. Could it be the reason for all 
this?

Thanks in advance for your help! 

P.S. Sorry for the subject field, but I guess it would be more useful that way, 
since it contains many tags regarding the problem.

SEVERE: Exception loading sessions from persistent storage
java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at 
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
at org.apache.wicket.Component.readObject(Component.java:4465)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at 
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at 
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1441)
at 
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)
at 
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
at 
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
at 
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
at 
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4358)
at 

DataView component path in WicketTester

2010-01-13 Thread Java Programmer
Hello,
Is it possible in WicketTester to check the items which are inside
DataView - an example:

DataView dataView = new DataView (sampleDataView, provider, 10) {
@Override
protected void populateItem(Item sampleItem) {
sampleItem.add(new Label(title, new Model()));
}
}

and in WicketTester I want to:
getWicketTester().assertComponent(sampleDataView: something :title,
DataView.class);

How can I get that 'something' for the test?

Regards,
Adr

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



Re: DataView component path in WicketTester

2010-01-13 Thread Java Programmer
2010/1/13 Java Programmer jprogrami...@gmail.com:
 and in WicketTester I want to:
 getWicketTester().assertComponent(sampleDataView: something :title,
 DataView.class);

Of course should be:
getWicketTester().assertComponent(sampleDataView: something :title,
Label.class);

Sorry for mistake,
Adr

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



Re: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread kirillkh
Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:

 Please, everyone, I'm really despaired about this one, I'll greatly
 appreciate any help!

 Best regards,

 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Tuesday, January 12, 2010 4:37 PM
 To: users@wicket.apache.org
 Subject: RE: page expired problem issue wicket how resolve fix eofexception
 peekbyte

 Thanks a lot for your time, Chuck!

 I hope others will join our conversation...

 Regards,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 3:57 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix eofexception
 peekbyte

 Martin,

 I was not suggesting a permanent change to the framework.  Just temporary
 while you debug the problem.  I got the source, did mvn install, it
 generated the jar file which I then copied over to my project.  If I can do
 it anyone can.  The problem isn't in wicket but in your domain object(s).
 I'm out of ideas.  Maybe someone from the wicket team has a good
 suggestion.
 Sorry :-(

 Chuck

 On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

  No, Chuck, I don't know what page is causing this. As you can see the
  thrown exception messages don't say anything particular. I think the
  messaging is poor. I face such problems in lots of frameworks, for
 example
  hibernate and so on. The messages are not pointing to a particular
 problem,
  only messing your head with unclear statements. Anyway, I don't plan to
 edit
  the frameworks. Do you think if not generic parameterized TextField or
  DropDownChoice for example can cause this?
 
  Thanks,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 2:13 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Martin,
 
  I don't know a good way.
 
  Do you know what page is causing the problem?  Manually check each object
  in
  all components of the page.
 
  Once you know the page you can try removing components until the error
 goes
  away.  Last one removed is the offender.  There may be multiple
 offenders.
 
  Maybe not a good way.  Get the source for wicket and modify
  org.apache.wicket.Component.readObject(Component.java:4465) to catch the
  exception.  At this point you can either print the class of the object
  being
  read (some type of Component) or use the debugger (my preference).  You
  might have to back up to org.apache.wicket.protocol.
 
 
 http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
  This may be a bit of work and might not tell you anything.  The up side
 is
  that you now have wicket source and can debug your next problem.  I
 usually
  assume there will be another problem.
 
  I'm sure others reading along will have better ideas.
 
  Chuck
 
 
 
  On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com
 wrote:
 
   Hi Chuck, nice to read from you!
  
   Yes, this could be all true, but I can't see anywhere in the logs
   comprehendible reports of what happens. Nothing says which is the
   problematic object, and I can only guess. Do you now a way to trace
 down
   where the problem comes from?
  
   Thank you!
  
   P.S. I'm new to Wicket too :)
  
   -Original Message-
   From: Chuck Brinkman [mailto:chasb1...@gmail.com]
   Sent: Tuesday, January 12, 2010 1:23 PM
   To: users@wicket.apache.org
   Subject: Re: page expired problem issue wicket how resolve fix
  eofexception
   peekbyte
  
   Hi Martin,
  
   I'm new to wicket.  Could this have something to do with wicket trying
 to
   restore a page from serialized data.  If one of the objects on your
 page
   can
   not be serialized you will get an error when wicket tries to restore
 the
   page.  I think you might see this when the back button is pressed.  I
  think
   using a detachable model is one option if you use a 3rd party object
 that
   isn't serializable..  If you wrote the object you can make is
  serializable.
   Then again I could be all wrong.
  
   Chuck
  
   On Tue, Jan 12, 2010 at 5:42 AM, Martin Asenov mase...@velti.com
  wrote:
  
Hello, everyone! I'm currently developing a webapp and I've nearly
   finished
it. However, there's an issue that bothers me - from time to time
  wicket
comes up with 'page expired' messages that piss me off. Of course, I
  have
   to
make sure such messages will not be seen by the end user. I examined
  the
logs and saw the above following exception occurring many times.
 Could
  it
 

SV: Wicket Portlets and Liferay

2010-01-13 Thread Wilhelmsen Tor Iver
We are running Wicket + Liferay (Webspace) in Glassfish 2, and experience no 
problems; IIRC Glassfish uses the same Catalina engine as Tomcat?

 
 For AJAX/resource requests, another supports element for mime-type
 text/xml is needed.

This sounds like a Tomcat issue, our portlets use Ajax fine without such a 
mime-type setting.

 2) Name congruence in deployment descriptors
 
 The name in the pattern under //filter-mapping/url-pattern in web.xml
 (e.g. /testPortlet/*) has to match with the value under
 //portlet/portlet-name in portlet.xml, otherwise the portlet will not
 be
 rendered, or you get StackOverflowExceptions in LR.

Again, possibly a Tomcat issue, in Glassfish we use e.g. a name 
LocalMessagesPortlet with the filter-mapping /localmessages/* with no issues

 The requested resource (/hellowicket-portlet-1.0-
 SNAPSHOT/testPortlet/)
 is not available. instead of the actual portlet content.

I would recommend using a more readable build/finalName pom.xml setting instead 
of the version-appended artifact name unless you want to deploy multiple 
versions.

- Tor Iver

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



Re: SV: Wicket Portlets and Liferay

2010-01-13 Thread Thijs

On 13-1-2010 14:20, Wilhelmsen Tor Iver wrote:

We are running Wicket + Liferay (Webspace) in Glassfish 2, and experience no 
problems; IIRC Glassfish uses the same Catalina engine as Tomcat?



For AJAX/resource requests, another supports element for mime-type
text/xml is needed.


This sounds like a Tomcat issue, our portlets use Ajax fine without such a 
mime-type setting.

This is a Liferay issue, they don't support */* so when using ajax you need:
supports
  mime-typetext/html/mime-type
  mime-typetext/xml/mime-type
  portlet-modeVIEW/portlet-mode
/supports




2) Name congruence in deployment descriptors

The name in the pattern under //filter-mapping/url-pattern in web.xml
(e.g. /testPortlet/*) has to match with the value under
//portlet/portlet-name in portlet.xml, otherwise the portlet will not
be
rendered, or you get StackOverflowExceptions in LR.


Again, possibly a Tomcat issue, in Glassfish we use e.g. a name 
LocalMessagesPortlet with the filter-mapping /localmessages/* with no issues


The requested resource (/hellowicket-portlet-1.0-
SNAPSHOT/testPortlet/)
is not available. instead of the actual portlet content.


I would recommend using a more readable build/finalName pom.xml setting instead 
of the version-appended artifact name unless you want to deploy multiple 
versions.



For the portlet naming check 
http://issues.liferay.com/browse/LPS-1911?focusedCommentId=52180#action_52180 
and further

the portet war should end with -portlet


- Tor Iver

-
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: SV: Wicket Portlets and Liferay

2010-01-13 Thread Klaus Astner
Many thanks to Andreas, now it works smoothly. 

- Klaus


Am 13.01.2010 um 14:20 schrieb Wilhelmsen Tor Iver:

 We are running Wicket + Liferay (Webspace) in Glassfish 2, and experience no 
 problems; IIRC Glassfish uses the same Catalina engine as Tomcat?
 
 
 For AJAX/resource requests, another supports element for mime-type
 text/xml is needed.
 
 This sounds like a Tomcat issue, our portlets use Ajax fine without such a 
 mime-type setting.
 
 2) Name congruence in deployment descriptors
 
 The name in the pattern under //filter-mapping/url-pattern in web.xml
 (e.g. /testPortlet/*) has to match with the value under
 //portlet/portlet-name in portlet.xml, otherwise the portlet will not
 be
 rendered, or you get StackOverflowExceptions in LR.
 
 Again, possibly a Tomcat issue, in Glassfish we use e.g. a name 
 LocalMessagesPortlet with the filter-mapping /localmessages/* with no issues
 
 The requested resource (/hellowicket-portlet-1.0-
 SNAPSHOT/testPortlet/)
 is not available. instead of the actual portlet content.
 
 I would recommend using a more readable build/finalName pom.xml setting 
 instead of the version-appended artifact name unless you want to deploy 
 multiple versions.
 
 - Tor Iver
 
 -
 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: Pass form input from modal window back to the caller page

2010-01-13 Thread Menesty

I have same problem
When open second window, and look in FF with Firebug there disappear form
thats why your button not work if look in Wicket Ajax Debug there will be
msg ERROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id
'form87' that is not in document.
 

k1dev wrote:
 
 Hi!
 
 A rookie question.
 
 Disclaimer: looked the modal window example but that does not pass values
 back as I understood it.
 
 I have a page that has a form. The form has an text field and a value
 chooser.
 A value chooser is a modal window that contains a panel that further
 contains a form and a checkbox multiple choice. How can I pass the
 selected value(s) back to the text field (or transformed to a comma
 separated string list)?
 My code also doesn't close the modal window when the submit button
 clicked. What is the right solution?
 Thanks.
 bye
 
 Here's my code list:
 DemoPage.html:
 ...
 form wicket:id=form
   
   input type=text wicket:id=text /
   div wicket:id=chooserWindow/div Chooser 
   br/
   input wicket:id=button type=submit /
 /form
 ...
 DemoPage.java:
 public class DemoPage extends WebPage {
   
   private Object text;
   private Object itemselection;
   
   public DemoPage() {
   Form form = new Form(form, new CompoundPropertyModel(this)) {
   @Override
   protected void onSubmit() {
   System.out.println(form submitted.);
   }
   };
   add(form);
   form.add(new Label(label, Item codes));
   form.add(new TextField(text));
   form.add(new Button(button));
   
   final ModalWindow chooserWindow = new 
 ModalWindow(chooserWindow);
   chooserWindow.setOutputMarkupId(true);
   form.add(chooserWindow);
 
   chooserWindow.setContent(
   new ChooserPanel(chooserWindow.getContentId(), 
 chooserWindow)
   );
   chooserWindow.setTitle(Make your choice);
   chooserWindow.setCookieName(chooserWindow-1);
 
   chooserWindow.setCloseButtonCallback(new
 ModalWindow.CloseButtonCallback()
   {
   public boolean onCloseButtonClicked(AjaxRequestTarget 
 target) {return
 true;}
   });
 
   chooserWindow.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback()
   {
   public void onClose(AjaxRequestTarget target) {}
   });
 
   form.add(new AjaxLink(chooserLink)
   {
   public void onClick(AjaxRequestTarget target)
 {chooserWindow.show(target);}
   });
   
   }
 }
 
 ChooserPanel.html:
 wicket:panel
 div wicket:id=chooser
 form wicket:id=chooserForm
 
   input wicket:id=button type=submit /
 /form
 /div
 /wicket:panel
 
 ChooserPanel.java:
 public class ChooserPanel extends Panel {
 
   private static final long serialVersionUID = 1L;
 
   private ListChooserItem availItems = Arrays.asList(
   new ChooserItem(I1,Item 1),
   new ChooserItem(I2,Item 2),
   new ChooserItem(I2,Item 3) );
 
   public ChooserPanel(String id, final  ModalWindow window) {
   super(id);
 
   final WebMarkupContainer parent = new WebMarkupContainer(chooser);
   parent.setOutputMarkupId(true);
   add(parent);
 
   Form form = new Form(chooserForm) {
   @Override
   protected void onSubmit() {
   System.out.println(chooseForm submitted.);
   }
   };
   parent.add(form);
   
   form.add(new CheckBoxMultipleChoice(itemselection, new
 PropertyModel(this,
   availItems), new ChoiceRenderer(name, 
 id)));
   form.add(new AjaxButton(button) {
   @Override
   protected void onSubmit(AjaxRequestTarget target, Form 
 form) {
   window.close(target);
   }
   });
   }
 
   public class ChooserItem {
   private String id, name;
 
   public ChooserItem(String id, String name) {
   this.id = id;
   this.name = name;
   }
   }
 }
 
 

-- 
View this message in context: 
http://old.nabble.com/Pass-form-input-from-modal-window-back-to-the-caller-page-tp14944556p27145826.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



Help with Form submission and Ajax buttons

2010-01-13 Thread Sumit Raja
Hi,

Beginner question with Form handling: I have a panel that accepts name value
pairs in text fields.On the form there is an ajax button to add a value, an
ajax button to remove a value and an actual form submit button. I  have a
onSubmit handler for the form that actually processes the NV pairs once the
user has finished. When either the plus or minus button are pressed I update
the form's model and have the form rerenderd. For this to work correctly I
need the form's model updated but not have the form's onSubmit handler
called.  Setting default form processing to false on the twoajx  buttons did
not work as the model was not updated correctly (NPEs thrown)

I have overridden the two buttons' onSubmit() handler to set a flag (as
these seem to be called before the form's onSubmit()) and check for this
flag in the form's onSubmit and save or ignore the submit accordingly. Is
this the right way to do this?

I don't want to use another button to do the 'true' form submission as I
need to have this panel embedded in a wizard as well as an ordinary page.

Thanks

Sumit


Re: Discard queued ajax requests

2010-01-13 Thread Daniel Frisk
Found the answer. If we set the channel name to something that ends  
with |d (pipe d) the channel changes to drop behavior.


Great! (but a bit obscure)

// Daniel



On 2010-01-13, at 08:52, Daniel Frisk wrote:


Wicket friends,

another question regarding high latency. Here is the scenario:

* I have a lot of network latency so all ajax requests have  
considerable delay.

* User types in a form that submit itself on every keyup event
* All but the first submit is queued since the ajax channel is busy

Now when the first submit is processed I would like to somehow prune  
the queue so that only the last submit is processed and all other  
submits are discarded. Can this be done?


// Daniel
jalbum.net




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



RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
Thanks, kirillkh! I'll try this... 

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com] 
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:

 Please, everyone, I'm really despaired about this one, I'll greatly
 appreciate any help!

 Best regards,

 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Tuesday, January 12, 2010 4:37 PM
 To: users@wicket.apache.org
 Subject: RE: page expired problem issue wicket how resolve fix eofexception
 peekbyte

 Thanks a lot for your time, Chuck!

 I hope others will join our conversation...

 Regards,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 3:57 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix eofexception
 peekbyte

 Martin,

 I was not suggesting a permanent change to the framework.  Just temporary
 while you debug the problem.  I got the source, did mvn install, it
 generated the jar file which I then copied over to my project.  If I can do
 it anyone can.  The problem isn't in wicket but in your domain object(s).
 I'm out of ideas.  Maybe someone from the wicket team has a good
 suggestion.
 Sorry :-(

 Chuck

 On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

  No, Chuck, I don't know what page is causing this. As you can see the
  thrown exception messages don't say anything particular. I think the
  messaging is poor. I face such problems in lots of frameworks, for
 example
  hibernate and so on. The messages are not pointing to a particular
 problem,
  only messing your head with unclear statements. Anyway, I don't plan to
 edit
  the frameworks. Do you think if not generic parameterized TextField or
  DropDownChoice for example can cause this?
 
  Thanks,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 2:13 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Martin,
 
  I don't know a good way.
 
  Do you know what page is causing the problem?  Manually check each object
  in
  all components of the page.
 
  Once you know the page you can try removing components until the error
 goes
  away.  Last one removed is the offender.  There may be multiple
 offenders.
 
  Maybe not a good way.  Get the source for wicket and modify
  org.apache.wicket.Component.readObject(Component.java:4465) to catch the
  exception.  At this point you can either print the class of the object
  being
  read (some type of Component) or use the debugger (my preference).  You
  might have to back up to org.apache.wicket.protocol.
 
 
 http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
  This may be a bit of work and might not tell you anything.  The up side
 is
  that you now have wicket source and can debug your next problem.  I
 usually
  assume there will be another problem.
 
  I'm sure others reading along will have better ideas.
 
  Chuck
 
 
 
  On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com
 wrote:
 
   Hi Chuck, nice to read from you!
  
   Yes, this could be all true, but I can't see anywhere in the logs
   comprehendible reports of what happens. Nothing says which is the
   problematic object, and I can only guess. Do you now a way to trace
 down
   where the problem comes from?
  
   Thank you!
  
   P.S. I'm new to Wicket too :)
  
   -Original Message-
   From: Chuck Brinkman [mailto:chasb1...@gmail.com]
   Sent: Tuesday, January 12, 2010 1:23 PM
   To: users@wicket.apache.org
   Subject: Re: page expired problem issue wicket how resolve fix
  eofexception
   peekbyte
  
   Hi Martin,
  
   I'm new to wicket.  Could this have something to do with wicket trying
 to
   restore a page from serialized data.  If one of the objects on your
 page
   can
   not be serialized you will get an error when wicket tries to restore
 the
   page.  I think you might see this when the back button is pressed.  I
  think
   using a detachable model is one option if you use a 3rd party object
 that
   isn't serializable..  If you wrote the object you can make is
  serializable.
   Then again I could be all wrong.
  
   Chuck
  
   On Tue, Jan 12, 2010 at 5:42 AM, Martin Asenov mase...@velti.com
  wrote:
  
Hello, everyone! I'm currently developing a webapp and I've nearly
   finished
it. However, 

Re: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Fatih Mehmet UCAR
Does it happens when the application server starts ? If yes, are you 
terminating the AS process or shutting down appropriate commands.


fmu

- Original Message - 
From: Martin Asenov mase...@velti.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception 
peekbyte



Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte


Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:


Please, everyone, I'm really despaired about this one, I'll greatly
appreciate any help!

Best regards,

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com]
Sent: Tuesday, January 12, 2010 4:37 PM
To: users@wicket.apache.org
Subject: RE: page expired problem issue wicket how resolve fix 
eofexception

peekbyte

Thanks a lot for your time, Chuck!

I hope others will join our conversation...

Regards,

-Original Message-
From: Chuck Brinkman [mailto:chasb1...@gmail.com]
Sent: Tuesday, January 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix 
eofexception

peekbyte

Martin,

I was not suggesting a permanent change to the framework.  Just temporary
while you debug the problem.  I got the source, did mvn install, it
generated the jar file which I then copied over to my project.  If I can 
do

it anyone can.  The problem isn't in wicket but in your domain object(s).
I'm out of ideas.  Maybe someone from the wicket team has a good
suggestion.
Sorry :-(

Chuck

On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

 No, Chuck, I don't know what page is causing this. As you can see the
 thrown exception messages don't say anything particular. I think the
 messaging is poor. I face such problems in lots of frameworks, for
example
 hibernate and so on. The messages are not pointing to a particular
problem,
 only messing your head with unclear statements. Anyway, I don't plan to
edit
 the frameworks. Do you think if not generic parameterized TextField or
 DropDownChoice for example can cause this?

 Thanks,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 2:13 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
eofexception
 peekbyte

 Martin,

 I don't know a good way.

 Do you know what page is causing the problem?  Manually check each 
 object

 in
 all components of the page.

 Once you know the page you can try removing components until the error
goes
 away.  Last one removed is the offender.  There may be multiple
offenders.

 Maybe not a good way.  Get the source for wicket and modify
 org.apache.wicket.Component.readObject(Component.java:4465) to catch the
 exception.  At this point you can either print the class of the object
 being
 read (some type of Component) or use the debugger (my preference).  You
 might have to back up to org.apache.wicket.protocol.


http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
 This may be a bit of work and might not tell you anything.  The up side
is
 that you now have wicket source and can debug your next problem.  I
usually
 assume there will be another problem.

 I'm sure others reading along will have better ideas.

 Chuck



 On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com
wrote:

  Hi Chuck, nice to read from you!
 
  Yes, this could be all true, but I can't see anywhere in the logs
  comprehendible reports of what happens. Nothing says which is the
  problematic object, and I can only guess. Do you now a way to trace
down
  where the problem comes from?
 
  Thank you!
 
  P.S. I'm new to Wicket too :)
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 1:23 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Hi Martin,
 
  I'm new to wicket.  Could this have something to do with wicket trying
to
  restore a page from serialized data.  If one of the objects on your
page
  can
  not be serialized you will get an error when wicket tries to restore
the
  page.  I think you might see this when the back button is pressed.  I
 think
  using a detachable model is one option if you use a 3rd party object
that
  isn't serializable..  If you wrote the object you 

RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
I get 'page expired messages as I browse through my webapp. However, the 
exception is placed before 'server startup statement in catalina.log...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte

Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:

 Please, everyone, I'm really despaired about this one, I'll greatly
 appreciate any help!

 Best regards,

 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Tuesday, January 12, 2010 4:37 PM
 To: users@wicket.apache.org
 Subject: RE: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Thanks a lot for your time, Chuck!

 I hope others will join our conversation...

 Regards,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 3:57 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Martin,

 I was not suggesting a permanent change to the framework.  Just temporary
 while you debug the problem.  I got the source, did mvn install, it
 generated the jar file which I then copied over to my project.  If I can
 do
 it anyone can.  The problem isn't in wicket but in your domain object(s).
 I'm out of ideas.  Maybe someone from the wicket team has a good
 suggestion.
 Sorry :-(

 Chuck

 On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

  No, Chuck, I don't know what page is causing this. As you can see the
  thrown exception messages don't say anything particular. I think the
  messaging is poor. I face such problems in lots of frameworks, for
 example
  hibernate and so on. The messages are not pointing to a particular
 problem,
  only messing your head with unclear statements. Anyway, I don't plan to
 edit
  the frameworks. Do you think if not generic parameterized TextField or
  DropDownChoice for example can cause this?
 
  Thanks,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 2:13 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Martin,
 
  I don't know a good way.
 
  Do you know what page is causing the problem?  Manually check each
  object
  in
  all components of the page.
 
  Once you know the page you can try removing components until the error
 goes
  away.  Last one removed is the offender.  There may be multiple
 offenders.
 
  Maybe not a good way.  Get the source for wicket and modify
  org.apache.wicket.Component.readObject(Component.java:4465) to catch the
  exception.  At this point you can either print the class of the object
  being
  read (some type of Component) or use the debugger (my preference).  You
  might have to back up to org.apache.wicket.protocol.
 
 
 http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
  This may be a bit of work and might not tell you anything.  The up side
 is
  that you now have wicket source and can debug your next problem.  I
 usually
  assume there will be another problem.
 
  I'm sure others reading along will have better ideas.
 
  Chuck
 
 
 
  On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com
 wrote:
 
   Hi Chuck, nice to read from you!
  
   Yes, this could be all true, but I can't see anywhere in the logs
   comprehendible reports of what happens. Nothing says which is the
   problematic object, and I can only guess. Do you now a way to trace
 down
   where the problem comes from?
  
   Thank you!
  
   P.S. I'm new to Wicket too :)
  
   -Original Message-
   From: Chuck Brinkman [mailto:chasb1...@gmail.com]
   Sent: Tuesday, January 12, 2010 1:23 PM
   To: users@wicket.apache.org
   Subject: Re: page expired problem issue wicket how resolve fix
  

RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Grigorov
Martin check this:
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Restart%
20Persistence

On Wed, 2010-01-13 at 17:56 +0200, Martin Asenov wrote:
 I get 'page expired messages as I browse through my webapp. However, the 
 exception is placed before 'server startup statement in catalina.log...
 
 BR,
 
 -Original Message-
 From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
 Sent: Wednesday, January 13, 2010 5:52 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix eofexception 
 peekbyte
 
 Does it happens when the application server starts ? If yes, are you
 terminating the AS process or shutting down appropriate commands.
 
 fmu
 
 - Original Message -
 From: Martin Asenov mase...@velti.com
 To: users@wicket.apache.org
 Sent: Wednesday, January 13, 2010 3:44 PM
 Subject: RE: page expired problem issue wicket how resolve fix eofexception
 peekbyte
 
 
 Thanks, kirillkh! I'll try this...
 
 Any other suggestions, anyone?
 
 Thanks!
 
 -Original Message-
 From: kirillkh [mailto:kiril...@gmail.com]
 Sent: Wednesday, January 13, 2010 3:13 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix eofexception
 peekbyte
 
 Hi Martin,
 
 Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
 means the debugger will pause when certain exception is triggered. You
 should try downloading wicket's sources as suggested and placing breakpoint
 at EOFException.
 
 -Kirill
 
 On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:
 
  Please, everyone, I'm really despaired about this one, I'll greatly
  appreciate any help!
 
  Best regards,
 
  -Original Message-
  From: Martin Asenov [mailto:mase...@velti.com]
  Sent: Tuesday, January 12, 2010 4:37 PM
  To: users@wicket.apache.org
  Subject: RE: page expired problem issue wicket how resolve fix
  eofexception
  peekbyte
 
  Thanks a lot for your time, Chuck!
 
  I hope others will join our conversation...
 
  Regards,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 3:57 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
  eofexception
  peekbyte
 
  Martin,
 
  I was not suggesting a permanent change to the framework.  Just temporary
  while you debug the problem.  I got the source, did mvn install, it
  generated the jar file which I then copied over to my project.  If I can
  do
  it anyone can.  The problem isn't in wicket but in your domain object(s).
  I'm out of ideas.  Maybe someone from the wicket team has a good
  suggestion.
  Sorry :-(
 
  Chuck
 
  On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:
 
   No, Chuck, I don't know what page is causing this. As you can see the
   thrown exception messages don't say anything particular. I think the
   messaging is poor. I face such problems in lots of frameworks, for
  example
   hibernate and so on. The messages are not pointing to a particular
  problem,
   only messing your head with unclear statements. Anyway, I don't plan to
  edit
   the frameworks. Do you think if not generic parameterized TextField or
   DropDownChoice for example can cause this?
  
   Thanks,
  
   -Original Message-
   From: Chuck Brinkman [mailto:chasb1...@gmail.com]
   Sent: Tuesday, January 12, 2010 2:13 PM
   To: users@wicket.apache.org
   Subject: Re: page expired problem issue wicket how resolve fix
  eofexception
   peekbyte
  
   Martin,
  
   I don't know a good way.
  
   Do you know what page is causing the problem?  Manually check each
   object
   in
   all components of the page.
  
   Once you know the page you can try removing components until the error
  goes
   away.  Last one removed is the offender.  There may be multiple
  offenders.
  
   Maybe not a good way.  Get the source for wicket and modify
   org.apache.wicket.Component.readObject(Component.java:4465) to catch the
   exception.  At this point you can either print the class of the object
   being
   read (some type of Component) or use the debugger (my preference).  You
   might have to back up to org.apache.wicket.protocol.
  
  
  http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
   This may be a bit of work and might not tell you anything.  The up side
  is
   that you now have wicket source and can debug your next problem.  I
  usually
   assume there will be another problem.
  
   I'm sure others reading along will have better ideas.
  
   Chuck
  
  
  
   On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov mase...@velti.com
  wrote:
  
Hi Chuck, nice to read from you!
   
Yes, this could be all true, but I can't see anywhere in the logs
comprehendible reports of what happens. Nothing says which is the
problematic object, and I can only guess. Do you now a way to trace
  down

Re: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Fatih Mehmet UCAR
I dont think the exception and page expired things are related if you are 
only getting the exception when the AS starts.
When you stop the AS, it normally tries to serialize active sessions and 
read them back when you start it again to restore.


After stopping server, if you change serialUID of any class that was 
serialized that exception may occur.
Also if you do not shut down server properly, server wont be able to 
serialize everything in a correct way and may not be able to read

back which will again cause this kind of exceptions.

fmu
- Original Message - 
From: Martin Asenov mase...@velti.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception 
peekbyte



I get 'page expired messages as I browse through my webapp. However, the 
exception is placed before 'server startup statement in catalina.log...


BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte


Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:


Please, everyone, I'm really despaired about this one, I'll greatly
appreciate any help!

Best regards,

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com]
Sent: Tuesday, January 12, 2010 4:37 PM
To: users@wicket.apache.org
Subject: RE: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Thanks a lot for your time, Chuck!

I hope others will join our conversation...

Regards,

-Original Message-
From: Chuck Brinkman [mailto:chasb1...@gmail.com]
Sent: Tuesday, January 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Martin,

I was not suggesting a permanent change to the framework.  Just temporary
while you debug the problem.  I got the source, did mvn install, it
generated the jar file which I then copied over to my project.  If I can
do
it anyone can.  The problem isn't in wicket but in your domain object(s).
I'm out of ideas.  Maybe someone from the wicket team has a good
suggestion.
Sorry :-(

Chuck

On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

 No, Chuck, I don't know what page is causing this. As you can see the
 thrown exception messages don't say anything particular. I think the
 messaging is poor. I face such problems in lots of frameworks, for
example
 hibernate and so on. The messages are not pointing to a particular
problem,
 only messing your head with unclear statements. Anyway, I don't plan to
edit
 the frameworks. Do you think if not generic parameterized TextField or
 DropDownChoice for example can cause this?

 Thanks,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 2:13 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
eofexception
 peekbyte

 Martin,

 I don't know a good way.

 Do you know what page is causing the problem?  Manually check each
 object
 in
 all components of the page.

 Once you know the page you can try removing components until the error
goes
 away.  Last one removed is the offender.  There may be multiple
offenders.

 Maybe not a good way.  Get the source for wicket and modify
 org.apache.wicket.Component.readObject(Component.java:4465) to catch the
 exception.  At this point you can either print the class of the object
 being
 read (some type of Component) or use the debugger (my preference).  You
 might have to back up to org.apache.wicket.protocol.


http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417).
 This may be a bit of work and might not tell you anything.  The up side
is
 that you now have wicket source and can debug your next problem.  I
usually
 assume there will be another problem.

 I'm sure others 

RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
So, I suppose I need to clear AS cache before deploying with different UIDs?

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:18 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte

I dont think the exception and page expired things are related if you are
only getting the exception when the AS starts.
When you stop the AS, it normally tries to serialize active sessions and
read them back when you start it again to restore.

After stopping server, if you change serialUID of any class that was
serialized that exception may occur.
Also if you do not shut down server properly, server wont be able to
serialize everything in a correct way and may not be able to read
back which will again cause this kind of exceptions.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


I get 'page expired messages as I browse through my webapp. However, the
exception is placed before 'server startup statement in catalina.log...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:

 Please, everyone, I'm really despaired about this one, I'll greatly
 appreciate any help!

 Best regards,

 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Tuesday, January 12, 2010 4:37 PM
 To: users@wicket.apache.org
 Subject: RE: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Thanks a lot for your time, Chuck!

 I hope others will join our conversation...

 Regards,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 3:57 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Martin,

 I was not suggesting a permanent change to the framework.  Just temporary
 while you debug the problem.  I got the source, did mvn install, it
 generated the jar file which I then copied over to my project.  If I can
 do
 it anyone can.  The problem isn't in wicket but in your domain object(s).
 I'm out of ideas.  Maybe someone from the wicket team has a good
 suggestion.
 Sorry :-(

 Chuck

 On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

  No, Chuck, I don't know what page is causing this. As you can see the
  thrown exception messages don't say anything particular. I think the
  messaging is poor. I face such problems in lots of frameworks, for
 example
  hibernate and so on. The messages are not pointing to a particular
 problem,
  only messing your head with unclear statements. Anyway, I don't plan to
 edit
  the frameworks. Do you think if not generic parameterized TextField or
  DropDownChoice for example can cause this?
 
  Thanks,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 2:13 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
  peekbyte
 
  Martin,
 
  I don't know a good way.
 
  Do you know what page is causing the problem?  Manually check each
  object
  in
  all components of the page.
 
  Once you know the page you can try removing components until the error
 goes
  away.  Last one removed is the offender.  There may be multiple
 offenders.
 
  Maybe not a good way.  Get the source for wicket and modify
  org.apache.wicket.Component.readObject(Component.java:4465) to catch the
  exception.  At this point you can either print the class of the object
  being
  read (some type of Component) or use the debugger (my preference).  You
  

Re: Help with Form submission and Ajax buttons

2010-01-13 Thread Stijn Maller
In the form's onSubmit() handler you can use findSubmittingButton() for your
check instead.

2010/1/13 Sumit Raja sumitr...@gmail.com

 Hi,

 Beginner question with Form handling: I have a panel that accepts name
 value
 pairs in text fields.On the form there is an ajax button to add a value, an
 ajax button to remove a value and an actual form submit button. I  have a
 onSubmit handler for the form that actually processes the NV pairs once the
 user has finished. When either the plus or minus button are pressed I
 update
 the form's model and have the form rerenderd. For this to work correctly I
 need the form's model updated but not have the form's onSubmit handler
 called.  Setting default form processing to false on the twoajx  buttons
 did
 not work as the model was not updated correctly (NPEs thrown)

 I have overridden the two buttons' onSubmit() handler to set a flag (as
 these seem to be called before the form's onSubmit()) and check for this
 flag in the form's onSubmit and save or ignore the submit accordingly. Is
 this the right way to do this?

 I don't want to use another button to do the 'true' form submission as I
 need to have this panel embedded in a wizard as well as an ordinary page.

 Thanks

 Sumit



Re: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Fatih Mehmet UCAR

In fact you should not be changing UIDs once you have generated them.

fmu
- Original Message - 
From: Martin Asenov mase...@velti.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 4:21 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception 
peekbyte



So, I suppose I need to clear AS cache before deploying with different UIDs?

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:18 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte


I dont think the exception and page expired things are related if you are
only getting the exception when the AS starts.
When you stop the AS, it normally tries to serialize active sessions and
read them back when you start it again to restore.

After stopping server, if you change serialUID of any class that was
serialized that exception may occur.
Also if you do not shut down server properly, server wont be able to
serialize everything in a correct way and may not be able to read
back which will again cause this kind of exceptions.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


I get 'page expired messages as I browse through my webapp. However, the
exception is placed before 'server startup statement in catalina.log...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:


Please, everyone, I'm really despaired about this one, I'll greatly
appreciate any help!

Best regards,

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com]
Sent: Tuesday, January 12, 2010 4:37 PM
To: users@wicket.apache.org
Subject: RE: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Thanks a lot for your time, Chuck!

I hope others will join our conversation...

Regards,

-Original Message-
From: Chuck Brinkman [mailto:chasb1...@gmail.com]
Sent: Tuesday, January 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Martin,

I was not suggesting a permanent change to the framework.  Just temporary
while you debug the problem.  I got the source, did mvn install, it
generated the jar file which I then copied over to my project.  If I can
do
it anyone can.  The problem isn't in wicket but in your domain object(s).
I'm out of ideas.  Maybe someone from the wicket team has a good
suggestion.
Sorry :-(

Chuck

On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

 No, Chuck, I don't know what page is causing this. As you can see the
 thrown exception messages don't say anything particular. I think the
 messaging is poor. I face such problems in lots of frameworks, for
example
 hibernate and so on. The messages are not pointing to a particular
problem,
 only messing your head with unclear statements. Anyway, I don't plan to
edit
 the frameworks. Do you think if not generic parameterized TextField or
 DropDownChoice for example can cause this?

 Thanks,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 2:13 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
eofexception
 peekbyte

 Martin,

 I don't know a good way.

 Do you know what page is causing the problem?  Manually check each
 object
 in
 all components of the page.

 Once you know the page you can try removing components until the error
goes
 away.  Last one removed is the offender.  There may be multiple
offenders.

 Maybe not a good way.  Get the source for wicket and 

RE: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Martin Asenov
Actually, I haven't changed them... Only added them to components that did not 
have ones...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:23 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte

In fact you should not be changing UIDs once you have generated them.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 4:21 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


So, I suppose I need to clear AS cache before deploying with different UIDs?

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:18 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

I dont think the exception and page expired things are related if you are
only getting the exception when the AS starts.
When you stop the AS, it normally tries to serialize active sessions and
read them back when you start it again to restore.

After stopping server, if you change serialUID of any class that was
serialized that exception may occur.
Also if you do not shut down server properly, server wont be able to
serialize everything in a correct way and may not be able to read
back which will again cause this kind of exceptions.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


I get 'page expired messages as I browse through my webapp. However, the
exception is placed before 'server startup statement in catalina.log...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:

 Please, everyone, I'm really despaired about this one, I'll greatly
 appreciate any help!

 Best regards,

 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Tuesday, January 12, 2010 4:37 PM
 To: users@wicket.apache.org
 Subject: RE: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Thanks a lot for your time, Chuck!

 I hope others will join our conversation...

 Regards,

 -Original Message-
 From: Chuck Brinkman [mailto:chasb1...@gmail.com]
 Sent: Tuesday, January 12, 2010 3:57 PM
 To: users@wicket.apache.org
 Subject: Re: page expired problem issue wicket how resolve fix
 eofexception
 peekbyte

 Martin,

 I was not suggesting a permanent change to the framework.  Just temporary
 while you debug the problem.  I got the source, did mvn install, it
 generated the jar file which I then copied over to my project.  If I can
 do
 it anyone can.  The problem isn't in wicket but in your domain object(s).
 I'm out of ideas.  Maybe someone from the wicket team has a good
 suggestion.
 Sorry :-(

 Chuck

 On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

  No, Chuck, I don't know what page is causing this. As you can see the
  thrown exception messages don't say anything particular. I think the
  messaging is poor. I face such problems in lots of frameworks, for
 example
  hibernate and so on. The messages are not pointing to a particular
 problem,
  only messing your head with unclear statements. Anyway, I don't plan to
 edit
  the frameworks. Do you think if not generic parameterized TextField or
  DropDownChoice for example can cause this?
 
  Thanks,
 
  -Original Message-
  From: Chuck Brinkman [mailto:chasb1...@gmail.com]
  Sent: Tuesday, January 12, 2010 2:13 PM
  To: users@wicket.apache.org
  Subject: Re: page expired problem issue wicket how resolve fix
 

Re: page expired problem issue wicket how resolve fix eofexception peekbyte

2010-01-13 Thread Fatih Mehmet UCAR

that as well counts as a change.
for the expiration, you may try to extend the tomcat session timeout 
interval.


fmu
- Original Message - 
From: Martin Asenov mase...@velti.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 4:26 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception 
peekbyte



Actually, I haven't changed them... Only added them to components that did 
not have ones...


BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:23 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception 
peekbyte


In fact you should not be changing UIDs once you have generated them.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 4:21 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


So, I suppose I need to clear AS cache before deploying with different UIDs?

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 6:18 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

I dont think the exception and page expired things are related if you are
only getting the exception when the AS starts.
When you stop the AS, it normally tries to serialize active sessions and
read them back when you start it again to restore.

After stopping server, if you change serialUID of any class that was
serialized that exception may occur.
Also if you do not shut down server properly, server wont be able to
serialize everything in a correct way and may not be able to read
back which will again cause this kind of exceptions.

fmu
- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


I get 'page expired messages as I browse through my webapp. However, the
exception is placed before 'server startup statement in catalina.log...

BR,

-Original Message-
From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com]
Sent: Wednesday, January 13, 2010 5:52 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Does it happens when the application server starts ? If yes, are you
terminating the AS process or shutting down appropriate commands.

fmu

- Original Message -
From: Martin Asenov mase...@velti.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 3:44 PM
Subject: RE: page expired problem issue wicket how resolve fix eofexception
peekbyte


Thanks, kirillkh! I'll try this...

Any other suggestions, anyone?

Thanks!

-Original Message-
From: kirillkh [mailto:kiril...@gmail.com]
Sent: Wednesday, January 13, 2010 3:13 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix eofexception
peekbyte

Hi Martin,

Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which
means the debugger will pause when certain exception is triggered. You
should try downloading wicket's sources as suggested and placing breakpoint
at EOFException.

-Kirill

On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov mase...@velti.com wrote:


Please, everyone, I'm really despaired about this one, I'll greatly
appreciate any help!

Best regards,

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com]
Sent: Tuesday, January 12, 2010 4:37 PM
To: users@wicket.apache.org
Subject: RE: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Thanks a lot for your time, Chuck!

I hope others will join our conversation...

Regards,

-Original Message-
From: Chuck Brinkman [mailto:chasb1...@gmail.com]
Sent: Tuesday, January 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: page expired problem issue wicket how resolve fix
eofexception
peekbyte

Martin,

I was not suggesting a permanent change to the framework.  Just temporary
while you debug the problem.  I got the source, did mvn install, it
generated the jar file which I then copied over to my project.  If I can
do
it anyone can.  The problem isn't in wicket but in your domain object(s).
I'm out of ideas.  Maybe someone from the wicket team has a good
suggestion.
Sorry :-(

Chuck

On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov mase...@velti.com wrote:

 No, Chuck, I don't know what page is causing this. As you can see the
 thrown exception messages don't say anything particular. I think the
 messaging is poor. I face such problems in lots of frameworks, for
example
 hibernate and so on. The messages are not pointing to a particular
problem,
 only messing your head with unclear statements. Anyway, I don't plan to
edit
 the frameworks. Do you think if not generic 

AbstractDefaultAjaxBehavior using onComponentRendered rendered many times

2010-01-13 Thread Esteban Masoero

Hi:

Using wicket 1.3.5, I have a 
MyAbstractExtensibleChoiceAutocompleteBehavior (that extends 
AbstractDefaultAjaxBehavior, and I think it is a modification of some 
wicket class) related to the autocomplete feature that inside 
onComponentRendered method does something like:


cResponse.write(JavascriptUtils.SCRIPT_OPEN_TAG);
cResponse.write(var foo = new Wicket.ExtensibleChoiceAutocomplete ...);
cResponse.write(JavascriptUtils.SCRIPT_CLOSE_TAG);

Then I have a MyTextField subclass that adds this behavior to itself 
when it's constructed, so the autocomplete options are shown properly.
MyTextField also adds to itself an 
AjaxFormComponentUpdatingBehavior(onchange) so we can track the 
changes and do some stuff.


So here's the thing, I noticed with firebug that every time I change the 
component's value and the AjaxFormComponentUpdatingBehavior is called, 
MyTextField is refreshed (added to the target) and the 
onComponentRendered method of the other behavior is called, and the js 
tag is added to the one that previously existed. So I have:


script type=text/javascript...//script
script type=text/javascript...//script

...and everytime I change the component's value, one line is added. From 
what I saw in Wicket.ExtensibleChoiceAutocomplete class, It shouldn't 
have negative effects, however, I also think it's not a desired effect.
Can anyone tell me if this is normal or I'm doing something wrong or 
whether I shouldn't worry at all?


Thanks,

Esteban

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



RE: display busy indicator while external image is fetched

2010-01-13 Thread wic...@geofflancaster.com
use AjaxLazyLoad. Should be pretty straight forward. There are a ton of
examples online

Original Message:
-
From: Christoph Grün chris...@gmx.at
Date: Wed, 13 Jan 2010 20:10:22 +0100
To: users@wicket.apache.org
Subject: display busy indicator while external image is fetched


Hi,

 

how can I display a busy indicator while an external image is loaded?

 

Thanks, Christoph

 




mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



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



filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted. 


is there any way i can keep the previously selected options in the palette?


mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



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



Re: filter options in available side of palette w/o losing selected options

2010-01-13 Thread Fatih Mehmet UCAR
you keep your original objects in another list so you can put them back into 
palette's model when you need


fmu
- Original Message - 
From: wic...@geofflancaster.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected 
options



I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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: filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
I've tried that as well but when my onUpdate method is called, i call
palette.getDefaultModelObject() and cast it to a list (the same way I do on
form submit) but it acts as if there are no selections.

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:18:44 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


you keep your original objects in another list so you can put them back
into 
palette's model when you need

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected 
options


I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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




mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



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



Re: filter options in available side of palette w/o losing selected options

2010-01-13 Thread Fatih Mehmet UCAR
if you can paste some code and it will help us understand the problem 
better.


fmu
- Original Message - 
From: wic...@geofflancaster.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:23 PM
Subject: Re: filter options in available side of palette w/o losing selected 
options



I've tried that as well but when my onUpdate method is called, i call
palette.getDefaultModelObject() and cast it to a list (the same way I do on
form submit) but it acts as if there are no selections.

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:18:44 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


you keep your original objects in another list so you can put them back
into
palette's model when you need

fmu
- Original Message - 
From: wic...@geofflancaster.com

To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected
options


I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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




mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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: filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
So I've got it partly working. It works after I submit the form (using
IndicatingAjaxButton). If I filter the available items before submitting,
the selected items are cleared.

Which leads me to the question, what is executed during an onSubmit() that
is not during an OnChangeAjaxBehavior.onUpdate()? I thought the onUpdate
was essentially the same thing as a submit.  

Can anyone tell me why this may be occuring?

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:35:52 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


if you can paste some code and it will help us understand the problem 
better.

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:23 PM
Subject: Re: filter options in available side of palette w/o losing
selected 
options


I've tried that as well but when my onUpdate method is called, i call
palette.getDefaultModelObject() and cast it to a list (the same way I do on
form submit) but it acts as if there are no selections.

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:18:44 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


you keep your original objects in another list so you can put them back
into
palette's model when you need

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected
options


I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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




mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
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




myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting



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



wicket security future - contribute!

2010-01-13 Thread Alexander Elsholz
hi wicket folks,

in my last wicket projects i used wicket-auth roles and swarm/wasp. i think
swarm/wasp is a really good base for larger web-applications. but we all know
about the problem with swarm/wasp. i developed a few extensions for swarm, but
its a lot of code and so nobody starts to maintain and whats more important to 
develop. so wasp swarm stops on wicket 1.3.

there was plans to integrate wicket-security in 1.5. @wicket developers: is this
still relevant?

i think we will not find one person who develops wicket-security allone - so
who's interested?
its not the part brings the most fun in wicket development area but a very very
important part of every enterprise application - so contribute! lets define a
security-subteam.

regards alex


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



switch css of option element in dropdownchoice

2010-01-13 Thread Alexander Elsholz
hi,

i need to switch the style of an option element.

i override the  

AbstractChoice#appendOptionHtml(...)

copied the code and put my stuff in the middle. any other ideas? 

thanks alex


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



Ajax and form handling and clearInput

2010-01-13 Thread Alexander Elsholz
Hi,

i use a drop-down to switch some data in view. replace data in my model-bean
class (pojo wraps different business objects) and repaints the form via ajax-on
change event. (data binded via propertymodel)

some fields are required.

1. all fields are valid, works fine
2. clear one field and try to submit - fails. Model is still valid. cool
3. switch the drop down list. model-object will replaced and the form added to
ajaxtarget. expect to see the model value of new model object
4. fails! the field still is empty. why?

public final String getValue()
{
if (NO_RAW_INPUT.equals(rawInput))
{
return getModelValue();
}
else
{
if (getEscapeModelStrings()  rawInput != null)
{
return Strings.escapeMarkup(rawInput).toString();
}
return rawInput;
}
}

input is empty (cleared field before last button submit) , so the geModelValue
isn't called.

Form#clearInput or FormComponent#clearInput helps, but i think i make a mistake.
i can't imagine that ajax-events on failed forms which switch the model and
repaint the form have to clear the form manually.

wicket 1.3.5

regards alex


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



Re: switch css of option element in dropdownchoice

2010-01-13 Thread Alexander Elsholz
Igor Vaynberg igor.vaynberg at gmail.com writes:
 
 use css selectors
 
 -igor
 

hi igor,

thanks for really fast reply;-)

i forgot - the css switchs programmatically (for different options, not all). so
static selectors doesn't help

thanks alex





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



Re: Ajax and form handling and clearInput

2010-01-13 Thread Igor Vaynberg
this is by design. formcomponents buffer input that is in error so it
can be redisplayed. you can use either form.clearinput() or for your
usecase a bit more appropriate form.modelchanged() to notify the model
that you have changed the backing model object and it should drop any
buffered state

-igor

On Wed, Jan 13, 2010 at 3:35 PM, Alexander Elsholz
alexander.elsh...@widas.de wrote:
 Hi,

 i use a drop-down to switch some data in view. replace data in my model-bean
 class (pojo wraps different business objects) and repaints the form via 
 ajax-on
 change event. (data binded via propertymodel)

 some fields are required.

 1. all fields are valid, works fine
 2. clear one field and try to submit - fails. Model is still valid. cool
 3. switch the drop down list. model-object will replaced and the form added to
 ajaxtarget. expect to see the model value of new model object
 4. fails! the field still is empty. why?

 public final String getValue()
 {
        if (NO_RAW_INPUT.equals(rawInput))
        {
                return getModelValue();
        }
        else
        {
                if (getEscapeModelStrings()  rawInput != null)
                {
                        return Strings.escapeMarkup(rawInput).toString();
                }
                return rawInput;
        }
 }

 input is empty (cleared field before last button submit) , so the geModelValue
 isn't called.

 Form#clearInput or FormComponent#clearInput helps, but i think i make a 
 mistake.
 i can't imagine that ajax-events on failed forms which switch the model and
 repaint the form have to clear the form manually.

 wicket 1.3.5

 regards alex


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



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



Re: switch css of option element in dropdownchoice

2010-01-13 Thread Igor Vaynberg
then you are stuck doing what you are doing. you can request for some
methods to be added into ichoicerenderer such as getoptgroup() and
getcssclass(). maybe we can do that in 1.5

-igor

On Wed, Jan 13, 2010 at 3:37 PM, Alexander Elsholz
alexander.elsh...@widas.de wrote:
 Igor Vaynberg igor.vaynberg at gmail.com writes:

 use css selectors

 -igor


 hi igor,

 thanks for really fast reply;-)

 i forgot - the css switchs programmatically (for different options, not all). 
 so
 static selectors doesn't help

 thanks alex





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



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



Re: Ajax and form handling and clearInput

2010-01-13 Thread Alexander Elsholz
Igor Vaynberg igor.vaynberg at gmail.com writes:

 
 this is by design. formcomponents buffer input that is in error so it
 can be redisplayed. you can use either form.clearinput() or for your
 usecase a bit more appropriate form.modelchanged() to notify the model
 that you have changed the backing model object and it should drop any
 buffered state

When I think about it now - you're right. i have to notify the form about
switching their underlying business object

thanks again alex


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



Re: switch css of option element in dropdownchoice

2010-01-13 Thread Alexander Elsholz
Igor Vaynberg igor.vaynberg at gmail.com writes:

 
 then you are stuck doing what you are doing. you can request for some
 methods to be added into ichoicerenderer such as getoptgroup() and
 getcssclass(). maybe we can do that in 1.5
 
 -igor

hi igor,

done. https://issues.apache.org/jira/browse/WICKET-2674

regards alex


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



Re: Authentication and bookmarkable pages

2010-01-13 Thread Cemal Bayramoglu
Kirill,

You should probably be not authorising component instantiation (Page
is a Component) instead, in your
IAuthorizationStrategy#isInstantiationAuthorized implementation.
Whether render is permitted is checked later in the lifecycle of a
component, as you say.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


2010/1/13 kirillkh kiril...@gmail.com:
 Hi all,

 I'm using wicket 1.4.5 with annotations-based authorization. I've discovered
 what seems like a security problem in the authorization mechanism. Namely,
 when certain bookmarkable page shouldn't be rendered according to the
 policy, it is still constructed, and only then Wicket discovers that it
 shouldn't be rendered. Is this a known problem? Why doesn't Wicket enforce
 authorization restrictions in Page's constructor?

 Thanks,
 -Kirill


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



Re: A problem with ListView in a StatelessForm

2010-01-13 Thread Cemal Bayramoglu
Kirill,

You may get some useful ideas at http://wicketinaction.com/tag/listeditor/  .

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


2010/1/13 kirillkh kiril...@gmail.com:
 Hi Per,

 I've seen this mentioned in the javadocs, but it can't possibly help, as the
 ListView.reuseItems variable is only used inside ListView.onPopulate(),
 which, as I pointed out, is called too late. Indeed, setting reuseItems on
 doesn't help.

 Thanks,
 -Kirill

 On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote:

 Without going deeper to your problem. A common mistake is that people
 forgot to call setReuseItems on the listview.
 This is required with repeaters in form. See javadoc for details.

 Cheers
 Per

 -
 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



clearing a TextField

2010-01-13 Thread Steve Swinsburg
Hello all,

I have a list of items and an ajax form at the bottom so you can add items to 
the list, containing a single textfield and a submit button. On successful 
submit, the item is saved and the list is redrawn. Great!
I want to clear the textfield though so new items can be added, since the 
textfield and form stays on page at all times.

I tried:

textField.clearInput();
target.addComponent(textField);

and

form.clearInput();
target.addComponent(form);

and a few combinations of the above (!) but to no avail. Are these methods 
meant to clear the raw input from either the FormComponent or the Form itself? 
I would have thought so. The only way I could get it cleared was:

textField.setModelObject(null);

Is this how its meant to be or a bug? Just double checking.

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



Re: clearing a TextField

2010-01-13 Thread Eyal Golan
If you are working with PropertyModel / CompoundPropertyModel, then just set
your field to null.
Add the textField (or its container) to the Ajax-Target.

That should work.

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 Thu, Jan 14, 2010 at 6:55 AM, Steve Swinsburg
steve.swinsb...@gmail.comwrote:

 Hello all,

 I have a list of items and an ajax form at the bottom so you can add items
 to the list, containing a single textfield and a submit button. On
 successful submit, the item is saved and the list is redrawn. Great!
 I want to clear the textfield though so new items can be added, since the
 textfield and form stays on page at all times.

 I tried:

 textField.clearInput();
 target.addComponent(textField);

 and

 form.clearInput();
 target.addComponent(form);

 and a few combinations of the above (!) but to no avail. Are these methods
 meant to clear the raw input from either the FormComponent or the Form
 itself? I would have thought so. The only way I could get it cleared was:

 textField.setModelObject(null);

 Is this how its meant to be or a bug? Just double checking.

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




Re: clearing a TextField

2010-01-13 Thread Steve Swinsburg
Thanks, it does work, I was just clarifying whether the other methods should 
work as well. 
I am using a simple property model that contains one field (the string that is 
entered).

cheers,
Steve


On 14/01/2010, at 4:14 PM, Eyal Golan wrote:

 If you are working with PropertyModel / CompoundPropertyModel, then just set
 your field to null.
 Add the textField (or its container) to the Ajax-Target.
 
 That should work.
 
 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 Thu, Jan 14, 2010 at 6:55 AM, Steve Swinsburg
 steve.swinsb...@gmail.comwrote:
 
 Hello all,
 
 I have a list of items and an ajax form at the bottom so you can add items
 to the list, containing a single textfield and a submit button. On
 successful submit, the item is saved and the list is redrawn. Great!
 I want to clear the textfield though so new items can be added, since the
 textfield and form stays on page at all times.
 
 I tried:
 
 textField.clearInput();
 target.addComponent(textField);
 
 and
 
 form.clearInput();
 target.addComponent(form);
 
 and a few combinations of the above (!) but to no avail. Are these methods
 meant to clear the raw input from either the FormComponent or the Form
 itself? I would have thought so. The only way I could get it cleared was:
 
 textField.setModelObject(null);
 
 Is this how its meant to be or a bug? Just double checking.
 
 cheers,
 Steve
 -
 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 security future - contribute!

2010-01-13 Thread Adrian Wiesmann

Hi Alex


i think we will not find one person who develops wicket-security allone - so
who's interested?
its not the part brings the most fun in wicket development area but a very very
important part of every enterprise application - so contribute! lets define a
security-subteam.


I started with the built in security functionality and then moved to 
Apache Shiro. Shiro makes it very simple to authenticate users and to 
check permission from within your application code. And what I really 
like is that users of our tool still can personalise parts of those 
mechanisms when configuring their installation. Another plus is the 
permission based authorisation mechanism which makes defining and 
configuring permissions very flexible.


So what I could contribute are classes to integrate Shiro into Wicket. 
If that is of interest.


Cheers,
Adrian

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



Re: [release] Wicket Security 1.3.1

2010-01-13 Thread Sergey Podatelev
Great news.

-- 
sp

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