Re: 5.0.13 IE javascript error

2008-07-26 Thread Alex.Hon

Maybe you can try uninstall all IE plugins .(and need clear all cache ,temp
files..)


Joachim Van der Auwera wrote:
> 
> Hi,
> 
> after upgrade of my application to tapestry 5.0.13 I get a "unknown 
> runtime error" on loading the page in IE.
> 
> This is reported at line 2403 of prototype.js on the line
> "else element.innerHTML = content.stripScripts()"
> 
> Does anybody have any idea how this problem can be remedied?
> 
> Kind regards,
> Joachim
> 
> -- 
> Joachim Van der Auwera
> PROGS bvba, progs.be
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/5.0.13-IE-javascript-error-tp18070825p18668405.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Probable zone update bug

2008-04-24 Thread Alex.Hon

https://issues.apache.org/jira/browse/TAPESTRY-2369


Peter Stavrinides wrote:
> 
> Hi All,
> 
> A colleague of mine has discovered an anomaly with the the latest t5
> snapshot, it came up from April 23's nightly build jars. Here's a simple
> example where this happens. If the action link is moved anywhere above the
> t:zone in the .tml it works. If it is below the zone it does not work.
> 
> Java file:
> public class Zones
> {
> @Persist
> @Property
> private int data = 0;
> 
> @Inject
> private Block someBlock;
> 
> @OnEvent(component = "theLink")
> Object onEvent() {
> return someBlock;
> }
>   
> void onAction() {
> data++;
> }
> }
> 
> 
> 
> tml file:
> 
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> Ajax test
>   
>   
> 
> 
> 
>   
> 
>  t:zone="zoneToUpdate">click  
> 
> ${data}
> 
> 
> 
> 
> 
> 
> It appears as if Zones are not properly linked in some cases. The
> Tapestry.linkZone javascript function, 2nd line (var zone =
> $(zoneDiv).zone) returns undefined.
> 
> 
> Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Probable-zone-update-bug-tp16877437p16884119.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form with a Zone -> ComponentEventException

2008-04-23 Thread Alex.Hon

Maybe because IE 
you need edit tapestry.js about linkZone:function...
element.onsubmit = handler; replace to: Event.observe(element, 'submit',
handler);
and element.onclick = handler; replace to:Event.observe(element, 'click',
handler);
and need add line :Event.stop(event);
after new Ajax.Request(element.href, { onSuccess : successHandler });

@see
http://www.prototypejs.org/2007/10/16/prototype-1-6-0-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes
#Changes to the Event API


Petros Petrou wrote:
> 
> When the userSearchForm of the code below is submitted I am getting the
> following exception
> 
> A component event handler method returned the value
> [EMAIL PROTECTED] Return type
> org.apache.internal.structure.BlockImpl can not be handled. Configured
> return types are java.lang.Class, java.lang.String, java.net.URL,
> org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
> org.apache.tapestry.runtime.Component. 
> 
> I am trying to update the search results table when the form is submited
> as an Ajax call. Any ideas ?
> 
> UserPicker.java
> @Inject
> private Block searchResultsBlock;
> 
> Object onSuccessFromUserSearchForm()
> {
>foundUsers = userManager.findUsers(...);
>return searchResultsBlock;
> }
> 
> UserPicker.tml
> ...
> 
>
>
>...
>
>
> 
>
> 
>
>
>
>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-with-a-Zone--%3E-ComponentEventException-tp16346150p16834687.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Zone in Component bug

2008-03-25 Thread Alex.Hon

Hi,
  When i use zone in component , the json response is :

   Tapestry.initializeZones([{\"div\":\"output:118e6af4fe4\"}], [[
\"form:118e6af4fe4\",\"output\"]]);","content": ..

there should be:
 Tapestry.initializeZones([{\"div\":\"output:118e6af4fe4\"}], [[
\"form:118e6af4fe4\",\"output:118e6af4fe4\"]]);","content": ..
or
 Tapestry.initializeZones([{\"div\":\"output\"}], [[
\"form:118e6af4fe4\",\"output\"]]);","content": ..
?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Zone-in-Component-bug-tp16277264p16277264.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Zone Component & update Grid

2008-03-25 Thread Alex.Hon

Yes, It's an absolutely great feature!
:clap:


Moritz Gmelin wrote:
> 
> Hi,
> 
> I just tried the new Zone component which is just about great!
> 
> But when I tried to return a Block from my ActionListener that  
> contains a Grid, I get the following Exception
> 
> org.apache.tapestry.runtime.ComponentEventException: No object of type  
> org.apache.tapestry.services.Heartbeat is available from the  
> Environment.  Available types are .
> 
> (...no types are listed here)
> 
> On the documentation about Zone I can read
> 
> "Inside a component, you should use Environmental, to highlight the  
> fact that PageRenderSupport (like most environmental objects) is only  
> available during rendering, not during action requests."
> 
> So is this expected behaviour, that a Grid cannot be returned by an  
> ActionListener that is supposed to update a Zone component?
> This would be an absolutely great feature to be able to update Grid's  
> content in an AJAX fashion.
> 
> Thanks for clues.
> 
> Moritz
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zone-Component---update-Grid-tp14344745p16275995.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5.0.7: No service implements the interface org.slf4j.Logger

2008-02-01 Thread Alex.Hon

see: http://www.nabble.com/About-Slf4j-Error-td13591128.html#a15240195
http://www.nabble.com/About-Slf4j-Error-td13591128.html#a15240195 


Franz Amador wrote:
> 
> This used to work, but now it's broken for me in 5.0.6 and 5.0.7.  I'm not
> sure how to debug this.  Apparently a proxy is being created for Logger,
> but when HibernateSessionManagerImpl tries to use it, it can't be
> realized.  Thanks in advance for any help.
> 
> Here are the relevant bits of AppModule.java:
> 
> import org.slf4j.Logger;
> ...
> 
> public class AppModule {
> ...
> public static void
> contributeHibernateSessionSource(OrderedConfiguration
> config, Logger log) {
> config.add("DatabaseConnectionProperties", new
> DatabaseConnectionPropertiesHibernateConfigurer(log), "after:Default");
> }
> ...
> 
> 
> and here's the stack trace:
> 
> Caused by: java.lang.RuntimeException: Exception constructing service
> 'HibernateSessionSource': Error invoking service builder method
> org.apache.tapestry.hibernate.HibernateModule.build(Logger, List) (at
> HibernateModule.java:111) (for service 'HibernateSessionSource'): Error
> invoking service contribution method
> com.centricsoftware.pi.services.AppModule.contributeHibernateSessionSource(OrderedConfiguration,
> Logger): No service implements the interface org.slf4j.Logger.
> at
> org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:76)
> at
> $HibernateSessionSource_1173bde489d._delegate($HibernateSessionSource_1173bde489d.java)
> at
> $HibernateSessionSource_1173bde489d.create($HibernateSessionSource_1173bde489d.java)
> at
> org.apache.tapestry.internal.hibernate.HibernateSessionManagerImpl.(HibernateSessionManagerImpl.java:31)
> at
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateModule.java:73)
> 
> Franz Amador
> [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.7%3A-No-service-implements-the-interface-org.slf4j.Logger-tp14584395p15240200.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About Slf4j Error

2008-02-01 Thread Alex.Hon

Hello,
I know the error,because of jetty6 use slf4j,and the WebAppContext`s
_parentLoaderPriority 
 default value is false 
[code]_parentLoaderPriority  =
Boolean.getBoolean("org.mortbay.jetty.webapp.parentLoaderPriority");[/code]
 so set parentLoaderPriority to true;
jetty.xml:




true
/
src/main/webapp










Francois Armand wrote:
> 
> Lococode wrote:
>> Hi, 
> Hello Lococode,
> 
>> [...]
>>
>> error:
>>
>> * java.lang.RuntimeException
>>   java.lang.ClassNotFoundException: caught an exception while
>> obtaining
>> a class file for org.example.myapp.pages.Start
>> * java.lang.ClassNotFoundException
>>   caught an exception while obtaining a class file for
>> org.example.myapp.pages.Start
>>
>>   exception
>>   org.apache.tapestry.internal.services.TransformationException:
>> Error obtaining injected value for field
>> org.example.myapp.pages.Start.log:
>> java.lang.ClassNotFoundException: org.slf4j.Logger 
>>   
> I have the very same error. As soon as I attempt to inject 
> org.slf4j.Logger, I get an exception :
> 
> 8<-
> exception
> org.apache.tapestry.internal.services.TransformationException: Error 
> obtaining injected value for field 
> fr.bpi.tapestry.components.ViewUser.logger: 
> java.lang.ClassNotFoundException: org.slf4j.Logger
> 8<-
> 
> I have use slj4j 1.4.3 and log4J 1.2.14.
> 
> Have you find a solution to your pb ?
> 
> -- 
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> ---
> InterLDAP - http://interldap.org 
> FederID - http://www.federid.org/
> Open Source identities management and federation
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/About-Slf4j-Error-tp13591128p15240195.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]