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();
> params.add("url", url) or params.add("0", url)
> InlineFrame myFrame = new InlineFrame("MyFrame",
> this.getPageMap(),MyFrame.class, params);
> myFrame .add(new AttributeModifier("src",
> newModel((Serializable)"/myapp/iframe/MyFrame")));
> 
> The params get empty to the MyFrame constructor.The only situation the
> params are not empty is when I do: 
> myFrame .add(new AttributeModifier("src",
> newModel((Serializable)"/myapp/iframe/MyFrame/param_value")));
> 
> But then the url is not found since I define in my app:
> mount(new IndexedHybridUrlCodingStrategy("/iframe/MyFrame",
> MyFrame.class)) ...
> 
> The param is runtime value and I can not know it when creating my app.
> 
> 
> Erik van Oosten wrote:
>> 
>> 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
>>> will preserved even after invoking listener interfaces).
>>>
>>> I am creating IFrames using InlineFrame class. 
>>> In order that the url of the IFrame will be what I want I do:
>>> PageParameters params = new PageParameters();
>>> params.add("url", url);
>>> InlineFrame myFrame = new InlineFrame("MyFrame", this.getPageMap(),
>>> MyFrame.class, params);
>>> myFrame .add(new AttributeModifier("src", new
>>> Model((Serializable)"/myapp/iframe/MyFrame")));
>>>
>>> In my Application I have:
>>> mount(new HybridUrlCodingStrategy("/iframe/MyFrame", MyFrame.class));
>>>
>>> The thing is that in MyFrame class the PageParameters are empty.
>>> I am not  sure how to use
>>> HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY and where, or
>>> maybe I
>>> don't need to set src directly and there is another way to do it?
>>>
>>> Anyone?
>>>
>>> Thanks
>>>   
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p19993282.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