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
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to