The portlet specification already defines how one should encode all elements of the page, using the portlet namespace mechanism. I guess we could use some sort of javascript to do this, but we'll have to find out what the best approach would be. The first step would be to implement the new s:html and s:head tags.
Nils-H On 9/4/07, Mark McLaren <[EMAIL PROTECTED]> wrote: > Thanks Nils-H that makes sense. > > I'm not exactly sure how this would work but I was wondering if > allowing JavaScript to dynamically create a random element id at > runtime could solve the unique html id problem. > > For example, all AJAX divs with a given CSS className could have JS > generated id at page load. This would allow each instance of > otherwise identical HTML to be uniquely addressed through the DOM. > Possibly also, if the AJAX JS was OO then the various running > instances wouldn't interfere with each other. > > Mark > > On 9/4/07, Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > > Hi! > > > > > I also notice that the ajaxExample no longer appears in the subversion > > > repository. Are there other AJAX/portlet issues I should be aware of? > > > > > > > Ajax in a portlet, from a framework point of view, is not quite > > trivial. There are issues with namespacing of javascript functions, > > html ids and loading of javascript libraries when multiple portlets > > using the same framework is on the same page etc. Until these are > > adressed, the ajax examples have been removed. > > > > There's also a JIRA issue registered for this: > > > > https://issues.apache.org/struts/browse/WW-1894 > > > > Nils-H > > > > -- > "Paradoxically, the more time saving abstractions you are using the > more you actually have to know." - Simon Willison > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]