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 /
chars with different ones but it is quite ugly. You have any Idea why it is
like that?


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 the parameters to the iframe url. I
 am
 not even getting to MyFrame constructor. Any Idea?

   
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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-tp19666330p20056986.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]



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:
 
 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 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 pages according to the url, so I need
 to
 identify the iframes url from their container url. I need to decorate all
 my
 pages but I don't want to decorate the iframes (no need for headers and
 footers there).

 The src AttributeModifier is the only way I found how set the iframes url
 to
 what i want. Is there another way?

 Thanks alot,
   Itay


   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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-tp19666330p20027785.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]



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 the parameters to the iframe url. I am
not even getting to MyFrame constructor. Any Idea?

  


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



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 pages according to the url, so I need to
identify the iframes url from their container url. I need to decorate all my
pages but I don't want to decorate the iframes (no need for headers and
footers there).

The src AttributeModifier is the only way I found how set the iframes url to
what i want. Is there another way?

Thanks alot,
  Itay


Erik van Oosten wrote:
 
 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);// changed to put, just to be sure
 InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
 MyFrame.class, params);
 add(myFrame);
 
 public MyFrame(PageParameters params){
 String url = params.getString(0);  // changed to getString
 doSomething(url);
 }
 
 mount(new IndexedHybridUrlCodingStrategy(iframe/MyFrame,
 MyFrame.class));  // removed leading /
 
 
 Good luck!
 Erik.
  
 
 itayh wrote:
 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);

 Creating MyFrame:
 public MyFrame(PageParameters params ){
 String url = params.get(url); //the problem is that this params are
 empty
 doSomething(url);
 }

 Url mounting:
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class));

 I tried also for the url mounting:
 mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

 In all cases the params inside the constructor of MyFrame class has no
 values in them (size = 0)

 Thanks,
   Itay

   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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-tp19666330p20008835.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]



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 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 pages according to the url, so I need to
identify the iframes url from their container url. I need to decorate all my
pages but I don't want to decorate the iframes (no need for headers and
footers there).

The src AttributeModifier is the only way I found how set the iframes url to
what i want. Is there another way?

Thanks alot,
  Itay


  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



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 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
http://www.day-to-day-stuff.blogspot.com/


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



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);

Creating MyFrame:
public MyFrame(PageParameters params ){
String url = params.get(url); //the problem is that this params are
empty
doSomething(url);
}

Url mounting:
mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

I tried also for the url mounting:
mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

In all cases the params inside the constructor of MyFrame class has no
values in them (size = 0)

Thanks,
  Itay


Erik van Oosten wrote:
 
 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 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
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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-tp19666330p19995785.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]



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();
 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]



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);// changed to put, just to be sure
InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(), 
MyFrame.class, params);
add(myFrame);

public MyFrame(PageParameters params){
   String url = params.getString(0);  // changed to getString
   doSomething(url);
}

mount(new IndexedHybridUrlCodingStrategy(iframe/MyFrame, MyFrame.class));  // 
removed leading /


Good luck!
   Erik.


itayh wrote:

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);

Creating MyFrame:
public MyFrame(PageParameters params ){
String url = params.get(url); //the problem is that this params are
empty
doSomething(url);
}

Url mounting:
mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

I tried also for the url mounting:
mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

In all cases the params inside the constructor of MyFrame class has no
values in them (size = 0)

Thanks,
  Itay

  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



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, 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-tp19666330p19691946.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]



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
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]