Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread nino martinez wael
i just think it's strange, I'd have thought that there would have been one and only one official JPA 2 api one could depend on. But I see my suspicion was correct. Thanks to all for replying on this non wicket topic.. 2010/9/8 Korbinian Bachl - privat korbinian.ba...@whiskyworld.de: in fact the

Re: Wicket Ajax integration

2010-09-09 Thread Joseph Pachod
Rodolfo Hansen wrote: How can I use Wicket.Ajax.Request to post a json string to a DefaultAjaxBehaviour? Maybe this could help: http://josephonit.wordpress.com/2010/09/02/wicket-providing-json-content-through-ajax/ On the Javascript side I basically did something like this: function

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread Jan Kriesten
Hi Korbinian, in fact the current is 2.1.1, but 2.0.0 is reference implementation and for the JPA 2.0 API it wont matter what 2.0.x it is (see scope provided here - just API); actually, I meant the javax.persistence-API, which can be referenced with eclipse: dependency

Custom autocompletion event 'on selection change'

2010-09-09 Thread Peter Karich
Hi, I would like to fire an ajax event every time the user changes the selection of the choices e.g. he switches from 'wiki' to 'wicket' with keys or mouse Which function is necessary to fire such an event on the client side? I never did sth. similar to this and tried (without success + a long

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread Korbinian Bachl - privat
Oh, didn't know that - thx :) in fact I haven't yet had any situation where I needed the JPA-API from maven but not any persistence library as well; Nino, for what is it good for in your case? Best Am 09.09.10 09:34, schrieb Jan Kriesten: Hi Korbinian, in fact the current is 2.1.1, but

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Pieter Degraeuwe
add AjaxFormComponentUpdatingBehavior to your dropdownChoice. new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { //do the needed stuff here... } }) The onUpdate() will be

How to implement single-select functionality for a set of buttons?

2010-09-09 Thread Early Morning
Hi All, I just wanted to ask how to go about creating a component that would mimic radio group or dropdown choice functionality, but be displayed as a set of buttons? Basically the choices would be displayed as toggle buttons. When pressing a button, it would be activated and the model changed to

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Peter Karich
Hi Pieter, thanks for your quick response! And sorry, I didn't mention that I am using org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField from wicket extensions. Or did you have another autocomplete component in mind that I am not aware of? Nevertheless I tried the

Re: How to implement single-select functionality for a set of buttons?

2010-09-09 Thread Ernesto Reinaldo Barreiro
http://docs.jquery.com/UI/Button? Ernesto On Thu, Sep 9, 2010 at 12:38 PM, Early Morning goodmorning...@gmail.com wrote: Hi All, I just wanted to ask how to go about creating a component that would mimic radio group or dropdown choice functionality, but be displayed as a set of buttons?

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Martin Grigorov
Hi Peter, Looking at the code I think you'll need to touch wicket-autocomplete.js. Copy it to your project and override org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteBehavior#renderHead(IHeaderResponse) so that it loads your .js file. Then make

Re: How can I capture the data on one panel 1 when i click submit button on panel 2

2010-09-09 Thread Andrea Del Bene
Ben benarjee_g at yahoo.com writes: Here is my panel1 ... add(new ImageQualityForm(imageQualityForm, new CompoundPropertyModel(imageQuality), aform)); } private static class ImageQualityForm extends Form { public ImageQualityForm(String id, IModel model,

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread nino martinez wael
I also need a provider library, but just think it's strange that the JPA API are bound into the provider library and a independent. regards Nino 2010/9/9 Korbinian Bachl - privat korbinian.ba...@whiskyworld.de: Oh, didn't know that - thx :) in fact I haven't yet had any situation where I

Re: Radio buttons in modal window in IE6

2010-09-09 Thread Grafas
Unfortunately I cannot upgrade... :/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2532743.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread Marcelo Morales
On Wed, Sep 8, 2010 at 9:35 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Sorry to spam but I am wondering where the JPA 2.0 Spec are cant find it in maven... groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-jpa_2.0_spec/artifactId version1.1/version -- Marcelo

Possible to drag tables using WicketDND?

2010-09-09 Thread Johan Haleby
Hi, I'm using WicketDND to allow for drag and drop in my application. How ever I have problems when trying to drag a tr that contains another table (i.e. I want to drag a component whose html contains a table). I believe the reason to be that the inner table is located on top of the tr (it fills

Could not find root ajax-response element

2010-09-09 Thread Adrian Wiesmann
Hello list I have a very strange problem. I have some Ajax buttons on a webpage. They switch between list and detail view and start the edit mode. All of them are replacing a form tag on the page. When clicking on them in the wrong sequence, I get this error in the Wicket Ajax Debug Window:

Re: Wicket Ajax integration

2010-09-09 Thread Rodolfo Hansen
Nice, I implemented something very similar to that actually; and now I actually also need to send json from the client... On Thu, 2010-09-09 at 09:31 +0200, Joseph Pachod wrote: Rodolfo Hansen wrote: How can I use Wicket.Ajax.Request to post a json string to a DefaultAjaxBehaviour?

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Peter Karich
Hi Martin, your instructions helped a lot! Now I can send an ajax request via * and recieve the request via ** But the problem is that the javascript function 'doUpdateChoices' will only update the choices-divs and not all the targets that I added in the java method 'onSelectionChange'. Do you

Wicket 1.4.11 released!

2010-09-09 Thread Igor Vaynberg
This is the eleventh maintenance release of the 1.4.x series and brings over fifty bug fixes and improvements. * Subversion tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.11/ * Changelog:

localizer.getString() with null component ?

2010-09-09 Thread Troy Cauble
Should localizer.getString() work with a null Component? Some of the getString() forms say it's optional, but it didn't work for me until I passed the component. LONG VERSION: I'm working with RadioChoices in a RefreshingView driven by a Map. The standard choices localizations true=Yes!

Prepopulate time fields in DateTimeField component

2010-09-09 Thread vp143
Hi all, I have a Form with the default model being a CompoundPropertyModel. I have added the DateTimeField component to the form. I wish to prepopulate the time fields but not the date. I have tried a few different things but all have their various issues. Anyone have any ideas? Many thanks in

Re: Could not find root ajax-response element

2010-09-09 Thread Igor Vaynberg
very strange indeed. do you have any behaviors that write directly to the response? even that, i dont think, would cause this. create a quickstart and attach it to a jira issue. -igor On Thu, Sep 9, 2010 at 7:33 AM, Adrian Wiesmann awiesm...@somap.org wrote: Hello list I have a very strange

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
put the date value you want prepopulated into the model object -igor On Thu, Sep 9, 2010 at 9:20 AM, vp143 vishal.po...@cipriati.co.uk wrote: Hi all, I have a Form with the default model being a CompoundPropertyModel. I have added the DateTimeField component to the form. I wish to

IE Problem

2010-09-09 Thread arunarapole
Hi I have a IE Issues i have some css styles with images all the styles are displayed in Mozilla Firefox perfectly but in IE Some of the features are not supporting .if i change CSS file it is effecting in Mozilla. is their any solution to this problem -- View this message in

Re: IE Problem

2010-09-09 Thread Martin Makundi
Try stackoverflow.com 2010/9/9 arunarapole arunakumm...@gmail.com: Hi I have a IE Issues i have some css styles with images all the styles are displayed in Mozilla Firefox perfectly but in IE Some of the features are not supporting .if i change  CSS file it is effecting in Mozilla. is

Re: Possible to drag tables using WicketDND?

2010-09-09 Thread Sven Meier
Hi Johan, try adding a class attribute on your outer tr (e.g. class=dragging) and configure the drag source accordingly: new DragSource(...).drag(tr.dragging) Sven On 09/09/2010 04:05 PM, Johan Haleby wrote: Hi, I'm using WicketDND to allow for drag and drop in my application. How ever

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread vp143
I tried that previously but then the field becomes NULL within the POJO I think this is what you mean: If i have: setDefaultModel(new CompoundPropertyModel(Item)); where Item object contains checkinDate field I create the component: DateTimeField checkinDateField = new

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Martin Grigorov
Hi Peter, Use wicketAjaxGet() instead of Wicket.Ajax.Request.get(). The former uses the latter and knows how to process the xml response returned by AjaxRequestTarget. On Thu, Sep 9, 2010 at 5:54 PM, Peter Karich peat...@yahoo.de wrote: Hi Martin, your instructions helped a lot! Now I can

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
Item.checkinDate=new Date() -igor On Thu, Sep 9, 2010 at 10:52 AM, vp143 vishal.po...@cipriati.co.uk wrote: I tried that previously but then the field becomes NULL within the POJO I think this is what you mean: If i have: setDefaultModel(new CompoundPropertyModel(Item)); where Item object

Issue Javascript command from Wicket

2010-09-09 Thread Watter
I'm sure this is probably rather simple, but what would be the best way to issue a javascript command from a wicket action? That's vague so here's a more specific example. I have an existing app that has a button. When that button is clicked, the event is handled by Wicket to perform some action

Re: IE Problem

2010-09-09 Thread Martin Zardecki
In some cases there are no work arounds (css that generically applies to both). We ended using css_browser_selector (http://rafael.adm.br/css_browser_selector/) and this works well for us. Alternatively you could try generating different pages based on the browser from the server but I don't

Re: mountBookmarkablePage problem?

2010-09-09 Thread Martin Zardecki
Figured it out, nothing to do with Wicket (sorry but I was getting desperate). If it helps anyone...we had to enable httpOnly on our server and the page in question was trying to make sure we only uploaded to our current session. Well turns out that httpOnly causes statefull Java Applets to

Re: Issue Javascript command from Wicket

2010-09-09 Thread Michael O'Cleirigh
You can use the AjaxRequestTarget to emit javascript back to the browser like this: target.prependJavascript(alert('sent from the server');); Typically you would have placed the javascript method definitions into the page so they would exist already in the browsers DOM and then you would

Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Joseph Pachod
hi It looks like the jquery files need to be included through a normal page load. Contributing these headers through Ajax doesn't work, I guess it's due to the use of $(document).ready(function(), which isn't triggered on ajax refresh. I tried to find a jquery workaround for that but without

Re: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Igor Vaynberg
instead of $(document).ready(function() use wicket's iheadercontributor's response.writeondomreadyjavascript -igor On Thu, Sep 9, 2010 at 1:09 PM, Joseph Pachod josephpac...@thomas-daily.de wrote: hi It looks like the jquery files need to be included through a normal page load.

Re: Issue Javascript command from Wicket

2010-09-09 Thread Watter
Michael O'Cleirigh wrote: You can use the AjaxRequestTarget to emit javascript back to the browser like this: target.prependJavascript(alert('sent from the server');); Typically you would have placed the javascript method definitions into the page so they would exist already in

Demystifying page serialization

2010-09-09 Thread Mike Dee
I've been reading books, articles, blogs about Wicket page serialization. I don't get it. Specifically, I don't get the need and/or benefits. Most references state that page serialization addresses the back button issue. If a user presses the browser's back button, doesn't the browser simply

Re: Demystifying page serialization

2010-09-09 Thread James Carman
The trick is that each link/form points to a specific version of your page in the cache, so you can be sure that you're dealing with the same component hierarchy. On Thu, Sep 9, 2010 at 4:17 PM, Mike Dee mdichiapp...@cardeatech.com wrote: I've been reading books, articles, blogs about Wicket

Re: Demystifying page serialization

2010-09-09 Thread Mike Dee
Does that mean if the back button is used to go back to a URL like this: http://myurl/myapp/?wicket:interface=:3 and the SHIFT-REFRESH button is used (hard refresh), that Wicket will pull the page out of its cache rather than calling the app to regenerate the page? -- View this message

Re: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Joseph Pachod
instead of $(document).ready(function() use wicket's iheadercontributor's response.writeondomreadyjavascriptthanks for the answer I do so for my own stuff, but jquery plugin don't. similarly, the core jquery file import won't work when added through ajax.

Re: Custom autocompletion event 'on selection change'

2010-09-09 Thread Peter Karich
Hi Martin, hi Pieter! wow! This works now and I thought one has to write ajax assembler to make it running ... Thanks a lot! Are the ajax functions documented anywhere? Regards, Peter. Hi Peter, Use wicketAjaxGet() instead of Wicket.Ajax.Request.get(). The former uses the latter and knows

Re: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Igor Vaynberg
dunno then, you may want to talk to jquery people and see what they recommend. we cant really fire the onload event again because some scripts may have already been executed...like i said, see what jquery folks say. -igor On Thu, Sep 9, 2010 at 1:38 PM, Joseph Pachod josephpac...@thomas-daily.de

Re: HTML streaming on Link click

2010-09-09 Thread DmitryM
Rodolfo, If you're asking about Wicket application settings, then yes, it's set to default 2-pass request processing with buffered pages rendering. I thought the way the link is implemented it should not matter since I thought I would write directly into the HttpServlet output stream. And I

Re: HTML streaming on Link click

2010-09-09 Thread Rodolfo Hansen
On Thu, 2010-09-09 at 14:11 -0700, DmitryM wrote: Rodolfo, If you're asking about Wicket application settings, then yes, it's set to default 2-pass request processing with buffered pages rendering. I thought the way the link is implemented it should not matter since I thought I would

Re: HTML streaming on Link click

2010-09-09 Thread DmitryM
Rodolfo, No, I didn't test it w/WireShark or similar packet sniffer. I can give it a shot... I only tested it in Safari and FireFox (the matter is I only care about Safari, or, rather, WebKit) for now, this would be an app to be accessed from the phone. The behaviour of the browsers (including

Re: wicketstuff repo down again

2010-09-09 Thread Steve Swinsburg
Hi Mike, Excellent, thanks for the info. I was still on older versions of those artifacts (1.4.1). Will see about upgrading. regards, Steve On 08/09/2010, at 11:44 AM, Michael O'Cleirigh wrote: Hi Steve, Wicketstuff-core artifacts have been released through the oss.sonatype.org

AW: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Stefan Lindner
I use onDomReady functionality at many places in my jWicket jQuery-integration. I don't know of any general problem (no guarantee that there isn't one) with jQuery and Wickets onDomReady. Of course you have to ensure that the library (and perhaps additional files) is loaded in correct order