Hello,

     How can i override the decodeparameter(). I want to catch the
exception. The problem is that i have only the page class and the  exception
is outside the page class

     Here is my page class.

package de.rasselfisch.shop.web.page;


import java.text.NumberFormat;

import wicket.PageParameters;
import wicket.markup.html.WebPage;
import wicket.markup.html.link.BookmarkablePageLink;
import wicket.markup.html.link.Link;
import wicket.markup.html.panel.Panel;
import wicket.util.string.StringValueConversionException;
import de.rasselfisch.shop.dao.ArticleGroupDAO;
import de.rasselfisch.shop.dao.InventoryDAO;
import de.rasselfisch.shop.dao.pojo.ArticleGroup;
import de.rasselfisch.shop.dao.pojo.ConfigInventory;
import de.rasselfisch.shop.web.ApplicationSession;
import de.rasselfisch.shop.web.Basket;
import de.rasselfisch.shop.web.hibernate.HibernateApplication;

@SuppressWarnings("serial")
public class ArticlePage extends WebPage {
        private String markup;

        private Panel articleSelectPanel;

        private boolean showPanel;
        
        @SuppressWarnings("unused")
        private String variation;

        public char bas;
 
        public ArticlePage() {
                //Sets home page class. The class must be bookmarkable and must 
extend
Page. 
                setResponsePage(Basket.class);
        }

        
        /*
        * PageParameters class has methods to get to the parameter value
        * when supplied with the key.
        */
        
        public ArticlePage(PageParameters pageParameters) {
                                
                                
        }

        public String getVariation() {
                return this.markup;
        }

        public boolean isShowPanel() {
                return showPanel;
        }

        public void setShowPanel(boolean showPanel) {
                this.showPanel = showPanel;
        }
}


Thanks for help!!!



green804 wrote:
> 
> I am having a problem with the UrlCodingStrategy.  I'm currently extending
> BookmarkablePageRequestTargetUrlCodingStrategy. The problem is that the
> app is decoding some of the characters in the url before I get the url in
> the decodeParameters method.  
> 
> For example, the url once encoded looks like this:
> 
> /linkframe/item/187822/site/Wine/sitetopic/Food%2FDrink
> 
> where the params are item=187822, site=Wine, and sitetopic=Food%2FDrink
> 
> When the decode method in BookmarkablePageRequestTargetUrlCodingStrategy
> calls requestParameters.getPath() the url looks like this:
> 
> /linkframe/item/187822/site/Wine/sitetopic/Food/Drink
> 
> This is causing a problem because the app thinks the URL fragment has
> unmatched key/value pairs.  I cannot seem to find where/why the %2F is
> getting resolved to a /.  Can someone help me with this?  I need to keep
> this from happening.  It's causing null pointers all over the place.
> 

-- 
View this message in context: 
http://www.nabble.com/UrlCodingStrategy-with-unmatched-key-value-pairs-tp13636974p18833180.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to