Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Martijn Dashorst
-1

You can download and run the examples yourself if you want to do so.
The examples are just that: examples of normal wicket pages. Forcing
them stateless gives new users the wrong impressions.

Martijn

On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:

  Hi,

  I enjoy clicking around the source at http://www.wicketstuff.org/wicket13/.
  It's interesting stuff :)

  Page expiry is very frustrating, especially when you tab back to the code to
  see how something is achieved.

  Can we make the code pages either static or stateless, so I can bookmark
  them, send them to colleagues, or  come back 30mins later and click a link
  without it saying page expired?

  Rgds

  Ned

 --
  View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Igor Vaynberg
i think they meant to make only source code viewing pages stateless...

-igor


On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 -1

  You can download and run the examples yourself if you want to do so.
  The examples are just that: examples of normal wicket pages. Forcing
  them stateless gives new users the wrong impressions.

  Martijn



  On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
  
Hi,
  
I enjoy clicking around the source at 
 http://www.wicketstuff.org/wicket13/.
It's interesting stuff :)
  
Page expiry is very frustrating, especially when you tab back to the code 
 to
see how something is achieved.
  
Can we make the code pages either static or stateless, so I can bookmark
them, send them to colleagues, or  come back 30mins later and click a link
without it saying page expired?
  
Rgds
  
Ned
  
   --
View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: StreamCorruptedException when using autocomplete

2008-03-18 Thread lars vonk
Have you found out which Page it tries to deserialize? Did you try to
deserialize this exact page using another widget? The exception indicates
the internal object stream format is corrupted. So this would indeed mean it
would also occur if you try to to deserialize it using a normal widget.
Here is more info about the (de)serialization protocol
http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/protocol.html#8101

I could be way of here so please correct me if I am wrong: I don't know the
Wicket internals exactly, but I noticed that the DiskPageStore uses a pool
of FileChannels to access the files and if I understand the code correctly
it allows the file to be opened for read and write the same time. See
FilePoonChannel.newFileChannel where the channel is opened in rw mode. So
maybe it could be a timing issue and  you are trying to deserialize a Page
that is still in the process of being serialized?

Lars



On Tue, Mar 18, 2008 at 2:30 AM, David Leangen [EMAIL PROTECTED] wrote:


 It seems to me that if there was a problem with Serialization, then
 normal pages would not work, right?

 So, does anybody have an idea why my pages generally work, but I get a
 StreamCorruptedException only when using the autocomplete component?

 The stack trace and also stepping through the code in detail are not
 giving me any good hints yet...


 Thanks!
 Dave




 On Mon, 2008-03-17 at 13:38 +0900, David Leangen wrote:
  Can anybody suggest how I can try to resolve my
  StreamCorruptedException?
 
  I have an autocomplete text field. When I hit the back button and modify
  the text, I get the said Exception.
 
  I've tried stepping through the code, but the error is not obvious at
  all.
 
  The error only happens with the autocomplete widget (i.e. when I modify
  the text in the related text box). Nothing else (different query or use
  of controls or links) triggers this Exception.
 
 
  Thanks!
  Dave
 
 
 
 
  java.lang.RuntimeException: Could not deserialize object using
  `org.apache.wicket.util.io.IObjectStreamFactory
  $DefaultObjectStreamFactory` object factory
at
  org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:406)
at
 
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage
 (AbstractPageStore.java:228)
at
  org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(
 DiskPageStore.java:702)
at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore
  $SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
at org.apache.wicket.Session.getPage(Session.java:745)
at
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
 (AbstractRequestCycleProcessor.java:443)
at
  org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
 WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
 :354)
at
  org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
at
  org.ops4j.pax.web.service.internal.HttpServiceHandler.handle(
 HttpServiceHandler.java:66)
at
  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:821)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java
 :208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
 :378)
at org.mortbay.jetty.bio.SocketConnector
  $Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool
  $PoolThread.run(BoundedThreadPool.java:442)
 
 
  Caused by: java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
 :1332)
at
  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at
  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at
  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
 :1719)
at 

Re: StreamCorruptedException when using autocomplete

2008-03-18 Thread Igor Vaynberg
are you using a class reloading mechanism of any sort? this error
would make sense if wicket saved a page to store, you changed the
class def and wicket tried to deserialize an instance of that changed
class

-igor


On Tue, Mar 18, 2008 at 12:42 AM, lars vonk [EMAIL PROTECTED] wrote:
 Have you found out which Page it tries to deserialize? Did you try to
  deserialize this exact page using another widget? The exception indicates
  the internal object stream format is corrupted. So this would indeed mean it
  would also occur if you try to to deserialize it using a normal widget.
  Here is more info about the (de)serialization protocol
  
 http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/protocol.html#8101

  I could be way of here so please correct me if I am wrong: I don't know the
  Wicket internals exactly, but I noticed that the DiskPageStore uses a pool
  of FileChannels to access the files and if I understand the code correctly
  it allows the file to be opened for read and write the same time. See
  FilePoonChannel.newFileChannel where the channel is opened in rw mode. So
  maybe it could be a timing issue and  you are trying to deserialize a Page
  that is still in the process of being serialized?

  Lars





  On Tue, Mar 18, 2008 at 2:30 AM, David Leangen [EMAIL PROTECTED] wrote:

  
   It seems to me that if there was a problem with Serialization, then
   normal pages would not work, right?
  
   So, does anybody have an idea why my pages generally work, but I get a
   StreamCorruptedException only when using the autocomplete component?
  
   The stack trace and also stepping through the code in detail are not
   giving me any good hints yet...
  
  
   Thanks!
   Dave
  
  
  
  
   On Mon, 2008-03-17 at 13:38 +0900, David Leangen wrote:
Can anybody suggest how I can try to resolve my
StreamCorruptedException?
   
I have an autocomplete text field. When I hit the back button and modify
the text, I get the said Exception.
   
I've tried stepping through the code, but the error is not obvious at
all.
   
The error only happens with the autocomplete widget (i.e. when I modify
the text in the related text box). Nothing else (different query or use
of controls or links) triggers this Exception.
   
   
Thanks!
Dave
   
   
   
   
java.lang.RuntimeException: Could not deserialize object using
`org.apache.wicket.util.io.IObjectStreamFactory
$DefaultObjectStreamFactory` object factory
  at
org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:406)
  at
   
   org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage
   (AbstractPageStore.java:228)
  at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(
   DiskPageStore.java:702)
  at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore
$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
  at org.apache.wicket.Session.getPage(Session.java:745)
  at
   
   org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
   (AbstractRequestCycleProcessor.java:443)
  at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
   WebRequestCycleProcessor.java:139)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
   :354)
  at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
   :121)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
  at
org.ops4j.pax.web.service.internal.HttpServiceHandler.handle(
   HttpServiceHandler.java:66)
  at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:285)
  at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
  at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:821)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java
   :208)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
   :378)
  at org.mortbay.jetty.bio.SocketConnector

Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk

Yes, or just even increase the timeout as a temporary fix. :-)

It's like 5 minutes now, which means that if you go to your own code to 
implement something like in the example, and then want to view the 
source code of the next logical file, it says page expired. If it was 
30 minutes, then for me it would be much less of an issue.


Regards,
Sebastiaan

Igor Vaynberg wrote:

i think they meant to make only source code viewing pages stateless...

-igor


On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:

-1

 You can download and run the examples yourself if you want to do so.
 The examples are just that: examples of normal wicket pages. Forcing
 them stateless gives new users the wrong impressions.

 Martijn



 On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
 
   Hi,
 
   I enjoy clicking around the source at http://www.wicketstuff.org/wicket13/.
   It's interesting stuff :)
 
   Page expiry is very frustrating, especially when you tab back to the code to
   see how something is achieved.
 
   Can we make the code pages either static or stateless, so I can bookmark
   them, send them to colleagues, or  come back 30mins later and click a link
   without it saying page expired?
 
   Rgds
 
   Ned
 
  --
   View this message in context: 
http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Martijn Dashorst
Making the source code viewing pages stateless won't help: next
question: but when I close the source code, my page doesn't work
anymore.

The online examples are not fit for a long studying session: they are
for demoing, or visitors. Studying or long running demoes: DOWNLOAD
the thing and run them locally.


Martijn

On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i think they meant to make only source code viewing pages stateless...


  -igor



  On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
  [EMAIL PROTECTED] wrote:
   -1
  
You can download and run the examples yourself if you want to do so.
The examples are just that: examples of normal wicket pages. Forcing
them stateless gives new users the wrong impressions.
  
Martijn
  
  
  
On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:

  Hi,

  I enjoy clicking around the source at 
 http://www.wicketstuff.org/wicket13/.
  It's interesting stuff :)

  Page expiry is very frustrating, especially when you tab back to the 
 code to
  see how something is achieved.

  Can we make the code pages either static or stateless, so I can 
 bookmark
  them, send them to colleagues, or  come back 30mins later and click a 
 link
  without it saying page expired?

  Rgds

  Ned

 --
  View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  
  
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Martijn Dashorst
I think 30 minutes is too long. The server is already maxed out on
capacity, so that needs to be fixed before we start tampering with
session expiries.

Just download the examples throw it in a web container, or check out
Wicket from svn and run mvn jetty:run. Then you can look at the code
as long as you want.

Martijn

On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 Yes, or just even increase the timeout as a temporary fix. :-)

  It's like 5 minutes now, which means that if you go to your own code to
  implement something like in the example, and then want to view the
  source code of the next logical file, it says page expired. If it was
  30 minutes, then for me it would be much less of an issue.

  Regards,

 Sebastiaan


  Igor Vaynberg wrote:
   i think they meant to make only source code viewing pages stateless...
  
   -igor
  
  
   On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
   [EMAIL PROTECTED] wrote:
   -1
  
You can download and run the examples yourself if you want to do so.
The examples are just that: examples of normal wicket pages. Forcing
them stateless gives new users the wrong impressions.
  
Martijn
  
  
  
On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:

  Hi,

  I enjoy clicking around the source at 
 http://www.wicketstuff.org/wicket13/.
  It's interesting stuff :)

  Page expiry is very frustrating, especially when you tab back to the 
 code to
  see how something is achieved.

  Can we make the code pages either static or stateless, so I can 
 bookmark
  them, send them to colleagues, or  come back 30mins later and click a 
 link
  without it saying page expired?

  Rgds

  Ned

 --
  View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  
  
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk

Martijn Dashorst wrote:

Making the source code viewing pages stateless won't help: next
question: but when I close the source code, my page doesn't work
anymore.


The source code opens up in separate window. If the URL's there were 
bookmarkable pages they would always work. Since the source is in a 
separate window you can study the source code there and if the example 
page expires, that's ok... Just refresh it.


I see no reason why the source code browser links should not be 
bookmarkable; the reason they're not now is because they're ajax links, 
and I'd prefer bookmarkable over ajax any day.


Regards,
Sebastiaan


The online examples are not fit for a long studying session: they are
for demoing, or visitors. Studying or long running demoes: DOWNLOAD
the thing and run them locally.


Martijn

On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:

i think they meant to make only source code viewing pages stateless...


 -igor



 On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
  -1
 
   You can download and run the examples yourself if you want to do so.
   The examples are just that: examples of normal wicket pages. Forcing
   them stateless gives new users the wrong impressions.
 
   Martijn
 
 
 
   On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
   
 Hi,
   
 I enjoy clicking around the source at 
http://www.wicketstuff.org/wicket13/.
 It's interesting stuff :)
   
 Page expiry is very frustrating, especially when you tab back to the 
code to
 see how something is achieved.
   
 Can we make the code pages either static or stateless, so I can bookmark
 them, send them to colleagues, or  come back 30mins later and click a 
link
 without it saying page expired?
   
 Rgds
   
 Ned
   
--
 View this message in context: 
http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
 
   --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.2 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
 
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wicket ModalWindow vs Other

2008-03-18 Thread Cristi Manole
Hi,

I'm also using the ModalWindow, with some very small enhancements.

Regards,
Cristi Manole

On Mon, Mar 17, 2008 at 10:39 PM, jeredm [EMAIL PROTECTED]
wrote:


 I am using the ModalWindow.

 mnwicket wrote:
 
  Just out of curiosity, are most people using the ModalWindow provided by
  the extensions project or are they wrapping a custom component around an
  existing javascript lib?  If the second option, what libs are people
 using
  and can anyone provide their experiences and possibly code.
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-ModalWindow-vs-Other-tp16100093p16102178.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Matej Knopp
Why can't we just put a 5 minute timer on each page which would casuse
active sessions never expire?

-Matej

On Tue, Mar 18, 2008 at 8:52 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 Martijn Dashorst wrote:
   Making the source code viewing pages stateless won't help: next
   question: but when I close the source code, my page doesn't work
   anymore.

  The source code opens up in separate window. If the URL's there were
  bookmarkable pages they would always work. Since the source is in a
  separate window you can study the source code there and if the example
  page expires, that's ok... Just refresh it.

  I see no reason why the source code browser links should not be
  bookmarkable; the reason they're not now is because they're ajax links,
  and I'd prefer bookmarkable over ajax any day.

  Regards,
  Sebastiaan



   The online examples are not fit for a long studying session: they are
   for demoing, or visitors. Studying or long running demoes: DOWNLOAD
   the thing and run them locally.
  
  
   Martijn
  
   On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
   i think they meant to make only source code viewing pages stateless...
  
  
-igor
  
  
  
On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 -1

  You can download and run the examples yourself if you want to do so.
  The examples are just that: examples of normal wicket pages. Forcing
  them stateless gives new users the wrong impressions.

  Martijn



  On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
  
Hi,
  
I enjoy clicking around the source at 
 http://www.wicketstuff.org/wicket13/.
It's interesting stuff :)
  
Page expiry is very frustrating, especially when you tab back to 
 the code to
see how something is achieved.
  
Can we make the code pages either static or stateless, so I can 
 bookmark
them, send them to colleagues, or  come back 30mins later and 
 click a link
without it saying page expired?
  
Rgds
  
Ned
  
   --
View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk

Matej Knopp wrote:

Why can't we just put a 5 minute timer on each page which would casuse
active sessions never expire?


That's fine by me, :-) though I tend to leave windows open in my browser 
for hours or days even, so that would be less server friendly than 
bookmarkable links...


Regards,
Sebastiaan


-Matej

On Tue, Mar 18, 2008 at 8:52 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Martijn Dashorst wrote:
  Making the source code viewing pages stateless won't help: next
  question: but when I close the source code, my page doesn't work
  anymore.

 The source code opens up in separate window. If the URL's there were
 bookmarkable pages they would always work. Since the source is in a
 separate window you can study the source code there and if the example
 page expires, that's ok... Just refresh it.

 I see no reason why the source code browser links should not be
 bookmarkable; the reason they're not now is because they're ajax links,
 and I'd prefer bookmarkable over ajax any day.

 Regards,
 Sebastiaan



  The online examples are not fit for a long studying session: they are
  for demoing, or visitors. Studying or long running demoes: DOWNLOAD
  the thing and run them locally.
 
 
  Martijn
 
  On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
  i think they meant to make only source code viewing pages stateless...
 
 
   -igor
 
 
 
   On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
   [EMAIL PROTECTED] wrote:
-1
   
 You can download and run the examples yourself if you want to do so.
 The examples are just that: examples of normal wicket pages. Forcing
 them stateless gives new users the wrong impressions.
   
 Martijn
   
   
   
 On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
 
   Hi,
 
   I enjoy clicking around the source at 
http://www.wicketstuff.org/wicket13/.
   It's interesting stuff :)
 
   Page expiry is very frustrating, especially when you tab back to the 
code to
   see how something is achieved.
 
   Can we make the code pages either static or stateless, so I can 
bookmark
   them, send them to colleagues, or  come back 30mins later and click 
a link
   without it saying page expired?
 
   Rgds
 
   Ned
 
  --
   View this message in context: 
http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
   
 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
   
   
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 







smime.p7s
Description: S/MIME Cryptographic Signature


Wicket dojo DragAndDrop problem

2008-03-18 Thread Stefan Lindner
I try to use Wicket 1.3.2 together with wicketstuff dojo (both 1.3.0
beta and 1.3.0 latest) Everything works fine if I deploy my applicatioin
in development mode. Some lines like 

DEBUG:  Initialized drop contianer for dropContainer01, dropIds:
*, 
DEBUG:  Callback url base:
?wicket:interface=:0:dropContainer0::IActivePageBehaviorListener:0:amp;
wicket:ignoreIfNotActive=true

are shown on my page but the functionality is perfect. I use the Custom
drag and drop classes from the dojo examples achive. But when I switch
to deploymnet mode

context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param

Nothing works anymore. Can't even drag the source object. Looks like no
javascript library was loaded.
What am I doing wrong? Any idea?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Martijn Dashorst
And it wouldn't guide our users into the right direction either: only
apply stateless pages where really necessary.

Martijn

On 3/18/08, Matej Knopp [EMAIL PROTECTED] wrote:
 Not everything in wicket can be bookmarkable and not everything can be
  statelesss. None of the ajax examples could work on stateless pages
  for example.

  -Matej

  On Tue, Mar 18, 2008 at 10:52 AM, Sebastiaan van Erk

 [EMAIL PROTECTED] wrote:
   Matej Knopp wrote:
 Why can't we just put a 5 minute timer on each page which would casuse
 active sessions never expire?
  
That's fine by me, :-) though I tend to leave windows open in my browser
for hours or days even, so that would be less server friendly than
bookmarkable links...
  
Regards,
Sebastiaan
  
  
  
 -Matej

 On Tue, Mar 18, 2008 at 8:52 AM, Sebastiaan van Erk [EMAIL PROTECTED] 
 wrote:
 Martijn Dashorst wrote:
   Making the source code viewing pages stateless won't help: next
   question: but when I close the source code, my page doesn't work
   anymore.

  The source code opens up in separate window. If the URL's there were
  bookmarkable pages they would always work. Since the source is in a
  separate window you can study the source code there and if the example
  page expires, that's ok... Just refresh it.

  I see no reason why the source code browser links should not be
  bookmarkable; the reason they're not now is because they're ajax 
 links,
  and I'd prefer bookmarkable over ajax any day.

  Regards,
  Sebastiaan



   The online examples are not fit for a long studying session: they 
 are
   for demoing, or visitors. Studying or long running demoes: DOWNLOAD
   the thing and run them locally.
  
  
   Martijn
  
   On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
   i think they meant to make only source code viewing pages 
 stateless...
  
  
-igor
  
  
  
On Tue, Mar 18, 2008 at 12:26 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 -1

  You can download and run the examples yourself if you want to 
 do so.
  The examples are just that: examples of normal wicket pages. 
 Forcing
  them stateless gives new users the wrong impressions.

  Martijn



  On 3/18/08, Ned Collyer [EMAIL PROTECTED] wrote:
  
Hi,
  
I enjoy clicking around the source at 
 http://www.wicketstuff.org/wicket13/.
It's interesting stuff :)
  
Page expiry is very frustrating, especially when you tab 
 back to the code to
see how something is achieved.
  
Can we make the code pages either static or stateless, so I 
 can bookmark
them, send them to colleagues, or  come back 30mins later 
 and click a link
without it saying page expired?
  
Rgds
  
Ned
  
   --
View this message in context: 
 http://www.nabble.com/Wicketstuff-source-pages---can-we-make-them-stateless--tp16111827p16111827.html
Sent from the Wicket - User mailing list archive at 
 Nabble.com.
  
  

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  




  




 --
  Resizable and reorderable grid components.

 http://www.inmethod.com


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need help with GridView and checkboxes.

2008-03-18 Thread Trevor Campbell

I have a form containing a GridView with a PagingNavigator.
Within each cell I have an image and a CheckBox.  When a user submits 
the form I collect all the image refs from the selected cells and 
process them.


My problem is I would like to do this across multiple pages.  So the user
scenario is:
A user goes through the pages using the navigator and selects, using the 
checkboxes, what images they like and then presses a select button.


Unfortunately the selections are not preserved when I use a 
PagingNavigator on the form.  A paging navigator renders links rather 
than a submit, so any selections are lost.


Any ideas how to get around this??


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Matej Knopp
You have to use AjaxSubmitButton if you put panel into modal window.

-Matej

On Tue, Mar 18, 2008 at 12:16 PM, Kai Mütz [EMAIL PROTECTED] wrote:



  Serzhas wrote:
  
   Hi. I am complete newby to Wicket, and currently making my way through the
   forest if Wicket API :) br/
   Today I tryed to create a proof-of-concept for new Wicket component, and
   found some strange behavior of ModalWindow that is based on component
   (Panel), and put within form tag.
   To put in short my page hierarchy looks like this:
   DOCUMENT (HTML)
 FORM
   MODAL_WINDOW
  INNER_FORM (DIV)
 SOME_TEXT_FIELDS
 SUBMIT
   When I just open ModalWindow (MW) and close it right away, it closes as
   espected. But if I submit inner form prior to closing MW, it will stay
   open, and there is no way to close it other than to reload entire page.
   However, all events fires as espected, MW closing JavaScript runs (I added
   alert() to it), and MW itself reports as isShown() == false.
   If I either remove top-most form, or use Page based MW instead of
   component (just changing content class ancestor from Panel to WebPage and
   slightly altering constructor by removing Id), everything works just fine.
   Any suggestions will follow? Thanks in advance.
  
  

  I have the same problem. Do you have found a solution?

  Kai
  --
  View this message in context: 
 http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16118824.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Serzhas

Thanks Matej, but I have tryied many submit variants, AjaxSubmitButton was
one of them.
No matter what kind of submit I use, if form was submitted once, dialog
won't close...


Matej Knopp-2 wrote:
 
 You have to use AjaxSubmitButton if you put panel into modal window.
 
 -Matej
 
 On Tue, Mar 18, 2008 at 12:16 PM, Kai Mütz [EMAIL PROTECTED] wrote:



  Serzhas wrote:
  
   Hi. I am complete newby to Wicket, and currently making my way through
 the
   forest if Wicket API :) br/
   Today I tryed to create a proof-of-concept for new Wicket component,
 and
   found some strange behavior of ModalWindow that is based on component
   (Panel), and put within form tag.
   To put in short my page hierarchy looks like this:
   DOCUMENT (HTML)
 FORM
   MODAL_WINDOW
  INNER_FORM (DIV)
 SOME_TEXT_FIELDS
 SUBMIT
   When I just open ModalWindow (MW) and close it right away, it closes
 as
   espected. But if I submit inner form prior to closing MW, it will stay
   open, and there is no way to close it other than to reload entire
 page.
   However, all events fires as espected, MW closing JavaScript runs (I
 added
   alert() to it), and MW itself reports as isShown() == false.
   If I either remove top-most form, or use Page based MW instead of
   component (just changing content class ancestor from Panel to WebPage
 and
   slightly altering constructor by removing Id), everything works just
 fine.
   Any suggestions will follow? Thanks in advance.
  
  

  I have the same problem. Do you have found a solution?

  Kai
  --
  View this message in context:
 http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16118824.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 -- 
 Resizable and reorderable grid components.
 http://www.inmethod.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16119608.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Kai Mütz

Matej Knopp schrieb:

You have to use AjaxSubmitButton if you put panel into modal window.



No difference. I have tried AjaxSubmitButton, AjaxButton and 
AjaxSubmitLink. Once I have submitted the form, the modal window stays 
open. Reload of the entire page necessary to close modal.


Is there a working example of getting form input within a modal window?

Thanks, Kai

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket 1.3.2 - java.lang.NullPointerException

2008-03-18 Thread Johan Compagner
do you have a test case that you can attach to a jira issue
I guess this has something to do with the loading of markup changes (so that
not everything is loaded for every possible locale but only for every real
file once)

you seem to have a situtation that the key is null or couldnt be generated
It would be nice to have a test case of that

johan


On Tue, Mar 18, 2008 at 12:30 PM, Johnnie [EMAIL PROTECTED] wrote:


 Hi,

 I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following exception:

 Unexpected RuntimeException

 Root cause:
 java.lang.NullPointerException
 at
 org.apache.wicket.util.concurrent.ConcurrentHashMap.hash(
 ConcurrentHashMap.java:299)
 at
 org.apache.wicket.util.concurrent.ConcurrentHashMap.put(
 ConcurrentHashMap.java:533)
 at
 org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put(
 MarkupCache.java:711)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:437)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:520)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :319)
 at

 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
 (InheritedMarkupMarkupLoader.java:95)
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
 InheritedMarkupMarkupLoader.java:63)
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
 DefaultMarkupLoader.java:55)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:433)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:520)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :319)
 at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
 MarkupContainer.java:343)
 at org.apache.wicket.Page.onRender(Page.java:1453)
 at org.apache.wicket.Component.render(Component.java:2308)
 at org.apache.wicket.Page.renderPage(Page.java:906)
 at

 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
 (BookmarkablePageRequestTarget.java:231)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
 AbstractRequestCycleProcessor.java:104)
 at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
 :1172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
 :194)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:215)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:188)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:210)
 at
 org.apache.catalina.core.StandardContextValve.invoke(
 StandardContextValve.java:174)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :127)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :117)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:108)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
 :151)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
 at

 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
 (Http11BaseProtocol.java:665)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
 PoolTcpEndpoint.java:528)
 at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
 LeaderFollowerWorkerThread.java:81)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.java:685)
 at java.lang.Thread.run(Thread.java:619)

 I didn-t even got to see the sign in page.

 When I downgraded to 1.3.1 everything worked fine again.

 Best regards,

 Johnnie

 --
 View this message in context:
 http://www.nabble.com/Wicket-1.3.2---java.lang.NullPointerException-tp16119078p16119078.html
 Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Autolinking Relative Paths

2008-03-18 Thread Gwyn Evans
On 16/03/2008, James Carman [EMAIL PROTECTED] wrote:

3. Document the valid path syntax (and limitations) in the Wiki, WIA, etc.
  

 +1 - but it should at least be in the Wiki, though.  I remember
  getting frustrated when seeing replies on the Tapestry lists that said
  Buy Kent Tong's book.  Don't get me wrong, his book was/is good, but
  having to pay for documentation for an Apache project just seems wrong
  to me.

Don't forget that the Wiki is open to anyone to update.

If info appears through discussions on the list but someone feels it
should be on the wiki, we /want/ them to add it there!

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Autolinking Relative Paths

2008-03-18 Thread James Carman
On 3/18/08, Gwyn Evans [EMAIL PROTECTED] wrote:
 On 16/03/2008, James Carman [EMAIL PROTECTED] wrote:

  3. Document the valid path syntax (and limitations) in the Wiki, WIA, 
 etc.

  
   +1 - but it should at least be in the Wiki, though.  I remember
getting frustrated when seeing replies on the Tapestry lists that said
Buy Kent Tong's book.  Don't get me wrong, his book was/is good, but
having to pay for documentation for an Apache project just seems wrong
to me.


 Don't forget that the Wiki is open to anyone to update.

  If info appears through discussions on the list but someone feels it
  should be on the wiki, we /want/ them to add it there!



If my patch makes it in, then this is a non-issue.  People can use
those relative paths all they want.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Timo Rantalaiho
On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
 on the component (input) I just updated, but it seems the Ajax response has
 given
 the components new markupId's and hence, the line:
 
 target.focusComponent(field)
 
 Is pretty much useless as the id's in the HTML has been altered (by Ajax
 response),
 and the input with the old id is no longer on the page.
 I dont quite know how to get the new markupId's, anyone?

As far as I know, repainting a component via Ajax should not 
change its markup id. But if your component is inside a 
repeater and gets re-created when the repeater is rendered,
that might happen.

Have you tried providing a fixed markup id with setMarkupId()?

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Maurice Marrink
We use forms in our modal windows without problems.
We do use Pages instead of panels and the form is submitted with an
AjaxSubmitLink. Also the form is a FilterForm found in
wicket-extensions but i don't think that should make a difference.

Maybe this information is of some help to you.

Maurice

On Tue, Mar 18, 2008 at 1:07 PM, Kai Mütz [EMAIL PROTECTED] wrote:
 Matej Knopp schrieb:

  You have to use AjaxSubmitButton if you put panel into modal window.
  

  No difference. I have tried AjaxSubmitButton, AjaxButton and
  AjaxSubmitLink. Once I have submitted the form, the modal window stays
  open. Reload of the entire page necessary to close modal.

  Is there a working example of getting form input within a modal window?

  Thanks, Kai



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Maurice Marrink
That is a known issue, unfortunately you will need to create your own
version of a submittingpagingnavigator. The api for those classes is
however not very extendable friendly so you probably end up
copy-pasting large portions of code.
I believe Martijn is planning on refactoring that component, just not
for wicket 1.3.x.

As an alternative you might be able to use ajaxcheckboxes?

Maurice

On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote:
 I have a form containing a GridView with a PagingNavigator.
  Within each cell I have an image and a CheckBox.  When a user submits
  the form I collect all the image refs from the selected cells and
  process them.

  My problem is I would like to do this across multiple pages.  So the user
  scenario is:
  A user goes through the pages using the navigator and selects, using the
  checkboxes, what images they like and then presses a select button.

  Unfortunately the selections are not preserved when I use a
  PagingNavigator on the form.  A paging navigator renders links rather
  than a submit, so any selections are lost.

  Any ideas how to get around this??


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Serzhas

I wrote about Pages in ModalWindow in my initial post :) This is the solution
I currently using.
But creation and popup of such ModalWindow is slower, than a Panel-based
one. However, I also
noticed, that with Page as content of ModalWindow dialog content is added to
DOM only when
it is opened, and removed when it's closed. With Panel-based ModalWindow
markup stays in DOM 
all the time after first open (until page reloaded). Not sure, but this may
be an undesired behavior in 
some cases.


Mr Mean wrote:
 
 We use forms in our modal windows without problems.
 We do use Pages instead of panels and the form is submitted with an
 AjaxSubmitLink. Also the form is a FilterForm found in
 wicket-extensions but i don't think that should make a difference.
 
 Maybe this information is of some help to you.
 
 Maurice
 
 On Tue, Mar 18, 2008 at 1:07 PM, Kai Mütz [EMAIL PROTECTED] wrote:
 Matej Knopp schrieb:

  You have to use AjaxSubmitButton if you put panel into modal window.
  

  No difference. I have tried AjaxSubmitButton, AjaxButton and
  AjaxSubmitLink. Once I have submitted the form, the modal window stays
  open. Reload of the entire page necessary to close modal.

  Is there a working example of getting form input within a modal window?

  Thanks, Kai



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16120597.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Gerolf Seitz
+1

On Mon, Mar 17, 2008 at 9:13 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 This thread is for voting only. Use the [discuss] thread for voicing
 your opinion or asking questions. This makes counting the votes much
 easier.

 The discussion on our development list makes it clear that a lot of
 folks are anxious for generified models. Most users if not all wish us
 to release a quick release which is 1.3 + generics. The consequence is
 that the core team will stop to support 1.3, and that everybody that
 wishes updates will have to migrate to 1.4, and upgrade to Java 5.

 Everybody is invited to vote! Please use

 [ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3
 [ ] -1, I need a supported version running on Java 1.4

 Let your voices be heard!

 Martijn
 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



LazyLoad after clicking on a Link

2008-03-18 Thread mmp

Hi,

I implemented a Webpage loading a panel using ajax lazy loading. After the
panel is loaded, refreshing the page works fine (panel gets again lazy
loaded), but when I click a dummy link, refreshing the page seems to
directly refreshing the panel and therefore no lazy loading appears.
Anybody has the same issue or is it a bug?

thx in advance,
mmp
-- 
View this message in context: 
http://www.nabble.com/LazyLoad-after-clicking-on-a-Link-tp16121090p16121090.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hibernate

2008-03-18 Thread Maurice Marrink
Typically the hibernate.cfg.xml is located in the root of your
packages and the configuration is loaded in the application like this:
hibernateConfig = new AnnotationConfiguration();
URL cfg = getClass().getResource(/hibernate.cfg.xml);
hibernateConfig.configure(cfg);

Your main problem is that you cannot get to the webapps directory from
within the application's classloader.

Maurice

On Tue, Mar 18, 2008 at 1:50 PM, tbt [EMAIL PROTECTED] wrote:

  Hi

  I'm new to hibernate and I have a problem as the wicket page class does not
  detect the hibernate.cfg.xml file
  The code is as follows

  public class InfoPage extends WebPage
  {
 private static Logger log = 
 Logger.getLogger(InfoPage.class.getName());

 public InfoPage()
 {
 Session session = null;

 try{

 // This step will read hibernate.cfg.xml and prepare 
 hibernate for use
 SessionFactory sessionFactory = new Configuration()

  
 .configure(webapps/ExampleHib/Resources/hibernate.cfg.xml).buildSessionFactory();
  session =sessionFactory.openSession();
 //Create new instance of Contact and set 
 values in it by reading them
  from form object
 log.info(Inserting Record);
 Contact contact = new Contact();
 contact.setId(6);
 contact.setFirstName(Deepak);
 contact.setLastName(Kumar);
 contact.setEmail([EMAIL PROTECTED]);
 session.save(contact);
 log.info(Done);
 }catch(Exception e){
 e.printStackTrace();
 }finally{
 // Actual contact insertion will happen at this step
 session.flush();
 session.close();

 }
 }
  }

  The hibernate.cfg.xml file is in ExampleHib/Resources/hibernate.cfg.xml
  folder. The application is run on tomcat. Is this the correct way to do
  this. Please provide your feedback as the way to integrate wicket with
  hibernate in a very simple example as I am new to hibernate.

  tbt
  --
  View this message in context: 
 http://www.nabble.com/hibernate-tp16120516p16120516.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread SantiagoA

On the site that holds the ModalWindow I have something like that:

modalWindow.setContent(new modalWindowPanel(modalWindow.getContentId(), new
ModalWindow.CloseButtonCallback(){
private static final long serialVersionUID = 4622180781771170962L;

public boolean onCloseButtonClicked(AjaxRequestTarget target) {
modalWindow.close(target);
return true;
}

}));

And in the Panel that is shown in the ModalWindows I do:

form.add(new AjaxButton(ok){
  private static final long serialVersionUID = -5005868829551738938L;
  @Override
  protected void onSubmit(AjaxRequestTarget ajaxRequestTarget, Form form) {
ajaxRequestTarget.addComponent(this.getPage().get(Formname));
// this.getPage() gives the Page which holds the ModalWindow
closeCallback.onCloseButtonClicked(ajaxRequestTarget);
  }
});

Works fine for me, hope that helps.
-- 
View this message in context: 
http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16121382.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket 1.3.2 - java.lang.NullPointerException

2008-03-18 Thread Johnnie

Sorry, I don't have a test case, but the webapp was working fine until I
substituted all 1.3.2 jars for the 1.3.1 jars, and that's all did, I didn't
change a thing in my code.

I've gone back and forth between the two versions and always get the same
exception with 1.3.2, but 1.3.1 works fine. 

When I click on display page view I find the following:

[Page class = my.package.ui.SignIn, id = 0, version = 0]:

# Path Size Type Model Object 
1feedback1,4Korg.apache.wicket.markup.html.panel.FeedbackPanel  
  
2feedback:feedbackul5,7K   
org.apache.wicket.markup.html.WebMarkupContainer
3feedback:feedbackul:messages5,7K   
org.apache.wicket.markup.html.list.ListView[]
4localizer1,7Kmy.package.ui.util.Localizer
5localizer:en_GB5,7Korg.apache.wicket.markup.html.link.Link
6localizer:en_US5,7Korg.apache.wicket.markup.html.link.Link
7localizer:fr5,7Korg.apache.wicket.markup.html.link.Link
8localizer:pt5,7Korg.apache.wicket.markup.html.link.Link
9logout1Kmy.package.ui.SignOut
10logout:signout5,7Korg.apache.wicket.markup.html.link.Link
11signInForm5,7Kmy.package.ui.util.LocalizedForm
12signInForm:password1,1K   
org.apache.wicket.markup.html.form.PasswordTextField
13signInForm:passwordLabel5,7K   
org.apache.wicket.markup.html.basic.LabelPassword
14signInForm:username1K   
org.apache.wicket.markup.html.form.TextField
15signInForm:usernameLabel5,7K   
org.apache.wicket.markup.html.basic.LabelUsername
16styler1,4Kmy.package.ui.util.Styler
17styler:avant-garde5,7Korg.apache.wicket.markup.html.link.Link 
   
18styler:classic5,7Korg.apache.wicket.markup.html.link.Link

Hope it helps.

Regards,

Johnny


Johan Compagner wrote:
 
 do you have a test case that you can attach to a jira issue
 I guess this has something to do with the loading of markup changes (so
 that
 not everything is loaded for every possible locale but only for every real
 file once)
 
 you seem to have a situtation that the key is null or couldnt be generated
 It would be nice to have a test case of that
 
 johan
 
 
 On Tue, Mar 18, 2008 at 12:30 PM, Johnnie [EMAIL PROTECTED] wrote:
 

 Hi,

 I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following exception:

 Unexpected RuntimeException

 Root cause:
 java.lang.NullPointerException
 at
 org.apache.wicket.util.concurrent.ConcurrentHashMap.hash(
 ConcurrentHashMap.java:299)
 at
 org.apache.wicket.util.concurrent.ConcurrentHashMap.put(
 ConcurrentHashMap.java:533)
 at
 org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put(
 MarkupCache.java:711)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:437)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:520)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :319)
 at

 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
 (InheritedMarkupMarkupLoader.java:95)
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
 InheritedMarkupMarkupLoader.java:63)
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
 DefaultMarkupLoader.java:55)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:433)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:520)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :319)
 at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
 MarkupContainer.java:343)
 at org.apache.wicket.Page.onRender(Page.java:1453)
 at org.apache.wicket.Component.render(Component.java:2308)
 at org.apache.wicket.Page.renderPage(Page.java:906)
 at

 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
 (BookmarkablePageRequestTarget.java:231)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
 AbstractRequestCycleProcessor.java:104)
 at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
 :1172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
 :194)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:215)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(
 

Re: Wicket 1.3.2 - java.lang.NullPointerException

2008-03-18 Thread Jeremy Levy
We are having the same issue, it's happening on pages where we are defining
the markup at run time, by implementing IMarkupResourceStreamProvider and
IMarkupCacheKeyProvider.  I'll create a sample project to demonstrate..

Jeremy


On Tue, Mar 18, 2008 at 9:36 AM, Johnnie [EMAIL PROTECTED] wrote:


 Sorry, I don't have a test case, but the webapp was working fine until I
 substituted all 1.3.2 jars for the 1.3.1 jars, and that's all did, I
 didn't
 change a thing in my code.

 I've gone back and forth between the two versions and always get the same
 exception with 1.3.2, but 1.3.1 works fine.

 When I click on display page view I find the following:

 [Page class = my.package.ui.SignIn, id = 0, version = 0]:

 # Path Size Type Model Object
 1feedback1,4Korg.apache.wicket.markup.html.panel.FeedbackPanel
 2feedback:feedbackul5,7K
 org.apache.wicket.markup.html.WebMarkupContainer
 3feedback:feedbackul:messages5,7K
 org.apache.wicket.markup.html.list.ListView[]
 4localizer1,7Kmy.package.ui.util.Localizer
 5localizer:en_GB5,7Korg.apache.wicket.markup.html.link.Link
 6localizer:en_US5,7Korg.apache.wicket.markup.html.link.Link
 7localizer:fr5,7Korg.apache.wicket.markup.html.link.Link
 8localizer:pt5,7Korg.apache.wicket.markup.html.link.Link
 9logout1Kmy.package.ui.SignOut
 10logout:signout5,7Korg.apache.wicket.markup.html.link.Link
 11signInForm5,7Kmy.package.ui.util.LocalizedForm
 12signInForm:password1,1K
 org.apache.wicket.markup.html.form.PasswordTextField
 13signInForm:passwordLabel5,7K
 org.apache.wicket.markup.html.basic.LabelPassword
 14signInForm:username1K
 org.apache.wicket.markup.html.form.TextField
 15signInForm:usernameLabel5,7K
 org.apache.wicket.markup.html.basic.LabelUsername
 16styler1,4Kmy.package.ui.util.Styler
 17styler:avant-garde5,7K
 org.apache.wicket.markup.html.link.Link
 18styler:classic5,7Korg.apache.wicket.markup.html.link.Link

 Hope it helps.

 Regards,

 Johnny


 Johan Compagner wrote:
 
  do you have a test case that you can attach to a jira issue
  I guess this has something to do with the loading of markup changes (so
  that
  not everything is loaded for every possible locale but only for every
 real
  file once)
 
  you seem to have a situtation that the key is null or couldnt be
 generated
  It would be nice to have a test case of that
 
  johan
 
 
  On Tue, Mar 18, 2008 at 12:30 PM, Johnnie [EMAIL PROTECTED]
 wrote:
 
 
  Hi,
 
  I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following
 exception:
 
  Unexpected RuntimeException
 
  Root cause:
  java.lang.NullPointerException
  at
  org.apache.wicket.util.concurrent.ConcurrentHashMap.hash(
  ConcurrentHashMap.java:299)
  at
  org.apache.wicket.util.concurrent.ConcurrentHashMap.put(
  ConcurrentHashMap.java:533)
  at
  org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put(
  MarkupCache.java:711)
  at
  org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:437)
  at
  org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
  MarkupCache.java:520)
  at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
  :319)
  at
 
 
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
  (InheritedMarkupMarkupLoader.java:95)
  at
  org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
  InheritedMarkupMarkupLoader.java:63)
  at
  org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
  DefaultMarkupLoader.java:55)
  at
  org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:433)
  at
  org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
  MarkupCache.java:520)
  at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java
  :319)
  at
  org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
 :215)
  at
  org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
  MarkupContainer.java:343)
  at org.apache.wicket.Page.onRender(Page.java:1453)
  at org.apache.wicket.Component.render(Component.java:2308)
  at org.apache.wicket.Page.renderPage(Page.java:906)
  at
 
 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
  (BookmarkablePageRequestTarget.java:231)
  at
  org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
  AbstractRequestCycleProcessor.java:104)
  at
  org.apache.wicket.RequestCycle.processEventsAndRespond(
 RequestCycle.java
  :1172)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
 :358)
  at
  

onClick() called after model is loaded

2008-03-18 Thread Zheng, Xiahong
Is onClick() called during the process of page rendering? My page has
some components with visibility controlled by model attributes. If the
model is loaded before the onClick() method is called, the page will not
render correctly unless I force a reload again to reflect the state
change made by onClick() method. Is it a way to get onClick called
before the page rendering? I also notice the addStateChange method, but
now sure how to use it. Can someone help? Thanks. -XZ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Amsterdam Community meeting 2008

2008-03-18 Thread Uwe Schäfer

hi

is there a definite Date for the Meetup in Amsterdam, yet?
At least people from abroad might have to plan for it, make/move Dates, 
book trains etc., so that it would be nice to have a Date people agreed 
upon soon.


cu uwe
--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Fabio Fioretti
+1.

Best regards,

Fabio Fioretti - WindoM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Amsterdam Community meeting 2008

2008-03-18 Thread Sebastiaan van Erk

Since it's pretty close, I was wondering if there is anything known about:

1) what time does it start?
2) what presentations are being held?

Regards,
Sebastiaan


Martijn Dashorst wrote:

Yes, it is tuesday april 8th.

Martijn

On 3/18/08, Uwe Schäfer [EMAIL PROTECTED] wrote:

hi

 is there a definite Date for the Meetup in Amsterdam, yet?
 At least people from abroad might have to plan for it, make/move Dates,
 book trains etc., so that it would be nice to have a Date people agreed
 upon soon.

 cu uwe
 --

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 0
 F  + 49 761 3 85 59 550
 E  [EMAIL PROTECTED]
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
 kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.

 Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer
 Redaktion lautet [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]









smime.p7s
Description: S/MIME Cryptographic Signature


Re: Amsterdam Community meeting 2008

2008-03-18 Thread Martijn Dashorst
I see that you haven't volunteered yet to present something.

Martijn

On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 Since it's pretty close, I was wondering if there is anything known about:

  1) what time does it start?
  2) what presentations are being held?

  Regards,

 Sebastiaan



  Martijn Dashorst wrote:
   Yes, it is tuesday april 8th.
  
   Martijn
  
   On 3/18/08, Uwe Schäfer [EMAIL PROTECTED] wrote:
   hi
  
is there a definite Date for the Meetup in Amsterdam, yet?
At least people from abroad might have to plan for it, make/move Dates,
book trains etc., so that it would be nice to have a Date people agreed
upon soon.
  
cu uwe
--
  
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de
  
Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947
  
Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
morgens um 9:00 in Ihrer Mailbox.
  
Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer
Redaktion lautet [EMAIL PROTECTED]
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  





-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Igor Vaynberg
providing a set id for something that is inside a repeater? :|

-igor


On Tue, Mar 18, 2008 at 5:42 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote:
 On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
   on the component (input) I just updated, but it seems the Ajax response has
   given
   the components new markupId's and hence, the line:
  
   target.focusComponent(field)
  
   Is pretty much useless as the id's in the HTML has been altered (by Ajax
   response),
   and the input with the old id is no longer on the page.
   I dont quite know how to get the new markupId's, anyone?

  As far as I know, repainting a component via Ajax should not
  change its markup id. But if your component is inside a
  repeater and gets re-created when the repeater is rendered,
  that might happen.

  Have you tried providing a fixed markup id with setMarkupId()?

  Best wishes,
  Timo

  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hibernate

2008-03-18 Thread Igor Vaynberg
not to mention you should not be creating session factories inside
pages. you should only have a single instance of session factory per
application...

-igor


On Tue, Mar 18, 2008 at 6:02 AM, Maurice Marrink [EMAIL PROTECTED] wrote:
 Typically the hibernate.cfg.xml is located in the root of your
  packages and the configuration is loaded in the application like this:
  hibernateConfig = new AnnotationConfiguration();
 URL cfg = 
 getClass().getResource(/hibernate.cfg.xml);
 hibernateConfig.configure(cfg);

  Your main problem is that you cannot get to the webapps directory from
  within the application's classloader.

  Maurice



  On Tue, Mar 18, 2008 at 1:50 PM, tbt [EMAIL PROTECTED] wrote:
  
Hi
  
I'm new to hibernate and I have a problem as the wicket page class does 
 not
detect the hibernate.cfg.xml file
The code is as follows
  
public class InfoPage extends WebPage
{
   private static Logger log = 
 Logger.getLogger(InfoPage.class.getName());
  
   public InfoPage()
   {
   Session session = null;
  
   try{
  
   // This step will read hibernate.cfg.xml and 
 prepare hibernate for use
   SessionFactory sessionFactory = new Configuration()
  

 .configure(webapps/ExampleHib/Resources/hibernate.cfg.xml).buildSessionFactory();
session =sessionFactory.openSession();
   //Create new instance of Contact and set 
 values in it by reading them
from form object
   log.info(Inserting Record);
   Contact contact = new Contact();
   contact.setId(6);
   contact.setFirstName(Deepak);
   contact.setLastName(Kumar);
   contact.setEmail([EMAIL PROTECTED]);
   session.save(contact);
   log.info(Done);
   }catch(Exception e){
   e.printStackTrace();
   }finally{
   // Actual contact insertion will happen at this 
 step
   session.flush();
   session.close();
  
   }
   }
}
  
The hibernate.cfg.xml file is in ExampleHib/Resources/hibernate.cfg.xml
folder. The application is run on tomcat. Is this the correct way to do
this. Please provide your feedback as the way to integrate wicket with
hibernate in a very simple example as I am new to hibernate.
  
tbt
--
View this message in context: 
 http://www.nabble.com/hibernate-tp16120516p16120516.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LazyLoad after clicking on a Link

2008-03-18 Thread Igor Vaynberg
the page is mounted? or has a bookmarkable url? because if you hit
refresh on the page before clicking any link you are sending another
request to a bookmarkable url and so wicket creates a new instance of
the page. you should mount the page with hybrid url coding strategy to
fix this.

-igor


On Tue, Mar 18, 2008 at 6:21 AM, mmp [EMAIL PROTECTED] wrote:

  Hi,

  I implemented a Webpage loading a panel using ajax lazy loading. After the
  panel is loaded, refreshing the page works fine (panel gets again lazy
  loaded), but when I click a dummy link, refreshing the page seems to
  directly refreshing the panel and therefore no lazy loading appears.
  Anybody has the same issue or is it a bug?

  thx in advance,
  mmp
  --
  View this message in context: 
 http://www.nabble.com/LazyLoad-after-clicking-on-a-Link-tp16121090p16121090.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Lars Borup Jensen
Hi Igor

I take from your note that setting a specific markupId is not the solution
to my problem.

It seems like the Page.getAutoIndex is used as start index for the
components (TextFields)
which I use in the TreeTable columns when they are updated in the ajax
request (which might be
alright), but since I update the TextField in which I have the cursor - the
focus is lost, and I
can't seem to find the id of the newly created TextFields. Does it make any
sense?




On Tue, Mar 18, 2008 at 3:52 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 providing a set id for something that is inside a repeater? :|

 -igor


 On Tue, Mar 18, 2008 at 5:42 AM, Timo Rantalaiho [EMAIL PROTECTED]
 wrote:
  On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
on the component (input) I just updated, but it seems the Ajax
 response has
given
the components new markupId's and hence, the line:
   
target.focusComponent(field)
   
Is pretty much useless as the id's in the HTML has been altered (by
 Ajax
response),
and the input with the old id is no longer on the page.
I dont quite know how to get the new markupId's, anyone?
 
   As far as I know, repainting a component via Ajax should not
   change its markup id. But if your component is inside a
   repeater and gets re-created when the repeater is rendered,
   that might happen.
 
   Have you tried providing a fixed markup id with setMarkupId()?
 
   Best wishes,
   Timo
 
   --
   Timo Rantalaiho
   Reaktor Innovations OyURL: http://www.ri.fi/ 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 

Lars Borup Jensen
http://www.it-arbejde.dk


Re: onClick() called after model is loaded

2008-03-18 Thread Igor Vaynberg
visibility of components is checked before onclick for security
reasons - eg you should not be able to click a link that is not
visible. if you use your model inside isvisible() override it will
potentially get loaded with stale data, you have two options:

1) instead of overriding isvisible() override onbeforerender() and
call setvisible()
2) as the last thing you do in onclick() call detach() on the
component that has isvisible() overridden

-igor


On Tue, Mar 18, 2008 at 7:00 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote:
 Is onClick() called during the process of page rendering? My page has
  some components with visibility controlled by model attributes. If the
  model is loaded before the onClick() method is called, the page will not
  render correctly unless I force a reload again to reflect the state
  change made by onClick() method. Is it a way to get onClick called
  before the page rendering? I also notice the addStateChange method, but
  now sure how to use it. Can someone help? Thanks. -XZ

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Igor Vaynberg
is there a reason why you are actually recreating the
textfields/updating the entire treetable? if you do that i cant think
of any work around off the top of my head, maybe matej can since he
wrote the treetable.

-igor


On Tue, Mar 18, 2008 at 7:58 AM, Lars Borup Jensen [EMAIL PROTECTED] wrote:
 Hi Igor

  I take from your note that setting a specific markupId is not the solution
  to my problem.

  It seems like the Page.getAutoIndex is used as start index for the
  components (TextFields)
  which I use in the TreeTable columns when they are updated in the ajax
  request (which might be
  alright), but since I update the TextField in which I have the cursor - the
  focus is lost, and I
  can't seem to find the id of the newly created TextFields. Does it make any
  sense?




  On Tue, Mar 18, 2008 at 3:52 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:



   providing a set id for something that is inside a repeater? :|
  
   -igor
  
  
   On Tue, Mar 18, 2008 at 5:42 AM, Timo Rantalaiho [EMAIL PROTECTED]
   wrote:
On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
  on the component (input) I just updated, but it seems the Ajax
   response has
  given
  the components new markupId's and hence, the line:
 
  target.focusComponent(field)
 
  Is pretty much useless as the id's in the HTML has been altered (by
   Ajax
  response),
  and the input with the old id is no longer on the page.
  I dont quite know how to get the new markupId's, anyone?
   
 As far as I know, repainting a component via Ajax should not
 change its markup id. But if your component is inside a
 repeater and gets re-created when the repeater is rendered,
 that might happen.
   
 Have you tried providing a fixed markup id with setMarkupId()?
   
 Best wishes,
 Timo
   
 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  




 --

  Lars Borup Jensen
  http://www.it-arbejde.dk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: strange issues in SUSE, please have a look, many thanks!

2008-03-18 Thread Igor Vaynberg
looks like wicket doesnt have permissions to read .html files inside
the classes dir. are you sure they are there? are you sure file
permissions are right? are you sure your SUSE tomcat isnt using a
security manager?

-igor


On Tue, Mar 18, 2008 at 7:46 AM, raybristol [EMAIL PROTECTED] wrote:

  My wicket application was developed in windows and it runs fine in my
  windwos, however after deploying it to SUSE, I got this message:

  java.lang.IllegalStateException: Request processing executed 100 steps,
  which means it is probably in an infinite loop.

  09:33:17,109 ERROR RequestCycle:1255 - Markup of type 'html' for component
  'apto.umbrella.wicketInterface.WicketAccessDenied' not found.
  Enable debug messages for org.apache.wicket.util.resource to get a list of
  all filenames tried:
  [Page class = apto.umbrella.wicketInterface.WicketAccessDenied, id = 173,
  version = 0]
  org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
  for component 'apto.umbrella.wicketInterface.WicketAccessDenied' not found.
  Enable debug messages for org.apache.wicket.util.resource to get a list of
  all filenames tried:
  [Page class = apto.umbrella.wicketInterface.WicketAccessDenied, id = 173,
  version = 0]
 at
  
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:358)
 at org.apache.wicket.Page.onRender(Page.java:1426)
 at org.apache.wicket.Component.render(Component.java:2013)
 at org.apache.wicket.Page.renderPage(Page.java:922)
 at
  
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
 at
  
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
 at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1047)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1113)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
 at
  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:261)
 at
  org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
  
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
  
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
  
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
  
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
  
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at
  
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
 at
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Unknown Source) Caused by:
  org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
  Component class: apto.umbrella.wicketInterface.WicketAccessDenied
  Enable debug messages for org.apache.wicket.util.resource to get a list of
  all filenames tried
 at
  org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216)
 at
  
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:346)
 ... 25 more




  Any thoughts? it runs fine in my window machine... I am going nuts don't
  know what caused this...


  Many thanks for your help!
  --
  View this message in context: 
 http://www.nabble.com/strange-issues-in-SUSE%2C-please-have-a-look%2C-many-thanks%21-tp16121989p16121989.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Peter Ertl

+1

Am 18.03.2008 um 10:50 schrieb Gabor Szokoli:


+1

On 3/17/08, Martijn Dashorst [EMAIL PROTECTED] wrote:

Everybody is invited to vote! Please use

[ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3
[ ] -1, I need a supported version running on Java 1.4

Let your voices be heard!

Martijn

--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DropDownChoice and setNullValid()

2008-03-18 Thread Kaspar Fischer

I am trying to get a DropDownChoice to select either a country or
the option any country.

   searchOptions.add(new DropDownChoice(search-country, countries,  
countriesRenderer)

 .setNullValid(true).setRequired(false)  // (*)
   );

With the second line (*) commented out, the drop-down menu initially
shows

   any country
   Belgium
   ...

Once I select Belgium and submit the form, the any country vanishes
forever. That's the what I expect.

... but: with the line (*), I have the behaviour I need, but instead of
any country I get an empty string:

   empty string
   Belgium
   ...

Meaning, the DropDownChoice does not pick up anymore my entry

  search-country.null=any country

from the .properties file.

Any idea how I can get the any country?
Thanks, Kaspar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Amsterdam Community meeting 2008

2008-03-18 Thread Martijn Dashorst
Subjects I can come up with are:
 - sexy components (a genuine date picker, such as meetmoi)
 - openid integration
 - building applications with wicket web beans
 - flex/silverlight/air: threat or opportunity
 - social networking integration (open social, facebook)
 - integrations with other frameworks (extjs?)
 - how serialization works, why it matters
 - behind the scenes of Apache Wicket (how do I become a committer)
 - groovy/grails integration
 - terracotta, but now with a real wicket demo
 - scala + wicket
 - why authors don't get rich from book writing
 - web framework shoot out: jsf vs tapestry vs wicket vs spring mvc
 - top 10 ways to mess up your Wicket application
 - top 10 ways to speed up your Wicket application
 - scaling out (show how to run your wicket application in a cluster)

Martijn

On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 Hmm...

  Currently I don't think I have very much to present that is interesting
  to the Wicket community, unless you guys are interested in relational
  variants of classical mechanics. :-) I've been kinda busy trying to
  write my physics master's thesis...

  On the other hand, what *are* people interested in having presented? If
  there is something that I feel is within my Wicket skills, who knows. :-)


  Regards,
  Sebastiaan

  Martijn Dashorst wrote:
   I see that you haven't volunteered yet to present something.
  
   Martijn
  
   On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
   Since it's pretty close, I was wondering if there is anything known about:
  
1) what time does it start?
2) what presentations are being held?
  
Regards,
  
   Sebastiaan
  
  
  
Martijn Dashorst wrote:
 Yes, it is tuesday april 8th.

 Martijn

 On 3/18/08, Uwe Schäfer [EMAIL PROTECTED] wrote:
 hi

  is there a definite Date for the Meetup in Amsterdam, yet?
  At least people from abroad might have to plan for it, make/move 
 Dates,
  book trains etc., so that it would be nice to have a Date people 
 agreed
  upon soon.

  cu uwe
  --

  THOMAS DAILY GmbH
  Adlerstraße 19
  79098 Freiburg
  Deutschland
  T  + 49 761 3 85 59 0
  F  + 49 761 3 85 59 550
  E  [EMAIL PROTECTED]
  www.thomas-daily.de

  Geschäftsführer/Managing Directors:
  Wendy Thomas, Susanne Larbig
  Handelsregister Freiburg i.Br., HRB 3947

  Registrieren Sie sich unter http://morningnews.thomas-daily.de für 
 die
  kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
  morgens um 9:00 in Ihrer Mailbox.

  Hinweis: Der Redaktionsschluss für unsere TD Morning News ist 
 täglich um
  8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
  16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer
  Redaktion lautet [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




  
  
  
  
  





-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DropDownChoice and setNullValid()

2008-03-18 Thread Kai Mütz

Kaspar Fischer schrieb:

I am trying to get a DropDownChoice to select either a country or
the option any country.

   searchOptions.add(new DropDownChoice(search-country, countries, 
countriesRenderer)

 .setNullValid(true).setRequired(false)  // (*)
   );

With the second line (*) commented out, the drop-down menu initially
shows

   any country
   Belgium
   ...

Once I select Belgium and submit the form, the any country vanishes
forever. That's the what I expect.

... but: with the line (*), I have the behaviour I need, but instead of
any country I get an empty string:

   empty string
   Belgium
   ...

Meaning, the DropDownChoice does not pick up anymore my entry

  search-country.null=any country


Try
search-country.nullValid=any country

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Amsterdam Community meeting 2008

2008-03-18 Thread Sebastiaan van Erk

Nice list. :-)

Unfortunately I'm not very good at any of them, the only one I know a 
bit about is the serialization one, and even that is just what I learned 
from the presentation last time...


Generally I'm also good at messing up things, but haven't had enough 
wicket experience to present much on that. I can show why I need 
multiple extend/child (because overridable methods called from a 
base-class constructor returning fragments get called before the 
subclass constructor, causing a real mess of workarounds), or how not to 
use LDM's with hibernate in lists (my pages are quickly becoming a mess 
trying to avoid the 1 query per object deserialization issue), but I 
can't tell you how to do it right (maybe someone else can. :-))


The one about authors sounds like a good one for you. :-) I sense some 
frustration there! ;-)


If I (or someone else) comes up with something that I *can* present, 
I'll see what I can do.


I'd like to see a Wicket Patterns presentation myself: things that you 
need to do a lot and the standard solution to do them (i.e., similar to 
the multiple child, but then only those cases where there is a good 
solution available). Or a Wicket Antipatterns would be cool as well, 
i.e., how NOT to do things in Wicket and then show the right way to do 
them (standard example is not using a model which causes constructor 
time binding and people wondering why their page isn't updated).


Regards,
Sebastiaan

Martijn Dashorst wrote:

Subjects I can come up with are:
 - sexy components (a genuine date picker, such as meetmoi)
 - openid integration
 - building applications with wicket web beans
 - flex/silverlight/air: threat or opportunity
 - social networking integration (open social, facebook)
 - integrations with other frameworks (extjs?)
 - how serialization works, why it matters
 - behind the scenes of Apache Wicket (how do I become a committer)
 - groovy/grails integration
 - terracotta, but now with a real wicket demo
 - scala + wicket
 - why authors don't get rich from book writing
 - web framework shoot out: jsf vs tapestry vs wicket vs spring mvc
 - top 10 ways to mess up your Wicket application
 - top 10 ways to speed up your Wicket application
 - scaling out (show how to run your wicket application in a cluster)

Martijn

On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hmm...

 Currently I don't think I have very much to present that is interesting
 to the Wicket community, unless you guys are interested in relational
 variants of classical mechanics. :-) I've been kinda busy trying to
 write my physics master's thesis...

 On the other hand, what *are* people interested in having presented? If
 there is something that I feel is within my Wicket skills, who knows. :-)


 Regards,
 Sebastiaan

 Martijn Dashorst wrote:
  I see that you haven't volunteered yet to present something.
 
  Martijn
 
  On 3/18/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
  Since it's pretty close, I was wondering if there is anything known about:
 
   1) what time does it start?
   2) what presentations are being held?
 
   Regards,
 
  Sebastiaan
 
 
 
   Martijn Dashorst wrote:
Yes, it is tuesday april 8th.
   
Martijn
   
On 3/18/08, Uwe Schäfer [EMAIL PROTECTED] wrote:
hi
   
 is there a definite Date for the Meetup in Amsterdam, yet?
 At least people from abroad might have to plan for it, make/move Dates,
 book trains etc., so that it would be nice to have a Date people agreed
 upon soon.
   
 cu uwe
 --
   
 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 0
 F  + 49 761 3 85 59 550
 E  [EMAIL PROTECTED]
 www.thomas-daily.de
   
 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947
   
 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
 kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.
   
 Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich 
um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer
 Redaktion lautet [EMAIL PROTECTED]
   
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
 
 
 
 
 










smime.p7s
Description: S/MIME Cryptographic Signature


Re: DropDownChoice and setNullValid()

2008-03-18 Thread Kaspar Fischer


On 18.03.2008, at 16:47, Kai Mütz wrote:

Try
search-country.nullValid=any country


Thanks, works like a charm!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Amsterdam Community meeting 2008

2008-03-18 Thread Gerolf Seitz
On Tue, Mar 18, 2008 at 4:56 PM, Sebastiaan van Erk [EMAIL PROTECTED]
wrote:

 Or a Wicket Antipatterns would be cool as well,
 i.e., how NOT to do things in Wicket and then show the right way to do
 them (standard example is not using a model which causes constructor
 time binding and people wondering why their page isn't updated).


sounds a bit like Wicket Puzzlers ;)

  Gerolf


Re: Back button support

2008-03-18 Thread Java Developer
It would be nice if an example of such ui interactions could be given...

On Mon, Mar 17, 2008 at 4:57 PM, Java Developer [EMAIL PROTECTED]
wrote:

 Been reading about wicket and would want to know the context in which the
 back button problem is being talked about..the only problem i have faced
 with respect to back button is the double form submission, cant frame myself
 in the right context...Can someone give a real life example of what problem
 can a back button cause and how does versioning resolves it..





Re: Amsterdam Community meeting 2008

2008-03-18 Thread Jan Kriesten


hi,


Yes, it is tuesday april 8th.


oh. :-(

had hoped for friday, 4th - so i could have attended.

have fun then!

regards, --- jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Thomas Kappler
Hi,

first of all, sorry if this is the wrong list, but AFAIK there's no
wicketstuff ML and the JIRA doesn't list the scriptaculous component
as a project.

We wanted ghosting
(http://wiki.script.aculo.us/scriptaculous/show/Draggable) in our
wicketstuff-scriptaculous enabled drag'n'drop, but it's not
integrated.  The attached trivial patch fixes that.  Is there a
specific reason why it's left out from the wicketstuff behavior?

Cheers,
Thomas


wicketstuff-scriptaculous-ghosting-patch
Description: video/ms-wm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Ryan Sonnek
Hey, thanks for the patch.

The only reason it wasn't added is that no-one had requested it.  =)
i'll be happy to apply the patch and push out a new release ASAP.

Thanks again!

On Tue, Mar 18, 2008 at 11:21 AM, Thomas Kappler
[EMAIL PROTECTED] wrote:
 Hi,

  first of all, sorry if this is the wrong list, but AFAIK there's no
  wicketstuff ML and the JIRA doesn't list the scriptaculous component
  as a project.

  We wanted ghosting
  (http://wiki.script.aculo.us/scriptaculous/show/Draggable) in our
  wicketstuff-scriptaculous enabled drag'n'drop, but it's not
  integrated.  The attached trivial patch fixes that.  Is there a
  specific reason why it's left out from the wicketstuff behavior?

  Cheers,
  Thomas

 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Ryan Sonnek
done!

patch has been applied.  bamboo should publish a new snapshot jar any
minute now.

On Tue, Mar 18, 2008 at 11:27 AM, Ryan Sonnek [EMAIL PROTECTED] wrote:
 Hey, thanks for the patch.

  The only reason it wasn't added is that no-one had requested it.  =)
  i'll be happy to apply the patch and push out a new release ASAP.

  Thanks again!



  On Tue, Mar 18, 2008 at 11:21 AM, Thomas Kappler
  [EMAIL PROTECTED] wrote:
   Hi,
  
first of all, sorry if this is the wrong list, but AFAIK there's no
wicketstuff ML and the JIRA doesn't list the scriptaculous component
as a project.
  
We wanted ghosting
(http://wiki.script.aculo.us/scriptaculous/show/Draggable) in our
wicketstuff-scriptaculous enabled drag'n'drop, but it's not
integrated.  The attached trivial patch fixes that.  Is there a
specific reason why it's left out from the wicketstuff behavior?
  
Cheers,
Thomas
  
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket 1.3.2 - java.lang.NullPointerException

2008-03-18 Thread Jeremy Levy
I've having trouble reproducing this is a test project, however if I return
a standard value getCacheKey it seems to work, where returning null which as
a I understand it means don't cache at all.

  public String getCacheKey(MarkupContainer arg0, Class arg1) {
return 1;
}


I'll keep trying for a bit more...

Jeremy

On Tue, Mar 18, 2008 at 9:55 AM, Jeremy Levy [EMAIL PROTECTED] wrote:

 We are having the same issue, it's happening on pages where we are
 defining the markup at run time, by implementing
 IMarkupResourceStreamProvider and IMarkupCacheKeyProvider.  I'll create a
 sample project to demonstrate..

 Jeremy



 On Tue, Mar 18, 2008 at 9:36 AM, Johnnie [EMAIL PROTECTED] wrote:

 
  Sorry, I don't have a test case, but the webapp was working fine until I
  substituted all 1.3.2 jars for the 1.3.1 jars, and that's all did, I
  didn't
  change a thing in my code.
 
  I've gone back and forth between the two versions and always get the
  same
  exception with 1.3.2, but 1.3.1 works fine.
 
  When I click on display page view I find the following:
 
  [Page class = my.package.ui.SignIn, id = 0, version = 0]:
 
  # Path Size Type Model Object
  1feedback1,4K
  org.apache.wicket.markup.html.panel.FeedbackPanel
  2feedback:feedbackul5,7K
  org.apache.wicket.markup.html.WebMarkupContainer
  3feedback:feedbackul:messages5,7K
  org.apache.wicket.markup.html.list.ListView[]
  4localizer1,7Kmy.package.ui.util.Localizer
  5localizer:en_GB5,7Korg.apache.wicket.markup.html.link.Link
  6localizer:en_US5,7Korg.apache.wicket.markup.html.link.Link
  7localizer:fr5,7Korg.apache.wicket.markup.html.link.Link
  8localizer:pt5,7Korg.apache.wicket.markup.html.link.Link
  9logout1Kmy.package.ui.SignOut
  10logout:signout5,7Korg.apache.wicket.markup.html.link.Link
  11signInForm5,7Kmy.package.ui.util.LocalizedForm
  12signInForm:password1,1K
  org.apache.wicket.markup.html.form.PasswordTextField
  13signInForm:passwordLabel5,7K
  org.apache.wicket.markup.html.basic.LabelPassword
  14signInForm:username1K
  org.apache.wicket.markup.html.form.TextField
  15signInForm:usernameLabel5,7K
  org.apache.wicket.markup.html.basic.LabelUsername
  16styler1,4Kmy.package.ui.util.Styler
  17styler:avant-garde5,7K
  org.apache.wicket.markup.html.link.Link
  18styler:classic5,7Korg.apache.wicket.markup.html.link.Link
 
  Hope it helps.
 
  Regards,
 
  Johnny
 
 
  Johan Compagner wrote:
  
   do you have a test case that you can attach to a jira issue
   I guess this has something to do with the loading of markup changes
  (so
   that
   not everything is loaded for every possible locale but only for every
  real
   file once)
  
   you seem to have a situtation that the key is null or couldnt be
  generated
   It would be nice to have a test case of that
  
   johan
  
  
   On Tue, Mar 18, 2008 at 12:30 PM, Johnnie [EMAIL PROTECTED]
  wrote:
  
  
   Hi,
  
   I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following
  exception:
  
   Unexpected RuntimeException
  
   Root cause:
   java.lang.NullPointerException
   at
   org.apache.wicket.util.concurrent.ConcurrentHashMap.hash(
   ConcurrentHashMap.java:299)
   at
   org.apache.wicket.util.concurrent.ConcurrentHashMap.put(
   ConcurrentHashMap.java:533)
   at
   org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put(
   MarkupCache.java:711)
   at
   org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:437)
   at
   org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
   MarkupCache.java:520)
   at org.apache.wicket.markup.MarkupCache.getMarkup(
  MarkupCache.java
   :319)
   at
  
  
  org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
   (InheritedMarkupMarkupLoader.java:95)
   at
  
  org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
   InheritedMarkupMarkupLoader.java:63)
   at
   org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
   DefaultMarkupLoader.java:55)
   at
   org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:433)
   at
   org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
   MarkupCache.java:520)
   at org.apache.wicket.markup.MarkupCache.getMarkup(
  MarkupCache.java
   :319)
   at
   org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
  :215)
   at
   org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
   MarkupContainer.java:343)
   at org.apache.wicket.Page.onRender(Page.java:1453)
   at org.apache.wicket.Component.render(Component.java:2308)
   at org.apache.wicket.Page.renderPage(Page.java:906)
   at
  
  
  org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
   

wicketstuff-jamon

2008-03-18 Thread Ryan Sonnek
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jamon/src/main/java/org/wicketstuff/jamon/

I was browsing the sources for wicketstuff-jamon and I was wondering
how to actually hook it up into my app?  How do you use the custom
web request cycle instead of the default one provided by wicket?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Thomas Kappler
Wow, that was quick!  Thanks a lot!

Thomas


On Tue, Mar 18, 2008 at 5:44 PM, Ryan Sonnek [EMAIL PROTECTED] wrote:
 done!

  patch has been applied.  bamboo should publish a new snapshot jar any
  minute now.



  On Tue, Mar 18, 2008 at 11:27 AM, Ryan Sonnek [EMAIL PROTECTED] wrote:
   Hey, thanks for the patch.
  
The only reason it wasn't added is that no-one had requested it.  =)
i'll be happy to apply the patch and push out a new release ASAP.
  
Thanks again!
  
  
  
On Tue, Mar 18, 2008 at 11:21 AM, Thomas Kappler
[EMAIL PROTECTED] wrote:
 Hi,

  first of all, sorry if this is the wrong list, but AFAIK there's no
  wicketstuff ML and the JIRA doesn't list the scriptaculous component
  as a project.

  We wanted ghosting
  (http://wiki.script.aculo.us/scriptaculous/show/Draggable) in our
  wicketstuff-scriptaculous enabled drag'n'drop, but it's not
  integrated.  The attached trivial patch fixes that.  Is there a
  specific reason why it's left out from the wicketstuff behavior?

  Cheers,
  Thomas

 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Planning Wicket Next Generation

2008-03-18 Thread Jörn Zaefferer
I'm one of those poor guys stuck with IBM Websphere Portal 5 and 6,
which are both Java 1.4. We can still use Java 5 for the core of our
application by seperating the frontend stuff into its own project, and
having retrotranslator modify the core jar file before putting it into
the 1.4 web application. It doesn't give you full Java 5 support, but
at least its bearable and we can use generics and autoboxing.

In other words: I'm all for Wicket 1.4 on Java 5 only, the sooner the better.

Jörn

On Tue, Mar 18, 2008 at 8:59 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 Its not wicket that chooses for 1.4 this long. Its for example IBM
  (webspere) that takes a long long time to move to jdk versions. For
  example i dont think there is a webspere version in sight yet for 1.6
  and how long do we have that now? (except mac thats also a small
  problem in that area)



  On 3/18/08, brian.diekelman [EMAIL PROTECTED] wrote:
  
  
   +1 for 'Option B': 1.4=generics, drop java 1.4 support
  
   This is coming from a large DoD application (notoriously behind the
   technology power curve), the only thing not generified is our UI (Wicket)
   stuff.
  
   I think maintaining 'one behind' JVM compatibility is sufficient.  I mean,
   come on... Java 5 came out in 2003.
   --
   View this message in context:
   
 http://www.nabble.com/Re%3A-Planning-Wicket-Next-Generation-tp16069837p16112094.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket dojo DragAndDrop problem

2008-03-18 Thread Igor Vaynberg
can you please provide a quickstart for this. seems like a 1.3.2
problem if the reason is indeed that wicket ignores header
contributions.

-igor


On Tue, Mar 18, 2008 at 2:32 AM, Stefan Lindner [EMAIL PROTECTED] wrote:
 I try to use Wicket 1.3.2 together with wicketstuff dojo (both 1.3.0
  beta and 1.3.0 latest) Everything works fine if I deploy my applicatioin
  in development mode. Some lines like

 DEBUG:  Initialized drop contianer for dropContainer01, dropIds:
  *,
 DEBUG:  Callback url base:
  ?wicket:interface=:0:dropContainer0::IActivePageBehaviorListener:0:amp;
  wicket:ignoreIfNotActive=true

  are shown on my page but the functionality is perfect. I use the Custom
  drag and drop classes from the dojo examples achive. But when I switch
  to deploymnet mode

 context-param
 param-nameconfiguration/param-name
 param-valuedeployment/param-value
 /context-param

  Nothing works anymore. Can't even drag the source object. Looks like no
  javascript library was loaded.
  What am I doing wrong? Any idea?

  Stefan

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Planning Wicket Next Generation

2008-03-18 Thread Johan Compagner
and still it is not that 1.3 is dead at this time
We will have 1 or 2 releases more so we wil try to get it as stable as
possible so that people that cant use 1.4 yes
will have a pretty solid 1.3

On Tue, Mar 18, 2008 at 5:59 PM, Jörn Zaefferer 
[EMAIL PROTECTED] wrote:

 I'm one of those poor guys stuck with IBM Websphere Portal 5 and 6,
 which are both Java 1.4. We can still use Java 5 for the core of our
 application by seperating the frontend stuff into its own project, and
 having retrotranslator modify the core jar file before putting it into
 the 1.4 web application. It doesn't give you full Java 5 support, but
 at least its bearable and we can use generics and autoboxing.

 In other words: I'm all for Wicket 1.4 on Java 5 only, the sooner the
 better.

 Jörn

 On Tue, Mar 18, 2008 at 8:59 AM, Johan Compagner [EMAIL PROTECTED]
 wrote:
  Its not wicket that chooses for 1.4 this long. Its for example IBM
   (webspere) that takes a long long time to move to jdk versions. For
   example i dont think there is a webspere version in sight yet for 1.6
   and how long do we have that now? (except mac thats also a small
   problem in that area)
 
 
 
   On 3/18/08, brian.diekelman [EMAIL PROTECTED] wrote:
   
   
+1 for 'Option B': 1.4=generics, drop java 1.4 support
   
This is coming from a large DoD application (notoriously behind the
technology power curve), the only thing not generified is our UI
 (Wicket)
stuff.
   
I think maintaining 'one behind' JVM compatibility is sufficient.  I
 mean,
come on... Java 5 came out in 2003.
--
View this message in context:
   
 http://www.nabble.com/Re%3A-Planning-Wicket-Next-Generation-tp16069837p16112094.html
Sent from the Wicket - User mailing list archive at 
  Nabble.comhttp://nabble.com/
 .
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Wicket 1.3.2 - java.lang.NullPointerException

2008-03-18 Thread Johan Compagner
ahh ok got it
will fix it asap

johan



On Tue, Mar 18, 2008 at 5:46 PM, Jeremy Levy [EMAIL PROTECTED] wrote:

 I've having trouble reproducing this is a test project, however if I
 return
 a standard value getCacheKey it seems to work, where returning null which
 as
 a I understand it means don't cache at all.

  public String getCacheKey(MarkupContainer arg0, Class arg1) {
return 1;
}


 I'll keep trying for a bit more...

 Jeremy

 On Tue, Mar 18, 2008 at 9:55 AM, Jeremy Levy [EMAIL PROTECTED] wrote:

  We are having the same issue, it's happening on pages where we are
  defining the markup at run time, by implementing
  IMarkupResourceStreamProvider and IMarkupCacheKeyProvider.  I'll create
 a
  sample project to demonstrate..
 
  Jeremy
 
 
 
  On Tue, Mar 18, 2008 at 9:36 AM, Johnnie [EMAIL PROTECTED] wrote:
 
  
   Sorry, I don't have a test case, but the webapp was working fine until
 I
   substituted all 1.3.2 jars for the 1.3.1 jars, and that's all did, I
   didn't
   change a thing in my code.
  
   I've gone back and forth between the two versions and always get the
   same
   exception with 1.3.2, but 1.3.1 works fine.
  
   When I click on display page view I find the following:
  
   [Page class = my.package.ui.SignIn, id = 0, version = 0]:
  
   # Path Size Type Model Object
   1feedback1,4K
   org.apache.wicket.markup.html.panel.FeedbackPanel
   2feedback:feedbackul5,7K
   org.apache.wicket.markup.html.WebMarkupContainer
   3feedback:feedbackul:messages5,7K
   org.apache.wicket.markup.html.list.ListView[]
   4localizer1,7Kmy.package.ui.util.Localizer
   5localizer:en_GB5,7K
 org.apache.wicket.markup.html.link.Link
   6localizer:en_US5,7K
 org.apache.wicket.markup.html.link.Link
   7localizer:fr5,7Korg.apache.wicket.markup.html.link.Link
   8localizer:pt5,7Korg.apache.wicket.markup.html.link.Link
   9logout1Kmy.package.ui.SignOut
   10logout:signout5,7K
 org.apache.wicket.markup.html.link.Link
   11signInForm5,7Kmy.package.ui.util.LocalizedForm
   12signInForm:password1,1K
   org.apache.wicket.markup.html.form.PasswordTextField
   13signInForm:passwordLabel5,7K
   org.apache.wicket.markup.html.basic.LabelPassword
   14signInForm:username1K
   org.apache.wicket.markup.html.form.TextField
   15signInForm:usernameLabel5,7K
   org.apache.wicket.markup.html.basic.LabelUsername
   16styler1,4Kmy.package.ui.util.Styler
   17styler:avant-garde5,7K
   org.apache.wicket.markup.html.link.Link
   18styler:classic5,7K
 org.apache.wicket.markup.html.link.Link
  
   Hope it helps.
  
   Regards,
  
   Johnny
  
  
   Johan Compagner wrote:
   
do you have a test case that you can attach to a jira issue
I guess this has something to do with the loading of markup changes
   (so
that
not everything is loaded for every possible locale but only for
 every
   real
file once)
   
you seem to have a situtation that the key is null or couldnt be
   generated
It would be nice to have a test case of that
   
johan
   
   
On Tue, Mar 18, 2008 at 12:30 PM, Johnnie [EMAIL PROTECTED]
   wrote:
   
   
Hi,
   
I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following
   exception:
   
Unexpected RuntimeException
   
Root cause:
java.lang.NullPointerException
at
org.apache.wicket.util.concurrent.ConcurrentHashMap.hash(
ConcurrentHashMap.java:299)
at
org.apache.wicket.util.concurrent.ConcurrentHashMap.put(
ConcurrentHashMap.java:533)
at
org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put
 (
MarkupCache.java:711)
at
org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java
 :437)
at
org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
MarkupCache.java:520)
at org.apache.wicket.markup.MarkupCache.getMarkup(
   MarkupCache.java
:319)
at
   
   
  
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
(InheritedMarkupMarkupLoader.java:95)
at
   
   org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup
 (
InheritedMarkupMarkupLoader.java:63)
at
org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
DefaultMarkupLoader.java:55)
at
org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java
 :433)
at
org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
MarkupCache.java:520)
at org.apache.wicket.markup.MarkupCache.getMarkup(
   MarkupCache.java
:319)
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(
 MarkupCache.java
   :215)
at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:343)
at 

Re: wicketstuff-jamon

2008-03-18 Thread Eelco Hillenius
  I was browsing the sources for wicketstuff-jamon and I was wondering
  how to actually hook it up into my app?  How do you use the custom
  web request cycle instead of the default one provided by wicket?

By overriding newRequestCycle in your application class.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Bruno Borges
+1 definitely

On Tue, Mar 18, 2008 at 12:30 PM, Piller Sébastien [EMAIL PROTECTED]
wrote:

  +1 for the generics. One of the best things in JDK5 ;)

 [*X*] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3
 [ ] -1, I need a supported version running on Java 1.4

 On 3/17/08, Martijn Dashorst [EMAIL PROTECTED][EMAIL PROTECTED]wrote:

  Everybody is invited to vote! Please use

 [ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3
 [ ] -1, I need a supported version running on Java 1.4

 Let your voices be heard!

 Martijn

   - To
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional
 commands, e-mail: [EMAIL PROTECTED]




-- 
Bruno Borges
blog.brunoborges.com.br
+55 1185657739

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


wicket-stuff repeater error

2008-03-18 Thread Hoover, William
FYI...

http://wicketstuff.org/wicket13/repeater/ 

OrderedRepeatingView, RefreshingView, and Contacts Editor all throw Internal 
errors


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
Thank you Matej and Igor.  I learned several new things.  IAjaxCallDecorator
is very cool and I did not realize wicket:link works on stylesheet ref,
too. The wiki here:
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags
make it seem like it only work with a href and img src.

Igor: I'm not very on this one (src wmc):

 you can just create an anon subclass of src wmc and subclass
oncomponenttag() directly and save some space.

Do you mean this:

WebMarkupContainer img = new WebMarkupContainer(thumbnail) {
private static final long serialVersionUID = 1L;
@Override protected void onComponentTag(final ComponentTag tag){
super.onComponentTag(tag);
tag.put(src, thumbnailUrl);
}
};


== I have a couple of questions: ==

In Ajax mode, the browser address always show:

http://localhost:8080

so if I refresh, I get a new page, not the same existing page.  How can I
have the address like this:

http://localhost:8080/?wicket:interface=:0:1:::

so on refresh I get the same page (like in non-Ajax mode)?

2) When something goes wrong in Flickr, I throw a RuntimeException which
blows up in ListView's model.getObject().  I want to Ajax update the
feedbackPanel to show some error message. How can this be done?

Thank you very much.

On Mon, Mar 17, 2008 at 3:15 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 there are a couple of things i would change

 1) add(new StyleSheetReference(pageCss, getClass(), flickr.css));

 do you really need that? can you not simply put link tag inside
 wicket:link tags?

 2) // Initially there is no photo to display so add a temporary place
 holder component to make Wicket happy

 you dont need to do that, make loadable detachable model that is
 pulling image links return an empty list if tags string is empty, that
 way you add the listview right away and dont need that replace mambo
 jumbo

 3) Photo photo = (Photo) item.getModelObject(); item.add(new
 Thumbnail(t, photo));

 im not a big fan of that, why not simply item.add(new Thumbnail(t,
 item.getModel()));

 it makes code simpler, you dont load the model object needlessly, and
 it makes thumbnail more flexible by taking an imodel.

 4) img.add(new SimpleAttributeModifier(src, photo.getSmallSquareUrl()));

 you can just create an anon subclass of src wmc and subclass
 oncomponenttag() directly and save some space.

 pretty sweet tutorial though, thanks

 -igor


 On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
  Hi, I am new to Wicket and to help me learn, I created a Wicket version
 of
   the Flickr demo like the one on the Ruby on Rails site seen here
   http://www.rubyonrails.org/screencasts. I put my version in my blog
 here:
   http://limboville.blogspot.com/2008_03_01_archive.html.  Please take a
 look
   and give me some feedback.
 
   Thanks!
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matej Knopp
Hi,

you can mount your page using HybridUrlCodingStrategy. Then it should
automatically redirect to URL that has page instance information in
it.

-Matej

On Tue, Mar 18, 2008 at 7:48 PM, Matthew Young [EMAIL PROTECTED] wrote:
 Thank you Matej and Igor.  I learned several new things.  IAjaxCallDecorator
  is very cool and I did not realize wicket:link works on stylesheet ref,
  too. The wiki here:
  
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags
  make it seem like it only work with a href and img src.

  Igor: I'm not very on this one (src wmc):


   you can just create an anon subclass of src wmc and subclass
  oncomponenttag() directly and save some space.

  Do you mean this:

 WebMarkupContainer img = new WebMarkupContainer(thumbnail) {
 private static final long serialVersionUID = 1L;
 @Override protected void onComponentTag(final ComponentTag tag){
 super.onComponentTag(tag);
 tag.put(src, thumbnailUrl);
 }
 };


  == I have a couple of questions: ==

  In Ajax mode, the browser address always show:

 http://localhost:8080

  so if I refresh, I get a new page, not the same existing page.  How can I
  have the address like this:

 http://localhost:8080/?wicket:interface=:0:1:::

  so on refresh I get the same page (like in non-Ajax mode)?

  2) When something goes wrong in Flickr, I throw a RuntimeException which
  blows up in ListView's model.getObject().  I want to Ajax update the
  feedbackPanel to show some error message. How can this be done?

  Thank you very much.


  On Mon, Mar 17, 2008 at 3:15 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:



  there are a couple of things i would change
  
   1) add(new StyleSheetReference(pageCss, getClass(), flickr.css));
  
   do you really need that? can you not simply put link tag inside
   wicket:link tags?
  
   2) // Initially there is no photo to display so add a temporary place
   holder component to make Wicket happy
  
   you dont need to do that, make loadable detachable model that is
   pulling image links return an empty list if tags string is empty, that
   way you add the listview right away and dont need that replace mambo
   jumbo
  
   3) Photo photo = (Photo) item.getModelObject(); item.add(new
   Thumbnail(t, photo));
  
   im not a big fan of that, why not simply item.add(new Thumbnail(t,
   item.getModel()));
  
   it makes code simpler, you dont load the model object needlessly, and
   it makes thumbnail more flexible by taking an imodel.
  
   4) img.add(new SimpleAttributeModifier(src, photo.getSmallSquareUrl()));
  
   you can just create an anon subclass of src wmc and subclass
   oncomponenttag() directly and save some space.
  
   pretty sweet tutorial though, thanks
  
   -igor
  
  
   On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
Hi, I am new to Wicket and to help me learn, I created a Wicket version
   of
 the Flickr demo like the one on the Ruby on Rails site seen here
 http://www.rubyonrails.org/screencasts. I put my version in my blog
   here:
 http://limboville.blogspot.com/2008_03_01_archive.html.  Please take a
   look
 and give me some feedback.
   
 Thanks!
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread James McLaughlin
 +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Lars Borup Jensen
Well - I do the following on the TextField which is rendered in each cell

field.add(new AjaxFormComponentUpdatingBehavior(onblur)
{
protected void onUpdate(AjaxRequestTarget target)
{

((DefaultTreeModel)treeTable.getModelObject()).nodeChanged(treeNode);
treeTable.updateTree(target);
target.focusComponent(field);
}
});

As you can see, I call nodeChanged with the specific node, which has been
changed and hence needs re-rendereing. Then I call updateTree, to mak sure
its attached to the Ajax response and thats it.
I'll try to do some debug later to see if I can pin-point the exact problem
but I'm quite new to Wicket (4 days since I started Wicket'eering ;-) ) so I
can't really say I understand the whole concept in-depth as of yet.
But I would like to say thanks to the guys on this mailinglist for answering
our newbie questions - its a great help...


On Tue, Mar 18, 2008 at 4:08 PM, Igor Vaynberg wrote:

 is there a reason why you are actually recreating the
 textfields/updating the entire treetable? if you do that i cant think
 of any work around off the top of my head, maybe matej can since he
 wrote the treetable.

 -igor




Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Markus Hjort
+1, Wicket 1.4 is 1.3 + generics, drop support for 1.3

-Markus


Re: Problems with clearing of filter form

2008-03-18 Thread Kai Mütz
Nobody out there with a similar problem? I have mounted the page as
bookmarable page. Can this cause the problem? I have already set the
response header to no-cache.

Anybody an idea?

2008/3/17, Kai Mütz [EMAIL PROTECTED]:

 Hi,

 I am using the filter toolbar with filter form within a DefaultDataTable
 very similar to the phonebook example. I also use the GoAndClearFilter.
 The problem is the clear function: If I press the clear button the
 filter form modal seems to be updated/cleared because all (non filtered)
 results are shown. But the input fields (TextFiltered and
 ChoiceFiltered) of the filter form are not cleared. Does anybody know
 this problem?

 Regards, Kai



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Matej Knopp
Node changed event tells the tree that the node has been changed and
rebuilts the actual tree item component. Are you sure that you need to
refresh tree item component?

Btw. Why are you callind focusComponent on component that has just been blurred?

-Matej

On Tue, Mar 18, 2008 at 8:30 PM, Lars Borup Jensen [EMAIL PROTECTED] wrote:
 Well - I do the following on the TextField which is rendered in each cell


  field.add(new AjaxFormComponentUpdatingBehavior(onblur)
 {
 protected void onUpdate(AjaxRequestTarget target)
 {

  ((DefaultTreeModel)treeTable.getModelObject()).nodeChanged(treeNode);
 treeTable.updateTree(target);
 target.focusComponent(field);
 }
 });

  As you can see, I call nodeChanged with the specific node, which has been
  changed and hence needs re-rendereing. Then I call updateTree, to mak sure
  its attached to the Ajax response and thats it.
  I'll try to do some debug later to see if I can pin-point the exact problem
  but I'm quite new to Wicket (4 days since I started Wicket'eering ;-) ) so I
  can't really say I understand the whole concept in-depth as of yet.
  But I would like to say thanks to the guys on this mailinglist for answering
  our newbie questions - its a great help...




  On Tue, Mar 18, 2008 at 4:08 PM, Igor Vaynberg wrote:

   is there a reason why you are actually recreating the
   textfields/updating the entire treetable? if you do that i cant think
   of any work around off the top of my head, maybe matej can since he
   wrote the treetable.
  
   -igor
  
  




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TreeTable with ajax markupId problem

2008-03-18 Thread Lars Borup Jensen
Hi Matej,

If I leave out the the treeTable.updateTree(target); line, my row is not
refreshed.
I have a TreeTable with 7 columns. When I enter text in the first column,
the 7th column of the same row needs to be refreshed (calculates sum). Since
this refreshes the column in which the user just entered data, the cursor is
removed, therefore I tried to put the cursor back in by using the
focusComponent (hackish I know - but since I update the row in which the
cursor is placed, I see no way around it)
Theres a big chance I goin' the wrong way about doing this.
PS: I update the 7th column onBlur


Well -

On Tue, Mar 18, 2008 at 8:55 PM, Matej Knopp  wrote:

 Node changed event tells the tree that the node has been changed and
 rebuilts the actual tree item component. Are you sure that you need to
 refresh tree item component?

 Btw. Why are you callind focusComponent on component that has just been
 blurred?

 -Matej




Re: After 1 minute the Pagemap null is still locked

2008-03-18 Thread Igor Vaynberg
i think the only way this can happen is that you have something that
really takes longer then 1 minute to execute. i dont see how wicket
can take over your cpuso may be it is that runaway process that
does that...

i think to debug it you might want to attach a profiler to the server
and wait for it to happen, take a cpu timing profile and see what was
going on during the spike...

does the message tell you who it is locked by? which page or
otherwise? if not that is possibly something we can improve also...

-igor

On Tue, Mar 18, 2008 at 1:06 PM, Jeremy Levy [EMAIL PROTECTED] wrote:
 I am seeing the After 1 minute the Pagemap null is still locked error in
  production a couple of times a day for about the last week or so.  We put in
  a major update to our site about 3 weeks ago, but only recently started
  seeing this error.  I suspect they are related.

  From doing some research on the mailinglist it seems that this comes up when
  a user requests a new page while there is an open request still processing.

  http://www.nabble.com/pagemap-locking-to11350774.html#a11350774

  At the same time (or a few seconds before) the CPU is pegged at 100% and
  stays that way.  Overtime the CPU usage progressively gets more and more
  backed up (I assume because this issue keeps happening and compounds the
  load).

  The longest page request on the site is a panel which has 4 child lazy
  loading panels but none of them take longer then a max of 4 seconds, which
  is pretty strictly enforced.

  The CPU getting pegged is a huge problem because it is forcing us to restart
  the server every some often.

  For now we have not been able to reproduce this error in a development
  environment, any suggestions, or troubleshooting ideas?

  Jeremy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: After 1 minute the Pagemap null is still locked

2008-03-18 Thread Martijn Dashorst
I suggest getting a thread dump at the time of the exception, to see
which threads are stuck. You can do that by sending a kill -3 to the
java process running your webapp. The stack traces should be in your
console output captured by your server.

Martijn

On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i think the only way this can happen is that you have something that
  really takes longer then 1 minute to execute. i dont see how wicket
  can take over your cpuso may be it is that runaway process that
  does that...

  i think to debug it you might want to attach a profiler to the server
  and wait for it to happen, take a cpu timing profile and see what was
  going on during the spike...

  does the message tell you who it is locked by? which page or
  otherwise? if not that is possibly something we can improve also...

  -igor


  On Tue, Mar 18, 2008 at 1:06 PM, Jeremy Levy [EMAIL PROTECTED] wrote:
   I am seeing the After 1 minute the Pagemap null is still locked error in
production a couple of times a day for about the last week or so.  We put 
 in
a major update to our site about 3 weeks ago, but only recently started
seeing this error.  I suspect they are related.
  
From doing some research on the mailinglist it seems that this comes up 
 when
a user requests a new page while there is an open request still 
 processing.
  
http://www.nabble.com/pagemap-locking-to11350774.html#a11350774
  
At the same time (or a few seconds before) the CPU is pegged at 100% and
stays that way.  Overtime the CPU usage progressively gets more and more
backed up (I assume because this issue keeps happening and compounds the
load).
  
The longest page request on the site is a panel which has 4 child lazy
loading panels but none of them take longer then a max of 4 seconds, which
is pretty strictly enforced.
  
The CPU getting pegged is a huge problem because it is forcing us to 
 restart
the server every some often.
  
For now we have not been able to reproduce this error in a development
environment, any suggestions, or troubleshooting ideas?
  
Jeremy
  


 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Linking radio buttons to textfield model update

2008-03-18 Thread Michael Mehrle
Anyone? I also forgot to mention that three of the radio buttons are
associated with a textbox, but two are not (radio buttons without
textfields). Would love to know how to build this and properly assign
the model.

Michael

-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 1:56 PM
To: users@wicket.apache.org
Subject: Linking radio buttons to textfield model update

I've got a group of seven radio buttons, some of which are supposed to
be correlated with a textfield. Meaning, when I select a particular
radio button the textfield on its right side is supposed to get a cursor
focus. Similarly, whenever I change my radio button selection, I need
any previously entered text to be cleared (and the model as well).

I can imagine various scenarios of how to write this - is there a
default/easy approach without having to sling JavaScript?

Michael


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Linking radio buttons to textfield model update

2008-03-18 Thread Igor Vaynberg
RadioChoice supports wantOnSelectionChangedNotification() you can use
that to get a callback whenever a new option is selected, then call
clearinput() on whatever textbox needs to be made blank

-igor

On Tue, Mar 18, 2008 at 1:36 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
 Anyone? I also forgot to mention that three of the radio buttons are
  associated with a textbox, but two are not (radio buttons without
  textfields). Would love to know how to build this and properly assign
  the model.

  Michael



  -Original Message-
  From: Michael Mehrle [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 17, 2008 1:56 PM
  To: users@wicket.apache.org
  Subject: Linking radio buttons to textfield model update

  I've got a group of seven radio buttons, some of which are supposed to
  be correlated with a textfield. Meaning, when I select a particular
  radio button the textfield on its right side is supposed to get a cursor
  focus. Similarly, whenever I change my radio button selection, I need
  any previously entered text to be cleared (and the model as well).

  I can imagine various scenarios of how to write this - is there a
  default/easy approach without having to sling JavaScript?

  Michael


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
It's Amateras:
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor


On Mon, Mar 17, 2008 at 7:57 PM, Fernando Wermus [EMAIL PROTECTED]
wrote:

 Which is the name of the embebed Eclipse browser you are using?

 On Mon, Mar 17, 2008 at 7:15 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  there are a couple of things i would change
 
  1) add(new StyleSheetReference(pageCss, getClass(), flickr.css));
 
  do you really need that? can you not simply put link tag inside
  wicket:link tags?
 
  2) // Initially there is no photo to display so add a temporary place
  holder component to make Wicket happy
 
  you dont need to do that, make loadable detachable model that is
  pulling image links return an empty list if tags string is empty, that
  way you add the listview right away and dont need that replace mambo
  jumbo
 
  3) Photo photo = (Photo) item.getModelObject(); item.add(new
  Thumbnail(t, photo));
 
  im not a big fan of that, why not simply item.add(new Thumbnail(t,
  item.getModel()));
 
  it makes code simpler, you dont load the model object needlessly, and
  it makes thumbnail more flexible by taking an imodel.
 
  4) img.add(new SimpleAttributeModifier(src, photo.getSmallSquareUrl
 ()));
 
  you can just create an anon subclass of src wmc and subclass
  oncomponenttag() directly and save some space.
 
  pretty sweet tutorial though, thanks
 
  -igor
 
 
  On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED]
 wrote:
   Hi, I am new to Wicket and to help me learn, I created a Wicket
 version
  of
the Flickr demo like the one on the Ruby on Rails site seen here
http://www.rubyonrails.org/screencasts. I put my version in my blog
  here:
http://limboville.blogspot.com/2008_03_01_archive.html.  Please take
 a
  look
and give me some feedback.
  
Thanks!
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Fernando Wermus.



Re: wicketstuff-jamon

2008-03-18 Thread lars vonk
Please beware that it's still in development (just started few weeks ago).
The labels are added to JAmon, but for the admin functionality you still
need to use the provided JAMon admin functionality (jsps).

I am currently Wicketising (new verb?) the admin interface now, but that is
far from finished.

You should override the newRequestCycle to return the
JamonMonitoredWebRequestCycle and the newRequestCycleProcessor to return the
JamonAwareWebRequestCycleProcessor


Cheers, Lars



On Tue, Mar 18, 2008 at 6:03 PM, Eelco Hillenius [EMAIL PROTECTED]
wrote:

   I was browsing the sources for wicketstuff-jamon and I was wondering
   how to actually hook it up into my app?  How do you use the custom
   web request cycle instead of the default one provided by wicket?

 By overriding newRequestCycle in your application class.

 Eelco

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Add attributes to markup

2008-03-18 Thread Igor Vaynberg
you are talking about adding something to raw markup - eg markup that
is not attached to any component? you can use IMarkupFilter for that

-igor


On Tue, Mar 18, 2008 at 2:42 PM, hjuturu [EMAIL PROTECTED] wrote:

  Hi All
  In wicket we can use AttributeModifier or AttributeAppender to make changes
  to already existing attributes . But is there anyway we can add a new
  attribute to markup using wicket API

  e.g : if i have textarea id=123jhsakjhas/textarea

  i would like to add a class attribute
  textarea id=123 class=stylefortextjhsakjhas/textarea

  This attribute has to be done dynamically and shouldnt exist upfront

  Thanks
  Haritha
  --
  View this message in context: 
 http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131148.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Add attributes to markup

2008-03-18 Thread Maurice Marrink
AttributeModifier has the ability to add the attribute if not already
present f you use the following constructor:
public AttributeModifier(final String attribute, final boolean
addAttributeIfNotPresent, final IModel replaceModel)

personally i prefer the SimpleAttributeModifier which always adds /
replaces the attribute, but like the name suggests it is pretty simple
and requires the attribute value upfront. If your attribute value is
changing all the time you need a modifier that accepts a model, like
AttributeModifier.

Maurice

On Tue, Mar 18, 2008 at 10:49 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you are talking about adding something to raw markup - eg markup that
  is not attached to any component? you can use IMarkupFilter for that

  -igor




  On Tue, Mar 18, 2008 at 2:42 PM, hjuturu [EMAIL PROTECTED] wrote:
  
Hi All
In wicket we can use AttributeModifier or AttributeAppender to make 
 changes
to already existing attributes . But is there anyway we can add a new
attribute to markup using wicket API
  
e.g : if i have textarea id=123jhsakjhas/textarea
  
i would like to add a class attribute
textarea id=123 class=stylefortextjhsakjhas/textarea
  
This attribute has to be done dynamically and shouldnt exist upfront
  
Thanks
Haritha
--
View this message in context: 
 http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131148.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Add attributes to markup

2008-03-18 Thread hjuturu

Hi Igor
I have two components AjaxEditableLabel and AjaxEditableMultiLineLabel.
I am able to set the style of the AjaxEditableLabel  element by using css
span.inline-edit input
Similarly i would like to add a class to the TextArea generated by
AjaxEditableMultiLineLabel , so that i can change the text style when the
editor opens.

Do i use IMarkupFilter  for this?

Thanks
Haritha



igor.vaynberg wrote:
 
 you are talking about adding something to raw markup - eg markup that
 is not attached to any component? you can use IMarkupFilter for that
 
 -igor
 
 
 On Tue, Mar 18, 2008 at 2:42 PM, hjuturu [EMAIL PROTECTED] wrote:

  Hi All
  In wicket we can use AttributeModifier or AttributeAppender to make
 changes
  to already existing attributes . But is there anyway we can add a new
  attribute to markup using wicket API

  e.g : if i have textarea id=123jhsakjhas/textarea

  i would like to add a class attribute
  textarea id=123 class=stylefortextjhsakjhas/textarea

  This attribute has to be done dynamically and shouldnt exist upfront

  Thanks
  Haritha
  --
  View this message in context:
 http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131148.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131939.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Add attributes to markup

2008-03-18 Thread Igor Vaynberg
see SimpleAttributeModifier

-igor


On Tue, Mar 18, 2008 at 3:15 PM, hjuturu [EMAIL PROTECTED] wrote:

  Hi Igor
  I have two components AjaxEditableLabel and AjaxEditableMultiLineLabel.
  I am able to set the style of the AjaxEditableLabel  element by using css
  span.inline-edit input
  Similarly i would like to add a class to the TextArea generated by
  AjaxEditableMultiLineLabel , so that i can change the text style when the
  editor opens.

  Do i use IMarkupFilter  for this?

  Thanks
  Haritha





  igor.vaynberg wrote:
  
   you are talking about adding something to raw markup - eg markup that
   is not attached to any component? you can use IMarkupFilter for that
  
   -igor
  
  
   On Tue, Mar 18, 2008 at 2:42 PM, hjuturu [EMAIL PROTECTED] wrote:
  
Hi All
In wicket we can use AttributeModifier or AttributeAppender to make
   changes
to already existing attributes . But is there anyway we can add a new
attribute to markup using wicket API
  
e.g : if i have textarea id=123jhsakjhas/textarea
  
i would like to add a class attribute
textarea id=123 class=stylefortextjhsakjhas/textarea
  
This attribute has to be done dynamically and shouldnt exist upfront
  
Thanks
Haritha
--
View this message in context:
   http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131148.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Add-attributes-to-markup-tp16131148p16131939.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: After 1 minute the Pagemap null is still locked

2008-03-18 Thread Jeremy Levy
Thanks Igor / Martijn for your help.

As you mentioned Wicket had nothing to do with it.  I had a piece of code
that was executed when a user clicked a certain link and was blocking by
accident, caught in a loop peging the CPU.  Your suggestions of kill -3 to
get the thread dump over a couple of samples helped me to narrow down the
issue and fix it.

Thanks very much.

Jeremy

On Tue, Mar 18, 2008 at 4:26 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 I suggest getting a thread dump at the time of the exception, to see
 which threads are stuck. You can do that by sending a kill -3 to the
 java process running your webapp. The stack traces should be in your
 console output captured by your server.

 Martijn

 On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
  i think the only way this can happen is that you have something that
   really takes longer then 1 minute to execute. i dont see how wicket
   can take over your cpuso may be it is that runaway process that
   does that...
 
   i think to debug it you might want to attach a profiler to the server
   and wait for it to happen, take a cpu timing profile and see what was
   going on during the spike...
 
   does the message tell you who it is locked by? which page or
   otherwise? if not that is possibly something we can improve also...
 
   -igor
 
 
   On Tue, Mar 18, 2008 at 1:06 PM, Jeremy Levy [EMAIL PROTECTED] wrote:
I am seeing the After 1 minute the Pagemap null is still locked
 error in
 production a couple of times a day for about the last week or so.
  We put in
 a major update to our site about 3 weeks ago, but only recently
 started
 seeing this error.  I suspect they are related.
   
 From doing some research on the mailinglist it seems that this comes
 up when
 a user requests a new page while there is an open request still
 processing.
   
 http://www.nabble.com/pagemap-locking-to11350774.html#a11350774
   
 At the same time (or a few seconds before) the CPU is pegged at 100%
 and
 stays that way.  Overtime the CPU usage progressively gets more and
 more
 backed up (I assume because this issue keeps happening and compounds
 the
 load).
   
 The longest page request on the site is a panel which has 4 child
 lazy
 loading panels but none of them take longer then a max of 4 seconds,
 which
 is pretty strictly enforced.
   
 The CPU getting pegged is a huge problem because it is forcing us to
 restart
 the server every some often.
   
 For now we have not been able to reproduce this error in a
 development
 environment, any suggestions, or troubleshooting ideas?
   
 Jeremy
   
 
 
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
Hi, Igor:

nstead of throwing the exception call error(message) on the page and
return an empty list from the model

So I register a error to the page in the model but the feedback message
doesn't show.  Here is a small sample to demonstrate:

HomePage.html:

html
head/head
span wicket:id=messagemessage will be here/span
form wicket:id=form
input type=text wicket:id=word/
input type=submit value=Enter wicket:id=submitButton/
/form
span wicket:id=feedbackFEEDBACK/span
/html


HomePage.java

import org.apache.wicket.PageParameters;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.form.AjaxFallbackButton;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;

private String word;

public HomePage(final PageParameters parameters) {

add(new
FeedbackPanel(feedback).setOutputMarkupPlaceholderTag(true));
// if the word 'blowup' is entered, this register a error message to
the page
IModel model = new Model() {
private static final long serialVersionUID = 1L;
@Override public Object getObject() {
if (word != null  word.equals(blowup)) {
word = -b-l-o-w-u-p-;
HomePage.this.fatal(This message is from model.);
return BAD THING HAPPENED IN MODEL;
} else {
return The word is: \ + (word == null ?  n u l l  :
word) + \;
}
}
};
add(new Label(message, model).setOutputMarkupId(true));
Form form = new Form(form, new CompoundPropertyModel(this));
add(form);
form.add(new TextField(word).setRequired(true));
AjaxFallbackButton submitButton = new
AjaxFallbackButton(submitButton, form) {
private static final long serialVersionUID = 1L;
@Override protected void onSubmit(AjaxRequestTarget target, Form
f) {
if (word != null  word.equals(blowup)) {
HomePage.this.error(This message is from onSubmit.
There should also be a message from model);
}
if (target != null) {
target.addComponent(HomePage.this.get(feedback));
// clear error feedback if any
target.addComponent(HomePage.this.get(message));
}
}

@Override protected void onError(AjaxRequestTarget target, Form
f) {
target.addComponent(HomePage.this.get(feedback));
// show updated error feedback
}
};
form.add(submitButton);
}
}



Enter the word 'blowup' and the Model registers a error message to the page,
this message doesn't show.


On Tue, Mar 18, 2008 at 12:19 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 On Tue, Mar 18, 2008 at 11:48 AM, Matthew Young [EMAIL PROTECTED] wrote:
   Do you mean this:
 
  WebMarkupContainer img = new WebMarkupContainer(thumbnail) {
  private static final long serialVersionUID = 1L;
  @Override protected void onComponentTag(final ComponentTag
 tag){
  super.onComponentTag(tag);
  tag.put(src, thumbnailUrl);
  }
  };

 yep

   2) When something goes wrong in Flickr, I throw a RuntimeException
 which
   blows up in ListView's model.getObject().  I want to Ajax update the
   feedbackPanel to show some error message. How can this be done?

 instead of throwing the exception call error(message) on the page and
 return an empty list from the model

 -igor

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
Hi,

How to make HybridUrlCodingStrategy work on home page if my
contextpath=/?  HybridUrlCodingStrategy doesn't allow mapping /.

On Tue, Mar 18, 2008 at 11:52 AM, Matej Knopp [EMAIL PROTECTED] wrote:

 Hi,

 you can mount your page using HybridUrlCodingStrategy. Then it should
 automatically redirect to URL that has page instance information in
 it.

 -Matej

 On Tue, Mar 18, 2008 at 7:48 PM, Matthew Young [EMAIL PROTECTED] wrote:
  Thank you Matej and Igor.  I learned several new things.
  IAjaxCallDecorator
   is very cool and I did not realize wicket:link works on stylesheet
 ref,
   too. The wiki here:
 
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags
   make it seem like it only work with a href and img src.
 
   Igor: I'm not very on this one (src wmc):
 
 
you can just create an anon subclass of src wmc and subclass
   oncomponenttag() directly and save some space.
 
   Do you mean this:
 
  WebMarkupContainer img = new WebMarkupContainer(thumbnail) {
  private static final long serialVersionUID = 1L;
  @Override protected void onComponentTag(final ComponentTag
 tag){
  super.onComponentTag(tag);
  tag.put(src, thumbnailUrl);
  }
  };
 
 
   == I have a couple of questions: ==
 
   In Ajax mode, the browser address always show:
 
  http://localhost:8080
 
   so if I refresh, I get a new page, not the same existing page.  How can
 I
   have the address like this:
 
  http://localhost:8080/?wicket:interface=:0:1:::
 
   so on refresh I get the same page (like in non-Ajax mode)?
 
   2) When something goes wrong in Flickr, I throw a RuntimeException
 which
   blows up in ListView's model.getObject().  I want to Ajax update the
   feedbackPanel to show some error message. How can this be done?
 
   Thank you very much.
 
 
   On Mon, Mar 17, 2008 at 3:15 PM, Igor Vaynberg [EMAIL PROTECTED]
 
   wrote:
 
 
 
   there are a couple of things i would change
   
1) add(new StyleSheetReference(pageCss, getClass(), flickr.css));
   
do you really need that? can you not simply put link tag inside
wicket:link tags?
   
2) // Initially there is no photo to display so add a temporary place
holder component to make Wicket happy
   
you dont need to do that, make loadable detachable model that is
pulling image links return an empty list if tags string is empty,
 that
way you add the listview right away and dont need that replace mambo
jumbo
   
3) Photo photo = (Photo) item.getModelObject(); item.add(new
Thumbnail(t, photo));
   
im not a big fan of that, why not simply item.add(new Thumbnail(t,
item.getModel()));
   
it makes code simpler, you dont load the model object needlessly, and
it makes thumbnail more flexible by taking an imodel.
   
4) img.add(new SimpleAttributeModifier(src, photo.getSmallSquareUrl
 ()));
   
you can just create an anon subclass of src wmc and subclass
oncomponenttag() directly and save some space.
   
pretty sweet tutorial though, thanks
   
-igor
   
   
On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED]
 wrote:
 Hi, I am new to Wicket and to help me learn, I created a Wicket
 version
of
  the Flickr demo like the one on the Ruby on Rails site seen here
  http://www.rubyonrails.org/screencasts. I put my version in my
 blog
here:
  http://limboville.blogspot.com/2008_03_01_archive.html.  Please
 take a
look
  and give me some feedback.

  Thanks!

   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: After 1 minute the Pagemap null is still locked

2008-03-18 Thread Martijn Dashorst
Glad to be of help. kill -3 is one of those gems you should never
forget as it can save your life. Kill to save your life: nice
slogan... :D

Martijn

On 3/19/08, Jeremy Levy [EMAIL PROTECTED] wrote:
 Thanks Igor / Martijn for your help.

  As you mentioned Wicket had nothing to do with it.  I had a piece of code
  that was executed when a user clicked a certain link and was blocking by
  accident, caught in a loop peging the CPU.  Your suggestions of kill -3 to
  get the thread dump over a couple of samples helped me to narrow down the
  issue and fix it.

  Thanks very much.


  Jeremy


  On Tue, Mar 18, 2008 at 4:26 PM, Martijn Dashorst 
  [EMAIL PROTECTED] wrote:

   I suggest getting a thread dump at the time of the exception, to see
   which threads are stuck. You can do that by sending a kill -3 to the
   java process running your webapp. The stack traces should be in your
   console output captured by your server.
  
   Martijn
  
   On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
i think the only way this can happen is that you have something that
 really takes longer then 1 minute to execute. i dont see how wicket
 can take over your cpuso may be it is that runaway process that
 does that...
   
 i think to debug it you might want to attach a profiler to the server
 and wait for it to happen, take a cpu timing profile and see what was
 going on during the spike...
   
 does the message tell you who it is locked by? which page or
 otherwise? if not that is possibly something we can improve also...
   
 -igor
   
   
 On Tue, Mar 18, 2008 at 1:06 PM, Jeremy Levy [EMAIL PROTECTED] wrote:
  I am seeing the After 1 minute the Pagemap null is still locked
   error in
   production a couple of times a day for about the last week or so.
We put in
   a major update to our site about 3 weeks ago, but only recently
   started
   seeing this error.  I suspect they are related.
 
   From doing some research on the mailinglist it seems that this comes
   up when
   a user requests a new page while there is an open request still
   processing.
 
   http://www.nabble.com/pagemap-locking-to11350774.html#a11350774
 
   At the same time (or a few seconds before) the CPU is pegged at 100%
   and
   stays that way.  Overtime the CPU usage progressively gets more and
   more
   backed up (I assume because this issue keeps happening and compounds
   the
   load).
 
   The longest page request on the site is a panel which has 4 child
   lazy
   loading panels but none of them take longer then a max of 4 seconds,
   which
   is pretty strictly enforced.
 
   The CPU getting pegged is a huge problem because it is forcing us to
   restart
   the server every some often.
 
   For now we have not been able to reproduce this error in a
   development
   environment, any suggestions, or troubleshooting ideas?
 
   Jeremy
 
   
   
-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.2 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Building Wickststuff Doje fails

2008-03-18 Thread Stefan Lindner
When I build wicketstuff dojo from current svn checkout, the resulting
jar file is corrupt. It's the MANIFEST.MV file that causes the problem.
The MANIFEST.MF file from the current distributioin is

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: wicket
Build-Jdk: 1.5.0-p4

When I build the current trunk with Java 5 Update 15, Maven 2.0.4 under
Windows XP the MANIFEST.MF file is

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: ingres
Build-Jdk: 1.5.0_15
Extension-Name: wicketstuff-dojo
Specification-Title: An integration project for the Ajax
JavaScript li
 brary Dojo. This project provides the basic AjaxHandler
for DOJO pr
 ocessing at the serverside, and Dojo/Wicket components.
Specification-Vendor: Wicket developers
Implementation-Vendor: Wicket developers
Implementation-Title: wicketstuff-dojo
Implementation-Version: 1.3.0-SNAPSHOT

It is the multi-line Specification-Title entry that causes the
problem. Deleting this entry solves the problem.

Stefan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Back button support

2008-03-18 Thread mfs

Would appreciate peoples comments on the examples below, I believe they can
give a good idea to people who cant relate to the problems relating to
browser back-button and application state...which wicket solves with
versioning..


Example 1 

Context : Your application follows a certain workflow where each page
represents a certain phase of the workflow and has a Next  Back link ,
clicking these links show the corresponding workflow-page dependending on
the very workflow phase the user is currently in 

Lets say for the above requirement you decide to maintain the
nextphase-url and previousphase-url (to be rendered on clicking
Next/Back link) in the user session. Everything would work fine as long as
the browser back button is not clicked. While being on the WorkFlow - Step
4 page, the user hits the browser back button which shows the previous page
(i.e. WorkFlow - Step 3) from the browser cache, now this leaves the
application in an inconsistent state where you are on Step 3, whereas the
server's state is that you're on Step 4 and hence next/previous urls
maintained in the user session doesnt present the right flow, and hence
clicking the urls would take the user to either WorkFlow - Step 5 (for
Next) or WorkFlow - Step 3 (for Back) though it should be taken to Step 2
and 4 instead. 

Example 2 

Context : Display Person List in a Pageable DataGrid where each item in the
grid can be selected to perform certain actions, such as Delete Selected.
The grid displays 10 records at a time and has next/previous link to
paginate through the grid 

For the above requirement you maintain the list of selected items in the
user session AS LONG AS it is the currently viewed page, once you move on to
the next page the selected items are removed from the session. You paginate
through the person datagrid and select 10 items to delete from different
datagrid pages. While being on Page 3 of the DataGrid, you click on the
FAQ page instead of performing the Delete Selected action. At this point
you decide to go back to the Person List page (asking for trouble!!), by
clicking the browser back button, which shows the page from the browser
cache, with the datagrid showing Page 3 with two items selected as left
earlier. 

Finally you decide to perform Delete Selected action assuming the
application is smart enough to handle such scenario(s) and would delete all
the items you selected ealier, which isn't the case and would only delete
the items which are currently selected on the current data-grid page, since
the earlier selected items weren't in the user session anymore. 




Java Developer-3 wrote:
 
 It would be nice if an example of such ui interactions could be given...
 
 On Mon, Mar 17, 2008 at 4:57 PM, Java Developer [EMAIL PROTECTED]
 wrote:
 
 Been reading about wicket and would want to know the context in which the
 back button problem is being talked about..the only problem i have faced
 with respect to back button is the double form submission, cant frame
 myself
 in the right context...Can someone give a real life example of what
 problem
 can a back button cause and how does versioning resolves it..



 
 

-- 
View this message in context: 
http://www.nabble.com/Back-button-support-tp16111425p16135110.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Jonathan Locke


this looks like it's probably cool, but there's no audio and the video size
is such that i can't read anything.


MYoung wrote:
 
 Hi, I am new to Wicket and to help me learn, I created a Wicket version of
 the Flickr demo like the one on the Ruby on Rails site seen here
 http://www.rubyonrails.org/screencasts. I put my version in my blog here:
 http://limboville.blogspot.com/2008_03_01_archive.html.  Please take a
 look
 and give me some feedback.
 
 Thanks!
 
 

-- 
View this message in context: 
http://www.nabble.com/My-Wicket-Flickr-Demo-a-la-Ruby-On-Rails-tp16106896p16135954.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket Model and JPA inheritance

2008-03-18 Thread xdirewolfx

Hi guys,

Say I got these 3 classes:
@Entity
@Table(name=owner)
@Inheritance
public abstract class Owner implements BaseObject{}

and
@Entity
@DiscriminatorValue(value=project)
public class OwnerProject extends Owner{}

and

@Entity
@DiscriminatorValue(value=other)
public class OwnerSomeOtherProject extends Owner{}

It is no issue when I want to list out all owners. How do I then add another
column to indicate the types with minimal work?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Model-and-JPA-inheritance-tp16135997p16135997.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Trevor Campbell




Thanks Maurice,

I was able to get this to work by copying PagingNavigator,
PagingNavigation, PagingNavigationLink and
PagingNavigationIncrementLink.

The only substantial changes I made were to make PagingNavigationLink
and PagingNavigationIncrementLink extend SubmitLink and then in the
onsubit to do some horrible stuff to update the models.

 public void onSubmit()
 {
 pageable.setCurrentPage(getPageNumber());
 FormComponent.IVisitor visitor = new
FormComponent.IVisitor(){
 @Override
 public Object formComponent(IFormVisitorParticipant
formComponent)
 {
 if (formComponent instanceof FormComponent)
 {
 ((FormComponent) formComponent).validate();
 ((FormComponent)
formComponent).updateModel();
 }
 if (formComponent.processChildren())
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL;
 }
 else
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
 }
 }
 };
 getForm().visitFormComponents(visitor);
 }

I still haven't got the autoEnable and linksTo functionality working,
but it is just some cosmetics.

Trev

Maurice Marrink wrote:

  That is a known issue, unfortunately you will need to create your own
version of a submittingpagingnavigator. The api for those classes is
however not very extendable friendly so you probably end up
copy-pasting large portions of code.
I believe Martijn is planning on refactoring that component, just not
for wicket 1.3.x.

As an alternative you might be able to use ajaxcheckboxes?

Maurice

On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote:
  
  
I have a form containing a GridView with a PagingNavigator.
 Within each cell I have an image and a CheckBox.  When a user submits
 the form I collect all the image refs from the selected cells and
 process them.

 My problem is I would like to do this across multiple pages.  So the user
 scenario is:
 A user goes through the pages using the navigator and selects, using the
 checkboxes, what images they like and then presses a select button.

 Unfortunately the selections are not preserved when I use a
 PagingNavigator on the form.  A paging navigator renders links rather
 than a submit, so any selections are lost.

 Any ideas how to get around this??


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Igor Vaynberg
you shouldnt have to do any of that form updating yourself...it should
all be done before your link's onsubmit is called, there is a reason
why its called a submitlink

-igor


On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote:

  Thanks Maurice,

  I was able to get this to work by copying PagingNavigator,
 PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink.

  The only substantial changes I made were to make PagingNavigationLink and
 PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to
 do some horrible stuff to update the models.

  public void onSubmit()
  {
  pageable.setCurrentPage(getPageNumber());
  FormComponent.IVisitor visitor = new
 FormComponent.IVisitor(){
  @Override
  public Object formComponent(IFormVisitorParticipant
 formComponent)
  {
  if (formComponent instanceof FormComponent)
  {
  ((FormComponent) formComponent).validate();
  ((FormComponent) formComponent).updateModel();
  }
  if (formComponent.processChildren())
  {
  return
 Component.IVisitor.CONTINUE_TRAVERSAL;
  }
  else
  {
  return
 Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
  }
  }
  };
  getForm().visitFormComponents(visitor);
  }

  I still haven't got the autoEnable and linksTo functionality working,  but
 it is just some cosmetics.

  Trev

  Maurice Marrink wrote:

  That is a known issue, unfortunately you will need to create your own
 version of a submittingpagingnavigator. The api for those classes is
 however not very extendable friendly so you probably end up
 copy-pasting large portions of code.
 I believe Martijn is planning on refactoring that component, just not
 for wicket 1.3.x.

 As an alternative you might be able to use ajaxcheckboxes?

 Maurice

 On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED]
 wrote:


  I have a form containing a GridView with a PagingNavigator.
  Within each cell I have an image and a CheckBox. When a user submits
  the form I collect all the image refs from the selected cells and
  process them.

  My problem is I would like to do this across multiple pages. So the user
  scenario is:
  A user goes through the pages using the navigator and selects, using the
  checkboxes, what images they like and then presses a select button.

  Unfortunately the selections are not preserved when I use a
  PagingNavigator on the form. A paging navigator renders links rather
  than a submit, so any selections are lost.

  Any ideas how to get around this??


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



  - To
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional
 commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Trevor Campbell




I should have added, I needed to setDefaultFormProcessing(false)
because I don't want to process the form while just paging forward and
without the DefaultFormProcessing, the model wasn't updating.

Is this wrong? or am I missing something else.

Igor Vaynberg wrote:

  you shouldnt have to do any of that form updating yourself...it should
all be done before your link's onsubmit is called, there is a reason
why its called a submitlink

-igor


On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote:
  
  
 Thanks Maurice,

 I was able to get this to work by copying PagingNavigator,
PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink.

 The only substantial changes I made were to make PagingNavigationLink and
PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to
do some horrible stuff to update the models.

 public void onSubmit()
 {
 pageable.setCurrentPage(getPageNumber());
 FormComponent.IVisitor visitor = new
FormComponent.IVisitor(){
 @Override
 public Object formComponent(IFormVisitorParticipant
formComponent)
 {
 if (formComponent instanceof FormComponent)
 {
 ((FormComponent) formComponent).validate();
 ((FormComponent) formComponent).updateModel();
 }
 if (formComponent.processChildren())
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL;
 }
 else
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
 }
 }
 };
 getForm().visitFormComponents(visitor);
 }

 I still haven't got the autoEnable and linksTo functionality working,  but
it is just some cosmetics.

 Trev

 Maurice Marrink wrote:

 That is a known issue, unfortunately you will need to create your own
version of a submittingpagingnavigator. The api for those classes is
however not very extendable friendly so you probably end up
copy-pasting large portions of code.
I believe Martijn is planning on refactoring that component, just not
for wicket 1.3.x.

As an alternative you might be able to use ajaxcheckboxes?

Maurice

On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED]
wrote:


 I have a form containing a GridView with a PagingNavigator.
 Within each cell I have an image and a CheckBox. When a user submits
 the form I collect all the image refs from the selected cells and
 process them.

 My problem is I would like to do this across multiple pages. So the user
 scenario is:
 A user goes through the pages using the navigator and selects, using the
 checkboxes, what images they like and then presses a select button.

 Unfortunately the selections are not preserved when I use a
 PagingNavigator on the form. A paging navigator renders links rather
 than a submit, so any selections are lost.

 Any ideas how to get around this??


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 - To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Igor Vaynberg
so you call setdefaultformprocessing(false) and yet update the form
yourself? that is the same as leaving setdefaultformprocessing(true)

-igor


On Tue, Mar 18, 2008 at 8:00 PM, Trevor Campbell [EMAIL PROTECTED] wrote:

  I should have added, I needed to setDefaultFormProcessing(false) because I
 don't want to process the form while just paging forward and without the
 DefaultFormProcessing, the model wasn't updating.

  Is this wrong? or am I missing something else.



  Igor Vaynberg wrote:
  you shouldnt have to do any of that form updating yourself...it should
 all be done before your link's onsubmit is called, there is a reason
 why its called a submitlink

 -igor


 On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED]
 wrote:


  Thanks Maurice,

  I was able to get this to work by copying PagingNavigator,
 PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink.

  The only substantial changes I made were to make PagingNavigationLink and
 PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to
 do some horrible stuff to update the models.

  public void onSubmit()
  {
  pageable.setCurrentPage(getPageNumber());
  FormComponent.IVisitor visitor = new
 FormComponent.IVisitor(){
  @Override
  public Object formComponent(IFormVisitorParticipant
 formComponent)
  {
  if (formComponent instanceof FormComponent)
  {
  ((FormComponent) formComponent).validate();
  ((FormComponent) formComponent).updateModel();
  }
  if (formComponent.processChildren())
  {
  return
 Component.IVisitor.CONTINUE_TRAVERSAL;
  }
  else
  {
  return
 Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
  }
  }
  };
  getForm().visitFormComponents(visitor);
  }

  I still haven't got the autoEnable and linksTo functionality working, but
 it is just some cosmetics.

  Trev

  Maurice Marrink wrote:

  That is a known issue, unfortunately you will need to create your own
 version of a submittingpagingnavigator. The api for those classes is
 however not very extendable friendly so you probably end up
 copy-pasting large portions of code.
 I believe Martijn is planning on refactoring that component, just not
 for wicket 1.3.x.

 As an alternative you might be able to use ajaxcheckboxes?

 Maurice

 On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED]
 wrote:


  I have a form containing a GridView with a PagingNavigator.
  Within each cell I have an image and a CheckBox. When a user submits
  the form I collect all the image refs from the selected cells and
  process them.

  My problem is I would like to do this across multiple pages. So the user
  scenario is:
  A user goes through the pages using the navigator and selects, using the
  checkboxes, what images they like and then presses a select button.

  Unfortunately the selections are not preserved when I use a
  PagingNavigator on the form. A paging navigator renders links rather
  than a submit, so any selections are lost.

  Any ideas how to get around this??


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



  - To
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional
 commands, e-mail: [EMAIL PROTECTED]

  -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





  - To
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional
 commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help with GridView and checkboxes.

2008-03-18 Thread Trevor Campbell




I am not really doing the normal form processing in the navigation.
The form has a navigator, just for showing more parts of the GridView,
it also has a submit button to process the users request after they
have selected items on one or more pages, So when they use the
navigator, all I do is update the component models, when they press the
submit button, I validate and process the whole form,

But I see your point. I suppose I could pull the code from the form
submit and process that in the onSubmit method of the default form
submit button. I will give that a try. But that might be a little
obscure if someone else were to use my components.



Igor Vaynberg wrote:

  so you call setdefaultformprocessing(false) and yet update the form
yourself? that is the same as leaving setdefaultformprocessing(true)

-igor


On Tue, Mar 18, 2008 at 8:00 PM, Trevor Campbell [EMAIL PROTECTED] wrote:
  
  
 I should have added, I needed to setDefaultFormProcessing(false) because I
don't want to process the form while just paging forward and without the
DefaultFormProcessing, the model wasn't updating.

 Is this wrong? or am I missing something else.



 Igor Vaynberg wrote:
 you shouldnt have to do any of that form updating yourself...it should
all be done before your link's onsubmit is called, there is a reason
why its called a submitlink

-igor


On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED]
wrote:


 Thanks Maurice,

 I was able to get this to work by copying PagingNavigator,
PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink.

 The only substantial changes I made were to make PagingNavigationLink and
PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to
do some horrible stuff to update the models.

 public void onSubmit()
 {
 pageable.setCurrentPage(getPageNumber());
 FormComponent.IVisitor visitor = new
FormComponent.IVisitor(){
 @Override
 public Object formComponent(IFormVisitorParticipant
formComponent)
 {
 if (formComponent instanceof FormComponent)
 {
 ((FormComponent) formComponent).validate();
 ((FormComponent) formComponent).updateModel();
 }
 if (formComponent.processChildren())
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL;
 }
 else
 {
 return
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
 }
 }
 };
 getForm().visitFormComponents(visitor);
 }

 I still haven't got the autoEnable and linksTo functionality working, but
it is just some cosmetics.

 Trev

 Maurice Marrink wrote:

 That is a known issue, unfortunately you will need to create your own
version of a submittingpagingnavigator. The api for those classes is
however not very extendable friendly so you probably end up
copy-pasting large portions of code.
I believe Martijn is planning on refactoring that component, just not
for wicket 1.3.x.

As an alternative you might be able to use ajaxcheckboxes?

Maurice

On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED]
wrote:


 I have a form containing a GridView with a PagingNavigator.
 Within each cell I have an image and a CheckBox. When a user submits
 the form I collect all the image refs from the selected cells and
 process them.

 My problem is I would like to do this across multiple pages. So the user
 scenario is:
 A user goes through the pages using the navigator and selects, using the
 checkboxes, what images they like and then presses a select button.

 Unfortunately the selections are not preserved when I use a
 PagingNavigator on the form. A paging navigator renders links rather
 than a submit, so any selections are lost.

 Any ideas how to get around this??


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 - To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 - To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread Antony Stubbs

+1

Most people who use Wicket, I imagine, would be pretty up to date.
-- 
View this message in context: 
http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16136628.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread francisco treacy
+1

On Wed, Mar 19, 2008 at 12:58 AM, Antony Stubbs [EMAIL PROTECTED] wrote:

  +1

  Most people who use Wicket, I imagine, would be pretty up to date.
  --
  View this message in context: 
 http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16136628.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


  -


 To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with clearing of filter form

2008-03-18 Thread Martin Makundi
Can you show any binding code related to your case?

2008/3/18, Kai Mütz [EMAIL PROTECTED]:
 Nobody out there with a similar problem? I have mounted the page as
  bookmarable page. Can this cause the problem? I have already set the
  response header to no-cache.

  Anybody an idea?

  2008/3/17, Kai Mütz [EMAIL PROTECTED]:
  
   Hi,
  
   I am using the filter toolbar with filter form within a DefaultDataTable
   very similar to the phonebook example. I also use the GoAndClearFilter.
   The problem is the clear function: If I press the clear button the
   filter form modal seems to be updated/cleared because all (non filtered)
   results are shown. But the input fields (TextFiltered and
   ChoiceFiltered) of the filter form are not cleared. Does anybody know
   this problem?
  
   Regards, Kai
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



changing dropdown labels in an AjaxEditableChoiceLabel

2008-03-18 Thread francisco treacy
hi,

i need to display/update some boolean properties in my domain model.
to achieve that i'm using a custom AjaxEditableChoiceLabel (from
wicket extensions) in my user interface.

why dropdown and not checkbox? well, because in fact there are 3
choices for this property in the database: true (yes), false (no),
null (unknown). my problem comes here: i'm having a bad time figuring
out how to translate between Boolean.TRUE, Boolean.FALSE, null  and
yes, no, unknown.

at first i thought it should be enough with a converter, so i overrode
that in my custom dropdown:

class CustomAjaxEditableChoiceLabel extends AjaxEditableChoiceLabel {

public CustomAjaxEditableChoiceLabel(String id) {
super(id, Arrays.asList(Boolean.TRUE, Boolean.FALSE, 
null));
}

@Override
protected void onEdit(AjaxRequestTarget target) {
if (VdWebSession.get().isAuthenticated()) {
super.onEdit(target);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target) {
super.onSubmit(target);
repo.persist((Doctor)getParent().getModelObject());
}

@Override
public IConverter getConverter(Class type) {
return new CustomBooleanConverter();
}

}


...and the converter

public class CustomBooleanConverter implements IConverter
{
@Override
public Object convertToObject(String string, Locale locale) {
if (string.equals(yes)) {
return Boolean.TRUE;
} else if (string.equals(no)) {
return Boolean.TRUE;
} else {
return null;
}

}

@Override
public String convertToString(Object object, Locale locale) {
if (object == null) {
return unknown;
}
Boolean b = (Boolean) object;
if (b) {
return yes;
} else {
return no;
}
}

}


and i'm instantiating the component like this:

setModel(new CompoundPropertyModel(doctor));
(...)
add(new CustomAjaxEditableChoiceLabel(free).setOutputMarkupId(true));

this is working very well, except for the labels when i enter the
dropdown mode i still see true, false, (blank). i want my
labels also to be displayed when entering in edit mode.

i read about IChoiceRenderer and i even implemented one, but i can't
use it with the CompoundPropertyModel (?) cause in my component
constructor i can't do
super(id, Arrays.asList(Boolean.TRUE, Boolean.FALSE, null), new
CustomDropDownRenderer());
 (i need to pass in a Model, which is not updated as it is with the
compound one. or how would you do?)

i would really appreciate some hints/ pointers; i've lost time with
this little issue. thanks in advance!

francisco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]