I upgraded my project to 5.0.11 and I still have this problem. On Firefox 2,
the datepicker is visible, but is not aligned closely to the datefield - it
appears on the far left corner of the browser. On IE 7 it errors out, and
does not show. For my project, all I did was download the t5demo war fi
Hi all,
I have a component which is a sub-class of Grid. I want to override
default-binding for parameter "model" in Grid, does someone know how
to do it?
I have tried creating a function: Binding defaultModel() in the new
component, but it seems never gets called.
Thanks
Yunhua
---
Hi,
I've found the following pattern to work very well - at least I use it
everywhere on several sites in production with no problems. :)
@Property
private Item item;
// I have a form in my template with t:id="add"
void onPrepareFromAdd() {
if (null == item) item = new Item();
}
What he said. So you do this:
Page class:
@Property
private Product product;
public List getProducts() {
// return the products you want to show
...
}
// or onAddToCart(Long productId) if you feel like using EventLink
Object onActionFromAddToCart(Long productId) {
// lo
Hi Leon,
How to override server error pages depends on what server you're using.
As far as I'm aware it's unfortunately not possible to use Tapestry
pages as server error pages - if I'm wrong here, I'd really like to know
how to do it. :)
What I mean by turning the RequestExceptionHandler in
Well, i think i am really screwing thnigs up. Very sorry for abusing of your
time, i have almost everything working ok. Thanks for your time!
On Sat, May 17, 2008 at 2:57 PM, Manuel Corrales <[EMAIL PROTECTED]>
wrote:
> Ok, me bothering again. Now when i have a validation error that was checked
>
Ok, me bothering again. Now when i have a validation error that was checked
on the server side, the form is completely wiped out. Thats the normal
behavior?
On Sat, May 17, 2008 at 2:49 PM, Manuel Corrales <[EMAIL PROTECTED]>
wrote:
> Sorry, my mistake. The same code i posted but without initiali
Sorry, my mistake. The same code i posted but without initializing the
matafuego variable is working now. I still dont completely understand why
tapestry is not cleaning my matafuego variable.
Thanks very much for your help!
On Sat, May 17, 2008 at 2:39 PM, Manuel Corrales <[EMAIL PROTECTED]>
wro
Ok, thanks. Probably this is some stupid begginer mistake, but i cant make
this work. My class is this:
public class NuevoMatafuego {
private Matafuego matafuego = new Matafuego();
@Inject
private Messages messages;
@Component
private Form nuevoMatafuegoForm;
@Component(id
looks like the jars not copied in your WEB-INF/lib directory
2008/5/17 Toby Hobson <[EMAIL PROTECTED]>:
> Hi
>
> I'm looking at the t5-components project and I am trying to use the
> PagedLoop component. I've added the commons and contrib dependencies and the
> repo to my pom.xml and they are now
It doesn't really matter where you clear it. Just clear it when you're done
with it. As for the lifecycle question, you have to clear it because you
@Persisted it. If you didn't @Persist it, you wouldn't have to clear it,
but you'd likely lose your data when working with the form, depending on
y
Hi Ned, the onSuccess methos is executed before the onSubmit, so that would
not work for me because i am doing the model logic on the onSubmit. I tryed
setting my variable in null after executing my businnes logic, but i still
have the same issue. My private variable should not be cleaned by Tapest
Set your private variable to null in your onSuccess function.
On 5/17/08, Manuel Corrales <[EMAIL PROTECTED]> wrote:
> Thanks for your answer, but i still have the same issue. Maybe i am not
> explaining the problem ok. I have a page with a link, when i press the link
> the application goes to the
Return an URL object:
@OnEvent (component="quitGame")
Object onQuit() throws MalformedURLException {
memory.quit();
// more things to do before quitting
return new URL("http://www.someOtherWebspace.com";);
}
--
Thiago
---
Hi
I'm looking at the t5-components project and I am trying to use the PagedLoop
component. I've added the commons and contrib dependencies and the repo to my
pom.xml and they are now on my classpath. But when I try to use
${photo.name}
Tapestry complains that it
Thanks for your answer, but i still have the same issue. Maybe i am not
explaining the problem ok. I have a page with a link, when i press the link
the application goes to the new Matafuego page, where i am using a "hand
made form" (i mean not using beaneditorform tag). The first time i do this,
ev
this is a common behaviour/problem not only with tapestry.
- tags in xhtml should be written with a space before the closing
characters:
Juliane
-Ursprüngliche Nachricht-
Von: "Tapestry users"
Gesendet: 17.05.08 11:39:49
An: users@tapestry.apache.org
Betreff: T5 troubles
I might be w
I would probably use a lazy getter with a @Persist attached to the field.
Something like:
@Persist
private Matafuego matafuego;
public Metafuego getMetafuego()
{
if (null == metafuego)
{
metafuego = new Metafuego();
}
return metafuego;
}
The page instance is guaranteed to be
Hi, here is my problem. I have a bean on my java page, but i am not using
the beaneditorform component to create a new one. Acording to Alexander
book, the beaneditorform component can handle the initialization of the
bean, so you dont have to create one. As i am not using this component,
should i
Hi,
I would like to have a link, where on click first some cleanup action will be
done,
like for example closing a database connection etc, and then finally redirekt
the
user to some absolute URL in the web.
How can I accomplish this?
I have something like this:
Quit
@OnEvent (component="quit
Hi Serge, thanks a lot, the problem is solved. thank you
SergeEby wrote:
>
> Hey,
>
> Assuming you are using version 5.0.11, you can add: blankoption="never" to
> the component definition.
>
> See details here:
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corel
Hey,
Assuming you are using version 5.0.11, you can add: blankoption="never" to
the component definition.
See details here:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Select.html
/Serge
amebaliu wrote:
>
> Hi all, I have a question about se
Hi all, I have a question about select componenet,somehow, my options starts
from null, then userone, then usertwo, rahter than start from userone.. I
really can not find where is the error.. Hope somebody can help me, thanks
a lot
Here is my code
select t:type="select" t:model="users" t:value="u
Stick in a single action link.
It will take care of "uniquifying" its id.
Then write a single handler.
Put the instance-specific information in the context for the action
link, and then your handler can accept that info as method parameters.
Robert
On May 17, 2008, at 5/176:51 AM , Tomasz Dzi
You understood me very correcltly :)
But I have loop with products and each product has 'add to cart' link.
AFAIK it's not possible to use ActionLink in loop, cause every
ActionLink must have unique id and when I don't know how many items
will be in the loop it's hard do write methods connected to
In 4.0.2 the initialization code was being placed in open on the page. But
in 4.1.5 the initialization code is placed into a function and hence the
variable looses its reference. Hope that helps.
Srini.
On Wed, Apr 23, 2008 at 6:13 PM, Rohan Kalyan <[EMAIL PROTECTED]>
wrote:
> Hi all,
> We moved
I might be wrong, and for sure it's not critical but I found out the
following behavihour when including tags in my component:
component output result
parsers warn that is not properly closed
none Tapestry wisdomely throws an exception "Tag neds end
tag"
27 matches
Mail list logo