Re: PagingNavigator container instead of link for previous and next

2011-12-13 Thread Per Newgro
Add an attributemodifier to component created in newPagingNavigationLink Cheers Per Am 13.12.2011 23:06, schrieb infiniter: I extended Pagingavigator and the markup for the previous (and next) button looks like this: Enabled state (current page> 0) # Prev

Re: Spring + MongoDb

2011-12-13 Thread Jeff Schneller
How stable is morphia? is it ready for production use? Have you used it with wicket? -- Jeff Schneller Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, December 13, 2011 at 3:31 PM, Uwe Schäfer wrote: > On 12/13/2011 05:28 AM, Jeff Schneller wrote: > > As Martijn suggeste

PagingNavigator container instead of link for previous and next

2011-12-13 Thread infiniter
I extended Pagingavigator and the markup for the previous (and next) button looks like this: Enabled state (current page > 0) # Prev Disabled state (current page == 0) # Prev PagingNavigator creates a link

Re: Spring + MongoDb

2011-12-13 Thread Uwe Schäfer
On 12/13/2011 05:28 AM, Jeff Schneller wrote: As Martijn suggested I could just use the mongodb without the spring-data layer. Will I run into problems in the future if I go this route? you could also use morphia with/or without spring cu uwe

Re: Restartable Self Updating Timer Behavior

2011-12-13 Thread sudeivas
I tried to call the stop() in AjaxRestartableSelfUpdatingTimerBehavior.java when the page starts. But after 30 secs( timer interval), the stopped flagged reverts back to the default value i.e false. So isEnabled() always returns true. I am not sure whether this a bug. As a temporary fix, I have s

Re: Restartable Self Updating Timer Behavior

2011-12-13 Thread Martin Grigorov
You need to tweak behavior's #isEnabled() On Tue, Dec 13, 2011 at 6:50 PM, sudeivas wrote: > I think the issue is because even after the timer is stopped, in the next > cycle a call is going to > > AbstractDefaultAjaxBehavior - > onRequest() > > and because of that its throwing ListenerInvocation

Re: abstract column & property column

2011-12-13 Thread Martin Grigorov
Check their source and how they are used. On Tue, Dec 13, 2011 at 6:16 PM, ridaa wrote: > sorry... > but still i am not clear. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/abstract-column-property-column-tp4186596p4190968.html > Sent from the Users forum ma

Re: Restartable Self Updating Timer Behavior

2011-12-13 Thread sudeivas
I think the issue is because even after the timer is stopped, in the next cycle a call is going to AbstractDefaultAjaxBehavior - > onRequest() and because of that its throwing ListenerInvocationNotAllowedException. In AbstractAjaxRestartableTimerBehavior.java given in JIRA, the stop() method j

Re: check all checkbox to select all in data table

2011-12-13 Thread Andrea Del Bene
See component CheckboxMultipleChoiceSelector Hi.. I have included a check box panel as a column in datatable.Now i want a checkAll/uncheckAll checkbox which will check/uncheck the checkbox column.Please provide me with some idea . -- View this message in context: http://apache-wicket.1842946

Re: abstract column & property column

2011-12-13 Thread ridaa
sorry... but still i am not clear. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/abstract-column-property-column-tp4186596p4190968.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Refresh a textField

2011-12-13 Thread nunurs
In fact i put this textField into a table with an id like this : wicket:id="commentZone"*> Comment On the same web page i have an AjaxButton, which allows to search, into a list of object, the object with the codeAgent set at the value of the textfield b

Re: Refresh a textField

2011-12-13 Thread Martin Grigorov
Hi, You can change comment's codeAgent. The next time the text field is rendered it will show the new value. On Tue, Dec 13, 2011 at 12:56 PM, nunurs wrote: > Hello, > > I have this TextField linked with the attribute codeAgent of my object > comment : > *final* TextField codeAgent = *new* TextF

Re: Update ajax target on onmouseover, but just once

2011-12-13 Thread Martin Grigorov
Hi, You will need to add some JavaScript logic to the button. For example: if there is attribute with name "data-href" then use it and don't make the Ajax call, otherwise make the call and save the returned href in "data-href" to reuse it for the next mouseovers. See IAjaxCallDecorator. On Tue,

Refresh a textField

2011-12-13 Thread nunurs
Hello, I have this TextField linked with the attribute codeAgent of my object comment : *final* TextField codeAgent = *new* TextField("codeAgent", new PropertyModel( comment, "codeAgent")); I want to change in java the value of codeAgent, can you tell me, if it is possible, how also changed

Re: ResourceResponse to return error status code but also JSON error message

2011-12-13 Thread Martin Grigorov
You cannot have both response body and error. If you realize that an error should be returned then do: requestCycle.scheduleRequestHandlerAfterCurrent(new org.apache.wicket.request.http.handler.ErrorCodeRequestHandler.ErrorCodeRequestHandler(int, String)) On Tue, Dec 13, 2011 at 12:03 PM, Serban B

Update ajax target on onmouseover, but just once

2011-12-13 Thread Gregor Kaczor
Hi! I have a link of which I show only the file name, the href attribute is empty. On an onmouseover event I would like to update the link via ajax to show it completely with href attribute. To avoid unnecessary load on the server this should happen just once per link on the page. If the

ResourceResponse to return error status code but also JSON error message

2011-12-13 Thread Serban Balamaci
Hello, I'm using an AbstractResource to return JSON entities. Problem is that it seems you cannot also return an error code and also the JSON string with detailed message in case of error. response.setWriteCallback(new WriteCallback() { @Override public void

Re: Repainting only newly-created repeater items via ajax

2011-12-13 Thread vineet semwal
Hi Arjun, i am glad repeating view worked for you :) btw in the listiview code,you only need the new item to render at a time so it should be target.add(li) though not the problem currently,your js code should be less dependent on wicket js ,it will be good in the long run as wicket js might chang