I think we should keep it (the parser) simple. To me it has always be
an advantage of Wicket that it is not only easy to use but its
internals are in general (not always ofcourse) not complicated as
well. We have 2+ solutions for the problem mentioned ealier and such a
request hasn't been raised before. I'm not sure it is worth makeing
things complicated to fix a problem which is not of common interest.
If I'm wrong with "common interest" than please let me know and we
implement it. Wicket is user requirement driven and if there is demand
than we'll try to solve it.

Juergen

On 6/9/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> how ugly is that
> And what does the alert alerts you? As far as i can see it really doesn't
> know that it also should print ']]>
> javascript just sees that as a string.
>
> johan
>
>
>
> On 6/8/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> >
> >
> > I haven't tested, but I would imagine that if you include the <script>
> tags within the CDATA, that the following construct would work:
> >
> > <![CDATA[
> >     <script>
> >
> >         for( int i = 0; i < 10; i++ ) {
> >             alert( ']]><span
> wicket:id="value"><span><![CDATA[');
> >         }
> >     </script>
> >
> > ]]>
> >
> > as the xml parser would never see the <script> tag
> >
> >
> > On Thu, 2006-06-08 at 13:10 -0700, Igor Vaynberg wrote:
> >
> >
> > not even that, we have an xml parser, even if we read whatever is inside
> <script> as cdata we cannot place components there because cdata doesnt
> contain tags.
> >
> > -Igor
> >
> >
> >
> > On 6/8/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> > Yeah. Though the slippery slope is that is comes darn close to page
> scripting :)
> >
> > Eelco
> >
> > On 6/8/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> > >
> > >  I agree for the most part, and I am using TextTemplate in my current
> > > scenarios.. I'm just suggesting another option that could be made
> available
> > > that integrates a little nicer with wicket's models.
> > >
> > >  Aaron
> > >
> > >
> > >
> > >  On Thu, 2006-06-08 at 12:37 -0700, Igor Vaynberg wrote:
> > >
> > >  +1
> > >
> > >
> > >  On 6/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >
> > >  I think using a TextTemplate (see wicket-extensions, package
> > >  wicket.extensions.util.resource) is a neater way to go.
> > >
> > >  Eelco
> > >
> > >
> > >  On 6/8/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> > >  >
> > >  >  what about CDATA?
> > >  >
> > >  >  <script>
> > >  >  <![CDATA[
> > >  >  for( int i = 0; i < 10; i++ ) {
> > >  >      alert( ']]><span
> > > wicket:id="value"><span><![CDATA[');
> > >  >  }
> > >  >  ]]>
> > >  >  </script>
> > >  >
> > >  >
> > >  >  Ugly yes, but at least it could provide an option to keep the code
> in
> > > one
> > >  > place and use wicket for writing the values
> > >  >
> > >  >  Aaron
> > >  >
> > >  >
> > >  >
> > >  >  On Thu, 2006-06-08 at 21:00 +0200, Johan Compagner wrote:
> > >  >
> > >  >  and that is pretty much impossible because there can be just code
> like:
> > >  >
> > >  >  for(var i=0 i < 10; i ++)
> > >  >
> > >  >  that will kill every xml parser...
> > >  >
> > >  >  johan
> > >  >
> > >  >
> > >  >
> > >  >  On 6/8/06, Juergen Donnerstag < [EMAIL PROTECTED] >
> wrote:
> > >  >
> > >  >  Yes you are right. Everything in between <script> and </script> is
> > >  >  ignored. We do not interpret it at all.
> > >  >
> > >  >  Juergen
> > >  >
> > >  >  On 6/8/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >  >  > i was referring to this:
> > >  >  >
> > >  >  > <script type="text/javascript">
> > >  >  >
> > >  >  >          alert( '<span wicket:id="value">value</span>' );
> > >  >  > </script>
> > >  >  >
> > >  >  > will that work? ive tried it before and it didnt parse that
> portion,
> > >  > maybe
> > >  >  > because i had comments after script tag...
> > >  >  >
> > >  >  > -Igor
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >  > On 6/8/06, Juergen Donnerstag < [EMAIL PROTECTED] >
> wrote:
> > >  >  > >
> > >  >  >  Is that true? You can tell Wicket not to print the tag. Using a
> Label
> > >  >  > to replace the tag body and disableing printing the tag itself
> should
> > >  >  > do it.
> > >  >  >
> > >  >  > Juergen
> > >  >  >
> > >  >  > On 6/7/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >  >  > > no, this is not possible because wicket components can only be
> > > xml/html
> > >  >  > > tags.
> > >  >  > >
> > >  >  > > you have to write out the entire tag.
> > >  >  > >
> > >  >  > > maybe load the javascipt from a textfile, interpolate the
> variables,
> > >  > and
> > >  >  > > dump that into a label if you dont want to have javascript/css
> in
> > > your
> > >  >  > java
> > >  >  > > code.
> > >  >  > >
> > >  >  > > see PackagedTextTemplate and friends.
> > >  >  > >
> > >  >  > > -Igor
> > >  >  > >
> > >  >  > >
> > >  >  > >
> > >  >  > > On 6/7/06, Aaron Hiniker < [EMAIL PROTECTED]> wrote:
> > >  >  > > > Is it possible to do this?
> > >  >  > > >
> > >  >  > > > <script type="text/javascript">
> > >  >  > > >         <span
> wicket:id="function">test</span>
> > >  >  > > > </script>
> > >  >  > > >
> > >  >  > > > Wicket complains that it can't find "function" component in
> the
> > >  > markup.
> > >  >  > > >
> > >  >  > > > or:
> > >  >  > > >
> > >  >  > > > <script type="text/javascript">
> > >  >  > > >         alert( '<span wicket:id="value">value</span>' );
> > >  >  > > > </script>
> > >  >  > > >
> > >  >  > > > same problem
> > >  >  > > >
> > >  >  > > > Aaron
> > >  >  > > >
> > >  >  > > >
> > >  >  >  > >
> _______________________________________________
> > >  >  > > > Wicket-user mailing list
> > >  >  > > > [email protected]
> > >  >  > > >
> > >  >  >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >  > > >
> > >  >  > >
> > >  >  > >
> > >  >  > >
> > >  >  > >
> > >  >  > > _______________________________________________
> > >  >  > > Wicket-user mailing list
> > >  >  > > [email protected]
> > >  >  > >
> > >  >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >  > >
> > >  >  > >
> > >  >  > >
> > >  >  >
> > >  >  >
> > >  >  > _______________________________________________
> > >  >  >
> > >  >  > Wicket-user mailing list
> > >  >  > [email protected]
> > >  >  >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >  > _______________________________________________
> > >  >  > Wicket-user mailing list
> > >  >  > [email protected]
> > >  >  >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >
> > >  >
> > >  >  _______________________________________________
> > >  >  Wicket-user mailing list
> > >  >  [email protected]
> > >  >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >
> > >  >  _______________________________________________
> > >  > Wicket-user mailing list
> > >  > [email protected]
> > >  >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  > _______________________________________________
> > >  > Wicket-user mailing list
> > >  > [email protected]
> > >  >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >  >
> > >  >
> > >  >
> > >
> > >
> > >  _______________________________________________
> > >  Wicket-user mailing list
> > >  [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >  _______________________________________________
> > >  Wicket-user mailing list
> [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> _______________________________________________
Wicket-user
> mailing
> list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

> >
> >
> >
> >
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to