JVM web frameworks vote at InfoQ

2012-10-08 Thread Martin Grigorov
Hi, You can vote for your favorite JVM web framework at http://www.infoq.com/research/jvm-web-frameworks -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr

RE: Wicket and jQuery UI

2012-10-08 Thread Hielke Hoeve
Dear all, Wiquery offers a wide range of Behaviors in order to make components Draggable. There are a few Components which demand a certain type of tag to be used. We have experienced that the more flexible you make your API the more dumb questions people ask and the less they use it. Apparentl

Re: Wicket page HTML extractor

2012-10-08 Thread Martin Grigorov
Hi, Why don't use the source of MailTemplate example (http://www.wicket-library.com/wicket-examples/mailtemplate) ? Your code seems to be much more complex. On Fri, Oct 5, 2012 at 8:02 PM, Oscar Besga Arcauz wrote: > Hi wickers ! > > I want to generate the HTML from a wicket WebPage and store

Re: Submitting a form, and it's parent form too --

2012-10-08 Thread Martin Grigorov
Hi, Read the ModalWindow's javadoc. It explains some requirements about the containment in form(s). Additionally check Form's API and particularly: org.apache.wicket.markup.html.form.Form#wantSubmitOnNestedFormSubmit On Sat, Oct 6, 2012 at 3:49 AM, theivorykitty wrote: > Hey guys! I'm always so

Re: Problem with testing text field auto completion with WicketTester

2012-10-08 Thread Martin Grigorov
Hi, You need to do: tester.getRequest().setParameter("the:respective:name:of:the:input", "some value"); tester.executeBehavior() On Sun, Oct 7, 2012 at 3:26 AM, Marcin Zajączkowski wrote: > On 2012-10-07 02:14, Marcin Zajączkowski wrote: >> Hi, >> >> I try to test auto complete feature impl

Re: select a wicket tab from javascript...

2012-10-08 Thread Martin Grigorov
Hi, If nothing else works then: jQuery(selectorForTheNeededTab).click() should do the job. On Fri, Oct 5, 2012 at 11:15 AM, mlabs wrote: > I have some wicket (ajax) tabs... > I'm using jQuery on the client. > I want to programatically select a particular wicket tab from the > jQuery/javascript c

Redirect page via POST method

2012-10-08 Thread cosmindumy
Hello, How can I go to a page with a given url with POST method, instead of using a redirect page which uses GET method. I want to send some private information from one to another as page parameters. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redire

Re: Redirect page via POST method

2012-10-08 Thread Matthias Keller
Hi AFAIK you can only do that by returning a normal HTTP page with a form which is auto-submitted using javascript, for example in an onload handler. Matt On 08.10.2012 11:53, cosmindumy wrote: Hello, How can I go to a page with a given url with POST method, instead of using a redirect page

Re: Redirect page via POST method

2012-10-08 Thread Martin Grigorov
Hi, You can use: setResponsePage(new NewPage(privateInformation)) On Mon, Oct 8, 2012 at 12:53 PM, cosmindumy wrote: > Hello, > How can I go to a page with a given url with POST method, instead of using a > redirect page which uses GET method. > I want to send some private information from one t

wiquery ajaxslider

2012-10-08 Thread Lemke, Michael SZ/HZA-ZSW
Hi, I've a problem with AjaxSlider in wiquery-jquery-ui. Sorry if this is the wrong place to report it but I can't use Google groups. Version: Wicket 6.0.0, wiquery-jquery-ui: 6.0.0 The setAjaxStopEvent never fires. Looking at the generated js it's obvious that it can't: $('#slider11').slide

Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Moving from JSF to Wicket 6.1.0 I am used to having all JPA operations in a EJB facade to use the container's (Glassfish 3.2.1) transaction management. I use and know wicket-cdi for injection, which works fine. Unfortunately, if I inject an EJB in a wicket page, the serialization checks of wicket

Re: Wicket page HTML extractor

2012-10-08 Thread Oscar Besga Arcauz
Yes, I've used code from mail example, as I said. The mail example does not fit into my needs because the rendering thread must be independent, out-of-request. ( for example into a Timer/TimerTask) I've been looking into Wicket tester classes (http://wicket.apache.org/apidocs/1.5/org/apac

Re: wiquery ajaxslider

2012-10-08 Thread Martin Grigorov
Hi, This is the currently active forum! :-) But you better file this problem at https://github.com/WiQuery/wiquery/issues so it got fixed for the next release. On Mon, Oct 8, 2012 at 3:39 PM, Lemke, Michael SZ/HZA-ZSW wrote: > Hi, > > I've a problem with AjaxSlider in wiquery-jquery-ui. Sorry

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi, Are you aware of https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent ? https://github.com/wicketstuff/core/wiki/Java-EE-Inject On Mon, Oct 8, 2012 at 4:05 PM, Dieter Tremel wrote: > Moving from JSF to Wicket 6.1.0 I am used to having all JPA operations > in a

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread heapifyman
As far as I understood you have two possibilities: 1. Inject your EJB into a CDI component and inject that component into your wicket pages using @Inject annotation. That should solve the serialization problem but you will have an additional "layer". 2. Use javaee-inject from wicketstuff [1] to inj

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Am 08.10.2012 15:14, schrieb Martin Grigorov: > Are you aware of > https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent > ? Hi Martin, I know this lib an had a look at it. If I am right, it is just another way of injection. In my running example of implementing a dat

RE: wiquery ajaxslider

2012-10-08 Thread Lemke, Michael SZ/HZA-ZSW
On Monday, October 08, 2012 3:11 PM Martin Grigorov wrote: >Hi, > >This is the currently active forum! :-) >But you better file this problem at >https://github.com/WiQuery/wiquery/issues so it got fixed for the next >release. Thanks, done. Issue #6. Didn't realize it is on github. Michael > >

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi Dieter, javaee-inject uses wicket-ioc and injects a serializable Proxy instead of the EJB bean itself that was returned by the container. This is the same as how Spring and Guice work. See the response of heapifyman. The simplest would be use only CDI in your Wicket code. Hide any usage of EJB

Wicket 6.x write to jQuery on document ready ...

2012-10-08 Thread armandoxxx
Hey guys .. I'm upgrading our application to wicket 6.x and would like to know if there is a way for my components to add JS to jQueries $(document).ready function on initialize ... (was thinking if page has any feature like that) Kind regards Armando -- View this message in context: ht

Re: Wicket 6.x write to jQuery on document ready ...

2012-10-08 Thread Martin Grigorov
Hi, You can use: response.render(OnDomReadyHeaderItem.forScript()) All onDomReady scripts are bundled into one : Wicket.Event.add(window, "domready", function(event) { // here }) and this is the same as what you need. On Mon, Oct 8, 2012 at 4:35 PM, armandoxxx wrote: > Hey guys .. > > I'm

AjaxLink not work

2012-10-08 Thread Marco Di Sabatino Di Diodoro
Hi I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All AjaxLinks from the console not work. final AjaxLink createLink = new IndicatingAjaxLink("createLink") { private static final long serialVersionUID = -7978723352517770644L; @Override

Re: Wicket page HTML extractor

2012-10-08 Thread Oscar Besga Arcauz
I've created a page that responds with the buffer [MyAppPageBuffer] http://pastebin.com/d3UzajiU Reviews and comments are wellcomed ! > > > Oscar Besga Arcauz < < < -Oscar Besga Arcauz/ISNOTES@ISNOTES escribió: - Para: users@wicket.apache.org De: Oscar Besga Arcauz/ISNOTES@ISNO

Re: AjaxLink not work

2012-10-08 Thread Martin Grigorov
Hi, The code looks OK. What exactly doesn't work ? On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro wrote: > Hi > > I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All > AjaxLinks from the console not work. > > final AjaxLink createLink = new Indicating

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Am 08.10.2012 15:34, schrieb Martin Grigorov: > javaee-inject uses wicket-ioc and injects a serializable Proxy instead > of the EJB bean itself that was returned by the container. This is the > same as how Spring and Guice work. > > See the response of heapifyman. The simplest would be use only CD

Re: AjaxLink not work

2012-10-08 Thread Marco Di Sabatino Di Diodoro
On Oct 8, 2012, at 4:31 PM, Martin Grigorov wrote: > Hi, > > The code looks OK. > What exactly doesn't work ? When I click on the link does nothing. All Links into the console not work. Here you can find source code from console ( http://svn.apache.org/viewvc/incubator/syncope/trunk/console/ )

Re: AjaxLink not work

2012-10-08 Thread Martin Grigorov
Hi, I have no time to debug the whole app. Check for JavaScript errors. Also check the produced HTML. Find the tag for the link, get its 'id' and search for Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e: 'click'}); Check with Firebug/Dev tools that and Ajax call is fired when you click. On M

Re: AjaxLink not work

2012-10-08 Thread Marco Di Sabatino Di Diodoro
Martin, In the Page Source Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e:'click'}); is not present. Do I Have to include something? M On Oct 8, 2012, at 4:48 PM, Martin Grigorov wrote: > Hi, > > I have no time to debug the whole app. > Check for JavaScript errors. > > Also check the pr

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
I found a different solution I would like to post for discussion: I encapsulated the Facade in a LoadableDetachableModel like this: > /** > * Model for JPA facade beans. > * @author Dieter Tremel > */ > public class EntityFacadeModel extends > LoadableDetachableModel> { > > private Class

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi, The JNDI lookup just done for you in normal JavaEE setup as well. So I think your code is OK. On Mon, Oct 8, 2012 at 6:24 PM, Dieter Tremel wrote: > I found a different solution I would like to post for discussion: > I encapsulated the Facade in a LoadableDetachableModel like this: >> /** >>

Re: AjaxLink not work

2012-10-08 Thread Martin Grigorov
No. Wicket should do this for you. Is your link disabled ? Did you add it to a parent component ? Create a quickstart and attach it to Jira. On Mon, Oct 8, 2012 at 6:21 PM, Marco Di Sabatino Di Diodoro wrote: > Martin, > > In the Page Source > Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e:'cl

SharedResourceReference question

2012-10-08 Thread mlabs
I have a bunch of shared resources that serve up various formats of data (JSON/PDF etc) ... What's the best way to authenticate with these things? I don't want to just leave them wide open... TIA -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SharedResourceReferenc

Re: Problem with testing text field auto completion with WicketTester

2012-10-08 Thread Marcin Zajączkowski
On 2012-10-08 10:06, Martin Grigorov wrote: > Hi, > > You need to do: > > tester.getRequest().setParameter("the:respective:name:of:the:input", > "some value"); > tester.executeBehavior() It did a trick. Thanks! Marcin > On Sun, Oct 7, 2012 at 3:26 AM, Marcin Zajączkowski wrote: >> On 2012

Re: Increasing session size

2012-10-08 Thread Martijn Dashorst
http://docs.oracle.com/javaee/1.2.1/api/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 8, 2012 at 12:46 PM, shruts wrote: > Hi > > is there any way that we can set the session time out only for a restricted > number of page for which login is not required. > > > > --

Re: Centralizing ajax inline javascript

2012-10-08 Thread lukuperman
Sebastien, Ernesto, I had to repost because after centralizing the ajax behavior I saw the browser does not send CheckBox ajax requests in parallel any more. Is this because we centralized the behavior? Lucas Kuperman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com

Page expiration error on AJAX call

2012-10-08 Thread Ondrej Zizka
Hi, I have an AjaxEditableLabel wrapped in a component. After some changes (I'm still finding which), it's behavior gone totally astray: On click, it gave me Page Expired every time. That was happening with this.getPageSettings().setRecreateMountedPagesAfterExpiry(false); When this is true

RE: Page expiration error on AJAX call

2012-10-08 Thread Paul Bors
Start by looking for a JS "onClick" event/behavior through your recent changes :) Or add some code for us to view... ~ Thank you, Paul Bors -Original Message- From: Ondrej Zizka [mailto:ozi...@redhat.com] Sent: Monday, October 08, 2012 9:37 PM To: wicket-users Subject: Page expiratio

Re: Page expiration error on AJAX call

2012-10-08 Thread Martin Grigorov
Hi, Check your logs for errors related to the serialization of the page. If the page is not properly serialized then next attempts to find it will fail with PageExpiredException. On Tue, Oct 9, 2012 at 4:37 AM, Ondrej Zizka wrote: > Hi, > > I have an AjaxEditableLabel wrapped in a component. > A

IResourceStream from ByteArrayResource ?

2012-10-08 Thread mlabs
I'm looking at the AJAXDownload example code and it seems I need to provide that with an IResourceStream. I have implemented a shared ByteArrayResource that serves up pdf. Q: what's the best way to get an IResourceStream from my ByteArrayResource? Q: is there a way? Maybe to use the URL of my share

Re: IResourceStream from ByteArrayResource ?

2012-10-08 Thread mlabs
thanks Ernesto .. so using that javascript trick I now have my IndicatingAjaxLink downloading via the URL of my shared resource .. which is neater I think .. and so now I don't have to bother with AJAXDownload either. But I still have two issues: 1. the PDF opens in-place in the browser frame ..

Re: IResourceStream from ByteArrayResource ?

2012-10-08 Thread Ernesto Reinaldo Barreiro
Hi, On Tue, Oct 9, 2012 at 8:29 AM, mlabs wrote: > thanks Ernesto .. so using that javascript trick I now have my > IndicatingAjaxLink downloading via the URL of my shared resource .. which > is > neater I think .. and so now I don't have to bother with AJAXDownload > either. > > But I still hav