Mind you explaining why we should do it? Does it make something more
easy? Out of my head I can not think about why what I would need it
for.

Juergen


On Fri, 04 Feb 2005 10:12:46 +1300, Matthew Watson
<[EMAIL PROTECTED]> wrote:
> Would it be possible to add say an additional
> setComponentAttributePrefix() method (defaults to "wicket-") that
> appends to the start of component attribute, this would allow arbitrary
> naming, i.e...
> 
> getSettings().setComponentAttributePrefix("hello");
> 
> Which in the html would equate too
> 
> <input id="helloXYZ" type="text"/>
> 
> Matt
> 
> >>> [EMAIL PROTECTED] 02/03/05 09:20p.m. >>>
> I'll make the necessary changes
> 
> Juergen
> 
> On Thu, 03 Feb 2005 00:15:41 -0800, Jonathan Locke
> <[EMAIL PROTECTED]> wrote:
> >
> > for the sake of simplicity, maybe we should just have setNamespace()
> and
> > have that value used for wicket tags and component attributes.  it
> would
> > be less confusing this way and it seems unlikely that anyone would
> want
> > to set these values independently (famous last words?)... in fact,
> doing
> > this would just make the markup that much more confusing...
> >
> > and at any rate, we should definitely throw a WicketRuntimeException
> if
> > the namespace passed in doesn't match [A-Za-z][A-Za-z0-9_]*
> >
> > and it seems like <wicket:x> also ought to always work as wicket-
> does.
> > reason being that components dragged in from libraries may have this
> > syntax...
> >
> > Juergen Donnerstag wrote:
> >
> > >setWicketNamespace("__") only modifies the wicket namespace (e.g.
> > ><wicket:panel> will become <__:panel>). It does NOT modify the
> > >component attribute name. It is named "setWicketNamespace" because
> it
> > >changes the namespace only.
> > >
> > >Yes, you are right. We do not validate the namespace in a sense
> that
> > >it is HTML comformant (e.g. a identifier like [a-z][a-z0-9_]*).
> > >
> > >setComponentNameAttribute("__") should be used to modify the
> expected
> > >Wicket component name like <span __="myLabel"> or <span
> > >id="__-myLabel">
> > >
> > >Be reminded even if you change the component name attribute,
> "wicket"
> > >will still remain valid. It will always. Thus if
> > >setComponentNameAttribute("__") the following should still work
> <span
> > >id="wicket-myLabel"> in addition to <span id="__-myLabel">. This
> > >howerever is not true for the namespace.
> > >
> > >Though we could think about having just one setting for both of it.
> > >
> > >
> > >
> > >>However this won't render and I get a MarkupException going on
> about
> > >>not being able to find __test but when I change the Index.java to
> > >>
> > >>public Index() {
> > >> add(new Label("__test", "Hello World"));
> > >>}
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >>^^^ if this works, it's a bug.  right juergen?
> > >>
> > >>
> > >
> > >yes, neither
> > > add(new Label("__:test", "Hello World"));
> > >no
> > > add(new Label("__-test", "Hello World"));
> > >should work.
> > >
> > >Juergen
> > >
> > >
> > >On Wed, 02 Feb 2005 19:34:37 -0800, Jonathan Locke
> <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >>Matthew Watson wrote:
> > >>
> > >>
> > >>
> > >>>However this won't render and I get a MarkupException going on
> about
> > >>>not being able to find __test but when I change the Index.java to
> > >>>
> > >>>public Index() {
> > >>> add(new Label("__test", "Hello World"));
> > >>>}
> > >>>
> > >>>
> > >>>
> > >>>
> > >>^^^ if this works, it's a bug.  right juergen?
> > >>
> > >>it should just be "test" and in the html, it would be "__-test",
> except
> > >>that __ is probably not valid...
> > >>should we be throwing an exception here?
> > >>
> > >>
> > >>
> > >>>It works as expected. I would have thought that I wouldn't have
> to
> > >>>include the namespace explicitly i.e. it would append it to the
> start of
> > >>>the component
> > >>>name.
> > >>>
> > >>>Is this a possible bug or am I confused?
> > >>>
> > >>>Cheers,
> > >>>Matt
> > >>>
> > >>>
> >
> >>>********************************************************************************
> > >>>This email may contain legally privileged information and is
> intended only for the addressee. It is not necessarily the official view
> or
> > >>>communication of the New Zealand Qualifications Authority. If you
> are not the intended recipient you must not use, disclose, copy or
> distribute this email or
> > >>>information in it. If you have received this email in error,
> please contact the sender immediately. NZQA does not accept any
> liability for changes made to this email or attachments after sending by
> NZQA.
> > >>>
> > >>>All emails have been scanned for viruses and content by
> MailMarshal.
> > >>>NZQA reserves the right to monitor all email communications
> through its network.
> > >>>
> >
> >>>********************************************************************************
> > >>>
> > >>>
> > >>>-------------------------------------------------------
> > >>>This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> > >>>Tool for open source databases. Create drag-&-drop reports. Save
> time
> > >>>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF,
> etc.
> > >>>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > >>>_______________________________________________
> > >>>Wicket-user mailing list
> > >>>[email protected]
> > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>-------------------------------------------------------
> > >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> > >>Tool for open source databases. Create drag-&-drop reports. Save
> time
> > >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF,
> etc.
> > >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > >>_______________________________________________
> > >>Wicket-user mailing list
> > >>[email protected]
> > >>https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >>
> > >>
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> > >Tool for open source databases. Create drag-&-drop reports. Save
> time
> > >by over 75%! Publish reports on the web. Export to DOC, XLS, RTF,
> etc.
> > >Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > >_______________________________________________
> > >Wicket-user mailing list
> > >[email protected]
> > >https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save
> time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF,
> etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> ********************************************************************************
> This email may contain legally privileged information and is intended only 
> for the addressee. It is not necessarily the official view or
> communication of the New Zealand Qualifications Authority. If you are not the 
> intended recipient you must not use, disclose, copy or distribute this email 
> or
> information in it. If you have received this email in error, please contact 
> the sender immediately. NZQA does not accept any liability for changes made 
> to this email or attachments after sending by NZQA.
> 
> All emails have been scanned for viruses and content by MailMarshal.
> NZQA reserves the right to monitor all email communications through its 
> network.
> 
> ********************************************************************************
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to