Re: [NEWBIE] How to do if... else... switch... in wicket html ?

2009-03-17 Thread Sébastien Piller
Hi, Use panels, and instantiate either one type or another on the java side. Then your content will change. Cheers, Ista Pouss wrote: Hi, What is the best technique to do some if else and so on with wicket ? I need a html with something like that (stupid and naïve approch) : wicket:if

Re: Need to minimize the names using Ajax

2009-03-10 Thread Sébastien Piller
Use an AjaxEditableLabel. newbie_to_wicket wrote: Hi All, I am using wicket framework. I have to achieve the functionality as I shown in the below image. http://www.nabble.com/file/p22437770/names.jpeg Whenever I pressed R in the textfield box then it should displays the names which contans

Re: Wicket pages as plugin

2009-03-03 Thread Sébastien Piller
We use iframes for that. It works quite well. Stefan Lindner wrote: Dear wicket users and wizzards! Is ist possible to use wicket to implement partial pages that can be embedded into another page? E.g. to have a normal content management system like Joomla and use wicket top lug it into

Re: XMLBeanFactory not serializable - what to do??

2009-02-17 Thread Sébastien Piller
transient field + lazy init method? Edwin Ansicodd wrote: have a Serializable object on a Wicket page. This object in turn has a reference to an XMLBeanFactory. Wicket is giving me an error because XMLBeanFactory is not serializable. What do I do??

Re: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread Sébastien Piller
Hi, I'm pretty sure what you need is wicket:enclosure [1] instead [1] http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html the_adam wrote: If we have a component with a corresponding markup tag tr and want to hide it and display placeholder tag via Component#setOutputMarkupPlaceholderTag

Re: access ServletOutputStream in wicket

2009-01-16 Thread Sébastien Piller
I really doubt that such an exception may be fixed by upgrading jasperreport (NotSerializableException is pure wicket exception, not a jasper one). The stacktrace shows you that the problem is here: final java.io.InputStream com.homeaccount.web.jasper.JRResource$1.val$report

Re: Things I miss in Wicket

2009-01-16 Thread Sébastien Piller
Sure! sorry, missed that one... Well, all requirements were already implemented :D If I were naughty, I would write rtfm ;) Jan Kriesten wrote: Hi Sébastien, 1) and 2) are already implemented, or something very close exists. 3) may be a good improvement, maybe with a new wicket tag

Re: Things I miss in Wicket

2009-01-15 Thread Sébastien Piller
Hi, 1) and 2) are already implemented, or something very close exists. 3) may be a good improvement, maybe with a new wicket tag (wicket:component type=com.me.MyCustomComp /). let's see what think core developpers 1) you have various way of altering tags and attributes: attributemodifiers,

Re: access ServletOutputStream in wicket

2009-01-15 Thread Sébastien Piller
Hi, look at RequestCycle#setRequestTarget and ResourceStreamRequestTarget novotny wrote: Hi, I'm learning Jasper to create/display a PDF when a link is clicked and the template code I have looks like: ServletOutputStream servletOutputStream = response.getOutputStream(); InputStream

Re: Dynamic PDF Creation

2009-01-09 Thread Sébastien Piller
Have a look at RequestCycle#setRequestTarget. Additionnaly, you may have a look at SubmitLink, since the validation step has nothing to do in the onClick of a link jeredm wrote: I am using FOP to create a PDF dynamically based on user input into a web form. I don't have a problem creating

Re: Dynamic PDF Creation

2009-01-09 Thread Sébastien Piller
Some little points: - on the onsubmit of a form (or any onsubmit like in button, submitlink, ajaxfallbackbutton, etc.) you don't need to verify the validity: wicket does it for you, it firsts validate the form and then call onsubmit if there is no error. Thus it means you can remove your

Re: Wizard and redirect to a Page + backbutton

2009-01-06 Thread Sébastien Piller
Hi, Unfortunately, not really. Now I don't rely on the wizard's events anymore and use a regular link instead, this works better If you find a way to make a clean redirection from inside onActiveStepChanged, I'll highly appreciate it ;) jorgesantoro wrote: I have the same problem, did

Re: Modal window - chagne width and height

2009-01-04 Thread Sébastien Piller
Hi, I doubt such a feature is implemented in the wicket code most likely, you will need to call the javascript function window.resizeTo yourself, with an AjaxBehavior (ie AjaxAbstractDefaultBehavior#respond and AjaxRequestTarget#appendJavascript) Vitek Tajzich wrote: Hi, Is it

Re: Prototyping mode: Automatic markup generation

2008-11-28 Thread Sébastien Piller
IMO it is not required. This kind of error appears mostly with beginners, or during early phase of development: it doesn't happens anymore after. For me, the behavior of wicket with that error is quite good. No need for some magical generation of markup. This may lead to wrong use of the

wicket:message as attribute and nested components

2008-11-05 Thread Sébastien Piller
Hello, I was wondering if the behavior described here http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html (use wicket:message as attribute) was broken or if I'm doing something wrong (Wicket 1.3.5) I've written that: form wicket:id=form wicket:message=class:formClass table

Re: example application for spring wicket hibernate

2008-11-02 Thread Sébastien Piller
you may look at wicket iolite too, it's very usefull miro wrote: are there any examples for spring, wicket and hibernate ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is there any Color Picker ? like the calendar.DatePicker

2008-02-20 Thread Sébastien Piller
In the Dojo subproject, there is a DojoColorPicker, but it works not perfectly on my config. Depending on what you want to do with it, it may be useful. Java Programmer a crit: On Feb 20, 2008 8:28 AM, laiqinyi [EMAIL PROTECTED] wrote: Is there Color Picker ? I can choice any

NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Sébastien Piller
Hello, I've a problem with the DatePicker component. Every time I reload my application (in Eclipse - Run - 'My project' on MyEclipse Tomcat, or with an application undeploy/redeploy on Tomcat), I got the stacktrace below. java.lang.NoClassDefFoundError:

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Sébastien Piller
Yes, I read a bit about Spring some time ago, but atm I'm working on a project that will be released soon. I can't afford to rewrite half my code on the lasts weeks ;) Next time, I'll take some time to getting started with it. I'm sure it's worth, that's what I read all the day. But I must

Re: Problem on undeploy

2008-02-15 Thread Sébastien Piller
Hello, I just tried it, and it worked :) I don't know if I can use this directive on my deployment server... I'll have a look with my hoster. After some investigation, I'm now quite sure that it's a Wicket problem. I tried with a very simple project (Hello World) and it made the lock.

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Here is a Thread dump from Tomcat (after I have undeployed my app). It doesn't speak about PageSavingThread, but if anybody see something wrong [2008-02-14 12:43:17] [1334 prunsrv.c] [debug] Procrun log initialized [2008-02-14 12:43:17] [info] Procrun (2.0.3.0) started [2008-02-14

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Hello, thank you for your answer. I wrote a */META-INF/context.xml* file with that in it: ?xml version="1.0" encoding="UTF-8"? Context path="/servlet" reloadable="true" docBase="${catalina.home}/webapps" parameter nameantiJARLocking/name valuetrue/value /parameter /Context

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Yes, I made a syntax error... but even with the syntax bellow, the problem stills... Context path="/servlet" reloadable="true" docBase="servlet" antiJARLocking="true" /Context Sbastien Piller a crit: But the problem stills Have I done a syntax error?

Handle Hibernate transaction in wicket

2008-02-13 Thread Sébastien Piller
Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the session-per-request that is described here http://www.hibernate.org/hib_docs/v3/reference/fr/html_single/#tutorial-firstapp-workingpersistence I think I can commit the

Load resource from anywhere on the HDD

2008-02-11 Thread Sébastien Piller
Hello, I have a little question: my app lets the user upload some files on the server side. I would like to put them somewhere on the server hdd, out of the context of the application (let say on /dev/etc/uploads), so when I redeploy my war (update of the system), all the uploaded files

AjaxFormValidatingBehavior: getting NotSerializableExc

2008-02-06 Thread Sébastien Piller
Hello guys, I'm having a little problem with the use of AjaxFormValidatingBehavior. I add it to all my fields, using a visitor. form.visitChildren(FormComponent.class, new IVisitor() { public Object component(Component component) { if (component instanceof TextField) { component.add(new

Re: AjaxFormValidatingBehavior: getting NotSerializableExc

2008-02-06 Thread Sébastien Piller
That's it! I'm too stupid... sorry for the disturbing ;) Martijn Dashorst a écrit : My first guess is that the IVisitor is not serializable. Since you create two nested anonymous inner classes inside one another, the behaviors keep a reference to the IVisitor. Martijn

Re: It is there any Component not translate the HTML tag, and display the right format

2008-01-30 Thread Sébastien Piller
In fact: setEscapeModelString ;) Gerolf Seitz a écrit : .setEscapeOutputStrings(false) (or something like that) Gerolf On Jan 30, 2008 10:04 AM, laiqinyi [EMAIL PROTECTED] wrote: Hi All, now, I have integrated a wyswyg Editor with Wicket,and I save a lot of HTML tag into

DDC and page reload

2008-01-30 Thread Sébastien Piller
Hello, I have a little problem with drop down choices. I have one on my page. It stores some currencies. In the same page, I've got a Flash module, who needs the actual currency to work. I pass it using the usual flashvars. But when I change a currency on the DDC (ie from USD to EUR), the

Re: DDC and page reload

2008-01-30 Thread Sébastien Piller
Yes, no problem, but it's really trivial... My Flash object is added here (I use the ShockWaveComponent, little modified, from the wiki): ShockWaveComponent swf = new ShockWaveComponent(swf, ShirtDesignerV2.swf, 770, 480); swf.setValue(quality, high);

Re: DDC and page reload

2008-01-30 Thread Sébastien Piller
I found a patch (very ugly but works). On the onSelectionChange, I wrote this: if (MyAbstractPage.this instanceof MyPageWithTheRefreshIssue) { setResponsePage(new MyPageWithTheRefreshIssue()); } But I wonder: is this a normal behavior? I guessed I need not to refresh it manually, need I?

Re: Upload files using Flex (php move_uploaded_file equivalent)

2008-01-23 Thread Sébastien Piller
I think I got it ;) Here is what I wrote. It works fine until now. It still has some weak points (no error on client side if server can not process the file) but I paste it here: if (request instanceof ServletWebRequest) { try { ServletWebRequest swr =

How to set no cache header

2008-01-23 Thread Sébastien Piller
Hello guys, I would like to prevent a page to be stored on the client side. How can I set the Cache-Control headers? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Upload files using Flex (php move_uploaded_file equivalent)

2008-01-22 Thread Sébastien Piller
Hi everybody, I have a problem with my application. I need to upload some files on the server using an Adobe Flex application. Flex doesn't provide much control for the file upload, I can't get the raw file data that I want to upload (so I can't send them in the url, or encode them or

Re: Javascript call to wicket

2008-01-10 Thread Sébastien Piller
Yes, I'd like to do it, but as english is not my mother language, I need somebody to correct it after I write it. Who wants to do that? ;) Gwyn Evans a crit: As Cemel suggested, if you have time to put a summary up on the Wiki, it would be appreciated!

Javascript call to wicket

2008-01-08 Thread Sébastien Piller
Hello guys, I've a little question about the javascript and wicket. I need to update some models on server side using javascript (in fact, I need to update it from a flash object, and that's why I use js). But I have no idea about how to do this... I know how to call a JS function from

Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread Sébastien Piller
Yes, I tried it too, but it doesn't work. The right syntax seems to be @AutorizeInstanciation( { "poweruser", "admin", "sysadmin" } ) Thanks nasrin mansour a crit: hi i don't have enough experience in this topic like you but i think if you look at wicket-role-auth-example it's usuful and

Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread Sébastien Piller
I answered your first post (where you omitted { and }). I have seen your correction after sending this ;) nasrin mansour a crit: yes i said this before , has my syntax any different with your's? On Dec 31, 2007 2:07 PM, Sbastien Piller [EMAIL PROTECTED] wrote: Yes, I tried

Re: HTML code inside language file

2007-12-12 Thread Sébastien Piller
Marco Aurélio Silva a écrit : Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic and I need to use the i tag. But when wicket renders the text the i tag is showed on screen instead make the word italic. Any suggestion? Thank you Marco