Johan Compagner wrote:
Does a minus (-) sign work?
for example if you would target that id in js:
mypanel-mycomponent
will that be parsed? A minus sign looks to me like it could have the
same problems as the divider (:)
can't we escape _ with 2 __ ?
so first all _ become __ and
Does a minus (-) sign work?for example if you would target that id in js:mypanel-mycomponentwill that be parsed? A minus sign looks to me like it could have the same problems as the divider (:)can't we escape _ with 2 __ ?
so first all _ become __ and then seperate it with _ johanOn 7/23/06, Igor
Yeah, I think minus would be a problem. Btw it should work not only in
javascript, but also in CSS.
Escaping would decrease the change of clashing, but it wouldn't be a
complete fix either.
On 7/24/06, Johan Compagner [EMAIL PROTECTED] wrote:
Does a minus (-) sign work?
for example if you
Don't make it final... I will undo that immediantly :)Because we (servoy) needs it very badly.. We generate unquie id's and are returning those. And all our css depend on it.johan
On 7/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
and then inpublic void populateItem(Item item){
item.add(new
fine fine fine, you guys are just a bunch of whiners!anyways, now that we have decided to leave getmarkupid as it is lets get back to the separator issue. what are we thinking as far as that goes?almaw proposed -_- as a separator and i think that might work...
-IgorOn 7/23/06, Johan Compagner
Actually i was talking about the index the repeater uses for all its
items. But maybe i am not getting something about those repeaters,
like i said i am not entirely sure we are talking about the same thing
here.
I am talking about RepeatingView and its subclasses.
So if you have a component who's
and then inpublic void populateItem(Item item){ item.add(new MyLabel(label+item.getIndex());
}this wont work because then how do you reference the id in the markup??
The point is whoever builds the component might want to make it easierfor user to use there component in repeaters but ultimatly it
is there a better seperator that can be used then?johanOn 7/21/06, Martijn Dashorst [EMAIL PROTECTED]
wrote:The problem with using _ is that it doesn't separate the components
from property paths. You don't know where one component ends and theother starts when someone uses _ in their Java
We discussed that about a year ago... The consensus was that the colon
was the best option. But with the advent of ajax frameworks, that
choice might be under reconsideration.
According to our investigation at that time, the colon is a valid
character inside ID attributes. That still hasn't
Just as another thought:
Would it not be better for someone to override getMarkupId() and
return whatever id he pleases. Surely you don't want to have to go
through the html or javascript files when you add another
WebMarkupContainer or Panel to your component hierarchy, as would be
the case if
and what if someone takes a component like that and puts it into a repeater? the component doesnt know its in a repeater so it will return the same id for all iterations. the path is the only way to insure the id is unique.
-IgorOn 7/21/06, Maurice Marrink [EMAIL PROTECTED] wrote:
Just as another
Bugs item #1526061, was opened at 2006-07-20 19:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=684975aid=1526061group_id=119783
Please note that this message will contain a full copy of
12 matches
Mail list logo