Announcement Announcement Module
No announcement yet.
Source Code for the newsfeed component example. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Source Code for the newsfeed component example.


    The Surf tutorial has a few typos on the newsfeed component example. We have corrected them and committed the changes to SVN.

    You can also find the attached zip file which should have all the files you need.



  • #2
    How to get logging and debug WebScripts properly within Surf ...

    Hello All,

    So, far I'm loving learning about and working with surf ... I want to get my project on a solid Spring foundation, but I need rapid development ... and I'm a one-man band.

    I'm grateful for the fix of the typos, in the tutorial, because I was unable to get logging to work properly so that I could fix it myself.

    I'm very familiar with Javascript, but need to know how to debug it ... since it's running on the server, not the client.

    I'm unsure about the settings required ...

    My entire "" file is ...

    log4j.rootLogger=info, stdout, R

    log4j.appender.stdout=org.apache.log4j.ConsoleAppe nder
    log4j.appender.stdout.layout=org.apache.log4j.Patt ernLayout

    # Print the date in ISO 8601 format
    log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

    log4j.appender.R=org.apache.log4j.RollingFileAppen der

    # Keep two backup files

    log4j.appender.R.layout=org.apache.log4j.PatternLa yout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n =debug ogger=debug

    I don't see an "alfresco.log" file anywhere? What am I missing? And where in the documentation did I miss it?

    Joe Terry

    My Environment:

    java version "1.5.0_22"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
    Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)

    roo: 1.0.0.RELEASE [rev 564]
    surf-roo: 1.0.0.M2
    sts: 2.3.0.RELEASE