I see there are more changes than just "Upgrade version information"...
tmortagne (SVN) wrote:
> Author: tmortagne
> Date: 2008-04-17 19:08:18 +0200 (Thu, 17 Apr 2008)
> New Revision: 9225
> Modified: xwiki-platform/xwiki-applications/trunk/wiki-manager/src/main/resources/WikiManager/CreateNewWiki
> ===================================================================
> --- xwiki-platform/xwiki-applications/trunk/wiki-manager/src/main/resources/WikiManager/CreateNewWiki 2008-04-17 17:06:48 UTC (rev 9224)
> +++ xwiki-platform/xwiki-applications/trunk/wiki-manager/src/main/resources/WikiManager/CreateNewWiki 2008-04-17 17:08:18 UTC (rev 9225)
> @@ -12,9 +12,9 @@
> <customClass></customClass>
> <contentAuthor>XWiki.Admin</contentAuthor>
> <creationDate>1186676964000</creationDate>
> -<date>1204903048000</date>
> -<contentUpdateDate>1204903048000</contentUpdateDate>
> -<version>394.1</version>
> +<date>1208445240000</date>
> +<contentUpdateDate>1208445240000</contentUpdateDate>
> +<version>23.1</version>
> <title></title>
> <template></template>
> <defaultTemplate></defaultTemplate>
> @@ -189,7 +189,9 @@
> ##
> 1 $msg.get("wikimanager.createwiki")
> #if ($wstepbystep)
> + [$msg.get("wikimanager.action.createwiki.nonstepbystep")>CreateNewWiki#if($documentation)?doc=1#end]
> #else
> + [$msg.get("wikimanager.action.createwiki.stepbystep")>CreateNewWiki?stepbystep=0&#if($documentation)doc=1#end]
> #end
> ##
> #if ($action && $action == "create")
> @@ -427,9 +429,9 @@
> <dl>
> <dt><label for="wikitemplate">$msg.get("wikimanager.wikitemplate")</label></dt>
> <dd>
> - <select name="wikitemplate" id="wikitemplate">
> + #set ($listtemplate=$WikiManager.getWikiTemplateList())
> + <select #if($listtemplate.size() == 0)disabled#end name="wikitemplate" id="wikitemplate">
> <option value="">---</option>
> - #set ($listtemplate=$WikiManager.getWikiTemplateList())
> #foreach ($template in $listtemplate)
> <option value="$template.wikiName">$template.wikiName</option>
> #end
> @@ -444,9 +446,9 @@
> <dl>
> <dt><label for="wikipackage">$msg.get("wikimanager.wikipackage")</label></dt>
> <dd>
> - <select name="wikipackage" id="wikipackage">
> + #set ($listpackage=$doc.getAttachmentList())
> + <select #if($listpackage.size() == 0)disabled#end name="wikipackage" id="wikipackage">
> <option value="">---</option>
> - #set ($listpackage=$doc.getAttachmentList())
> #foreach ($package in $listpackage)
> <option value="$package.getFilename()">$package.getFilename()</option>
> #end
> @@ -534,6 +536,8 @@
> #end
> <div id="actioncreate">
> <br />
> + #if ($request.stepbystep) <input type="hidden" name="stepbystep" value="$request.stepbystep" /> #end
> + #if ($request.doc) <input type="hidden" name="doc" value="$request.doc" /> #end
> <input type="submit" name="actioncreate" value="${msg.get("create")}" onclick="return validate();" />
> </div>
> </fieldset>
> @@ -156,6 +156,9 @@
> wikimanager.prop.wiki.homepage=Home page
> wikimanager.prop.alias.server=Domain name
> wikimanager.prop.alias.homepage=Home page
> +XWiki.XWikiServerClass_visibility_public=Public
> +XWiki.XWikiServerClass_visibility_private=Private
> +XWiki.XWikiServerClass_visibility_template=Template
> ##
> # DOC
> ##
> @@ -168,7 +171,7 @@
> wikimanager.doc.createwiki.desc=Set all the properties of your wiki here. All theses properties can be changed at any time in the wiki's descriptor page.
> wikimanager.doc.createwiki.desc.wikiprettyname=The display name of the wiki.
> wikimanager.doc.createwiki.desc.description=A brief wiki description.
> -wikimanager.doc.createwiki.desc.server=The domain name used to access the wiki. The default domain name suffix is ~~{0}~~. To change it edit this wiki page and search the $DOMAINNAME in TOOLS section.<br />You can add more domains latter in the wiki's descriptor page.
> +wikimanager.doc.createwiki.desc.server=The domain name used to access the wiki. The default domain name suffix is ~~{0}~~. To change it edit this wiki page and search the \"$DOMAINNAME\" in TOOLS section.<br />You can add more domains latter in the wiki's descriptor page.
> wikimanager.doc.createwiki.desc.owner=A global user who will have all the rights on this wiki.
> wikimanager.doc.createwiki.datafrom=When creating a new wiki you obtain by default an empty wiki. You can use wiki template and/or XAR packages as content sources for the new wiki.
> wikimanager.doc.createwiki.datafrom.template=First the wiki template content will be copied in the new wiki. To add more templates in the list set property ~~Visibility~~ of the wiki "template" in its wiki descriptor page.
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hello,
Can somebody tell me how to include a servlet in Xwiki.
I came across the following in the macros.vm file:
But, I am not very sure as to where do I save the servlet and is
#includeServlet("/xwiki/bin/view/Some/Document?params") this the syntax to
include a servlet?
I mean does this line go into the Xwiki editor?
Thanks
## #includeServlet("/xwiki/bin/view/Some/Document?params")
## Invokes on the server another servlet corresponding to the passed URL,
and returns the output.
## This is done using standard servlet mechanisms
(javax.servlet.RequestDispatcher#include).
##
#macro(includeServlet $url)
<!-- including $url -->
$xwiki.invokeServletAndReturnAsString($url)
<!-- included $url -->
#end
##
jvdrean (SVN) wrote:
> Modified: xwiki-platform/core/trunk/xwiki-core/src/main/resources/ApplicationResources.properties
> ===================================================================
> --- xwiki-platform/core/trunk/xwiki-core/src/main/resources/ApplicationResources.properties 2008-04-18 10:34:43 UTC (rev 9234)
> +++ xwiki-platform/core/trunk/xwiki-core/src/main/resources/ApplicationResources.properties 2008-04-18 14:14:39 UTC (rev 9235)
> @@ -41,6 +41,7 @@
> save=Save
> delete=Delete
> preview=Preview
> +copy=Copy
> login=Log-in
> logout=Log-out
> homepage=User Profile
> @@ -65,6 +66,8 @@
> author=Author
> lastauthor=Last Author
> filename=Filename
> +rights=Rights
> +actions=Actions
> default=default
> confirmobjectremove=Are you sure you want to remove this object?
> confirmdelete=This action is not reversible. Are you sure you want to delete this document?
I second Vincent. There should be no "generic" resources. Even if a
piece of text appears in more than one place, each feature/page should
be self-contained. In the future each feature might come in its own xar,
together with its resources, and ApplicationResources should either
disappear or contain core messages only, nothing related to the interface.
> Modified: xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/usersandgroups.css
This should be renamed (split?) to something like ajaxTable.css, and the
selectors should be not on specific IDs, but to all tables with a
specific class (like .ajaxTable)
> Added: xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/AllDocsTest.java
> + /**
> + * Validate input suggest for Page field.
> + */
> + public void testTableViewSuggestForPage()
> + {
> + getSelenium().typeKeys("page", "Treeview");
> + // The table is updated via Ajax, we give it the time to make this call
> + getSelenium().setSpeed("1000");
> + assertElementPresent("//td[@class='pagename']/a[text()='Treeview']");
> + getSelenium().setSpeed("0");
> + }
This test should be done like:
- typeKeys
- waitForCondition(loading is displayed)
- waitForCondition(loading disappears)
- assertPresent(Treeview)
- assertNotPresent(AllDocs)
and maybe delete the filter and assert that AllDocs is there
The same for the other filter tests.
> + public void testTableViewSuggestForSpace()
> + public void testTableViewSuggestForLastAuthor()
> + public void testTableViewCopyAction()
> + {
> + getSelenium().typeKeys("page", "treeview");
Shouldn't this have some waiting?
> + assertElementPresent("//td[@class='pagename']/a[text()='Treeview']");
> + assertElementPresent("link=Copy");
> + clickLinkWithText("Copy");
This already asserts, so the above assertElementPresent("link=Copy") is
not needed.
> + setFieldValue("targetdoc", "New.TreeviewCopy");
> + getSelenium().click("//input[@value='Copy']");
> + open(getUrl("Main", "AllDocs"));
> + getSelenium().typeKeys("space", "New");
> + getSelenium().typeKeys("page", "treeviewcopy");
> + assertElementPresent("//td[@class='pagename']/a[text()='TreeviewCopy']");
> + }
> +
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hello!
This is a beginner question, sorry if it's documented somewhere but I didn't
find it.
I've read the documentation available at
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HBuildingforaspecifi…,
made the configuration as suggested (changing the .m2/settings.xml file) and
executed mvn install -Pmysql, but in the end, my hibernate.cfg.xml (inside
xwiki-product-enterprise/web/target/xwiki-enterprise-web-1.4-SNAPSHOT/WEB-INF/)
had still the MySQL section commented. I've also noted that the
mysql-connector jar is not at the lib dir after the build.
Isn't there a way to build the application for mysql and have it ready to
run without any intervention? (changing and adding files) If there is, what
am I missing?
(By the way, is this the proper list for such a question or should I have
mailed this to the users list?)
Thank you very much,
--
Tiago Rinck Caveden
http://caveden.multiply.com
Hi Sergiu,
On Apr 18, 2008, at 1:28 AM, sdumitriu (SVN) wrote:
> Author: sdumitriu
> Date: 2008-04-18 01:28:31 +0200 (Fri, 18 Apr 2008)
> New Revision: 9229
>
> Modified:
> xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-
> tests/src/test/it/com/xpn/xwiki/it/selenium/AllTests.java
> xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-
> tests/src/test/it/com/xpn/xwiki/it/selenium/framework/
> XWikiTestSuite.java
> Log:
> [cleanup] Apply codestyle
[snip]
>
> * {
> - * XWikiTestSuite suite = new XWikiTestSuite("My Suite");
> + * XWikiTestSuite suite = new XWikiTestSuite("My
> Suite");
This looks strange. I'm offline right now so can't svn up to check but
it looks like the quotes were replaced with " in the java class.
[snip]
Thanks
-Vincent
On Fri, Apr 18, 2008 at 7:54 PM, Vincent Massol <vincent(a)massol.net> wrote:
>
> I think we should also provides the French translation by default
> since lots of us are French and can translate it easily...
True; done.
> Also it might be good to follow the naming conventions started by
> Sergiu.
>
I thought copy/rights/actions were generic enough to be included like this.
> > + public void setUp() throws Exception
> > + {
> > + super.setUp();
> > + loginAsAdmin();
> > + open(getUrl("Main", "AllDocs"));
> > + }
> > +
> > + /**
> > + * Validate presence of "Actions" column in table view for
> > administrator. Validate absence of
> > + * "Actions" column for users without administration rights.
> > + */
> > + public void testTableViewActionsPresence()
> > + {
> > + assertElementPresent("//td[text()='Actions']");
> > +
> > + // Verify that the user is logged in and log out
> > + if (isAuthenticated()) {
> > + logout();
>
> Why is that needed since the setup always does a loginAsAdmin? I think
> this can be changed to: logout();
Indeed; done.
> > + /**
> > + * Validate input suggest for Page field.
> > + */
> > + public void testTableViewSuggestForPage()
> > + {
> > + getSelenium().typeKeys("page", "Treeview");
> > + // The table is updated via Ajax, we give it the time to
> > make this call
> > + getSelenium().setSpeed("1000");
> > + assertElementPresent("//td[@class='pagename']/
> > a[text()='Treeview']");
> > + getSelenium().setSpeed("0");
>
> Is the setSpeed() required? We don't do any action after it's set so
> is it used for anything? Shouldn't it be before the typeKeys?
The setSpeed() affects the assert that follows (without this setSpeed
the test fails).
> There are way too many test methods. These are NOT unit tests and thus
> 1) are costly and 2) are not supposed to be independent of each other.
>
> Thus most of them should be grouped in the same test method IMO, with
> nice comments separating them. Maybe we don't need to have a single
> test method but they should be grouped according to what they are doing.
My bad, all the tests were grouped in Evelina's version, I've re-grouped them.
Thanks,
--
Jean-Vincent Drean
Some quick comments below.
First let me say: Very cool tests! This is really cool and needed and
it's good to see we're improving our tests. Well done Evelina/JV.
On Apr 18, 2008, at 4:14 PM, jvdrean (SVN) wrote:
> Author: jvdrean
> Date: 2008-04-18 16:14:39 +0200 (Fri, 18 Apr 2008)
> New Revision: 9235
>
> Added:
> xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-
> tests/src/test/it/com/xpn/xwiki/it/selenium/AllDocsTest.java
> xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/
> Tableresults
> xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/
> Tableview
> Modified:
> xwiki-platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources.properties
> xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/
> usersandgroups.css
> xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/
> usersandgroups.css
> xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-
> tests/src/test/it/com/xpn/xwiki/it/selenium/AllTests.java
> xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/Main/
> AllDocs
> Log:
> XE-221 : Change the table that displays all the documents
> (Main.AllDocs) to use ajax for more rapid loading
> XE-224 : Write selenium test to verify the behaviour of the AllDocs
> ajax table
>
> Applied patch from Evelina with few modifications.
>
> Modified: xwiki-platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources.properties
I think we should also provides the French translation by default
since lots of us are French and can translate it easily...
Also it might be good to follow the naming conventions started by
Sergiu.
[snip]
> Modified: xwiki-platform/skins/trunk/albatross/src/main/resources/
> albatross/usersandgroups.css
> ===================================================================
> --- xwiki-platform/skins/trunk/albatross/src/main/resources/
> albatross/usersandgroups.css 2008-04-18 10:34:43 UTC (rev 9234)
> +++ xwiki-platform/skins/trunk/albatross/src/main/resources/
> albatross/usersandgroups.css 2008-04-18 14:14:39 UTC (rev 9235)
> @@ -1,7 +1,6 @@
> /* USERS SCROLLING SYSTEM */
> -
> div.scrollbar {
> - overflow: auto;
> + overflow: auto !important;
Is that going to change the rights and users tables?
[snip]
> -#userstable, #groupstable, #usersandgroupstable {
> +#userstable, #groupstable, #usersandgroupstable, #alldocstable {
I think we should rename the file usersandgroups.css since it's no
longer about users and groups! :)
(same for Toucan)
[snip]
> Added: xwiki-products/xwiki-enterprise/trunk/distribution-test/
> selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/AllDocsTest.java
[snip]
> + public void setUp() throws Exception
> + {
> + super.setUp();
> + loginAsAdmin();
> + open(getUrl("Main", "AllDocs"));
> + }
> +
> + /**
> + * Validate presence of "Actions" column in table view for
> administrator. Validate absence of
> + * "Actions" column for users without administration rights.
> + */
> + public void testTableViewActionsPresence()
> + {
> + assertElementPresent("//td[text()='Actions']");
> +
> + // Verify that the user is logged in and log out
> + if (isAuthenticated()) {
> + logout();
Why is that needed since the setup always does a loginAsAdmin? I think
this can be changed to:
logout();
> + }
> + assertElementNotPresent("//td[text()='Actions']");
> + }
> +
> + /**
> + * Validate input suggest for Page field.
> + */
> + public void testTableViewSuggestForPage()
> + {
> + getSelenium().typeKeys("page", "Treeview");
> + // The table is updated via Ajax, we give it the time to
> make this call
> + getSelenium().setSpeed("1000");
> + assertElementPresent("//td[@class='pagename']/
> a[text()='Treeview']");
> + getSelenium().setSpeed("0");
Is the setSpeed() required? We don't do any action after it's set so
is it used for anything? Shouldn't it be before the typeKeys?
Also if it's required I think we should introduce a method in our DSL
for this that does setspeed, type keys and reset speed.
[snip]
There are way too many test methods. These are NOT unit tests and thus
1) are costly and 2) are not supposed to be independent of each other.
Thus most of them should be grouped in the same test method IMO, with
nice comments separating them. Maybe we don't need to have a single
test method but they should be grouped according to what they are doing.
[snip]
Thanks
-Vincent
Hello devs,
Now that we entered the release candidate phase for XWiki Workspaces 1.0,
I would like to create a branch for it. Along with delivering a stable 1.0
version, we do also need to start working on the 1.1 version.
I will send an email in the coming days with roadmap and planning for XWS 1.1
For now, here is my +1 to create the branch xwiki-workspaces-1.0.
Regards,
Jerome.
Hi again,
We are trying to figure out how to validate the form field values in XWiki.
For example, if we have a form like this:
<html>
<form name="feedback" action="" method="post" onSubmit="return checkform()">
<input type="text" name="name">
<input type="text" name="email" value="xyz">
<textarea name="feed"></textarea>
<input type="submit" value="Submit" />
</form>
how do we check that none of the fields are left blank, valid characters
etc...
1) Can we use Javascript? If yes, is there a special macro to embed
javascript in xwiki editor?
2)I guess this question goes back to the $msg construct. Is there a msg that
I can display if any fields have wrong values?
Also, when I tried:
<html>
<form name="feedback" action="" method="post" onSubmit="return checkform()">
<input type="text" name="name">
<input type="text" name="email" value="xyz">
<textarea name="feed"></textarea>
<input type="submit" value="Submit" />
# set($name = $request.getParameter("name"))
# set($email= $request.getParameter("email"))
# set($feed= $request.getParameter("feed"))
</form>
The name is $name
the velocity statements just printed as is on the page..the # being
interpreted as 1, 2, 3.
Why did this happen?
Thanks
Hello folks,
finally I found some time to deploy a demo environment and write some
explanations about my work...
go on http://myxwikidemo.dyndns.org:8080/xwiki and click on "improve class
properties management" to access the text presentation and the demo guide...
Sorry for the long text but it also helped me structure my thinking...
it demonstrates how I implemented class versioning in order to better manage
class properties deletion and consequences on existing objects.
This is a private server so it might be slower sometimes ;)
It's a draft based on the trunk so you might discover bugs I don't even know
about.
This is a proof of concept so be indulgent and follow the demo guide to see
it work with your own eyes :)
If you are interested in this idea, tell me...
I'm naturally opened to discussion because I may think in the wrong way or
you may have other ideas...
Anyway, I had fun digging in XWiki code ;)
Don't hesitate to tell me if you discover big problems!
Have fun
regards
Pascal
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
On Wed, Apr 9, 2008 at 7:49 PM, Fabio Mancinelli
<fabio.mancinelli(a)xwiki.com> wrote:
> Dear all,
>
> I've sent a patch on the Jira for a first version of the new XMLRPC
> layer.
> (http://jira.xwiki.org/jira/browse/XWIKI-1560)
>
> Let me know if there are issues.
Hi XWikiers, Fabio,
I'm still working on your patch [1] in which you've written a
replacement of the swizzle library we're currently using. This
replacement is needed and has already been voted [2].
Even if the xwiki core will use it, this library is neither a part of
it nor a new product so what do you think about creating a new
top-level module : xwiki-commons.
- xwiki-commons
-- xwiki-commons/xmlrpc/
?
[1] : http://dev.xwiki.org/xwiki/bin/view/Community/Contributing#HCreatingandsubm…
for the next time :)
[2] : http://xwiki.markmail.org/message/yx5q63i6h5jkoqo6?q=date:200804+list:org%2…
Thanks,
--
Jean-Vincent Drean