Re: Wizard clear all formfields

2012-05-16 Thread jensiator
Ended up with this: public class ClearFormComponentWizardStep extends WizardStep { public ClearFormComponentWizardStep(String pTitleMessageKey) { this(pTitleMessageKey, new ModelString()); } public ClearFormComponentWizardStep(String pTitleMessageKey,

Wizard clear all formfields

2012-05-15 Thread jensiator
Hi everyone. I got a problem. Anyone ever had a first step contain for example a dropdown that will load default data to the other formcomponents in the wizard? The dropdown has got a ajaxformcomponentupdatingbehavior. We call our server in the ajax request and update a lot of properties in the

Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Yes you are correct. I forgot to mention that I have already tried it. It does not work because Step2 formcomponents is not a part of the wizard form when step1 is. I think its done here in Wizard class public void onActiveStepChanged(IWizardStep newStep) { form.replace(newStep.getView(VIEW_ID,

Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Good Idea. I will try it. The only drawback is that it will be done everytime. Even if I go back to step1 and don't do anything. But I might be able to live with that Thanks -- View this message in context:

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread jensiator
What about if I say that its only wicket applications? Can we narrow it down even more then? In both apps have a link to each other so the end user can toggle between them. If these link's are external links. How could you send/share the username password between den in a secure way? Https of

Re: refresh page from an AjaxLink or OnChangeAjaxBehavior

2012-05-10 Thread jensiator
Do you really need to call this? setResponse(currentPage.getClass(), currentPage.getPageParameters()); If its just some components on the same page that will be affected by the dropdown change, the above solution feels unnecessary. If you use ajax or javascript the page don't need to be updated

Re: Field with OnChangeAjaxBehavior Not updating.

2012-05-10 Thread jensiator
In the AjaxLink you change the model and I think your model becomes out of sync with the formcomponent. I think the formcomponent don't know which value it should use. The one the end user typed or the model that has changed. Sometimes it helps to think about when you want the model to be update.

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread jensiator
Thanks you everyone. A thank you Arjun for you detailed thoughts. I will see what CAS can do together with our restservices. The wicket applications is two 'clients' that talks with the same server through rest. -- View this message in context:

Single sign on (SSO) for two WicketApplication

2012-05-09 Thread jensiator
Anyone got some experience on this? 1. Maybe using the tomcat built in SSO for two applications? 2. Could one add a filter/Servlet that handles it for the two Wicket Applications? 3. Some products that anyone have good experience with? I have google on this but have not found any good 'how to' or

Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread jensiator
I got a weird problem. I'm changing to wicket 1.5. In some places we use Jbpm. And I use wicket-spring. I have not setup the Jbpm myself but when we used wicket 1.4 the wicket application had a memory usage about 70 mb(taskManager). After switching to wicket 1.5 the memory goes up to 300mb. In

Re: Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread jensiator
I'm sorry I will need to describe it better. The Jbpm is at this point out of my reach. No doubt it has been implemented badly (by others) and I will look into it when I got time. The question is why this jbpm project is affecting wicket 1.5 more than wicket 1.4. Remember that I switch to an

Re: Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread jensiator
It's a bank system so I cannot give you any quickstarts. The 'suites' would jump on me with nail boots. But there is no JBPM code at all I have mocked it. Its enough to start and empty Wicket application. Thats why I can only refer to the config. I'm working in eclipse and I will try Eclipse

Re: Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread jensiator
worth mentioning. I'm using Spring 3.0.6.RELEASE. And the JBPM is old jbpm 3. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-jbpm-spring-configuration-tp4607670p4607871.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Migration to wicket 1.5 and properties.xml files

2012-05-01 Thread jensiator
This seems to be working. I'm will just using for a couple of days. Until I have been able to check all the other changes. Then in one chunk I will replace all the xml files when I have confirmed that the application is behaving well. In init of application and -- View this message in

Re: Migration to wicket 1.5 and properties.xml files

2012-04-30 Thread jensiator
thank you. Ill look into it -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Migration-to-wicket-1-5-and-properties-xml-files-tp4597473p466.html Sent from the Users forum mailing list archive at Nabble.com.

Migration to wicket 1.5 and properties.xml files

2012-04-29 Thread jensiator
Hi everyone. I'm late out with migration. And I have a problem. We got a big system using wicket. The .xml change to .properties.xml could be painful. I could just rename all xml files so I can reach the pages to check if some migration features has been successful. But the check on the

Re: Any news on 1.5 - mapping different error pages for specific errors

2012-04-26 Thread jensiator
I will try to contribute -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4588983.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Any news on 1.5 - mapping different error pages for specific errors

2012-04-25 Thread jensiator
I Think is something like: public IRequestHandler onException(RequestCycle pCycle, Exception pException) { if(pException instanceof SomeException) { return new RenderPageRequestHandler(new PageProvider(new SomeSpecialOwnErrorPage())); } } From my peek in the super class. Have not tested it.

Re: TextField submit via Ajax

2011-02-07 Thread jensiator
Thanks. I have been looking for this for s long. Thank again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3264367.html Sent from the Users forum mailing list archive at Nabble.com.

Re: jquery ui dialog and ajax component updating

2010-12-16 Thread jensiator
Thanks. Now I got it working. I got a panel that contains an test ajaxlink and a dialog(also in a panel). My problem was that when the outer panel got ajax updated, then the dialogpanel could not find the javascript in the headerpart. And if I added the javascript in

Re: jquery ui dialog and ajax component updating

2010-12-16 Thread jensiator
Even better IRequestTarget target = RequestCycle.get().getRequestTarget(); if(target instanceof AjaxRequestTarget) { pResponse.renderJavascript($('#+Dialog.this.getMarkupId(true)+').dialog('destroy').remove();, null); }

Re: jquery ui dialog and ajax component updating

2010-12-12 Thread jensiator
Did you solve this problem? Im having the same problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-dialog-and-ajax-component-updating-tp1857058p3085030.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Different xml property filename for the markup and java

2009-06-05 Thread jensiator
That is what I missed! That must be the solution. Thanks Igor Jens -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23885796.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Different xml property filename for the markup and java

2009-06-04 Thread jensiator
Thanks for the suggestions everone! Jens -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23864326.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Different xml property filename for the markup and java

2009-06-04 Thread jensiator
But still... Everything I read says that wicket searches for property files on class hierarchy and nesting. And that a good thing of cource. But... Lets say that I would like to have one big xml property file for every functionality package (that our customers might want to buy). Most of the

Re: AjaxResponse with control characters is not validated

2009-05-08 Thread jensiator
done! igor.vaynberg wrote: open a jira issue and add a quickstart please. -igor On Thu, May 7, 2009 at 4:12 AM, Jens Alenius jens.alen...@megasol.se wrote: Hi. Found something that might be a wicket ajax bug. This code wont work in Firefox and we believe that its the Ajax xml

Re: DropDownChoice with ChoiceRender problem

2009-05-06 Thread jensiator
But still. In this case the map is constant. What when the values is fetched from db. Are you going to call tha db every time you want to get the displayname? Jens -- View this message in context: http://www.nabble.com/DropDownChoice-with-ChoiceRender-problem-tp23374394p23401547.html Sent from

Re: DropDownChoice with ChoiceRender problem

2009-05-05 Thread jensiator
Try adding a selectoption in you 'backingbean'. The Dropdown choice want to 'bind' it self to the same type of property in the model as in the List that you fill it with. If you use the generics on the dropdown it will be much clearer. Jens Alenius Juha Palomäki wrote: I think the

Re: How to append JavaScript to a link?

2009-05-05 Thread jensiator
I would not use javascript direct. Use wickets Ajax components instead. I would use a AjaxLink and a wicket Modal Window. The modal window would then contain the message and Ok and Cancel button. Jens HHB wrote: Hey, The last cell in a data table is a link (that is contained in a

Re: DropDownChoice with ChoiceRender problem

2009-05-05 Thread jensiator
Why dont you let handicapaccess be of the type SelectOption. It will contain the getId and getName. So you can get the Y or Yes if you want to. You could ever rename selectoption to HandicapAccessBean to make it clearer. I have created a dropdownchoice that maps to an UUID in the Model

Re: Global resources

2009-03-18 Thread jensiator
Thanks Igor That really help me getting started. I'm able to use BundleStringResourceLoader but it only loads property files. Do I have to write my own StringResourceLoader for xml file propertyfile? Jens Alenius -- View this message in context:

Global resources

2009-03-16 Thread jensiator
Hi Im suspecting that there is a very easy solution for my problem this time. I got to define som global string resources. I allready have a MyApplication.xml where I store them. Our application is going to be big so I need a way to splitt the properties in differents xml files in the future.

Re: Modal Window inside a wizardstep

2009-03-12 Thread jensiator
I stoped using panels as content in the modal window. Then the problem went away. Now I only use PageCreator when working with modalwindows. Theres is as well a problem with datetime pickers in modalwindows when using panels, so I guess pages is best in modals. Jens -- View this message in

Re: modal window with iframe - ajax refresh on parent page

2009-03-06 Thread jensiator
Hi geke Have you solved your problem? I also have a ModalWindow with my own defined callbacks that wont update the parent page components. I'm using pagecreator to add the content of the ModalWindow. When I add a Panel to the ModalWindow through setContent It works. Jens -- View this message in

Callbacks with abstract method in ModalWindow

2009-03-05 Thread jensiator
Hi. Im having a problem with the modalwindow again. It's probably my code so I'll try to explain what I doing. I have a Panel that I want to reuse. It's a panel with a form where you can update som data. Because it will be used by different pages with Ajax Behavior I want a to add a callback

Re: Callbacks with abstract method in ModalWindow

2009-03-05 Thread jensiator
It might have something to do with which Page the AjaxRequestTarget belongs to. The AjaxRequestTarget from the Ajaxbutton in the CallBackPanel belong to ModalContentPage. Not the Page that Uses the ModalWindow. AnyOne have a explanation? Jens -- View this message in context:

Re: Modal Window inside a wizardstep

2009-02-25 Thread jensiator
I'm getting the background submit on both IE7 and Firefox 3.0.6. I'll try to change the wizardbuttons to ajaxbuttons and see if this problem will disappear. I think it has something to do with the default form behavior with the enter key. Still I would like someone to confirm this behavior. (It

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread jensiator
My experience is that null values a nice to use. What if you have a optional email field? When the user starts to write something the email validation kicks in. I think a lot of wickets validators uses Null in that case. And I have used that i JSP/Struts programming to. I think its better to

Modal Window inside a wizardstep

2009-02-24 Thread jensiator
Hi. I got a modal window with a form(a search function). The modal window is opened from a wizard step that uses non ajax submitbuttons. When I press the enter key inside my modal search form, the underlying wizard step submits. Happens even when the AjaxButton is in focus in the modal window.

Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator
Hi After my post with the private wizardmodel inside wizardstep I decided to change to the latest snapshot instead of using rc2. Suddenly IE wont display my markup correct. But Firefox does.The corrupted design in IE is a typical stylesheet error. I noticed that HeaderContributor.forCss is now

Re: Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator
Found what was causing the problem. The latest snapshot seems to add a comment before the doctype tag. IE cant handle that. Example form my code for my LoginPage. !-- Page Class net.megasol.corniche.net.core.pages.login.Login -- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Re: Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator
Of course! Thanks! -- View this message in context: http://www.nabble.com/Latest-snapshot-and-CSSPackageResource.getHeaderContribution-tp21973733p21991737.html Sent from the Wicket - User mailing list archive at Nabble.com.

private wizardModel field in WizardStep

2009-02-10 Thread jensiator
Hi I would like to get the wizardmodel in a class that extends from WizardStep. The WizardStep contains the wizardmodel put it not accessable from the extended class. Does anyone know why? I can get hold of the wizardmodel if I override onInit(Wizardmodel) in my WizardStep and add it as a

Re: Bugs in wicket

2008-11-17 Thread jensiator
Cant find a bug number. Heres the url. http://wicketstuff.org/jira/browse/WSCAL-4 Jens Please can you give us the bug number (Wicket-) so we can vote for this bug and follow it? Regards. jensiator wrote: I've reported it to wicket JIRA. Jens TahitianGabriel wrote: Yes

Re: Getting Panel body content

2008-11-17 Thread jensiator
. that gives you full control over the text. -igor On Mon, Nov 17, 2008 at 1:34 AM, jensiator [EMAIL PROTECTED] wrote: Hi I've created a Panel that I would like to act as a AjaxLink in the markup. I would like to be able to add a wicket:message tag in the body content of the panel and get hold

Re: Bugs in wicket

2008-11-17 Thread jensiator
oops. Missed that... I'll post there as well Jens TahitianGabriel wrote: OK, thank you. I was looking for it in the wicket jira (not wicketstuff) : http://issues.apache.org/jira/browse/WICKET. I guess it's the right place to post it anyway... jensiator wrote: Cant find a bug

Re: Bugs in wicket

2008-11-10 Thread jensiator
I've reported it to wicket JIRA. Jens Yes it seems to have a bug with datepicker in ModalWindows with IE7 (works with firefox 3). In file calendar-min.js line : this.oDomContainer.innerHTML=B.join(\n) I think that innerHTML property is readonly in IE7. -- View this message in context:

Bugs in wicket

2008-11-07 Thread jensiator
Hi I have noticied something in wicket-datetime that might be a bug. (DatePicker in a ModalWindow with IE7) Where can I registrate unknown Issues and check existing Issues in the wicket framework? Jens -- View this message in context:

Re: DateField throwing runtime error in IE only

2008-11-06 Thread jensiator
I got the same problem. And I dont want to change the contentpanel to a page content in the modal. Does anyone got a solution for this? Jens Michael Mehrle wrote: I have a DateField inside a modal and when clicking on the date icon it's throwing a 'unknown runtime error' in IE's JavaScript

Re: DropDownChoices where Model is different from Data

2008-11-03 Thread jensiator
, then choicerenderer itself can decide howto display data.. And yes if you chain stuff and implement your own model etc you can do it all your own way.. jensiator wrote: Hi. I have a form model containing a idKey that is supposed to be selected from a dropdownchoice. Does anyone know if its

DropDownChoices where Model is different from Data

2008-11-03 Thread jensiator
Hi. I have a form model containing a idKey that is supposed to be selected from a dropdownchoice. Does anyone know if its possible have a complex data type in the dropdownchoice when the model is only a idKey? The dropdownchoice wants to set the complex data type in the form model. For example

Wizard with CompoundPropertyModel

2008-10-17 Thread jensiator
Hi everyone Time for a new question. This time its about the wizard component. I have already done a couple of wizards and they work well. I have looked at the example in wicket and of course I have changed it a little bit. I dont want the steps do be static private classes so in my solution I

Re: Wizard with CompoundPropertyModel

2008-10-17 Thread jensiator
Hi Mattias I have a solution where I sending the a ordenary Model into the WizardStep constuctors and it work well. I thought that the CompoundPropertyModel should nest itself down the children so you didn't have to send it down the chain. I think that in your case, you could change the

Re: WebPage constructor

2008-10-15 Thread jensiator
Thanks Johan So that means that if you would like to fetch data every time the page is shown you would need to call the database in the onrender method. I'm not using a repeater, only labels to display the data.(With a repeater I could use the populatemethods that runs during onrender). Or might

Re: WebPage constructor

2008-10-15 Thread jensiator
Thanks Mårten and Johan. Now I know what to do. Sometime you just need to discuss issues in wicket because there is not so many bestpractise aricticles. Like in the Struts Framework. But it will change in time... Jens -- View this message in context:

Re: WebPage constructor

2008-10-15 Thread jensiator
Oh and to you that has read this thread looking for code examples. Here is my code for doing this. (Hope it's the right way of doing it) There is no form or repeater in the page. It only shows a persons data from the database. Even when hitting refresh in browser. In page constructor public

WebPage constructor

2008-10-14 Thread jensiator
Hi I have a page that extends webpage, when I hit the browsers refresh button the constuctor wont run. It only runs when I press the PageLink that point to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id) ). Is it suppossed to be like that (working with onrender instead at a

Re: Serializing model. DetachedModel or not

2008-10-08 Thread jensiator
(new label(o, o)); -igor On Tue, Oct 7, 2008 at 12:21 AM, jensiator [EMAIL PROTECTED] wrote: Thanks Igor In my code I started with with a LDM initialized with the modelobject itself. But it if the modelobject dont implement serializable I get serialize exception for the modelobject(e.g

Re: Serializing model. DetachedModel or not

2008-10-07 Thread jensiator
Thanks Igor In my code I started with with a LDM initialized with the modelobject itself. But it if the modelobject dont implement serializable I get serialize exception for the modelobject(e.g. contact). My assumption is that the modelobject is being serialized to the session. I thought that the

Re: Serializing model. DetachedModel or not

2008-10-07 Thread jensiator
Hello Edmund. Nice to have someone in the same timezone! Thanks for your reply. I'll try to set the modelobject member in the LDM to transient and see if it solves the serializing exception(even if you don't recommend it). Just want to try it out. If I understand you correctly you only keep a

Serializing model. DetachedModel or not

2008-10-06 Thread jensiator
Hello Im working on a Pageable dataview using SortableDataProvider and I have trouble to find out how It should be done regarding memory use versus database requests. I've looked on the repeaters live action and read the model chapter in wicket in action. 1. If I dont use the

Re: Serializing model. DetachedModel or not

2008-10-06 Thread jensiator
Hi Igor If the sortabledataprovider calls the db to get the window of data, and the detached model (set in the dataproviders model method) calls the db in the load method to get the data from a private transient id. Will not the database be called twice for every record/row in the dataset? The

WebPage error when throwing RestartResponseException in onBeforeRender

2008-09-02 Thread jensiator
Hello everyone. Im trying to redirect the user to another page in OnBeforeRender. I works but I get a wierd error in the tomcat console. Here it follows: ERROR - WebPage- You probably forgot to add a body or header tag to your markup since no Header Container was. But when I

Re: Please comment the Branding Link idea

2008-08-12 Thread jensiator
Last comment from me. If anyone is interessed. Wicket:link is not suitible to use because then you cant use dynamic pageParameters. In my final version I registert all branded pages during deployment. Adds them as a global to in a HashMap in MyApplication class. Navlink only check if there is a

Please comment the Branding Link idea

2008-07-30 Thread jensiator
This idea dont need a propertyfile! But I want to repeat that I'm using a jar that the branded webapplication depends on. The jar is the core functionallity that all brands depends on. As you see in the replace Im keeping the package structure in the webapplication(on overrided component/pages).

Re: Branding a PageLink target Page

2008-07-28 Thread jensiator
jensiator wrote: Thank you for the feedback. Okey, I have a NavLink.class that extends PageLink. The keys in the property file is the full class name. If the property file don't contain the class name key, NavLink will just call the PageLink constuctor with the the class name as usual

Re: Branding a PageLink target Page

2008-07-11 Thread jensiator
Hi greeklinux Yes. The branding of links means that I want to dynamicaly configure the PageLink Target for a customer? -- View this message in context: http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18397492.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Branding a PageLink target Page

2008-07-11 Thread jensiator
Thank you for the feedback. Okey, I have a NavLink.class that extends PageLink. The keys in the property file is the full class name. If the property file don't contain the class name key, NavLink will just call the PageLink constuctor with the the class name as usual. If the property file

Branding a PageLink target Page

2008-07-10 Thread jensiator
Hi Does anyone know if its possible to brand the target/response page for a PageLink in wicket? I have a core jar with all the base classes. I then have a war project that depends on the core jar (using Maven2 + Idea). There will be a war for every customer. Im able to brand everything I want to

Re: Sortable Paging DataView inside a tabpanel and backbutton

2008-06-03 Thread jensiator
, but what does you need equals on UUID in Java mean? - Scott On Fri, May 30, 2008 at 5:47 AM, jensiator [EMAIL PROTECTED] wrote: Okey. Found a bug in my code forget everything. Wicket components is working fine, no problem in constructors. Use to CSharp and forgot that you need

Re: Sortable Paging DataView inside a tabpanel and backbutton

2008-05-30 Thread jensiator
when you press back you get the cached version the browser keeps around. -igor On Thu, May 29, 2008 at 5:11 AM, jensiator [EMAIL PROTECTED] wrote: okey.. Has anyone done this. I have a DataView that uses a SortableDataProvider so that the dataview can be paged and sortable. The dataview

Re: Sortable Paging DataView inside a tabpanel and backbutton

2008-05-30 Thread jensiator
Okey. Found a bug in my code forget everything. Wicket components is working fine, no problem in constructors. Use to CSharp and forgot that you need equals on UUID in Java. I've spent two days on this. Silly me blaming wicket Jens -- View this message in context:

Sortable Paging DataView inside a tabpanel and backbutton

2008-05-29 Thread jensiator
okey.. Has anyone done this. I have a DataView that uses a SortableDataProvider so that the dataview can be paged and sortable. The dataview is contained in a tabpanel in a TabbedPanel(no Ajax). When I select the dataview tabpanel I see the rows. I then select another tab and then press