Hi,
We found XWiki groups really useful as a metaphor for rather different types of entities.
But we are facing a problem. Please, could you follow this reasoning?
Given an user, let's say, USER01, she/he will belong to a given number of XWiki groups. Our doubt is, how to represent/stora the particularities of a given user when he/she is included in a given group.
Let's me to describe an example. Any user in our organization could play different roles. For instance, for given set of groups he/she could play a coordinator role. But this fact won't affect /conditonate his/her roles when assigned to a different group.
The only solution I could think off is to create one property per group a given user belongs to to store his/her role in this group.
Please, could you figure out a better solution?
Thanks for your help!!!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
I am out of the office until 04/10/2012.
I will not have access to email, but will get back to you when I return.
Happy Easter! :-)
Note: This is an automated response to your message "users Digest, Vol 57,
Issue 6" sent on 04/06/2012 3:07:46.
This is the only notification you will receive while this person is away.
Hi,
I am a doctoral student at the International Graduate School of Zittau,
Germany (www.ihi-zittau.de).
I would like to create a new wiki to try some collaborative academic paper
writing (and potential extension development to integrate with Mendeley or
Refworks) on XWiki. In particular, I like the granular version tracking,
access control, and .rtf export, which allows citation tags to be
postprocessed for a finished academic paper submission.
My user name on www.myxwiki.org is "ruediklein". The server name should be "
ihi-zittau.myxwiki.com" or "ruediklein.myxwiki.com", if the first one is
not available.
Thanks,
Ruedi
--
Secretary Treasurer of the Product Development and Management Association
(PDMA) <http://www.pdma.org>
*“Connecting Innovators Worldwide”*
Hi fokes,
I wanted to share my ideas on the search application.
The results don't really show a lot of information right now.
The field "located in" is confusing to many users, as it does not show the
path but the wiki, the space and the page the page itself/the attachment is
in. At the very least, when the search does not expand to multiple wiki's,
the 'location' should not start with "xwiki" (everything is at 'xwiki').
I can imagine showing the sniplet of text that matches the search query
would be difficult to program, or even the first 200 chars of that page.
Showing tags in the found page would probably be a better addition showing
info on the result page.
For attachments, only a 'paperclip' is shown while in the attachment pane,
a symbol for image, ms-word etc is shown.
Matching words could be emphasised (bold or italic) in the results, so it's
easy to spot why it was a result. Especially when tags and a sniplet of the
content is shown.
Results from the 'current' space the user was in might be shown on top,
too. Like Delicious shows results from the user's stack as the first 3
results, followed by the 'general' results. The logic to me is that a user
wants pages from the space he originated his search from, as that's the
topic he is currently interested in (eg he starts his search in the space
'best practices', he might be most interested in best practices.
As my proposed improvements no doubt mean more processing time, I'd
decrease the results to 15 per page. Users hardly look further than the
first 10 anyway.
I hope I can get your thoughts on these improvements so I might promote
this to feature requests in JIRA :)
Greets, Joris
The XWiki development team is proud to announce the availability of
XWiki Commons, XWiki Rendering, XWiki Platform, XWiki Enterprise and
XWiki Enterprise Manager 4.0 Milestone 2.
This version mainly introduces:
* various ways of customizing users directory and profiles
* comments and annotation merge
* LDAP administration UI
See the full release notes at
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…
for more details.
Thanks
-The XWiki dev team
Dear,
I installed the Social Login extension from the control panel in the
last xwiki-xem manager with two sub-wiki, I can't get the login working.
I attached the full error, it's a null pointer exceptions, but I can't
find a reference to the exact macro line.
Thank you,
Gianluca
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Script Macro for content [import org.brickred.socialauth.AuthProvider
import org.brickred.socialauth.AuthProviderFactory
/**
* Displays a form with a single field for a new SSO user to pickup
its usernamem
*/
def outputUsernameCreationForm = { defaultValue, provider ->
if (!defaultValue)
defaultValue = ""
xwiki.ssx.use('XWiki.SocialLogin')
println """
{{html clean=false}}
<form class="xform" action=${doc.getURL('view')} method="post"
id="createUsernameForm">
<div class="centered">
<fieldset class="xwikimessage">
<legend><span>${msg.get('xwiki.socialLogin.youMustBeNewHere')}</
span></legend>
<input type="hidden" name="xaction" value="createProfile" />
<p class="message">
${msg.get('xwiki.socialLogin.createProfileMessage',
[provider])}
</p>
<dl>
<dt>${msg.get('xwiki.socialLogin.pickupUsername')}</dt>
<dd><input type="text" name="username" value="$
{defaultValue}" /></dd>
</dl>
<div class="buttons">
<span class="buttonwrapper">
<input class="button" type="submit" value="$
{msg.get('xwiki.socialLogin.createMyAccount')}" />
</span>
</div>
</fieldset>
</div>
</form>
{{/html}}
"""
}
/**
* Authenticate a user and make it remembered in XWiki authentication
system
*/
def authenticateUser = { userDoc ->
def password =
userDoc
.getObject('XWiki.SocialLoginClass').getProperty('password_cache').value
def xwikiAuthenticator =
xwiki.@xwiki.getAuthService().@authenticators.get('xwiki')
def psm = xwikiAuthenticator.@persistentLoginManager
psm.rememberLogin(request, response, userDoc.fullName, password)
response.sendRedirect(xwiki.getURL('Main.WebHome', 'view'))
}
// Load oauth properties file
def properties = new java.util.Properties()
properties
.load
(com
.xpn
.xwiki
.web
.Utils
.getComponent
("org
.xwiki.container.Container").applicationContext.getResourceAsStream("/
WEB-INF/oauth_consumer.properties"))
/**
* Initiate the OAuth dance with the requested provider
*/
if(!request.callback && request.provider) {
try {
def provider = AuthProviderFactory.getInstance(request.provider,
properties)
println provider
String url =
provider.getLoginRedirectURL(doc.getExternalURL('view','callback=1'));
// Store in session
request.session.setAttribute("org.brickred.socialauth.AuthProvider",
provider);
request
.session.setAttribute("org.brickred.socialauth.AuthProvider.hint",
request.provider);
response.sendRedirect(url)
}
catch(Exception e) {
println """
{{error}}
${msg.get('xwiki.socialLogin.genericError', [e.message])}
{{/error}}
"""
}
}
/**
* We've got a response from the provider, let's treat it
*/
else if (request.callback){
try {
// get the provider back from session
def provider =
request.session.getAttribute("org.brickred.socialauth.AuthProvider");
def providerID =
request
.session.getAttribute("org.brickred.socialauth.AuthProvider.hint");
// verify the authentication
def profile = provider.verifyResponse(request);
// Search for this user in database
def query = services.query.xwql("from
doc.object(XWiki.XWikiUsers) as user,
doc.object(XWiki.SocialLoginProfileClass) as profile where
profile.provider = '" + providerID + "' and profile.validatedId = '" +
profile.validatedId + "'")
for (result in query.execute()) {
authenticateUser(xwiki.getDocument(result))
}
// Not authenticated/redirected yet ? -> You must be new here
// You will have to pick-up a username and dad will create an
account for you
// Store the social profile in the session
request.session.setAttribute("org.brickred.socialauth.Profile",
profile);
// Try to guess what username the user will want to use
def guessedUsername = profile.displayName
// Outputs the form to create the username
outputUsernameCreationForm(guessedUsername, providerID)
} catch(Exception e) {
println """
{{error}}
${msg.get('xwiki.socialLogin.genericError', [e.message])}
{{/error}}
"""
}
}
/**
* Create a new user profile from the social profile result
*/
else if (request.xaction && request.xaction == 'createProfile') {
def profile =
request.session.getAttribute("org.brickred.socialauth.Profile")
def provider =
request
.session.getAttribute("org.brickred.socialauth.AuthProvider.hint");
def username = request.username
if (username && username != '' && !xwiki.exists("XWiki." +
username)) {
// Everything clear, let's proceed
def userDocName = "XWiki." + username
// Generate a random password
password = xwiki.generateRandomString(16)
def propMap = [:]
propMap.put("active", "1")
propMap.put("email", profile.email)
propMap.put("first_name", profile.firstName)
propMap.put("last_name", profile.lastName)
propMap.put("password", password)
xwiki.(a)xwiki.createUser(username, propMap, xcontext.@context)
def userDoc = xwiki.getDocument(userDocName)
def socialProfile =
userDoc.getObject('XWiki.SocialLoginProfileClass', true)
socialProfile.set('provider', provider)
socialProfile.set('fullName', profile.fullName)
socialProfile.set('firstName', profile.firstName)
socialProfile.set('lastName', profile.lastName)
socialProfile.set('displayName', profile.displayName)
socialProfile.set('email', profile.email)
socialProfile.set('profileImageURL', profile.profileImageURL)
socialProfile.set('gender', profile.gender)
socialProfile.set('dob', profile.dob)
socialProfile.set('validatedId', profile.validatedId)
socialProfile.set('country', profile.country)
socialProfile.set('location', profile.location)
def socialPrefs = userDoc.getObject('XWiki.SocialLoginClass', true)
socialPrefs.set('password_cache', password)
socialPrefs.set('preferred_provider', provider)
userDoc
.saveWithProgrammingRights
(msg.get('xwiki.socialLogin.updatedSocialProfile'), true)
authenticateUser(userDoc)
}
else {
if (!username || username == '')
println """
{{error}}
${msg.get('xwiki.socialLogin.youMustPickUsername')}
{{/error}}
"""
else if (xwiki.exists('XWiki.' + username))
println """
{{error}}
${msg.get('xwiki.socialLogin.usernameAlreadyTaken')}
{{/error}}
"""
outputUsernameCreationForm("", provider);
}
}
/**
* View mode
*/
else {
println """
{{info}}
${msg.get('xwiki.socialLogin.nothingToDo')}
{{/info}}
"""
}]
at
org
.xwiki
.rendering
.macro
.script
.AbstractJSR223ScriptMacro
.evaluateBlock(AbstractJSR223ScriptMacro.java:174)
at
org
.xwiki
.rendering
.macro
.script
.AbstractJSR223ScriptMacro
.evaluateBlock(AbstractJSR223ScriptMacro.java:52)
at
org
.xwiki
.rendering
.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198)
at
org
.xwiki
.rendering
.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59)
at
org
.xwiki
.rendering
.internal
.transformation
.macro.MacroTransformation.transformOnce(MacroTransformation.java:187)
at
org
.xwiki
.rendering
.internal
.transformation
.macro.MacroTransformation.transform(MacroTransformation.java:132)
at
org
.xwiki
.rendering
.internal
.transformation
.DefaultTransformationManager
.performTransformations(DefaultTransformationManager.java:83)
at
org
.xwiki
.display
.internal
.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
at
org
.xwiki
.display
.internal
.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
at
org
.xwiki
.display
.internal
.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
at
org
.xwiki
.display
.internal
.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
at
org
.xwiki
.display
.internal
.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
at
com
.xpn
.xwiki
.internal
.sheet.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
at
com
.xpn
.xwiki
.internal
.sheet.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:57)
at
org
.xwiki
.display
.internal
.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:
67)
at
org
.xwiki
.display
.internal
.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:
41)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
862)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
841)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
872)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:586)
at sun.reflect.GeneratedMethodAccessor3514.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
173)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
280)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at
org
.apache
.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org
.apache
.velocity
.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
72)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
342)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
342)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1728)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:839)
at sun.reflect.GeneratedMethodAccessor3337.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
173)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
280)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
72)
at
org
.apache
.velocity
.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at
org
.apache
.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at
org
.apache
.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at
org
.apache
.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
72)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
72)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
342)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
342)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
at
org
.apache
.struts
.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org
.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
538)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1352)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
org
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
144)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
com
.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
217)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
109)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
476)
at
org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:
517)
at
org
.eclipse
.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at
org
.eclipse
.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
406)
at
org
.eclipse
.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at
org
.eclipse
.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
at
org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
117)
at
org
.eclipse
.jetty
.server
.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:
247)
at
org
.eclipse
.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
149)
at
org
.eclipse
.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at
org
.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:
589)
at org.eclipse.jetty.server.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:1048)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:
214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:
411)
at
org
.eclipse
.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:
535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint
$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool
$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.script.ScriptException: javax.script.ScriptException:
java.lang.NullPointerException
at
org
.codehaus
.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:
122)
at
org
.xwiki
.rendering
.macro
.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:
277)
at
org
.xwiki
.rendering
.macro
.script
.AbstractJSR223ScriptMacro
.evaluateBlock(AbstractJSR223ScriptMacro.java:209)
at
org
.xwiki
.rendering
.macro
.script
.AbstractJSR223ScriptMacro
.evaluateBlock(AbstractJSR223ScriptMacro.java:169)
... 105 more
Caused by: javax.script.ScriptException: java.lang.NullPointerException
at
org
.codehaus
.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:
323)
at
org
.codehaus
.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:
116)
... 108 more
Caused by: java.lang.NullPointerException
Hi - I work for the government of the City of New York, which isn't specifically an individual or a non-profit organization, but certainly isn't a commercial organization either.
We are interested in standing up an XWiki instance to support a short-term (3 month) public review and commenting period of some technology policies and standards. Specifically, they are related to our strategy of opening up much of our government data for free use. See here for more details: http://www.nyc.gov/html/doitt/html/open/data.shtml
While there would probably be very few registered users and relatively little visitor traffic, the content of the wiki would be publicly visible without requiring a login.
In addition, this would enable us to carefully evaluate the use of the xwiki platform for deployment for other Internet-facing wiki efforts which we know will be needed within the next year or two.
My user name is technickle, and the server name / domain would ideally be nycopendata.myxwiki.org
Thanks for your consideration!
-Andrew
Hi,
What is the best strategy for upgrading (2.7 -> 3.5.1) and making sure everything is based on the latest?
I was thinking the following;
Export the old Wiki (full Export)
Delete the Wiki
Clean installed Wiki
Import the Export
Import the XAR of a fresh Wiki
Problem with above;
With last step I overwrite and lose all modified pages (especially XWikiusers group)
All imported pages are not modified to latest XWiki syntax
profiles of XWikiUsers are based on OLD object definition
Object def changes in BLOG (if any?)
Script changes in Register procedure
any other?
Gerritjan
Hi!
Even though this is a bit off-topic, could you tell me what is the newest Glassfish release that I could run in a java "1.5.0" box? Is there anybody running this environment? Pleaes, what is your experience with it?
I keep having memory management problems with a XWiki Enterprise 2.4.30451 installation I do need to keep alive for some more months! Perhaps giving Glassfish a trial could help? I'm currently running Tomcat.
Thank you so much!!
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
Please help!
I have a vmware virtual machine with installed, configured and working XWiki
3.5 (Win2003, Glassfish, OracleXE 11.2). Today I copied this vm into another
location. After starting - all working, except for the attachment
functionality (directly from vm also). At any xwiki page, I pressed
"Browse...", select file, push "attach" - after small time page refreshed -
but my new attach-file didn't appear in a attachement list. All older
attachments (attached before copying virtual machine) - working (I can
download them, view using office_viewer ... In Glassfish domain log - no any
specific issues ...
Please help! What can be a problem?
--
Thanks beforehand!
Eugen
--
View this message in context: http://xwiki.475771.n2.nabble.com/Need-help-Attachments-doesn-t-work-tp7392…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
Somebody could explain me why xwiki uses
$theme.pageContentBackgroundColor as border color in
resources/js/xwiki/table/livetable.css ?
A background color as border color : that's weird only for me ?
That's a problem for us because if we want use a dark color as border,
columns label are unreadable (dark on dark).
Why not use border color from color theme instead ?
Thank you
Best regards
NCG
Hi,
how is it possible to intantiate a valid MacroTransformationContext?
I tried this:
MacroTransformationContext mc=new
MacroTransformationContext(new TransformationContext());
mc.setSyntax(Syntax.XWIKI_2_0);
contentParser.parse(ts.getContent(),mc,true,true);
but it threw the following Exception:
org.xwiki.rendering.macro.MacroExecutionException: Failed to parse
content [ == Werner == * test ]
at
org.xwiki.rendering.internal.macro.DefaultMacroContentParser.parseXDOM(DefaultMacroContentParser.java:122)
at
org.xwiki.rendering.internal.macro.DefaultMacroContentParser.parse(DefaultMacroContentParser.java:77)
at
org.centauron.xwiki.XWikiConnector.getCodeSnipsFromPage(XWikiConnector.java:117)
at
org.centauron.xwiki.XWikiConnector.getCodeSnipsFromPage(XWikiConnector.java:105)
...
Hi, Anca,
Thanks very much for your response, I understand how data are saved to
database now, but I got another question:
In the following code from BlogPostSheet
<dl>
<dt>$msg.get('xe.blog.sheet.title')</dt>
<dd>$doc.display('title', 'edit', $entryObj)</dd>
<dt>$msg.get('xe.blog.sheet.content')</dt>
<dd>$doc.display('content', 'edit', $entryObj)</dd>
<dt>Feature ID:</dt>
<dd>$doc.display('FID', 'view', $entryObj)</dd>
<dt>Package ID:</dt>
<dd>$doc.display('PID', 'view', $entryObj)</dd>
<div class="clearfloats"></div>
</dd>
</dl>
If I change the 'view' to 'edit' for both FID and PID, then both of FID and
PID will be saved to database, and I can query retrieve them, but I have
use view, then they are not saved to database. the problem is I donot want
these two fields editable, so I have to use view, any workaround for this?
so the bottom line is I want them to be saved to database and not editable
from the inline form.
Thanks again for your help.
Dave
On Wed, Mar 28, 2012 at 4:47 AM, Anca Luca <lucaa(a)xwiki.com> wrote:
> Hi Dave,
>
> You should read http://platform.xwiki.org/**xwiki/bin/view/DevGuide/**
> Architecture<http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture>, but I understand that it might be cryptic for a first time usage so here
> we go:
> must know that xwiki is a java engine, so there is some java code that
> does things, it's not all done in velocity.
> Basically, there is a java "platform" that can handle documents, objects
> in documents, classes, etc (load, save) and then there is the velocity
> scripting that you can do in wiki pages which **uses** this core (injected
> variables like $xwiki, $doc). See here about how this scripting in pages
> works: http://platform.xwiki.org/**xwiki/bin/view/DevGuide/**Scripting<http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting>.
> Also, there are some interesting information about the data model here
> http://platform.xwiki.org/**xwiki/bin/view/DevGuide/**DataModel<http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel>.
>
> The 'platform' project on git contains all this 'platform' code: java
> sources, default templates, default js, css, etc, which you can enhance in
> wiki pages (but we don't do everything in wiki pages, so you should not
> look for it only in wiki pages).
>
> Also, there are a bunch of "default" velocity templates that handle the
> default layout and actions for the wiki (in the webapps/xwiki/templates
> folder of the installation). For example, the save and view button is
> generated by these templates, along with the url to which the data in the
> form is posted.
>
> I recommend firebug and LiveHttpheaders extensions of firefox to study
> what data is posted to which URL, etc what data is received. from then on,
> with the help of http://platform.xwiki.org/**xwiki/bin/view/DevGuide/**
> Architecture#**HUnderstandinghowHTTPrequestsa**rehandled<http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture#HUnderstandi…>, you should be able to find the code that actually does the save.
>
> Have fun,
> Anca
>
>
> On 03/28/2012 05:42 AM, du du wrote:
>
>> Also from the following BlogPostSheet wiki code, after users type in
>> message from the inline form, users click Save& View button, how are the
>>
>> messages saved to database?
>> see the attached code:
>> {{include document="Blog.BlogCode"/}}
>>
>> {{include document="Blog.CategoriesCode"**/}}
>>
>> {{velocity filter="none"}}
>> {{html clean="false" wiki="true"}}
>> $xwiki.jsx.use('Blog.**ManageCategories', {'mode' : 'select'})##
>> $xwiki.ssx.use('Blog.**ManageCategories')##
>> #getEntryObject($doc $entryObj)
>> #if("$!entryObj" == '')
>> #warning($msg.get('xe.blog.**sheet.notpost'))
>> ## Keep testing the inline action for backward compatibility with older
>> blog posts.
>> #elseif($xcontext.action != 'edit'&& $xcontext.action != 'inline')
>> ## View mode
>> #isPublished($entryObj $isPublished)
>> #isHidden($entryObj $isHidden)
>> ## displayBlog requires a list of documents, and whether to display only
>> an extract or the full entry.
>> #displayBlog([$tdoc] 'single' false false)
>> #else
>> <dl>
>> <dt>$msg.get('xe.blog.sheet.**title')</dt>
>> <dd>$doc.display('title', 'edit', $entryObj)</dd>
>> <dt>$msg.get('xe.blog.sheet.**content')</dt>
>> <dd>$doc.display('content', 'edit', $entryObj)</dd>
>> <dt>$msg.get('xe.blog.sheet.**summary')</dt>
>> <dd>$doc.display('extract', 'edit', $entryObj)</dd>
>> <dt>$msg.get('xe.blog.sheet.**category')</dt>
>> <dd>
>> #**displayCategoryManagementTree(**'' 'selectable')
>> <div class="clearfloats"></div>
>> </dd>
>> </dl>
>> #template('tagedit.vm')
>> #isPublished($entryObj $isPublished)
>> #if($isPublished)
>> #if($doc.creator == $xcontext.user)
>> #publishMessageBox($msg.get('**xe.blog.sheet.publicationdate'**,
>> [${doc.display('publishDate', 'view', $entryObj)}]))
>> #set($hideArticle = ${doc.display('hidden', 'edit', $entryObj)})
>> #hideMessageBox($msg.get('xe.**blog.sheet.hidearticle',
>> [${hideArticle}]))
>> #end
>> #else
>> #set($defaultDate =
>> $xwiki.getDocument($**blogPostTemplate).getObject($**blogPostClassname).*
>> *getProperty('publishDate').**value.time)
>> #if($entryObj.getProperty('**publishDate').value.time ==
>> $defaultDate)
>> ## The publish date was not set, force it to be the creation date
>> $entryObj.set('publishDate', $doc.creationDate)
>> #end
>> #publishMessageBox("$msg.get('**xe.blog.sheet.notpublished')
>> <label>**$msg.get('xe.blog.**sheet.publish') ${doc.display('published',
>> 'edit', $entryObj)}**</label>\\<label>**$msg.get('xe.blog.sheet.**
>> setdate')
>> ${doc.display('publishDate', 'edit', $entryObj)}</label>")
>> #end
>> #end
>> {{/html}}
>> {{/velocity}}
>>
>> Thanks
>> Dave
>>
>> On Tue, Mar 27, 2012 at 11:36 PM, du du<dddu88(a)gmail.com> wrote:
>>
>> Hi, all
>>>
>>> I am studying the BlogClass, BlogPostClass, I checked the Blog.BlogCode,
>>> there are alot of velocity scripts, I can see the search documents from
>>> db,
>>> but could not find any code related to insert document records into
>>> database, so how is the document created from blog saved into database?
>>> please point me to the script code in the Blog.BlogCode.
>>>
>>> Thanks
>>>
>>> Dave
>>>
>> ______________________________**_________________
>>
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
>>
>
> ______________________________**_________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/**mailman/listinfo/devs<http://lists.xwiki.org/mailman/listinfo/devs>
>
Hi, all
I am studying the BlogClass, BlogPostClass, I checked the Blog.BlogCode,
there are alot of velocity scripts, I can see the search documents from db,
but could not find any code related to insert document records into
database, so how is the document created from blog saved into database?
please point me to the script code in the Blog.BlogCode.
Thanks
Dave
Hello,
My Dashboard page suddenly broke, with no apparent reason (I was renaming a
page ...)
First everything seemed to be broken in my wiki : home page full of velocity
exceptions, renaming, copying, ..., conducing to velocity exceptions.
I think I focused down to what might be the root cause when I visualized the
Main.Dashboard page. It displays, but the activity stream fails with this
exception (see at the end).
Strangely, I'm able to connect to the database and run simple queries on
activitystream_events table.
Any help welcome,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-3-5-Exception-from-activity-stream-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mar 27, 2012, at 10:13 AM, Grüner Heinrich wrote:
> Hi Vincent,
> in my api "parse" returns a List<Block> and parseXDOM returns a XDOM.
> But I am still on 3.1 release.
Ok that's why. In 3.1 this component was private (it has an "internal" part in the package name),this means you're not supposed to use it because it's not a user public api and it can change at any time.
We've made it in 3.3M1:
https://github.com/xwiki/xwiki-rendering/commit/a3f012852f7b7caeaaf6205dca4…
The new API starting in 3.3M1:
https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-transf…
Thanks
-Vincent
PS: Please don't answer privately to me and instead always send mails to the list so that we all see them and we can all answer and learn from them :)
> Am 27.03.2012 09:31, schrieb Vincent Massol:
>> Hi Stefan,
>>
>> On Mar 27, 2012, at 9:24 AM, Stefan Bernsdorf wrote:
>>
>>> Hi Vincent,
>>>
>>> thanks for replying.
>>> There is a typo in your example. You have to remove .getChildren() in the code.
>>>
>>>
>>> List
>>> <Block> blocks = this.contentParser.parse(content, context, true, context.isInline()).getChildren();
>> Thanks but it looks correct. parse() will return a XDOM and execute() needs a list of Blocks so you need to get them with XDOM.getChildren().
>>
>> Thanks
>> -Vincent
>>
>>>
>>> Am 27.03.2012 08:49, schrieb Vincent Massol:
>>>> Hi Stefan
>>>>
>>>> On Mar 26, 2012, at 11:43 PM, Grüner Heinrich wrote:
>>>>
>>>>
>>>>> Hi,
>>>>> i want the content of my Macro to be parsed as XWiki Syntax.
>>>>> How would that be possible.
>>>>> I cant find no parsing Method in AbstractMacro. When I want to extend AbstractScriptMacro then the initializing of the macro fails.
>>>>>
>>>> See http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro#HParsingMacro…
>>>>
>>>>
>>>> Thanks
>>>> -Vincent
>>
>
Hi Stefan,
On Mar 27, 2012, at 9:24 AM, Stefan Bernsdorf wrote:
> Hi Vincent,
>
> thanks for replying.
> There is a typo in your example. You have to remove .getChildren() in the code.
>
>
> List
> <Block> blocks = this.contentParser.parse(content, context, true, context.isInline()).getChildren();
Thanks but it looks correct. parse() will return a XDOM and execute() needs a list of Blocks so you need to get them with XDOM.getChildren().
Thanks
-Vincent
>
> Am 27.03.2012 08:49, schrieb Vincent Massol:
>> Hi Stefan
>>
>> On Mar 26, 2012, at 11:43 PM, Grüner Heinrich wrote:
>>
>>
>>> Hi,
>>> i want the content of my Macro to be parsed as XWiki Syntax.
>>> How would that be possible.
>>> I cant find no parsing Method in AbstractMacro. When I want to extend AbstractScriptMacro then the initializing of the macro fails.
>>>
>> See http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro#HParsingMacro…
>>
>>
>> Thanks
>> -Vincent
Hi, i have a problem with deinstalling MySQL completly from my notebook.
I have the xwiki running on my normal pc, but i also want to work on it on
the notebook.
But after watching a lot of forums about that i can't configure the MySQL
server.
So i thought about asking here because i just only know one way of getting
through it --> completly new windows installation.
Have someone any idea how to get it with MySQL or is it easier with Postgre
or Xampp?
It is not so easy to install xwiki because there is only a tutorial for
debian users and not for windows...
I hope someone can help me...
Thanks
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-get-MySQL-after-installed-running-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
i want the content of my Macro to be parsed as XWiki Syntax.
How would that be possible.
I cant find no parsing Method in AbstractMacro. When I want to extend
AbstractScriptMacro then the initializing of the macro fails.
Thanks, Stefan.
Hi.
We're using xWiki as a help/eLearning system and we'll like to know if
there is a way to create a new document version that will not be
published until it has been reviewed and approved, so the users will not
see the new version until the approval for the new one has been granted.
Thanks un advance and best regards.
In the XAR-Files there are some XML documents and in this docs there are some
operator where i dont know what it means.
In the files there is a line
<guid> a long number such as a serial key <guid>
dont know what it is
and
<date>13 numbers<date> here i dont know how the date is set.
Would be really good if someone could help me?
--
View this message in context: http://xwiki.475771.n2.nabble.com/What-are-the-guid-operator-in-xml-docs-wi…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I am currently doing Masters in Computer Science from SUNY, New York.
I want to participate in GSOC 2012 and so I went through the projects list
offered by XWiki.
I wanted to ask about the project named "Issue tracking and time tracking
extensions". This project sounds interesting so I would definitely would
like to work on that.
So I wanted to know is there any previous work done on this project so that
I could make my base out of it or it has to be started as a new project.
And what are the pre-requisites required for carrying out this project.
And any more information regarding this project will really be helpful.
Thanks and regards.
PRANKUR GUPTA
Masters Student (CSE)
State University of New York
Stony Brook University