Re: [Wicket-user] encoding of AttributeModifier's model

2007-04-28 Thread Ludovic Orban

I faced this with version 1.2.6 but could reproduce it as well with a fresh
build I made from 1.3 in svn's trunk.

So I've opened a JIRA issue as you asked:
https://issues.apache.org/jira/browse/WICKET-517

Merci,
Ludovic


Jean-Baptiste Quenot-3 wrote:
 
 * Ludovic Orban:
 
 I recently faced an annoying problem with AttributeModifier and encoding
 of
 its model. I have something looking like this in my code:
 
 String url = http://www.somewhere.com?param1=aparam2=b;;
 component.add(new AttributeModifier(href, true, new Model(url)));
 
 Please specify which Wicket version you are using.
 
 If this issue can also be reproduced on the latest and greatest
 Wicket (trunk, 1.3) would you be kind enough to open a JIRA issue?
 
 Thanks in advance,
 -- 
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/
 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-AttributeModifier%27s-model-tf3657412.html#a10233943
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] encoding of AttributeModifier's model

2007-04-27 Thread Ludovic Orban

Hi all,

I recently faced an annoying problem with AttributeModifier and encoding of
its model. I have something looking like this in my code:

String url = http://www.somewhere.com?param1=aparam2=b;;
component.add(new AttributeModifier(href, true, new Model(url)));

After rendering the component looks like this:

LINK href=http://www.somewhere.com?param1=aparam2=b/

My application is not outputting HTML but XML instead and this is obviously
not valid XML (the '' should be escaped) so I have to manually re-code the
URL.

Since attributes values should always be escaped, shouldn't that be
performed automatically by AttributeModifier ? If not, is there a way to do
this without having to encode the URL in my code ?

Thanks,
Ludovic
-- 
View this message in context: 
http://www.nabble.com/encoding-of-AttributeModifier%27s-model-tf3657412.html#a10218271
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can templates have an extension other than .html?

2007-04-20 Thread Ludovic Orban

In the same subject, is there a reason why
wicket.markup.html.WebPage.getMarkupType() isn't final but
wicket.markup.html.WebMarkupContainer.getMarkupType() is ?

I want my templates to have the .xml extension but that is only possible for
pages and not panels because of that method being marked final.

Is there a good reason to have the method marked final in WebMarkupContainer
or is that also an historical artifact ?

Thanks,
Ludovic


Eelco Hillenius wrote:
 
 I'm a little concerned by the Note int he javadocs for this method:

  Note: The markup type must be equal to the extension of the markup file.
 In
 the case of WebPages, it must always be html.

 Does that mean that the string html has some meaning beyond just
 telling
 the framework what file extension to retrieve?
 
 That comment was incorrect. Thanks for noting it, I just removed it.
 
 We have one example of a different extension (xml):
 wicket.examples.compref.XmlPage.
 
 You should be able to pick any extension you like. Please report here
 if you encounter any problems regarding this.
 
 Eelco
 

-- 
View this message in context: 
http://www.nabble.com/Can-templates-have-an-extension-other-than-.html--tf3309848.html#a10108984
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user