Re: [xwiki-users] Welcome to the "users" mailing list

2014-07-02 Thread Jason Clemons
Hello, 

I'm new new new to xwiki, but I think it's pretty cool so far.  I've been
killing myself trying to work out where to add javascriptextension on an
"app within minute" page.  I want the javascript to create some handlers on
page load, hide some buttons, form validation etc.. for the life of me I
can't really figure out the best place to put my code.  Right now I've got
some javascript working by putting an {{html}} tag with a 

Re: [xwiki-users] [myxwiki] new wiki request

2014-07-03 Thread Jason Clemons
Sure, yeah man.. let me shoot you over my social security number too.. 

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Bogdan Doinea
Sent: Thursday, July 3, 2014 12:21 AM
To: users@xwiki.org
Subject: [xwiki-users] [myxwiki] new wiki request

Hello there,

My name is Bogdan and I want to use xwiki on your hosting for a prototyping
experiment I am doing with a development community trying to build some
smart things using Arduino and Pi boards.

Owner name: Bogdan Doinea
Wiki name: ioepl.myxwiki.org

Is it possible to set this up for me?

Thank you!
Bogdan
___
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] Welcome to the "users" mailing list

2014-07-09 Thread Jason Clemons
Can anyone tell me how to get the current page name from Velocity code?  

> On Jul 2, 2014, at 11:51 PM, "Jason Clemons"  wrote:
> 
> Hello, 
> 
> I'm new new new to xwiki, but I think it's pretty cool so far.  I've been
> killing myself trying to work out where to add javascriptextension on an
> "app within minute" page.  I want the javascript to create some handlers on
> page load, hide some buttons, form validation etc.. for the life of me I
> can't really figure out the best place to put my code.  Right now I've got
> some javascript working by putting an {{html}} tag with a 

[xwiki-users] Help with Database List

2014-07-15 Thread Jason Clemons

> Hello again all,
>  
> I’m trying not to ask every little question here, but I’m pretty well stuck.  
> I’ve created an App Within Minutes app and added a “Database List” but I’m 
> not sure how to populate the list.  I’ve read tons (mostly of which I don’t 
> understand) about HQL and LiveTable, but since I’m so new I can’t really 
> figure out how to get this going.  I’d like to have a “LiveTable” (form) 
> somewhere that my users enter and maintain data which then populates the 
> “Database List” on my app.  I’ve Googled a bunch but I can’t seem to find a 
> good example of this.  In my mind I want to do the following:
>  
> 1.Create a LiveTable somewhere
> 2.   Link the Database List to the LiveTable I created.
>  
> Any help is greatly appreciated,
>  
> Jason M Clemons
> Network Operations - Service Delivery Lead Analyst
> 602-766-1844
>  
> American Express made the following annotations 
> 
> "This message and any attachments are solely for the intended recipient and 
> may contain confidential or privileged information. If you are not the 
> intended recipient, any disclosure, copying, use, or distribution of the 
> information included in this message and any attachments is prohibited. If 
> you have received this communication in error, please notify us by reply 
> e-mail and immediately and permanently delete this message and any 
> attachments. Thank you." 
> 
> American Express a ajouté le commentaire suivant le 
> Ce courrier et toute pièce jointe qu'il contient sont réservés au seul 
> destinataire indiqué et peuvent renfermer des renseignements confidentiels et 
> privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation, 
> duplication, utilisation ou distribution du courrier ou de toute pièce jointe 
> est interdite. Si vous avez reçu cette communication par erreur, veuillez 
> nous en aviser par courrier et détruire immédiatement le courrier et les 
> pièces jointes. Merci. 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread Jason Clemons
Hello all, 

I've created an "App Within Minutes" and written some custom JavaScript to 
autofill the value of the popup dialog box (called "Entry Name") with a 
randomly generated UID..

Essentially what happens is I click the "Add New Entry" button and when the 
dialog pops up, it is autofilled with the UID from my client-side code.  

I'd like to skip the popup box entirely and just create the page directly off 
of the UID so the user is just taken to the form automatically, but the only 
thing I can think of is just hiding the dialog and pushing the button via 
JavaScript.  

Any other suggestions are certainly welcome, thx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread Jason Clemons
Thanks for the tips, I'll take a look at that tomorrow.

> On Jul 16, 2014, at 4:25 PM, "Jeremie BOUSQUET"  
> wrote:
> 
> BTW, an alternative could be to use the modal box [1], to display your form
> in a modal pop-up (with autofilled field displayed or hidden), then create
> the page with the name you want upon submit. The server-side saving could
> be done with either velocity or groovy script.
> 
> I think there is an extension doing that, but I can't find it ... If
> someone remembers :)
> 
> BR,
> Jeremie
> 
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
> 
> 
> 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
> 
>> Hello,
>> 
>> You could check the "Self renaming forms" extension [1], that would allow
>> renaming your page using the uid from the autofilled field.
>> 
>> [1]
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
>> 
>> BR,
>> Jeremie
>> 
>> 
>> 2014-07-16 23:59 GMT+02:00 Jason Clemons :
>> 
>> Hello all,
>>> 
>>> I've created an "App Within Minutes" and written some custom JavaScript
>>> to autofill the value of the popup dialog box (called "Entry Name") with a
>>> randomly generated UID..
>>> 
>>> Essentially what happens is I click the "Add New Entry" button and when
>>> the dialog pops up, it is autofilled with the UID from my client-side code.
>>> 
>>> I'd like to skip the popup box entirely and just create the page directly
>>> off of the UID so the user is just taken to the form automatically, but the
>>> only thing I can think of is just hiding the dialog and pushing the button
>>> via JavaScript.
>>> 
>>> Any other suggestions are certainly welcome, thx
>>> ___
>>> 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] Help with Database List

2014-07-17 Thread Jason Clemons
Now that I read my post, it dawns on me that I don't really need to use 
"LiveTables" if that's too much of a hassle, populating the Database List based 
on a table in the backend DB would work just as well, has anyone done this, or 
have any pointers?

Ultimately, I just need to devise a strategy to allow my user community to 
add/delete and edit the values that show up in my list without cracking into 
code or the class editor.  And I don't want them to call me either :)

> On Jul 15, 2014, at 8:48 AM, "Jason Clemons"  wrote:
> 
> 
>> Hello again all,
>> 
>> I’m trying not to ask every little question here, but I’m pretty well stuck. 
>>  I’ve created an App Within Minutes app and added a “Database List” but I’m 
>> not sure how to populate the list.  I’ve read tons (mostly of which I don’t 
>> understand) about HQL and LiveTable, but since I’m so new I can’t really 
>> figure out how to get this going.  I’d like to have a “LiveTable” (form) 
>> somewhere that my users enter and maintain data which then populates the 
>> “Database List” on my app.  I’ve Googled a bunch but I can’t seem to find a 
>> good example of this.  In my mind I want to do the following:
>> 
>> 1.Create a LiveTable somewhere
>> 2.   Link the Database List to the LiveTable I created.
>> 
>> Any help is greatly appreciated,
>> 
>> Jason M Clemons
>> Network Operations - Service Delivery Lead Analyst
>> 602-766-1844
>> 
>> American Express made the following annotations 
>> 
>> "This message and any attachments are solely for the intended recipient and 
>> may contain confidential or privileged information. If you are not the 
>> intended recipient, any disclosure, copying, use, or distribution of the 
>> information included in this message and any attachments is prohibited. If 
>> you have received this communication in error, please notify us by reply 
>> e-mail and immediately and permanently delete this message and any 
>> attachments. Thank you." 
>> 
>> American Express a ajouté le commentaire suivant le 
>> Ce courrier et toute pièce jointe qu'il contient sont réservés au seul 
>> destinataire indiqué et peuvent renfermer des renseignements confidentiels 
>> et privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation, 
>> duplication, utilisation ou distribution du courrier ou de toute pièce 
>> jointe est interdite. Si vous avez reçu cette communication par erreur, 
>> veuillez nous en aviser par courrier et détruire immédiatement le courrier 
>> et les pièces jointes. Merci.
> ___
> 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] Skip name dialog in App Within Minutes

2014-07-17 Thread Jason Clemons
Thanks Vincent,

I already created some client side code which creates a UID using a random 
number generator and a Unix timestamp then pre-populates the modal box before 
it appears, so that part of the code is already squared away...at this point 
it's a working solution, I was just trying to figure a way to prevent my users 
from having to click create, then add when they create a new page (e.g. Create 
the doc using only one click)...I'm gonna give it a go with more JavaScript 
tomorrow I think.

> On Jul 17, 2014, at 12:12 AM, "vinc...@massol.net"  wrote:
> 
> You could also check this extension as a helper, I think it was made for a 
> similar (if not the same) use case:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module
> 
> Thanks 
> -Vincent
> 
> 
> 
> On 17 Jul 2014 at 02:04:55, Jason Clemons 
> (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
> 
> > Thanks for the tips, I'll take a look at that tomorrow.
> > 
> > > On Jul 16, 2014, at 4:25 PM, "Jeremie BOUSQUET" wrote:
> > >
> > > BTW, an alternative could be to use the modal box [1], to display your 
> > > form
> > > in a modal pop-up (with autofilled field displayed or hidden), then create
> > > the page with the name you want upon submit. The server-side saving could
> > > be done with either velocity or groovy script.
> > >
> > > I think there is an extension doing that, but I can't find it ... If
> > > someone remembers :)
> > >
> > > BR,
> > > Jeremie
> > >
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
> > >
> > >
> > > 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
> > >
> > >> Hello,
> > >>
> > >> You could check the "Self renaming forms" extension [1], that would allow
> > >> renaming your page using the uid from the autofilled field.
> > >>
> > >> [1]
> > >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
> > >>
> > >> BR,
> > >> Jeremie
> > >>
> > >>
> > >> 2014-07-16 23:59 GMT+02:00 Jason Clemons :
> > >>
> > >> Hello all,
> > >>>
> > >>> I've created an "App Within Minutes" and written some custom JavaScript
> > >>> to autofill the value of the popup dialog box (called "Entry Name") 
> > >>> with a
> > >>> randomly generated UID..
> > >>>
> > >>> Essentially what happens is I click the "Add New Entry" button and when
> > >>> the dialog pops up, it is autofilled with the UID from my client-side 
> > >>> code.
> > >>>
> > >>> I'd like to skip the popup box entirely and just create the page 
> > >>> directly
> > >>> off of the UID so the user is just taken to the form automatically, but 
> > >>> the
> > >>> only thing I can think of is just hiding the dialog and pushing the 
> > >>> button
> > >>> via JavaScript.
> > >>>
> > >>> Any other suggestions are certainly welcome, thx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Help with Database List

2014-07-17 Thread Jason Clemons
I think that's exactly what I'm wanting to do..I'll give that a shot.

Thanks Jeremie

> On Jul 17, 2014, at 12:34 AM, "Jeremie BOUSQUET"  
> wrote:
> 
> Hello,
> 
> You could check this page about database lists [1].
> 
> The steps could be:
> - create a specific class, for objects that will hold possible values for
> your list (manually, or with app within minutes). You don't much care about
> the livetable, you mainly need a form for users to create new values. You
> can either define only one field in this Class (the values to show in the
> list), or 2 fields (one for the key, one for the value). Remember the name
> of the class and fields created.
> - in the Database List field you want to populate, apply [1], and enter the
> name of the class you created above, and the field(s) defining the values
> (and the keys if needed).
> 
> The Hibernate Query field is here if you want to do more advanced
> selections of the keys/values.
> You can even define a "tree" structure for the values to show in the list,
> but that's another topic ! ;-)
> 
> Note that if you don't need strict validation of user inputs, and to
> propose a predefined list of values, you could also just use the "suggest"
> feature in your field (and make it a simple string field instead of db
> list).
> 
> Hope this helps,
> Jeremie
> 
> [1] -
> http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties#HUsingtheClassName2BId2FValuefields
> 
> 
> 2014-07-17 9:14 GMT+02:00 Jason Clemons :
> 
>> Now that I read my post, it dawns on me that I don't really need to use
>> "LiveTables" if that's too much of a hassle, populating the Database List
>> based on a table in the backend DB would work just as well, has anyone done
>> this, or have any pointers?
>> 
>> Ultimately, I just need to devise a strategy to allow my user community to
>> add/delete and edit the values that show up in my list without cracking
>> into code or the class editor.  And I don't want them to call me either :)
>> 
>>>> On Jul 15, 2014, at 8:48 AM, "Jason Clemons" 
>>> wrote:
>>> 
>>> 
>>>> Hello again all,
>>>> 
>>>> I’m trying not to ask every little question here, but I’m pretty well
>> stuck.  I’ve created an App Within Minutes app and added a “Database List”
>> but I’m not sure how to populate the list.  I’ve read tons (mostly of which
>> I don’t understand) about HQL and LiveTable, but since I’m so new I can’t
>> really figure out how to get this going.  I’d like to have a “LiveTable”
>> (form) somewhere that my users enter and maintain data which then populates
>> the “Database List” on my app.  I’ve Googled a bunch but I can’t seem to
>> find a good example of this.  In my mind I want to do the following:
>>>> 
>>>> 1.Create a LiveTable somewhere
>>>> 2.   Link the Database List to the LiveTable I created.
>>>> 
>>>> Any help is greatly appreciated,
>>>> 
>>>> Jason M Clemons
>>>> Network Operations - Service Delivery Lead Analyst
>>>> 602-766-1844
>>>> 
>>>> American Express made the following annotations
>>>> 
>>>> "This message and any attachments are solely for the intended recipient
>> and may contain confidential or privileged information. If you are not the
>> intended recipient, any disclosure, copying, use, or distribution of the
>> information included in this message and any attachments is prohibited. If
>> you have received this communication in error, please notify us by reply
>> e-mail and immediately and permanently delete this message and any
>> attachments. Thank you."
>>>> 
>>>> American Express a ajouté le commentaire suivant le
>>>> Ce courrier et toute pièce jointe qu'il contient sont réservés au seul
>> destinataire indiqué et peuvent renfermer des renseignements confidentiels
>> et privilégiés. Si vous n'êtes pas le destinataire prévu, toute
>> divulgation, duplication, utilisation ou distribution du courrier ou de
>> toute pièce jointe est interdite. Si vous avez reçu cette communication par
>> erreur, veuillez nous en aviser par courrier et détruire immédiatement le
>> courrier et les pièces jointes. Merci.
>>> ___
>>> 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] Help with Database List

2014-07-17 Thread Jason Clemons
Does this make each list item essentially it's own page?

> On Jul 17, 2014, at 12:34 AM, "Jeremie BOUSQUET"  
> wrote:
> 
> Hello,
> 
> You could check this page about database lists [1].
> 
> The steps could be:
> - create a specific class, for objects that will hold possible values for
> your list (manually, or with app within minutes). You don't much care about
> the livetable, you mainly need a form for users to create new values. You
> can either define only one field in this Class (the values to show in the
> list), or 2 fields (one for the key, one for the value). Remember the name
> of the class and fields created.
> - in the Database List field you want to populate, apply [1], and enter the
> name of the class you created above, and the field(s) defining the values
> (and the keys if needed).
> 
> The Hibernate Query field is here if you want to do more advanced
> selections of the keys/values.
> You can even define a "tree" structure for the values to show in the list,
> but that's another topic ! ;-)
> 
> Note that if you don't need strict validation of user inputs, and to
> propose a predefined list of values, you could also just use the "suggest"
> feature in your field (and make it a simple string field instead of db
> list).
> 
> Hope this helps,
> Jeremie
> 
> [1] -
> http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties#HUsingtheClassName2BId2FValuefields
> 
> 
> 2014-07-17 9:14 GMT+02:00 Jason Clemons :
> 
>> Now that I read my post, it dawns on me that I don't really need to use
>> "LiveTables" if that's too much of a hassle, populating the Database List
>> based on a table in the backend DB would work just as well, has anyone done
>> this, or have any pointers?
>> 
>> Ultimately, I just need to devise a strategy to allow my user community to
>> add/delete and edit the values that show up in my list without cracking
>> into code or the class editor.  And I don't want them to call me either :)
>> 
>>>> On Jul 15, 2014, at 8:48 AM, "Jason Clemons" 
>>> wrote:
>>> 
>>> 
>>>> Hello again all,
>>>> 
>>>> I’m trying not to ask every little question here, but I’m pretty well
>> stuck.  I’ve created an App Within Minutes app and added a “Database List”
>> but I’m not sure how to populate the list.  I’ve read tons (mostly of which
>> I don’t understand) about HQL and LiveTable, but since I’m so new I can’t
>> really figure out how to get this going.  I’d like to have a “LiveTable”
>> (form) somewhere that my users enter and maintain data which then populates
>> the “Database List” on my app.  I’ve Googled a bunch but I can’t seem to
>> find a good example of this.  In my mind I want to do the following:
>>>> 
>>>> 1.Create a LiveTable somewhere
>>>> 2.   Link the Database List to the LiveTable I created.
>>>> 
>>>> Any help is greatly appreciated,
>>>> 
>>>> Jason M Clemons
>>>> Network Operations - Service Delivery Lead Analyst
>>>> 602-766-1844
>>>> 
>>>> American Express made the following annotations
>>>> 
>>>> "This message and any attachments are solely for the intended recipient
>> and may contain confidential or privileged information. If you are not the
>> intended recipient, any disclosure, copying, use, or distribution of the
>> information included in this message and any attachments is prohibited. If
>> you have received this communication in error, please notify us by reply
>> e-mail and immediately and permanently delete this message and any
>> attachments. Thank you."
>>>> 
>>>> American Express a ajouté le commentaire suivant le
>>>> Ce courrier et toute pièce jointe qu'il contient sont réservés au seul
>> destinataire indiqué et peuvent renfermer des renseignements confidentiels
>> et privilégiés. Si vous n'êtes pas le destinataire prévu, toute
>> divulgation, duplication, utilisation ou distribution du courrier ou de
>> toute pièce jointe est interdite. Si vous avez reçu cette communication par
>> erreur, veuillez nous en aviser par courrier et détruire immédiatement le
>> courrier et les pièces jointes. Merci.
>>> ___
>>> 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] Skip name dialog in App Within Minutes

2014-07-17 Thread Jason Clemons
Duh...that was incredibly easy.

Thanks Ludovic

> On Jul 17, 2014, at 1:00 AM, "Ludovic Dubost"  wrote:
> 
> Hi Jason
> 
> You also easily script jour own Burton using the document api and than
> redirection the user to the edit URL
> 
> See the scripting reference documentation for the api
> 
> http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation
> 
> Ludovic
> Le 17 juil. 2014 10:23, "Jason Clemons"  a écrit :
> 
>> Thanks Vincent,
>> 
>> I already created some client side code which creates a UID using a random
>> number generator and a Unix timestamp then pre-populates the modal box
>> before it appears, so that part of the code is already squared away...at
>> this point it's a working solution, I was just trying to figure a way to
>> prevent my users from having to click create, then add when they create a
>> new page (e.g. Create the doc using only one click)...I'm gonna give it a
>> go with more JavaScript tomorrow I think.
>> 
>>>> On Jul 17, 2014, at 12:12 AM, "vinc...@massol.net" 
>>> wrote:
>>> 
>>> You could also check this extension as a helper, I think it was made for
>> a similar (if not the same) use case:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module
>>> 
>>> Thanks
>>> -Vincent
>>> 
>>> 
>>> 
>>>> On 17 Jul 2014 at 02:04:55, Jason Clemons (jason.clem...@live.com
>>> (mailto:jason.clem...@live.com)) wrote:
>>> 
>>>> Thanks for the tips, I'll take a look at that tomorrow.
>>>> 
>>>>> On Jul 16, 2014, at 4:25 PM, "Jeremie BOUSQUET" wrote:
>>>>> 
>>>>> BTW, an alternative could be to use the modal box [1], to display
>> your form
>>>>> in a modal pop-up (with autofilled field displayed or hidden), then
>> create
>>>>> the page with the name you want upon submit. The server-side saving
>> could
>>>>> be done with either velocity or groovy script.
>>>>> 
>>>>> I think there is an extension doing that, but I can't find it ... If
>>>>> someone remembers :)
>>>>> 
>>>>> BR,
>>>>> Jeremie
>>>>> 
>>>>> [1]
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
>>>>> 
>>>>> 
>>>>> 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> You could check the "Self renaming forms" extension [1], that would
>> allow
>>>>>> renaming your page using the uid from the autofilled field.
>>>>>> 
>>>>>> [1]
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
>>>>>> 
>>>>>> BR,
>>>>>> Jeremie
>>>>>> 
>>>>>> 
>>>>>> 2014-07-16 23:59 GMT+02:00 Jason Clemons :
>>>>>> 
>>>>>> Hello all,
>>>>>>> 
>>>>>>> I've created an "App Within Minutes" and written some custom
>> JavaScript
>>>>>>> to autofill the value of the popup dialog box (called "Entry
>> Name") with a
>>>>>>> randomly generated UID..
>>>>>>> 
>>>>>>> Essentially what happens is I click the "Add New Entry" button and
>> when
>>>>>>> the dialog pops up, it is autofilled with the UID from my
>> client-side code.
>>>>>>> 
>>>>>>> I'd like to skip the popup box entirely and just create the page
>> directly
>>>>>>> off of the UID so the user is just taken to the form
>> automatically, but the
>>>>>>> only thing I can think of is just hiding the dialog and pushing
>> the button
>>>>>>> via JavaScript.
>>>>>>> 
>>>>>>> Any other suggestions are certainly welcome, thx
>> ___
>> 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


[xwiki-users] RESTful API help

2014-07-22 Thread Jason Clemons
Hello all,

I've created an "App Within Minutes" application we are using for some 
reporting and issue tracking which is pretty much done now, but I need a way to 
create a page in the application with an API call.  I've seen tons of 
information on creating pages or modifying pages and I can get that to work 
pretty well, but when I create a page in the application space I don't know how 
to make the controls appear and the page doesn't show up I'm the application 
home page (grid). 

I'm sure I'm approaching this the wrong way as I'm creating a page from scratch 
where I'm pretty sure I should be creating an instance of the page class, but 
I'm not sure where to start with that.  

Does anyone have any links or tips or leads on where I would start looking for 
something like that?

All help is greatly appreciated,

Thanks in advance
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RESTful API help

2014-07-22 Thread Jason Clemons
That's kinda what I'm trying to do..would I need to create the page first?

For instance, does  posting to 
http://yoursite.com/rest/wikis//spaces//pages//objects
 create the page if it doesn't exist?

Or would I

1.  Create the page
2.   add the objects 

Thanks for the responses :)


> On Jul 22, 2014, at 1:46 PM, "Aaron Hardy at AC" 
>  wrote:
> 
> I can't help with the App Within Minutes part, as I'm not very familiar
> with it - I'm sure someone who knows more than me (ie anyone) could tell
> you if you need to be creating a page or just creating an object on a page.
> 
> But, if "make the controls appear" ends up meaning that you need to add an
> object of a certain class to a page, you just make a POST request to:
> http://yoursite.com/rest/wikis/
> /spaces//pages//objects
> 
> containing XML similar to this:
> 
> http://www.xwiki.org";>
> Space.YourClass
> propertyvalue
> 
> 
> That should create an object on your page of the specified class - the
> response will include the XML representation of that object.
> 
> Alternately, if you just need your new page to include the page with the
> app code, you can create a new page and modify the contents to contain the
> {{include}} macro...
> 
> Hope that helps, at least until someone who knows what they're talking
> about comes along...
> 
> 
> 
> On Tue, Jul 22, 2014 at 4:23 PM, Jason Clemons 
> wrote:
> 
>> Hello all,
>> 
>> I've created an "App Within Minutes" application we are using for some
>> reporting and issue tracking which is pretty much done now, but I need a
>> way to create a page in the application with an API call.  I've seen tons
>> of information on creating pages or modifying pages and I can get that to
>> work pretty well, but when I create a page in the application space I don't
>> know how to make the controls appear and the page doesn't show up I'm the
>> application home page (grid).
>> 
>> I'm sure I'm approaching this the wrong way as I'm creating a page from
>> scratch where I'm pretty sure I should be creating an instance of the page
>> class, but I'm not sure where to start with that.
>> 
>> Does anyone have any links or tips or leads on where I would start looking
>> for something like that?
>> 
>> All help is greatly appreciated,
>> 
>> Thanks in advance
>> ___
>> 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] RESTful API help

2014-07-22 Thread Jason Clemons
Would you take a second to elaborate on that last part if you have a second?  
I'm not sure I understand when you say 

"Keep in mind that if your "sheet" is bound to the class, then adding an object 
of that class to a page will cause that page to display that class's
sheet automatically..."

When I create the page how do I stipulate the "sheet"?  Or how do I bind it?

> On Jul 22, 2014, at 3:39 PM, "Aaron Hardy at AC" 
>  wrote:
> 
> As far as I know, yes - you have to create the page first before adding an
> object to it, otherwise you'll get an error.
> 
> Keep in mind that if your "sheet" is bound to the class, then adding an
> object of that class to a page will cause that page to display that class's
> sheet automatically...
> 
> 
> On Tue, Jul 22, 2014 at 5:31 PM, Jason Clemons 
> wrote:
> 
>> That's kinda what I'm trying to do..would I need to create the page first?
>> 
>> For instance, does  posting to 
>> http://yoursite.com/rest/wikis//spaces//pages//objects
>> create the page if it doesn't exist?
>> 
>> Or would I
>> 
>> 1.  Create the page
>> 2.   add the objects
>> 
>> Thanks for the responses :)
>> 
>> 
>>>> On Jul 22, 2014, at 1:46 PM, "Aaron Hardy at AC" <
>>> ashtarcommunicati...@gmail.com> wrote:
>>> 
>>> I can't help with the App Within Minutes part, as I'm not very familiar
>>> with it - I'm sure someone who knows more than me (ie anyone) could tell
>>> you if you need to be creating a page or just creating an object on a
>> page.
>>> 
>>> But, if "make the controls appear" ends up meaning that you need to add
>> an
>>> object of a certain class to a page, you just make a POST request to:
>>> http://yoursite.com/rest/wikis/
>>> /spaces//pages//objects
>>> 
>>> containing XML similar to this:
>>> 
>>> http://www.xwiki.org";>
>>> Space.YourClass
>>> propertyvalue
>>> 
>>> 
>>> That should create an object on your page of the specified class - the
>>> response will include the XML representation of that object.
>>> 
>>> Alternately, if you just need your new page to include the page with the
>>> app code, you can create a new page and modify the contents to contain
>> the
>>> {{include}} macro...
>>> 
>>> Hope that helps, at least until someone who knows what they're talking
>>> about comes along...
>>> 
>>> 
>>> 
>>> On Tue, Jul 22, 2014 at 4:23 PM, Jason Clemons 
>>> wrote:
>>> 
>>>> Hello all,
>>>> 
>>>> I've created an "App Within Minutes" application we are using for some
>>>> reporting and issue tracking which is pretty much done now, but I need a
>>>> way to create a page in the application with an API call.  I've seen
>> tons
>>>> of information on creating pages or modifying pages and I can get that
>> to
>>>> work pretty well, but when I create a page in the application space I
>> don't
>>>> know how to make the controls appear and the page doesn't show up I'm
>> the
>>>> application home page (grid).
>>>> 
>>>> I'm sure I'm approaching this the wrong way as I'm creating a page from
>>>> scratch where I'm pretty sure I should be creating an instance of the
>> page
>>>> class, but I'm not sure where to start with that.
>>>> 
>>>> Does anyone have any links or tips or leads on where I would start
>> looking
>>>> for something like that?
>>>> 
>>>> All help is greatly appreciated,
>>>> 
>>>> Thanks in advance
>>>> ___
>>>> 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Enhance SOLR search

2014-08-12 Thread Jason Clemons
Hello all, can anyone point me in the right direction for customizing or 
extending the it's that show up in a SOLR search?  Specifically I would like 
the "Search Suggest" to show the contents of "tags".

In addition, I have a custom application built with "App Within Minutes" and 
I'd like key fields from the user entries into the app to show up in search 
results as well.

Thanks in advance everyone,

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


[xwiki-users] Groovy or Velocity code to read combo boxes and text boxes

2014-08-18 Thread Jason Clemons
Hello all,

I'm sure this question has been asked before but I can't seem to find anything 
using the all mighty Google, so I thought I'd ask.  I've created a tracking 
application (ticketing / workflow) using "App Within Minutes".  What I'd like 
to do using either Groovy or Velocity is when a ticket is "closed" (by changing 
the value of a combo box) is to gather some details from the closed ticket that 
appears in a few controls on the page and post them to another page in the wiki 
when the user saves the page.  The idea is to keep a running log of recently 
closed tickets.  I've been looking for examples in three parts that I think I 
need help with:

1.  How do I capture a "combo box" change event using Groovy or Velocity ?

2.  How do I get values of text boxes and combo boxes from a page using Groovy 
or Velocity ?

3.  How do I write to a different page in the Wiki using Groovy or Velocity?

I'm obviously going to continue searching Google, but any pointers / help is 
greatly appreciated.


Thanks in Advance,

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


Re: [xwiki-users] Groovy or Velocity code to read combo boxes and text boxes

2014-08-19 Thread Jason Clemons
Thank you, I'll give that a shot :)

> On Aug 19, 2014, at 1:14 AM, "Marius Dumitru Florea" 
>  wrote:
> 
>> On Mon, Aug 18, 2014 at 6:43 PM, Jason Clemons  
>> wrote:
>> Hello all,
>> 
>> I'm sure this question has been asked before but I can't seem to find 
>> anything using the all mighty Google, so I thought I'd ask.  I've created a 
>> tracking application (ticketing / workflow) using "App Within Minutes".  
>> What I'd like to do using either Groovy or Velocity is when a ticket is 
>> "closed" (by changing the value of a combo box) is to gather some details 
>> from the closed ticket that appears in a few controls on the page and post 
>> them to another page in the wiki when the user saves the page.  The idea is 
>> to keep a running log of recently closed tickets.  I've been looking for 
>> examples in three parts that I think I need help with:
> 
>> 1.  How do I capture a "combo box" change event using Groovy or Velocity ?
> 
> You don't need to capture the change event on the "combo box". You
> need to capture the save event, on the server side. For this we have
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutorial
> . The idea is to write an event listener that is triggered whenever an
> XWiki document is saved and which checks if the document is an entry
> of your application, i.e. if the document has an xobject of the type
> defined by your application. See
> http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HApplicationStructure
> . Each application created with AppWithinMinutes defines a data type
> (e.g. a ticket, a workflow, a blog post,  etc.) which we call an
> xclass.
> 
> 
>> 2.  How do I get values of text boxes and combo boxes from a page using 
>> Groovy or Velocity ?
> 
> If the text boxes and the combo boxes you are referring to are those
> from the form that was generated automatically for you by
> AppWithinMinutes then when the document (the ticket) is saved those
> values are stored in the xobject. I recommend following the
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial in order
> to better understand these concepts. So in your event listener you can
> access the xobject from the saved document and check the property
> values.
> 
> 
>> 3.  How do I write to a different page in the Wiki using Groovy or Velocity?
> 
> You should go over http://platform.xwiki.org/xwiki/bin/view/DevGuide/WebHome
> 
> Hope this helps,
> Marius
> 
>> 
>> I'm obviously going to continue searching Google, but any pointers / help is 
>> greatly appreciated.
>> 
>> 
>> Thanks in Advance,
>> 
>> Jason Clemons
>> ___
>> 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


[xwiki-users] Document Macro Question

2014-08-20 Thread Jason Clemons
Hello all,

I've added a "Document Macro" to my page template which shows the contents of a 
LiveTable which works perfectly.  I'm wondering if there is a way (in the 
document macro) to filter the results on a column in my LiveTable to only show 
specific rows ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Document Macro Question

2014-08-21 Thread Jason Clemons
I ended up just using an hql query or whatever to iterate through the documents 
that make up the LiveTable instead.  

Thanks for the response

> On Aug 21, 2014, at 10:33 PM, "Marius Dumitru Florea" 
>  wrote:
> 
> The Documents macro doesn't support this (see
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Documents+Macro
> ). The live table has a parameter to filter the rows though,
> 'extraParams' here
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HAllacceptedvalues
> , so you'll have to generate the live table by yourself in order to be
> able to set this parameter. You can checkout the code of the Documents
> macro 
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml#L164
> .
> 
> Hope this helps,
> Marius
> 
>> On Wed, Aug 20, 2014 at 9:01 PM, Jason Clemons  
>> wrote:
>> Hello all,
>> 
>> I've added a "Document Macro" to my page template which shows the contents 
>> of a LiveTable which works perfectly.  I'm wondering if there is a way (in 
>> the document macro) to filter the results on a column in my LiveTable to 
>> only show specific rows ?
>> ___
>> 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


[xwiki-users] Re-register / Un-register / List EventListeners

2014-08-22 Thread Jason Clemons
Hello all, I've followed the tutorial at 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutorial 
and gotten it to work, but now I can't change the code in the event listener to 
do anything different, how do I force my event listener to re-register and take 
changes in the onEvent ComponentMethodClass?  

Also, is there a way to list listeners currently in effect,  I suspect that 
there are instances of my previous attempts still "listening" since it doesn't 
seem like I can use the same "Role Hint" twice.  At least when I deleted my 
previously working attempt, then made the same solution again using the same 
"Role Hint" again the code wouldn't run, then I changed the "Role Hint" value 
and it ran.  Leading me to believe there are orphaned listeners out there.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Write to logger using Velocity

2014-08-25 Thread Jason Clemons
Hello, can someone please give me an example of how to write to a log using 
Velocity code?

I'd really like to write a text file, but at this point any logging would be 
tremendously helpful, thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Write to logger using Velocity

2014-08-25 Thread Jason Clemons
Thanks for the response Vincent, I did see this article, but I'm having trouble 
figuring out how to implement it.  Ultimately, I just want the equivalent of 
"Console.Log('foobar');" for some debugging code.  I don't want to setup a full 
blown logging architecture or anything heavy for my wiki.  Is there some simple 
example on the link you provided that I'm not interpreting correctly?

> On Aug 25, 2014, at 9:18 AM, "vinc...@massol.net"  wrote:
> 
> 
>> On 25 Aug 2014 at 18:02:12, Jason Clemons 
>> (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
>> 
>> Hello, can someone please give me an example of how to write to a log using 
>> Velocity code?
>> 
>> I'd really like to write a text file, but at this point any logging would be 
>> tremendously helpful, thanks
> 
> Since XWiki 6.1:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Logging+Module#HScripting
> 
> 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] Write to logger using Velocity

2014-08-25 Thread Jason Clemons
Thanks again for taking time to respond, forgive my ignorance..I still don't 
really "get it" could you possibly show me an example of the syntax for writing 
to the logs from within my Velocity code?  In groovy I can simply write:

{{groovy}}
System.out.println("foobar")
{{/groovy}}

I'm just having an issue figuring out the velocity equivalent...


> On Aug 25, 2014, at 9:56 AM, "vinc...@massol.net"  wrote:
> 
>  
> 
> 
> 
>> On 25 Aug 2014 at 18:26:28, Jason Clemons 
>> (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
>> 
>> Thanks for the response Vincent, I did see this article, but I'm having 
>> trouble figuring out how to implement it. Ultimately, I just want the 
>> equivalent of "Console.Log('foobar');" for some debugging code. I don't want 
>> to setup a full blown logging architecture or anything heavy for my wiki. Is 
>> there some simple example on the link you provided that I'm not interpreting 
>> correctly?
> 
> If you’re inside XWiki then you already have logging configured! There’s 
> nothing to do except use it as show in the link I gave. Which is exactly the 
> equivalent of "Console.Log('foobar');”.
> 
> Thanks
> -Vincent
> 
>>> On Aug 25, 2014, at 9:18 AM, "vinc...@massol.net" wrote:
>>> 
>>> 
>>>> On 25 Aug 2014 at 18:02:12, Jason Clemons 
>>>> (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
>>>> 
>>>> Hello, can someone please give me an example of how to write to a log 
>>>> using Velocity code?
>>>> 
>>>> I'd really like to write a text file, but at this point any logging would 
>>>> be tremendously helpful, thanks
>>> 
>>> Since XWiki 6.1:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Logging+Module#HScripting
>>> 
>>> 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] Write to logger using Velocity

2014-08-26 Thread Jason Clemons
That's why I said "forgive my ignorance" in my previous email :)

I was thrown off by defining the "informative name".  Is that a persistent 
value once defined? Or is just something that gets added to the log entry?

> On Aug 25, 2014, at 11:28 PM, "Jeremie BOUSQUET"  
> wrote:
> 
> Hello,
> 
> {{velocity}}
> #set($logger = $services.logging.getLogger("My script"))
> 
> $logger.info("foobar")
> 
> {{/velocity}}
> 
> 
> This is exactly what is on the page linked by Vincent, just with a more
> similar "look" to your own sample.
> "My script" is just an informative name of the logger you create. You could
> use $doc.name for instance.
> 
> It's not much more complex, and it's really more clean than
> System.out.println ;-)
> 
> BR,
> Jeremie
> 
> 
> 2014-08-25 19:33 GMT+02:00 Jason Clemons :
> 
>> Thanks again for taking time to respond, forgive my ignorance..I still
>> don't really "get it" could you possibly show me an example of the syntax
>> for writing to the logs from within my Velocity code?  In groovy I can
>> simply write:
>> 
>> {{groovy}}
>> System.out.println("foobar")
>> {{/groovy}}
>> 
>> I'm just having an issue figuring out the velocity equivalent...
>> 
>> 
>>>> On Aug 25, 2014, at 9:56 AM, "vinc...@massol.net" 
>>> wrote:
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> On 25 Aug 2014 at 18:26:28, Jason Clemons (jason.clem...@live.com
>> (mailto:jason.clem...@live.com)) wrote:
>>>> 
>>>> Thanks for the response Vincent, I did see this article, but I'm having
>> trouble figuring out how to implement it. Ultimately, I just want the
>> equivalent of "Console.Log('foobar');" for some debugging code. I don't
>> want to setup a full blown logging architecture or anything heavy for my
>> wiki. Is there some simple example on the link you provided that I'm not
>> interpreting correctly?
>>> 
>>> If you’re inside XWiki then you already have logging configured! There’s
>> nothing to do except use it as show in the link I gave. Which is exactly
>> the equivalent of "Console.Log('foobar');”.
>>> 
>>> Thanks
>>> -Vincent
>>> 
>>>>> On Aug 25, 2014, at 9:18 AM, "vinc...@massol.net" wrote:
>>>>> 
>>>>> 
>>>>>> On 25 Aug 2014 at 18:02:12, Jason Clemons (jason.clem...@live.com
>> (mailto:jason.clem...@live.com)) wrote:
>>>>>> 
>>>>>> Hello, can someone please give me an example of how to write to a log
>> using Velocity code?
>>>>>> 
>>>>>> I'd really like to write a text file, but at this point any logging
>> would be tremendously helpful, thanks
>>>>> 
>>>>> Since XWiki 6.1:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Logging+Module#HScripting
>>>>> 
>>>>> 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
> ___
> 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] Write to logger using Velocity

2014-08-26 Thread Jason Clemons
So sorry, but one more question..since I'm new to Xwiki, and all of it's 
underlying architecture (I'm a .net guy) I'm sure this is something that I'm 
doing wrong, but I figured I'd ask.

When I copy and paste the code you provided below into a page (in the "source" 
section)  the page and the script section renders without error on the page, 
but the output literally says "$logger.info("foobar")" on the page.

I would expect no visible output, but to see a log entry, am I missing 
something?

> On Aug 26, 2014, at 7:39 AM, "Jason Clemons"  wrote:
> 
> That's why I said "forgive my ignorance" in my previous email :)
> 
> I was thrown off by defining the "informative name".  Is that a persistent 
> value once defined? Or is just something that gets added to the log entry?
> 
>> On Aug 25, 2014, at 11:28 PM, "Jeremie BOUSQUET" 
>>  wrote:
>> 
>> Hello,
>> 
>> {{velocity}}
>> #set($logger = $services.logging.getLogger("My script"))
>> 
>> $logger.info("foobar")
>> 
>> {{/velocity}}
>> 
>> 
>> This is exactly what is on the page linked by Vincent, just with a more
>> similar "look" to your own sample.
>> "My script" is just an informative name of the logger you create. You could
>> use $doc.name for instance.
>> 
>> It's not much more complex, and it's really more clean than
>> System.out.println ;-)
>> 
>> BR,
>> Jeremie
>> 
>> 
>> 2014-08-25 19:33 GMT+02:00 Jason Clemons :
>> 
>>> Thanks again for taking time to respond, forgive my ignorance..I still
>>> don't really "get it" could you possibly show me an example of the syntax
>>> for writing to the logs from within my Velocity code?  In groovy I can
>>> simply write:
>>> 
>>> {{groovy}}
>>> System.out.println("foobar")
>>> {{/groovy}}
>>> 
>>> I'm just having an issue figuring out the velocity equivalent...
>>> 
>>> 
>>>>> On Aug 25, 2014, at 9:56 AM, "vinc...@massol.net" 
>>>> wrote:
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 25 Aug 2014 at 18:26:28, Jason Clemons (jason.clem...@live.com
>>> (mailto:jason.clem...@live.com)) wrote:
>>>>> 
>>>>> Thanks for the response Vincent, I did see this article, but I'm having
>>> trouble figuring out how to implement it. Ultimately, I just want the
>>> equivalent of "Console.Log('foobar');" for some debugging code. I don't
>>> want to setup a full blown logging architecture or anything heavy for my
>>> wiki. Is there some simple example on the link you provided that I'm not
>>> interpreting correctly?
>>>> 
>>>> If you’re inside XWiki then you already have logging configured! There’s
>>> nothing to do except use it as show in the link I gave. Which is exactly
>>> the equivalent of "Console.Log('foobar');”.
>>>> 
>>>> Thanks
>>>> -Vincent
>>>> 
>>>>>> On Aug 25, 2014, at 9:18 AM, "vinc...@massol.net" wrote:
>>>>>> 
>>>>>> 
>>>>>>> On 25 Aug 2014 at 18:02:12, Jason Clemons (jason.clem...@live.com
>>> (mailto:jason.clem...@live.com)) wrote:
>>>>>>> 
>>>>>>> Hello, can someone please give me an example of how to write to a log
>>> using Velocity code?
>>>>>>> 
>>>>>>> I'd really like to write a text file, but at this point any logging
>>> would be tremendously helpful, thanks
>>>>>> 
>>>>>> Since XWiki 6.1:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Logging+Module#HScripting
>>>>>> 
>>>>>> 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
>> ___
>> 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] Write to logger using Velocity

2014-08-26 Thread Jason Clemons
I have exactly that in my page, that's why I was confused :)

> On Aug 26, 2014, at 8:17 AM, "Valdis Vītoliņš"  wrote:
> 
> You need to say that following will be velocity script with
> opening/closing tags like this:
> 
> {{velocity}}
> #set($logger = $services.logging.getLogger("My script"))
> $logger.info("foobar")
> {{/velocity}}
> 
> Valdis
> 
> 
> ___
> 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] Write to logger using Velocity

2014-08-26 Thread Jason Clemons
This is something new to 6.1?  I'm not on 6.1 yet, maybe that's why?

> On Aug 26, 2014, at 8:21 AM, "Jeremie BOUSQUET"  
> wrote:
> 
> 2014-08-26 17:08 GMT+02:00 Jason Clemons :
> 
>> So sorry, but one more question..since I'm new to Xwiki, and all of it's
>> underlying architecture (I'm a .net guy) I'm sure this is something that
>> I'm doing wrong, but I figured I'd ask.
>> 
>> When I copy and paste the code you provided below into a page (in the
>> "source" section)  the page and the script section renders without error on
>> the page, but the output literally says "$logger.info("foobar")" on the
>> page.
>> 
>> I would expect no visible output, but to see a log entry, am I missing
>> something?
> 
> Same for me, that's why it's bad to provide samples without actually
> testing them :)
> 
> In fact I don't see any "getLogger" method in $services.logging, which you
> can check in the Scripting Reference page [1].
> 
> Double-checking myself, it's normal in my case as Vincent it was added in
> 6.1, and I'm not in 6.1, so nothing abnormal here ...
> 
> In your case if you are on 6.1 and it doesn't work, I would suspect that
> maybe you copy-pasted this code into a page in wysiwyg editor instead of
> wiki editor.
> If you have wysiwyg by default and you're not an advanced user, you can
> choose insert / macro, choose the "velocity" macro, and enter the content
> between {{velocity}} in the macro content.
> Or you can switch to advanced user and/or wiki editor (sorry, miss time to
> find the urls in xwiki.org ;-) )
> 
> 
> [1] - http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation
> 
> 
> 
>> 
>>>> On Aug 26, 2014, at 7:39 AM, "Jason Clemons" 
>>> wrote:
>>> 
>>> That's why I said "forgive my ignorance" in my previous email :)
>>> 
>>> I was thrown off by defining the "informative name".  Is that a
>> persistent value once defined? Or is just something that gets added to the
>> log entry?
>>> 
>>>> On Aug 25, 2014, at 11:28 PM, "Jeremie BOUSQUET" <
>> jeremie.bousq...@gmail.com> wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> {{velocity}}
>>>> #set($logger = $services.logging.getLogger("My script"))
>>>> 
>>>> $logger.info("foobar")
>>>> 
>>>> {{/velocity}}
>>>> 
>>>> 
>>>> This is exactly what is on the page linked by Vincent, just with a more
>>>> similar "look" to your own sample.
>>>> "My script" is just an informative name of the logger you create. You
>> could
>>>> use $doc.name for instance.
>>>> 
>>>> It's not much more complex, and it's really more clean than
>>>> System.out.println ;-)
>>>> 
>>>> BR,
>>>> Jeremie
>>>> 
>>>> 
>>>> 2014-08-25 19:33 GMT+02:00 Jason Clemons :
>>>> 
>>>>> Thanks again for taking time to respond, forgive my ignorance..I still
>>>>> don't really "get it" could you possibly show me an example of the
>> syntax
>>>>> for writing to the logs from within my Velocity code?  In groovy I can
>>>>> simply write:
>>>>> 
>>>>> {{groovy}}
>>>>> System.out.println("foobar")
>>>>> {{/groovy}}
>>>>> 
>>>>> I'm just having an issue figuring out the velocity equivalent...
>>>>> 
>>>>> 
>>>>>>> On Aug 25, 2014, at 9:56 AM, "vinc...@massol.net" <
>> vinc...@massol.net>
>>>>>> wrote:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 25 Aug 2014 at 18:26:28, Jason Clemons (jason.clem...@live.com
>>>>> (mailto:jason.clem...@live.com)) wrote:
>>>>>>> 
>>>>>>> Thanks for the response Vincent, I did see this article, but I'm
>> having
>>>>> trouble figuring out how to implement it. Ultimately, I just want the
>>>>> equivalent of "Console.Log('foobar');" for some debugging code. I don't
>>>>> want to setup a full blown logging architecture or anything heavy f

[xwiki-users] LDAP GROUPS

2014-09-03 Thread Jason Clemons
Hello all, 

Is it possible to add more than one LDAP group to the authentication service?

Is there a separator that is allowed in xwiki.cfg, or would I just duplicate 
the "xwiki.authentication.ldap.user_group" section to add another path?  I have 
need to add a few additional AD groups, but I can't seem to figure out the 
syntax
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Get the TEXT of a property instead of the value

2014-09-03 Thread Jason Clemons
Hello all,

I've been beating my head against the wall on this so I'm hoping someone can 
chime in and set me straight.

I have a static list control on a page and I can easily access it's value using 
"$obj.getProperty('field1').getValue()" but I really need the TEXT of the 
property.  In other words, what's displayed in my UI is different from what's 
saved in the database, and I really need the text that's displayed in the UI 
for my use case.  

In my class I've added properties of static list, and in the static list object 
I've added the following values

1=One
2=Two
3=Three

When I use "$obj.getProperty('field1').getValue()" I get 1,2,3 and I really 
need one,two,three.

Any help is greatly appreciated
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP GROUPS

2014-09-04 Thread Jason Clemons
Bummer, thanks anyway for the answer :)

> On Sep 4, 2014, at 12:02 AM, "Thomas Mortagne"  
> wrote:
> 
> No that specific property supports only one group (see
> http://jira.xwiki.org/browse/XWIKI-2518). Usually the workaround is to
> have a group in LDAP side containing other LDAP groups and put this
> meta group in xwiki.cfg.
> 
>> On Wed, Sep 3, 2014 at 9:32 PM, Jason Clemons  wrote:
>> Hello all,
>> 
>> Is it possible to add more than one LDAP group to the authentication service?
>> 
>> Is there a separator that is allowed in xwiki.cfg, or would I just duplicate 
>> the "xwiki.authentication.ldap.user_group" section to add another path?  I 
>> have need to add a few additional AD groups, but I can't seem to figure out 
>> the syntax
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> 
> 
> -- 
> Thomas Mortagne
> ___
> 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] Get the TEXT of a property instead of the value

2014-09-04 Thread Jason Clemons
Thanks, I'll give that a go in the morning and post back

> On Sep 4, 2014, at 12:05 AM, "Jean SIMARD"  wrote:
> 
> Try this.
> 
> Instead of doing
> 
>  {{velocity}}
>  #set($d = $xwiki.getDocument('Sandbox.YourDocument'))
>  #set($obj = $d.getObject('Sandbox.YourClass'))
>  $obj.getProperty('field1').getValue()
>  {{/velocity}}
> 
> do this
> 
>  {{velocity}}
>  #set($d = $xwiki.getDocument('Sandbox.YourDocument'))
>  $d.display('field1')
>  {{/velocity}}
> 
> Hope this helps.
> 
>> On Wed, Sep 03, 2014 at 03:08:08PM -0700, Jason Clemons wrote:
>> Hello all,
>> 
>> I've been beating my head against the wall on this so I'm hoping someone can 
>> chime in and set me straight.
>> 
>> I have a static list control on a page and I can easily access it's value 
>> using "$obj.getProperty('field1').getValue()" but I really need the TEXT of 
>> the property.  In other words, what's displayed in my UI is different from 
>> what's saved in the database, and I really need the text that's displayed in 
>> the UI for my use case.  
>> 
>> In my class I've added properties of static list, and in the static list 
>> object I've added the following values
>> 
>> 1=One
>> 2=Two
>> 3=Three
>> 
>> When I use "$obj.getProperty('field1').getValue()" I get 1,2,3 and I really 
>> need one,two,three.
>> 
>> Any help is greatly appreciated
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> -- 
> Jean Simard
> jean.sim...@xwiki.com
> Research engineer at XWiki SAS
> http://www.xwiki.com
> Committer on the XWiki.org project
> http://www.xwiki.org
> ___
> 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] LDAP GROUPS

2014-09-04 Thread Jason Clemons
Our corporate AD policy prevents nesting groups..so I'll just have to create a 
single group to add everyone to, not complex.

Thanks for response :)

> On Sep 4, 2014, at 12:09 AM, "Thomas Mortagne"  
> wrote:
> 
> Note that it's not a very complex contribution if you are motivated ;)
> 
>> On Thu, Sep 4, 2014 at 9:03 AM, Jason Clemons  wrote:
>> Bummer, thanks anyway for the answer :)
>> 
>>> On Sep 4, 2014, at 12:02 AM, "Thomas Mortagne"  
>>> wrote:
>>> 
>>> No that specific property supports only one group (see
>>> http://jira.xwiki.org/browse/XWIKI-2518). Usually the workaround is to
>>> have a group in LDAP side containing other LDAP groups and put this
>>> meta group in xwiki.cfg.
>>> 
>>>> On Wed, Sep 3, 2014 at 9:32 PM, Jason Clemons  
>>>> wrote:
>>>> Hello all,
>>>> 
>>>> Is it possible to add more than one LDAP group to the authentication 
>>>> service?
>>>> 
>>>> Is there a separator that is allowed in xwiki.cfg, or would I just 
>>>> duplicate the "xwiki.authentication.ldap.user_group" section to add 
>>>> another path?  I have need to add a few additional AD groups, but I can't 
>>>> seem to figure out the syntax
>>>> ___
>>>> users mailing list
>>>> users@xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>> 
>>> 
>>> 
>>> --
>>> Thomas Mortagne
>>> ___
>>> 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
> 
> 
> 
> -- 
> Thomas Mortagne
> ___
> 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] Get the TEXT of a property instead of the value

2014-09-04 Thread Jason Clemons
Such a simple solution, thank you so much for the response.

> On Sep 4, 2014, at 12:07 AM, "Jason Clemons"  wrote:
> 
> Thanks, I'll give that a go in the morning and post back
> 
>> On Sep 4, 2014, at 12:05 AM, "Jean SIMARD"  wrote:
>> 
>> Try this.
>> 
>> Instead of doing
>> 
>> {{velocity}}
>> #set($d = $xwiki.getDocument('Sandbox.YourDocument'))
>> #set($obj = $d.getObject('Sandbox.YourClass'))
>> $obj.getProperty('field1').getValue()
>> {{/velocity}}
>> 
>> do this
>> 
>> {{velocity}}
>> #set($d = $xwiki.getDocument('Sandbox.YourDocument'))
>> $d.display('field1')
>> {{/velocity}}
>> 
>> Hope this helps.
>> 
>>> On Wed, Sep 03, 2014 at 03:08:08PM -0700, Jason Clemons wrote:
>>> Hello all,
>>> 
>>> I've been beating my head against the wall on this so I'm hoping someone 
>>> can chime in and set me straight.
>>> 
>>> I have a static list control on a page and I can easily access it's value 
>>> using "$obj.getProperty('field1').getValue()" but I really need the TEXT of 
>>> the property.  In other words, what's displayed in my UI is different from 
>>> what's saved in the database, and I really need the text that's displayed 
>>> in the UI for my use case.  
>>> 
>>> In my class I've added properties of static list, and in the static list 
>>> object I've added the following values
>>> 
>>> 1=One
>>> 2=Two
>>> 3=Three
>>> 
>>> When I use "$obj.getProperty('field1').getValue()" I get 1,2,3 and I really 
>>> need one,two,three.
>>> 
>>> Any help is greatly appreciated
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>> 
>> -- 
>> Jean Simard
>> jean.sim...@xwiki.com
>> Research engineer at XWiki SAS
>> http://www.xwiki.com
>> Committer on the XWiki.org project
>> http://www.xwiki.org
>> ___
>> 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


[xwiki-users] Static list value vs. display

2014-10-07 Thread Jason Clemons
Hello all,

I'm not sure if I'm doing something wrong or not, but I have an issue with my 
static lists.  I set the "value" as follows:

1-choice 1|2-choice 2|3-choice 3

when I view my form I see the choices as follows:

choice 1
choice 2
choice 3

which is what I expect, however...if I change the value before the dash or 
remove the
selection all together from the class all items which have that selection get 
the "hidden" value.

For instance, if a page was created using "choice 1", and the selection of 
"choice 1" exists in the class, then viewing the page will indeed show "choice 
1".  However, if I remove  "choice 1" or change it to "selection 1" for 
instance, then all instances previously using that selection will then display 
"1".

is there any way to prevent previously created pages from changes when the 
class changes?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] DBlist with external query data?

2014-10-07 Thread Jason Clemons
I'd like to do the same :)

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Bryn Jeffries
Sent: Tuesday, October 7, 2014 8:54 PM
To: users@xwiki.org
Subject: [xwiki-users] DBlist with external query data?

Please forgive my ignorance, but is it possible to use DBList with queries
to other databases? I'd very much like to use this element populated with
the results from a query to another database running on the same server as
XWiki, but the only documentation  I can find describes queries of the XWiki
database.
___
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] Static list value vs. display

2014-10-08 Thread Jason Clemons
hmmm...I assumed that anything spawned as an instance of the base class would 
have their own copy of the properties that persisted.

Your explanation certainly helps, but it seems that this approach means that 
changes to the base class will influence all of its iterations, making business 
logic changes very difficult to implement.  

Thanks for taking the time to respond.



> On Oct 8, 2014, at 3:14 PM, Eduard Moraru  wrote:
> 
> Hi,
> 
> Objects only store the selected value when the value is set, not the
> value's label. The class is in charge of storing the list of possible
> values and their labels.
> 
> The field displayer displays the currently stored value inside the object
> using the current list of available value labels from the class. If the
> currently stored value in an object is no longer in the list of values of
> the class, the raw value is displayed instead of a value label.
> 
> Changes on the class impact the display of all the objects of that class.
> Yo can safely change a value's label in the class and all objects will
> display that value with the new label, but if you remove the value from a
> class, objects will no longer *know* how to display your (now) unknown
> value.
> 
> Hope that clarifies things.
> 
> Thanks,
> Eduard
> 
> On Tue, Oct 7, 2014 at 6:37 PM, Jason Clemons 
> wrote:
> 
>> Hello all,
>> 
>> I'm not sure if I'm doing something wrong or not, but I have an issue with
>> my static lists.  I set the "value" as follows:
>> 
>> 1-choice 1|2-choice 2|3-choice 3
>> 
>> when I view my form I see the choices as follows:
>> 
>> choice 1
>> choice 2
>> choice 3
>> 
>> which is what I expect, however...if I change the value before the dash or
>> remove the
>> selection all together from the class all items which have that selection
>> get the "hidden" value.
>> 
>> For instance, if a page was created using "choice 1", and the selection of
>> "choice 1" exists in the class, then viewing the page will indeed show
>> "choice 1".  However, if I remove  "choice 1" or change it to "selection 1"
>> for instance, then all instances previously using that selection will then
>> display "1".
>> 
>> is there any way to prevent previously created pages from changes when the
>> class changes?
>> ___
>> 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


[xwiki-users] URL loop error

2014-10-14 Thread Jason Clemons

> Hey All,
>  
> I’m hoping someone can help me out.. My wiki installation has stopped 
> working.  I’m running it in Tomcat 8 from the ROOT folder “C:\Program Files 
> (x86)\Tomcat\webapps\ROOT” (the only app running on the server), nothing has 
> changed other than content in the wiki itself, but all of a sudden my users 
> can’t login and the URL has become really long. 
>  
> If I navigate to localhost:8080/bin/Main I get the following response:
>  
> localhost:8080/bin/Main/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/XWikiLogin?srid=YGlMoFBd&xredirect=%2Fbin%2FMain%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2FXWikiLogin%3Fsrid%3DYGlMoFBd%26xredirect%3D%252Fbin%252FMain%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252FXWikiLogin%253Fsrid%253DYGlMoFBd%2526xredirect%253D%25252Fbin%25252FMain%25252Fbin%25252Flogin%25252FXWiki%25252Fbin%25252Flogin%25252FXWiki
>  
> except the URL actually goes on for much longer…   I used to get this every 
> now and again, but always restarting Tomcat would fix it, but now it doesn’t 
> and none of my users can login.  I found an article here  
> http://jira.xwiki.org/browse/XE-1401 which seems to point to a similar issue, 
> but the fix illustrated does not fix my issue. 
>  
> Any help is greatly appreciated
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] URL loop error

2014-10-15 Thread Jason Clemons
I think this had to do with failing LDAP credentials.. I changed 
xwiki.authentication.ldap=0 and the problem went away.  I had moved my 
installation file from one server to another for testing and the test server 
didn't have access to LDAP, thus the issue. 

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens 
Klein-Robbenhaar
Sent: Wednesday, October 15, 2014 12:51 AM
To: users@xwiki.org
Subject: Re: [xwiki-users] URL loop error

Hi Jason,

 which version of XWiki is this, actually?

I tries to reproduce it, assuming someone has created a "login' space of the 
like, but so far no avail.

Do your users see the login form at all, or keeps the browser on redirecting?
Or does the problem only happen after the login?
Anything in the server log file, e.g. about cookies being messed up or the like?

Cheers
Clemens

> 
>> Hey All,
>>  
>> I’m hoping someone can help me out.. My wiki installation has stopped 
>> working.  I’m running it in Tomcat 8 from the ROOT folder “C:\Program Files 
>> (x86)\Tomcat\webapps\ROOT” (the only app running on the server), nothing has 
>> changed other than content in the wiki itself, but all of a sudden my users 
>> can’t login and the URL has become really long. 
>>  
>> If I navigate to localhost:8080/bin/Main I get the following response:
>>  
>> localhost:8080/bin/Main/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/XWikiLogin?srid=YGlMoFBd&xredirect=%2Fbin%2FMain%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2FXWikiLogin%3Fsrid%3DYGlMoFBd%26xredirect%3D%252Fbin%252FMain%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FX
 Wiki%252F
bin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252FXWikiLogin%253Fsrid%253DYGlMoFBd%2526xredirect%253D%25252Fbin%25252FMain%25252Fbin%25252Flogin%25252FXWiki%25252Fbin%25252Flogin%25252FXWiki
>>  
>> except the URL actually goes on for much longer…   I used to get this every 
>> now and again, but always restarting Tomcat would fix it, but now it doesn’t 
>> and none of my users can login.  I found an article here  
>> http://jira.xwiki.org/browse/XE-1401 which seems to point to a similar 
>> issue, but the fix illustrated does not fix my issue. 
>>  
>> Any help is greatly appreciated
> ___
> 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] URL loop error

2014-10-16 Thread Jason Clemons
Yep, the bin/login part of the URL just repeats until the URL is too long to 
display then I get a 500 error.  This seems to happen in my production 
environment as well, but I just assumed that it's when LDAP doesn't respond 
quickly enough.  

If I reboot my production server it happens 100% of the time, and I have to 
then cycle Tomcat once or twice to get it to stop happening.

My configuration is Windows 2008, Tomcat 8, Xwiki 5.4 (I think), SQL Server 
2012, latest JRE..  



> On Oct 16, 2014, at 1:55 AM, Clemens Klein-Robbenhaar 
>  wrote:
> 
> 
> I have to admit that is a bit puzzling to me. If you keep ldap enabled, but 
> also temporarily enable the 'superadmin' account, is the problem also present 
> for the superadmin?
> 
>> On 10/16/2014 06:56 AM, Jason Clemons wrote:
>> I think this had to do with failing LDAP credentials.. I changed 
>> xwiki.authentication.ldap=0 and the problem went away.  I had moved my 
>> installation file from one server to another for testing and the test server 
>> didn't have access to LDAP, thus the issue. 
>> 
>> -Original Message-
>> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens 
>> Klein-Robbenhaar
>> Sent: Wednesday, October 15, 2014 12:51 AM
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] URL loop error
>> 
>> Hi Jason,
>> 
>> which version of XWiki is this, actually?
>> 
>> I tries to reproduce it, assuming someone has created a "login' space of the 
>> like, but so far no avail.
>> 
>> Do your users see the login form at all, or keeps the browser on redirecting?
>> Or does the problem only happen after the login?
>> Anything in the server log file, e.g. about cookies being messed up or the 
>> like?
>> 
>> Cheers
>> Clemens
>> 
>>> 
>>>> Hey All,
>>>> 
>>>> I’m hoping someone can help me out.. My wiki installation has stopped 
>>>> working.  I’m running it in Tomcat 8 from the ROOT folder “C:\Program 
>>>> Files (x86)\Tomcat\webapps\ROOT” (the only app running on the server), 
>>>> nothing has changed other than content in the wiki itself, but all of a 
>>>> sudden my users can’t login and the URL has become really long. 
>>>> 
>>>> If I navigate to localhost:8080/bin/Main I get the following response:
>>>> 
>>>> localhost:8080/bin/Main/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/bin/login/XWiki/XWikiLogin?srid=YGlMoFBd&xredirect=%2Fbin%2FMain%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2Fbin%2Flogin%2FXWiki%2FXWikiLogin%3Fsrid%3DYGlMoFBd%26xredirect%3D%252Fbin%252FMain%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252Fbin%252Flogin%252F
> X
>> Wiki%252F
>> bin%252Flogin%252FXWiki%252Fbin%252Flogin%252FXWiki%252FXWikiLogin%253Fsrid%253DYGlMoFBd%2526xredirect%253D%25252Fbin%25252FMain%25252Fbin%25252Flogin%25252FXWiki%25252Fbin%25252Flogin%25252FXWiki
>>>> 
>>>> except the URL actually goes on for much longer…   I used to get this 
>>>> every now and again, but always restarting Tomcat would fix it, but now it 
>>>> doesn’t and none of my users can login.  I found an article here  
>>>> http://jira.xwiki.org/browse/XE-1401 which seems to point to a similar 
>>>> issue, but the fix illustrated does not fix my issue. 
>>>> 
>>>> Any help is greatly appreciated
>>> ___
>>> 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
>> 
> 
> 
> 
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
> 
> -- 
> Cleme

[xwiki-users] velocity page search

2014-10-16 Thread Jason Clemons
Hello all,

I have some "brute force" velocity code that basically iterates all my spaces 
looking for a page, then checks if the page is "new" or not. if the page is 
"new" I know that the page doesn't exist in that space and so I go to the next 
space and repeat until I find a page that is NOT new.   Once I have the page I 
then do some stuff with it.  This works ok in my small environment, but makes 
me cringe when I think about scalability.  

Does anyone know a way in Velocity to return a URL from a search of all pages 
in all spaces in my wiki quickly?  I'd sure like to be able to say 
$search.pages(page-to-search) or something like that..

Thanks in advance..
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] velocity page search

2014-10-16 Thread Jason Clemons
Hey Marius, 

Thanks for your response.. the query manager is essentially what my code
does, but how do I query without knowing what space it's in?  Can you give
me an example of what you mean.. ?  usually I query using space.page syntax,
am I missing something?

Thanks in advance... 


-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru
Florea
Sent: Thursday, October 16, 2014 9:59 PM
To: XWiki Users
Subject: Re: [xwiki-users] velocity page search

When I need to search for a wiki page I usually have to choose between:

(1) Database search using the Query Manager. There are plenty of examples
here http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module

(2) Full text search using Solr
http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API

Hope this helps,
Marius
On Oct 17, 2014 1:41 AM, "Jason Clemons"  wrote:
>
> Hello all,
>
> I have some "brute force" velocity code that basically iterates all my
spaces looking for a page, then checks if the page is "new" or not. if the
page is "new" I know that the page doesn't exist in that space and so I go
to the next space and repeat until I find a page that is NOT new.   Once I
have the page I then do some stuff with it.  This works ok in my small
environment, but makes me cringe when I think about scalability.
>
> Does anyone know a way in Velocity to return a URL from a search of all
pages in all spaces in my wiki quickly?  I'd sure like to be able to say
$search.pages(page-to-search) or something like that..
>
> Thanks in advance..
> ___
> 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] velocity page search

2014-10-17 Thread Jason Clemons
definitely it does, thanks for taking the time to respond, I appreciate it.



> On Oct 17, 2014, at 1:40 AM, Marius Dumitru Florea 
>  wrote:
> 
>> On Fri, Oct 17, 2014 at 9:35 AM, Jason Clemons  
>> wrote:
>> Hey Marius,
>> 
>> Thanks for your response.. the query manager is essentially what my code
>> does, but how do I query without knowing what space it's in?  Can you give
>> me an example of what you mean.. ?  usually I query using space.page syntax,
>> am I missing something?
> 
> $services.query.xwql('where doc.name like :name').bindValue('name',
> '%foo%').execute()
> 
> Hope this helps,
> Marius
> 
>> 
>> Thanks in advance...
>> 
>> 
>> -Original Message-
>> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru
>> Florea
>> Sent: Thursday, October 16, 2014 9:59 PM
>> To: XWiki Users
>> Subject: Re: [xwiki-users] velocity page search
>> 
>> When I need to search for a wiki page I usually have to choose between:
>> 
>> (1) Database search using the Query Manager. There are plenty of examples
>> here http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
>> 
>> (2) Full text search using Solr
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API
>> 
>> Hope this helps,
>> Marius
>>> On Oct 17, 2014 1:41 AM, "Jason Clemons"  wrote:
>>> 
>>> Hello all,
>>> 
>>> I have some "brute force" velocity code that basically iterates all my
>> spaces looking for a page, then checks if the page is "new" or not. if the
>> page is "new" I know that the page doesn't exist in that space and so I go
>> to the next space and repeat until I find a page that is NOT new.   Once I
>> have the page I then do some stuff with it.  This works ok in my small
>> environment, but makes me cringe when I think about scalability.
>>> 
>>> Does anyone know a way in Velocity to return a URL from a search of all
>> pages in all spaces in my wiki quickly?  I'd sure like to be able to say
>> $search.pages(page-to-search) or something like that..
>>> 
>>> Thanks in advance..
>>> ___
>>> 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Monitoring an Xwiki stack

2014-10-31 Thread Jason Clemons
I's also find any suggestions very helpful, I've had that happen a few times 
and outside of monitoring CPU and RAM, I've found logging to be difficult to 
use and configure, and even when I get it configured it's not very helpful.



> On Oct 31, 2014, at 1:57 PM, Bryn Jeffries  
> wrote:
> 
> Having made my XWiki site available to other users, I was concerned to find 
> that the site became unusable at one point with client connections eventually 
> timing out. I had no way to diagnose the problem, but eventually I managed to 
> make a (slow) SSH connection to the server and restarted Tomcat, and things 
> seemed to settle back to normal.
> 
> The problem is I have no real sense of what happened and how to prevent it 
> happening again. To that end, I'd appreciate any suggestions for monitoring 
> the server and diagnosing poor performance. What do others typically use? I 
> have an Apache2 server passing wiki page requests to Tomcat7 via an ajp 
> connector, and a PostgreSQL database. My guess is that Tomcat is doing most 
> of the work here so that's probably what I need to monitor the most.
> ___
> 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] Livetable results hidden from everyone but Admin?

2014-11-05 Thread Jason Clemons
Hello all,

I have this odd problem and I'm hoping someone can help.  I was messing with 
permissions and now all my regular users, other than admins can't see any rows 
in ANY LiveTable.  I've checked permissions on every related object I can think 
of and can't find anything out of the ordinary, but I can't think of anything 
else that might be causing the issue.  Any help is GREATLY appreciated...

Thanks in advance,

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


Re: [xwiki-users] Livetable results hidden from everyone but Admin?

2014-11-05 Thread Jason Clemons
Sorry.. do you mean that if the admin has view rights = true that other
users are implicitly denied?

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
Sent: Wednesday, November 5, 2014 4:04 PM
To: XWiki Users
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

Hi Jason,

Maybe you have not given view rights *explicitly* to the Admin user (i.e.
the admin user has "view" checked). In this case, all other users are
denied the right.

Thanks,
Eduard

On Thu, Nov 6, 2014 at 12:55 AM, Jason Clemons 
wrote:

> Hello all,
>
> I have this odd problem and I'm hoping someone can help.  I was messing
> with permissions and now all my regular users, other than admins can't see
> any rows in ANY LiveTable.  I've checked permissions on every related
> object I can think of and can't find anything out of the ordinary, but I
> can't think of anything else that might be causing the issue.  Any help is
> GREATLY appreciated...
>
> Thanks in advance,
>
> Jason
> ___
> 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] Livetable results hidden from everyone but Admin?

2014-11-05 Thread Jason Clemons
I just checked, and it appears that NONE of the granular permissions is
checked on any of the object / pages related to LiveTable.. 

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Jason Clemons
Sent: Wednesday, November 5, 2014 8:34 PM
To: 'XWiki Users'
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

Sorry.. do you mean that if the admin has view rights = true that other
users are implicitly denied?

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
Sent: Wednesday, November 5, 2014 4:04 PM
To: XWiki Users
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

Hi Jason,

Maybe you have not given view rights *explicitly* to the Admin user (i.e.
the admin user has "view" checked). In this case, all other users are
denied the right.

Thanks,
Eduard

On Thu, Nov 6, 2014 at 12:55 AM, Jason Clemons 
wrote:

> Hello all,
>
> I have this odd problem and I'm hoping someone can help.  I was messing
> with permissions and now all my regular users, other than admins can't see
> any rows in ANY LiveTable.  I've checked permissions on every related
> object I can think of and can't find anything out of the ordinary, but I
> can't think of anything else that might be causing the issue.  Any help is
> GREATLY appreciated...
>
> Thanks in advance,
>
> Jason
> ___
> 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] Livetable results hidden from everyone but Admin?

2014-11-05 Thread Jason Clemons
So, I'm thinking that can't be the issue.. anyone else have anything to
offer?  I'm a bit confused..

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Jason Clemons
Sent: Wednesday, November 5, 2014 8:53 PM
To: 'XWiki Users'
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

I just checked, and it appears that NONE of the granular permissions is
checked on any of the object / pages related to LiveTable.. 

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Jason Clemons
Sent: Wednesday, November 5, 2014 8:34 PM
To: 'XWiki Users'
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

Sorry.. do you mean that if the admin has view rights = true that other
users are implicitly denied?

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
Sent: Wednesday, November 5, 2014 4:04 PM
To: XWiki Users
Subject: Re: [xwiki-users] Livetable results hidden from everyone but Admin?

Hi Jason,

Maybe you have not given view rights *explicitly* to the Admin user (i.e.
the admin user has "view" checked). In this case, all other users are
denied the right.

Thanks,
Eduard

On Thu, Nov 6, 2014 at 12:55 AM, Jason Clemons 
wrote:

> Hello all,
>
> I have this odd problem and I'm hoping someone can help.  I was messing
> with permissions and now all my regular users, other than admins can't see
> any rows in ANY LiveTable.  I've checked permissions on every related
> object I can think of and can't find anything out of the ordinary, but I
> can't think of anything else that might be causing the issue.  Any help is
> GREATLY appreciated...
>
> Thanks in advance,
>
> Jason
> ___
> 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Access value of property on same page

2014-11-11 Thread Jason Clemons

Hello all,

I have a list on a page which defaults to a value defined in the objects of the 
page.  What I want to do is access the value of the list after the page is 
refreshed from velocity code on the same page.  My users would open the page 
and see the lists with their default values, then select some values from the 
list and press a button causing a post-back.  After the post-back happens, I 
need to essentially "reflect" the selection that the user made from velocity 
code.  

So far if I use the following code:

#set($obj = $doc.getObject("myspace.myclass",0))
$doc.display("myprop","view",$obj)

But, I get the default value after the page posts back, even though the 
selected value persists.

Any help is greatly appreciated.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] documentation

2014-12-04 Thread Jason Clemons


Hello all,

is there documentation I can refer to that lists all the properties of "doc".

I find most of the stuff I need in HQL or Velocity or whatever are attributes 
of a document, but I'd like to see all possible attributes and their meaning 
somewhere if it exists.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Query external MSSQL DB in a wiki page

2014-12-08 Thread Jason Clemons
Hello,

Can anyone point me in the right direction?  I'm trying to query and external 
Microsoft SQL database from a wiki page.  My current wiki runs on MSSQL just 
fine using sqljdbc4.jar configured with hibernate.  The DB I want to query is 
actually on the same server, I can actually make it appear in the same DB if 
that makes things easier.  

I've looked at SQL Tools extension --> 
http://extensions.xwiki.org/xwiki/bin/view/Extension/SQL+Tools  and I can get 
that to work just fine even querying the other database, but I don't know how 
to make the results of a query from that tool appear in a separate page I've 
created for use in Velocity for example.  

I've tried to get the example on the "Execute SQL" page here --> 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Execute+SQL to work but I 
get a Groovy error on the second snippet and nothing at all appears on the page 
using the first snippet (but no error).

I've also looked at this plugin --> 
http://xwikisql.gradsoft.ua/docs/XWikiSqlPluginGuide.html  but it hasn't been 
updated since 2008, so I'm not really sure that's a good idea from a 
sustainability perspective in a production environment.

Ultimately, I will have a flat table in some database, really any database 
(e.g..it can be the XWIKI DB)..and I need to be able to get the rows and 
columns from the table and expose them as an HTML table in my wiki page.  Once 
I figure out how to get the data making it into a table is easy enough, but I 
can't even figure out how to get an object or array with the data in it to 
iterate.

All help is greatly appreciated.

Thanks in advance,

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


[xwiki-users] Page created from Velocity with template can't be edited

2014-12-09 Thread Jason Clemons
Hello all,

I have an issue with some Velocity code I got from here ---> 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Page+With+Object

When the code runs the resulting page is created and the template is used, but 
none of my users can edit the page after (not even the admin).  It looks like 
the template page was actually included in the page, not that the page was 
created "from" the template.  

Here is the code I'm using:

{{velocity}}
 
#set($newDoc = $xwiki.getDocument("Sandbox.TestPage"))
$newDoc.setTitle("TestPage")
$newDoc.setParent("Sandbox.WebHome")
$newDoc.setContent('{{include document="Templates.TemplateToUse"/}}')
 
$newDoc.save()
 
{{/velocity}}

When I go to my space and create a new page manually and select to use a 
template for the new page the resulting page CAN be edited appropriately using 
the EXACT SAME TEMPLATE, so I'm very confused.

Any help is greatly appreciated
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] What would you like to see in the XWiki 7.x cycle?

2014-12-09 Thread Jason Clemons
I have say, upgrading makes me very nervous too..so, I'd definitely vote for 
anything that changes or enhances that process.  So far, I'm terrified to even 
try an upgrade (currently on 5.4) since my wiki is production and we've done a 
fair bit of customized solutions to unique problems (likely not in a 
"supported" way maybe) .  My fear is that some piece of code or settings will 
get overwritten which will break stuff and I won't know where to look to fix 
them.  😃

A wizard would be awesome to take the guess work out of it.  As is, I've read 
some of the tutorials out there regarding upgrades several times but I'm not 
really able to determine the prescribed steps using those.

I think at the end of the day I'm going to end up exporting my solutions as 
XAR's and then try importing them into an upgraded Xwiki environment too, since 
it seems easier to me.

> On Dec 9, 2014, at 2:58 PM, Jeremie BOUSQUET  
> wrote:
> 
> Le 9 déc. 2014 22:37, "Thomas Mortagne"  a écrit
> :
>> 
>> On Tue, Dec 9, 2014 at 10:28 PM, Guillaume Lerouge 
> wrote:
>>> Hi,
>>> 
>>> On Tue, Dec 9, 2014 at 10:23 PM, Thomas Mortagne <
> thomas.morta...@xwiki.com>
>>> wrote:
>>> 
 On Tue, Dec 9, 2014 at 9:57 PM, Harald Ommang > 
 wrote:
> Hi!
> 
> In one way, I very much appreciate the relatively high frequency of
 updates done by the XWIKI crew. You are doing a great job, making sure
> that
 XWIKI is alive and kicking and always improving.
> 
> The downside to this, is all the work needed to be done when
> upgrading.
 So, I don't do that very often. The basic part of
> installation/migration
 works very well, but when it comes to content, the upgrade procedure is
 messy, as I see it. It is a hassle to have to pick and choose between
 various parts when importing and exported XAR.
> 
> I would very much suggest planning for a future where the parts that
> are
 XWIKI software are clearly separated from the parts where customers
 typically do modifications. Especially items like users and groups. It
 should be possible to have a more separated export/import so that you
> GET
 new versions of e.g. the admin pages, while still KEEPING your setup of
 users, groups, etc., without having to click on a million of
> checkboxes in
 the import.
 
 I don't really understand this comment, doing export/import is really
 not the standard way of doing an upgrade. In typical upgrade you
 backup everything if you want to be safe (or better you have automated
 backups and you don't really need to do it when you upgrade), upgrade
 the WAR part (if you use the Debian package then it's just about doing
 apt-get upgrade or install with a specific version), restart, XWiki
 upgrade the database shema automatically if needed and then you get
 the Distribution Wizard which download and upgrade the wiki pages with
 3 ways merge. Most of the time you don't have anything to do.
>>> 
>>> Sure, but to benefit from all those nice Distribution Wizard features,
>>> Harald would first need to... upgrade to the latest version ;-)
>> 
>> Distribution Wizard has been introduced in 4.2 so not really the
>> latest version. And even before that export/import everything never
>> really been standard upgrade process either.
> 
> Sure, but you usually did reverse way : import new xwiki ui xar (and
> remember to uncheck standard pages customized, or have them overwritten).
> And yes, it was sometimes a hassle, and compared to that distribution
> wizard is really really great :)
> 
>> 
>>> 
>>> Guillaume
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>> 
>> 
>> 
>> --
>> Thomas Mortagne
>> ___
>> 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


[xwiki-users] Run external script to generate data for wiki page

2014-12-16 Thread Jason Clemons

> Hello all,
> 
> I'm wondering if anyone has done anything like this before so, I thought I'd 
> ask it here.  Essentially, what I want to do is have a page / form that my 
> users fill out and then submit.  Upon submit I need to invoke an external 
> script (e.g..Perl, Python, VBScript, Batch etc...) that will do some quick 
> data gathering then insert some data in a database.  Once the script 
> generates the data the page will then retrieve it and render some results 
> based on it.  Most of the mechanics I can figure out I think, but I wanted to 
> get some tips on the best way to actually invoke the script from a page in 
> Xwiki.  
> 
> Any ideas or suggestions are appreciated...
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Run external script to generate data for wiki page

2014-12-18 Thread Jason Clemons
Bump... :)

Hello all,

I'm wondering if anyone has done anything like this before so, I thought I'd
ask it here.  Essentially, what I want to do is have a page / form that my
users fill out and then submit.  Upon submit I need to invoke an external
script (e.g..Perl, Python, VBScript, Batch etc...) that will do some quick
data gathering then insert some data in a database.  Once the script
generates the data the page will then retrieve it and render some results
based on it.  Most of the mechanics I can figure out I think, but I wanted
to get some tips on the best way to actually invoke the script from a page
in Xwiki.  
Any ideas or suggestions are appreciated...
___
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] Run external script to generate data for wiki page

2014-12-18 Thread Jason Clemons
I have control over the script..so it can be in the CGI bin...would I then be 
able to invoke it through velocity?



> On Dec 18, 2014, at 6:01 PM, Bryn Jeffries  
> wrote:
> 
> How "external" is the external script? Couldn't you wrap the script into a 
> cgi script on the same server and invoke it from the client with an AJAX call?
> ________
> From: Jason Clemons [jason.clem...@live.com]
> Sent: 19 December 2014 10:00
> To: 'XWiki Users'
> Subject: Re: [xwiki-users] Run external script to generate data for wiki page
> 
> Bump... :)
> 
> Hello all,
> 
> I'm wondering if anyone has done anything like this before so, I thought I'd
> ask it here.  Essentially, what I want to do is have a page / form that my
> users fill out and then submit.  Upon submit I need to invoke an external
> script (e.g..Perl, Python, VBScript, Batch etc...) that will do some quick
> data gathering then insert some data in a database.  Once the script
> generates the data the page will then retrieve it and render some results
> based on it.  Most of the mechanics I can figure out I think, but I wanted
> to get some tips on the best way to actually invoke the script from a page
> in Xwiki.
> Any ideas or suggestions are appreciated...
> ___
> 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


[xwiki-users] prevent page save

2015-01-08 Thread Jason Clemons
Hello all, 

I've implemented some client side page validation using JavaScript which works 
well, but I want to implement some simple checks on server side also.  I know 
how to evaluate the values in my UI using velocity after the page is submitted, 
but how do I prevent the page from saving if my criteria isn't met?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] column name in LiveTable rendered by documents macro

2015-01-21 Thread Jason Clemons
Hello all,

I've changed the columns that are rendered in my space index by adding a 
"columns" attribute as described by the article here 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Documents+Macro and the 
column I added does show up as expected (doc.creator), but the header column 
for my added columns label is "platform.index.doc.creator" I'd like to change 
it to "Creator" but nothing I do seems to work..any help is greatly appreciated.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Server side validation / block save

2015-01-30 Thread Jason Clemons
Hello all, 

 

I'm hoping someone can give me a suggestion to save my skin.  When I was
brand new to xwiki I quickly created an application for "ticketing" using
AppWithinMinutes because it seemed like the easiest way for a newbie to
create an application.  In doing so I created a form which had several
controls on it (e.g.. around 20 or so).  In order to maintain business logic
I wrote EXTENSIVE JavaScript which enforces business rules and prevents a
save (basically cancelling the postback through JavaScript) if they aren't
met.  Admittedly this isn't that great of a solution as now I'm having
problems with JavaScript failures (mostly with other libraries being loaded
with xwiki which prevents my JavaScript from running) which then allow the
pages to be saved despite validation failures.   

 

What I'm hoping is that there is some way to "shim" some server side code in
using an event listener, or some sort of "before save" event in velocity or
groovy that can evaluate the submitted page and prevent a save if the
business logic rules are broken.  

 

I don't really have the luxury of re-writing or refactoring the solution
I've written because it's in production at this point and works 95% of the
time, but I definitely need to do more in relation to validation since
broken rules cause downstream impacts to other applications relying on clean
data.  

 

So, any help is GREATLY appreciated.  I have seen this
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid
ation+and+tooltips and reviewed it, but I can't really figure out how I
would use it with an existing page or with AppWithinMinutes.  

 

Also, I already have an event listener configured which does some stuff that
I might be able to use for this purpose.. but I think those events
(DocumentCreatedEvent() and DocumentUpdatedEvent()) happens AFTER the save
and I haven't really been able to find a way to "block" the save if it does
happen before anyway.. 

 

I would need to invoke validation on save and update of documents too.. I'm
hoping there might be some way of adding code to the AppWithinMinutes
generated page that can do some post save validation and stop the save if it
fails. 

 

So help !!! :)

 

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


[xwiki-users] HQL selected index of combo box list

2015-02-03 Thread Jason Clemons
Hello all,

I have no issue getting the value of a combo box control in HQL using 
"ComboBoxName.value = 'foobar'" but is there a way to get the selected index of 
the combobox in my query?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Server side validation / block save

2015-02-03 Thread Jason Clemons
bump...please help :)

> On Jan 30, 2015, at 10:50 AM, Jason Clemons  wrote:
> 
> Hello all, 
> 
> 
> 
> I'm hoping someone can give me a suggestion to save my skin.  When I was
> brand new to xwiki I quickly created an application for "ticketing" using
> AppWithinMinutes because it seemed like the easiest way for a newbie to
> create an application.  In doing so I created a form which had several
> controls on it (e.g.. around 20 or so).  In order to maintain business logic
> I wrote EXTENSIVE JavaScript which enforces business rules and prevents a
> save (basically cancelling the postback through JavaScript) if they aren't
> met.  Admittedly this isn't that great of a solution as now I'm having
> problems with JavaScript failures (mostly with other libraries being loaded
> with xwiki which prevents my JavaScript from running) which then allow the
> pages to be saved despite validation failures.   
> 
> 
> 
> What I'm hoping is that there is some way to "shim" some server side code in
> using an event listener, or some sort of "before save" event in velocity or
> groovy that can evaluate the submitted page and prevent a save if the
> business logic rules are broken.  
> 
> 
> 
> I don't really have the luxury of re-writing or refactoring the solution
> I've written because it's in production at this point and works 95% of the
> time, but I definitely need to do more in relation to validation since
> broken rules cause downstream impacts to other applications relying on clean
> data.  
> 
> 
> 
> So, any help is GREATLY appreciated.  I have seen this
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid
> ation+and+tooltips and reviewed it, but I can't really figure out how I
> would use it with an existing page or with AppWithinMinutes.  
> 
> 
> 
> Also, I already have an event listener configured which does some stuff that
> I might be able to use for this purpose.. but I think those events
> (DocumentCreatedEvent() and DocumentUpdatedEvent()) happens AFTER the save
> and I haven't really been able to find a way to "block" the save if it does
> happen before anyway.. 
> 
> 
> 
> I would need to invoke validation on save and update of documents too.. I'm
> hoping there might be some way of adding code to the AppWithinMinutes
> generated page that can do some post save validation and stop the save if it
> fails. 
> 
> 
> 
> So help !!! :)
> 
> 
> 
> ___
> 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] Server side validation / block save

2015-02-06 Thread Jason Clemons

Hey Clemens, 
 
Thanks so much for the response I really appreciate it.  
 
Ok.. I have the first part working which I think is the "plumbing" but I'm not 
sure of the next step. 
 
So far I've implemented this in my "sheet" page:
 
$doc.setValidationScript("ValidationSample.ValidationGroovy")
$doc.validate()
 
I've validated that the page is returning a value from 
ValidationSample.ValidationGroovy because when I explicitly change the values 
in the ValidationSample.ValidationGroovy page, I see the value reflected on my 
sheet when it is instantiated. 
 
I definitely understand that the "meat" of my validation logic goes in the 
ValidationSample.ValidationGroovy page, and I understand how to return a value 
from that page.. but how do I stop/intercept the actual save of the page?
 
Currently regardless of the value I return (e.g.. true of false) the page save 
happens the same. I think the part I'm missing is in the "How to validate and 
save the document in CreateDoc" section of the tutorial listed here ==> 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips#HHowtovalidateandsavethedocumentinCreateDoc
 although, I'm having some trouble understanding WHERE that code should live 
and what exactly its function is. 
 
Does the CreateDoc implementation live in my application sheet, or does it live 
in it's own sheet named CreateDoc? (which is how it is implemented in the 
example).  Is the CreateDoc essentially the code that is "shimed" in between 
the save event and the actual save? If so, how is it called?
 
Thanks again for all your help


> On Feb 5, 2015, at 3:33 AM, Clemens Klein-Robbenhaar 
>  wrote:
> 
>> On 02/03/2015 04:57 PM, Jason Clemons wrote:
>> bump...please help :)
>> 
>>> On Jan 30, 2015, at 10:50 AM, Jason Clemons  wrote:
>>> 
>>> Hello all, 
>>> 
>>> 
>>> 
>>> I'm hoping someone can give me a suggestion to save my skin.  When I was
>>> brand new to xwiki I quickly created an application for "ticketing" using
>>> AppWithinMinutes because it seemed like the easiest way for a newbie to
>>> create an application.  In doing so I created a form which had several
>>> controls on it (e.g.. around 20 or so).  In order to maintain business logic
>>> I wrote EXTENSIVE JavaScript which enforces business rules and prevents a
>>> save (basically cancelling the postback through JavaScript) if they aren't
>>> met.  Admittedly this isn't that great of a solution as now I'm having
>>> problems with JavaScript failures (mostly with other libraries being loaded
>>> with xwiki which prevents my JavaScript from running) which then allow the
>>> pages to be saved despite validation failures.   
>>> 
>>> 
>>> 
>>> What I'm hoping is that there is some way to "shim" some server side code in
>>> using an event listener, or some sort of "before save" event in velocity or
>>> groovy that can evaluate the submitted page and prevent a save if the
>>> business logic rules are broken.  
>>> 
>>> 
>>> 
>>> I don't really have the luxury of re-writing or refactoring the solution
>>> I've written because it's in production at this point and works 95% of the
>>> time, but I definitely need to do more in relation to validation since
>>> broken rules cause downstream impacts to other applications relying on clean
>>> data.  
>>> 
>>> 
>>> 
>>> So, any help is GREATLY appreciated.  I have seen this
>>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid
>>> ation+and+tooltips and reviewed it, but I can't really figure out how I
>>> would use it with an existing page or with AppWithinMinutes.  
> 
> There is no inherent magic in AppWithingMinutes created pages,
> you can edit the generated pages the same as manually created ones.
> (There is no guarantee these modifications will survive if you change the 
> data structure via AppWithinMinutes;
> I remember there is a step in the wizard which asks you if the wizard can 
> update
> the sheets - this is the place where the wizard lets you know the changes get 
> lost ;))
> 
> 
> So, anyway, ou should have a space containing your "AppCode" ... and there 
> should be  the "Sheet" page containing the code for viewing your items, which 
> includes the edit view.
> If looking in the DocumentIndex for the page, it is one of these ending with 
> Sheet ;) and yes, it is hidden, so fix up your settings first.
> 
&

[xwiki-users] how to get debug messages in log

2015-02-09 Thread Jason Clemons


Hello all, which logging configuration do I need to make to see he results of 
println from Groovy?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] how to get debug messages in log

2015-02-09 Thread Jason Clemons
is there a way to log a message from groovy?



> On Feb 9, 2015, at 12:14 PM, "vinc...@massol.net"  wrote:
> 
> Hi Jason,
> 
> 
> On 9 Feb 2015 at 19:32:28, Jason Clemons 
> (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
> 
> > 
> > 
> > Hello all, which logging configuration do I need to make to see he results 
> > of println from Groovy?
> 
> No logs, it goes to the page being rendered…
> 
> Thanks
> -Vincent
> 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] HQL selected index of combo box list

2015-02-11 Thread Jason Clemons
is this not possible?



> On Feb 3, 2015, at 8:56 AM, Jason Clemons  wrote:
> 
> Hello all,
> 
> I have no issue getting the value of a combo box control in HQL using 
> "ComboBoxName.value = 'foobar'" but is there a way to get the selected index 
> of the combobox in my query?
> ___
> 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] Hide buttons in AppWithinMinutes solutions

2015-02-11 Thread Jason Clemons
Hello all,

Is there a way to hide "Preview" and "Save and Continue" buttons in forms 
created using AppWithinMinutes?

I tried hiding them via CSS extension, using Display:None; but a specific 
button is a bit more difficult to get a CSS handle on since they aren't 
generated with an ID tag..  

I suppose I could hide it using JavaScript, but I'm trying to avoid that if I 
can

Thanks in advance
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] HQL selected index of combo box list

2015-02-11 Thread Jason Clemons
Hey Marius,

Thanks for responding...my form has multiple comboboxes each having a value of 
essentially "Select a status" or "Select a type" etc..as the 0 index for 
each..while indexes 1 thru N are valid selections, index selection 0 will never 
be  a valid selection since its the default prompt.  

Initially I tried using the ID of the combobox as an index (e.g..selection 0 is 
"Select a status|0") and I was planning on using that 0 for validation logic.  
However, I ended up needing the ID meta for another purpose related to my 
application downstream.  

Ultimately I ended up writing code that says if combobox value = "Select 
status" then prevent page save.  However, this approach doesn't really scale 
all that well because I have multiple comboboxes on my form which all have 
different default values at index 0 (depending on the context of the combobox). 
However what is always true in my entire form is that index 0 of any combobox 
is never a valid selection, so I was hoping to access that  to determine if the 
user actually selected a value or left the default.

This type of thing is a pretty common attribute of UI elements in other 
programming environments so I was thinking that the controls in Xwiki might 
have something similar.  I can certainly work around it (and I have for my 
current solution) but really wanted to know for future use.

Thanks again for taking the time
to respond, the support you guys give is SUPER valuable to me and keeps me 
moving forward in most cases, so I really appreciate it.

> On Feb 11, 2015, at 11:11 PM, Marius Dumitru Florea 
>  wrote:
> 
> A combo box (drop down, select) is just an UI element. What is saved
> in the database (and thus what you can query) is normally the selected
> raw value(s) and maybe the list of supported raw values (what you can
> choose from). Sometimes the labels (display values) are also stored in
> the database. But I've never heard of storing the indexes, **unless**
> the index is the value. Why do you need the index? The index is very
> fragile as you can add new supported values and the order can changed.
> 
> Hope  this helps,
> Marius
> 
>> On Thu, Feb 12, 2015 at 2:19 AM, Jason Clemons  
>> wrote:
>> is this not possible?
>> 
>> 
>> 
>>> On Feb 3, 2015, at 8:56 AM, Jason Clemons  wrote:
>>> 
>>> Hello all,
>>> 
>>> I have no issue getting the value of a combo box control in HQL using 
>>> "ComboBoxName.value = 'foobar'" but is there a way to get the selected 
>>> index of the combobox in my query?
>>> ___
>>> 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


[xwiki-users] Length of string in HQL query

2015-02-12 Thread Jason Clemons


Hello all,

Is there a way to test the length of a string property using HQL?  I want to 
use length as a criteria in my WHERE clause, but I can't seem to find an 
example anywhere of the syntax or if it's even possible.

Thanks in advance,

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