Well, it looks that this is not as easy as it seemed to be.
I've made a MarkupFilter that translates the string. But I need
to give it ContainerInfo of current markup resource (same as
WicketMessageTagHandler gets). The problem is that I can't touch markup
(or markup.getResource) in my LocalizedMarkupParser#initFilterChain
method (I derived my own parser from MarkupParser).
At least protected Markup MarkupParser.getMarkup() would help.
-Matej
Matej Knopp wrote:
Matej Knopp wrote:
Juergen Donnerstag wrote:
On 5/9/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
$${key}? Or whatever you want.
I don't need this behavior to be in wicket core. I'm much more
interested in clean and simple preprocessing filters, something wicket
lacks currently.
Oh, stupid me. It is possible. Was it possible in 1.1 too? I guess I was
evaluating this and it was not possible back then.
Anyway, it seems that markup filter should be enough.
Unfortunately IMarkupFilter does not seem to be capable of replacing
things in RawMarkup elements, does it? So it seems not to be able to
replace ${key} to localized value, or am I missing anything here?
<?xml encoding=".." does complicate things a bit, but not much. What
about load the <?xml line, determine encoding and loat the rest of the
file as string. Then let the preprocessor process it and then send it
to MarkupParser? (Just a thoght).
-Matej
That is true, we don't have something that allow to pre-processor the
plain input string and IMO it is not needed and when I think about
<?xml encoding=".."?> it could be dangerous. IMarkupFilter serve a
similar function but are already aware of the xml structure, the
encoding, etc.. And it is trivial to register them with the
application.
Juergen
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user