Hi xwiki-users,
I created a page called Sandbox.TestMacro with the following content:
* {{test /}}
The page also has a WikiMacro object defined:
{{include document="Sandbox.TestService" context="current" /}}{{groovy}}
import com.test.TestService
out.println( TestService.testMe() )
{{/groovy}}
Sandbox.TestService has the following content in it:
{{include document="Sandbox.TestService2" context="current" /}}{{groovy
output="false"}}
package com.test
class TestService {
def static testMe() {
return "TEST"
}
}
{{/groovy}}
Now, when I render the TestMacro page, I get a few extra <p> inserted before
the text "TEST":
<ul><li><p></p>TEST</li></ul>
This makes the page look weird, since the bullet point text is on a new line
now.. I've also had to put the {{include}} and the {{groovy}} lines
together in the pages above; otherwise, there would just be more <p>'s
inserted.. Is there any way around this? Appreciate any tips!
I am out of the office until 06/18/2010.
Out Thursday...back Friday.
Note: This is an automated response to your message "users Digest, Vol 35,
Issue 51" sent on 6/17/10 6:00:10.
This is the only notification you will receive while this person is away.
I'm attempting to use the Java XML-RPC interface to xwiki, but I'm running
into problems. Specifically, when the xml-rpc library attempts to parse the
response of the rpc call, it's attempting to request a DTD from w3.org,
which returns a 503 status code. W3C is returning the 503 because they are
tired of poorly configured client libraries continually requesting largely
static DTD documents, as described here:
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic
Everyone's answer to this problem seems to be "use XML catalogs", but there
is no way that I've found to configure xml catalogs, especially when the
underlying xml parser is wrapped in not one, but two, layers of client
library (xwiki -> apache ws xml rpc).
Anyone run into this issue? Anyone have any possible solutions?
Thanks,
Brian
Hi Nithya, Manish
Have you checked http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HPagereso… ?
In particular :
/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}
HTTP Method: PUT
* Accepted Media types:
o application/xml (Page element)
o text/plain (Only page content)
o application/x-www-form-urlencoded (allowed field names: title, parent, content)
Is something not clear about it ? Not working ?
Thanks,
Jerome
----- Original Message -----
From: "xManish" <shresthamanish(a)gmail.com>
To: users(a)xwiki.org
Sent: Thursday, June 17, 2010 1:42:04 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: [xwiki-users] How to add a page with contents in xwiki through Rest api???
Nithya Vembu wrote:
>
> But i dont getting clear idea, how can i create a page under space with
> some contents.. and i am not getting any good samples for xwiki rest api.
>
> ...
>
> Kindly anyone give me idea how rest will get differentiate in xwiki
> manner..
>
> Can anyone give me a code snippet for this requirement so that i can
> improve my progress in my project..
>
> Any help greatly appreciated.
>
> Thanks in advance.
>
> Regards,
> Nithya.
>
Hi,
Did you happened to find the solution to your problem?
If yes, would you please share it.
Thanks,
Manish
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-add-a-page-with-contents-in-xwiki-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi,
Currently the Import menu of the WYSIWYG editor has two entries:
* 'Office Document' for importing office files
* 'Office Content (Copy / Paste)' for pasting rich text (copied usually
from office documents)
We had a few complains from uses that were pasting the rich text
directly in the edited document causing the editor to misbehave or
getting unexpected content after save. When they were told to use the
'Office Content (Copy / Paste)' entry from the Import menu they seemed
surprised
Ideally the editor should catch the paste event and clean the pasted
rich text on the fly before it is inserted in the edited document but
currently there's no clean way to do this: access to the clipboard is
restricted for security reasons and the paste event is not well
supported in all major browsers.
I recently committed a change to the WYSIWYG editor to allow putting any
of the Import menu entries on the tool bar.
(1) Should we enable the 'Office Content (Copy / Paste)' button on the
tool bar by default in the standard XE distribution?
(2) Should we remove the 'Office Content (Copy / Paste)' entry from the
Import menu?
I'm +1 for (1) and -0 for (2) because the Import menu would look awkward
with just one entry. Note that it's not unusual to have a feature both
in the menu and in the tool bar.
Thanks,
Marius
Hi All,
I am very new to XWiki and also to rest api. I have gone through the link
given by xwiki for rest api
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI.
But i dont getting clear idea, how can i create a page under space with
some contents.. and i am not getting any good samples for xwiki rest api.
Normally through httpclient we can send the url with contents like
eg :String url = "http://localhost:8080/jforum/jforum.page?"
+ "module=adminCategories" + "&action=insertSave"
+ "&category_name=" + categoryName + "&moderate=0"
+ "&groups=1" + "&groups=2" + "&groups=3" + "&groups=4";
using POST method in httpclient and the data get stored in the respective
place.
Kindly anyone give me idea how rest will get differentiate in xwiki
manner..
Can anyone give me a code snippet for this requirement so that i can
improve my progress in my project..
Any help greatly appreciated.
Thanks in advance.
Regards,
Nithya.
--
View this message in context: http://n2.nabble.com/How-to-add-a-page-with-contents-in-xwiki-through-Rest-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Sorry if this is a double post. I was informed that my last post was not
accepted since I was not subscribed to this mailing list.
Does anyone know what this message means? I recently converted from 1.4 to
2.3 of Enterprise and now when I try to create a new page, I get this
message.
____________
"The new GWT-based WYSIWYG editor doesn't support the syntax of the current
document: xwiki/2.0."
____________
I've searched xwiki documentation including FAQ but I can't find anything on
this subject.
Does this xwiki application document error messages someplace?
I'm stuck. Can someone give me some ideas on where to look for answers.
Lee
--
View this message in context: http://xwiki.475771.n2.nabble.com/The-new-GWT-based-WYSIWYG-editor-doesn-t-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
We run an xwiki for our internal development team ( version
2.2.4.28034). It's not a major concern, but the document index points to
'dead' pages. Either they don't exist anymore or they're inaccessible?
One example is "Build 6.2.35/0 - Issues Resolved".
"Build 6.2.35" is the space name, "0 - Issues Resolved" is the page
name. It always appears on the Document Index, but it doesn't seem to
exist. Using most of the page delete snippets I've seen, they use a
syntax similar to:
{{groovy}}
print " [[to delete>>"+xwiki.getURL("Space.Page", "delete")+"]]"
{{/groovy}}
Or
[delete page>$xwiki.getURL("Space.Page", "delete")]
Both of the above work (delete the page and remove from the index page)
for a 'normal' page, but not my 'dead' page.
Any help would be greatly appreciated.
Best regards,
Michael
NorthgateArinso
Thorpe Park
Thorpe Road
Peterborough
Cambs. PE3 6JY
UNITED KINGDOM
Phone: +44 (0)1733 316090
Fax: +44 (0)1733 588000
E-mail: michael.ebbage(a)northgatearinso.com
<mailto:michael.ebbage@northgatearinso.com>
URL: www.northgatearinso.com <http://www.northgatearinso.com/>
________________________________
NorthgateArinso is a trading name of NorthgateArinso UK Limited |
Peoplebuilding 2 | Maylands Avenue | Hemel Hempstead | Herts, HP2 4NW |
UNITED KINGDOM
Company registered number: 1587537 | Place of registration: England
The information contained in this email and any attached file is
confidential and may be legally privileged. It is intended solely for
the addressee. If you are not the addressee, you must not disclose,
copy, distribute or use the contents in any way that may be unlawful. If
you have received this mail in error please notify the sender and delete
it immediately. NorthgateArinso UK Limited cannot be held liable for
incomplete or corrupted transmission, delay in receipt or any errors or
omissions in the content of the email, as a result of the transmission.
No rights can be derived from this email. NorthgateArinso UK Limited has
taken reasonable precautions to ensure no viruses are present in this
email, NorthgateArinso UK Limited cannot accept responsibility for any
loss or damage arising from the use of this email or attachments.
>> Please consider the environment before printing this e-mail <<
Hi,
More than 6 months have passed since we introduced the new action menus
<http://platform.xwiki.org/xwiki/bin/view/Features/ActionBars>(in XE 2.1).
If you want to make a comparison you can look at the old menus Toucan
<http://code.xwiki.org/xwiki/bin/view/Skins/ToucanSkin>skin has.
It would be great to have some feedback on the way the new menus
improved/messed the productivity/flow.
There are lots of aspects we need to take into considerations because XWiki
is used worldwide both by developers and by less experienced users.
Suggestions on how we can still improve the menus are very welcomed.
Thanks for participating in improving the User Experience for Open-Source
projects,
Caty