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 /
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:
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
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
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
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
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);
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();
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);
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,
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
11 matches
Mail list logo