[xwiki-users] Editing with Wysiwyg
I am having major difficulties with the Wysiwyg editor in both 1.3.2 and 1.4. If I use Wysiwyg, the text font displayed while in the editor is not the same as the final wiki page. Often I have several lines that are in a different font, even though they looked the same while using Wysiwyg. I am also finding random issues. For example, today I changed the font colour of an index page and lost all of the links. I am using a standard Toucan skin. Is it common to have problems with the Wysiwg editor, or is there a fix I haven't found? I am finding I am spending as much time fixing the appearance of pages as writing them. Alternatively, is there another wiki with better editing. Thanks -- View this message in context: http://www.nabble.com/Editing-with-Wysiwyg-tp17244408p17244408.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] shorter URL instruction incorrect
Hi guys, I am trying to configure xwiki's URL to make it shorter by following instructions in http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs in 1.4-RC1 under tomcat Everything is working fine except for configuring correctly static resources (the 'hardest' part) to be served correctly by jetty which is difficult to configure under tomcat. My question is to know if it is easy to relocate 'static content' under '/resources' directory for instance. Then it will be much more configurable. instead of making N-servlet mappings for the following: *.js /yui/* /wiki_editor/* /tiny_mce/* /skins/* /s5/* There won't have any mapping to do if files are relocated in a central directory. - My question is to know if it is easily to rewrite static content URL to add '/resources' at the beginning. Can someone tell me how ? - My second question is to know if you think that it is a good idea to relocate all static resources under /resources for instance. Many thanks ! Thomas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Exception on rollback history
On Wed, May 14, 2008 at 10:49 AM, Diego Ruotolo <[EMAIL PROTECTED]> wrote: >> If you'll have the same errors, fill jira issue and attach xar to it. >> jira.xwiki.org >> > Do I need an account? Yes but anyone can register (same on xwiki.org) -- Jean-Vincent Drean ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] create new xwiki page in code
Does this script produce an error ? Do you see a new page with a wrong name in the what's new ? Btw at first sight I'd try to protect velocity variables : #set($space = $!request.space) #set($text = $!request.text ) afisare textfield: $text #set ($mydoc = $xwiki.getDocument("${space}.${text}")) $mydoc.setContent("test") $mydoc.save() Some tests to avoid empty strings would be good to have too. On Wed, May 14, 2008 at 4:11 PM, Gabriela Radu <[EMAIL PROTECTED]> wrote: > hello Vincent, > i found your link most usefull , but it's made static. when i tried to give > the parameters dinamically(the name of the space, and the text from a > textfield) like this...it does not let me : > > #set($space = $request.space) > #set($text = $!request.text ) > afisare textfield: $text > #set ($mydoc = $xwiki.getDocument("$space.$text")) >$mydoc.setContent("test") >$mydoc.save() > > i know this question is kind of a long shoot to ask..but i have no ideea why > can't it work. > > Vincent Massol <[EMAIL PROTECTED]> wrote: > On May 14, 2008, at 1:49 PM, Vincent Massol wrote: > >> Hi, >> >> On May 14, 2008, at 1:41 PM, Gabriela Radu wrote: >> >>> hello! >>> >>> where can i find the code that creates a new xwiki page? i know i >>> can create new pages from xeclipse. but i wanna be able to create >>> the pages from an interface. for instance to have a text field and a >>> button, and when the button is pressed a new page will be created >>> with the name given in the text field. >>> >>> thank you for your time >> >> See http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet >> >> For HTML forms, see the FAQ or TODO tutorial for example. > > Would be good if you update the > http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet > page when you find out how to use a form to create a new page for ex. > > Another hint: check the Create Panel which does exactly this. > > Thanks > -Vincent > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Jean-Vincent Drean ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] create new xwiki page in code
hello Vincent, i found your link most usefull , but it's made static. when i tried to give the parameters dinamically(the name of the space, and the text from a textfield) like this...it does not let me : #set($space = $request.space) #set($text = $!request.text ) afisare textfield: $text #set ($mydoc = $xwiki.getDocument("$space.$text")) $mydoc.setContent("test") $mydoc.save() i know this question is kind of a long shoot to ask..but i have no ideea why can't it work. Vincent Massol <[EMAIL PROTECTED]> wrote: On May 14, 2008, at 1:49 PM, Vincent Massol wrote: > Hi, > > On May 14, 2008, at 1:41 PM, Gabriela Radu wrote: > >> hello! >> >> where can i find the code that creates a new xwiki page? i know i >> can create new pages from xeclipse. but i wanna be able to create >> the pages from an interface. for instance to have a text field and a >> button, and when the button is pressed a new page will be created >> with the name given in the text field. >> >> thank you for your time > > See http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet > > For HTML forms, see the FAQ or TODO tutorial for example. Would be good if you update the http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet page when you find out how to use a form to create a new page for ex. Another hint: check the Create Panel which does exactly this. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programming Help
Hi, Surely right, but as beginners which is better for us? And I put sql plugin in WEB-INF/lib directory and wrote the following code, it neither shows any error nor changed the table. ##receive database #set ($mydb=$xwiki.sql.getDatabase("test")) #set ($myname="prinsi") #set ($myid=876) #set ($result=$mydb.executeUpdate( 'update projects set assignee=? where id=?', [$myname,$myid])) Where assignee and id are columns of table projects, I have added ua.gradsoft.xwikisql.SqlPlugin to list of active plugins in /WEB-INF/xwiki.cfg and restarted xwiki. > On May 14, 2008, at 12:41 PM, [EMAIL PROTECTED] wrote: > >> Hi, >> >> I have to deal some external data in xwiki. Is it require to connect >> xwiki with Mysql through Hibernate.cfg or Is it possible through >> program >> using velocity or groovy? Is velocity enough for transactions? One >> another Qn. a groovy code should be called by a velocity code? > > Everything is possible... your imagination is the limit :) > > See the sql plugin for example: > http://code.xwiki.org/xwiki/bin/view/Plugins/XWikiSqlPlugin > > Thanks > -Vincent > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programming Help
On May 14, 2008, at 2:39 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote: > I've quoted your statement in our wiki! :-) > > http://environmentalchange.net nice ;) -Vincent > Vincent Massol wrote: >> Hi, >> >> On May 14, 2008, at 12:41 PM, [EMAIL PROTECTED] wrote: >> >> >>> Hi, >>> >>> I have to deal some external data in xwiki. Is it require to connect >>> xwiki with Mysql through Hibernate.cfg or Is it possible through >>> program >>> using velocity or groovy? Is velocity enough for transactions? One >>> another Qn. a groovy code should be called by a velocity code? >>> >> >> Everything is possible... your imagination is the limit :) >> >> See the sql plugin for example: >> http://code.xwiki.org/xwiki/bin/view/Plugins/XWikiSqlPlugin >> >> Thanks >> -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programming Help
I've quoted your statement in our wiki! :-) http://environmentalchange.net Cheers, Ricardo Vincent Massol wrote: > Hi, > > On May 14, 2008, at 12:41 PM, [EMAIL PROTECTED] wrote: > > >> Hi, >> >> I have to deal some external data in xwiki. Is it require to connect >> xwiki with Mysql through Hibernate.cfg or Is it possible through >> program >> using velocity or groovy? Is velocity enough for transactions? One >> another Qn. a groovy code should be called by a velocity code? >> > > Everything is possible... your imagination is the limit :) > > See the sql plugin for example: > http://code.xwiki.org/xwiki/bin/view/Plugins/XWikiSqlPlugin > > Thanks > -Vincent > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > > -- Ricardo RodrÃguez Your EPEC Network ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem occured while trying to service a request
On May 14, 2008, at 2:15 PM, Sergiu Dumitriu wrote: > [EMAIL PROTECTED] wrote: >>> Vincent Massol wrote: Hi, This is a known issue, see http://jira.xwiki.org/jira/browse/ XWIKI-2339 for a solution to the problem. Thanks -Vincent On May 13, 2008, at 10:09 AM, [EMAIL PROTECTED] wrote: > java.sql.BatchUpdateException: Packet for query is too large > (1458818 > > 1048576). You can change this value on the server by setting the > max_allowed_packet' variable. > at > com > .mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java: > 1404) >>> No, it's not that one, it is a mysql setting. See >>> http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html >>> -- >>> Sergiu Dumitriu >>> http://purl.org/net/sergiu/ >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >> >> Hi, >> I started Mysql with >>> mysql -u root -p --max_allowed_packet=32M >> and again tried to import but it shows the same error. > > That starts a mysql client, not the server. The best would be to > change > the my.cnf configuration file with: > > [mysqld] > max_allowed_packet=32M that's the best indeed. if you really want the command line, I use something like: sudo /usr/local/mysql/bin/mysqld_safe --user=mysql -- max_allowed_packet=32M -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem occured while trying to service a request
[EMAIL PROTECTED] wrote: >> Vincent Massol wrote: >>> Hi, >>> >>> This is a known issue, see http://jira.xwiki.org/jira/browse/ >>> XWIKI-2339 for a solution to the problem. >>> >>> Thanks >>> -Vincent >>> >>> On May 13, 2008, at 10:09 AM, [EMAIL PROTECTED] wrote: >>> java.sql.BatchUpdateException: Packet for query is too large (1458818 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable. at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java: 1404) >> No, it's not that one, it is a mysql setting. See >> http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html >> -- >> Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users > > Hi, >I started Mysql with >> mysql -u root -p --max_allowed_packet=32M > and again tried to import but it shows the same error. That starts a mysql client, not the server. The best would be to change the my.cnf configuration file with: [mysqld] max_allowed_packet=32M -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] create new xwiki page in code
On May 14, 2008, at 1:49 PM, Vincent Massol wrote: > Hi, > > On May 14, 2008, at 1:41 PM, Gabriela Radu wrote: > >> hello! >> >> where can i find the code that creates a new xwiki page? i know i >> can create new pages from xeclipse. but i wanna be able to create >> the pages from an interface. for instance to have a text field and a >> button, and when the button is pressed a new page will be created >> with the name given in the text field. >> >> thank you for your time > > See http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet > > For HTML forms, see the FAQ or TODO tutorial for example. Would be good if you update the http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet page when you find out how to use a form to create a new page for ex. Another hint: check the Create Panel which does exactly this. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programming Help
Hi, On May 14, 2008, at 12:41 PM, [EMAIL PROTECTED] wrote: > Hi, > > I have to deal some external data in xwiki. Is it require to connect > xwiki with Mysql through Hibernate.cfg or Is it possible through > program > using velocity or groovy? Is velocity enough for transactions? One > another Qn. a groovy code should be called by a velocity code? Everything is possible... your imagination is the limit :) See the sql plugin for example: http://code.xwiki.org/xwiki/bin/view/Plugins/XWikiSqlPlugin Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] create new xwiki page in code
Hi, On May 14, 2008, at 1:41 PM, Gabriela Radu wrote: > hello! > > where can i find the code that creates a new xwiki page? i know i > can create new pages from xeclipse. but i wanna be able to create > the pages from an interface. for instance to have a text field and a > button, and when the button is pressed a new page will be created > with the name given in the text field. > > thank you for your time See http://code.xwiki.org/xwiki/bin/view/Snippets/CreatePageSnippet For HTML forms, see the FAQ or TODO tutorial for example. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Programming Help
Hi, I have to deal some external data in xwiki. Is it require to connect xwiki with Mysql through Hibernate.cfg or Is it possible through program using velocity or groovy? Is velocity enough for transactions? One another Qn. a groovy code should be called by a velocity code? Thanks, Project trainees. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] create new xwiki page in code
hello! where can i find the code that creates a new xwiki page? i know i can create new pages from xeclipse. but i wanna be able to create the pages from an interface. for instance to have a text field and a button, and when the button is pressed a new page will be created with the name given in the text field. thank you for your time ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Exception on rollback history
Artem Melentyev ha scritto: > Hi, Diego. > > 1. Make sure you turn on migrations > (xwiki.store.migration=1 in xwiki.cfg > http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13) > Yes, the parameter "xwiki.store.migration" is set to 1 > 2. Try to upgrade to XE-1.4-RC1. > I think I'll upgrade the wiki when a stable version will be released. > 3. Try to export single page as xar and import it. > This was th first method I used for migration, but it doesn't export the attachments (every attachment was an empty file), so I used the database migration > If you'll have the same errors, fill jira issue and attach xar to it. > jira.xwiki.org > Do I need an account? Thanks, Diego ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem occured while trying to service a request
> Vincent Massol wrote: >> Hi, >> >> This is a known issue, see http://jira.xwiki.org/jira/browse/ >> XWIKI-2339 for a solution to the problem. >> >> Thanks >> -Vincent >> >> On May 13, 2008, at 10:09 AM, [EMAIL PROTECTED] wrote: >> >>> java.sql.BatchUpdateException: Packet for query is too large >>> (1458818 > >>> 1048576). You can change this value on the server by setting the >>> max_allowed_packet' variable. >>> at >>> com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java: >>> 1404) > > No, it's not that one, it is a mysql setting. See > http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users Hi, I started Mysql with > mysql -u root -p --max_allowed_packet=32M and again tried to import but it shows the same error. Thanks, Project trainees. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users