Hi,
I searched list for a while and can't find solution to this, so will just
post it here:
I have an ArrayList of a class and I need to access it from the loop, here
is the code in java:
public class Member {
private String name;
public String getName() {
return n
The loop assigns each successive item to the value you give.
So for each iteration (item in the list) it will try to call:
setCurrentMember(Member member)
You need to provide such a member and set/get methods in Java:
private currentMember;
Then inside the loop you can refer to it using prop not
Hi Nick,
Thanks, got it working, your explanation clarifies points that I can't get
from the doc.
Nick Westgate wrote:
>
> The loop assigns each successive item to the value you give.
> So for each iteration (item in the list) it will try to call:
> setCurrentMember(Member member)
>
> You nee
I know it's a bit painful without OGNL, but we have to make do.
If you can't do it in the template, call a Java method.
Something like ...
${userState}
...
@Inject
private Messages messages;
...
String getUserState()
{
return messages.get(getUser().getState());
}
Cheers,
Nick.
Allen Guo
Howard Lewis Ship a écrit :
Matt Raible is looking for stories of how people chose a JVM Web
Framework and how it worked out for them. I'd encourage all Tapestry
users to drop in with a story or two.
http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
2007/08/31 : only one comme
But what a comment! ;-) Nice one Renat!
Some of us might choose not to comment for any number of reasons.
Matt is being quite picky (and rightfully so) about "Why I love X!"
comments, but I'm sure some others here have stories like Renat's.
Cheers,
Nick.
#Cyrille37# wrote:
http://raibledesign
Thanks Nick.
2007/8/31, Nick Westgate <[EMAIL PROTECTED]>:
>
> I know it's a bit painful without OGNL, but we have to make do.
> If you can't do it in the template, call a Java method.
> Something like ...
>
> ${userState}
> ...
>
> @Inject
> private Messages messages;
> ...
>
> String getUserSta
hi iam a newbie for tapestry creating a small online shipping cart web
page , i need to connect tapestry to MS-ACCESS database to sore the data
from the registration from .html and the card page.html. Can any one say me
in detailed how to make the connection? any special package need to
imported
Option 2 sounds great. ;-)
Hopefully you get some good feedback from Howard on this.
I haven't seen any activity from the new Tapestry 5 devs yet.
Cheers,
Nick.
Fernando Padilla wrote:
Yes I've been looking all over the code. Right now I think that I have
two options. Could I get some more
I just modified the old Any component to make even better previewable
templates possible. Source code has been updated here with an example:
http://wiki.apache.org/tapestry/Tapestry5AnyComponent
Here's the simple example.
Example Item
Of course the body can use expansions too:
Item (SALE)
With t
Hi,
thanks a lot Marcelo, it worked ;) I did'nt add it to my WEB-INF/lib...
I have now access to the DatePicker component, but how can I know how it
works, wich parameters are available ? I didn't manage to find any
documentation specific to Tapestry.
Any hint would be nice :)
Thanks
Marc
at the moment, there is only one, but ted have plans to add a translator and
other things too...
you use it like this:
2007/8/31, Juliet B <[EMAIL PROTECTED]>:
>
>
> Hi,
>
> thanks a lot Marcelo, it worked ;) I did'nt add it to my WEB-INF/lib...
>
> I have now access to the DatePicker component,
Ok, thanks, I just managed to pick a date ! A translator would be great...
Thanks for your help :)
Marcelo lotif wrote:
>
> at the moment, there is only one, but ted have plans to add a translator
> and
> other things too...
> you use it like this:
>
>
>
> 2007/8/31, Juliet B <[EMAIL PROTE
Actually, it's not!
Surprised I didn't think of this before my post, but all you need to do
is overload the methods:
public void onActivate(Integer number1, Integer number2, Integer
number3) {
System.out.println("Activated with " + number1 + " " + number2 +
" " + number3);
}
publ
Hi Joel,
You can make, of course, three onActivate methods, with 2, 3 and 4
parameters, then the Tapestry with call one that matches.
Marcus
Hi,
I would like to extend the Palette component, such that when a value (either
left or right) is selected, it shows some additional information about the
selected entity (e.g. I have a list of items, and when I click on an item to
select it, I see the details). It's like adding an onSelect event
Evan thanks for the follow up... but things are not working. I am not sure I
understood.
Can you attempt (or someone else) attempt to modify this html as it runs
from the following website? All you have to do is cut/paste the following
snippet to the web site and play with it.
I am just tryi
This is not Tapestry specific, so you will want to Google a combination of
these terms
Access
JDBC
MDB
Tutorial
I found this one:
http://www.developer.com/db/article.php/3571661
You may also want to review the MVC pattern (Model View Controller, aka
Model 2)
Daniel
On 8/31/07, dinesh kumar <[E
Evan thanks for the follow up... but things are not working. I am not sure I
understood.
Well I guess I did not understand how you semantically wanted things
wrapped?
then wrap that div with another div called headerContainer{}, use that to
control layout positioning of your inner header div
Hello everyone! I'm happy to announce I have cobbled together a new version
of the core Palette component, which I'm calling "EnhancedPalette".
The driving force behind this was a Javascript bug that caused Palette not
to select components. (I didn't research the problem fully, but it goes
beyon
Hmmm... This seems like an example of a "drill down". Can we abstract
this a bit more and come up with a general solution?
Since we don't have Ajax yet, you would have to do a form submission onclick
(which could get annoying) in order to trigger anything serverside.
Alternatively, if the deta
I wrapped the div with one called headerLayout... still not stretched.
div#header {
height:94px;
width:80%;
margin:0 auto 0 auto;
background: #fff url( logocss.gif ) top left no-repeat;
}
div#headerLayout {
width: 100%;
height: 100%;
}
Cobbled this together from a site, does it help?
/* pushes the page to the full capacity of the viewing area */
html {height:100%;}
body {height:100%; margin:0; padding:0;}
/* prepares the background image to full capacity of the viewing area */
#bg {position:fixed; top:0; left:0; width:100%; h
Ok, I respect your attempt... but your using the tag.
The solution I am seeking does not use because the background is
already specified and made visible by the CSS.
I am trying to find out HOW to stretch this thing only in CSS using id=""/>
Any other takers? Unless you can get that to ope
Here is my latest code... if anyone can get it to stretch I would be
greatful.
You can paste it in this website to render it...
http://www.w3schools.com/css/tryit.asp?filename=trycss_dim_min-width_percent
div#header {
height: 94px;
width: 95%;
margin:0 auto 0 aut
Hi!
I have a page (MyPage) which displays a form by
delegating the form rendering to a block in a different
page (BlockPage). MyPage renders fine, but when the
form is submitted it generates Prepare and Submit
events in the BlockPage and they are not propagated
back to MyPage.
Is there a way to r
How do I correctly set up a BeanEditForm for editing a
hibernate entity?
In T4 I would create hidden field in my form with the
id of the entity and add a listener to this field,
which would retrieve the entity from DB, before the
rest of the form is processed. Then the form would
update the fields
Hi,
I'm working on an application which will store changes from a few
tables in an audit table for history. However, I'm not sure which path
to choose.
Should I solve this problem in my business layer, or should I solve
this at the database level using triggers/stored procedures?
Currently I'm l
Juan... also your css styles of width/height have no effect when i remove
the immediate ones from the IMG tag.
_
Puzzles, trivia teasers, word scrambles and more. Play for your chance to
win! http://club.live.com/home.aspx?icid=CLU
CSS3 can do it, but it's probably not widely supported.
Daniel
Thanks Juan...
Aside from creating the image oversized with image editor and scaling from
there...
I am left with JSON and Ajax.
Here are my nodes...
html, body {
height: 100%;
margin: 0;
padding: 0;
}
div#header {
height: 94px;
margin: 5;
Did you examine your log output?
For:
http://localhost:8080/myapp/Start/1/2/3
You'll see:
Activated with 1 2
_and_
Activated with 1 2 3
If you add a no argument onActivate() that will also be called.
Object[] is the best solution right now for multiple parameters.
http://issues.apache.org/jira/b
No. Tapestry will call _all_ the matching methods.
http://issues.apache.org/jira/browse/TAPESTRY-1695
Cheers,
Nick.
Marcus-11 wrote:
>
> Hi Joel,
>
> You can make, of course, three onActivate methods, with 2, 3 and 4
> parameters, then the Tapestry with call one that matches.
>
> Marcus
>
Can you provide a little more information about your setup? How are you
delegating to BlockPage? Is it a page or a component?
On 8/31/07, Imants Firsts <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have a page (MyPage) which displays a form by
> delegating the form rendering to a block in a different
>
Hrm... are you sure? I only see the correct one being called.
-Original Message-
From: Nick Westgate (Work) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 31, 2007 1:56 PM
To: users@tapestry.apache.org
Subject: RE: T5: Activation contexts
Did you examine your log output?
For:
http://
On 8/31/07, Joel Wiegman <[EMAIL PROTECTED]> wrote:
>
> Hrm... are you sure? I only see the correct one being called.
I've seen the same behavior that Nick describes. It's especially harsh if
you have different parameter types (throws an exception trying to coerce the
parameters)
Josh
-Ori
Hi Nick,
You're right. Using T-5.0.5 this is correct.
Tapestry will call onActivate method with no parameter, and all others with
at least X parameters, where X is the number of parameters you pass in URL.
Marcus
done
with regards
homburg Softwaretechnik
S.Homburg
GERMANY
Howard Lewis Ship schrieb:
Matt Raible is looking for stories of how people chose a JVM Web
Framework and how it worked out for them. I'd encourage all Tapestry
users to drop in with a story or two.
http://raibledesigns.com/rd/en
Hi!
I don't understand the rationale behind this. If I'm at a page that has an
activation context and want to link to the same page, without the context,
I need to write t:context="literal:". Could somebody explain this to me?
--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Cons
If you like digging into tapestry I suggest you start
by removing beanutils dependancy and adding:
@Inject
private PropertyAccess propertyAccess;
into SelectObject.java
after that use propertyAccess instead of beanutils...
I'm currently building a version that doesn't need
SelectObje
Hello,
I have the following Table in my html file
context="currentProduct"> ${currentProduct.id}
${currentProduct.id}
${currentProduct.name}
${currentProduct.description}
in my Java file i have all required data/Getters/Sett
Hi,
I'd like to save an ArrayList to xml file with XMLEncoder, it seems that its
writeobject method will cause exceptions in T5 app, but works fine in a
regular java app. here is my code:
public class TestMenuP {
class Person {
private String name;
Person() {
}
I got it. Thanks Davor Hrg,I will try your advice .I will keep in touch with
tapestry5,
2007/9/1, Davor Hrg <[EMAIL PROTECTED]>:
>
> If you like digging into tapestry I suggest you start
> by removing beanutils dependancy and adding:
> @Inject
> private PropertyAccess propertyAccess;
>
> i
what this have to be with tapestry ?
Robin Helgelin wrote:
>
> Hi,
>
> I'm working on an application which will store changes from a few
> tables in an audit table for history. However, I'm not sure which path
> to choose.
>
> Should I solve this problem in my business layer, or should I sol
If you need a link that points to the same page, create a Pagelink pointing
the same page.
Thiago H de Paula Figueiredo-3 wrote:
>
> Hi!
>
> I don't understand the rationale behind this. If I'm at a page that has an
> activation context and want to link to the same page, without the conte
Try reversing the order of your methods. (I.e. 2, 3 - not 3, 2).
Add a no argument method and you'll definitely see that.
After a few requests it will consistently happen. I hadn't seen the
consistency change before so I'll upgrade the JIRA to a bug.
Cheers,
Nick.
Joel Wiegman wrote:
>
> Hrm
Hi,
I have this need to write/read some java objects to xml files in T5, can
anybody recommend one that works? Thanks.
A.C.
--
View this message in context:
http://www.nabble.com/T5%3A-POJO-to-xml-lib-tf4363192.html#a12436353
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi,
you can use XMLEncoder/Decoder from java Api.
make sure you don't do this in a page "delegate" this functionality to your
the infrastructure layer.
Angelo Chen wrote:
>
> Hi,
>
> I have this need to write/read some java objects to xml files in T5, can
> anybody recommend one that works?
is XStream good idea?
2007/9/1, Fidel Chavarria <[EMAIL PROTECTED]>:
>
>
>
>
> Hi,
> you can use XMLEncoder/Decoder from java Api.
>
> make sure you don't do this in a page "delegate" this functionality to
> your
> the infrastructure layer.
>
>
> Angelo Chen wrote:
> >
> > Hi,
> >
> > I have this
Hi Fidel,
I have some problem with XMLEncoder:
http://www.nabble.com/T5%3A-Can-XMLEncoder-be-used-with-T5-app--tf4362923s302.html
how to use this xmlencode to avoid those exceptions? Thanks,
A.C.
Fidel Chavarria wrote:
>
>
>
> Hi,
> you can use XMLEncoder/Decoder from java Api.
>
> make
hi,have many service implement same interface.
public A buildA1(){
..
}
public A buildA2(){
...
}
I want to override A1 Service.How to do?I find the alias only use class name
to override.
AliasContribution.create(XX.class,
XX).
Thanks
--
regards,
Jun Tsai
Try Castor at www.castor.org
It's a Java <-> XML tool that favors the Java side. It's easy by default,
but can be very flexible. I use this the most.
If you want to favor the XML side, then XMLBeans at Apache would be better.
JB
> -Original Message-
> From: Angelo Chen [mailto:[EMAIL
It depends :-)
I have some "auditing" done through Hibernate interceptors, some done
through triggers, and some implemented in my business layer.
> -Original Message-
> From: Robin Helgelin [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 31, 2007 11:49 AM
> To: Tapestry users
> Subjec
I think MS Access is a great tool, and I've built some amazing stuff on it,
but I don't recommend having it as the backend to a web app. Consider
choosing something else if you can.
You can use the JDBC-ODBC bridge if you have to use an Access backend.
> -Original Message-
> From: dines
Hi 蝈蝈龙,
I tried XStream's toXML, it works, but not yet try writing to a file. one
thing I notice is, the size of lib, the war file's size was increased from
1.9mb to 7mb, looks like XStream is larger than Tapestry's lib, right?
蝈蝈龙 wrote:
>
> is XStream good idea?
>
> 2007/9/1, Fidel Chavarr
Hi Jonathan,
I tried XStream as suggested by 蝈蝈龙, it works, but library size is big
around 5mb added, how big is the Castor? one nice thing about XSream is, I
don't have to write any xml mapping, same with Castore? Thanks.
A.C.
Jonathan Barker wrote:
>
>
> Try Castor at www.castor.org
>
> It
Indeed Castor is more portable than XStream. But XStream is stronger and
more simpler.
So you have to bear it's slightly bigger size.
But I find all the dependency jars of XStream are about 3m not 5m. And
cglib-nodep-2.1_3.jar,dom4j-1.6.1.jar,jdom-1.0.jar may be also used in other
place.
Cheers
Gu
On 8/31/07, John <[EMAIL PROTECTED]> wrote:
> I get an execption, which I know what does it mean.
>
> Exception in method
> org.apache.tapestry.tutorial.pages.Start.onActionFromCurrentProduct(org.apache.tapestry.tutorial.others.Product)
> (at Start.java:84), parameter #1: Could not find a coercion
On Thu, Aug 30, 2007 at 08:06:54AM +0200, Christoph Jaeger wrote:
> A comma separated list of properties would be great. Then you can hide
> and sort columns as you like (didn't think about sorting yet).
http://blog.njl.us/blojsom/blog/default/2007/09/01/Configurable-Grid
--
njl
---
On 9/1/07, Jun Tsai <[EMAIL PROTECTED]> wrote:
> hi,have many service implement same interface.
>
> public A buildA1(){
> ..
> }
> public A buildA2(){
> ...
> }
>
> I want to override A1 Service.How to do?I find the alias only use class name
> to override.
Just create a buildA3 and use
2007/9/1, Robin Helgelin <[EMAIL PROTECTED]>:
>
> On 9/1/07, Jun Tsai <[EMAIL PROTECTED]> wrote:
> > hi,have many service implement same interface.
> >
> > public A buildA1(){
> > ..
> > }
> > public A buildA2(){
> > ...
> > }
> >
> > I want to override A1 Service.How to do?I find the al
61 matches
Mail list logo