Re: Asynchronous construction of page

2009-11-03 Thread Kaspar Fischer
I will try to use pages in iframes then. Thanks a lot, Igor. Kaspar On 02.11.2009, at 22:59, Igor Vaynberg wrote: if you want nonblocking you have to make each thing you are trying to load asynchronously its own page inside an iframe. the page itself can only be accessed synchronously,

Attribute modified question

2009-11-03 Thread pieter claassen
I am sure I am doing something very silly here but When I add the following AttributeModifier in my onBeforeRender() method, the solution works as expected (so I load an image that indicates that this page is selected) icon.add(new AttributeModifier(this.src=' , null, true, new

Re: Where to put HTML files?

2009-11-03 Thread Gonzalo Aguilar Delgado
Thank you a lot to all for your commentaries... Everything exposed here seems to help me in one way or another. I will run a test for best approach and after decide the best way for me. Thank you again! El jue, 29-10-2009 a las 14:27 +0100, Martijn Dashorst escribió: On Thu, Oct 29, 2009

Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
Hello Again! I have a form that I build dynamically based on a render parameter value. I'm using http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html I use the constructor: /** * Constructor */ public ViewModePage() { ...

SimpleAttributeModifier on SubmitLink?

2009-11-03 Thread Peter Arnulf Lustig
Hi, how can I achieve something like that: abschliessen = (SubmitLink) new SubmitLink(abschliessen, antwortForm) { @Override public void onSubmit() { preQuestionInit(); Worker.ClosingTestprocedure(tp); preQuestionInit();

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Pedro Santos
But when I submit the form the constructer gets not called anymore. this is an expected behavior, an component instance is held on pagemap between requests. But as I have to build the form I do not have a dynamic model on page. Can't you manage an instance of an dynamic model on your component,

AW: OSGi Wicket

2009-11-03 Thread Giambalvo, Christian
Thanks for all answers. I think OSGi is to much overhead for my needs. Joint fits more my needs, but includes unneeded overhead (for my project). I think I will implement my own mechanism with using a custom ClassResolver, cause I just need to search in new added jars (URLClassloader),

Re: SimpleAttributeModifier on SubmitLink?

2009-11-03 Thread Ernesto Reinaldo Barreiro
I have used ModalWindow for similar use cases... and then do the actual work on the ok button of a modal confirmation dialog. Is that approach fine for your use case? Regards, Ernesto On Tue, Nov 3, 2009 at 10:23 AM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, how can I achieve

Re: SimpleAttributeModifier on SubmitLink?

2009-11-03 Thread Martijn Dashorst
Take a look at AttributeAppender, and transform it into AttributePrepender Martijn On Tue, Nov 3, 2009 at 10:23 AM, Peter Arnulf Lustig u...@yahoo.de wrote: Hi, how can I achieve something like that: abschliessen = (SubmitLink) new SubmitLink(abschliessen, antwortForm) {          

Portlet, liferay, strange error messages

2009-11-03 Thread Goran Novak
Hi I'm using wicket 1.4.1 to develop portlets for liferay 5.2.3. In jboss server.log I see errors coming from wicket. Does's somebody know if these are real errors or just info messages that wicket sends to console like error messages as it seems. Porlets works fine. Versions

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
Let me see if I understand what you say. I should build the form inside a component instead the page. And I should keep a reference to the dynamic model inside this component. This makes sense for me but I find one problem. Where do I read the renderer parameter? Because this code gets

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Pedro Santos
I should build the form inside a component instead the page. And I should keep a reference to the dynamic model inside this component. Not what I try to mean. your report: But as I have to build the form I do not have a dynamic model on page. You can have your model, and you can have your

Re: DefaultObjectStreamFactory | Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-11-03 Thread A. Maza
Thanks Igor, I have seen that the Objects class provides a static setter in order to use a different Implementation of IObjectStreamFactory instead of the DefaultObjectStreamFactory. Where would you recommend to place the code to set my own implementation of IObjectStreamFactory using the

Re: Tree table with check box

2009-11-03 Thread vela
Hello again, Please find the code below In Page class: IColumn columns[] = new IColumn[] { new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT, 100, Unit.PERCENT),Check,userObject.name) {

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
I should build the form inside a component instead the page. And I should keep a reference to the dynamic model inside this component. Not what I try to mean. So what's the way? your report: But as I have to build the form I do not have a dynamic model on page. You can have your

Re: DefaultObjectStreamFactory | Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-11-03 Thread Igor Vaynberg
application init should be fine. -igor On Tue, Nov 3, 2009 at 5:02 AM, A. Maza andr.m...@gmail.com wrote: Thanks Igor, I have seen that the Objects class provides a static setter in order to use a different Implementation of IObjectStreamFactory instead of the DefaultObjectStreamFactory.

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Pedro Santos
Hi Gonzalo, I thought that with buildForm implementation I will see how you create your form component. But seams that it is created on the line: QuestionComponentFactory.getComponent(question,response) Instead of ask you for more code, I will try to explain myself: So no matter what's the value

Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! I need to accomplish the following: 1. receive ajax onchange event from a formcomponent 2. receive defaultformprocesing=false style submit 3. repaint an area; I this is why I need the form to be really submitted (=rawinput but not validated). I have built a custom component

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! Maybe this is the solution: String url = getRequest().getParameter(getHiddenFieldId()); if (!Strings.isEmpty(url)) { dispatchEvent(getPage(), url); } ?? Attach

RE: Glue for composing panels

2009-11-03 Thread Frank Silbermann
Michal, I adopted your idea, but with a variation. It is something like: // Use this instead of WebPage for any base page whose component-tree // construction relies on abstract or overridable methods. // abstract class DelayedConstructionWebPage extends WebPage { private Boolean

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
But Pedro, Everything works well. The form got created and everything gets sent and updated when I click the submit button. So in this aspect everything works well. The only problem is that I need to get a render parameter that actually I only get in constructor so never gets updated and I

Re: uploaded files in page instance

2009-11-03 Thread fachhoch
Is there any open source utility to write and manage files to temp folder , handle deletion , signle thread access etc ? Newgro wrote: Igor Vaynberg schrieb: you guys ever hear of transactional isolation? :) databases handle all this kind of neat stuff for you. -igor Oh, i

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! I hope I found a solution usin IOnChangeListener. Please try this out and let me know if it works for you. Maybe it should be incorporated into Wicket? public abstract class FormSubmitAjaxChangeListenerCallDecorator implements IAjaxCallDecorator { private final static Method

Re: Page model returning null

2009-11-03 Thread Loren Cole
Oh. That is embarrassing. Sorry for taking your time. On Mon, Nov 2, 2009 at 7:47 PM, Jeremy Thomerson jer...@wickettraining.comwrote: On Mon, Nov 2, 2009 at 4:57 PM, Loren Cole loren.c...@gmail.com wrote: HomePage hp = (HomePage) this.findPage();

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! One finishing touch is needed. The hidden field should be cleared after ajax submit. It seems to work now.. feel free to critisize. public abstract class FormSubmitAjaxChangeListenerCallDecorator implements IAjaxCallDecorator { private final static Method hiddenFieldGetter; static {

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Pedro Santos
ok, how this parameter get updated? You receive it on every request? If so, the usual way of to build your render logic dynamically is to implement component onBeforeRender method, rather than on your component constructor. See the ListView code for example: based on the model object (an list) the

Dynamically insert/remove WizardSteps based on user input ?

2009-11-03 Thread smallufo
Hi all : It seems the WizardSteps are added into WizardModel in the constructor time. I wonder if it is possible to dynamically insert/remove WizardSteps based on user input ? (wicket-1.3.6) Thanks a lot.

Re: London Wicket Event at Foyles Bookshop, November 21st, 2009

2009-11-03 Thread Martijn Dashorst
Bring your copy of Wicket in Action Martijn On Tue, Nov 3, 2009 at 12:11 AM, jWeekend jweekend_for...@cabouge.com wrote: We will hold our next London Wicket Event on Saturday, 21st November, from 14:45. This time we have hired The Gallery at the iconic Foyles Bookshop in central London.

Re: Tree table with check box

2009-11-03 Thread Per Newgro
You add a single column to your tree. But you overlay the default cell component by the checkboxpanel. So you don't get all the stuff from parent component (Like link and node icon etc). Check TreeTable.TreeFragment for details. You have two opportunities: 1. If you want to add your checkbox

Re: 508 accessibility support

2009-11-03 Thread fachhoch
AjaxFallbackDefaultDataTable we add columns, I use PropertyColumn , can I add any attributemodifier to it ? ryantxu wrote: takes values for alt attribute . Like the sortable columns , If I can set value for alt attribute that would be really nice. how about: div.add( new

javax.crypto.BadPaddingException on expired sessions using CryptedUrlWebRequestCodingStrategy

2009-11-03 Thread Anthony DePalma
I am getting a WicketRuntimeException whenever a user clicks a session based url after the session has expired. I noticed there was a previous thread about this here: http://old.nabble.com/Problem-with-Crypted-URL-to20533640.html#a20542221. I was hoping since I upgraded my application to use the

Re: problem with generation text in javascript code

2009-11-03 Thread paul wolanski
Hello, Thank you Igor. it is what I've looked for. Another solution is using VelocityPanel, which I did not wanted to use.. - paul igor.vaynberg wrote: you can use TextTemplateHeaderContributor to externalize the template and define replacement vars. -igor On Fri, Oct 30, 2009 at

Re: Problem with IFormsubmitting

2009-11-03 Thread Jeremy Thomerson
The power of this list is amazing - it seems you just had an entire thread with yourself and answered your own question. SYNERGY! :) But seriously, did you have any remaining questions on this that we could assist with? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 3, 2009

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Tnx. I would like to ask (myself?) whether it could be formulated simply into a behavior that can be attached into any formcomponent. Probably. I will work on this next. Ofcourse if more people try the code in their applications we will soon learn if it breaks something. ** Martin 2009/11/4

Re: Problems with displaying modal window

2009-11-03 Thread Martin Makundi
WHy not fix your doctype first? ** Martin 2009/11/4 Anders Sørensen aisz...@gmail.com: Hello everybody. I have a webpage under development where I use modal windows. This has so fare not caused any problems - but now I get an error on one of my pages. I have just added the modal window

Migrating wivket app from 1.2.4 to 1.4.3

2009-11-03 Thread Shankar Subedi
Hello all, I had build an application on wicket 1.2.4, spring and hibernate some about 2 years before. Now i think, i need to upgrade wicket. Since there are number of releases in between those version, I think there are many modifications to be done. Please show me the way.. Thanks in advance

Re: Migrating wivket app from 1.2.4 to 1.4.3

2009-11-03 Thread Igor Vaynberg
our wiki contains migration pages for 1.2 to 1.3 and 1.3 to 1.4 -igor On Tue, Nov 3, 2009 at 9:17 PM, Shankar Subedi shankar.sub...@gmail.com wrote: Hello all, I had build an application on wicket 1.2.4, spring and hibernate some about 2 years before. Now i think, i need to upgrade wicket.

Re: Tree table with check box

2009-11-03 Thread vela
Hello again, My requirement is exactly related to the point 1. you specified 1. If you want to add your checkbox directly beside the tree structure components you have to copy the code from the treetable class If you could elaborate a bit, it will be very much useful to try out. --

java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/PropertyResolver

2009-11-03 Thread Anders
My environment: . Apache Tomcat/6.0.18 . JDK 1.6.0_12-b04 I got this weird message in tomcat log, too: Nov 4, 2009 12:13:03 AM org.apache.catalina.startup.HostConfig checkResources INFO: Reloading context [/acm] Nov 4, 2009 12:13:03 AM org.apache.catalina.core.ContainerBase stop INFO: Container

Serialization Error

2009-11-03 Thread Douglas Ferguson
I'm getting a serialization error in my logs: Nov 03 23:00:01 ERROR [TP-Processor34] lang.Objects - Error serializing object class com.conducive.ui.userPages.monitor.manage.MonitorsManagePage [object=[Page class = com.conducive.ui.userPages.monitor.manage.MonitorsManagePage, id = 120, version

Re: Serialization Error

2009-11-03 Thread Igor Vaynberg
comparator does not extend serializable. make an inner class that extends serializable. -igor On Tue, Nov 3, 2009 at 11:27 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I'm getting a serialization error in my logs: Nov 03 23:00:01 ERROR [TP-Processor34] lang.Objects - Error

Re: Migrating wivket app from 1.2.4 to 1.4.3

2009-11-03 Thread Martijn Dashorst
http://maps.google.com/maps?f=dsource=s_dsaddr=wicket+1.2daddr=wicket+1.4hl=engeocode=mra=lsdirflg=wsll=35.50998,-81.271745sspn=0.010428,0.016093ie=UTF8z=19 On Wed, Nov 4, 2009 at 7:13 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: our wiki contains migration pages for 1.2 to 1.3 and 1.3 to