Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-19 Thread itayh
Hi Erik, I manage to see that problem. The reason that I am not even getting to MyFrame constructor is because the parameter inside the page parameters contain / (the parameter is url). If I remove the / or replace it with another character than it works. I did a workaround and replace the url /

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread itayh
In this case the url will contain the parameters. But since I mount it without the parameters what I get is empty page. I am not sure why I am getting the empty page when I concat the parameters to the iframe url. I am not even getting to MyFrame constructor. Any Idea? Erik van Oosten wrote:

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread Erik van Oosten
Please check your setup then. I understand you are using sitemesh. Maybe this interferes. Erik. itayh wrote: In this case the url will contain the parameters. But since I mount it without the parameters what I get is empty page. I am not sure why I am getting the empty page when I concat

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread itayh
Hi Erik, You are right, the src AttributeModifier overwrites params values. If I am not using the src AttributeModifier then the params has values and if I use it then the params are empty. But it seem that I must use the src AttributeModifier since I am using sitemesh decorators to decorate my

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread Erik van Oosten
I don't understand. Reading the javadoc InlineFrame should set the src attribute. If that is not the case, try setting the src attribute with something like: myFrame.add(new AttributeModifier(src, new Model(urlFor(MyFrame.class, pageParameters; Regards, Erik. itayh wrote: Hi

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread Erik van Oosten
Itayh, What you do seems alright. Please show us complete code fragments. Both the part where you create the InlineFrame component, and the constructor of the MyFrame class. Regards, Erik. itayh schreef: Any Idea? itayh wrote: Thx for the quick response. I cahnged the url mount

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh
Creating the InlineFrame component: PageParameters params = new PageParameters(); params.add(url, myUrl); InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(), MyFrame.class, params); myFrame.add(new AttributeModifier(src, new Model(/myapp/app/iframe/MyFrame))); add(myFrame);

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh
Any Idea? itayh wrote: Thx for the quick response. I cahnged the url mount in my application to mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class)) ... My problem is that still when i try to create iframe like: PageParameters params = new PageParameters();

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread Erik van Oosten
That combination is wrong. If you use the IndexedHybridUrlCodingStrategy the first parameter is called 0. Secondly the AttributeModifier probably overwrites the generated src attribute. This should work (not tested): PageParameters params = new PageParameters(); params.put(0, myUrl);

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-26 Thread itayh
Thx for the quick response. I cahnged the url mount in my application to mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class)) ... My problem is that still when i try to create iframe like: PageParameters params = new PageParameters(); params.add(url, url) or params.add(0,

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-25 Thread Erik van Oosten
You should use one of the other HybridUrlCoding strategies. E.g. the IndexedHybridUrlCodingStrategy. If you need an MixedParamHybridUrlCodingStrategy, I can mail it to the list. Regards, Erik. itayh wrote: Hi, I am using HybridUrlCodingStrategy for my url's (I need that the mount point