Re: [xwiki-users] Can Not Using WYSIWYG Editor Out Side Of Xwiki

2011-03-06 Thread Marius Dumitru Florea
On 03/07/2011 03:25 AM, Zhenhua Wang wrote:
> Hi everybody :
> I following this instructiong:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HUsetheWYSIWYGeditoroutsideXWiki
>   ,

> but it can not work properly in Chrome, but work well in FireFox,

What doesn't work properly? The editor (3.0M2) loads for me in Chrome 9 
and I can do basic formatting.

Hope this helps,
Marius

>
> Anyone know how to resolve it?
>
> Thanks!
>
> 王震华
>
> Email  :   michael.zhenhua.w...@gmail.com
> QQ :  409619295
> GTalk:michael.zhenhua.w...@gmail.com
> Yahoo :  java_xman
>
>
> 2011/3/3 Zhenhua Wang
>
>> Hi everybody :
>> I following this instructiong:
>>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HUsetheWYSIWYGeditoroutsideXWiki
>>   ,
>> but it can not work properly in Chrome, but work well in FireFox,
>>
>> Anyone know how to resolve it?
>> Attach is my test files .
>>
>>
>>
>> Thanks!
>> 王震华
>>
>> Email  :   michael.zhenhua.w...@gmail.com
>> QQ :  409619295
>> GTalk:michael.zhenhua.w...@gmail.com
>> Yahoo :  java_xman
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] struggling to understand panels expanding initial state

2011-03-06 Thread Raluca Stavro
Hello,

On Mon, Mar 7, 2011 at 12:39 AM, Ricardo Rodriguez [eBioTIC.] <
ricardo.rodrig...@ebiotic.net> wrote:

> Hi all!
>
> I'm still struggling to understand how expanded/collapsed state of
> panels do work.
>
> I'm currently using a 2.4.30451 XE/XEM installation.
>
> Looking for macros controlling this state in macros.vm, I see:
>
> ***
> #macro(panelheader $title)
> #set($cookieName = "${context.user.replaceAll(':','')}_${panel}")
> #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
> #if(!$expanded)
>   #set($expanded = 'expanded')
> #end
> ## Note: We pass the Panel name as an HTML class attribute so that it's
> possible to style
> ## the Panels selectively using CSS.
> #set ($specialClassAttribute = "")
> #if ($paneldoc && $paneldoc != "")
>   #set ($specialClassAttribute =
> $util.convertToAlphaNumeric($paneldoc.name))
> #end
> 
>  onclick="togglePanelVisibility(this.parentNode,
> '${cookieName}');">$title
> 
> #end
> ***
>
> This macro creates an expanded panel. By clicking the panel title, the
> system creates a cookie that stores her current state.
>
> But if I modify this macro and says...
>
> #if(!$expanded)
>   #set($expanded = 'collapsed')
> #end
>
> No macro is created and panels are always collapsed when loaded and
> after relaoding.
>

That is because 'collapsed' is used as a class name for the panel dom
element and there is also a CSS rule which says that panels with 'collapsed'
class name are being displayed as collapsed.
So, the default logic is like this:

1) take the $expanded value from a cookie
2) set the panel dom element class name as being the value of $expanded
3) on loading the page, with the help of CSS, display the panel as being
'collapsed' or 'expanded', depending on the value of $expanded

And in your case, this is the logic:

1) set the value of $expanded as being 'collapsed'
2) set the panel dom element class name as being the value of $expanded
(which is 'collapsed')
3) on loading the page, with the help of CSS, display the panel as being
'collapsed', this being the value of $expanded

I hope that this helps you understand the logic behind 'collapsed' and
'expanded' panels.

Raluca.

>
> Please, could you me understand why?
>
> Thank you so much!!!
>
> Ricardo
>
> --
> Ricardo Rodríguez
> CTO
> eBioTIC.
> Life Sciences, Data Modeling and Information Management Systems
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can Not Using WYSIWYG Editor Out Side Of Xwiki

2011-03-06 Thread Zhenhua Wang
Hi everybody :
   I following this instructiong:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HUsetheWYSIWYGeditoroutsideXWiki
 ,
but it can not work properly in Chrome, but work well in FireFox,

Anyone know how to resolve it?

Thanks!

王震华

Email  :   michael.zhenhua.w...@gmail.com
QQ :  409619295
GTalk:michael.zhenhua.w...@gmail.com
Yahoo :  java_xman


2011/3/3 Zhenhua Wang 

> Hi everybody :
>I following this instructiong:
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HUsetheWYSIWYGeditoroutsideXWiki
>   ,
> but it can not work properly in Chrome, but work well in FireFox,
>
> Anyone know how to resolve it?
> Attach is my test files .
>
>
>
> Thanks!
> 王震华
>
> Email  :   michael.zhenhua.w...@gmail.com
> QQ :  409619295
> GTalk:michael.zhenhua.w...@gmail.com
> Yahoo :  java_xman
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Login cookie validation hash mismatch problem when using Weblogic

2011-03-06 Thread ernn cabanban
Hi Users, 

I have been trying out Xwiki Enterprise 2.7 for a few weeks now. I have 
successfully installed it in Tomcat 6 and Oracle 9i environment. But my target 
appserver is Weblogic 10 and I also have some luck in successfully installing 
it there. I also have uploaded the xwiki 2.7.xar into the xwiki instance and 
successfully added it.

But I am encountering errors in Weblogic whenever I try logging into xwiki 
using Admin/admin. Here is the log file generated : 

2011-02-24 17:27:38,671 [http://localhost:7001/xwiki/bin/view/Main] INFO  
.AbstractXWikiMigrationManager  - No storage migration required since current 
version is [15429] 
2011-02-24 17:27:43,921 
[http://localhost:7001/xwiki/resources/css/microformats.css] WARN  
internal.DefaultVelocityEngine  - Deprecated usage of method 
[com.xpn.xwiki.api.XWiki.parseMessage] in /templates/exceptioninline.vm@1,24 
2011-02-24 17:27:50,468 
[http://localhost:7001/xwiki/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2Flocalhost%3A7001%2Fxwiki%2Fbin%2Fview%2FMain]
 WARN  internal.DefaultVelocityEngine  - Deprecated usage of method 
[com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login.vm@28,33 
2011-02-24 17:27:50,859 
[http://localhost:7001/xwiki/resources/css/microformats.css] WARN  
internal.DefaultVelocityEngine  - Deprecated usage of method 
[com.xpn.xwiki.api.XWiki.parseMessage] in /templates/exceptioninline.vm@1,24 
2011-02-24 17:27:59,625 [http://localhost:7001/xwiki/bin/view/Main] WARN  
xwiki.MyPersistentLoginManager  - Login cookie validation hash mismatch! 
Cookies have been tampered with 
2011-02-24 17:27:59,640 [http://localhost:7001/xwiki/bin/view/Main] WARN  
xwiki.MyPersistentLoginManager  - Login cookie validation hash mismatch! 
Cookies have been tampered with 
2011-02-24 17:27:59,828 
[http://localhost:7001/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN  
internal.DefaultVelocityEngine  - Deprecated usage of method 
[com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login.vm@28,33 
2011-02-24 17:28:00,093 
[http://localhost:7001/xwiki/resources/css/microformats.css] WARN  
internal.DefaultVelocityEngine  - Deprecated usage of method 
[com.xpn.xwiki.api.XWiki.parseMessage] in /templates/exceptioninline.vm@1,24 


This is a new instance with the xar data. I haven't added any new data yet into 
xwiki. I don't encounter this problem when I am running xwiki on tomcat. Is 
this a bug or does anybody know a workaround for this? 

I have also tried using xwiki 2.6 and xwiki 3.0 milestone 2 with their 
respective xars but still encounters this problem on weblogic.

Thanks!

Ernn


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


[xwiki-users] struggling to understand panels expanding initial state

2011-03-06 Thread Ricardo Rodriguez [eBioTIC.]
Hi all!

I'm still struggling to understand how expanded/collapsed state of 
panels do work.

I'm currently using a 2.4.30451 XE/XEM installation.

Looking for macros controlling this state in macros.vm, I see:

***
#macro(panelheader $title)
#set($cookieName = "${context.user.replaceAll(':','')}_${panel}")
#set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
#if(!$expanded)
   #set($expanded = 'expanded')
#end
## Note: We pass the Panel name as an HTML class attribute so that it's 
possible to style
## the Panels selectively using CSS.
#set ($specialClassAttribute = "")
#if ($paneldoc && $paneldoc != "")
   #set ($specialClassAttribute = 
$util.convertToAlphaNumeric($paneldoc.name))
#end

$title

#end
***

This macro creates an expanded panel. By clicking the panel title, the 
system creates a cookie that stores her current state.

But if I modify this macro and says...

#if(!$expanded)
   #set($expanded = 'collapsed')
#end

No macro is created and panels are always collapsed when loaded and 
after relaoding.

Please, could you me understand why?

Thank you so much!!!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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