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

2011-06-16 Thread Martin Grigorov
From the error message it seems there is no PersonXmlRestService.html around. Please describe how wicket-rest actually works. On Thu, Jun 16, 2011 at 1:55 AM, gerar gerardp...@gmail.com wrote: Hi, I've tried to port http://wicket-rest.googlecode.com/svn to Wicket 1.5-RC4.2. That took some

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).

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 tomh...@artcore.com wrote: Hi, is

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

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

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

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

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

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() {

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 gerardp...@gmail.com 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:

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

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) { /** *

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 gerardp...@gmail.com wrote:

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);

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.

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

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

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.

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

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(); }

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 bruno.bor...@gmail.com 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

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

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

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 br...@brie.com

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 mgrigo...@apache.org: fix its zIndex css

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 mgrigo...@apache.org: See org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle, Exception), org.apache.wicket.Application.getRequestCycleListeners() and

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 mgrigo...@apache.org: 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

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

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 bruno.bor...@gmail.com 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,

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

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

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 br...@brie.com 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

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 br...@brie.com 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

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.

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:

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

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

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 nsegu...@gmail.com wrote: Is there a way to force components to be

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

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 nsegu...@gmail.com 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