Re: problems/warnings at maven site call

2008-09-13 Thread Sven Homburg
thanx christian,

your hint helps

2008/9/13 Christian Edward Gruber [EMAIL PROTECTED]

 You can set your ~/.m2/settings.xml file to include
 localRepositoryc:/Dokume~1/shomburg/.m2/repository//localRepository

 This is a pretty standard issue with windows and Maven (and often windows
 and Java in general)

 Christian.

 On 12-Sep-08, at 17:44 , Sven Homburg wrote:

  dont smile, is on my todo list !

 2008/9/12 Howard Lewis Ship [EMAIL PROTECTED]

  Get a Mac!

 :-)

 On Fri, Sep 12, 2008 at 2:36 PM, Sven Homburg [EMAIL PROTECTED]
 wrote:

 i locate the problem:
 if you working with path names like C:\Dokumente und
 Einstellungen\shomburg\.m2\repository\
 you need to surround the path with the  character (sorry, forget the
 english word for this character)
 i add an issue to JIRA

 2008/9/12 Sven Homburg [EMAIL PROTECTED]

  even same result after i change back to maven 2.0.8

 2008/9/12 Sven Homburg [EMAIL PROTECTED]

 same result

 on two different workstations, with two different internet connections
 using both maven 2.0.9

 2008/9/12 Howard Lewis Ship [EMAIL PROTECTED]

 When in doubt, wipe out ~/.m2/repository and start again.




 On Fri, Sep 12, 2008 at 11:35 AM, Sven Homburg 

 [EMAIL PROTECTED]

 wrote:

 Hi there,

 since a few days i have problems to generate the project site for

 the

 core

 module,
 following warnings and errors are the result:

 [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for
 org/apache/tapestry/tapestry5-annotations/5.0.15-SNAPSHOT/maven-m
 etadata.xml - IGNORING
 [ERROR] Unable to connect to:

 http://archiva.openqa.org/repository/releases/


 [WARNING] The repository url '

 http://snapshots.maven.codehaus.org/maven2' is

 invalid - Repository 'snapshots' will be blacklisted.
 [ERROR] Unable to connect to:

 http://archiva.openqa.org/repository/releases/


 [ERROR] Unable to connect to:

 http://archiva.openqa.org/repository/releases/

 [ERROR] Unable to connect to:
 http://archiva.openqa.org/repository/snapshots/
 [ERROR] Unable to connect to:

 http://archiva.openqa.org/repository/releases/

 [ERROR] Unable to connect to:
 http://archiva.openqa.org/repository/snapshots/
 [ERROR] Unable to connect to:

 http://archiva.openqa.org/repository/releases/

 [ERROR] Unable to connect to:
 http://archiva.openqa.org/repository/snapshots/

 [INFO] Running JavaDoc to collect component parameter data ...
 1 error
 [INFO]


 

 [ERROR] BUILD ERROR
 [INFO]


 

 [INFO] Error during page generation

 Embedded error: Error rendering Maven report: Javadoc exit code: 1 -
 javadoc: error - Cannot find doclet class org.apache.tapestry.m
 ojo.ParametersDoclet

 Command line was:

 C:\Programme\Java\jdk1.5.0_11\jre\..\bin\javadoc.exe

 @target/component-report-javadoc-arguments.txt
 [INFO]


 

 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error during

 page

 generation
  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)

  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)

  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)

  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)

  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)

  at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

  at

 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

  at

 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

  at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native

 Method)

  at


 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at


 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)
  at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at

 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

  at

 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error

 during

 page

 generation
  at

 org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)

  at


 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)

  at


 

T5: CMS Integration

2008-09-13 Thread Charles Mason
Hi All,

I was wondering if anyone has had any experience integrating a CMS in
to a Tapestry 5 App. I really like the T5 templating system and so I
am keen to keep using it. However sometimes I need to be able to allow
the user to edit a pages content, however other parts of the site need
Tapestry features so I can't us a conventional CMS like Magnolia. Has
any one else had any success with this sort of integration.

What I was thinking was using Magnolia or another CMS as an editor
then accessing the CMS's JCR data store (such as Jack Rabbit)
directly. Then when the component tries to load its template it
fetches it directly form the JCR. That way Tapestry's page caching
could be used to as normal and would reduce access to the JCR. It
would be nice to let it reload the template in the same way that a
normal components template file changes get reloaded. Is this the best
way to integrate a CMS or is there something I am missing?

My problem is I am not really sure if this is possible using
Tapestries IOC. I realise I could make changes to the tapestry code
base directly but I am keen to keep my project compatible with the
official Tapestry Jars. I have used the IOC to make a security service
which responds to various annotations on a page's methods so I do have
some experience with it, but parts of it are still a bit of a mystery
to me.

Any advise would be greatly appreciated.

Charlie M

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



Re: T5 File Upload inside AjaxFormLoop? (as in several attachments to a mail message)

2008-09-13 Thread Ted Steen
It is not possible to send files over AJAX requests.
What I have done (and seen others do) is to do a post in the
background via an IFrame.
This is something that would be super if the framework would do for us.

2008/8/22 Sven Homburg [EMAIL PROTECTED]:
 hi robert,

 i try it out with the upload container but without success.
 if i use a container, that holds a simple java object like string,
 double,etc all is fine
 but if i use an UploadedFile object or somethin simelar, the value is always
 null
 after the first submit

 have you a small sample for suggestion ?

 2008/6/10 Robert Zeigler [EMAIL PROTECTED]

 Couldn't you use a list of placeholders/wrappers?
 This is what I've done in the past in similar sorts of scenarios, although
 it wasn't ajax-based.
 I created a list of UploadContainers.  This ended up being useful because
 then I could associate other sorts of values to each upload row (extract
 archives, create xyz, and so forth), and they would all be nicely
 associated. So then you don't have to worry about not having an upload file,
 b/c you can easily create your container, and bind the file upload
 component's value to the UploadContainer's file property.

 Robert


 On Jun 10, 2008, at 6/1011:28 AM , Ognen Ivanovski wrote:

  Hi all,

 I'm trying to write a page that mimics an email composition form. On
 this form the user should be allowed to add any number of attachments
 (files).

 My idea is to use an AjaxFormLoop and a file upload component inside. The
 problem is - I can't.

 The loop needs an iterable to work over - ok - that is a list of
 UploadedFiles. But, the 'addRow' event says it needs to return a non-null
 value so that the loop can correctly use it. But - i don't have an uploaded
 file yet - i just want a new Upload component to render itself.

 Second problem - how would I process the files at the end?

 My code - so far:

 public class Test {


  @Property private ListUploadedFile files = new
 ArrayListUploadedFile();

  @Property private UploadedFile currentValue;


  @Property private DefaultPrimaryKeyEncoderInteger, UploadedFile encoder
 = new DefaultPrimaryKeyEncoderInteger, UploadedFile();

  @InjectComponent private Block newFileBlock;

  public int getNumOfFiles() {
   return files.size();
  }

  public void onSubmit() {
   // what do i do here?
  }

  public Block onAddRow() {
   return null; // what do i do here? this causes illegal state excepton
  }
 }

 Test.tml:

   t:form
 t:ajaxformloop source=files value=currentValue encoder=encoder
   t:submitnotifier
 t:upload t:id=currentValue value=currentValue /
 t:removerowlinkremove/t:removerowlink
   /t:submitnotifier
   t:parameter name=addRow
 t:addrowlinkAdd a row/t:addrowlink
   /t:parameter
 /t:ajaxformloop

 div class=t-beaneditor-row
input type=submit value=Submit/
 /div

   /t:form

   pNumber of strings (after submit): ${numOfFiles}/p

   t:grid source=files/


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



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




 --
 with regards
 Sven Homburg
 http://www.chenillekit.org
 http://tapestry5-components.googlecode.com


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



Problem with Javascript ( i suspect)

2008-09-13 Thread ProAdmin Dariusz Dwornikowski
Hi,

Im doing application in 5.0.14. Everything worked nice, but now i have
got a problem with JS things, like datepicker and FCK from
t5components. They do not work, for example icon for datepicker shows
up, but no action when i click on it. Instead of FCK normal textarea
is shown. I can also see that :
!--
Tapestry.onDOMLoaded(function()

 does not show up in source of page.
Only thing i did was making tapestry to generate XHTML, according to
wiki and this list. But i reverted all changes to eliminate them as
source of problem. Also i erased fck from tml. Still datepicker does
not work.

My application is very simple:

The tml is;

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
h1Adding event/h1
t:form t:id=event
 t:label t:for=title/br/
 input type=text t:id=title t:type=TextField t:value=title
size=100/ br/br/br/



 t:label t:for=author/input type=text t:id=author
t:type=TextField t:value=author/ br/
 t:label t:for=dateOfPublication/input type=text
t:id=dateOfPublication t:type=datefield
t:value=dateOfPublication/ br/
 t:label t:for=category/input type=select t:id=category
t:type=select t:model=categories/br/br/br/hr/
 t:label t:for=file/input type=upload t:id=file 
t:type=Upload/br/
 input type=submit t:type=submit t:id=submitButton 
value=Submit/
/t:form

/html

And the page class for that was not changed.

How can i diagnose what is wrong? Logs say nothing.


-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Problem with Javascript ( i suspect)

2008-09-13 Thread Howard Lewis Ship
The generated page must have a html element and a body element for
the JavaScript integration to work.

On Sat, Sep 13, 2008 at 8:59 AM, ProAdmin Dariusz Dwornikowski
[EMAIL PROTECTED] wrote:
 Hi,

 Im doing application in 5.0.14. Everything worked nice, but now i have
 got a problem with JS things, like datepicker and FCK from
 t5components. They do not work, for example icon for datepicker shows
 up, but no action when i click on it. Instead of FCK normal textarea
 is shown. I can also see that :
 !--
 Tapestry.onDOMLoaded(function()
 
  does not show up in source of page.
 Only thing i did was making tapestry to generate XHTML, according to
 wiki and this list. But i reverted all changes to eliminate them as
 source of problem. Also i erased fck from tml. Still datepicker does
 not work.

 My application is very simple:

 The tml is;

 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 h1Adding event/h1
 t:form t:id=event
 t:label t:for=title/br/
 input type=text t:id=title t:type=TextField t:value=title
 size=100/ br/br/br/



 t:label t:for=author/input type=text t:id=author
 t:type=TextField t:value=author/ br/
 t:label t:for=dateOfPublication/input type=text
 t:id=dateOfPublication t:type=datefield
 t:value=dateOfPublication/ br/
 t:label t:for=category/input type=select t:id=category
 t:type=select t:model=categories/br/br/br/hr/
 t:label t:for=file/input type=upload t:id=file 
 t:type=Upload/br/
 input type=submit t:type=submit t:id=submitButton 
 value=Submit/
 /t:form

 /html

 And the page class for that was not changed.

 How can i diagnose what is wrong? Logs say nothing.


 --
 Pozdrawiam,
Dariusz Dwornikowski
 
 ProAdmin
 ul. Królowej Jadwigi 44/2
 61-872 Poznań
 tel: 061 623-20-92
 kom: 0601 59-64-74
 fax: 061 623-20-93
 www.proadmin.com.pl
 [EMAIL PROTECTED]




-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind