Hi GSOCers,
Just a kind reminder that this is currently the bonding period (till
26th of May) and we'd like you to follow the guidelines we've set at http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/
as much as possible.
I haven't seen much activity from you on the list in general. It's
possible you're talking directly to your mentors in which case I'd
like to ask you to communicate through the mailing list instead. One
main goal of the GSOC is that you integrate an open source project's
community.
Also have you been able to pick some jira issue and work on them? If
you have any problem doing that please let us know how we can help
you. If you have already sent a patch in a jira issue and it's not
been reviewed and applied yet please let us know by answering this
email too.
Thanks again
-Vincent
Hi
We'd like to create a class with a domain property in wich we would like
to store a list of domains.
It looks like tags principle.
So we want to have a list of domains to let users choose wich domains to
attach to each instance.
But we want this list to evolve and we had like to select these domains
from another DB table.
Indeed, we have try to add a dblist property to our class.
But when we try to create a new object the select list for domains is empty.
So our request doesn't work.
Our db table domains is simple, only a field "name".
Our request is : select name from domains;
Could we please have an example of how to create a class with a dblist
property?
Thank for your time
Antoine
Hello developers,
1. Is it possible to create two separate classsheets to render the
objects of the same class? One with a 'View only' presentation and the other
with an 'Edit & View' presentation? The default classSheets have a 'view
only'. How can I invoke the 'edit' previleges and do an 'Update' to object
data in the database?
2. How do I go about calling these different classsheets from the same
template? Will I need two classtemplates?
3. Is it possible to send an Object handler, document name or object id
from one page to another? The HTML Post does'nt seem to do what I want.
Regards,
Archana Mettu.
Hello,
Is there an easy way to work on the stable 1.4 branch. I would like to
work on some improvements to the form validation system but I don't want
the hassle of the changes that will come up in 1.5 until I have a nice
patch ready. What are the 1.4 branches neede do get platform-web running
and is there a way to all get them at once.
I've seen:
- xwiki-core-1.4
- xwiki-web-1.4
- xwiki-toucan-1.2 (is that a 1.4 branch ?)
- xwiki-albatross-1.4
Are there any plugin branches ?
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
nice article: http://blog.springsource.com/main/2008/05/15/why-should-i-care-about-osgi-a…
I think we already support most points through:
* Our conventions of using the internal package for non user public
code. BTW we can (and we should) enforce this at build time and fail
the build if someone is using the internal package using the maven
enforcer plugin.
* The fact that we're using maven and components creates clean
boundaries between modules and allows different teams to focus their
work on some subpart of the system.
* Dependency mgmt: done with Maven
Nice things we don't currently have:
* "Faster testing cycles". We already have a way to do with Eclipse
but this is a part that could be improved.
* "isolate changes". This can be done with Plexus (+ classworld) later
on but we're not using this feature yet. This could also be done with
XBean I believe.
In summary I don't think we're too bad compared to the list of
advantages listed in the article. We're working on improving that but
we're already on good tracks. The single most important thing we have
to do is modularize the core into components and well-delimited build
modules.
-Vincent
Hi,
So, I tried the querystring option. Didn't quite work.
We have a form that we ask the user to fill on page 1 and this form
represents only a PART of an object that gets created for this particular
form.
So, say for eg., we have a name field in the form and this gets copied on to
the underlying obect when we click a button. Now, currently when we cllick
the button on this page, we have a script that is run and what that does is
- Creates a new object, creates a new document with the name entered by the
user in the form, adds the new object to this document and copies all form
fields to the Object properties. Finally the script redirects the user to
the newly created page which displays the object with the help of the class
sheet. (the following is the last line of the script which does the
redirect)
$response.sendRedirect($newdoc.getURL("save",
"template=${etemplate}&parent=${eparent}&title=$etitle"))
Now, our use case has changed a little bit, in the sense that, the user will
need to enter form field values (object values in xwiki) on a sequence of
pages, i.e, everything does not get added to the object the first time a
button is clilcked. In this case, to be able to copy the values from the
Page 2 to the same object as was created in Page 1, we need some way to
access the same object.
This could be done using the object name and as seen in the
response.sendRedirect line above, we pass the title (which is the name
entered by the user) to the next page (newdoc page in this case). But, when
I try to access this on that newdoc, I do not get a value I am expecting.
So, what am I doing wrong when I try this scritp on the newdoc:
#set($title = $request.getParameter("title"))
The title : $title
This returns:
The title : XWiki - $doc.web - $doc.name
#set($template = $request.getParameter("template"))
The template : $template
This returns:
The title : $template
Please point out whats wrong in this usage and if it is valid in the first
place!
Also, what alternative could we use. I mean how to access the application
context in the velocity scripts?
Thanks much for all help.
Hi devs,
Just a quick note to let you know of XBeans:
http://geronimo.apache.org/xbean/index.html
I haven't researched it but I know it plays well with Plexus.
At some point we'll probably need to decide if we want to go the OSGi
route or use Plexus + XBeans, or use the Plexus OSGi bridge, or...
Anyway our work is still to transform our monolithic code base into
components for now and that's what we should be focusing on. We can
delay the choice of the IOC tool/component manager to later for now.
Thanks
-Vincent
Hi Fabio,
I was looking at the new XMLRPC tests and I think there are some
unfinished stuff we need to clean up/align.
Right now there are 2 series of tests: ones in com.xpn package and one
in org.xwiki package:
addTestCase(suite, AnonymousAccessTest.class);
addTestCase(suite, AttachmentsTest.class);
addTestCase(suite, CommentsTest.class);
addTestCase(suite, PagesTest.class);
addTestCase(suite, SpacesTest.class);
addTestCase(suite, org.xwiki.xmlrpc.AttachmentsTest.class);
addTestCase(suite, org.xwiki.xmlrpc.AuthenticationTest.class);
addTestCase(suite, org.xwiki.xmlrpc.CommentsTest.class);
addTestCase(suite, org.xwiki.xmlrpc.PagesTest.class);
addTestCase(suite, org.xwiki.xmlrpc.SpacesTest.class);
addTestCase(suite, org.xwiki.xmlrpc.XWikiClassesTest.class);
addTestCase(suite, org.xwiki.xmlrpc.XWikiObjectsTest.class);
addTestCase(suite, org.xwiki.xmlrpc.SearchTest.class);
We need to merge them (not sure why there are 2 locations). The
correct package is probably com.xpn since the org.xwiki one is
reserved for new components.
Also I've noticed that lots of your new tests are using System.out
calls. I don't think we should do that. The tests shouldn't print
anything at all. They should do asserts wherever required but they
should not require any visual verification to verify that they have
passed or not IMO. Also this is the strategy we've followed so far.
WDYT? Do you think you could have a look at those points?
Thanks a lot
-Vincent
Hello Devs,
Is it possible to use $context.put in the following way:
$context.put("space","Main") where space is the key and Main is the value of
Space
and then retrieve it using $context.get("space") on any page in xwiki!
I tried using it but did not work and did not throw any exception either.
I am trying to simulate login based on spaces in XWiki Enterprise and this
information will be very helpful.
Also, if I wanted to change the "function" that is called when a login form
is submitted (loginsubmit action), where do I do that.
Thanks