Re: Wicket and Javascript UI Libraries' components

2012-09-06 Thread Martin Grigorov
Hi Gia, There are few good libraries that integrate Wicket with JavaScript libraries (mostly jQuery). See http://code.google.com/p/wiquery/, http://code.google.com/p/wicket-jquery-ui/, http://code.google.com/p/jqwicket/, ... If you don't use jQuery then use there code as inspiration. On Thu,

Re: Wicket and Javascript UI Libraries' components

2012-09-06 Thread gia
Thank you Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Javascript-UI-Libraries-components-tp4651804p4651828.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: wicket and javascript

2012-02-09 Thread Martin Grigorov
See https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/autocomplete-tagit-parent/autocomplete-tagit/src/main/java/org/wicketstuff/tagit/TagItAjaxBehavior.java#L114 and few lines above how this template is populated On Thu, Feb 9, 2012 at 7:18 PM, mukesh kumar

Re: wicket and javascript

2010-03-19 Thread JonnyL
I have a JS file that has a function to return a node value from an XML file. The JS file is referenced in the head section of the page and the function is called from the page body. The JS function runs but does not return the XML node. How do I reference the XML file? Hope you can help

Re: wicket and javascript

2010-02-17 Thread exceptionist
jthomerson wrote: If you're rendering JS that shouldn't be executed until the page is loaded, call this method in your renderHead method:

Re: wicket and javascript

2010-02-16 Thread exceptionist
igor.vaynberg wrote: allow your component to implement IHeaderContributor and output both your base js and string js from the renderhread() method -igor du u have a code-example(link oder something like that) for this way of solving my prob? i tried several times to do it, but i always

Re: wicket and javascript

2010-02-16 Thread Jeremy Thomerson
If you're rendering JS that shouldn't be executed until the page is loaded, call this method in your renderHead method: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/IHeaderResponse.html#renderOnDomReadyJavascript%28java.lang.String%29 -- Jeremy

Re: wicket and javascript

2010-02-15 Thread Igor Vaynberg
allow your component to implement IHeaderContributor and output both your base js and string js from the renderhread() method -igor 2010/2/15 björn liffers bad.ad...@arcor.de: hello, i tried to generate a.js-file, but i wasn´t able to generate it in the folder where i wanted it to be. so i

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Sorry for not getting this totally. If I do something like this class Comp extends WebComponent implements ILinkListener{ public Comp(String id) { super(id); } public String getCallbackURL(){

Re: Wicket and javascript

2009-07-05 Thread Martin Funk
you are getting closer... next step is to get the callbackURL to the browser and than pick it up by your javascript. it could be rendered as an attribute using an AttributeModifier. given that wicket supplies the javaScript method wicketAjaxGet. If that gets called with the callbackURL the

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Yes but I will have a WebMarkupContainer with a ListView in that needs to be updated via ajax. If my javascript hits the onLinkClicked I won't have any AjaxRequestTarget to update the container via ajax. -- View this message in context:

Re: Wicket and javascript

2009-07-05 Thread Jeremy Thomerson
Here, I think this should work: Pastebin link in case the formatting gets messed up in email: http://pastebin.com/f6ef575c3 public ExamplePage() { IModel? extends List? extends String model = getSomeModel(); final ListViewString lv = new ListViewString(listview, model) { @Override

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Thanks! That did the trick. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24343230.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Nope I get an javascript error when trying this. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345368.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Wicket and javascript

2009-07-05 Thread Jeremy Thomerson
I didn't check it for 100% functionality - I was showing you how the pieces fit together. Now you know how to get the URL for the callback, how to get the callback to work, etc. Now, look at it and see what it renders and see if it's correct. I can't help anyway without knowing what JS error

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
yes thanks alot. Beacuse I didn't have any other wicket ajax the lib was not included. I just added a super.renderHead(response); and it worked. Thanks -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345756.html Sent from the Wicket - User mailing

Re: Wicket and javascript

2009-07-04 Thread Mathias Nilsson
Let me be a bit more specific. A have a plain form, none wicket that posts to an Iframe. In the onsubmit of the form I call my ajax function. The action is set to my servlet to receive the multipart. In the start I setup my ajax and make GET requests to the same servlet for updating my progress

Re: Wicket and javascript

2009-07-04 Thread Jeremy Thomerson
On the client side you have a JS script that knows when 100% is reached. You have it trigger a Wicket AJAX call to the server on a behavior that repaints your list view. Then the list view just needs a proper model that gets an up-to-date list. Create an abstract behavior, and there is a method

Re: Wicket and javascript

2009-07-04 Thread Mathias Nilsson
Thanks! I know what to do not just how it could be done You have it trigger a Wicket AJAX call to the server on a behavior How does this work? -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24338948.html Sent from the Wicket - User mailing list

Re: Wicket and javascript

2009-07-04 Thread Igor Vaynberg
first create a url to a component. this can be done by letting your component implement something like ilinklistener and calling urlfor(linklistener.interface) on that component. once you have the url (which will trigger onclick() of the component) pass it into some javascript by writing it out

Re: Wicket-like JavaScript Components

2009-06-17 Thread Paolo Di Tommaso
Say your boss to engage more java developers ;) -- p On Tue, Jun 16, 2009 at 9:23 PM, Dane Laverty danelave...@gmail.com wrote: I'm currently the only Java programmer on staff, and I'm already maintaining two Wicket applications, so my boss is concerned that if I start a third project in

Re: Wicket-like JavaScript Components

2009-06-16 Thread Paolo Di Tommaso
Extjs is a good choice, we have integrated it successfully with Wicket. Check it out at http://code.google.com/p/wicket-ext/ Paolo On Mon, Jun 15, 2009 at 6:31 PM, Dane Laverty danelave...@gmail.com wrote: I'm working on a small project where I'm limited to using only JavaScript. I love

Re: Wicket-like JavaScript Components

2009-06-16 Thread nino martinez wael
You can also have a look at wicketstuff and see what integrations already exists :) 2009/6/15 Dane Laverty danelave...@gmail.com: I'm working on a small project where I'm limited to using only JavaScript. I love the Wicket programming model, especially reusable components. Is anyone aware of a

Re: Wicket-like JavaScript Components

2009-06-16 Thread Nicolas Melendez
GWT is a good framework.You can code in java and then it is translated to javascript. NM On Tue, Jun 16, 2009 at 4:05 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: You can also have a look at wicketstuff and see what integrations already exists :) 2009/6/15 Dane Laverty

Re: Wicket-like JavaScript Components

2009-06-16 Thread Jeremy Thomerson
Yeah - but I would guess that it wouldn't fit where I'm limited to using only JavaScript Out of curiosity - what do you mean where I'm limited to using only JavaScript? I mean, can you use HTML? What does this app do - obviously not much if it's only JS. What does it tie in with to do business

Re: Wicket-like JavaScript Components

2009-06-16 Thread Dane Laverty
I'm currently the only Java programmer on staff, and I'm already maintaining two Wicket applications, so my boss is concerned that if I start a third project in Java that no one else will be able to maintain it. It's a reasonable concern, but kind of too bad nonetheless. I'm using JQuery as my

Re: Wicket-like JavaScript Components

2009-06-15 Thread Juan Carlos Garcia M.
Have you take a look at http://extjs.com/ http://extjs.com/ insom wrote: I'm working on a small project where I'm limited to using only JavaScript. I love the Wicket programming model, especially reusable components. Is anyone aware of a JavaScript framework or JavaScript techniques

Re: Wicket-like JavaScript Components

2009-06-15 Thread Marvan Spagnolo
Not wanting to go offtopic on the list or start a flame war I would just say to have a look to their license before doing any experiment .. To develop anything not GPL'ed you will need to purchase a commercial license for ExtJS. That is why many migrated to other JS frameworks some time ago when

Re: Wicket-like JavaScript Components

2009-06-15 Thread Jade
Hi, Jquery is one more good choice. But, I am sure it does not work in a similar way wicket does. You could always wrap around stuff to make it work with a model, but you may have to re-invent the wheel again :-s /Jade On Mon, Jun 15, 2009 at 11:00 PM, Marvan Spagnolo marv...@gmail.com wrote:

Re: Wicket and Javascript framework integration

2008-12-24 Thread Dipu
jQuery, i.e., what is required for creating a behavior? Thanks, /tc From: Jeremy Thomerson jer...@wickettraining.com To: users@wicket.apache.org Cc: fredy.wij...@gmail.com Sent: Tuesday, December 23, 2008 6:20:18 PM Subject: Re: Wicket and Javascript

Re: Wicket and Javascript framework integration

2008-12-24 Thread Nino Martinez
: Tuesday, December 23, 2008 6:20:18 PM Subject: Re: Wicket and Javascript framework integration Check out one of the many examples in Wicket Stuff, for instance, the YUI integration: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/yui/ You can also see

Re: Wicket and Javascript framework integration

2008-12-23 Thread Jeremy Thomerson
Check out one of the many examples in Wicket Stuff, for instance, the YUI integration: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/yui/ You can also see what Nino has just been working on in the past couple of days with this:

Re: Wicket and Javascript framework integration

2008-12-23 Thread T C
Cc: fredy.wij...@gmail.com Sent: Tuesday, December 23, 2008 6:20:18 PM Subject: Re: Wicket and Javascript framework integration Check out one of the many examples in Wicket Stuff, for instance, the YUI integration: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core

Re: Wicket Datepicker javascript not loaded in portlet environment

2008-07-30 Thread prasana
Hi Serkan, Did you fix this issue. I am also facing the same issue in portlet environment when using firefox 2.0 I really appreciate, if you give some pointers on how to fix this if you already fixed this issue. Thanks Prasanna Serkan Camurcuoglu-2 wrote: Hi all, I'm trying to use an

Re: Wicket and JAVASCRIPT variables

2008-01-17 Thread Nino Saturnino Martinez Vazquez Wael
Great. Im looking into this again now, saw the error but was in meetings all day.. I'll see how the gmap and gmap2 has evolved since my participation... Martin Funk wrote: mea culpa, could you try again please. mf Ballist1c schrieb: I have had a look, the GMap2 contrib is missing source

Re: Wicket and JAVASCRIPT variables

2008-01-16 Thread Igor Vaynberg
have you seen wicketstuff's google maps integration projects? -igor On Jan 16, 2008 5:14 PM, Ballist1c [EMAIL PROTECTED] wrote: Hey guys, Im working with google maps and what I want to accomplish is have location data from our DB backend parsed into the google map for display. At the

Re: Wicket and JAVASCRIPT variables

2008-01-16 Thread Ballist1c
I have had a look, the GMap2 contrib is missing source files :( GOverlayListenerBehavior class is required ... but the SVN I got doesnt have it ... so thats not an option. igor.vaynberg wrote: have you seen wicketstuff's google maps integration projects? -igor On Jan 16, 2008 5:14

Re: Wicket and JAVASCRIPT variables

2008-01-16 Thread Martin Funk
mea culpa, could you try again please. mf Ballist1c schrieb: I have had a look, the GMap2 contrib is missing source files :( GOverlayListenerBehavior class is required ... but the SVN I got doesnt have it ... so thats not an option. igor.vaynberg wrote: have you seen wicketstuff's