Re: Need to Understand CheckGroup and Check

2009-04-30 Thread Mathias P.W Nilsson
The selection variable is a collection or a wicket model with an object of collection. You can preselect you values by using the same classes there. Consider this FormString form = new FormString( form ); String[] someStrings = new String[]{ Wicket , Hibernate, Maven, Spring };

Re: How to remove a row from DataTable?

2009-04-30 Thread Mathias P.W Nilsson
I don't know if you can remove one row and just update the row as you can with TreeTable but maybe some here could guide you. If it is good enough to update the whole table then maybe somthing like this. this is typed from my head so there may be errors. public abstract DeleteContactPanel

Re: How to remove a row from DataTable?

2009-04-30 Thread Mathias P.W Nilsson
Actually is the wicket coders that uses this style in amost every component. -- View this message in context: http://www.nabble.com/How-to-remove-a-row-from-DataTable--tp23312849p23315231.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: adding javascript to response

2009-04-23 Thread Mathias P.W Nilsson
If you have an AjaxSubmitLink you can do the following public void onSubmit( AjaxRequestTarget target, Form form ){ target.appendJavascript( alert( 'hi!' ); ); } -- View this message in context: http://www.nabble.com/adding-javascript-to-response-tp23187923p23197512.html Sent from the

Re: ModalWindow Position

2009-04-23 Thread Mathias P.W Nilsson
You could maybe make your own javascript for the modal window Wicket.Window.prototype.center = function() { // Set your window here. }; -- View this message in context: http://www.nabble.com/ModalWindow-Position-tp23156615p23197519.html Sent from the Wicket - User mailing list archive

Re: Constructor not being called when Back button clicked

2009-04-01 Thread Mathias P.W Nilsson
Like matej says @Override protected void setHeaders(WebResponse response) { response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0, must-revalidate, no-store); } -- View this message in context:

Re: simple Link

2009-03-29 Thread Mathias P.W Nilsson
Have a look at source code of ExternalLink and Link to see the differens. -- View this message in context: http://www.nabble.com/simple-Link-tp22760269p22766869.html Sent from the Wicket - User mailing list archive at Nabble.com.

Compound property model

2009-03-27 Thread Mathias P.W Nilsson
Hi, When testing this the user in the onSubmit is null. I load a list of Connectors and make an CompoundPropertyModel for the list. Every connector has a user. How can I achive this so that the list is populated with users in the onSubmit()? package

AjaxTabbedPanel stopped working.

2009-03-21 Thread Mathias P.W Nilsson
Hi, I know this code is long but for some reason my AjaxTabbedPanel,link,onSubmit() is not getting called. package se.edgesoft.hairless.web.page.site.checkout; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import

Re: AjaxTabbedPanel stopped working.

2009-03-21 Thread Mathias P.W Nilsson
Thanks! You really saved my day. -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-stopped-working.-tp22639328p22639422.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Disable or hide tabs in AjaxTabbedpanel

2009-03-19 Thread Mathias P.W Nilsson
When hiding the link and the panel the li elements is still visible. -- View this message in context: http://www.nabble.com/Disable-or-hide-tabs-in-AjaxTabbedpanel-tp22585946p22608409.html Sent from the Wicket - User mailing list archive at Nabble.com.

Disable or hide tabs in AjaxTabbedpanel

2009-03-18 Thread Mathias P.W Nilsson
Hi, I need a way to hide or disable a tab for certain conditions. Is there a way of doing this with overriding newLink(java.lang.String linkId, int index) ? I need to get this to work with ajax. example. User changes language and I need to disable or hide certain tabs. -- View this message

Explaination of Ajax in Wicket

2009-03-18 Thread Mathias P.W Nilsson
When using an ajaxlink my modelObjectAsString on a textField is always empty. It is always set to where it was when the page was generated package se.edgesoft.hairless.web.page.site.checkout; import java.util.LinkedList; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget;

Re: Explaination of Ajax in Wicket

2009-03-18 Thread Mathias P.W Nilsson
After chaning all my AjaxLink to AjaxSubmitLink it works a little better, still some questions. Why can't I use ajaxLink here? another question on Ajax and wicket. Let's say I have a MarkupContainer with some fields. This is contained in another MarkupContainer. When switching tab I want to

Re: Explaination of Ajax in Wicket

2009-03-18 Thread Mathias P.W Nilsson
Ok, I got it to work but I'm still rather confused. -- View this message in context: http://www.nabble.com/Explaination-of-Ajax-in-Wicket-tp22589797p22592233.html Sent from the Wicket - User mailing list archive at Nabble.com.

XML localization

2009-03-05 Thread Mathias P.W Nilsson
I've tried search the forum and googled but no answer so I'll give it a try. A while ago we needed to implement a new language to our wicket site. We changed from .properties to .xml to get this to work. The problem is that some things has stopped working. Consider the following We have a

Re: Model on Select

2009-02-13 Thread Mathias P.W Nilsson
After switching from Select and SelectOption to DropDownChoice it works. Maybe there is a problem with my Select code or there is a wicket bug. // Mathias -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p21994805.html Sent from the Wicket - User mailing list

Re: Adding/Replacing links in Panels

2009-02-13 Thread Mathias P.W Nilsson
Hi, I guess there could be other ways to do this better. Try using break after each case. switch( comp ){ case ROLE: break; } If you don't use break the link will be added twice -- View this message in context:

What's your take on handling markup in properties, html, wicket

2009-02-13 Thread Mathias P.W Nilsson
Hi, Just wondering how this should be handled without DRY. In many scenarios we have multiple languages that should have the same markup but different text. This could be handled by using variation and put every language in an own html file like myWicketPage_style_en.html. However, this is not

Re: Model on Select

2009-02-13 Thread Mathias P.W Nilsson
That may be the case but I have already tried that and it does not solve my problem. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001539.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Model on Select

2009-02-13 Thread Mathias P.W Nilsson
Thanks anyway for your time, but I think I will stick to DropDownChoice for now. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001718.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: What's your take on handling markup in properties, html, wicket

2009-02-13 Thread Mathias P.W Nilsson
It would be a lot of split ups in the properties files and a lot of wicket:message but I guess it is the best way when separation markup from pure text. This is always a problem. I'm dealing with the same concern when a user want's to add html markup to a news that is saved in the database.

Re: Model on Select

2009-02-13 Thread Mathias P.W Nilsson
Hi again, I created a small project with wicket extension and here it worked fine, even if I used setReuseItems( false ). So the problem must be in my code somewere. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22002751.html Sent from the Wicket - User

Model on Select

2009-02-12 Thread Mathias P.W Nilsson
Hi, I'm using CompoundPropertyModel on a form. When using with SelectOption I can't set the selected index. The none select option is there to add a none to the list. How can I set the selected option in the listview? Any Pointers? materialCategoryInformation = new

Re: Model on Select

2009-02-12 Thread Mathias P.W Nilsson
Odd, the first time ever I access the page the select option is set otherwise it is not. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p21975007.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Model on Select

2009-02-12 Thread Mathias P.W Nilsson
How is this possible. The first time my web container is loaded and I access the page all dropdowns and Select are set according to the values that my class has( new CompoundPropertyModel( new Model( myClass ) ) ). When returning to this page a second time the Select is not set. I have tried all

Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Mathias P.W Nilsson
Why should it be strange to edit properties for let's say a user in a modal window? -- View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-and-AjaxLink-tp21687636p21797485.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-29 Thread Mathias P.W Nilsson
Do you save it to a database and then display the text? How do you present it? -- View this message in context: http://www.nabble.com/UTF-8-bug-in-wicket--Or-in-Tomcat--tp21738467p21738754.html Sent from the Wicket - User mailing list archive at Nabble.com.

AjaxFallbackDefaultDataTable and AjaxLink

2009-01-27 Thread Mathias P.W Nilsson
Hi, I have override the newRowItem for the AjaxFallbackDefaultDataTable to make the entire row clickable. ( return new ClickableItem ). Can anyone help me with some pointers in how to make the row open a model window for editing. // Mathias -- View this message in context:

Re: Developing environment with wicket

2009-01-21 Thread Mathias P.W Nilsson
Thanks for the quick response. Will I be able to use Spring, jax-ws with this with the hair I have lest intact :) -- View this message in context: http://www.nabble.com/Developing-environment-with-wicket-tp21589337p21590117.html Sent from the Wicket - User mailing list archive at Nabble.com.

Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson
Hi, I have developed an application with wicket that has been around for about a year. A user can have serveral options for payment - Visa, MasterCard, Post parcel, invoice( several diffrent ) and some banks. My problem is that if the user choose visa, mastercard then a form should be filled

Re: Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson
The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I need a wicket form and then a plain html form. The form is submitted when all the data is checked. Since there is 10 different forms the webpage get's cluttered. Is

IllegalstateException with Hybrid strategy

2009-01-14 Thread Mathias P.W Nilsson
I get this error a lot java.lang.IllegalStateException: URL fragment has unmatched key/value pair: id/3 9258/sort/refilled/favicon The favicon must be requested by some user or spider. Anyone know how to get around this? -- View this message in context:

Re: Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson
This is what I'm doing ( via an javascript call from wicket ajax after the form is validated). Problem is that the model must be emptied when the form is submitted ( cart, order ) and then the page get's rerendered. It's all fussy. 10 forms in the same page. Must be a smarter solution. -- View

Re: [OT] wicket users around the world

2008-12-26 Thread Mathias P.W Nilsson
Munkedal, Sweden. I used wicket for 2 intranet projects and one external project. http://www.boardstore.se http://www.boardstore.se http://www.eddyemery.com http://www.eddyemery.com They both run the same wicket code. -- View this message in context:

Re: getting page expired

2008-12-09 Thread Mathias P.W Nilsson
What does userMap( userName ) returns? Make sure it is an object that implements serializable. -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20923466.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: getting page expired

2008-12-09 Thread Mathias P.W Nilsson
Are there any loggers in the class? When using private Logger logger = Logger.getLogger(this.getClass()); this might cause pag expired. If it is contained in a wicket web page. At least I know some of my collegues has got this a while ago. I'm not familiar with WASP so there might be someone else

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Is there no solution to this? this is my app ( http://localhost/myapp ). All I want is to be able to have a customer name after myapp that follows in the application. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20812776.html Sent from the

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Also you must handle the second parameter /login maybe by switching different panels or redirect to another page ! How should this be done? I must keep the customer/customerId in every page. What happens when redirecting? -- View this message in context:

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Problem is this setResponsePage(new LoginPage(moreParam); will not generate an url like http://localhost/myapp/customer1/login. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20814520.html Sent from the Wicket - User mailing list archive at

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
Nope this is not what I mean! What if I want to mount /events to Event.class and 100 customers needs to use the same page with different variation? when the user attempts http://localhost/myapp/test/events/ ( test is the customer name ) then it should invoke /events.

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
Ok Is there any topic on UrlRewriteFilter and Wicket. I still need to set variation and locale even when I use UrlRewriteFilter. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20793471.html Sent from the Wicket - User mailing list archive at

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
Thanks! I will look at this and maybe come back on the subject. One problem that I saw was that the request didn't get printed in the UrlCodingStrategy because it was not mounted in init. Maybe I'm wrong about this and need to look it over again. -- View this message in context:

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
Nope! I'm lost here. How can I create my own IRequestTargetUrlCodingStrategy when I need to add a mount path. The mount path is not the same as the page requested. Let me explain this more in detail. I wan't to mount Base.class to /login. But I need to access the /login thru /Customer1/login

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
Thank you very much but I'm afraid I can't use apache as a front end due to the server setup. I need a way to do this in wicket. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20801209.html Sent from the Wicket - User mailing list archive at

Re: Create custom UrlCodingStrategy

2008-12-02 Thread Mathias P.W Nilsson
To clarify things. It's something like in this post that I'm after. Get the customer from db See Dmitry Kandalov post http://www.nabble.com/mounting-large-number-of-url-td13972929.html#a14010271 http://www.nabble.com/mounting-large-number-of-url-td13972929.html#a14010271 -- View this message

Create custom UrlCodingStrategy

2008-11-24 Thread Mathias P.W Nilsson
Hi, I need some info in how to create my own UrlCodingStrategy This is the preconditions. I have a database with 20 - 100 customers that needs to access this application. Every customer has it's own properties files and css variation. What I want is that let's say Edgesoft wants to use the

Re: mount outside init

2008-11-22 Thread Mathias P.W Nilsson
Thanks! Yes I am but with no success. My application can be accessed in http://localhost:8080/myapp now after my app I need to get the customer path and keep it in every request. So if the user request login the path should be http://localhost:8080/myapp/customer1/login. And If the user who

mount outside init

2008-11-21 Thread Mathias P.W Nilsson
Hi! I'm building an application where I want to set variation and other settings determined by the path lets say a user request myapplication/customer1 I want to mount /customer1 to Base.class. I can do this in init by what if I add another customer via admin. How can I mount /customer2

Re: mount outside init

2008-11-21 Thread Mathias P.W Nilsson
Yes it make sence but I would not want a pair here. I would like http//sub.domain.com/customer1 not http//sub.domain.com/customer/customer1 -- View this message in context: http://www.nabble.com/mount-outside-init-tp20619679p20620631.html Sent from the Wicket - User mailing list archive at

Re: mount outside init

2008-11-21 Thread Mathias P.W Nilsson
I can't get this to work. IF I do /customer1 then wicket tries to find a mount with this. -- View this message in context: http://www.nabble.com/mount-outside-init-tp20619679p20621876.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: setOutputMarkupId and Ajax

2008-10-05 Thread Mathias P.W Nilsson
No, I understand. An eclipse plugin could solve a lot of this issues. An Wicket view that could warn, etc for all things that could go wrong. I understand now why the programmer needs to set the output and not the framework -- View this message in context:

POI HSSFSheet to ListView

2008-09-30 Thread Mathias P.W Nilsson
Hi! I have alot of Excel documents that I want to present using Wicket and POI. The problem is that I don't know how to get started using this. Here is a simple loop on how to extract cells. InputStream inp = new FileInputStream(workbook.xls); HSSFWorkbook wb = new HSSFWorkbook(new

Re: POI HSSFSheet to ListView

2008-09-30 Thread Mathias P.W Nilsson
Oh I forgot. I solved it already. // Mathias -- View this message in context: http://www.nabble.com/POI-HSSFSheet-to-ListView-tp19739001p19749515.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Need to add tool tip for hyper link

2008-09-29 Thread Mathias P.W Nilsson
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-minis-prototip Prototip -- View this message in context: http://www.nabble.com/Need-to-add-tool-tip-for-hyper-link-tp19730615p19731592.html Sent from the Wicket - User mailing list archive at Nabble.com.

Best approach dealing with error

2008-09-20 Thread Mathias P.W Nilsson
Hi! I often get this messages when the application has been running 10-50 minutes. I don't know how to track it down. 15:08:33,920 ERROR [RequestCycle] Internal error parsing wicket:interface = :6 org.apache.wicket.WicketRuntimeException: Internal error parsing wicket:interfac e = :6 at

Re: Best approach dealing with error

2008-09-20 Thread Mathias P.W Nilsson
Yes, but I don't get these exceptions local. It is when the application is deployed so I wont be able to set any breakpoints. -- View this message in context: http://www.nabble.com/Best-approach-dealing-with-error-tp19585579p19586354.html Sent from the Wicket - User mailing list archive at

Re: Best approach dealing with error

2008-09-20 Thread Mathias P.W Nilsson
Thank you. I will look into this right now. -- View this message in context: http://www.nabble.com/Best-approach-dealing-with-error-tp19585579p19586484.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

CSS and variation

2008-09-18 Thread Mathias P.W Nilsson
I'm looking at http://www.csszengarden.com CSS Zengarden that uses the same html markup and only alters the css. I would like to use variation like this and I'm wondering what my approach should be? I set Session.setVariation( String variation ) in my session object I have the same java and

Re: CSS and variation

2008-09-18 Thread Mathias P.W Nilsson
Maybe I should also say that my css files isn't in the container. They are served thru another servlet. All files are external and is located on a file server. so the /resources/class/. doesn't work for me. -- View this message in context:

Question on markup and wicket page

2008-09-17 Thread Mathias P.W Nilsson
Some very annoing designers is messing things up :) Here's the thing. I'm designing the wicket pages and a common thing is to add a css attribute to a ListView. Something like listItem.add( AttributeModifier( myClass , .. to make a row red, something bold etc. My problem is that if there

Re: Question on markup and wicket page

2008-09-17 Thread Mathias P.W Nilsson
Thanks. I used this a while but after multiple markup inheritance I just didn't see the point because the markup don't look like in runtime anyways. After reading Wicket In Action I realized that for this to work properly you'd have to create a lot of wicket:remove tags. Very often you will

Re: Question on markup and wicket page

2008-09-17 Thread Mathias P.W Nilsson
Great Idé. And a plugin that deals with some things :) The only plugin to eclipse that I know of is Panda( ... I think ) that let's you create a new Wicket page and Panel and the markup is created for you. Now. It would be nice to have a plugin that when you're in markup mode only let you deal

Re: Bookmarkable PagingNavigation

2008-09-09 Thread Mathias P.W Nilsson
Yes, thanks I have read that post serveral times! Finally managed to get the thing working. Not pretty parsing the pageing parameters and adding the page but it works. Thanks! -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19389690.html Sent

Problem with search and get urls

2008-09-08 Thread Mathias P.W Nilsson
I have a problem with NonVersionedHybridUrlCodingStrategy mounting. When searching for items a url can result in this http://localhost:8080/hairless-web/items/search/refilled... the user searched for refilled... Whenever I have a more than one . in the url the following error appears.' This

Re: Problem with search and get urls

2008-09-08 Thread Mathias P.W Nilsson
Shouldn't . characters be supressed in the HybridUrlCodingStrategy? -- View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19381312.html Sent from the Wicket - User mailing list archive at Nabble.com.

Bookmarkable PagingNavigation

2008-09-08 Thread Mathias P.W Nilsson
I've read some post on forum users wanting to use Bookmarkable page links in their PagingNavigation. Now, I'm one of them :) Google spider can index my wicket application using my PagingNavigation. Has anyone come up with an idé on solving this? Any pointers on how to achieve without having to

Re: Bookmarkable PagingNavigation

2008-09-08 Thread Mathias P.W Nilsson
The IPageable setCurrentPage() must be set when requesting PageParameters, any suggestions? This is what I have in mind. For every newPagingNavigationIncrementLink append the page parameters and the correct page number. -- View this message in context:

Re: Bookmarkable PagingNavigation

2008-09-08 Thread Mathias P.W Nilsson
The pageable.setCurrentPage(getPageNumber()); is set in the onClick method of a PagingNavigationIncrementLink or PagingNavigationLink. How can I set the currentPage when using BookmarkableLink? -- View this message in context:

Re: Mount files outside container

2008-09-01 Thread Mathias P.W Nilsson
I will look into this immediately. -- View this message in context: http://www.nabble.com/Mount-files-outside-container-tp19232069p19252473.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Panel with css styling

2008-09-01 Thread Mathias P.W Nilsson
Hi! I often come across this problem. A panel, let's say for checkout. ( So that a user knows wich step he/she is in) 1. Cart 2. address 3. payment and delivery 4. control order 5. receipt This panel should be on top of each page showing the purchase steps. Of course then the user is at

Re: Panel with css styling

2008-09-01 Thread Mathias P.W Nilsson
Thanks! I have tested Igors idé and this is what I have so far public abstract class CheckoutStepPanel extends Panel{ private static final long serialVersionUID = 1L; public String CSS_ACTIVE_STEP = selected; /** * Add Steps as enum. If the Checkout

Re: Mount files outside container

2008-09-01 Thread Mathias P.W Nilsson
I still have struggle with this image, flash, files and Wicket Here is my problem. I have all my css files, images, flashes pdf etc in a dir let's say c:/mydir/ To access these files from my webapp I have created a Servlet that get the files from my dir outside of the container using this

css and components

2008-09-01 Thread Mathias P.W Nilsson
I have created a component and added a css file with HeaderContributor.forCss How can I make this work with variation? On many pages I add a background image to a div by using the AttributeModifer and adding the style tag to the div.Now I want my html markup to be clean and not altering the

Re: css and components

2008-09-01 Thread Mathias P.W Nilsson
The background images are fetched from database and there are about 10.000 different backgrounds depending on what parameters is passed to the item list page. -- View this message in context: http://www.nabble.com/css-and-components-tp19258531p19259434.html Sent from the Wicket - User mailing

Re: Tomcat crashes out of memory

2008-08-30 Thread Mathias P.W Nilsson
Ok! Tried to google on external resource wicket by didn't find what I was looking for. Can you please give me some direction on what way to go? -- View this message in context: http://www.nabble.com/Tomcat-crashes-out-of-memory-tp19203247p19231691.html Sent from the Wicket - User mailing list

Mount files outside container

2008-08-30 Thread Mathias P.W Nilsson
Hi! I want to mount files c:/myFolder/files/. so that I can get it in wicket and from my html. like /Files/.. Can wicket do this for me? Pointers? -- View this message in context: http://www.nabble.com/Mount-files-outside-container-tp19232069p19232069.html Sent from the Wicket - User

Re: Mount files outside container

2008-08-30 Thread Mathias P.W Nilsson
Thank you very much for the suggestion. By doing this I must add all my images from Wicket code. Let's say I want to server a logo, background image or something like that. And just do it via my markup file. Can this be achieved or do I have to use a servlet? -- View this message in context:

Re: Tomcat crashes out of memory

2008-08-29 Thread Mathias P.W Nilsson
Ok thanks! Looking more careful it says that the line response.getOUtputStream() causes the out of memory @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedInputStream in = null;

Re: Tomcat crashes out of memory

2008-08-29 Thread Mathias P.W Nilsson
I read in some thread that a GZipfilter could take a lot of memory so I'm getting rid of my GZipFilter. I use a Servlet to host files out of the web application context. Can this be done using only wicket? -- View this message in context:

Tomcat crashes out of memory

2008-08-28 Thread Mathias P.W Nilsson
Hi! My tomcat crashes with out of memory error. I have set this in my startup.bat file set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m Any other pointers? here is some logging 2008-aug-28 17:26:18 org.apache.catalina.core.StandardWrapperValve invoke ALLVARLIG: Servlet.service() for

PageParameter question

2008-08-15 Thread Mathias P.W Nilsson
Hi! I try to use the page parameters class for passing a lot of queries. Now it is very important that if I pass ?Item=13Gender=femaleCategory=13 that I get this in the correct order. Used for internal bread crumbs and background image replacement. When I use the PageParameters the parameters

Re: PageParameter question

2008-08-15 Thread Mathias P.W Nilsson
Well of course, the Wicket ValueMap extends HashMap. OK, to get this parameters in a correct order I need to roll my own PageParameter? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19000196.html Sent from the Wicket - User mailing list archive at

Re: PageParameter question

2008-08-15 Thread Mathias P.W Nilsson
I don't quite know what you mean. I must still pass PageParameters to the contructor of a page? How could this help me? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19001494.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: PageParameter question

2008-08-15 Thread Mathias P.W Nilsson
Ok, what other stratergy is there 1. A user chooses a Brand. Customer has requested that a top logo, text and background image changes for that particular brand and list all items. 2. Customer continues to filter on a Category. The search is narrowed. Background is preserved but 2 breadcrumbs

Re: PageParameter question

2008-08-15 Thread Mathias P.W Nilsson
I have already solved this using wicket ultimate stateful WebFramework. Customer requires that the site must be google friendly. -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19004831.html Sent from the Wicket - User mailing list archive at

Google friendly site remaining wickets nice stateful page contructor

2008-08-14 Thread Mathias P.W Nilsson
Hi! When building a site for a customer with wicket one of the nicest thing is that you can create a page and pass objects, Arrays etc to the page constructor. I use this on almost every page. ListItemFilter filters = new LinkedListItemFilter(); filters.add( new BrandFilter( new Brand( 12 ) )

Re: More on wicket url stratergy

2008-07-02 Thread Mathias P.W Nilsson
Can you please elaborate. I have this Link in my List class Link itemLink = new Link( itemLink, listItem.getModel() ){ @Override public void onClick() { PageParameters parameters = new PageParameters(); parameters.add( ItemId, ((Item)getModelObject()).getId().toString());

Re: More on wicket url stratergy

2008-07-02 Thread Mathias P.W Nilsson
https://localhost/hairless-web/?wicket:interface=:2:itemRepeater:3:itemLink::ILinkListener:: // Mathias -- View this message in context: http://www.nabble.com/More-on-wicket-url-stratergy-tp18212748p18240461.html Sent from the Wicket - User mailing list archive at Nabble.com.

More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson
In my itemList class I set the response page like this. setResponsePage( new ItemPage( parameters, ItemListPage.this ) ); Now the ItemListPage.this is for back travelling and to get the background from the list class. Is it possible to make the itemPage bookmarkable? -- View this message in

Re: More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson
Thanks, but this what not what I meant My ItemPage takes the ItemListPage as a parameter in the constructor so that I can go back to the exact location I were before. Now If I want to use the Item as a bookmarkable page, how can this be achieved with a reference to ItemListPage? -- View this

Exception for MixedParamUrlCodingStrategy

2008-06-29 Thread Mathias P.W Nilsson
Hi! I'm using MixedParamUrlCodingStrategy and I must miss something in how this is set up properly I have mounted the page in init in my application class mount(new MixedParamUrlCodingStrategy(brand, BrandInterceptor.class,new String[]{id})); When building up the bookmarkable page link I do

Re: Exception for MixedParamUrlCodingStrategy

2008-06-29 Thread Mathias P.W Nilsson
https://localhost/hairless-web/brand/71/ this is the generated URL. The BrandInterceptor send request to ItemList. Maybe this isn't the way to do this? public BrandInterceptor( PageParameters parameters ){ filters = new LinkedListItemFilter();

Re: Exception for MixedParamUrlCodingStrategy

2008-06-29 Thread Mathias P.W Nilsson
I read in some Post from Igor that the best way of doing this should be throw new RestartResponseAtInterceptPageException(new ItemListPage( filters ) ); This seams to solve the problem -- View this message in context:

Re: Effect for Ajax

2008-06-28 Thread Mathias P.W Nilsson
It worked now. Have some problem with the Effect.HighLight in Firefox but the reason for the problem was that my GZipFilter zipped the javascripts resources. -- View this message in context: http://www.nabble.com/Effect-for-Ajax-tp18138812p18173126.html Sent from the Wicket - User mailing list

Re: Effect for Ajax

2008-06-26 Thread Mathias P.W Nilsson
Wicket 1.3.3 wicketstuff-scriptaculous 1.3-SNAPSHOT -- View this message in context: http://www.nabble.com/Effect-for-Ajax-tp18138812p18144246.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Trying to make bookmarkablelink

2008-06-25 Thread Mathias P.W Nilsson
Hi! I get this error when trying to make a bookmarkable page. java.lang.IllegalArgumentException: Too many path parts, please provide sufficient number of path parameter names This is my mouting, mount(new MixedParamUrlCodingStrategy(ItemInterceptor, ItemInterceptor.class,new String[]{}));

Re: Trying to make bookmarkablelink

2008-06-25 Thread Mathias P.W Nilsson
No, I'm not sure. I just want to make my urls google friendly. And tried some strategies. Do you have a better solution for making urls google friendly? -- View this message in context: http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18124088.html Sent from the Wicket - User

SubmitLink enter listener

2008-06-23 Thread Mathias P.W Nilsson
Hi! How can I get SubmitLink , AjaxSubmitLink and preferrably Link, AjaxLink to respond to enter? I'd hoped that submit did this but maybe this requires javascript? -- View this message in context: http://www.nabble.com/SubmitLink-enter-listener-tp18078769p18078769.html Sent from the Wicket -

Google friendly urls

2008-06-23 Thread Mathias P.W Nilsson
Hi! I'm trying to get my wicket urls to work with google spiders. Right now I have the ?wicket:interface=:1 and I was just wondering. Do I have to use PageParameters to get urls like ?Brand=34 I now pass objects to a pages constructor. Thanks Like ListItemFilter filters = new

  1   2   3   >