[xwiki-users] class database list property should be empty when creating document
Hi guys, I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2. Cheers Sebastian
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values. When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hello everyone, I want to create a list of links in the following way: Inside a space, I want in the <space>.webhome create a set of links that helps me navigate inside the space. Suppose I have inside a space pages A, B and C, and all these pages have subpages A1, A2, B1, B2, C1, C2. I want to automatically create (a lateral panel would be better...) a tree view that shows me the following, case I am in page A2: -<Space> -A -A1 -A2 +B +C Does anyone have a snippet of code that does this? I am trying to create a code for that, but I am not getting a lot of progress. Thanks a lot for the help! - Roney Castro
Hi guys, thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance. Cheers, Sebastian On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion? Thanx, Sebastian On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance. Cheers, Sebastian On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Sebastian, I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list. One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc.. Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue. Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it. Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation. Hope this helps, Guillaume On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi Guillaume, man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed? Cheers, Sebastian On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas? Cheers, Sebastian On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote: > Hi guys, > > I created a few days ago some documents based on my own class which > has databse list properties. In the respective template fields, there > was no entry selected when creating the document which is the > behaviour I need. When I now create a document based on the same class > the first entry is selected a priori and there is no way to deselect, > i.e. have nothing selected, it. The old documents still have the > ability to deselect the entry in inline editing mode. Can you guys > please tell me, what might have happened here or could it be a bug? I > dont't understand this apparently undeterministic behaviour. Many > thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote: > Sebastian Kannengiesser wrote: >> Hi guys, >> >> I created a few days ago some documents based on my own class which >> has databse list properties. In the respective template fields, there >> was no entry selected when creating the document which is the >> behaviour I need. When I now create a document based on the same class >> the first entry is selected a priori and there is no way to deselect, >> i.e. have nothing selected, it. The old documents still have the >> ability to deselect the entry in inline editing mode. Can you guys >> please tell me, what might have happened here or could it be a bug? I >> dont't understand this apparently undeterministic behaviour. Many >> thanx in advance. BTW, this is in XWiki 1.7.2. > > Do you create documents based on a template? If so, check that the > template wasn't changed to have a value selected. When using document > templates, the template is fully copied, including selected values. > > When you say you could deselect the selected value, do you mean that you > could Ctrl+Click, or that there was a blank row you could select? If it > was Ctrl+Click, check the multiselect setting for the property. > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi Guillaume, just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/ Cheers, Sebastian On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge <[email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote: > Hi guys, > > thanx Sergiu for your reply. I create documents based on a class which > defines database list properties. > I did not change anything in that class between when "the blank row" > in the selection box in inline editing mode was present and now where > it disappeared for new documents. BTW, in this particular case I do > not have multiselect enabled. The alphabetically first entry is > selected as the blank row isn't there anymore. Any ideas? Help is > desperately needed. Thanx for all input in advance. > > Cheers, > Sebastian > > On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote: >> Sebastian Kannengiesser wrote: >>> Hi guys, >>> >>> I created a few days ago some documents based on my own class which >>> has databse list properties. In the respective template fields, there >>> was no entry selected when creating the document which is the >>> behaviour I need. When I now create a document based on the same class >>> the first entry is selected a priori and there is no way to deselect, >>> i.e. have nothing selected, it. The old documents still have the >>> ability to deselect the entry in inline editing mode. Can you guys >>> please tell me, what might have happened here or could it be a bug? I >>> dont't understand this apparently undeterministic behaviour. Many >>> thanx in advance. BTW, this is in XWiki 1.7.2. >> >> Do you create documents based on a template? If so, check that the >> template wasn't changed to have a value selected. When using document >> templates, the template is fully copied, including selected values. >> >> When you say you could deselect the selected value, do you mean that you >> could Ctrl+Click, or that there was a blank row you could select? If it >> was Ctrl+Click, check the multiselect setting for the property. >> -- >> Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users >> >
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi again, issue solved! but not understood yet. I just remembered having a 5 day old export of my whole wiki. I tried that one and see, the issue is gone. :-) I will look into it and see, if I find diffs which could have caused the trouble. Cheers, Sebastian On Wed, Mar 11, 2009 at 3:42 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/
Cheers, Sebastian
On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge <[email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote: > Hi, > > sorry guys for bumping this up again. But can you tell me, what > possibly made the "blank row" in a database list property selection > box disappear? I need it and it should be preselected, when creating a > new document. I had this behaviour before and cannot tell, what made > the blank row disappear. Any suggestion? > > Thanx, > Sebastian > > On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser > <[email protected]> wrote: >> Hi guys, >> >> thanx Sergiu for your reply. I create documents based on a class which >> defines database list properties. >> I did not change anything in that class between when "the blank row" >> in the selection box in inline editing mode was present and now where >> it disappeared for new documents. BTW, in this particular case I do >> not have multiselect enabled. The alphabetically first entry is >> selected as the blank row isn't there anymore. Any ideas? Help is >> desperately needed. Thanx for all input in advance. >> >> Cheers, >> Sebastian >> >> On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote: >>> Sebastian Kannengiesser wrote: >>>> Hi guys, >>>> >>>> I created a few days ago some documents based on my own class which >>>> has databse list properties. In the respective template fields, there >>>> was no entry selected when creating the document which is the >>>> behaviour I need. When I now create a document based on the same class >>>> the first entry is selected a priori and there is no way to deselect, >>>> i.e. have nothing selected, it. The old documents still have the >>>> ability to deselect the entry in inline editing mode. Can you guys >>>> please tell me, what might have happened here or could it be a bug? I >>>> dont't understand this apparently undeterministic behaviour. Many >>>> thanx in advance. BTW, this is in XWiki 1.7.2. >>> >>> Do you create documents based on a template? If so, check that the >>> template wasn't changed to have a value selected. When using document >>> templates, the template is fully copied, including selected values. >>> >>> When you say you could deselect the selected value, do you mean that you >>> could Ctrl+Click, or that there was a blank row you could select? If it >>> was Ctrl+Click, check the multiselect setting for the property. >>> -- >>> Sergiu Dumitriu >>> http://purl.org/net/sergiu/ >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/users >>> >> > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Sebastian, On Wed, Mar 11, 2009 at 3:50 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again, issue solved! but not understood yet.
Great :-)
I just remembered having a 5 day old export of my whole wiki. I tried that one and see, the issue is gone. :-) I will look into it and see, if I find diffs which could have caused the trouble.
Please file a JIRA issue if/when you manage to identify what the issue was. Thanks, Guillaume
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:42 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/
Cheers, Sebastian
On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge <[email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge < [email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
> Hi, > > how can I check what happened to my class, that the blank row is > missing now in new objects. It would be really nice if you could help > me with this. I desperately need the DBList property to have nothing > selected in the default state. Many, many thanx in advance. > > Cheers, > Sebastian > > On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser > <[email protected]> wrote: > > Hi, > > > > sorry guys for bumping this up again. But can you tell me, what > > possibly made the "blank row" in a database list property selection > > box disappear? I need it and it should be preselected, when creating a > > new document. I had this behaviour before and cannot tell, what made > > the blank row disappear. Any suggestion? > > > > Thanx, > > Sebastian > > > > On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser > > <[email protected]> wrote: > >> Hi guys, > >> > >> thanx Sergiu for your reply. I create documents based on a class which > >> defines database list properties. > >> I did not change anything in that class between when "the blank row" > >> in the selection box in inline editing mode was present and now where > >> it disappeared for new documents. BTW, in this particular case I do > >> not have multiselect enabled. The alphabetically first entry is > >> selected as the blank row isn't there anymore. Any ideas? Help is > >> desperately needed. Thanx for all input in advance. > >> > >> Cheers, > >> Sebastian > >> > >> On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu < [email protected]> > wrote: > >>> Sebastian Kannengiesser wrote: > >>>> Hi guys, > >>>> > >>>> I created a few days ago some documents based on my own class which > >>>> has databse list properties. In the respective template fields, there > >>>> was no entry selected when creating the document which is the > >>>> behaviour I need. When I now create a document based on the same class > >>>> the first entry is selected a priori and there is no way to deselect, > >>>> i.e. have nothing selected, it. The old documents still have the > >>>> ability to deselect the entry in inline editing mode. Can you guys > >>>> please tell me, what might have happened here or could it be a bug? I > >>>> dont't understand this apparently undeterministic behaviour. Many > >>>> thanx in advance. BTW, this is in XWiki 1.7.2. > >>> > >>> Do you create documents based on a template? If so, check that the > >>> template wasn't changed to have a value selected. When using document > >>> templates, the template is fully copied, including selected values. > >>> > >>> When you say you could deselect the selected value, do you mean that > you > >>> could Ctrl+Click, or that there was a blank row you could select? If it > >>> was Ctrl+Click, check the multiselect setting for the property. > >>> -- > >>> Sergiu Dumitriu > >>> http://purl.org/net/sergiu/ > >>> _______________________________________________ > >>> users mailing list > >>> [email protected] > >>> http://lists.xwiki.org/mailman/listinfo/users > >>> > >> > > > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi again, I still don't fully understand, what was causing the issue, but I came nearer I think. I don't know, whether this goes into the direction of being a bug or just a misuse of XWiki by myself. I'll try to describe, what I did that ended in the problem of the blank line not being there. 1. I had classes AClass, BClass and CClass which had some set of properties defined. 2. Based on them I created some documents, lets call the ADoc1,..,ADocn, BDoc1,...,BDocn and so on. 3. I decided, I need a new class called DClass, that should on the one hand wrap together some of the documents of classes A,B,C and on the other hand replace the need for some properties in AClass, BClass and CClass. 4. Consequently I renamed AClass,... to AClassOld (I don't know if its allowed to let a class end in some different literal than Class), further I went on and renamed the template to AClassTemplateOld,... and did the same with the Sheet. 5. I recreated AClass, BClass, CClass with a subset of the original properties and recreated the Template and Sheet as well. 6. I found that everything worked to my expectations, so I removed all the class files ending in "Old". -> This is, what made the issue appear!!! To be precise, removing AClassTemplateOld,... is enough, as I just found out, after removing these again from my again working backup I put into my XWiki yesterday. The reason I removed the "Old" template files again is, that they get shown by running this code: #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.${class}Class' and obj.name<>'XWiki.${class}ClassTemplate'") #foreach ($item in $xwiki.searchDocuments($sql)) * [$item.substring($mathtool.add($item.indexOf("."),1))>$item] #end So, it would be great if you could tell me, if I did something wrong in the sense that XWiki is not prepared to handle it technically. The issue occuring by this (the missing blank line) remains logically uncorrelated to what I did. I'm very interested of what is going on there internally. Another question I have is: How do I get rid now of the old classes AClassOld, BClassOld, CClassOld and all their templates and sheets without ending in the blank line missing issue again. Many thanx for your discussion on this in advance. Cheers, Sebastian On Wed, Mar 11, 2009 at 3:56 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
On Wed, Mar 11, 2009 at 3:50 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again, issue solved! but not understood yet.
Great :-)
I just remembered having a 5 day old export of my whole wiki. I tried that one and see, the issue is gone. :-) I will look into it and see, if I find diffs which could have caused the trouble.
Please file a JIRA issue if/when you manage to identify what the issue was. Thanks, Guillaume
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:42 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/
Cheers, Sebastian
On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge <[email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
man thanx for your reply. Apparently something inside my XWiki instance is broke. As I wanted to try what you suggest I found that any new class I define with a DBListProperty has that "blank" line missing :-( As I said before, the already existing objects still have it when editing them. The question now is, where the blank line is actually coming from, i.e. where in XWiki's architecture does it get inserted. Maybe the issue can easily be fixed?
Cheers, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge < [email protected]> wrote: > Hi Sebastian, > > I tried reproducing your issue but didn't succeed in doing so so far. When > creating a class with only a DBList property, I can select either an item > from the list or a blank line. The blank line is located at the very bottom > of the list. > > One thing you might want to try is to re-create your class. To do so, go to > another page and use the class editor to recreate a class with the same > properties, same queries in your DBList properties etc.. > > Then rename the page where your first class is and rename the page where > your second class is to the name of your first class. In effet, your second > class deifinition will take the place of the first one. With a little luck, > recreating the class might fix your issue. > > Before renaming the second class to the name of the first one, try creating > an object using it and see whether it allows you to have a blank select. If > it does, rename it. > > Your objects won't be lost in the process. If it looks like they're broken > at some point, that will be only because they lack the reference to their > original class. In any case, you'll still be able to rename the first class > to its original name to bring the wiki back to its current situation. > > Hope this helps, > > Guillaume > > On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < > [email protected]> wrote: > >> Hi, >> >> how can I check what happened to my class, that the blank row is >> missing now in new objects. It would be really nice if you could help >> me with this. I desperately need the DBList property to have nothing >> selected in the default state. Many, many thanx in advance. >> >> Cheers, >> Sebastian >> >> On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser >> <[email protected]> wrote: >> > Hi, >> > >> > sorry guys for bumping this up again. But can you tell me, what >> > possibly made the "blank row" in a database list property selection >> > box disappear? I need it and it should be preselected, when creating a >> > new document. I had this behaviour before and cannot tell, what made >> > the blank row disappear. Any suggestion? >> > >> > Thanx, >> > Sebastian >> > >> > On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser >> > <[email protected]> wrote: >> >> Hi guys, >> >> >> >> thanx Sergiu for your reply. I create documents based on a class which >> >> defines database list properties. >> >> I did not change anything in that class between when "the blank row" >> >> in the selection box in inline editing mode was present and now where >> >> it disappeared for new documents. BTW, in this particular case I do >> >> not have multiselect enabled. The alphabetically first entry is >> >> selected as the blank row isn't there anymore. Any ideas? Help is >> >> desperately needed. Thanx for all input in advance. >> >> >> >> Cheers, >> >> Sebastian >> >> >> >> On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu < [email protected]> >> wrote: >> >>> Sebastian Kannengiesser wrote: >> >>>> Hi guys, >> >>>> >> >>>> I created a few days ago some documents based on my own class which >> >>>> has databse list properties. In the respective template fields, there >> >>>> was no entry selected when creating the document which is the >> >>>> behaviour I need. When I now create a document based on the same class >> >>>> the first entry is selected a priori and there is no way to deselect, >> >>>> i.e. have nothing selected, it. The old documents still have the >> >>>> ability to deselect the entry in inline editing mode. Can you guys >> >>>> please tell me, what might have happened here or could it be a bug? I >> >>>> dont't understand this apparently undeterministic behaviour. Many >> >>>> thanx in advance. BTW, this is in XWiki 1.7.2. >> >>> >> >>> Do you create documents based on a template? If so, check that the >> >>> template wasn't changed to have a value selected. When using document >> >>> templates, the template is fully copied, including selected values. >> >>> >> >>> When you say you could deselect the selected value, do you mean that >> you >> >>> could Ctrl+Click, or that there was a blank row you could select? If it >> >>> was Ctrl+Click, check the multiselect setting for the property. >> >>> -- >> >>> Sergiu Dumitriu >> >>> http://purl.org/net/sergiu/ >> >>> _______________________________________________ >> >>> users mailing list >> >>> [email protected] >> >>> http://lists.xwiki.org/mailman/listinfo/users >> >>> >> >> >> > >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users >> > > > > -- > Guillaume Lerouge > Product Manager - XWiki > Skype ID : wikibc > http://guillaumelerouge.com/ > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Sebastian, On Thu, Mar 12, 2009 at 10:26 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again,
I still don't fully understand, what was causing the issue, but I came nearer I think. I don't know, whether this goes into the direction of being a bug or just a misuse of XWiki by myself. I'll try to describe, what I did that ended in the problem of the blank line not being there.
1. I had classes AClass, BClass and CClass which had some set of properties defined. 2. Based on them I created some documents, lets call the ADoc1,..,ADocn, BDoc1,...,BDocn and so on. 3. I decided, I need a new class called DClass, that should on the one hand wrap together some of the documents of classes A,B,C and on the other hand replace the need for some properties in AClass, BClass and CClass. 4. Consequently I renamed AClass,... to AClassOld (I don't know if its allowed to let a class end in some different literal than Class), further I went on and renamed the template to AClassTemplateOld,... and did the same with the Sheet. 5. I recreated AClass, BClass, CClass with a subset of the original properties and recreated the Template and Sheet as well. 6. I found that everything worked to my expectations, so I removed all the class files ending in "Old".
-> This is, what made the issue appear!!! To be precise, removing AClassTemplateOld,... is enough, as I just found out, after removing these again from my again working backup I put into my XWiki yesterday.
The reason I removed the "Old" template files again is, that they get shown by running this code:
#set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.${class}Class' and obj.name<>'XWiki.${class}ClassTemplate'") #foreach ($item in $xwiki.searchDocuments($sql)) * [$item.substring($mathtool.add($item.indexOf("."),1))>$item] #end
If you do not want the old templates to be shown, you can simply modify the query code as follows : #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.${class}Class' and obj.name<>'XWiki.${class}ClassTemplate' and obj.name<>'XWiki.${class}ClassTemplateOld'") #foreach ($item in $xwiki.searchDocuments($sql)) * [$item.substring($mathtool.add($item.indexOf("."),1))>$item] #end Basically, you can add this part : and obj.name<>'DocumentSpace.DocumentName' that tells the query to ignore some XWiki documents / objects when retrieving matching documents.
So, it would be great if you could tell me, if I did something wrong in the sense that XWiki is not prepared to handle it technically. The issue occuring by this (the missing blank line) remains logically uncorrelated to what I did. I'm very interested of what is going on there internally.
No idea about what may have happened underneath.
Another question I have is: How do I get rid now of the old classes AClassOld, BClassOld, CClassOld and all their templates and sheets without ending in the blank line missing issue again.
Using the snippet I provided they won't show up in your query results. I know that's only a workaround, but I'm not familiar enough with XWiki's inner workings to do best ;-) Hope this helps, Guillaume
Many thanx for your discussion on this in advance.
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:56 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
On Wed, Mar 11, 2009 at 3:50 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again, issue solved! but not understood yet.
Great :-)
I just remembered having a 5 day old export of my whole wiki. I tried that one and see, the issue is gone. :-) I will look into it and see, if I find diffs which could have caused the trouble.
Please file a JIRA issue if/when you manage to identify what the issue was. Thanks, Guillaume
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:42 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/
Cheers, Sebastian
On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge < [email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
update: I exported/imported a class, having my issue into another XWiki instance and the blank line is there again. So apparently something in my first XWiki instance must be broke and not the class itself as it seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
Cheers, Sebastian
On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser <[email protected]> wrote: > Hi Guillaume, > > man thanx for your reply. Apparently something inside my XWiki > instance is broke. > As I wanted to try what you suggest I found that any new class I > define with a DBListProperty has that "blank" line missing :-( > As I said before, the already existing objects still have it when editing them. > The question now is, where the blank line is actually coming from, > i.e. where in XWiki's architecture does it get inserted. Maybe the > issue can easily be fixed? > > Cheers, > Sebastian > > On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge < [email protected]> wrote: >> Hi Sebastian, >> >> I tried reproducing your issue but didn't succeed in doing so so far. When >> creating a class with only a DBList property, I can select either an item >> from the list or a blank line. The blank line is located at the very bottom >> of the list. >> >> One thing you might want to try is to re-create your class. To do so, go to >> another page and use the class editor to recreate a class with the same >> properties, same queries in your DBList properties etc.. >> >> Then rename the page where your first class is and rename the page where >> your second class is to the name of your first class. In effet, your second >> class deifinition will take the place of the first one. With a little luck, >> recreating the class might fix your issue. >> >> Before renaming the second class to the name of the first one, try creating >> an object using it and see whether it allows you to have a blank select. If >> it does, rename it. >> >> Your objects won't be lost in the process. If it looks like they're broken >> at some point, that will be only because they lack the reference to their >> original class. In any case, you'll still be able to rename the first class >> to its original name to bring the wiki back to its current situation. >> >> Hope this helps, >> >> Guillaume >> >> On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < >> [email protected]> wrote: >> >>> Hi, >>> >>> how can I check what happened to my class, that the blank row is >>> missing now in new objects. It would be really nice if you could help >>> me with this. I desperately need the DBList property to have nothing >>> selected in the default state. Many, many thanx in advance. >>> >>> Cheers, >>> Sebastian >>> >>> On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser >>> <[email protected]> wrote: >>> > Hi, >>> > >>> > sorry guys for bumping this up again. But can you tell me, what >>> > possibly made the "blank row" in a database list property selection >>> > box disappear? I need it and it should be preselected, when creating a >>> > new document. I had this behaviour before and cannot tell, what made >>> > the blank row disappear. Any suggestion? >>> > >>> > Thanx, >>> > Sebastian >>> > >>> > On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser >>> > <[email protected]> wrote: >>> >> Hi guys, >>> >> >>> >> thanx Sergiu for your reply. I create documents based on a class which >>> >> defines database list properties. >>> >> I did not change anything in that class between when "the blank row" >>> >> in the selection box in inline editing mode was present and now where >>> >> it disappeared for new documents. BTW, in this particular case I do >>> >> not have multiselect enabled. The alphabetically first entry is >>> >> selected as the blank row isn't there anymore. Any ideas? Help is >>> >> desperately needed. Thanx for all input in advance. >>> >> >>> >> Cheers, >>> >> Sebastian >>> >> >>> >> On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu < [email protected]> >>> wrote: >>> >>> Sebastian Kannengiesser wrote: >>> >>>> Hi guys, >>> >>>> >>> >>>> I created a few days ago some documents based on my own class which >>> >>>> has databse list properties. In the respective template fields, there >>> >>>> was no entry selected when creating the document which is the >>> >>>> behaviour I need. When I now create a document based on the same class >>> >>>> the first entry is selected a priori and there is no way to deselect, >>> >>>> i.e. have nothing selected, it. The old documents still have the >>> >>>> ability to deselect the entry in inline editing mode. Can you guys >>> >>>> please tell me, what might have happened here or could it be a bug? I >>> >>>> dont't understand this apparently undeterministic behaviour. Many >>> >>>> thanx in advance. BTW, this is in XWiki 1.7.2. >>> >>> >>> >>> Do you create documents based on a template? If so, check that the >>> >>> template wasn't changed to have a value selected. When using document >>> >>> templates, the template is fully copied, including selected values. >>> >>> >>> >>> When you say you could deselect the selected value, do you mean that >>> you >>> >>> could Ctrl+Click, or that there was a blank row you could select? If it >>> >>> was Ctrl+Click, check the multiselect setting for the property. >>> >>> -- >>> >>> Sergiu Dumitriu >>> >>> http://purl.org/net/sergiu/ >>> >>> _______________________________________________ >>> >>> users mailing list >>> >>> [email protected] >>> >>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >>> >> >>> > >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/users >>> >> >> >> >> -- >> Guillaume Lerouge >> Product Manager - XWiki >> Skype ID : wikibc >> http://guillaumelerouge.com/ >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users >> > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi Guillaume, thanx for your answer. The workaround is better than showing the old templates but understanding the issue would be even better. Anyway, I'm happy now that I at least have the blank line again. Maybe someone else being more familiar with the XWiki internals has dome ideas. Thanx again for your time Guillaume, Sebastian On Thu, Mar 12, 2009 at 10:36 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
On Thu, Mar 12, 2009 at 10:26 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again,
I still don't fully understand, what was causing the issue, but I came nearer I think. I don't know, whether this goes into the direction of being a bug or just a misuse of XWiki by myself. I'll try to describe, what I did that ended in the problem of the blank line not being there.
1. I had classes AClass, BClass and CClass which had some set of properties defined. 2. Based on them I created some documents, lets call the ADoc1,..,ADocn, BDoc1,...,BDocn and so on. 3. I decided, I need a new class called DClass, that should on the one hand wrap together some of the documents of classes A,B,C and on the other hand replace the need for some properties in AClass, BClass and CClass. 4. Consequently I renamed AClass,... to AClassOld (I don't know if its allowed to let a class end in some different literal than Class), further I went on and renamed the template to AClassTemplateOld,... and did the same with the Sheet. 5. I recreated AClass, BClass, CClass with a subset of the original properties and recreated the Template and Sheet as well. 6. I found that everything worked to my expectations, so I removed all the class files ending in "Old".
-> This is, what made the issue appear!!! To be precise, removing AClassTemplateOld,... is enough, as I just found out, after removing these again from my again working backup I put into my XWiki yesterday.
The reason I removed the "Old" template files again is, that they get shown by running this code:
#set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.${class}Class' and obj.name<>'XWiki.${class}ClassTemplate'") #foreach ($item in $xwiki.searchDocuments($sql)) * [$item.substring($mathtool.add($item.indexOf("."),1))>$item] #end
If you do not want the old templates to be shown, you can simply modify the query code as follows : #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.${class}Class' and obj.name<>'XWiki.${class}ClassTemplate' and obj.name<>'XWiki.${class}ClassTemplateOld'") #foreach ($item in $xwiki.searchDocuments($sql)) * [$item.substring($mathtool.add($item.indexOf("."),1))>$item] #end
Basically, you can add this part : and obj.name<>'DocumentSpace.DocumentName' that tells the query to ignore some XWiki documents / objects when retrieving matching documents.
So, it would be great if you could tell me, if I did something wrong in the sense that XWiki is not prepared to handle it technically. The issue occuring by this (the missing blank line) remains logically uncorrelated to what I did. I'm very interested of what is going on there internally.
No idea about what may have happened underneath.
Another question I have is: How do I get rid now of the old classes AClassOld, BClassOld, CClassOld and all their templates and sheets without ending in the blank line missing issue again.
Using the snippet I provided they won't show up in your query results. I know that's only a workaround, but I'm not familiar enough with XWiki's inner workings to do best ;-) Hope this helps, Guillaume
Many thanx for your discussion on this in advance.
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:56 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
On Wed, Mar 11, 2009 at 3:50 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi again, issue solved! but not understood yet.
Great :-)
I just remembered having a 5 day old export of my whole wiki. I tried that one and see, the issue is gone. :-) I will look into it and see, if I find diffs which could have caused the trouble.
Please file a JIRA issue if/when you manage to identify what the issue was. Thanks, Guillaume
Cheers, Sebastian
On Wed, Mar 11, 2009 at 3:42 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi Guillaume,
just tried that. Importing the whole wiki into another "empty" XWiki instance, does not remove the issue, so there must be some trouble within my pages. :-/
Cheers, Sebastian
On Wed, Mar 11, 2009 at 2:12 PM, Guillaume Lerouge < [email protected]> wrote:
Hi,
On Wed, Mar 11, 2009 at 1:55 PM, Sebastian Kannengiesser < [email protected]> wrote:
> update: > I exported/imported a class, having my issue into another XWiki > instance and the blank line is there again. So apparently something in > my first XWiki instance must be broke and not the class itself as it > seems. Any ideas?
No idea about what may have caused that. Is exporting your full wiki to your second instance and replacing the first with the second an option? Guillaule
> Cheers, > Sebastian > > On Wed, Mar 11, 2009 at 12:56 PM, Sebastian Kannengiesser > <[email protected]> wrote: > > Hi Guillaume, > > > > man thanx for your reply. Apparently something inside my XWiki > > instance is broke. > > As I wanted to try what you suggest I found that any new class I > > define with a DBListProperty has that "blank" line missing :-( > > As I said before, the already existing objects still have it when editing > them. > > The question now is, where the blank line is actually coming from, > > i.e. where in XWiki's architecture does it get inserted. Maybe the > > issue can easily be fixed? > > > > Cheers, > > Sebastian > > > > On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge < [email protected]> > wrote: > >> Hi Sebastian, > >> > >> I tried reproducing your issue but didn't succeed in doing so so far. > When > >> creating a class with only a DBList property, I can select either an > item > >> from the list or a blank line. The blank line is located at the very > bottom > >> of the list. > >> > >> One thing you might want to try is to re-create your class. To do so, go > to > >> another page and use the class editor to recreate a class with the same > >> properties, same queries in your DBList properties etc.. > >> > >> Then rename the page where your first class is and rename the page where > >> your second class is to the name of your first class. In effet, your > second > >> class deifinition will take the place of the first one. With a little > luck, > >> recreating the class might fix your issue. > >> > >> Before renaming the second class to the name of the first one, try > creating > >> an object using it and see whether it allows you to have a blank select. > If > >> it does, rename it. > >> > >> Your objects won't be lost in the process. If it looks like they're > broken > >> at some point, that will be only because they lack the reference to > their > >> original class. In any case, you'll still be able to rename the first > class > >> to its original name to bring the wiki back to its current situation. > >> > >> Hope this helps, > >> > >> Guillaume > >> > >> On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < > >> [email protected]> wrote: > >> > >>> Hi, > >>> > >>> how can I check what happened to my class, that the blank row is > >>> missing now in new objects. It would be really nice if you could help > >>> me with this. I desperately need the DBList property to have nothing > >>> selected in the default state. Many, many thanx in advance. > >>> > >>> Cheers, > >>> Sebastian > >>> > >>> On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser > >>> <[email protected]> wrote: > >>> > Hi, > >>> > > >>> > sorry guys for bumping this up again. But can you tell me, what > >>> > possibly made the "blank row" in a database list property selection > >>> > box disappear? I need it and it should be preselected, when creating > a > >>> > new document. I had this behaviour before and cannot tell, what made > >>> > the blank row disappear. Any suggestion? > >>> > > >>> > Thanx, > >>> > Sebastian > >>> > > >>> > On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser > >>> > <[email protected]> wrote: > >>> >> Hi guys, > >>> >> > >>> >> thanx Sergiu for your reply. I create documents based on a class > which > >>> >> defines database list properties. > >>> >> I did not change anything in that class between when "the blank row" > >>> >> in the selection box in inline editing mode was present and now > where > >>> >> it disappeared for new documents. BTW, in this particular case I do > >>> >> not have multiselect enabled. The alphabetically first entry is > >>> >> selected as the blank row isn't there anymore. Any ideas? Help is > >>> >> desperately needed. Thanx for all input in advance. > >>> >> > >>> >> Cheers, > >>> >> Sebastian > >>> >> > >>> >> On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu < [email protected]> > >>> wrote: > >>> >>> Sebastian Kannengiesser wrote: > >>> >>>> Hi guys, > >>> >>>> > >>> >>>> I created a few days ago some documents based on my own class > which > >>> >>>> has databse list properties. In the respective template fields, > there > >>> >>>> was no entry selected when creating the document which is the > >>> >>>> behaviour I need. When I now create a document based on the same > class > >>> >>>> the first entry is selected a priori and there is no way to > deselect, > >>> >>>> i.e. have nothing selected, it. The old documents still have the > >>> >>>> ability to deselect the entry in inline editing mode. Can you guys > >>> >>>> please tell me, what might have happened here or could it be a > bug? I > >>> >>>> dont't understand this apparently undeterministic behaviour. Many > >>> >>>> thanx in advance. BTW, this is in XWiki 1.7.2. > >>> >>> > >>> >>> Do you create documents based on a template? If so, check that the > >>> >>> template wasn't changed to have a value selected. When using > document > >>> >>> templates, the template is fully copied, including selected values. > >>> >>> > >>> >>> When you say you could deselect the selected value, do you mean > that > >>> you > >>> >>> could Ctrl+Click, or that there was a blank row you could select? > If it > >>> >>> was Ctrl+Click, check the multiselect setting for the property. > >>> >>> -- > >>> >>> Sergiu Dumitriu > >>> >>> http://purl.org/net/sergiu/ > >>> >>> _______________________________________________ > >>> >>> users mailing list > >>> >>> [email protected] > >>> >>> http://lists.xwiki.org/mailman/listinfo/users > >>> >>> > >>> >> > >>> > > >>> _______________________________________________ > >>> users mailing list > >>> [email protected] > >>> http://lists.xwiki.org/mailman/listinfo/users > >>> > >> > >> > >> > >> -- > >> Guillaume Lerouge > >> Product Manager - XWiki > >> Skype ID : wikibc > >> http://guillaumelerouge.com/ > >> _______________________________________________ > >> users mailing list > >> [email protected] > >> http://lists.xwiki.org/mailman/listinfo/users > >> > > > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Exists a template "treeview.vm" it use a tree of yahoo library. Take a look to this code. And you can see this tree in "http://Your_XWiki/bin/view/XWiki/Treeview CASTRO roney <[email protected]> CASTRO roney Enviado por: [email protected] 09/03/2009 12:13 Por favor, responda a XWiki Users Para: XWiki Users <[email protected]> cc: Asunto: [xwiki-users] Tree view Hello everyone, I want to create a list of links in the following way: Inside a space, I want in the <space>.webhome create a set of links that helps me navigate inside the space. Suppose I have inside a space pages A, B and C, and all these pages have subpages A1, A2, B1, B2, C1, C2. I want to automatically create (a lateral panel would be better...) a tree view that shows me the following, case I am in page A2: -<Space> -A -A1 -A2 +B +C Does anyone have a snippet of code that does this? I am trying to create a code for that, but I am not getting a lot of progress. Thanks a lot for the help! - Roney Castro _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi guys, I got to pop up this issue once more as I need help with something very related to it: I just recognized, that the blank line that I need in my DBLists is coming from the ClassTemplate that has an "empty object" on it. My hibernate statement is the following: "select prop.value from BaseObject as obj, StringProperty as prop where obj.className='XWiki.ServicesComponentClass' and prop.id.id=obj.id and prop.id.name='name' order by prop.value" The empty line, I was all the time talking about was coming from the Template of the class which had an empty property as its object was empty. For some reason this did not work any more for the template of my class itself (still not solved), but needed some other "empty" object added to any document. So I got my empty line. Now I want to change the query to this: "select doc.name from XWikiDocument doc, BaseObject as obj where obj.className='XWiki.ServicesComponentClass' and doc.fullName=obj.name order by doc.name" so actually returning me the document names of the specific class instead of the 'name" property as before. Based on my assumption what is causing a blank line in the DBList selection, how can I get a blank line in such a query, as this would need a document without a name, which is of course not possible. Many thanx for your suggestions, Sebastian On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Hi guys,
I created a few days ago some documents based on my own class which has databse list properties. In the respective template fields, there was no entry selected when creating the document which is the behaviour I need. When I now create a document based on the same class the first entry is selected a priori and there is no way to deselect, i.e. have nothing selected, it. The old documents still have the ability to deselect the entry in inline editing mode. Can you guys please tell me, what might have happened here or could it be a bug? I dont't understand this apparently undeterministic behaviour. Many thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Sebastian, On Wed, Mar 18, 2009 at 2:14 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi guys,
I got to pop up this issue once more as I need help with something very related to it:
I just recognized, that the blank line that I need in my DBLists is coming from the ClassTemplate that has an "empty object" on it.
My hibernate statement is the following:
"select prop.value from BaseObject as obj, StringProperty as prop where obj.className='XWiki.ServicesComponentClass' and prop.id.id=obj.id and prop.id.name='name' order by prop.value"
The empty line, I was all the time talking about was coming from the Template of the class which had an empty property as its object was empty. For some reason this did not work any more for the template of my class itself (still not solved), but needed some other "empty" object added to any document. So I got my empty line.
Now I want to change the query to this:
"select doc.name from XWikiDocument doc, BaseObject as obj where obj.className='XWiki.ServicesComponentClass' and doc.fullName=obj.name order by doc.name"
so actually returning me the document names of the specific class instead of the 'name" property as before.
Based on my assumption what is causing a blank line in the DBList selection, how can I get a blank line in such a query, as this would need a document without a name, which is of course not possible.
Well, actually you can kinda do it. The workaround I'm suggesting here is ugly, but it might work. Create a page which name is only "+" (Say, .../xwiki/bin/view/XWiki/+ ), then add an object from your class to the page. I think it will return a blank document name, thus a blank line in your select box. Guillaume
Many thanx for your suggestions, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote: > Hi guys, > > I created a few days ago some documents based on my own class which > has databse list properties. In the respective template fields, there > was no entry selected when creating the document which is the > behaviour I need. When I now create a document based on the same class > the first entry is selected a priori and there is no way to deselect, > i.e. have nothing selected, it. The old documents still have the > ability to deselect the entry in inline editing mode. Can you guys > please tell me, what might have happened here or could it be a bug? I > dont't understand this apparently undeterministic behaviour. Many > thanx in advance. BTW, this is in XWiki 1.7.2.
Do you create documents based on a template? If so, check that the template wasn't changed to have a value selected. When using document templates, the template is fully copied, including selected values.
When you say you could deselect the selected value, do you mean that you could Ctrl+Click, or that there was a blank row you could select? If it was Ctrl+Click, check the multiselect setting for the property. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi Guillaume, this indeed is ugly ;-), but it does the trick. :) Thanx. Isn't there a way, as I'm not to familiar with sql and hql to get an empty line from my result. So like selecting what I select in my query and additionally pseudoselect NULL or something? If something like this can be done in HQL, I would be interrested in how to do it. Thanx again, Sebastian On Wed, Mar 18, 2009 at 2:44 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
On Wed, Mar 18, 2009 at 2:14 PM, Sebastian Kannengiesser < [email protected]> wrote:
Hi guys,
I got to pop up this issue once more as I need help with something very related to it:
I just recognized, that the blank line that I need in my DBLists is coming from the ClassTemplate that has an "empty object" on it.
My hibernate statement is the following:
"select prop.value from BaseObject as obj, StringProperty as prop where obj.className='XWiki.ServicesComponentClass' and prop.id.id=obj.id and prop.id.name='name' order by prop.value"
The empty line, I was all the time talking about was coming from the Template of the class which had an empty property as its object was empty. For some reason this did not work any more for the template of my class itself (still not solved), but needed some other "empty" object added to any document. So I got my empty line.
Now I want to change the query to this:
"select doc.name from XWikiDocument doc, BaseObject as obj where obj.className='XWiki.ServicesComponentClass' and doc.fullName=obj.name order by doc.name"
so actually returning me the document names of the specific class instead of the 'name" property as before.
Based on my assumption what is causing a blank line in the DBList selection, how can I get a blank line in such a query, as this would need a document without a name, which is of course not possible.
Well, actually you can kinda do it. The workaround I'm suggesting here is ugly, but it might work. Create a page which name is only "+" (Say, .../xwiki/bin/view/XWiki/+ ), then add an object from your class to the page. I think it will return a blank document name, thus a blank line in your select box. Guillaume
Many thanx for your suggestions, Sebastian
On Wed, Mar 11, 2009 at 11:35 AM, Guillaume Lerouge <[email protected]> wrote:
Hi Sebastian,
I tried reproducing your issue but didn't succeed in doing so so far. When creating a class with only a DBList property, I can select either an item from the list or a blank line. The blank line is located at the very bottom of the list.
One thing you might want to try is to re-create your class. To do so, go to another page and use the class editor to recreate a class with the same properties, same queries in your DBList properties etc..
Then rename the page where your first class is and rename the page where your second class is to the name of your first class. In effet, your second class deifinition will take the place of the first one. With a little luck, recreating the class might fix your issue.
Before renaming the second class to the name of the first one, try creating an object using it and see whether it allows you to have a blank select. If it does, rename it.
Your objects won't be lost in the process. If it looks like they're broken at some point, that will be only because they lack the reference to their original class. In any case, you'll still be able to rename the first class to its original name to bring the wiki back to its current situation.
Hope this helps,
Guillaume
On Wed, Mar 11, 2009 at 11:18 AM, Sebastian Kannengiesser < [email protected]> wrote:
Hi,
how can I check what happened to my class, that the blank row is missing now in new objects. It would be really nice if you could help me with this. I desperately need the DBList property to have nothing selected in the default state. Many, many thanx in advance.
Cheers, Sebastian
On Tue, Mar 10, 2009 at 4:20 PM, Sebastian Kannengiesser <[email protected]> wrote:
Hi,
sorry guys for bumping this up again. But can you tell me, what possibly made the "blank row" in a database list property selection box disappear? I need it and it should be preselected, when creating a new document. I had this behaviour before and cannot tell, what made the blank row disappear. Any suggestion?
Thanx, Sebastian
On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser <[email protected]> wrote:
Hi guys,
thanx Sergiu for your reply. I create documents based on a class which defines database list properties. I did not change anything in that class between when "the blank row" in the selection box in inline editing mode was present and now where it disappeared for new documents. BTW, in this particular case I do not have multiselect enabled. The alphabetically first entry is selected as the blank row isn't there anymore. Any ideas? Help is desperately needed. Thanx for all input in advance.
Cheers, Sebastian
On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu <[email protected]> wrote: > Sebastian Kannengiesser wrote: >> Hi guys, >> >> I created a few days ago some documents based on my own class which >> has databse list properties. In the respective template fields, there >> was no entry selected when creating the document which is the >> behaviour I need. When I now create a document based on the same class >> the first entry is selected a priori and there is no way to deselect, >> i.e. have nothing selected, it. The old documents still have the >> ability to deselect the entry in inline editing mode. Can you guys >> please tell me, what might have happened here or could it be a bug? I >> dont't understand this apparently undeterministic behaviour. Many >> thanx in advance. BTW, this is in XWiki 1.7.2. > > Do you create documents based on a template? If so, check that the > template wasn't changed to have a value selected. When using document > templates, the template is fully copied, including selected values. > > When you say you could deselect the selected value, do you mean that you > could Ctrl+Click, or that there was a blank row you could select? If it > was Ctrl+Click, check the multiselect setting for the property. > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Sebastian Kannengiesser wrote:
Isn't there a way, as I'm not to familiar with sql and hql to get an empty line from my result. So like selecting what I select in my query and additionally pseudoselect NULL or something? If something like this can be done in HQL, I would be interrested in how to do it.
This is usually accomplished with UNION clauses in standard SQL. Unfortunately HQL does not support it. So the ugly hack provided by Guillaume is the only solution I know. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanx for the info Sergiu, Cheers, Sebastian On Wed, Mar 18, 2009 at 6:33 PM, Sergiu Dumitriu <[email protected]> wrote:
Sebastian Kannengiesser wrote:
Isn't there a way, as I'm not to familiar with sql and hql to get an empty line from my result. So like selecting what I select in my query and additionally pseudoselect NULL or something? If something like this can be done in HQL, I would be interrested in how to do it.
This is usually accomplished with UNION clauses in standard SQL. Unfortunately HQL does not support it. So the ugly hack provided by Guillaume is the only solution I know. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
CASTRO roney -
Guillaume Lerouge -
mesteves@telvent.com -
Sebastian Kannengiesser -
Sergiu Dumitriu