Hi Zheng,
Since you are newbie, I think you should try T5. I'm a Tapestry user since
T3. T5 is more intuitive and easy to learn, in my opinion.
Marcus
Hi Mahen,
Try clean browser cache.
Marcus
Hi Joshua,
try OutputLocale.
http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber
Marcus
Hi spamglik,
org.apache.tapestry.*ioc*.annotations.Inject
http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469
Marcus
3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469>
Marcus
Hi,
All tests of BeanEditForm (in tapestry-core) are using an ASO
(RegistrationData).
ASO is not required for use BeanEditForm or BeanEditor, right?
Using ASO is the best pratice?
Thanks,
Marcus
Hi Renat,
We can use validation inside properties, on the client side.
But we still can use:
void onValidateFromMyEmailField(String cliente) throws ValidationException
on the server side.
Marcus
Hi Marie,
I have used EWDT too, it's a great book, but i suggest you try Tapestry 5,
it is easy to learn and more intuitive than older versions.
Start with http://tapestry.apache.org/tapestry5/tutorial1/
Marcus
Hi Angelo,
Look at tapestry-core source, in
src\test\java\org\apache\tapestry\integration\app1\pages , there are a lot
of examples, including ZoneDemo.java
Marcus
Hi Ryanskow,
Maybe this help:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
We are using Dispatcher to control access to pages.
Marcus
Hi Howard,
Any news about 'format' parameter?
Thanks
Marcus
"validate", "success" (or "failure") and "submit" events*. Thus
the best thing to do is to store in a temporary field what should be done
inside the "success" event handler.)
The use of multiples submit buttons appears to be the best option, instead
of actionlinks.
Marcus
Hi Jesper,
You can use:
@IncludeStylesheet("context:style.css")
public class Layout {
instead of:
@Inject
@Path("context:/style.css")
private Asset style;
Marcus
Hi Angelo,
Maybe this help:
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/beaneditform.html
"Adding New Property Editors"
Marcus
Hi Angelo,
If we use boolean type for "cssClass", maybe we don't need a set method.
private boolean cssClass = false;
public String getRowClass() {
cssClass = !cssClass;
return (cssClass ? "" : "zebra");
}
Marcus
Angelo Chen wrote:
Hi Jack,
Can you post the code of this class?
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Login:
maybe the problem is there.
Marcus
remove"
and "reorder". A comma separated list of fields that have to appear disabled
in BeanEditForm.
https://issues.apache.org/jira/browse/TAPESTRY-2153
Thanks,
Marcus
Hi Angelo,
We are using T5 with Tomcat 6, no problems.
Marcus
Hi,
@Property works for any class? or only for components and pages?
thanks,
Marcus
On 3/13/08, Robert Zeigler <[EMAIL PROTECTED]> wrote:
>
> On Mar 13, 2008, at 3/139:07 AM , Angelo Chen wrote:
>
> >
> > Hi,
> >
> > As usual I always like to look at new
Hi Angelo,
- get ContextClassLoader from current Thread
- get path of your pages package (org.exemplo.teste.pages) from ClassLoader
- get files on this path that ends with ".class", skiping inner classes.
I think this topic already has been discussed here.
Marcus.
Hi Jan,
maybe this help
void onSubmitFromCancelForm() { ... }
Marcus
Hi Michael,
Try Grid component instead a Loop.
Marcus
();
return "start";
}
...
What's the best practice?
Thanks,
Marcus
Hi,
We're using autocomplete mixin with no problem, maybe this help.
http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding
Marcus
Hi Mahen,
Maybe this help,
server.xml:
...
...
...
...
Marcus
Hi Leon,
There is a JIRA about format parameter for DateField, vote!
To format a date output you can use OutputLocale component (
http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber)
Marcus
Hi Axel.
Maybe this help,
"Adding Columns Example" at
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Grid.html
Marcus
Leon,
No, you can't, :) it's only for output.
Don't forget to vote on JIRA!
Marcus
if T5 willBeCompatibleWith T(5+n)
andT5 shouldWorkWith T(5-n)
then rename T(5-n) annotations packages;
else if T5 willBeNotCompatibleWith T(5+n)
then rename all Tapestry packages;
Marcus
"Rob",
I'm sure that you are a very busy man, so, don't worry about the future of
Tapestry, you have did your part, thanks.
I think you have to move on, and forget about Tapestry.
Hi,
Using autocomplete mixin, how do we know, if an option of the list provided
was selected, or if user has entered another text?
Would be great if some event was fired on server side when user select one
of option provided by mixin.
Thanks,
Marcus
Hi Stephane,
I already have a zone including my grid and with the inPlace parameter, my
> grid is no more refreshed.
>
You don't need any zone component, just the atribute inPlace.
Marcus
/integration/app3/
Marcus
Hi José,
Maybe you could use onValidateForm(), it's called before onSuccess().
Marcus
837)
-
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
- org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
- org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Thank in advance,
Marcus
Hi Thiago,
You are right, LibraryModule was not loaded.
generated JAR:
META-INF
META-INF/MANIFEST.MF
pub
pub/t5lib
pub/t5lib/LibraryModule.class
pub/t5lib/components
pub/t5lib/components/MyComponent.class
any idea?
Thanks,
Marcus
Hi Thiago,
- MANIFEST.MF was extracted from JAR and checked, file is ok
- Try putting JAR in project build path.
same error :(
Marcus
Hi Andrew,
$content$ = (
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html
)
for $remove$ you can use t5components/remove or search on list for "public
class Remove"
Marcus
Hi Andrew,
Sorry about $content$, Robert is right about T5 and T3 RenderBody.
Marcus
Hi Janko,
maybe this help
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/ZoneDemo.tml?view=markup
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ZoneDemo.java?view=markup
Marcus
Hi Martin,
Maybe your problem is in the "LoginStatus" code, can you post it?
Marcus
Hi Max,
We deal with especial characters like this:
- UTF8Filter on AppModule
- equals() and hashCode() for beans used on Select component.
Marcus
Hi lance,
http://tapestry.apache.org/tapestry5/struts.html
Marcus
Hi,
I've download Tapestry 4.1 and folowing jars, all in \shared\lib
aspectj-1.5.2.jar
easymock.jar
jakarta-oro-2.0.8.jar
ognl-2.6.9.jar
commons-io-1.2.jar
tDate;
}
public void formSubmit(){
return;
}
}
And what i got is an empty page on Firefox and IE
What did I wrong? :(
Thank's for your time.
Marcus
*
try
http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin
install plugin and configure parameters in eclipse, after configure
"your-project" properties and with 1 clique you will deploy app into tomcat.
Hi Moritz,
Maybe this help:
http://tapestry.apache.org/tapestry5/tomcat.html
http://tapestry.apache.org/tapestry5/tutorial1/first.html
Are you using archetype Artifact Id = quickstart ?
To generate .war file we're using mvn war:war
Marcus
/tapestry-core/src/test/app1/WEB-INF/RadioDemo.html
Marcus
Hi Josh,
I agree with Ulrich, we're doing this right now. The Forum already have a
lot of T5 code examples.
http://tapestry.apache.org/tapestry5 (What's changed since Tapestry 4?)
Marcus
ogged())
return "Login";// Redireciona para a página de Login.
return null;// Retornando null ou true permite o acesso a
página.
}
}
public class Portal extends ProtectedPage {
}
Marcus
Olá Marcelo,
(Informe o nome)
Marcus
http://wiki.apache.org/tapestry/Tapestry5HowTos
http://wiki.apache.org/tapestry
Hi Allen,
To remove some properties you can use @NonVisual (see grid screencast).
to add some extra columns you will need to explicit declare the model used
by grid, search this forum and you will find how to do this.
Marcus
Hi Cyrille,
We're using 5.0.5 in production with no problems.
Anyway, search for "AssetProtectorDispatcher" topic on this forum.
Marcus
Hi,
Use WEB-INF/web.xml:
15
This apply to any Servlet Container (not a Tapestry configuration).
Marcus
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 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
Hi Angelo,
try FileReader("context:images/info.xml")
Marcus
with "images" under "youApp\src\main\webapp\"
Angelo,
Look at Tapestry-Upload source code.
There should be an example.
Marcus
x27;t should change anything.
Anyway, T5 should call only those methods that matches, and onActivate(),
with no parameters, first.
Marcus
Hi Hibowl,
I think you have to modify pom.xml.
If you post your pom.xml maybe we can help.
Marcus
Hi Johan,
If you create a new project, using tutorial, and import to Eclipse, under
"Maven2 Dependencies".
- commons-codec...
- commons-logging...
- javassist...
- junit
- log4j.
- tapestry-core-5.0.5.jar
- tapestry-ioc-5.0.5.jar
- testng...
Marcus
(!_visit.isLogged()) {
return false;// Access denied.
// return "Start";// Redirect to page Start.
}
return null;// Return null ou true allow access.
}
}
Marcus
Angelo,
Sorry, return false (or true) is not an option, you must known the page
name. Returning null allow access.
Marcus
)
_lista=new ArrayList(0);
return _lista;
}
public static void add(Usuario usuario) { getLista().add(usuario); }
}
Marcus
Hi Josh,
I agree with your comment. Add synchronization to "add" method is a good
practice.
Marcus
Josh,
Again, I agree, every method that change the _lista should be synchronized.
Marcus
ories=
http://tapestry.formos.com/maven-snapshot-repository
but...
[ERROR] ResourceManager : unable to find resource
'archetype-resources/src/main/webapp/WEB-INF/Start.html' in any resource
loader.
thanks
Marcus
Hi Davor,
I tried.
in AppModule:
...
import org.slf4j.Logger;
...
public RequestFilter buildTimingFilter(final Logger log)
pom.xml:
...
log4j
1.2.14
...
5.0.6-SNAPSHOT
but... :(
HTTP ERROR: 500
org.apache.log4j.Logger.isTraceEnabled()Z
Marcus
o org.mortbay.thread.BoundedThreadPool$PoolThread.run(
BoundedThreadPool.java:475)
:(
Marcus
Hi Jean,
Can you show the stacktrace?
Your template have grid component inside a form? If yes, remove a form tag.
I had some problems with grid inside a form when my source list is too big.
Marcus
Hi Borut,
It works if i rename Start.html to Start.tml and put in webapp folder.
But, it's correct? all my templates have to renamed to *.tml?
Seems like a very strange behavior, at least for me.
I think i will wait for oficial release 5.0.6.
Thanks.
Marcus
oteRepositories=
http://tapestry.formos.com/maven-snapshot-repository to create a new
project.
but still not working :)
thanks.
Marcus
es/) takes precedence over a file in the web
application context.
Thank you Borut.
Marcus
HI Jacques,
Maybe this help.
T505 - templates .htmlin src/main/webapp/WEB-INF/ or
src/main/resources//pages/
T506 - templates .tmlin src/main/webapp/or
src/main/resources//pages/
http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469
Marcus
Hi Bob,
T505 - templates .htmlin src/main/webapp/WEB-INF/ or
src/main/resources//pages/
T506 - templates .tmlin src/main/webapp/or
src/main/resources//pages/
http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469
Marcus
; }
public void setProfile(Profile profile) { this._profile= profile; }
public void onSubmit() {
String profile = this.getProfile().toString(); // Getting selected
option.
System.out.println(profile);
}
}
Pagina.html:
--
Marcus
Hi Bob,
Header.tml:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Hello.tml:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Hello Word!
Marcus
Hi Kevin,
It's not implemented yet.
But your java class could be very simple.
Marcus
Hi Kevin,
Maybe this help
http://tapestryjava.blogspot.com/2007/08/handling-direct-urls-in-tapestry-5.html
Marcus
Some related links:
http://tapestryjava.blogspot.com/2007/10/tapestry-506-is-available.html
http://tapestryjava.blogspot.com/2007/10/big-improvement-to-quickstart-archetype.html
Kevin,
On this process, T3 ->T4 ->T5, just keep in mind that Tapestry 5 is much
more simple.
Marcus
Hi Stephane,
search this forum for "*T5 How to Override the default banner message"
*
Marcus
hit?
Console always display:
Button2
Button1
Thanks,
Marcus
Hi Nick,
Thanks,
Marcus
Hi Ronald,
You can declare same ASO(ApplicationStateObject) in both java classes,
passing any values between any components.
Basic.java and UserProfile.java
...
@ApplicationState
private Visit _visit;
... getters and setters
Basic.tml
... ${visit.username}
Marcus
Hi Shing,
Try this http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, this is to output, not used in Textfield
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
HI lyifan,
Your first code should work, as Start.java extends BasePage.
just try:
...
public Object onActivate()
...
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Add getters and setters ASO.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
s
}
/src/main/java//pages/AnyProtectedPage.java
public class AnyProtectedPage extends ProtectedPage { ... }
this should work.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Cyrille,
Try tapestry-core source code.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Massimo,
Can you post some code about this RequestFilter solution ?
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Marcelo,
I have the same problem :(
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Arve,
We're using an if to display grid only when it has data. Like this:
test.java:
...
On Nov 16, 2007 2:40 PM, adamh <[EMAIL PROTECTED]> wrote:
>
> Hi Arve,
>
> Yep, I got it to work as well - I should have been a bit more persistent
> with my searching, still its little 'should be simp
Hi Arve,
We're using an if, to display grid only when it has data. Like this:
Test.java:
...
public boolean getHasDataToGrid1() { return (_listGrd1.size() > 0); }
...
Test.tml
...
Hi,
How to get all page names at application statup ?
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Howard,
I agree with you, maybe if ComponentClassResolver can have a method
where we can get page names, just when we want?
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi Angelo,
Just use reorder="field1,field2.." in tml file.
To use "remove" and "reorder" you don't need to explicit declare a
model in java class.
Marcus
-
To unsubscribe, e-mail: [EMAIL PR
1 - 100 of 336 matches
Mail list logo