I'm just learning about Tapestry, so I'm not sure if there are more
sophisticated techniques built in. But in general this should be pretty easy
with a basic JSON serializer. With this you can easily write out something
like:
var localizedMessages = { message1: "Some en-US message.", message2:
"A
hi chris,
could you split your question into simpler parts :)
i'm not sure where to start so a few thoughts that
come into my mind.
you can use a Mixin to determine the generated id of
a component by using @InjectComponent and reading
getClientId. This Mixin would delgate the id to a se
I solve the problem.
My select is in the component that i update, and this is the problem.
I put mySelection and myForm outside the [EMAIL PROTECTED], and it works.
With this solution i can easily get the value selected.
remarks : on my side, when i use targets instead of elements, it doesn't
Hi all,
I need help.
I want to set value on particular field on the destination page via a
listener.
If I use button as a link to the destination page, Could I add a
listener to button component?
When using DirectLink component, i could do this:
Add
When using button component:
hi borut,
what you need is not possible... we'll have to wait for the AJAX
integration :)
i've posted a have-baked solution how to perform partial
page rendering in t5:
http://www.nabble.com/T5%3A-Prototype%27s-AJAX.updater-question-tf3907697.html#a11079706
it works as long there is no Form co
Hello,
I would like to create an ajax dialog (actually a series of them to act as a
wizard). The content of the dialog should change according to user
interaction and therefore create a series of steps. If this wizard is going
to have 3 steps then 3 ajax requests for dialog content would be made.
Can anyone shed some light as to what happened with this idea of having a
configurable validation 'theme'?
Thanks,
Rachel
Jessek wrote:
>
> ..
> Not sure which release this belongs in but I've got all kinds of
> usability/humane/etc plans for validation that I'm going to want to
> try app
Not exactly sure what Jesse had originally in mind, but changing 'themes'
is quite possible & even easy -
You just need to override the family of methods at tapestry.form.validation
Here's an example I recently used for amplafi:
amplafi.presentErrors: function(miObj) {
var form = miObj
That is what I had in mind - I'm soliciting input from anyone with
similar needs. You didn't miss the point at all ;)
froggy000 wrote:
I'm just learning about Tapestry, so I'm not sure if there are more
sophisticated techniques built in. But in general this should be pretty easy
with a basic JS
Sorry, but you seemed to grasp it well. I have some questions regarding
your response:
Kristian Marinkovic wrote:
a few thoughts that
come into my mind.
you can use a Mixin to determine the generated id of
a component by using @InjectComponent and reading
getClientId.
Currently I'm @Inj
Oh andy, i forgot to tell that i was using 4.0.2, so this code is not so up
to date
sorry about that
:)
2007/10/9, andyhot <[EMAIL PROTECTED]>:
>
> Just a note that
> this.form.events.refresh() has been deprecated for more than a year now
> and actually has been removed in 4.1.4
>
> Correct (as h
The JS is the easy part. What I'm trying to understand is how to allow
arbitrary (client side) components to be provided as parameters to the
mixin. In reality all that needs to happen is a JS object needs to be
provided so that it can receive and handle the key events. If I wanted
it to be dir
exactly - and if you're able to control the display (or not) of the dialog
you can easily go for calling the validation methods every 2-3 secs
and displaying little green or red markers here and there :)
RachelS wrote:
Oh, ok! I see how that fits together. Thanks for the advice!
That's much sim
There are so many possibilities! I just love it :)
andyhot wrote:
>
> exactly - and if you're able to control the display (or not) of the dialog
> you can easily go for calling the validation methods every 2-3 secs
> and displaying little green or red markers here and there :)
>
> RachelS w
Oh, ok! I see how that fits together. Thanks for the advice!
That's much simpler than the crazy things I was thinking...
(At the moment I'm upgrading from Tap4.0 + Tacos to T4.1.2 and it's
challenging to get the stuff working the same way visually that it used to.)
Thanks again,
Rachel
andyh
Dojo has the concept of registering for events and publishing events -
so, the mixin could emit js that publishes
a set of custom events
Event content could follow any protocol you decide, either json
{nodeId:'textarea1', charsLeft:50, message:''} or even a string
textarea1|50|
and it would be p
I 'm having this peculiar problem with the page I'm trying to create (I'm
using Tapestry 4.1.3. When the page loads, I get a Tapestry Exception
Unable to read OGNL expression '' of
[EMAIL PROTECTED]: source is null for getProperty(null,
"selectedCountryId") [context:/WEB-INF/Home.xhtml, line 130]
see:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateATabPanel
[EMAIL PROTECTED]
10.10.2007 14:56
Bitte antworten an
"Tapestry users"
An
users@tapestry.apache.org
Kopie
Thema
T5: TabPanel
How do you translate the following example to T5 ?
Berlin
Rome
So when I use @InjectComponent, what type must I inject? If the
PageRenderSupport service has the method I need, woudn't I inject that
(as an @Environmental)?
thanks again :)
Kristian Marinkovic wrote:
1) getId() returns the id of the component you used in your code.
you get a problem when yo
most of the components offer a public getClientId() method :)
if you use some that doesn't you have to do:
@Inject
private PageRenderSupport _pageRenderSupport;
@Inject
private ComponentResources _resources;
_pageRenderSupport.allocateClientId(_resources.getId());
Chris Lewi
1) getId() returns the id of the component you used in your code.
you get a problem when you use your component in a loop. then your
id would not be unique anymore... this is also true if you use the
same component with the same id in another nested component.
T5 uses the PageRenderSupport servic
Not sure why this fails - I'd also try
parameters="ognl:{selectedCountryId, selectedLocationId == -1 ? otherCityId : selectedLocationId,
checkIn == null ? null : checkIn.time, checkOut == null ? null : checkOut.time, adultsPerRoom}"
but I'd really go with simplifying the ognl expression of thi
How do you translate the following example to T5 ?
Berlin
Rome
Tokyo
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ah - but unfortunately there's no common super interface, so in this
case I'd be relying on AbstractField#getClientId, since this mixin would
probably apply only to those (although possibly not). So that's a bit of
a pain, but you're saying that calling allocateClientId will give the
same resul
Ok, but in order to use the component's method getClientId, I'd have to:
1) require the component to be of a certain (base) type
2) get access to the actual instance
I'm not sure how to do #2 without specifying it as a parameter. I
shouldn't have to do that thought because the component uses th
Can someone explain the following exception?
I click on a productdetail url like ('/productdetail/9)
The system.out in ProductDetail. java prints nicely 9 to the screen.
**
*void* onActivate(Long productId) {
*this*.productId = productId;
System.*out*.println("ProductDetail.onActivat
be careful when you use
_pageRenderSupport.allocateClientId(_resources.getId());
as it always generates a new id.
i looked at my code and i check whether the injected component
implements the interface ClientElement
Kristian Marinkovic <[EMAIL PROTECTED]>
10.10.2007 15:18
Bitte antworten an
this should do it :)
@InjectComponent
private ClientElement component;
void beginRender() {
if(component != null)
System.out.println(component.getClientId());
}
Chris Lewis <[EMAIL PROTECTED]>
10.10.2007 15:54
Bitte antworten an
"Tapestry users"
An
Tap
hi howard,
i receive an exception when i assign two mixins which
both return a value on the same render phase method
public class FirstMixin {
boolean setupRender() {return true;}
}
public class SecondMixin {
boolean setupRender() {return true;}
}
@MixinClasses({FirstMixin.class,SecondMi
I wanted to use either Trails or Cognition for the next project.
However, Cognition seems to have ceased to exist and Trails
"does not work".
Maven does not find everything (Quick Start):
Reason: Error getting POM for 'org.apache.myfaces.tobago:maven-apt-plugin' from
the repository: Error tran
Hi,
I have this dropdown box in a html form:
Teacher
Student
Now I likt to use this with T5, any sample code for this? I have checked the
HowTos, all are long codes, any simplier ones? my need is simple: how to
declare this in a template and ho
Hi All
I use Tapestry 5, Java 6 with the maven plugin in eclipse 3.3. I am
building a user specific navigation component, and I am getting this
strange error:
java.lang.LinkageError
loader constraint violation: when resolving method
"com.web.services.BreadCrumbs.getRootLink()Lcom/web/compone
Hi
I'm having no problems with Trails. ;-)
>From your log, it looks like a maven/network problem. Try again, and
again, and if you keep having this problem try deleting your local
copy of the apt plugin.
If you decide to go with Trails you are welcome to join us in our
users mailing list:
http://x
Folks,
I have been chasing my tail trying to get a simple parameter to work. I am 2
years tapestry and developed parameters for quite sometime.
Can someone confirm this as bug or present a solution?
This is what I have...
Gallery.JAVA
public abstract class Gallery extends BaseComponent
{
But when is the codehaus apt plugin going to be released? I found it
much better than the tobago one.
Christian.
On 10-Oct-07, at 11:18 AM, Kalle Korhonen wrote:
On 10/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I wanted to use either Trails or Cognition for the next project.
Howe
I'm receiving this same type of exception message when attempting to
alter the SetupRender phase result of the component I'm applying my
mixin to. Is this expected behavior? It seems that a lack of the
ability to override the components' or mixins' phases is a limiting
factor for mixins' usefulness
An exception has occurred.
You may continue by restarting the session.
[ +/- ] Exception:
Unable to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
org.apache.t
Hi there!
Why not instead of a component the htmlFragment comes from a Page?, so in your
javascript code, you can make a page request.
For example, in my Main Page:
class WizardPage {
@Persist
private String _currentPage;
void onStepChanged(String toPage) {
_currentPage = toPage;
This guy has the same issue days ago...
http://article.gmane.org/gmane.comp.java.tapestry.user/53716
Best regards
Ken in nashua
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
> Date: Wed, 10 Oct 2007 11:51:35 -040
Hello,
mvn compile gives
...
[INFO] [compiler:compile]
[INFO] Compiling 172 source files to
V:\Users\Borut\tapestry-project\tapestry-ioc\target\classes
[INFO]
[ERROR] BUILD FAILURE
[INFO]
On 10/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I wanted to use either Trails or Cognition for the next project.
> However, Cognition seems to have ceased to exist and Trails
> "does not work".
I've talked with the founder of Cognition a few times, and yes, the project
was scrapped.
Since I am using a simple non-boolean single-select...
Can I still use the StringProeprtySelectionModel and operate OGNL arithmetic on
the integer strings (assuming they will coerce properly)?
Or do I have to implement a OptionRenderer for Integer?
Thank you for any light on this issue.
Best
One thought regarding Compass. Have you been looking at hibernate-search?
It is essential the same thing, but without the Compass dependency.
Regards
Ted
2007/10/4, Kalle Korhonen <[EMAIL PROTECTED]>:
> Hello "Trailers" :)
>
> Just as promised, we are happy to announce Trails 1.1.1 release! It fe
Sorry, forgot to mention that in WizardPage.tml should be a actionlink component
and the handler method should be
void onActionFromStepChanged(String toPage) {
_currentPage = toPage;
}
The Ajax request can be done:
new Ajax.Request('/context/wizardpage.stepchanged/step2', {
method: '
My first guess would be that your rendered page has image/script elements
that are referenced using relative urls:
which would be translated to
"/productdetail/assets/img.gif" in the browser request.
My second guess is that the link you clicked on isn't what you think, but
that seems less l
How about something like:
You will get "Teacher" or "Student" back as the value, you can just
translate it to T/S on the server...
Josh
On 10/10/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have this dropdown box in a html form:
>
>
>Teacher
>Stud
We compile under JDK 1.5.
On 10/10/07, Borut Bolčina <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> mvn compile gives
>
> ...
> [INFO] [compiler:compile]
> [INFO] Compiling 172 source files to
> V:\Users\Borut\tapestry-project\tapestry-ioc\target\classes
> [INFO]
> -
Please check out:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html
Basically, you shouldn't mix component classes with services classes. When
you do so, you need to define an interface for your components to implement.
On 10/10/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
On 10/10/07, Christian Gruber <[EMAIL PROTECTED]> wrote:
>
> But when is the codehaus apt plugin going to be released? I found it
> much better than the tobago one.
Probably not the right list to ask that one. Trails-wise, Tobago's apt
plugin has its issues, but suffices for the purpose. Ideally
Heh. I wasn't really asking - more just trying to be funny. I've
already asked the codehaus people.
Christian.
On 10-Oct-07, at 1:34 PM, Kalle Korhonen wrote:
Probably not the right list to ask that one. Trails-wise, Tobago's apt
plugin has its issues, but suffices for the purpose. Ideall
I decided to model T-4 examples and it still produces exception
private static final String[] tableSizeOptions = new String[] { "1", "2",
"3", "4", "5", "10", "25", "50", "100",
"500", "1000", "2500", "5000", "1", "25000", "5" };
private static final String[] paging
I tried...
@Override
protected void prepareForRender(IRequestCycle cycle)
{
super.prepareForRender(cycle);
setCollection(loadCollection(getCollectionType()));
if (getTableSize() == null)
setTableSize(tableSizeOptions[0]);
if (getPagingSpan
Short of adding a filter in the web.xml, is there a way in tapestry 5 to
selectively have certain pages validate user sessions? I'm trying to
unobtrusively have pages redirect the user to log in before they view the
page if their session timed out. Currently, I would need this functionality
for
An exception has occurred.
You may continue by restarting the session.
[ +/- ] Exception:
Unable to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(ExpressionBinding[Home/galleryWidget 1]) may not be updated.
An exception has occurred.
You may continue by restarting the session.
[ +/- ] Exception:
Unable to parse OGNL expression '(index % tableSize) == 0': / by zero
org.apache.tapestry.BindingException
If tableSize is != 0 (according to OGNL condition check) then how is OGNL
letting it get in?
An exception has occurred.
You may continue by restarting the session.
[ +/- ] Exception:
Unable to parse OGNL expression '(index % tableSize) == 0': / by zero
On 10/10/07, mnguyen21 <[EMAIL PROTECTED]> wrote:
>
> Short of adding a filter in the web.xml, is there a way in tapestry 5 to
> selectively have certain pages validate user sessions? I'm trying to
> unobtrusively have pages redirect the user to log in before they view the
> page if their session
Thanks for the tip, now it worked :)
Like you said, I had to assign a listener and transfer the code to the java
page. It worked but I understand there is a problem with ognl; theoretically
the previous approach should also work. Thanks a lot anyway :)
On 10/10/07, andyhot <[EMAIL PROTECTED]> wro
Thanks,
it appears Java auto update changed my JAVA_HOME. It compiles now of course.
-Borut
2007/10/10, Howard Lewis Ship <[EMAIL PROTECTED]>:
>
> We compile under JDK 1.5.
>
> On 10/10/07, Borut Bolčina <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > mvn compile gives
> >
> > ...
> > [INFO] [
Folks,
I have attached all my modules to this Gallery Widget.
Can someone comment on a solution?
Here are the issues...
1. OGNL cannot do arithmetic on tableSize due to divide by ZERO. My blocker to
prevent exception is check for null but thats not a solution.
2. Parameters are not updatable w
Robin,
The documentation is scarce for this project. Does it have all the
functionality its counterpart in Spring have? I can't tell from the
website. Does Acegi have to be configured with a database? I know this
is an odd request, but due to how our framework is setup, user
information is s
I am using acegi in T5, without a database, so no, you don't need to
configure it with a DB. There's a tutorial on a wiki somewhere, if you
google it, which was enough to get me (also a total novice) started...
Steve
On 10/10/07, Nguyen, Michael <[EMAIL PROTECTED]> wrote:
>
> Robin,
>The docu
Hi,
Sorry, this is not Tapestry related, I need to generate a unique ID so that
user can confirm their registration by clicking a link like:
http://mydomain.com/confirm/1234568798, if I use java.rmi.server.UID, the
code does not look good for this job:-5a9a0257:1158cfbcadf:-7fff, any hints
to sha
hello all :
I write a page class :
package com.myspacce.pages;
import java.util.*;
import org.apache.tapestry.annotations.*;
import org.hibernate.*;
public class Start
{
public String _name;
@Inject
private Session _session;
public List getL
I logged a JIRA for this a few moons back:
https://issues.apache.org/jira/browse/TAPESTRY-1662
The other JIRA (1805) is more concerned with symmetry
of the render events called before & after.
Certainly a bit more work needs to be done there.
Cheers,
Nick.
Todd Orr wrote:
I'm receiving this
This feels totally hacky, but if you have control over the component
you are creating a mixin for you can pass a flag in the Environment
that the component can use to determine phase results...yeah, ugly.
On 10/10/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> I logged a JIRA for this a few moons
It looks like you don't have the tapestry-hibernate module in your classpath.
There are a couple of starters you should checkout:
http://tapestry.apache.org/tapestry5/tapestry-hibernate/
http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
And don't forget to search the mailing list
Hi Ken.
I haven't really used T4, but I suspect you may need to bind
the parameter to a persistent property in your Home page:
Now, you may have noticed that no-one else has replied to you,
and in the interests of improving the signal-to-noise ratio of
the list I'd like to make a polite su
Encode to hex or base64 to make the link "presentable".
Also the user's id should be unique, so use that for uniqueness.
Store a randomized token (number or string etc) in the user's
data and then encode/encrypt the id and the token in the link.
Cheers,
Nick.
Angelo Chen wrote:
Hi,
Sorry, th
thanks.
I hava add this to AppModule:
public static void
contributeHibernateSessionSource(Configuration configuration)
{
configuration.add("com.myspacce.domain");
}
Company.java is in com/myspacce/domain:
import javax.persistence.*;
@Entity
@Table(name="comp
Hinting at a better way to reload.
Bill H. Austin
-- Forwarded message --
From: Google Alerts <[EMAIL PROTECTED]>
Date: Oct 9, 2007 5:23 PM
Subject: Google Alert - "Tapestry 5"
To: [EMAIL PROTECTED]
Generic Class Reloading Comes To Java
Sys-Con Italia (Comunicati Stampa) - USA
.
I have fetched datas from database :
@Inject
private HibernateSessionManager _sessionmanager;
private Company _company;
public List getList()
{
_session=_sessionmanager.getSession();
List list=_session.createQuery("from Company").list();
r
If you really want your values to be different from the labels ('S'
instead of 'Student'), you can use a Map for your
model. The value submitted back into your 'profile' variable will be
the corresponding map key (T or S).
Cheers, lasitha.
On 10/10/07, Josh Canfield <[EMAIL PROTECTED]> wrote:
> H
73 matches
Mail list logo