Hello XWikiers,
do I have a possibility for a plugin to access the classes of another
webapp?
Can this other webapp maybe offer some services shareable to others?
(JNDI?)
thanks in advance
paul
On Sat, May 9, 2009 at 10:04 AM, David Huynh <dfhuynh(a)alum.mit.edu> wrote:
> Looking at the HTML source, I see
> <div ex:role="coder" ex:coderClass="Color"
> id="party-colors">
> <span ex:color="red">Republican</span>
> <span ex:color="blue">Democratic</span><p/>
> <span ex:case="others" ex:color="#aaa">Other
> parties</span>
> <span ex:case="mixed" ex:color="#eee">Many
> parties</span>
> <span ex:case="missing" ex:color="#444">No party</span>
> </div>
> I think the <p/> is causing problem. Could you remove it and see if that
> helps?
That was exactly the problem! Thank you so much, as that's one I would have
never spotted myself!
FYI, here's what happened: Since I just cut/paste the HTML from view-source
on the presidents example on simile-widgets.org, the newlines got
interpreted as paragraphs by the wiki-engine in Xwiki. So, I removed the
extra newline in Exhibit.Presidents2, and it now works in IE! This is a
"gotcha" I frequently hit in Xwiki, although I find the ability to mashup
HTML and wikitext in an active document quite useful.
Now both the "standalone"
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents2
and locally-hosted-exhibit
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents
work in IE! Thanks again and also thanks for Exhibit which is just all
around great!
The updated XAR (zip format) of "Presidents2" example is here:
http://nielsmayer.com/xwiki/bin/download/Exhibit/Presidents2/Exhibit.Presid…
Length Date Time Name
-------- ---- ---- ----
94080 05-09-09 10:30 Exhibit/Presidents2.xml
2226 05-09-09 10:30 Exhibit/PresidentsSchemaJSON.xml
29379 05-09-09 10:30 Exhibit/PresidentsJSON.xml
544 05-09-09 10:30 package.xml
-------- -------
126229 4 files
Niels
http://nielsmayer.com
PS: After sending the announcement yesterday, I realized there was one issue
that makes this example not quite standalone. Exhibit.PresidentsPkg.xar
contains a hard-coded google-maps key that you receive when registering your
site <http://code.google.com/apis/maps/signup.html>. You'll need to change
"gmapkey" setting in object XWiki.JavaScriptExtension[2] on document
"Exhibit.Presidents2":
> params: { bundle: true, authenticated: false, autoCreate: false, safe:
> false, gmapkey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX", views: "timeline,map" }
Until this is changed, you'll get a dialog box from google saying you need
to register. When you click away the dialog box, it should load the
interface even if not correctly registered.
PPS: What does this Exhibit parameter setting do, and what is the correct
value:
namespace: "http://simile.mit.edu/2006/11/exhibit#",
(also in object XWiki.JavaScriptExtension[2] on document
"Exhibit.Presidents2)
Hi,
I have completed sending loging / logout observation events and trying to
write integration test for the task. I have written a test case similar to
the attached file. I want to clear few things about it. As well as I got few
issues while trying to run.
*Question 1* - I think this test should check my observation event sending -
Please comment on if there is any mistake on groovy script added to
createPage() content.
*Question 2 *- On running the selinium tests
Test is named LoginObservationTest
After writing the test case, For first time run, I went to
/enterprise/distribution-test/selenium-tests directory and run the following
command as in tutorial
mvn install -Dpattern=LoginObservationTest
It showed an error saying
java.lang.RuntimeException: Firefox couldn't be found in the path!
Please add the directory containing 'firefox-bin' to your PATH environment
variable, or explicitly specify a path to Firefox like this:
*firefox /blah/blah/firefox-bin
Then I have linked the firefox folder as it was suggested in this
http://willbryant.net/software/2008/05/26/selenium_rc_firefox_2_on_ubuntu_h…
But in my case I have firefox-3.0.10 and inside that I had firefox binary
not a file named firefox-bin
Then I linked to path like this.
sudo ln /usr/lib/firefox-3.0.10/firefox /usr/lib/firefox/firefox-bin
Now I get an exception like this when I run the command to test my selenium
test :(
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.xpn.xwiki.it.selenium.AllTests
09:59:44,591 INFO [org.mortbay.util.Credential] Checking Resource aliases
09:59:44,602 INFO
[org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request:
getNewBrowserSession[*firefox, http://localhost:8080, ] on session null
09:59:44,603 INFO [org.openqa.selenium.server.BrowserSessionFactory]
creating new remote session
09:59:44,936 INFO [org.openqa.selenium.server.BrowserSessionFactory]
Allocated session 775dad4fbed24b0e98a86c0652ec136c for http://localhost:8080,
launching...
09:59:45,092 INFO
[org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher]
Preparing Firefox profile...
Could not read application.ini
10:00:05,235 WARN [org.mortbay.http.HttpConnection] POST
/selenium-server/driver/ HTTP/1.1
java.lang.RuntimeException: Timed out waiting for profile to be created!
Kindly tell me some tips to solve this.
Thank you,
-Tharindu
Marius Dumitru Florea wrote:
> We should keep the buttons and let the user choose whether he wants to
> use the tool bar, the menu bar or both, by changing the configuration.
> By default we put table features in the menu. But in some cases we'll
> have to drop the menu and use only the tool bar with a few features in
> order to have a compact editor. In this case the user might want to have
> the insert table button on the tool bar.
+1. We must not forget that the editor is supposed to be generic, and
that shortly we'll want it to be reusable outside XWiki. Thus,
"customizability" is a key objective.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Devs,
This is to let you know that I've started working on a very simple and
lightweight ComponentManager implementation that I'd like to use for 2
use cases:
1) External users who want for ex to use some xwiki components without
using the plexus would be able to use it with no additional
dependencies (it'll be in our xwiki-component module)
2) Our unit/integration tests could use it and this will allow us to
have component mocks and thus prevent duplicating for ex
MockDocumentAccessBridge 10 times and allow the test to control the
component mock behavior using jmock
I'm planning to finish it over the week end.
Please let me know quickly if you see an issue with 1) or 2).
Thanks
-Vincent
Hi devs,
The real full qualified name of a document is wiki:Space.Page. I think
we sould always use only this form for technical purposes like storing
in database or old API which does not support DocumentName.
pros:
- don't need to take care of the context, the information is always right.
- if everything is stored in only one form it's way easier to compare
things and do requests
cons:
- old code which does not support this document name form will fail.
This could hardly be a good arguments since this form is a officially
valid document name but i can't see anything else.
Among others, the last use case which make me send this proposal is
http://jira.xwiki.org/jira/browse/XWIKI-3754. IMO getLinkedPages
return and the link table should only contains fully qualified links,
especially since theses lists are supposed to contains uniques
documents and we need to know the 3 parts of the document name to make
sure of that . Note that a document could contain a link to a document
in another wiki or even a link to the same document but written in its
full form so a code which support only local form is wrong anyway.
WDYT ?
Here is my +1. The pros are basically the same that make us introduce
DocumentName to not manipulate String anymore in code.
--
Thomas Mortagne