I am new to Struts 2 but have been a Struts bridge user for some time
(and looking to migrate to Struts 2). I hope it is reasonable to
expect that Struts2 portlets should work in "standalone" mode - i.e.
not in a portlet container (a la Struts Bridge). I was having
problems with ajaxExample.jsp f
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
Hils-H,
Could we solve some of these issues with your proposal for the ,
, etc.? It seems the first instance of using one of those tags would set
a flag in the request or session that the Javascript had been loaded and we'd
not
output it again. We could also do something similar to what MyFaces T
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
Hi James!
Yes, that's also one of the reasons I suggested them. I have found a
couple of articles related to loading of javascript libraries in a
portlet environment, so we'll need to add some extra javascript code
somewhere. I'll start looking into it in more detail after the 2.1
release.
Nils-H
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 a
6 matches
Mail list logo