Thanks a lot Devs. You have been very helpful
As an administrator, I see that rights can be assigned on a user basis and
on a group basis.
What are the rules for assigning these rights if an ordinary member (showing
up in the users list) also belongs to a group.
I am guessing that anyrights applied to the group automatically apply to all
users in the group BUT they do not show up the indivdual users list !
Also, can a user be a member of more than one group ?
I realized that just assignig the global rigths /user rights are not
sufficient!
Space rights also matter!
Is there a way to assign edit/view rights for a group in any space. For
example, if we take the Todo application.
There the creator has an option fo choosing the space in which he wants to
create a new Todo object.
If the user chooses a space where he does not ahve edit/view rights, it's
not going to work right!
It throws error 9001.
so, how can we ensure that groups get rights on the newly created spaces?
On another note: I used the following in the HTML code for creating a form
for creating a new object:
Here I assign the parent of the newly created page as "Main"
But, the page actually gets created in the XWiki space. Is this because the
class I am using belongs to the XWiki space ?
I understand that an Xwiki Page is actually an Object. But then how does
XWiki allow one page to contain multiple objects at once (like commments and
Tags etc...)
Or did I understand it wrong?
'<input type="hidden" name="parent" value="Main"/>
<input type="hidden" name="template" value="HybridPublishClassTemplate"/>
<input type="hidden" name="sheet" value="1"/>
Thanks again Devs.
Hello Devs,
In the past few days, I have been looking a lot at the Velocity templates
and the Xwiki core code.
There are a few things I am not able to understand.
1) Where is $msg variable defined in the core code? I see it a lot in the
scripts. Is it a hashtable for messages. Where is it defined?
2) what is referred to by "xpage","xredirect"
For eg. in the following mehtod from Utils.java
public static String getPage(XWikiRequest request, String defaultpage)
{
String page;
page = request.getParameter("xpage");
if ((page == null) || (page.equals(""))) {
page = defaultpage;
}
return page;
}
does this mean, that if a page with that name exists in the template
directory(xpage), it will be returned. But, what is defaultpage?
Currently the login page does not show any error if the provided credentials
are wrong. (authentication with LDAP)
A look at the LoginErrorAction.java in the Web package revealed that it
returns the same string as the LoginAction - "login"
so, if I created anither loginerror.vm in teh templates folder and returned
"loginerror" in the render function of this LoginErrorAction.java class, it
would run the new script.
But, at this stage I do not know what would be the content of the
loginerror.vm....
#xwikimessageboxstart($msg.get("error") $msg.get("notallowed")) - would
this work?
I picked this up from accessdenied.vm ...
Thanks for all help
Thanks
>
>
> Message: 8
> Date: Wed, 16 Apr 2008 23:27:57 +0200
> From: "Guillaume Lerouge" <guillaume(a)xwiki.com>
> Subject: Re: [xwiki-devs] What is $msg ?
> To: "XWiki Developers" <devs(a)xwiki.org>
> Message-ID:
> <1c35d2320804161427n3f69229bs6d2bb425d00e13c1(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Kamna,
>
> In the past few days, I have been looking a lot at the Velocity templates
> > and the Xwiki core code.
> > There are a few things I am not able to understand.
> >
> > 1) Where is $msg variable defined in the core code? I see it a lot in
> the
> > scripts. Is it a hashtable for messages. Where is it defined?
>
>
> $msg is the code used to get translation messages. Basically when you
> write
> $msg.translation or $msg.get("translation"), upon parsing of the page by
> the
> Velovity parser the engine looks into the translations file. if it finds
> something such as translation=NiceTranslation, it turns $msg.translation
> into NiceTranslation when rendering the page.
>
> 2) what is referred to by "xpage","xredirect"
> >
> > For eg. in the following mehtod from Utils.java
> >
> > public static String getPage(XWikiRequest request, String defaultpage)
> > {
> > String page;
> > page = request.getParameter("xpage");
> > if ((page == null) || (page.equals(""))) {
> > page = defaultpage;
> > }
> > return page;
> > }
> >
> > does this mean, that if a page with that name exists in the template
> > directory(xpage), it will be returned. But, what is defaultpage?
> >
>
> They are used to return specific actions when ?xpage= is appended to a
> page
> URL . For instance, /xwiki/bin/view/Main/WebHome?xpage=plain will render
> the
> content witout any style, /xwiki/bin/view/Main/WebHome?xpage=print will
> render the page in print mode...
>
> Similarly, ?xredirect takes another url as a parameter and sends the
> viewer
> to the given page. When you try to access a page you cannot see, it's the
> action used to send you back to the page from the login page.
>
if xpage = "mypage" then it would pass the control (request) to a vm
template file mypage.vm and the rendering or response of the request would
be as defined in mypage.vm
>
> > Currently the login page does not show any error if the provided
> > credentials
> > are wrong. (authentication with LDAP)
> > A look at the LoginErrorAction.java in the Web package revealed that it
> > returns the same string as the LoginAction - "login"
> > so, if I created anither loginerror.vm in teh templates folder and
> > returned
> > "loginerror" in the render function of this LoginErrorAction.java class,
> > it
> > would run the new script.
> >
> > But, at this stage I do not know what would be the content of the
> > loginerror.vm....
> > #xwikimessageboxstart($msg.get("error") $msg.get("notallowed")) - would
> > this work?
>
>
> Not quite sure... Though trial & error sounds like a nice tactic ;-)
>
> Guillaume
>
>
Greetings Devs,
Please forward the job description below to anyone you know who is qualified
and would be interested in such a position.
Thank you
-Joshua
----------------------------------------------------------------------------
----------------------------
Curriki.org is a non-profit "Education 2.0" organization seeking to create a
community and tools for developing, distributing and evaluating open source
curricula and content
Since being launched by founders of Sun Microsystems in 2006, we have grown
quickly to over 35,000 registered users and have been featured in TIME
Magazine, The SF Chronicle, Popular Sciences, The International Herald
Tribune, Education week, and scores of blogs and articles elsewhere. We are
pioneers in collaborative content creation tools and "OER"- Open Educational
Resources.
We're currently looking for an experienced senior Java application developer
to help refine, improve and extended our open source hosted web application.
We are looking for a contractor to work with us to implement new features
and also improve and in some cases re-factor elements of the existing code.
Experience with and an interest in open source projects, Java and the
ability to learn new systems and languages quickly are all necessary
attributes of the successful candidate. We are looking for a detail oriented
individual who is not happy until things are just right. As a completely
virtual organization, you will be expected to work remotely, independently
and must provide your own development environment (Hardware and software),
and broadband internet access. You will also be expected to attend virtual
meetings and be generally available via IM during core working hours.
RESPONSIBILITIES:
. Implement features and bug fixes as assigned by the site producers and the
CTO.
. Evaluate and improve code in areas where problems are identified.
. Review and work with the development team to more fully document the code
and system and create additional unit test scripts where needed.
. Take responsibility for maintenance releases for fast turn around of
production issues and bugs.
. Provide back-up support for build and release engineering and Unix System
administration.
. Work with the design team to evaluate and improve the site style sheets
(CSS) and presentation layer (Velocity scripts).
. Help bring the platform to a point where partners can compile and deploy
the code, and provide support for partners who are working to run a Curriki
server.
QUALIFICATIONS:
. Five or more years experience with J2EE Web application development.
(Extra credit for experience working with the XWiki application -
www.xwiki.org <http://www.xwiki.org/> or its key parts including Velocity,
Groovy and GWT.)
. Experience with as many of the following technologies and open source
projects as possible: My SQL, XWiki, Sun Java App Server, Solaris 10/zones,
Hibernate, Lucene, Groovy, Velocity, Google Web Toolkit, JSR-168/286,
JCE/JSR-170
. Strong background and interest in Open Source software development and
E-Learning technology desired but not required.
. Ability to work within a distributed remote team and demonstrate strong
work ethic.
. Highly articulate with clear speaking and writing skills.
. Extreme attention to detail and ability to QA your own work quickly.
Please respond with resume and number of hours of availability per month to
mailto:jobs@curriki.org. Hourly contracting rate negotiable based on
experience.
Joshua Marks
CTO
Curriki: The Global Education and Learning Community
jmarks(a)curriki.org
www.curriki.org
US 831-685-3511
Hello,
Can anybody tell me how to add an object of an already created class to a
new page using Velocity...not the interface provided by Xwiki.
Which method do I need to call to achieve this!!!
Thanks
Hi,
In the new xwiki architecture we need to take a call for passing the
request, response and session around (what is currently called the
XWikiContext). We have 2 solutions:
1) we pass it around for all method calls as it's currently done
2) we use ThreadLocal(s). If you don't know what it is see for ex: http://crazybob.org/2006/07/hard-core-java-threadlocal.html
.
The advantage of solution 2) is that any component in the new
architecture can decide to have the Container component injected (see http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/core/trunk/xwiki-containe…)
and thus be allowed to access the request, response and session
objects without having all its method add a Container object passed to
it.
The downside of solution 2) is simply that we associate Unit Of Work
with Threads. But since we use a Servlet model and since I don't see
any foreseeable future where we would want to use several threads for
the same unit of work, I don't think this is limitating for us. See http://blog.objectmentor.com/articles/2007/09/04/thread-local-a-convenient-…
for some explanation on this.
So right now and even though ThreadLocal sound a little bit "hackish",
I think this is still my preference as it'll save us from having to
pass Container objects everywhere.
Since this is an important architecture decision I wanted to have a
vote for it.
Thanks
-Vincent
Hello all,
I went through the TodoClass tutorial and found it useful.
I have a question regarding this functionality.
Are these classes or the values of the properties for its instances saved in
any table in the Xwiki database?
Say, we use Classes and Objects to create a form that the user needs to
create a document. Will the form values be saved in a database?
How can we access the values of any instance of the created class?
Also, how do we Delete a property from a Class definition? (If added by
mistake while creating the class)
Thanks for all help
This is the second time I ask this question, because maybe last time I didn't
describe it clearly. I hope someone can help me on this.
I have created a utf-8 wiki and set Chinese as the default langauage. I met
3 main encoding problems:
1. When I created a link with Chinese name in a page also named in Chinese.
I found that the ULR of the link was like"
/xwiki/bin/edit/Main/%E6%B5%8B%E8%AF%951?parent=Main.测试&editor=wysiwyg", the
main part is UTF-8 encoded, but the parent param is in original Chinese
encoding, means two endcodings for one URL. The consequence was that when I
clicked the link to edit the new page, the parent link is ill-formated, and
could not find the correct parent. I checked this forum, and found that
someone had met it before, but it was supposed to be resolved, see
http://www.nabble.com/Non-ascii-characters-in-doc-names%2C-need-advices-for…
This problem only in IE6 and IE7, in firefox it's OK, because in firefox
only one encoding in the URL.
I have tried both xwiki 1.2 and 1.3, same problem.
2. When I use export function, all the pages and spaces with Chinese name
are ill-named in the xar pack.
3. On the logs in CMD window of XWiki, all the Chinese words can not display
correctly.
Please someone help me to fix the problems, many thanks.
--
View this message in context: http://www.nabble.com/Encoding-problem-of-UTF-8-wiki%2C-especially-with-non…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi all,
I am using XWiki 1.3 and using oracle as the backend database.
I noticed the individual document rights doesn't saved properly when i make the changes on individual document.
May i know this is a hibernate or database jdbc or xwiki issue and can i resolve this issue?
Urgent....
__________________________________________________________________
Yahoo! Singapore Answers
Real people. Real questions. Real answers. Share what you know at http://answers.yahoo.com.sg
Thank you Pascal, Ricardo for your inputs.
We will wait for the demo.
I have another Question.
How can I use Velocity to create a New Page when I click on a link!
The scenario is such that when new users use the system to publish certain
information, they should be able to just click on one link from the
Quicklinks panel and that should take them to a new page in edit mode with
an Object from an already created class..basically simulating a form to be
filled by the user!
I saw XWiki.createDocument() in the XWiki API, but there is no way to
specify the title of the new document.
Please guide.
Thanks