Hello all,
I am interested in getting feedback from those of you who use Maven +
Eclipse in order to develop Tapestry applications.
I recently realized that Tapestry templates located in
*src/main/resources*also need to be located in
*src/test/resources* in order to be picked up during unit tests.
I don't know, but there's a tapestry testing module called testify that might
be worth having a look at the docs.
Might be some hints there
http://tapestrytestify.sourceforge.net/project-layout.html
I don't know the answer for you unfortunately,
HTH,
Chris
On 16/02/2012, at 7:13 PM, Julien
Hi George
As I said, my hibernate is a bit rusty. What I have given you there is a
JDBC query where each question mark represents a parameter which is later
set by Query.setLong(int paramIndex, Long value). You might need to
research or chat on hibernate forums to turn it into a hibernate
Just taking another look I can see a couple of issues.
1. Are categoryId and parentCategoryId long's? If so, findById() should
take a long (not a string). If they are strings, the query should use
setString() instead of setLong(). Something has to change ;)
2. getChildren() should use
Hello Chris,
Thanks! You pointed me to the right direction. I changed my POM as follows:
*build*
* resources*
* resource*
* directorysrc/main/java/directory*
* includes*
* include**/*.tml/include*
* include**/*.properties/include*
* /includes*
* /resource*
* resource*
*
I would avoid putting resources (.tml and .properties) in src/main/java as
you are going against maven's conventions.
Only java files should go in src/main/java. Resources should go into
src/main/resources and test resources should go in src/test/resources.
What you said initially about needing
You can't, I have created an issue
https://issues.apache.org/jira/browse/TAP5-1624
and I have also suggested and improvement for the coercion to the SelectModel
https://issues.apache.org/jira/browse/TAP5-1446 with a patch almost a year ago,
but noone seems to care.
Denis
Feb 16, 2012 v 9:19
Thanks Lance,
Le 16 février 2012 11:15, Lance Java lance.j...@googlemail.com a écrit :
I would avoid putting resources (.tml and .properties) in src/main/java as
you are going against maven's conventions.
Only java files should go in src/main/java. Resources should go into
The most amazing thing is that I have it working right by adding a new
Coerce to
TypeCoercer's contrubution :)
2012/2/16 Denis Stepanov denis.stepa...@gmail.com
You can't, I have created an issue
https://issues.apache.org/jira/browse/TAP5-1624
and I have also suggested and improvement for
If you are trying to override existing coercion - don't do it, there is no
expected order of the contributions, it will not work all the time.
Denis
Feb 16, 2012 v 12:24 PM, Mihail Slobodyanuk:
The most amazing thing is that I have it working right by adding a new
Coerce to
TypeCoercer's
I will post here...
This is my simple code:
*t:formlt;/b t:inPlace=false t:id=multiBeanForm t:zone=editorZone
*t:beaneditformlt;/b t:id=createForm t:object=nodeTop
t:zone=editorZone
t:exclude=id, version, nodeLevel, level,
dateCreated/
*t:beaneditformlt;/b
On Thu, 16 Feb 2012 08:58:30 -0200, stipenovi stipenovok...@gmail.com
wrote:
I will post here...
This is my simple code:
*t:formlt;/b t:inPlace=false t:id=multiBeanForm
t:zone=editorZone
*t:beaneditformlt;/b t:id=createForm t:object=nodeTop
t:zone=editorZone
...but watch out if you enable maven's resource-filtering for
src/main/resources. e.g. ${user.name} in your .tml will be replaced by your
system user name :-)
Am 16.02.2012 um 12:05 schrieb Julien Martin:
Thanks Lance,
Le 16 février 2012 11:15, Lance Java lance.j...@googlemail.com a écrit
Lance Thanks for everything. I'll touch base with the hibernate guys and get
the query working. Once everything is working, I'll post the code for other
that may need help with this topic. Please let me know if you need any UI
help, I'd love to return the favor. btw, I had it setup as a service,
Hi,
To render block as html markup, I did like this:
public String renderMarkup(RenderCommand renderCommand) {
MarkupWriter markupWriter = new MarkupWriterImpl();
// validation track
ValidationDecorator decorator = new
DefaultValidationDecorator(environment,
Julien's question traces back (I assume) to a thread with the subject
Component xxx does not contain embedded component 'yyy'.
PageTester was not picking up the tml files from the
src/main/resources tree, but when copied to src/test/resources,
everything worked. This was, of course, a diagnosis
I have seen m2eclipse have problems generating the correct eclipse project
files when you attempt to add src/main/java to the resources section in
the pom.
Try running the tests by firing maven from the command line. Do the tests
find the resources? If so then m2eclipse is barfing somewhere.
hi,
i have to implement followinmg design.
Variable number of parameters should be shown as radio buttons with YES/NO
values
How can i realise this the simpliest way?
Option_1 o o
Option_2 o o
Option_x o o
If i try to made it and then submit the form i get
On Thu, Feb 16, 2012 at 6:25 AM, Jonathan Barker
jonathan.theit...@gmail.com wrote:
Julien's question traces back (I assume) to a thread with the subject
Component xxx does not contain embedded component 'yyy'.
PageTester was not picking up the tml files from the
src/main/resources tree, but
Hey Dusko, Dragan, can tapestry5-ckeditor be configured to work with
ajax forms? I was hoping to use your component as part of a new
project. I had hacked chenillekit's fckeditor a few years go to work
with ajax and I imagine this might need similar type of treatment if
it's not already supported.
I agree Lance, once we get this working I think it should be added to
jumpstart. This is a very complex component. I was able to fix the majority
of issues you found. I wasn't clear on referencing the dao interface as
opposed to using a concrete interface. I don't know the difference.
I did make
I have a form in my tml page and in that form I have the following
tr
tdlabel t:type=Label for=username class=signup_label/sup
style=color:#FC0213; */sup/td
tdinput t:type=TextField t:id=username t:value=username
t:label=Username t:validate=required,maxlength=50
t:mixins=lombok/watermark
22 matches
Mail list logo