Re: component rendering order

2011-06-16 Thread Igor Vaynberg
give your component the dataprovider that the datatable has and use
that to calc visibility.

-igor

On Thu, Jun 16, 2011 at 9:22 PM, Nelson Segura  wrote:
> I might mention that I am still using a version of wicket where
> onConfigure is not available,and we are not due to upgrade until after
> I need to finish this component.
> -Nelson
>
> On Thu, Jun 16, 2011 at 9:21 PM, Nelson Segura  wrote:
>> Is there a way to force components to be rendered in different order
>> than in which they were added?
>> I have the following dilemma:
>>
>> I have component on the header of my pages whose behavior
>> (visibility/content) depends on the results displayed in a data table.
>> Since the header of my pages is added in the base page, before the
>> tables are added, and the results are only known during the rendering
>> of the rows, I have no access to the information I need.
>>
>> Is there any pattern solutions you guys can suggest for solving these
>> type of problems?
>>
>> Help is greatly appreciated.
>>
>> -Nelson
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-16 Thread Avraham Rosenzweig
We have an application based on Wicket 1.4.17 that we have deployed on JBoss
5.10 using JDK 1.6  in both clustered (using farm) and single node
environments, on both Windows and Linux environments in hundreds of machines
and we never experienced such an issue.

I guess you need to take it to a JBoss forum.

Thanks,
   Avraham

On Thu, Jun 16, 2011 at 12:45 AM, Thomas Franconville <
tfranconvi...@tetraedge.com> wrote:

> Yes, before deploying and using the wicket application, I have had 4Go
> space left on my disk.
> After, 0 octet is left as the [Jboss_home]/default/tmp/vfs-nested.tmp
> directory growing as non sense with with jar and war contained into the ear
> were duplicated as space left.
> It is "as" wicket find that the ear change and force to redeploy and then
> jboss find that the ear change and redeploy and so on until that no more
> space left.
> It appends on my windows machine, but also on our linux machine were we
> integrate the application.
>
> Le 15/06/2011 20:10, Peter Ertl a écrit :
>
>  Google Translate tells me:
>>
>> 'Espace insuffisant sur le disque' ->  'Not enough space on disk'
>>
>> So did you check your free disk space?
>>
>>
>> Am 15.06.2011 um 15:32 schrieb Thomas Franconville:
>>
>>  Hi all,
>>>
>>> I am deploying my wicket application as an EAR with maven using JMX
>>> deploiment of JBoss.
>>> When I use the web application, the directory
>>> [Jboss_home]/default/tmp/vfs-nested.tmp is growing until saturated the
>>> hardrive (several gigabytes !), duplicating all the jar and war in the ear.
>>> When the disk is saturated, I have this stack
>>>
>>> 2011-06-15 11:06:41,220 INFO  [STDOUT] (ModificationWatcher Task) ERROR -
>>> Task   - Unhandled exception thrown by user code in task
>>> ModificationWatcher
>>> java.lang.RuntimeException: Failed to read zip file:
>>> org.jboss.virtual.plugins.context.zip.ZipFileWrapper@1d295de -
>>> D:\Workspaces\UbiAnt\HemisEAR\target\Hemis.ear
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:628)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
>>>at
>>> org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
>>>at
>>> org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
>>>at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:457)
>>>at
>>> org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:106)
>>>at
>>> org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:118)
>>>at
>>> org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:93)
>>>at
>>> org.apache.wicket.util.io.Connections.close(Connections.java:127)
>>>at
>>> org.apache.wicket.util.io.Connections.getLastModified(Connections.java:87)
>>>at
>>> org.apache.wicket.util.resource.UrlResourceStream.lastModifiedTime(UrlResourceStream.java:233)
>>>at
>>> org.apache.wicket.markup.MarkupResourceStream.lastModifiedTime(MarkupResourceStream.java:149)
>>>at
>>> org.apache.wicket.util.watch.ModificationWatcher$1.run(ModificationWatcher.java:153)
>>>at org.apache.wicket.util.thread.Task$1.run(Task.java:115)
>>>at java.lang.Thread.run(Thread.java:662)
>>> Caused by: java.io.IOException: Espace insuffisant sur le disque
>>>at java.io.FileOutputStream.writeBytes(Native Method)
>>>at java.io.FileOutputStream.write(FileOutputStream.java:260)
>>>at
>>> java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
>>>at org.jboss.virtual.VFSUtils.copyStream(VFSUtils.java:941)
>>>at
>>> org.jboss.virtual.VFSUtils.copyStreamAndClose(VFSUtils.java:901)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:562)
>>>at
>>> org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
>>>... 17 more
>>>
>>> My environnement is:
>>> JBoss 5.1
>>> Wicket 1.5-RC4.2
>>> Jdk 1.6
>>> I am still in development mode.
>>> When I am working with the war with Jetty, I have no problem.
>>>
>>> Is somebody can explain me what happen and give me any clue to go
>>> forward.
>>>
>>> Thanks
>>>
>>> Thomas
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mai

Re: component rendering order

2011-06-16 Thread Nelson Segura
I might mention that I am still using a version of wicket where
onConfigure is not available,and we are not due to upgrade until after
I need to finish this component.
-Nelson

On Thu, Jun 16, 2011 at 9:21 PM, Nelson Segura  wrote:
> Is there a way to force components to be rendered in different order
> than in which they were added?
> I have the following dilemma:
>
> I have component on the header of my pages whose behavior
> (visibility/content) depends on the results displayed in a data table.
> Since the header of my pages is added in the base page, before the
> tables are added, and the results are only known during the rendering
> of the rows, I have no access to the information I need.
>
> Is there any pattern solutions you guys can suggest for solving these
> type of problems?
>
> Help is greatly appreciated.
>
> -Nelson
>

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



component rendering order

2011-06-16 Thread Nelson Segura
Is there a way to force components to be rendered in different order
than in which they were added?
I have the following dilemma:

I have component on the header of my pages whose behavior
(visibility/content) depends on the results displayed in a data table.
Since the header of my pages is added in the base page, before the
tables are added, and the results are only known during the rendering
of the rows, I have no access to the information I need.

Is there any pattern solutions you guys can suggest for solving these
type of problems?

Help is greatly appreciated.

-Nelson

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



Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene

Right, I agree. As soon as possible I will open a JIRA issue.

Hello,

1. And if I want to use ModalWindow with ModalWindowPage from a Panel?
I can pass the PageReference to, but than I will have to catch the event on
each page the panel is added.. Not really handy when using Panel as reusable
item on many pages..

2. Don't you find it easier yourself to use abstract functions? I use them
very often and find it a real lost that this doesn't work anymore in 1.5.

Thanks! Marieke Vandamme.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ModalWindow-with-page-abstract-functions-do-not-update-model-correct-tp3596526p3602525.html
Sent from the Users forum mailing list archive at Nabble.com.

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





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



Re: Form with TextField to Label "readonly" mode

2011-06-16 Thread Bruno Borges
Thank you very much sir! :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 5:21 PM, robert.mcguinness <
robert.mcguinness@gmail.com> wrote:

> like so? http://wicket.visural.net/examples/app/view-or-edit
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Form-with-TextField-to-Label-readonly-mode-tp3603438p3603631.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Form with TextField to Label "readonly" mode

2011-06-16 Thread robert.mcguinness
like so? http://wicket.visural.net/examples/app/view-or-edit

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-with-TextField-to-Label-readonly-mode-tp3603438p3603631.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Why does my DAO need to implement serialization?

2011-06-16 Thread Igor Vaynberg
https://cwiki.apache.org/confluence/display/WICKET/Spring

-igor

On Thu, Jun 16, 2011 at 12:30 PM, Brian Lavender  wrote:
> Where can I find a sample or Javadoc for wicket-ioc?
>
> brian
>
> On Thu, Jun 16, 2011 at 11:11:05AM -0700, Igor Vaynberg wrote:
>> you should inject your dao using one of the provided wicket-ioc
>> modules such as spring or guice. this will create a proxy that is
>> serializable instead of requiring the actual object you are injecting
>> to be serializable.
>>
>> -igor
>>
>>
>> On Thu, Jun 16, 2011 at 11:00 AM, Brian Lavender  wrote:
>> > It seems that I have to extend the serializable interface for
>> > my DAO in order not to get errors. Should I be putting it
>> > in the WebSession area, or elsewhere?
>> >
>> > I have the full context of the sample at the following. It is
>> > a simple Maven project.
>> > http://brie.com/brian/wicket/zebra00.zip
>> >
>> >
>> > public interface CheeseDAO extends java.io.Serializable {
>> >        public Cheese getCheese(Long id);
>> >        public List getCheeses();
>> > }
>> >
>> > public class CheesrSession extends WebSession {
>> >  private CheeseDAO myDAO = new CheeseDAOImpl();
>> >
>> >        public CheeseDAO getDAO() {
>> >                  return myDAO;
>> >        }
>> >
>> > }
>> >
>> >
>> > Thanks,
>> >
>> > brian
>> > --
>> > Brian Lavender
>> > http://www.brie.com/brian/
>> >
>> > "There are two ways of constructing a software design. One way is to
>> > make it so simple that there are obviously no deficiencies. And the other
>> > way is to make it so complicated that there are no obvious deficiencies."
>> >
>> > Professor C. A. R. Hoare
>> > The 1980 Turing award lecture
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Why does my DAO need to implement serialization?

2011-06-16 Thread Martin Grigorov
In the chapter about Wicket Spring in WIA

On Thu, Jun 16, 2011 at 10:30 PM, Brian Lavender  wrote:
> Where can I find a sample or Javadoc for wicket-ioc?
>
> brian
>
> On Thu, Jun 16, 2011 at 11:11:05AM -0700, Igor Vaynberg wrote:
>> you should inject your dao using one of the provided wicket-ioc
>> modules such as spring or guice. this will create a proxy that is
>> serializable instead of requiring the actual object you are injecting
>> to be serializable.
>>
>> -igor
>>
>>
>> On Thu, Jun 16, 2011 at 11:00 AM, Brian Lavender  wrote:
>> > It seems that I have to extend the serializable interface for
>> > my DAO in order not to get errors. Should I be putting it
>> > in the WebSession area, or elsewhere?
>> >
>> > I have the full context of the sample at the following. It is
>> > a simple Maven project.
>> > http://brie.com/brian/wicket/zebra00.zip
>> >
>> >
>> > public interface CheeseDAO extends java.io.Serializable {
>> >        public Cheese getCheese(Long id);
>> >        public List getCheeses();
>> > }
>> >
>> > public class CheesrSession extends WebSession {
>> >  private CheeseDAO myDAO = new CheeseDAOImpl();
>> >
>> >        public CheeseDAO getDAO() {
>> >                  return myDAO;
>> >        }
>> >
>> > }
>> >
>> >
>> > Thanks,
>> >
>> > brian
>> > --
>> > Brian Lavender
>> > http://www.brie.com/brian/
>> >
>> > "There are two ways of constructing a software design. One way is to
>> > make it so simple that there are obviously no deficiencies. And the other
>> > way is to make it so complicated that there are no obvious deficiencies."
>> >
>> > Professor C. A. R. Hoare
>> > The 1980 Turing award lecture
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Why does my DAO need to implement serialization?

2011-06-16 Thread Brian Lavender
Where can I find a sample or Javadoc for wicket-ioc?

brian

On Thu, Jun 16, 2011 at 11:11:05AM -0700, Igor Vaynberg wrote:
> you should inject your dao using one of the provided wicket-ioc
> modules such as spring or guice. this will create a proxy that is
> serializable instead of requiring the actual object you are injecting
> to be serializable.
> 
> -igor
> 
> 
> On Thu, Jun 16, 2011 at 11:00 AM, Brian Lavender  wrote:
> > It seems that I have to extend the serializable interface for
> > my DAO in order not to get errors. Should I be putting it
> > in the WebSession area, or elsewhere?
> >
> > I have the full context of the sample at the following. It is
> > a simple Maven project.
> > http://brie.com/brian/wicket/zebra00.zip
> >
> >
> > public interface CheeseDAO extends java.io.Serializable {
> >        public Cheese getCheese(Long id);
> >        public List getCheeses();
> > }
> >
> > public class CheesrSession extends WebSession {
> >  private CheeseDAO myDAO = new CheeseDAOImpl();
> >
> >        public CheeseDAO getDAO() {
> >                  return myDAO;
> >        }
> >
> > }
> >
> >
> > Thanks,
> >
> > brian
> > --
> > Brian Lavender
> > http://www.brie.com/brian/
> >
> > "There are two ways of constructing a software design. One way is to
> > make it so simple that there are obviously no deficiencies. And the other
> > way is to make it so complicated that there are no obvious deficiencies."
> >
> > Professor C. A. R. Hoare
> > The 1980 Turing award lecture
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture

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



Form with TextField to Label "readonly" mode

2011-06-16 Thread Bruno Borges
Has anyone ever done this?

A form where you can set it as to readonly, and components like TextField
will render as Label components?

AjaxEditableLabel is an option, but the scenario I'm really looking for. I
want to have a button where user clicks on it to "Edit" and the form reloads
in writeable mode.

regards,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Gamboa Project

2011-06-16 Thread Martin Grigorov
This is there even for 1.4

On Thu, Jun 16, 2011 at 9:45 PM, Bruno Borges  wrote:
>> Which feature exactly do you mean ?
>
> I don't know on which version this came up, but I'm talking about resource
> references, like CSS, JS and image files.
>
> Whenever an html references a css, wicket takes care of putting trailing
> dots ../../ if it renders a webpage at /wicket/bookmarkable or something.
>
>
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Wed, Jun 8, 2011 at 4:13 AM, Martin Grigorov wrote:
>
>> Very nice, Bruno!
>>
>> Just one thing:
>> > Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
>> > better to have separated HTML+css+js from the Java/Scala code.
>>
>> Which feature exactly do you mean ?
>>
>> On Wed, Jun 8, 2011 at 3:22 AM, Bruno Borges 
>> wrote:
>> > Hi everyone,
>> >
>> >    I've been working on what I call the Gamboa Project for a couple of
>> days
>> > and now the project is ready and published.
>> >
>> >    It is a Maven archetype for rapid web application development. It
>> > combines well-know technologies:
>> >
>> > - Scala
>> > - Apache Wicket
>> > - MongoDB
>> > - Spring Framework
>> > - Velocity
>> > - HTML5+jQuery
>> >
>> > The purpose of this project is to give developers a quick start for Web
>> 2.0
>> > applications based on NoSQL.
>> > Plans for another archetype for SQL does exist though.
>> >
>> > https://github.com/brunoborges/gamboa-project/
>> >
>> > Also, this project aims a common scenario where web designers build
>> > prototypes and give them to developers.
>> > With Gamboa, all the prototype goes to *layout* folder and page classes
>> goes
>> > to *code/pages*.
>> > Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
>> > better to have separated HTML+css+js from the Java/Scala code.
>> >
>> > I also plan to build (with it) its own website at www.gamboa-project.org
>> .
>> >
>> > If anyone is interested on this, please take a look.
>> > Feedbacks are welcome.
>> >
>> > Thank you,
>> > *Bruno Borges*
>> > www.brunoborges.com.br
>> > +55 21 76727099
>> >
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Gamboa Project

2011-06-16 Thread Bruno Borges
> Which feature exactly do you mean ?

I don't know on which version this came up, but I'm talking about resource
references, like CSS, JS and image files.

Whenever an html references a css, wicket takes care of putting trailing
dots ../../ if it renders a webpage at /wicket/bookmarkable or something.



*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jun 8, 2011 at 4:13 AM, Martin Grigorov wrote:

> Very nice, Bruno!
>
> Just one thing:
> > Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
> > better to have separated HTML+css+js from the Java/Scala code.
>
> Which feature exactly do you mean ?
>
> On Wed, Jun 8, 2011 at 3:22 AM, Bruno Borges 
> wrote:
> > Hi everyone,
> >
> >I've been working on what I call the Gamboa Project for a couple of
> days
> > and now the project is ready and published.
> >
> >It is a Maven archetype for rapid web application development. It
> > combines well-know technologies:
> >
> > - Scala
> > - Apache Wicket
> > - MongoDB
> > - Spring Framework
> > - Velocity
> > - HTML5+jQuery
> >
> > The purpose of this project is to give developers a quick start for Web
> 2.0
> > applications based on NoSQL.
> > Plans for another archetype for SQL does exist though.
> >
> > https://github.com/brunoborges/gamboa-project/
> >
> > Also, this project aims a common scenario where web designers build
> > prototypes and give them to developers.
> > With Gamboa, all the prototype goes to *layout* folder and page classes
> goes
> > to *code/pages*.
> > Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
> > better to have separated HTML+css+js from the Java/Scala code.
> >
> > I also plan to build (with it) its own website at www.gamboa-project.org
> .
> >
> > If anyone is interested on this, please take a look.
> > Feedbacks are welcome.
> >
> > Thank you,
> > *Bruno Borges*
> > www.brunoborges.com.br
> > +55 21 76727099
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Graceful Session Expiry

2011-06-16 Thread nino martinez wael
yup he can just use this:

http://plugins.jquery.com/project/timers

2011/6/9 Martin Grigorov :
> Yep, this will work.
>
> For each request to the page you'll have to reset the JS counter.
> This JS counter will count from session-timeout to 0 and display some
> notification when it reaches the treshold.
> But you have to assure that this counter is reset for *every* request.
>
> On Thu, Jun 9, 2011 at 11:11 AM, Arjun Dhar  wrote:
>> I just had an idea to solve both the problems. (please see if it makes sense)
>>
>> Well, what if we on every Page request tell the Browser how much time it has
>> left = Session Duration. (Pass it via some param or header script variable)
>> And let the Browser do house keeping for that window session.
>>
>> I'll put a script via WebPage.setHeader(...) in my base class; extended by
>> all pages that use a session.
>> The rest is taken care by the client.
>>
>> ..though am not sure if there is a way for me to inject into all pages that
>> use a particular session object automatically or I should keep it simple and
>> put it in the base WebPage class?
>> (All WebPages may not share a common parent)
>>
>>
>> thanks
>>
>> -
>> Software documentation is like sex: when it is good, it is very, very good; 
>> and when it is bad, it is still better than nothing!
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584943.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread nino martinez wael
thanks for updating the wiki..:)

2011/6/16 Martin Grigorov :
> See 
> org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle,
> Exception), org.apache.wicket.Application.getRequestCycleListeners()
> and org.apache.wicket.request.handler.RenderPageRequestHandler
> and 
> https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5
>
>
> On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael
>  wrote:
>> Sure.. Basically I want to map different runtime exceptions to
>> different pages, preserving the exception for usage in the consumer
>> page of course.
>>
>> Like explained here:
>>
>> http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-td3511899.html
>>
>> 2011/6/16 Jorge Rodrigez :
>>> If you spare a bit of your precious time to explain the problem in more
>>> details then we may have an idea.
>>>
>>> On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael <
>>> nino.martinez.w...@gmail.com> wrote:
>>>
 Does anybody have an idea howto implement this?

 regards Nino

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


>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: best way to add tooltips in wicket

2011-06-16 Thread nino martinez wael
If I remember correctly modal windows has max z-index that can be
defined, so it's hard to set the tooltip over.. But one could
overwrite the style for the modal window... But is likely to have been
changed since wicket 1.3..

2011/6/14 Martin Grigorov :
> fix its zIndex css property
> use firebug to find what value to use
>
> On Sat, Jun 11, 2011 at 12:00 PM, tapas.23571113
>  wrote:
>> Thanks for mootipbehavior. It is awesome. But I would like to inform you that
>> it isn't working well if I use it any component resides in a ModalWindow. In
>> that case it is appearing behind the window.
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/best-way-to-add-tooltips-in-wicket-tp1882871p3590183.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Why does my DAO need to implement serialization?

2011-06-16 Thread Igor Vaynberg
you should inject your dao using one of the provided wicket-ioc
modules such as spring or guice. this will create a proxy that is
serializable instead of requiring the actual object you are injecting
to be serializable.

-igor


On Thu, Jun 16, 2011 at 11:00 AM, Brian Lavender  wrote:
> It seems that I have to extend the serializable interface for
> my DAO in order not to get errors. Should I be putting it
> in the WebSession area, or elsewhere?
>
> I have the full context of the sample at the following. It is
> a simple Maven project.
> http://brie.com/brian/wicket/zebra00.zip
>
>
> public interface CheeseDAO extends java.io.Serializable {
>        public Cheese getCheese(Long id);
>        public List getCheeses();
> }
>
> public class CheesrSession extends WebSession {
>  private CheeseDAO myDAO = new CheeseDAOImpl();
>
>        public CheeseDAO getDAO() {
>                  return myDAO;
>        }
>
> }
>
>
> Thanks,
>
> brian
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Why does my DAO need to implement serialization?

2011-06-16 Thread jcgarciam
It must be serializable because Wicket session can get serialized.


On Thu, Jun 16, 2011 at 3:00 PM, Brian Lavender [via Apache Wicket] <
ml-node+3603204-29326886-65...@n4.nabble.com> wrote:

> It seems that I have to extend the serializable interface for
> my DAO in order not to get errors. Should I be putting it
> in the WebSession area, or elsewhere?
>
> I have the full context of the sample at the following. It is
> a simple Maven project.
> http://brie.com/brian/wicket/zebra00.zip
>
>
> public interface CheeseDAO extends java.io.Serializable {
> public Cheese getCheese(Long id);
> public List getCheeses();
> }
>
> public class CheesrSession extends WebSession {
>   private CheeseDAO myDAO = new CheeseDAOImpl();
>
>   public CheeseDAO getDAO() {
>   return myDAO;
> }
>
> }
>
>
> Thanks,
>
> brian
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Why-does-my-DAO-need-to-implement-serialization-tp3603204p3603204.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-DAO-need-to-implement-serialization-tp3603204p3603224.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Why does my DAO need to implement serialization?

2011-06-16 Thread Brian Lavender
It seems that I have to extend the serializable interface for
my DAO in order not to get errors. Should I be putting it
in the WebSession area, or elsewhere?

I have the full context of the sample at the following. It is
a simple Maven project.
http://brie.com/brian/wicket/zebra00.zip


public interface CheeseDAO extends java.io.Serializable {
public Cheese getCheese(Long id);
public List getCheeses();
}

public class CheesrSession extends WebSession {
  private CheeseDAO myDAO = new CheeseDAOImpl();

public CheeseDAO getDAO() { 
  return myDAO; 
}

}


Thanks,

brian
-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Gerard J. Piek
Bruno,

Thanks. Once I have the details right, I'll dive into this.

Cheers,

Gerard

2011/6/16 Bruno Borges 

> I forked the project wicket-rest from googlecode to wicketstuff-sandbox.
>
> Gerard, you can now ask for commit access at wicketstuff, or just fork it
> from there and then push a patch.
>
> https://github.com/wicketstuff/sandbox/tree/master/wicket-rest
>
> Thanks again for showing interest in this project.
>
> Cheers
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorov  >wrote:
>
> > One more replace:
> >
> >  @Override
> >   protected final void onRender() {
> >   getResponse().write(getXML().toString());
> >   }
> >
> > with
> >  @Override
> >   public void renderPage() {
> >   getResponse().write(getXML().toString());
> >}
> >
> > On Thu, Jun 16, 2011 at 3:39 PM, gerar  wrote:
> > > Thanks for the very quick answer.
> > >
> > > However, now another error message appears.
> > >
> > > The superclass now looks like this:
> > >
> > > public abstract class AbstractWebServicePage extends WebPage implements
> > > IMarkupResourceStreamProvider {
> > > // Removed hasAssociatedMarkup method and added:
> > > 
> > >public IResourceStream getMarkupResourceStream(MarkupContainer
> > > container, Class containerClass) {
> > >return new StringResourceStream("");
> > >}
> > >
> > > 
> > >
> > > This error appears when requesting the page in a browser:
> > >
> > > Root cause:
> > >
> > > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> > > at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> > > at java.util.ArrayList.get(ArrayList.java:322)
> > > at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
> > > at org.apache.wicket.markup.Markup.get(Markup.java:109)
> > > at org.apache.wicket.Component.internalRender(Component.java:2371)
> > > at org.apache.wicket.Component.render(Component.java:2322)
> > > at org.apache.wicket.Page.renderPage(Page.java:1120)
> > > at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> > > at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
> > > at
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> > > at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
> > > at
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> > > at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> > > at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> > > at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
> > > at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
> > > at
> > >
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
> > > .
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
I forgot to say that implementing 

@Override
public void renderPage() {
getResponse().write(getXML().toString());
}
and 

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class containerClass) {
return new StringResourceStream("");
}

still didn't solve the problem since onBeforeRender and/or onInitialize are
not called. That is the place in wicket-rest where the payload data is
prepared depending on the HTTP method.

Cheers,

Gerard

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602855.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Hi,

Maybe the cause of the problem is to be found elsewhere. I created a simple
test page. Code is below.
It produces the HTML itself without an HTML file, just like the pages that
use wicket-rest baseclasses.

1)
The code below runs just fine, but neither onInitialize nor onBeforeRender
are ever run. Why is that?
2)
Why doesn't implementation of hasAssociatedMarkup work for this example?

Please find the code for the testpage below.

Cheers,

Gerard

package org.innobuilt.wicket.rest.example.pages;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.IMarkupResourceStreamProvider;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.StringResourceStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestPage extends WebPage implements
IMarkupResourceStreamProvider {
private static final Logger LOG =
LoggerFactory.getLogger(TestPage.class);

@Override
protected void onInitialize() {
super.onInitialize();
LOG.info("onInitialize");
}

@Override
protected void onBeforeRender() {
super.onInitialize();
LOG.info("onBeforeRender");
}

@Override
public void renderPage() {
LOG.info("renderPage");
getResponse().write("hello");
}

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class containerClass) {
LOG.info("getMarkupResourceStream");
return new StringResourceStream("");
}
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602838.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How do I create a detachable model for a ListView?

2011-06-16 Thread Dan Retzlaff
CheeseDetach does do something for detach(), but it's implemented for you in
LoadableDetachableModel. To really understand what's going on you should
look at that class' implementation. It's straight forward.

http://svn.apache.org/repos/asf/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java

I recommend importing all of the Wicket source code into your IDE so can
easily review what's happening behind the APIs. You'll learn a lot.

Good luck,
Dan

On Wed, Jun 15, 2011 at 10:47 PM, Brian Lavender  wrote:

> Dan, thank you for pointing that out. That makes more sense. So, it looks
> like now that my List of Cheeses will not get cached between pages saving
> space? And this is because the model doesn't do anything for detach but
> only does load, so every time, it will get it from the DAO?
>
> Here is the code for my index page. Supporting code files are attached.
>
> public class Index extends CheesrPage {
> public Index() {
>
>CheeseDAO dao = new CheeseDAOImpl();
>CheeseDetach myDetach = new CheeseDetach(dao);
>
>CheeseList myCheeseList = new CheeseList("cheeses", myDetach,
> getCart());
> add(myCheeseList);
>
> [snip]
> }
>
> On Wed, Jun 15, 2011 at 06:35:25PM -0700, Dan Retzlaff wrote:
> > Look carefully at the ListView's constructor arguments. It wants an
> > IModel>, not an IModel which is what your current
> > CheeseDetach provides. Depending on your goals, you can either (1) change
> > CheeseDetach.load() to call getCheeses(), or (2) change the constructor
> to
> > accept a list of cheeses and retain a list of cheese IDs, and query for
> > those cheeses individually in CheeseDetach.load().
> >
> > On Wed, Jun 15, 2011 at 5:38 PM, Brian Lavender  wrote:
> >
> > > I am trying to create a ListView using a detachable model, but I just
> > > can't seem to figure out how to construct my DetachableModel.
> Basically, I
> > > would like to create a detachable model and then pass it to my
> constructor
> > > for a CheeseList.  This is built upon the code for the  examples for
> > > Wicket in Action [1] by Dashorst in Chapter 4.3.  My DAO can return the
> > > cheese based upon id or it can also return the list of cheeses. What
> > > code do I need to put in CheeseDetach for my detachable model?
> > >
> > >
> > > CheeseDAO myDAO = new CheeseDAOImpl();
> > >
> > > // Can I make CheeseDetach construct it using the DAO as
> follows?
> > > CheeseDetach myDetach = new CheeseDetach(myDAO);
> > >
> > >  // ListView can take list or Model as constructor.
> > >  // How does the model work for a ListView?
> > >  CheeseList myCheeseList = new CheeseList("cheeses", myDetach,
> > > getCart());
> > >
> > >  // Add ListView to page
> > >
> > >  add(myCheeseList);
> > >
> > >
> > > 1. https://code.google.com/p/wicketinaction/downloads/list
> > > --
> > > Brian Lavender
> > > http://www.brie.com/brian/
> > >
> > > "There are two ways of constructing a software design. One way is to
> > > make it so simple that there are obviously no deficiencies. And the
> other
> > > way is to make it so complicated that there are no obvious
> deficiencies."
> > >
> > > Professor C. A. R. Hoare
> > > The 1980 Turing award lecture
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Michael O'Cleirigh

Hello,

Once the wicket-rest project works it would be better placed into the 
wicketstuff/core repository as no snapshots or releases are done using 
sandbox code.


But they come for free if you contribute into the wicketstuff/core 
repository.


Mike

I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

Gerard, you can now ask for commit access at wicketstuff, or just fork it
from there and then push a patch.

https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

Thanks again for showing interest in this project.

Cheers
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorovwrote:


One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
}

On Thu, Jun 16, 2011 at 3:39 PM, gerar  wrote:

Thanks for the very quick answer.

However, now another error message appears.

The superclass now looks like this:

public abstract class AbstractWebServicePage extends WebPage implements
IMarkupResourceStreamProvider {
// Removed hasAssociatedMarkup method and added:

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class  containerClass) {
return new StringResourceStream("");
}



This error appears when requesting the page in a browser:

Root cause:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
at org.apache.wicket.markup.Markup.get(Markup.java:109)
at org.apache.wicket.Component.internalRender(Component.java:2371)
at org.apache.wicket.Component.render(Component.java:2322)
at org.apache.wicket.Page.renderPage(Page.java:1120)
 at


org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)

 at


org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)

 at


org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)

 at


org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)

 at


org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)

 at


org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)

 at


org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)

 at


org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)

 at


org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)

 at


org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)

.




--
View this message in context:

http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html

Sent from the Users forum mailing list archive at Nabble.com.

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





--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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





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



Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Marieke Vandamme
Hello, 

1. And if I want to use ModalWindow with ModalWindowPage from a Panel?
I can pass the PageReference to, but than I will have to catch the event on
each page the panel is added.. Not really handy when using Panel as reusable
item on many pages..

2. Don't you find it easier yourself to use abstract functions? I use them
very often and find it a real lost that this doesn't work anymore in 1.5.

Thanks! Marieke Vandamme.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ModalWindow-with-page-abstract-functions-do-not-update-model-correct-tp3596526p3602525.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Bruno Borges
I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

Gerard, you can now ask for commit access at wicketstuff, or just fork it
from there and then push a patch.

https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

Thanks again for showing interest in this project.

Cheers
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorov wrote:

> One more replace:
>
>  @Override
>   protected final void onRender() {
>   getResponse().write(getXML().toString());
>   }
>
> with
>  @Override
>   public void renderPage() {
>   getResponse().write(getXML().toString());
>}
>
> On Thu, Jun 16, 2011 at 3:39 PM, gerar  wrote:
> > Thanks for the very quick answer.
> >
> > However, now another error message appears.
> >
> > The superclass now looks like this:
> >
> > public abstract class AbstractWebServicePage extends WebPage implements
> > IMarkupResourceStreamProvider {
> > // Removed hasAssociatedMarkup method and added:
> > 
> >public IResourceStream getMarkupResourceStream(MarkupContainer
> > container, Class containerClass) {
> >return new StringResourceStream("");
> >}
> >
> > 
> >
> > This error appears when requesting the page in a browser:
> >
> > Root cause:
> >
> > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> > at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> > at java.util.ArrayList.get(ArrayList.java:322)
> > at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
> > at org.apache.wicket.markup.Markup.get(Markup.java:109)
> > at org.apache.wicket.Component.internalRender(Component.java:2371)
> > at org.apache.wicket.Component.render(Component.java:2322)
> > at org.apache.wicket.Page.renderPage(Page.java:1120)
> > at
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> > at
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
> > at
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
> > at
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> > at
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
> > at
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
> > at
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
> > .
> >
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: autocomplete editable label

2011-06-16 Thread leoerlandsson
Sure! Just override

protected FormComponent newEditor(MarkupContainer parent,
  String componentId, IModel model) {
TextField editor = new TextField(componentId, model);
editor.setOutputMarkupId(true);
editor.setVisible(false);
   editor.add(new EditorAjaxBehavior());
   return editor;
   }

and return an AutoCompleteTextField instead of a TextField

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/autocomplete-editable-label-tp3600846p3602366.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
   }

On Thu, Jun 16, 2011 at 3:39 PM, gerar  wrote:
> Thanks for the very quick answer.
>
> However, now another error message appears.
>
> The superclass now looks like this:
>
> public abstract class AbstractWebServicePage extends WebPage implements
> IMarkupResourceStreamProvider {
> // Removed hasAssociatedMarkup method and added:
> 
>    public IResourceStream getMarkupResourceStream(MarkupContainer
> container, Class containerClass) {
>        return new StringResourceStream("");
>    }
>
> 
>
> This error appears when requesting the page in a browser:
>
> Root cause:
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
> at org.apache.wicket.markup.Markup.get(Markup.java:109)
> at org.apache.wicket.Component.internalRender(Component.java:2371)
> at org.apache.wicket.Component.render(Component.java:2322)
> at org.apache.wicket.Page.renderPage(Page.java:1120)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
>     at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
>     at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
>     at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
> .
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene

Hi,

your last version (the one using  inter-component events) works fine if 
you pass ModalWindowPage  PageReference instead of page instance, i.e:



public ModalWindowPage(final PageReference pageReference){
add(new AjaxLink("btn") {
/**
 *
 */
private static final long serialVersionUID = 
-3306323258099384492L;


@Override
public void onClick(AjaxRequestTarget target) {
send(pageReference.getPage(), Broadcast.EXACT, 
"ModalWindowPage value");

ModalWindow.closeCurrent(target);
}
});
}

I think that passing page instance causes some serialization problem.


Hi Marieke ,

I've tried your code and I have your same problem. Tomorrow I will try 
to investigate further and maybe I will create an issue.





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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Thanks for the very quick answer.

However, now another error message appears.

The superclass now looks like this:

public abstract class AbstractWebServicePage extends WebPage implements
IMarkupResourceStreamProvider {
// Removed hasAssociatedMarkup method and added:

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class containerClass) {
return new StringResourceStream("");
}



This error appears when requesting the page in a browser:

Root cause:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
at org.apache.wicket.markup.Markup.get(Markup.java:109)
at org.apache.wicket.Component.internalRender(Component.java:2371)
at org.apache.wicket.Component.render(Component.java:2322)
at org.apache.wicket.Page.renderPage(Page.java:1120)
 at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
 at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
 at
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
 at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
 at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
 at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
 at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
 at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
 at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
On Thu, Jun 16, 2011 at 3:16 PM, gerar  wrote:
> Details:
>
> The  PersonXmlRestService.html is an example that comes with the wicket-rest
> library. It is a subclass of XmlWebServicePage which in  turn is based on
> AbstractWebServicePage. Class AbstractWebServicePage has a method:
>
>    @Override
>    public final boolean hasAssociatedMarkup() {
>        return false;
>    }
Instead of overriding this you can try with implementing
IMarkupResourceStreamProvider and return "new
StringResourceStream("")"

I think it should work now.
>
> to indicate that no HTML is associated. All output generated by pages based
> on these superclasses is "as is". No HTML but XML (or Json) is produced.
> It seems that this is ignored.
>
> and in the XmlWebServicePage there's a method
>
>    @Override
>    public final MarkupType getMarkupType() {
>        return new MarkupType("xml", "text/xml");
>
>    }
>    @Override
>    protected final void onRender() {
>        getResponse().write(getXML().toString());
>    }
> which generates the actual output (without any HTML file).
>
>
> I've attached sources as well. You can run it by unzipping followed by:
>
> cd wicket-rest-trunk
> mvn clean install
> cd wicket-rest-example
> mvn jetty:run
>
> then request http://localhost:8080/wicket-rest-example/person-api/xml"; in a
> browser.
>
>
> http://apache-wicket.1842946.n4.nabble.com/file/n3602257/wicket-rest-wicket15rc42.zip
> wicket-rest-wicket15rc42.zip
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602257.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Details:

The  PersonXmlRestService.html is an example that comes with the wicket-rest
library. It is a subclass of XmlWebServicePage which in  turn is based on
AbstractWebServicePage. Class AbstractWebServicePage has a method:

@Override
public final boolean hasAssociatedMarkup() {
return false;
}

to indicate that no HTML is associated. All output generated by pages based
on these superclasses is "as is". No HTML but XML (or Json) is produced.
It seems that this is ignored.

and in the XmlWebServicePage there's a method

@Override
public final MarkupType getMarkupType() {
return new MarkupType("xml", "text/xml");

}   
@Override
protected final void onRender() {
getResponse().write(getXML().toString());
}
which generates the actual output (without any HTML file).


I've attached sources as well. You can run it by unzipping followed by:

cd wicket-rest-trunk
mvn clean install
cd wicket-rest-example
mvn jetty:run

then request http://localhost:8080/wicket-rest-example/person-api/xml"; in a
browser.


http://apache-wicket.1842946.n4.nabble.com/file/n3602257/wicket-rest-wicket15rc42.zip
wicket-rest-wicket15rc42.zip 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602257.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Peter Ertl
Though I would prefer the method Martin suggested there's also the possibility 
of customizing web.xml:

http://docs.codehaus.org/display/JETTY/How+to+Create+Custom+Error+Pages

Am 16.06.2011 um 13:54 schrieb Martin Grigorov:

> See 
> org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle,
> Exception), org.apache.wicket.Application.getRequestCycleListeners()
> and org.apache.wicket.request.handler.RenderPageRequestHandler
> and 
> https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5
> 
> 
> On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael
>  wrote:
>> Sure.. Basically I want to map different runtime exceptions to
>> different pages, preserving the exception for usage in the consumer
>> page of course.
>> 
>> Like explained here:
>> 
>> http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-td3511899.html
>> 
>> 2011/6/16 Jorge Rodrigez :
>>> If you spare a bit of your precious time to explain the problem in more
>>> details then we may have an idea.
>>> 
>>> On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael <
>>> nino.martinez.w...@gmail.com> wrote:
>>> 
 Does anybody have an idea howto implement this?
 
 regards Nino
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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



Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Martin Grigorov
See 
org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle,
Exception), org.apache.wicket.Application.getRequestCycleListeners()
and org.apache.wicket.request.handler.RenderPageRequestHandler
and 
https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5


On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael
 wrote:
> Sure.. Basically I want to map different runtime exceptions to
> different pages, preserving the exception for usage in the consumer
> page of course.
>
> Like explained here:
>
> http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-td3511899.html
>
> 2011/6/16 Jorge Rodrigez :
>> If you spare a bit of your precious time to explain the problem in more
>> details then we may have an idea.
>>
>> On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>>
>>> Does anybody have an idea howto implement this?
>>>
>>> regards Nino
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread nino martinez wael
Sure.. Basically I want to map different runtime exceptions to
different pages, preserving the exception for usage in the consumer
page of course.

Like explained here:

http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-td3511899.html

2011/6/16 Jorge Rodrigez :
> If you spare a bit of your precious time to explain the problem in more
> details then we may have an idea.
>
> On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> Does anybody have an idea howto implement this?
>>
>> regards Nino
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Jorge Rodrigez
If you spare a bit of your precious time to explain the problem in more
details then we may have an idea.

On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> Does anybody have an idea howto implement this?
>
> regards Nino
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread nino martinez wael
Does anybody have an idea howto implement this?

regards Nino

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



Re: Users, sessions, data...

2011-06-16 Thread Zeldor
Well, my app is a game which you could call Excel, but in fantasy settings :)
Modifying lots of tables and simple calculations, lots of them. Some people
call that building, attacking, spellcasting...

I have most of stuff atm in User entity, over 100 variables, some of them
ArrayLists and HashMaps. Persistence with JDO and Guice to make things
nicer. Right now I am putting whole User into session, then retrieving data
from it. When user modified smth with a form, it would persist whole User to
the db. Most of the time there is not much interaction - user walks around
the app and looks at numbers, getting them every time from db and not from
session seems ineffective. Of course consistency and workability are more
important :) Smooth experience for users and no chance for bugs [ISE, blank
pages, other user's data, out of order persists] is the most important thing
here. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Users-sessions-data-tp3598626p3602085.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Debouncing ajax calls..

2011-06-16 Thread Martin Grigorov
Please file a ticket.
As I can see the only way is to manually use Wicket.Throttler.
The logic in 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.throttleScript(CharSequence,
String, Duration) can't do it right now.

On Thu, Jun 16, 2011 at 3:04 AM, Tom Howe  wrote:
> Hi, is there a supported way to make setThottleDelay keep resetting the
> timer and only action the event after the last change.
>
> I can see 'postponeTimerOnUpdate' as an option to Wicket.Throttler in the
> wicket ajax js but dont know how to activate it.
>
> Should I manually create a wicket.throttler and just call it myself?
>
>
> I'm using wicket 1.4.17
>
>
> Thanks, Tom
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Users, sessions, data...

2011-06-16 Thread Ian Marshall
Hi Zeldor,


Zeldor wrote:
> 
> Well, I'm hosting it on GAE and with new pricing model I have to worry
> about instances, not memcache or things like that.

In GAE/J your sessions are persisted to both the BigTable datastore (for
guaranteed persistence) and the memcache (for speed of access). Retrieving
data from the datastore is relatively fast (compared to writing to it) and
from memcache even faster, so each of my session instances stores the user
ID (only) of any logged-on user (or null if none). The session then
retrieves any data from the datastore as needed (for example: user name,
is-administrator-or-not).

Be aware of the maximum session data size of 1MB for GAE/J (= maximum
persistent entity data size). Don't fall into the trap I did by not using
loadable detachable models for large amounts of data like photographs.

Ian

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Users-sessions-data-tp3598626p3601823.html
Sent from the Users forum mailing list archive at Nabble.com.

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