Hi,
How can i initialize a grid to be displayed with a descending sort order
on a column ?
Thanks in advance.
Stephane
You're welcome, glad it helped.
And now I know why I didn't see this message on the mailing list: The T5
in the subject was missing.
zack1403 schrieb:
On #tapestry, TobiasW suggested to add the columns through beanmodel instead
of in my tml which turned out to work just fine. Definitely look
Hi,
Welcome to the list. :)
Regarding your questions:
1) There's no way to localize page classes. Why do you need this?
2) For overriding internal services - if you must - you can probably use
an Alias:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html.
3) No, there's no
Is there any othe solution?
Lance Java wrote:
>
> You oculd do it with javascript:
>
> Event.observe(window, 'load',
> function() { $('buttonId').focus(); }
> );
>
> 2008/6/10 Kameswari <[EMAIL PROTECTED]>:
>
>>
>> I have a form with 2 @Submit buttons.
>> By default while rendering the 1s
It would be nice if we were able to add a not existent property to
Grid and BeanEditForm without having to declare the model explicitly
in the class... that's what i thought the first time i saw the "add"
parameter in these components, but it just works this way inside the
class.
José, did you fir
Have you tried to submit the form and update the grid's list with the
information you entered?
2008/6/11 滕训华 <[EMAIL PROTECTED]>:
> Hi,friends,please give me some idea,thanks.
>
> -邮件原件-
> 发件人: 滕训华 [mailto:[EMAIL PROTECTED]
> 发送时间: 2008年6月11日 9:04
> 收件人: 'Tapestry users'
> 主题: About refres
I think this is the only way, there is no html attribute for a
which will set the focus.
A cleaner solution might be to create a "focus" mixin which adds the
javascript I suggested.
Then you could do something like...
@see http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained
Cheers,
actually it seems to be a more general problem. if we take two zones, outer
and inner one, everything linked to the inner zone (via t:zone="blahblah")
stops updating if zone had been updated previously. simply, T5 updating
inner zone immediately changes its zone ID.
ok, i know. it's a namespaci
From what I understand, the add attribute of the grid element is here
just to do that : add placeholder column, typically to put some actions
on the content of the row (like editing, detailing, deleting etc...).
I created the following JIRA :
Key: TAPESTRY-2451
Is it possible to define a Block for a BeanEditor component that
itself contains a BeanEditor component?
when we tried to implement this the page renders as expected.
in our case we render the properties of a Company object and
one of these properties is a User object that itself is rendered
After playing for hours I achieve to make my classes automatically reloaded
with it a true joy.
But now my templates are not up to date.
I need to understand the following, both jetty plugin and jettyrun show in
the console:
launching Jetty webapp: /compramaestra on address: 0.0.0.0:80 usin
Does the checkbox component provided with tapestry support validation? (via
the @Validate annotation?) I¹m trying it and it doesn¹t seem to validate on
either the client side or the server side
My example code:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Tick
if you configure the jetty-plugin (in eclipse) it will use the compiled
classes from
the binary directory. it will do as if it where in your WEB-INF/classes
directory.
because you can build your project with maven from the
command line the content of the target directory in eclipse then does
the @Validate is only interpreted if used in a bean
that is displayed by a BeanEditor(Form).
in your case you'd have to apply directly to your
checkbox
...
11.06.2008 16:38
Bitte antworten an
"Tapestry users"
An
Tapestry users
Kopie
Thema
T5 checkbox component and validation
Does
As a follow-up, if you're using the jetty:run maven plugin with the
default configuration to launch your app from the command-line, you
will need to:
mvn process-resources
after making changes to templates in order for them to show up. The
command will copy the changed-templates from the sr
I just tried that, no luck! It still doesn't do any validation. If it helps
I'm using the 5.0.13-SNAPSHOT release.
Ciaran Wood
On 11/06/2008 3:46pm, "Kristian Marinkovic"
<[EMAIL PROTECTED]> wrote:
> the @Validate is only interpreted if used in a bean
> that is displayed by a BeanEditor(Form).
hi, i have just discovered something odd while returning the Block element
for Ajax update. if I enter manually URL that should return a Block from
handler method i get the following:
An unexpected application exception has occurred.
A component event handler method returned the value
[EMAIL PRO
oops... you're right there is no validate parameter defined
for a checkbox. :)
you could use the onValidateFormFrom
event instead
g,
kris
Ciaran Wood <[EMAIL PROTECTED]>
11.06.2008 16:51
Bitte antworten an
"Tapestry users"
An
Tapestry users
Kopie
Thema
Re: T5 checkbox component an
Solved!
Devil lives on details, In fact it was just an eclipse mess.
1)
In my output source folder src/main/resources the excluded flag was set to
** thus the tml files where not placed to the target directories.
2)
Sudendly my eclipse working directory started to complain about a: "The
proj
i have an @EventListener attached to an JS method on a Hidden component.
during the rendering of the page the ComponentEventConnectionWorker will
contribute the results of the ComponentEvent.script for each component that has
ajax events. as part of that rendering the component's extendedId is
Hard to say what the performance implications of Groovy are; it seems
like a Tapestry application spends very little time in user code; most
execution time is in framework code or in Hibernate/database access.
So I doubt Groovy will have a major impact. I'm building a T5 Groovy
app right now (you'
Hi Guys,
"validate=required" on a checkbox does not make sense to me. A chekbox can
either be unchecked (resulting in false) or checked (resulting in true). I.e.
the validation "required" can never fail. Could it be you are talking about
t:radio and t:radiogroup ?
Regards nillehammer
- or
I'm more looking to have a way to validate a checkbox is checked. I've
started work on a custom validator and mixin to add validation functionality
to the checkbox. Client side, its working a treat, server side is harder,
however...
Ciaran
On 11/06/2008 5:08pm, "nille hammer" <[EMAIL PROTECTED]
Ajax is detected by an http header passed by the prototype ajax
request. If your request isn't coming from an ajax method then you
don't get an ajax response.
This can also be an issue if you're trying to roll your own XHR
requests (you can add the header manually)
You can detect if Tapestry thin
Thanks for the heads up.
Looking at the Hibernate source, I can see that this is true, when you
commit() a transaction, the Session's connection to the transaction
(via the JDBCContext) is lost. It seems like, at least for the JDBC
case, the Transaction object should only have begin() invoked onc
> "validate=required" on a checkbox does not make sense to me.
It makes sense if you have a checkbox that implies that you have read
a license agreement, are over 13 etc. To me having required for a
checkbox would mean that it was checked.
Josh
On Wed, Jun 11, 2008 at 9:08 AM, nille hammer
<[EMA
Before making changes, I'm checking on the Hibernate user forum.
http://forum.hibernate.org/viewtopic.php?p=2387715#2387715
Please still add the bug to JIRA.
On Wed, Jun 11, 2008 at 9:53 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Thanks for the heads up.
>
> Looking at the Hibernate sour
in tml:
in java:
@Inject
private ComponentResources componentResources;
public Object getMyDynaObject() {
Link testLink;
testLink = componentResources.createPageLink("targetPageHere", true,
"11");
return testLink;
}
Renders text "targetPageHere/11" ins
Shouldn't that be request.isXHR?
-Filip
Josh Canfield skrev:
Ajax is detected by an http header passed by the prototype ajax
request. If your request isn't coming from an ajax method then you
don't get an ajax response.
This can also be an issue if you're trying to roll your own XHR
requests (
Hi,
Tapestry does what you ask it to do - returns a (relative) URI for the
link. (Check out the Javadocs/source for AbstractLink to see this.)
I suspect that calling toAbsoluteURI() on the link will give you what
you want. Oh, and you won't need RenderObject for that - you can just do
an exp
I think I'm missing concept behind renderObject component.
The original idea was to render Link or just some text basing on other page
properties and actual object to be rendered should be returned by public
Object getMyDynaObject().
So I need to get in page markup for link, but instead I get
"ta
Hi,
I see. It's actually easier than you'd think. Here's what you do:
Class:
@Inject
private ComponentResources componentResources;
public String getLink() {
return componentResources.createPageLink("targetpagehere",
true").toURI();
}
Template:
text for link
See? It's easy.
I'm surprised that doesn't work.
On Wed, Jun 11, 2008 at 7:04 AM, Kristian Marinkovic
<[EMAIL PROTECTED]> wrote:
> Is it possible to define a Block for a BeanEditor component that
> itself contains a BeanEditor component?
>
> when we tried to implement this the page renders as expected.
> in our
ok, Howard, I added the bug to JIRA.
Regards.
Howard Lewis Ship wrote:
>
> Before making changes, I'm checking on the Hibernate user forum.
>
> http://forum.hibernate.org/viewtopic.php?p=2387715#2387715
>
> Please still add the bug to JIRA.
>
> On Wed, Jun 11, 2008 at 9:53 AM, Howard Lewis
Uh, yeah :) I won't deny that I make that same typo in my code, too bad
gmail doesn't have intellij built in to tell me which methods belong to
which objects... maybe a gmail plugin for intellij...
On Wed, Jun 11, 2008 at 10:18 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Shouldn't that be r
Hi,
How can I configure t5components.SidePanel to start "not closed"?
closed="false" dosen't work :(
thanks,
Marcus
the parameter "closed" is not implemented.
youre pleased to add an issue
http://code.google.com/p/tapestry5-components/issues/list
2008/6/11 Marcus <[EMAIL PROTECTED]>:
> Hi,
>
> How can I configure t5components.SidePanel to start "not closed"?
> closed="false" dosen't work :(
>
> thanks,
>
> Ma
Hey list,
i created a tiny plugin to simplify my daily work in eclipse with tapestry5
and wanted to share this plugin with you as
someone might find it useful.
The only implemented function the plugin provides at the moment is a
functionality to
switch between a template file and java component/cl
Yes,I have update the source of grid component when the event of search is
called.as following:
public void onSelectedFromSearchButton(){
allCustomers=customerManager.getCustomersByKey(searchKey);
}
In tml as following:
${message:label_sea
Hi All, I have this problem with component form after I upgraded my app to
5.0.13. The error msg is:
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.Form.
The tml looks like:
Hi,
If you put this code on onSubmit(), it works?
Marcus
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.Form.
if its the slf4j logger, which isn't found and you're using jetty try to put a file called
"jetty-web.xml" into your WEB-INF folder.
jetty-web.xml:
=
42 matches
Mail list logo