Re: [xwiki-users] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread Sergiu Dumitriu

On 02/07/2012 12:44 AM, mohit gupta wrote:

As i said in my original post i do not want to set it in session. Reason
being is, i am opening two diffeernt wiki popup from parent window in amy
application. So if i set any thing in session in one pop up window its also
visible in another popup window which i dont want.

Here is the starting of problem

i set different request paramter for two wiki pop ups. when i click these
two different links for two different pop ups,  i  see these parameters
specific to each popup  and i set them as attributes in request. but on
further activity on these pop ups i do not get these parameters which i
desperately need(probably xwiki code is using sendredirect though not sure).
i can not set them in session because if i set them they are visible to
both pop ups as session is same and i do not have identifier where i can
identify which session attribute is for which request as class
  MyAuthServiceImpl  is same. So i have to set them in  request specific to
pop ups.


You're confusing the term "request" with something else. A request is 
just ONE request, an HTTP GET requested by the client and answered by 
the server. "Further activity" means other requests.


Still, there might be something useful for you, thanks to the 
awesomeness of XWiki:


maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/XWikiContext.html#setLinksQueryString(java.lang.String)

You'd use it like this:

xwikiContext.setLinksQueryString("customerType=permanent");

This isn't an add* method, so you have to set all the parameters that 
you need in one call, like:

xwikiContext.setLinksQueryString("customerType=permanent&customerName=ACME&otherParam=some%20value");

Don't forget to URL-encode the values you put in the URL.

What this does is that all future calls to the various getURL methods, 
like XWikiDocument.getURL or XWiki.getURL will automatically append this 
string to the query string of the returned URL. If you didn't hard-code 
any URLs in the interface, then they should keep transmitting these 
parameters for every subsequent request.


This should be called very early in the request processing lifecycle, 
since it only affects the getURL calls that come after it, and it won't 
modify the URLs already generated.



i am not getting how to get rid of this issue.
On Tue, Feb 7, 2012 at 3:15 AM, Sergiu Dumitriu  wrote:


On 02/06/2012 11:28 AM, mohit gupta wrote:


i am using xwiki as wiki website for my banking application. i provided a
link AppHelp on my application web page. I click this link and it takes me
to xwiki
application hosted on another tomcat instance.So i get in to
MyAuthServiceImpl as  i have  given the value of
xwiki.authentication.**authclass=com.xpn.xwiki.user.**
impl.xwiki.MyAuthServiceImpl
in xwiki.cfg. Inside this class i set
xwikiContext.getRequest().**getHttpServletRequest().**
setAttrrbute("customerType","**permanent")
and see my wiki welcome page. But now if i do any activity like click on
link anywhere on wiki wapplication,i dont get the value of
xwikiContext.getRequest().**getHttpServletRequest().**
getAttrrbute("customerType").
I am sure there must be some way i can configure it from admin user
credentials probably in velocity macros and send it as part of request
every time.

I need it as part of request only not in session.



You're setting the attribute on the request context, which is only valid
for the current *request*, not for an entire session. You should use
something like:

xwikiContext.getRequest().**getSession().setAttribute(**name, value)



--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread mohit gupta
As i said in my original post i do not want to set it in session. Reason
being is, i am opening two diffeernt wiki popup from parent window in amy
application. So if i set any thing in session in one pop up window its also
visible in another popup window which i dont want.

Here is the starting of problem

i set different request paramter for two wiki pop ups. when i click these
two different links for two different pop ups,  i  see these parameters
specific to each popup  and i set them as attributes in request. but on
further activity on these pop ups i do not get these parameters which i
desperately need(probably xwiki code is using sendredirect though not sure).
i can not set them in session because if i set them they are visible to
both pop ups as session is same and i do not have identifier where i can
identify which session attribute is for which request as class
 MyAuthServiceImpl  is same. So i have to set them in  request specific to
pop ups.

i am not getting how to get rid of this issue.
On Tue, Feb 7, 2012 at 3:15 AM, Sergiu Dumitriu  wrote:

> On 02/06/2012 11:28 AM, mohit gupta wrote:
>
>> i am using xwiki as wiki website for my banking application. i provided a
>> link AppHelp on my application web page. I click this link and it takes me
>> to xwiki
>> application hosted on another tomcat instance.So i get in to
>> MyAuthServiceImpl as  i have  given the value of
>> xwiki.authentication.**authclass=com.xpn.xwiki.user.**
>> impl.xwiki.MyAuthServiceImpl
>> in xwiki.cfg. Inside this class i set
>> xwikiContext.getRequest().**getHttpServletRequest().**
>> setAttrrbute("customerType","**permanent")
>> and see my wiki welcome page. But now if i do any activity like click on
>> link anywhere on wiki wapplication,i dont get the value of
>> xwikiContext.getRequest().**getHttpServletRequest().**
>> getAttrrbute("customerType").
>> I am sure there must be some way i can configure it from admin user
>> credentials probably in velocity macros and send it as part of request
>> every time.
>>
>> I need it as part of request only not in session.
>>
>
> You're setting the attribute on the request context, which is only valid
> for the current *request*, not for an entire session. You should use
> something like:
>
> xwikiContext.getRequest().**getSession().setAttribute(**name, value)
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
> __**_
> 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] Can not filter livetable on doc.title

2012-02-06 Thread Sergiu Dumitriu

On 02/06/2012 10:59 AM, Joris Dirks wrote:

Hi,

I create livetables with doc.title as a column. By default, this
column does not show as filterable. When I force filtering by
"filterable:true", I can type in this field but nothing shows up as
result.

The property doc.name can be used and filtered as expected.

I have created an example:
http://playground.xwiki.org/xwiki/bin/view/Sandbox/Livetable

Should I report his as a bug or did I overlook something?


There are two different things that usually act as "title", doc.title 
and doc.displayTitle. The first one is an actual metadata field of the 
document, persisted to the database, while the latter is a dynamic field 
computed from different sources, including the doc.title field, headers 
in the content, the document name, and, more recently, other fields 
selected by the sheet used to display the objects in the document (a new 
feature of the new sheet mechanism). Plus, it could even be more 
dynamic, as in text generated by some Velocity code, in the most basic 
form a translation.


Livetable filters work directly on the database, meaning that they 
translate into sql conditions ("and doc.title like '%text introduced by 
the user%'"). The doc.title column is special, since it's not exactly 
the doc.title metadata, but a combination of doc.title and 
doc.displayTitle, so even though the computed display title is 
displayed, filtering and sorting works on the plain title. Given the 
very dynamic and unpredictable aspect of the display title, it's 
impossible to write a correct sql filter that would match the display 
title in all cases.


For this reason, by default the title isn't filterable, since it won't 
meet the user's expectations: it doesn't filter on the *displayed* 
title, but on the internal title. What's more, it *can't* be configured 
so that it filters on the right information all the time. For certain 
instances it would be possible to actually make the field filterable, 
but only when your documents really use the document title as the only 
source of the displayed title.


For example, if you edit some of the displayed documents in wiki or 
wysiwyg mode and enter something in the document title field (the one 
above the content), you will be able to filter it in the livetable.


I wouldn't report this as a bug, since it's a limitation that can't 
easily be fixed, but what we could do is make more use of the document 
title. So far we've been limited by the old sheet mechanism when 
developing applications, so most applications define their own object 
property for the title instead of using the document title, and even 
worse, their own property for the main content, since the document 
content had to be reserved for the sheet inclusion statement.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread Sergiu Dumitriu

On 02/06/2012 11:28 AM, mohit gupta wrote:

i am using xwiki as wiki website for my banking application. i provided a
link AppHelp on my application web page. I click this link and it takes me
to xwiki
application hosted on another tomcat instance.So i get in to
MyAuthServiceImpl as  i have  given the value of
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.MyAuthServiceImpl
in xwiki.cfg. Inside this class i set
xwikiContext.getRequest().getHttpServletRequest().setAttrrbute("customerType","permanent")
and see my wiki welcome page. But now if i do any activity like click on
link anywhere on wiki wapplication,i dont get the value of
xwikiContext.getRequest().getHttpServletRequest().getAttrrbute("customerType").
I am sure there must be some way i can configure it from admin user
credentials probably in velocity macros and send it as part of request
every time.

I need it as part of request only not in session.


You're setting the attribute on the request context, which is only valid 
for the current *request*, not for an entire session. You should use 
something like:


xwikiContext.getRequest().getSession().setAttribute(name, value)

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can not filter livetable on doc.title

2012-02-06 Thread Eugen Colesnicov
I think only doc.name is filtrable ...

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Can-not-filter-livetable-on-doc-title-tp7258953p7259316.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


Re: [xwiki-users] Linking

2012-02-06 Thread goldring, richard
Thankyou Marius - I'll have a look at this when I find some free time - I'm
a little snowed under at work at the moment!

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Marius Dumitru Florea
Sent: 06 February 2012 17:08
To: XWiki Users
Subject: Re: [xwiki-users] Linking

On Fri, Feb 3, 2012 at 4:36 PM, Hamster  wrote:
> +1

I've created
https://github.com/xwiki/xwiki-platform/tree/feature-alfresco-link
. Checkout
https://github.com/xwiki/xwiki-platform/blob/feature-alfresco-link/xwiki-pla
tform-core/xwiki-platform-wysiwyg/README.txt
and the
https://github.com/xwiki/xwiki-platform/blob/feature-alfresco-link/xwiki-pla
tform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-server/src/main/jav
a/org/xwiki/wysiwyg/server/internal/plugin/alfresco/XWikiAlfrescoService.jav
a
as an example implementation of the service that is used to browse the tree
structure (e.g. file system).

You could start by cloning xwiki-platform GitHub repo, checkout the
feature-alfresco-link branch, change XWikiAlfrescoService to return
information about the network file system, build the WYSIWYG editor modules
and update the WYSIWYG editor of your XE instance.

Updating the WYSIWYG editor usually means:
* overwrite the server and shared jar in WEB-INF/lib
* delete resources/js/xwiki/wysiwyg/xwe folder and copy the same folder from
the wysiwyg war

>
> I think this should be part of the "Link" WYSIWYG editor!
>
> I don't have the knowledge to modify the source-code, but I do the 
> advantage to modify the source-code (or implement a copy). We have 
> developed several ClickOnce Applications for internal company use, 
> which accept URL-parameters. I would love to extend the "Link" menu, 
> so people can choose "Link to ClickOnceApp", supply the 
> URL-parameter(s) and XWiki will generate the correct link!
>
> Is there a step-by-step tutorial on how to modify the 
> WYSIWYG-editor??? (I know, whishful thinking!)

Unfortunately no.

Hope this helps,
Marius

>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Linking-tp7247202p7250922.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
___
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] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread Paul Libbrecht
This is all in the session.

paul


Le 6 févr. 2012 à 17:55, mohit gupta a écrit :

> Hi paul,
> 
> i even don't see the username(with which i logged in) value
> somewhere inside the XWikiContext on further clicks on web pages after
> login. I inspected almost all the variables inside the  but did not find
> anywhere
> 
> On Mon, Feb 6, 2012 at 10:16 PM, Paul Libbrecht  wrote:
> 
>> Mohit,
>> 
>> there's no way, I think, to insert a parameter at each request.
>> Without putting in each link of course.
>> Or without using a servlet filter.
>> 
>> paul
>> 
>> 
>> Le 6 févr. 2012 à 17:28, mohit gupta a écrit :
>> 
>>> i am using xwiki as wiki website for my banking application. i provided a
>>> link AppHelp on my application web page. I click this link and it takes
>> me
>>> to xwiki
>>> application hosted on another tomcat instance.So i get in to
>>> MyAuthServiceImpl as  i have  given the value of
>>> 
>> xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.MyAuthServiceImpl
>>> in xwiki.cfg. Inside this class i set
>>> 
>> xwikiContext.getRequest().getHttpServletRequest().setAttrrbute("customerType","permanent")
>>> and see my wiki welcome page. But now if i do any activity like click on
>>> link anywhere on wiki wapplication,i dont get the value of
>>> 
>> xwikiContext.getRequest().getHttpServletRequest().getAttrrbute("customerType").
>>> I am sure there must be some way i can configure it from admin user
>>> credentials probably in velocity macros and send it as part of request
>>> every time.
>>> 
>>> I need it as part of request only not in session.
>>> ___
>>> 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
>> 
> ___
> 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] Linking

2012-02-06 Thread Marius Dumitru Florea
On Fri, Feb 3, 2012 at 4:36 PM, Hamster  wrote:
> +1

I've created https://github.com/xwiki/xwiki-platform/tree/feature-alfresco-link
. Checkout 
https://github.com/xwiki/xwiki-platform/blob/feature-alfresco-link/xwiki-platform-core/xwiki-platform-wysiwyg/README.txt
and the 
https://github.com/xwiki/xwiki-platform/blob/feature-alfresco-link/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-server/src/main/java/org/xwiki/wysiwyg/server/internal/plugin/alfresco/XWikiAlfrescoService.java
as an example implementation of the service that is used to browse the
tree structure (e.g. file system).

You could start by cloning xwiki-platform GitHub repo, checkout the
feature-alfresco-link branch, change XWikiAlfrescoService to return
information about the network file system, build the WYSIWYG editor
modules and update the WYSIWYG editor of your XE instance.

Updating the WYSIWYG editor usually means:
* overwrite the server and shared jar in WEB-INF/lib
* delete resources/js/xwiki/wysiwyg/xwe folder and copy the same
folder from the wysiwyg war

>
> I think this should be part of the "Link" WYSIWYG editor!
>
> I don't have the knowledge to modify the source-code, but I do the advantage
> to modify the source-code (or implement a copy). We have developed several
> ClickOnce Applications for internal company use, which accept
> URL-parameters. I would love to extend the "Link" menu, so people can choose
> "Link to ClickOnceApp", supply the URL-parameter(s) and XWiki will generate
> the correct link!
>
> Is there a step-by-step tutorial on how to modify the WYSIWYG-editor??? (I
> know, whishful thinking!)

Unfortunately no.

Hope this helps,
Marius

>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Linking-tp7247202p7250922.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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread mohit gupta
Hi paul,

i even don't see the username(with which i logged in) value
somewhere inside the XWikiContext on further clicks on web pages after
login. I inspected almost all the variables inside the  but did not find
anywhere

On Mon, Feb 6, 2012 at 10:16 PM, Paul Libbrecht  wrote:

> Mohit,
>
> there's no way, I think, to insert a parameter at each request.
> Without putting in each link of course.
> Or without using a servlet filter.
>
> paul
>
>
> Le 6 févr. 2012 à 17:28, mohit gupta a écrit :
>
> > i am using xwiki as wiki website for my banking application. i provided a
> > link AppHelp on my application web page. I click this link and it takes
> me
> > to xwiki
> > application hosted on another tomcat instance.So i get in to
> > MyAuthServiceImpl as  i have  given the value of
> >
> xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.MyAuthServiceImpl
> > in xwiki.cfg. Inside this class i set
> >
> xwikiContext.getRequest().getHttpServletRequest().setAttrrbute("customerType","permanent")
> > and see my wiki welcome page. But now if i do any activity like click on
> > link anywhere on wiki wapplication,i dont get the value of
> >
> xwikiContext.getRequest().getHttpServletRequest().getAttrrbute("customerType").
> > I am sure there must be some way i can configure it from admin user
> > credentials probably in velocity macros and send it as part of request
> > every time.
> >
> > I need it as part of request only not in session.
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatic Email Notification

2012-02-06 Thread Edo Beutler
Hi Alex

I don't know where you think it would be confusing. I think it should
be pretty clear and "straight forward".
The solution I thought of is just one script that does the following
(in pseudocode):

foreach document where doc.status == 'in progress' {
  send mail;
}

Than register a job that executes this script once a day (or how often
you need) and you should be fine.

Regards,
Edo

On Mon, Feb 6, 2012 at 3:46 PM, Alexander Adema  wrote:
> Hi Edo,
>
> thats would be a solution.
> I havent seen this plugin before.
> But i'm trying to put an automatic email notification in a class within the 
> class sheet with a query that controls the status of an property.
> I think it would be better that this should be in the class on itself.
> The scheduler has a list with all jobs that has to be done.
> Maybe that would be a bit confusingly.
>
> But thanks really for your help. If there is no other way to put the 
> notification in the class, i will take the scheduler for the email 
> notification. :-)
>
> Greats
>
> Alex
>
>
>
>
>  Original-Nachricht 
>> Datum: Mon, 6 Feb 2012 14:02:59 +0100
>> Von: Edo Beutler 
>> An: XWiki Users 
>> Betreff: Re: [xwiki-users] Automatic Email Notification
>
>> Hi Alex
>>
>> I think you are looking for the Scheduler application
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application
>> or plugin
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Plugin
>> The Scheduler allows you to automatically run a certain script.
>> Combining this with the Send Page by Email you found should work as
>> intended ... or you could write your own script to send an email of
>> course.
>>
>> Hope this helps,
>> Edo
>>
>>
>>
>> On Mon, Feb 6, 2012 at 11:19 AM, Alexander Adema  wrote:
>> > Hey,
>> >
>> > i'm trying to create an automatic email notification, but the e-mail
>> sending by using html is not realy helpful.
>> > There is a html fragment for email sending, but you have to push the
>> "send" button in order to send the mail.
>> >
>> > Is it possible to create a class with a field 'status' that has
>> something like 'in progress' and as long as this status is set, there is a 
>> daily,
>> weekly email send to a list of users (list of groups in xwiki/property
>> static list of users)???
>> >
>> > There is a "Send Page by email App" but its also not automatic.
>> > I'm searching for an automatic email notification that uses the email of
>> the users xwiki account.
>> >
>> > Thanks for your help!!!
>> >
>> > Greats
>> >
>> > Alex
>> > --
>> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
>> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>> > ___
>> > 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
>
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> ___
> 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] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread Paul Libbrecht
Mohit,

there's no way, I think, to insert a parameter at each request.
Without putting in each link of course.
Or without using a servlet filter.

paul


Le 6 févr. 2012 à 17:28, mohit gupta a écrit :

> i am using xwiki as wiki website for my banking application. i provided a
> link AppHelp on my application web page. I click this link and it takes me
> to xwiki
> application hosted on another tomcat instance.So i get in to
> MyAuthServiceImpl as  i have  given the value of
> xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.MyAuthServiceImpl
> in xwiki.cfg. Inside this class i set
> xwikiContext.getRequest().getHttpServletRequest().setAttrrbute("customerType","permanent")
> and see my wiki welcome page. But now if i do any activity like click on
> link anywhere on wiki wapplication,i dont get the value of
> xwikiContext.getRequest().getHttpServletRequest().getAttrrbute("customerType").
> I am sure there must be some way i can configure it from admin user
> credentials probably in velocity macros and send it as part of request
> every time.
> 
> I need it as part of request only not in session.
> ___
> 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


[xwiki-users] Modify velocity macro to send the name value paair as part of wiki URL?

2012-02-06 Thread mohit gupta
i am using xwiki as wiki website for my banking application. i provided a
link AppHelp on my application web page. I click this link and it takes me
to xwiki
application hosted on another tomcat instance.So i get in to
MyAuthServiceImpl as  i have  given the value of
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.MyAuthServiceImpl
in xwiki.cfg. Inside this class i set
xwikiContext.getRequest().getHttpServletRequest().setAttrrbute("customerType","permanent")
and see my wiki welcome page. But now if i do any activity like click on
link anywhere on wiki wapplication,i dont get the value of
xwikiContext.getRequest().getHttpServletRequest().getAttrrbute("customerType").
I am sure there must be some way i can configure it from admin user
credentials probably in velocity macros and send it as part of request
every time.

I need it as part of request only not in session.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Can not filter livetable on doc.title

2012-02-06 Thread Joris Dirks
Hi,

I create livetables with doc.title as a column. By default, this
column does not show as filterable. When I force filtering by
"filterable:true", I can type in this field but nothing shows up as
result.

The property doc.name can be used and filtered as expected.

I have created an example:
http://playground.xwiki.org/xwiki/bin/view/Sandbox/Livetable

Should I report his as a bug or did I overlook something?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] programming rights in class sheet

2012-02-06 Thread Marius Dumitru Florea
On Sat, Feb 4, 2012 at 1:22 PM, O Voss  wrote:
> Hi,
>
> In documents based on a certain class I need to list the attachments of the 
> document. I used the 'List attachments of a page'-snippet from 
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples in the 
> class sheet. This works perfectly fine as long as the document is saved by a 
> user with programming rights. When saved by a normal user it doesn't work, as 
> the priviledged API is used. Is there some workaround or solution for this?

Are you using the new sheet system? See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module#HSheetsandprogrammingrights
.

Hope this helps,
Marius

>
> Thanks
>
> Olaf
>
> ___
> 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] WYSIWYG on demand

2012-02-06 Thread Marius Dumitru Florea
On Fri, Feb 3, 2012 at 9:44 PM, Ashtar Communications
 wrote:
> Marius,
>
> Thank you for the reply.
>
> The "using velocity macros" example doesn't work for me at all:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandusingvelocitymacros
>
> I get an error on the line:
> #wysiwyg_inputProperty($editedDocument $editedProperty $parameters)

I've fixed the example. Should work now.

>
> The "show source text" example also doesn't work for me:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandandshowsourcetext
>
> when I click the "Load Editor" button it just gets stuck displaying
> the loading animation, but the editor never finishes loading.

I've fixed this example too.

>
> The "edit in place" example works for me for a single object:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HEditin-placeanobjectproperty
>
> Unfortunately, I can't seem to figure out how to adapt this code for
> multiple objects/editors on a single page. I have pages with a large
> number of objects, and I need to be able to edit any of them
> on-demand. I'm pretty sure that I need to modify the function below to
> loop through all objects on the page to add an "edit" button linked to
> the appropriate  ID.
>
> // Insert the edit icons and set the action for the cancel buttons.
> document.observe('xwiki:dom:loaded', function() {
>  showEditIcon('$editedPropertyId');
>
>  $$('.cancel').each(function(item) {
>    var fieldId = item.up('form').down('textarea').id;
>    item.observe('click', function(event) {
>      Event.stop(event);
>      onClose(fieldId);
>    }.bindAsEventListener(window));
>  });
> });

You can take the code from the example and write a JavaScript function
that loads the editor for a given property ID. Then you should put the
IDs of the edited properties in a JavaScript array, iterate it and
call the JavaScript function you have just written for each property
ID.

Note that the example code mixes both JavaScript code and Velocity
code. For instance, $editedPropertyId is a Velocity variable, that is
evaluated on the server, before the JavaScript is send to the client.
In other words, the actual JavaScript code executed by the browser is
something like:

showEditIcon('Blog.BlogPostClass_0_content');

Hope this helps,
Marius

>
> I've tried adding a class to each div, and wrapping the showEditIcon
> call in various loops through that class (using $$ or for/in), but I
> can't get it to work. I probably just don't know enough javascript to
> get the syntax correct...
>
> Any help would be appreciated,
>
> aaron
>
>
>
> On Fri, Feb 3, 2012 at 1:54 AM, Marius Dumitru Florea
>  wrote:
>> Hi Aaron,
>>
>> On Wed, Feb 1, 2012 at 10:26 PM, Ashtar Communications
>>  wrote:
>>> Does anyone have a working example of loading the WYSIWYG editor
>>> on-demand with velocity? Would love to see how you implemented
>>> it...I'm having some trouble with porting the code on the xwiki site.
>>
>> You mean 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandandshowsourcetext
>> doesn't work? Maybe I can help.
>>
>> Marius
>>
>>>
>>> Thanks,
>>>
>>> aaron
>>> ___
>>> 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
> ___
> 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] Automatic Email Notification

2012-02-06 Thread Alexander Adema
Hi Edo,

thats would be a solution.
I havent seen this plugin before.
But i'm trying to put an automatic email notification in a class within the 
class sheet with a query that controls the status of an property.
I think it would be better that this should be in the class on itself.
The scheduler has a list with all jobs that has to be done.
Maybe that would be a bit confusingly.

But thanks really for your help. If there is no other way to put the 
notification in the class, i will take the scheduler for the email 
notification. :-)

Greats

Alex




 Original-Nachricht 
> Datum: Mon, 6 Feb 2012 14:02:59 +0100
> Von: Edo Beutler 
> An: XWiki Users 
> Betreff: Re: [xwiki-users] Automatic Email Notification

> Hi Alex
> 
> I think you are looking for the Scheduler application
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application
> or plugin
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Plugin
> The Scheduler allows you to automatically run a certain script.
> Combining this with the Send Page by Email you found should work as
> intended ... or you could write your own script to send an email of
> course.
> 
> Hope this helps,
> Edo
> 
> 
> 
> On Mon, Feb 6, 2012 at 11:19 AM, Alexander Adema  wrote:
> > Hey,
> >
> > i'm trying to create an automatic email notification, but the e-mail
> sending by using html is not realy helpful.
> > There is a html fragment for email sending, but you have to push the
> "send" button in order to send the mail.
> >
> > Is it possible to create a class with a field 'status' that has
> something like 'in progress' and as long as this status is set, there is a 
> daily,
> weekly email send to a list of users (list of groups in xwiki/property
> static list of users)???
> >
> > There is a "Send Page by email App" but its also not automatic.
> > I'm searching for an automatic email notification that uses the email of
> the users xwiki account.
> >
> > Thanks for your help!!!
> >
> > Greats
> >
> > Alex
> > --
> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> > ___
> > 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

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] New Xwiki howto guides - documentation project

2012-02-06 Thread Kaya Saman

Hello,

I've created some howto's over time with the latest last night.


Here are the URLs:


http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration

http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Install

http://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solaris



Could I get some feedback of peoples opinions on these and **if** 
they're ready/good-enough to be put onto the main Xwiki site.

--if so then where they should go!


Many thanks :-)


Regards,


Kaya
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatic Email Notification

2012-02-06 Thread Edo Beutler
Hi Alex

I think you are looking for the Scheduler application
http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application
or plugin http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Plugin
The Scheduler allows you to automatically run a certain script.
Combining this with the Send Page by Email you found should work as
intended ... or you could write your own script to send an email of
course.

Hope this helps,
Edo



On Mon, Feb 6, 2012 at 11:19 AM, Alexander Adema  wrote:
> Hey,
>
> i'm trying to create an automatic email notification, but the e-mail sending 
> by using html is not realy helpful.
> There is a html fragment for email sending, but you have to push the "send" 
> button in order to send the mail.
>
> Is it possible to create a class with a field 'status' that has something 
> like 'in progress' and as long as this status is set, there is a daily, 
> weekly email send to a list of users (list of groups in xwiki/property static 
> list of users)???
>
> There is a "Send Page by email App" but its also not automatic.
> I'm searching for an automatic email notification that uses the email of the 
> users xwiki account.
>
> Thanks for your help!!!
>
> Greats
>
> Alex
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> ___
> 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] Video inserting

2012-02-06 Thread Alexander Adema
Hey,

the help was very good. Now i can see the window of the video. 
I now only have to install the missing plugin.
I'm using Firefox 10.0

Thanks a lot for your help! 
Now i can put my videos in the pages. :-)

Greats

Alex

 Original-Nachricht 
> Datum: Mon, 6 Feb 2012 13:16:31 +0200
> Von: Marius Dumitru Florea 
> An: XWiki Users 
> Betreff: Re: [xwiki-users] Video inserting

> On Mon, Feb 6, 2012 at 9:02 AM, Alexander Adema  wrote:
> > Hey Guillaume,
> >
> > first of all, thanks for your help!
> >
> > I tried your way of inserting the video. But the wiki page doesnt shows
> a windows with the video.
> >
> > My code was relativly easy:
> >
> > {{html}}
> > 
> > {{/html}}
> 
> This kind of works for me on Firefox 10:
> 
> --8<--
> {{velocity}}
> {{html}}
> 
> {{/html}}
> {{/velocity}}
> -->8--
> 
> I haven't tested with a real movie (I haven't attached any test.avi to
> my page) but I get the black video window with the playback controls.
> 
> Hope this helps,
> Marius
> 
> >
> > Could it be possible that the format of the video is wrong?
> > I know that there are some macro like the video macro that only works
> for googlevideo or youtube.
> >
> > My video on itself is not bigger than 7MB.
> >
> > Alex
> >
> >
> >
> >  Original-Nachricht 
> >> Datum: Thu, 2 Feb 2012 16:29:09 +0100
> >> Von: Guillaume Lerouge 
> >> An: XWiki Users 
> >> Betreff: Re: [xwiki-users] Video inserting
> >
> >> Hi Alex,
> >>
> >> that depends on whether your browser has the right plugin to read the
> >> video
> >> you uploaded.
> >>
> >> You can try the following:
> >>
> >>    - Attach your file to a wiki page
> >>    - Edit the page in wiki edition mode
> >>    - Make sure your  tag is within the {{html}} macro
> >>    (doc here:
> >>    http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro )
> >>
> >> This should work if your video is not too big.
> >>
> >> Guillaume
> >>
> >> On Wed, Jan 25, 2012 at 1:23 PM, Alexander Adema 
> wrote:
> >>
> >> > Hey,
> >> >
> >> > this is my first post and i hope to nothing wrong.
> >> > I know that ther is a macro for linking up a video in xwiki-sides
> from
> >> > other sources like youtube or something else.
> >> >
> >> > But how can i put my own video (.avi, .mpeg, etc.) on a wiki side by
> >> using
> >> > the attachment selection?
> >> >
> >> > I've tried to put it with some html-code with  won't
> >> > work.
> >> >
> >> > Thanks for your help!!!
> >> >
> >> > Alex
> >> > --
> >> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> >> > belohnen Sie mit bis zu 50,- Euro!
> https://freundschaftswerbung.gmx.de
> >> > ___
> >> > 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
> >
> > --
> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> > ___
> > 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

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Video inserting

2012-02-06 Thread Marius Dumitru Florea
On Mon, Feb 6, 2012 at 9:02 AM, Alexander Adema  wrote:
> Hey Guillaume,
>
> first of all, thanks for your help!
>
> I tried your way of inserting the video. But the wiki page doesnt shows a 
> windows with the video.
>
> My code was relativly easy:
>
> {{html}}
> 
> {{/html}}

This kind of works for me on Firefox 10:

--8<--
{{velocity}}
{{html}}

{{/html}}
{{/velocity}}
-->8--

I haven't tested with a real movie (I haven't attached any test.avi to
my page) but I get the black video window with the playback controls.

Hope this helps,
Marius

>
> Could it be possible that the format of the video is wrong?
> I know that there are some macro like the video macro that only works for 
> googlevideo or youtube.
>
> My video on itself is not bigger than 7MB.
>
> Alex
>
>
>
>  Original-Nachricht 
>> Datum: Thu, 2 Feb 2012 16:29:09 +0100
>> Von: Guillaume Lerouge 
>> An: XWiki Users 
>> Betreff: Re: [xwiki-users] Video inserting
>
>> Hi Alex,
>>
>> that depends on whether your browser has the right plugin to read the
>> video
>> you uploaded.
>>
>> You can try the following:
>>
>>    - Attach your file to a wiki page
>>    - Edit the page in wiki edition mode
>>    - Make sure your  tag is within the {{html}} macro
>>    (doc here:
>>    http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro )
>>
>> This should work if your video is not too big.
>>
>> Guillaume
>>
>> On Wed, Jan 25, 2012 at 1:23 PM, Alexander Adema  wrote:
>>
>> > Hey,
>> >
>> > this is my first post and i hope to nothing wrong.
>> > I know that ther is a macro for linking up a video in xwiki-sides from
>> > other sources like youtube or something else.
>> >
>> > But how can i put my own video (.avi, .mpeg, etc.) on a wiki side by
>> using
>> > the attachment selection?
>> >
>> > I've tried to put it with some html-code with > > work.
>> >
>> > Thanks for your help!!!
>> >
>> > Alex
>> > --
>> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
>> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>> > ___
>> > 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
>
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> ___
> 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] Video inserting

2012-02-06 Thread Joris Dirks
On Mon, Feb 6, 2012 at 8:02 AM, Alexander Adema  wrote:

> I tried your way of inserting the video. But the wiki page doesnt shows a 
> windows with the video.
>
> My code was relativly easy:
>
> {{html}}
> 
> {{/html}}
>
> Could it be possible that the format of the video is wrong?
> I know that there are some macro like the video macro that only works for 
> googlevideo or youtube.

If the format of the video is wrong, you should at least get an error message.

Does the code you put in exactly "src="Video.AVI" or was that just a
simplification?
When you use src="Video.AVI" without path, it looks for Video.AVI in
/xwiki/bin/view/Example/ when your page is
/xwiki/bin/view/Example/Videotest.
If the file is an attachment for that page, I think you should link to
src="/xwiki/bin/download/Example/Video.AVI".

Hope that helps!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Automatic Email Notification

2012-02-06 Thread Alexander Adema
Hey,

i'm trying to create an automatic email notification, but the e-mail sending by 
using html is not realy helpful.
There is a html fragment for email sending, but you have to push the "send" 
button in order to send the mail.

Is it possible to create a class with a field 'status' that has something like 
'in progress' and as long as this status is set, there is a daily, weekly email 
send to a list of users (list of groups in xwiki/property static list of 
users)???

There is a "Send Page by email App" but its also not automatic.
I'm searching for an automatic email notification that uses the email of the 
users xwiki account.

Thanks for your help!!!

Greats

Alex
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Enterprise and XWiki Enterprise Manager 3.4 / Restfull upload attachements

2012-02-06 Thread Legeinfo
RESTful attachments upload is not working any more in 3.4.
Is this a bug or a changing of service?

Volker

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWiki-Enterprise-and-XWiki-Enterprise-Manager-3-4-Released-tp7221094p7258017.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