Re: find html tag

2013-02-12 Thread Michael Jaruska
no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/WICKET/component-rendering.html in section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) an

Re: find html tag

2013-02-12 Thread Martin Grigorov
Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska wrote: > no way how to modify raw html stream in actual rendering? > > > > On 11.2.2013 11:50, Michael Jaruska wrote: > >> based on this article: >> https://cwiki.apache.org/**WICKET/compo

Problem in running wicket app using mvn jetty:run

2013-02-12 Thread kshitiz
Hi, I am trying to run wicket app using the command mvn jetty:run but I am getting the error *java.lang.NoClassDefFoundError: org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow$WindowClosedCallback* Now I this may be because it is not able to find all dependencies present in lib fo

Re: Problem in running wicket app using mvn jetty:run

2013-02-12 Thread Martin Grigorov
Add dependency to wicket-extensions On Tue, Feb 12, 2013 at 1:32 PM, kshitiz wrote: > Hi, > > I am trying to run wicket app using the command mvn jetty:run but I am > getting the error > > *java.lang.NoClassDefFoundError: > > org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow$Windo

Re: find html tag

2013-02-12 Thread Michael Jaruska
do you mean in beforeRender(final Component component)? On 12.2.2013 9:11, Martin Grigorov wrote: Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska wrote: no way how to modify raw html stream in actual rendering? On 11.2.2013 11:

Re: Problem in running wicket app using mvn jetty:run

2013-02-12 Thread Martin Grigorov
Yes. jetty:run is part of a Jetty's Maven plugin that uses pom.xml to find the dependencies. On Tue, Feb 12, 2013 at 2:12 PM, kshitiz wrote: > Hi Martin, > > Thank you for the reply. Actually I have located all jars in lib folder. > Wont that be sufficient? Do I need to add all dependencies in

Re: Problem in running wicket app using mvn jetty:run

2013-02-12 Thread Martin Grigorov
See Wicket quickstart - http://wicket.apache.org/start/quickstart.html. It has Start.java class. Just run it as a normal Java program with main() method and it will use all classes which are available in the classpath of your project in the IDE. To be able to compile Start.java you just need jetty-

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Ernesto Reinaldo Barreiro
Yes, I can confirm this... It also happens with 6.5.0. I will have a look ASAP. Please also mind that after 6.4.0 inMethod grid is jquery base (so, you no longer need YUI around). On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz wrote: > Hi, > > since migrating to Wicket 6, we have problems with

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Okay, so the only AjaxRequestTarget I am aware of is the one passed to me in the onSubmit. This being after the ajax has submitted. I thought that was for OUTPUT, ie what controls will the ajax update when it returns from the ajax event. I am not trying to update the hiddenfield in the ajaxbutto

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Dan Simko
Hi, IE8 doesn't support 'bind' function. Please look at https://github.com/wicketstuff/core/pull/189. Unfortunately I didn't have time to rewrite it like Martin advised. Dan On Tue, Feb 12, 2013 at 3:07 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Yes, I can confirm this... It

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Ernesto Reinaldo Barreiro
Ok. I will have a look and see what I can do. On Tue, Feb 12, 2013 at 3:19 PM, Dan Simko wrote: > Hi, > > IE8 doesn't support 'bind' function. Please look at > https://github.com/wicketstuff/core/pull/189. Unfortunately I didn't have > time to rewrite it like Martin advised. > > Dan > > > On Tue

Re: AjaxButton and a HiddenField

2013-02-12 Thread Martin Grigorov
Hi, AjaxButton just submits a form using XmlHttpRequest, or IFrame when there is file input in the form. Is the hidden input field part of that form ? Which version of Wicket do you use ? Can you show us the related Java and HTML snippets ? On Tue, Feb 12, 2013 at 3:15 PM, Entropy wrote: > Ok

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
To elaborate, I already made the Hidden a HiddenField, it just doesn't get updated before the onSubmit(). The Hidden's value is set via javascript on the client, and I want that value as INPUT into the code tha truns in onSubmit. -- View this message in context: http://apache-wicket.1842946.n4

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Yes, I have a form (wicket Form) around both the hidden and the ajaxbutton. We appear to be on 1.4.7. The java for the ajaxbutton looks like so: form.add(new AjaxButton("gridtestbutton") { protected void onSubmit(AjaxRequestTarget arg0, Form arg1) { //some code that gets the HiddenField, p

Re: AjaxButton and a HiddenField

2013-02-12 Thread Martin Grigorov
The code looks OK. It seems the JavaScript doesn't serialize the hidden field and doesn't include it in the submit data. If you are able to reproduce this with Wicket 6 please file a ticket with a quickstart. Unfortunately 1.4.7 is too old and is not supported by us anymore. On Tue, Feb 12, 2013

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Well, I solved it and it turns out that it wasn't a Wicket issue. I was setting the value in javascript, but I eventually realized that I was setting it to the wrong object...so when i stepped and saw the value, I assumed that it was in the hidden, but I was wrong. Ooops. Thanks for your effort

Can AjaxFormSubmitBehavior skip validation on form field updating

2013-02-12 Thread wicket_new_user
Is it possible to skip the Validation when using the AjaxFormSubmitBehavior. I have a text field (AutoComplete) and selecting will update the MultiListbox. There is a provision to remove the element from the List box. When trying to add new element from the Textbox to Listbox if AjaxFormSub

Re: find html tag

2013-02-12 Thread Paul Bors
You can also do it inside the onComponentTag() or onComponentTagBody(): http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTag(org.apache.wicket.markup.ComponentTag ) http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTagBody(org.apache.w

Re: AjaxButton and a HiddenField

2013-02-12 Thread Paul Bors
If you're working with Wicket, you should probably use Models and not set its value via JavaScript unless of course that's your business use-case. Mixing JavaScript, Ajax and a Wicket component seems a bit too elaborated for something simple such as persisting state via a hidden form field. Btw,

Re: Can AjaxFormSubmitBehavior skip validation on form field updating

2013-02-12 Thread Paul Bors
A bit off topic but related, is there a wiki page documenting the workflow wicket goes through (validation, updating models etc) when using AjaxFormSubmitBehavior? ~ Thank you, Paul Bors On Tue, Feb 12, 2013 at 11:59 AM, wicket_new_user wrote: > Is it possible to skip the Validation when usin

Re: Re: Page ... is not stateless ... but the stateless hint is set to true!

2013-02-12 Thread Tom Eicher
So ... would this be a bug ? Tom Eicher wrote: Hello Martin, > Put a breakpoint at Page#setStatelessHint() and see where it is called > with value == true. It is not being called. That is, not before the warn message appears in the log. statelesshint=true must be the deafult...? My "BasePa

Re: Icons in CalendarEvent

2013-02-12 Thread Sebastien
Hi Grazia Yes, you can display an icon in the event title using the css: .myeventclass .fc-event-title { background-color: transparent; background-image: url("path/to/my/image"); background-position: left center; background-repeat: no-repeat; background-size: 12px 12px; /* the

Regarding using jetty 6 in wicket

2013-02-12 Thread kshitiz
Hi, I am trying to use Jetty 6 in wicket application as it is the requirement as per jelastic hosting. They supports jetty 6. So, I was going through the link https://cwiki.apache.org/WICKET/jetty6-testing.html . I downloaded jetty 6.1.23 jar

Re: Regarding using jetty 6 in wicket

2013-02-12 Thread Francois Meillet
Have a look to http://jetty.codehaus.org/jetty/jetty-6/apidocs/index.html or import org.apache.wicket.util.time.Duration; import org.eclipse.jetty.http.ssl.SslContextFactory; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.bio.So

Re: Re: Page ... is not stateless ... but the stateless hint is set to true!

2013-02-12 Thread Martin Grigorov
Hi Tom, It seems a call to make the flag false is missing somewhere. Please create a ticket with a quickstart. On Tue, Feb 12, 2013 at 8:09 PM, Tom Eicher wrote: > So ... would this be a bug ? > > > Tom Eicher wrote: > >> >> Hello Martin, >> >> > Put a breakpoint at Page#setStatelessHint() an

Re: Dynamic Components

2013-02-12 Thread Decebal Suiu
Hi Can I see the code. The pastebin show me a "Unknown Paste ID!" message on link [1]. [1] http://pastebin.com/p4cSNsUw Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Components-tp4654308p4656289.html Sent from the Users forum mailin

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Ernesto Reinaldo Barreiro
Hi, This should be fixed. https://github.com/wicketstuff/core/commit/264f6087b565b91fb4bdcf7fedcb666421faa603 Can you please test with "master" and see if you find any problems? On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz wrote: > Hi, > > since migrating to Wicket 6, we have problems with

Re: Dynamic Components

2013-02-12 Thread Bas Gooren
Sure. After my original post we simplified the code a bit. This is the latest version we use in production. http://pastebin.com/WnxNVj2n This time I've set the paste to "never expire". Met vriendelijke groet, Kind regards, Bas Gooren Op 12-2-2013 20:57, schreef Decebal Suiu: Hi Can I see t

How to remove panel in a list?

2013-02-12 Thread Celia Xu
Hi, I want to use a repeater to paint my panels so now I have a listview which only remove the last item in the list. I browsed and found some people recommend to use refreshingView but I'm not sure how to populate my panel items. any suggestion? thanks LinkedList myPanelList= new LinkedL

Re: find html tag

2013-02-12 Thread Michael Jaruska
Paul, thanks. Looks like I'm just two steps from final. My current code in MyPanel (stupid, at the moment just for test): @Override public void onRender() { MarkupStream markupStream = this.getAssociatedMarkupStream(false); while(markupStream.hasMore()) { String myString = mar

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Stefan Renz
Hi Ernesto, thanks for the fix -- the table renders OK now, no error anymore in the JavaScript console. However, using a CheckboxColumn to indicate selection state, and to allow selection still yields an error in the Wicket Ajax console when clicked: INFO: focus removed from INFO: focus set on c

RE: Regarding using jetty 6 in wicket

2013-02-12 Thread Colin Rogers
Can you not use the Wicket/Maven archetype? That has it all set up, has a Start.java - and uses Jetty version 7.6.3.v20120416 Cheers, Col. -Original Message- From: kshitiz [mailto:k.agarw...@gmail.com] Sent: 13 February 2013 06:16 To: users@wicket.apache.org Subject: Regarding using jett

AbstractAjaxTimerBehavior Problem

2013-02-12 Thread smöker
hi guys, i'm running into problems using AbstractAjaxTimerBehavior in combination with ordinary AjaxLinks/AjaxButtons. The AbstractAjaxTimerBehavior stops working as soon as another AjaxFunctionality within the same page is executed by AjaxLinks/AjaxButtons. The purpose of my tests : I'd like to