[WireHose-dev] Conexiones
S. Tunji Turner
vision at firstsightmedia.com
Fri Oct 5 00:42:08 EDT 2007
i added this method call, to the offending error method, and
everything is working well. so i thought i would share.
/**
TBD. Returns user's tag.childTags(). Subclasses can override
this to create additional fetchers.
*/
protected NSArray tagsForFetchers() {
createGroupIfNecessary();
return group().childTags().arrayByAddingObject(group());
}
gary in any comments?
WireHose-dev at public.codefab.com
On Jun 22, 2007, at 11:24 PM, vision at firstsightmedia.com wrote:
> thats the answer i have needed for over a year. thanks gary. i was
> manually creating groups for users in the db tables myself
>
>
>
>
>
>> Try overriding the createGroupIfNecessary() in User.java with this
>> implementation:
>>
>> public WHGroup createGroupIfNecessary() {
>> WHGroup group = (WHGroup)storedValueForKey("group");
>> if (group == null && login() != null && !editingContext
>> ().globalIDForObject(this).isTemporary()) {
>> WHEngageTag.createTagsFromTemplate(login(), groupTemplate(),
>> groupParent());
>> group = (WHGroup)WHTag.tagForPath(editingContext(),
>> WHTag.EntityDelimiter + "WHGroup" + WHTag.EntityDelimiter + "Users" +
>> WHTag.PathDelimiter + userTypePlural() + WHTag.PathDelimiter+login(),
>> false);
>> group.setIsUser(true);
>> takeStoredValueForKey(group, "group");
>> }
>> return (WHGroup)storedValueForKey("group");
>> }
>>
>> On Jun 22, 2007, at 9:05 AM, Leigh McMullen wrote:
>>
>>> Hi,
>>>
>>> I'm having the same issue with Conexiones as was stated on a thread
>>> back in January. Has anyone worked out a solution to this issue?
>>>
>>> [2007-06-22 11:04:40 CDT] <main> A fatal exception occurred: null
>>> [2007-06-22 11:04:40 CDT] <main> java.lang.NullPointerException
>>> at User.tagsForFetchers(User.java:93)
>>>
>>>
>>>
>>> Thanks
>>>
>>> Leigh
>>>
>>>
>>> _______________________________________________
>>> WireHose-dev mailing list
>>> WireHose-dev at public.codefab.com
>>> http://public.codefab.com/mailman/listinfo/wirehose-dev
>>
>> --
>> WireHose: Smart metadata and personalization for WebObjects.
>> http://wirehose.com/
>>
>>
>> _______________________________________________
>> WireHose-dev mailing list
>> WireHose-dev at public.codefab.com
>> http://public.codefab.com/mailman/listinfo/wirehose-dev
>>
>
> _______________________________________________
> WireHose-dev mailing list
> WireHose-dev at public.codefab.com
> http://public.codefab.com/mailman/listinfo/wirehose-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.codefab.com/pipermail/wirehose-dev/attachments/20071005/4b601e4b/attachment.html
More information about the WireHose-dev
mailing list