Re: [T5.0.5] Caching and IE6

2007-08-23 Thread Gabriel Lozano
In my case I´m not using an ajax request, normal request but I have to hit
the refresh button to see the changes.

2007/8/22, Jesse Kuhnert <[EMAIL PROTECTED]>:
>
> I don't know what an "auto link" is - but if you are creating ajax
> requests then you have to do something stupid like:
>
> // pseudo javascript
> var url = "url";
> url += new Date();
>
> Otherwise ie will see the same url and not bother to make the request.
> (a premature optimization I guess)
>
> On 8/22/07, Siddhartha Argollo <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm having an annoying problem with my pages in IE6. It doesn't happen
> > with firefox.
> > When the page has auto-links, sometimes it doesn't refresh when the link
> > is clicked.
> > The state before the click continues to be shown in the browser, in
> > despite of the postback. I have to hit the refresh button to view the
> > new state of the page. It even happens with the pager of the Grid
> > component.
> > I already inject all may pages with
> >
> > 
> > 
> >
> > Anybody else has notice that? Is there something else I might try to
> > solve this issue?
> >
> > Thanks.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [T5.0.5] Caching and IE6

2007-08-22 Thread Gabriel Lozano
Hi,

I have had the same problem. I have a page for managing the items in a list
(select list). But when i go to the page where the list is I have to hit the
refresh button. By the way, does the meta content worked? Hope to see a good
solution for this!!.

2007/8/22, Siddhartha Argollo <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I'm having an annoying problem with my pages in IE6. It doesn't happen
> with firefox.
> When the page has auto-links, sometimes it doesn't refresh when the link
> is clicked.
> The state before the click continues to be shown in the browser, in
> despite of the postback. I have to hit the refresh button to view the
> new state of the page. It even happens with the pager of the Grid
> component.
> I already inject all may pages with
>
> 
> 
>
> Anybody else has notice that? Is there something else I might try to
> solve this issue?
>
> Thanks.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [ANNOUNCE] Tapestry 5.0.5

2007-07-04 Thread Gabriel Lozano

Great!!

Thanks for the release. I was reading in the description of the new features
and it says: "...adds client-side field persistence...". Can you explain
this a little more or point me somewhere where I can read about it?

Thanks in advance.

Gabriel H. Lozano M.


2007/7/4, Howard Lewis Ship <[EMAIL PROTECTED]>:


The Apache Tapestry project has releases Tapestry 5.0.5.  Tapestry is
a component-based framework for creating highly dynamic, scalable, and
robust web applications using the Java programming language. Tapestry
focuses on making it easy to create new components using a very simple
programming model.

Yet another preview (alpha) release, Tapestry 5.0.5 adds many new
components, including a file upload component and the Palette
component (for multiple selection). Release 5.0.5 improves the power
and flexibility of the BeanEditForm and Grid component, adds a new
HTML tutorial, adds client-side field persistence, fixes some problems
with the quickstart Maven archetype, and allows expansions inside
attributes (rather than just inside body text), as well as many other
fixes.

Tapestry may be downloaded from
http://tapestry.apache.org/download.html and is also available via the
central Maven repository.

The Tapestry 5 home page is http://tapestry.apache.org/tapestry5/


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




T5 best pattern for grid and beaneditform

2007-06-18 Thread Gabriel Lozano

Hi,

I'm right now working in user administration. So I have a page that list the
users I have but I don't want to show passwords so I use the 'NonVisual'
anotation in the User class. But, in the edit page, I want to insert some
new password for a user and because of the anotation I am not able. What I
decided to do is to quit the anotation and in the users page ( the one with
the grid ) I use a t:parameter and just fill the password column with ***.
Is there any other, more elegant, way to just not show the password column
in the users page and be able to edit it in a beaneditform?

Thanks in advance.

Gabriel H. Lozano M.


Re: [T5] Reminder: Tapestry 5 is Alpha

2007-06-05 Thread Gabriel Lozano

I would like to help support Howard. I think it is a very good idea
allthough I dont have too much money ( for now, I hope ). I have a problem.
I'm in Bogota, Colombia, and I think that I would not be able to pay via
payPal 'cause it is not enabled here so If there is any other way it would
be ok.

2007/6/5, Patrick Yip <[EMAIL PROTECTED]>:


Just wabt to ask if anyone out there would like to support Howard in
Tappestry development.  I think if everyone give a little, it could become
a
significant source of income to allow him to spend more of his time on
this
amazing framework.
Howard, if you have a Paypal account, please let me know.
-Patrick


On 6/1/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>
> Just wanted to inject a simple reminder: Tapestry 5 is still an
> alpha-level
> product.  It's still evolving. There are gaps in the functionality and
in
> the documentation.
>
> I'm very heartened by so many people wanting to preview Tapestry 5 but
> just
> remember it is a preview and an early one.  It's coming together rapidly
> but
> the realities of open source development is that I have responsibilities
> outside of Tapestry that have to come first *. The same goes for all the
> other developers.
>
> It is a difficult balance for me, because I want to answer more
questions
> on
> the mailing list, but the way to best help the community is to keep my
> nose
> down in the code.
>
> Keep having fun, and try to stay patient,
>
> Howard
>
>
> * Unless someone is interested in funding part of the T5 development
> effort.  Just asking.
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>



--
Patrick Y. Yip



Re: Help with a login form

2007-05-16 Thread Gabriel Lozano

Hi Marcus,

Thanks a lot for your answer. Finally last night I found the problem. As I
told you, I use a Border component. For declaring the name space in the
inside page ( i.e. the one that the Border contains ) I was using again an
html tag and it made the page not to work properly. Now, I put the xmlns in
the same border tag and everything just work fine. Thanks a lot.

Gabriel H. Lozano M.


2007/5/16, Marcus <[EMAIL PROTECTED]>:


Hi Gabriel,

Can you post all the code? maybe we can help you.
Take a look at:

http://elozovan.blogspot.com/2007/02/user-authentication-in-tapestry-5-step.html

Marcus



Help with a login form

2007-05-14 Thread Gabriel Lozano

Hello everyone. I want to have a login form in a "Border" component. I
followed the example in the section "input validation" but every time the
page is shown,
the message "You must correct the following errors before you may continue."
is shown, without any error to correct. I tested it in a page alone (i.e.
without a border component) and it worked fine. So, what should I do to have
it working correctly in the border component?

Thanks in advance.

Gabriel H. Lozano M.


Re: Tapestry 5.0.4 now available via Maven

2007-05-05 Thread Gabriel Lozano

I used to work with tapestry 3 and 4 but I dont know much about
tapestry 5 and almost nothing about maven. But I wanted to test the
great new functionality of tap 5 so I wanted to run the project in the
tutorial. I had this error also. This is due to the fact that the
tapestry 5.0.4-SNAPSHOT doesn't have "ServiceLocator" anymore. What I
did was to change every reference of tapestry 5.0.4-SNAPSHOT to
tapestry 5.0.3, even in the pom.xml inside the directory where mvn
jetty:run is executed. In this way I finally could run the example in
the tutorial.

I hope that this can help and also that the tutorial and the
quickstart are fixed so that anyone can run it without any problem at
any time!!.

Gabriel H. Lozano M.

2007/5/4, Jun Tsai <[EMAIL PROTECTED]>:

[EMAIL PROTECTED]:~/workspace-tmp/myapp$ mvn -up jetty:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] 

[INFO] Building myapp Tapestry 5 Application
[INFO]task-segment: [jetty:run]
[INFO] 

[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.tapestry:tapestry-core:5.0.4-SNAPSHOT:
checking for updates from tapestry-snapshots
[INFO] snapshot org.apache.tapestry:tapestry-core:5.0.4-SNAPSHOT:
checking for updates from codehaus.snapshots
[INFO] snapshot org.apache.tapestry:tapestry-core:5.0.4-SNAPSHOT:
checking for updates from openqa
Downloading: 
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-20070329.233018-1.pom
4K downloaded
[INFO] snapshot org.apache.tapestry:tapestry-project:5.0.4-SNAPSHOT:
checking for updates from tapestry-snapshots
[INFO] snapshot org.apache.tapestry:tapestry-project:5.0.4-SNAPSHOT:
checking for updates from codehaus.snapshots
[INFO] snapshot org.apache.tapestry:tapestry-project:5.0.4-SNAPSHOT:
checking for updates from openqa
Downloading: 
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-project/5.0.4-SNAPSHOT/tapestry-project-5.0.4-20070426.014648-2.pom
9K downloaded
[INFO] snapshot org.apache.tapestry:tapestry-ioc:5.0.4-SNAPSHOT:
checking for updates from tapestry-snapshots
[INFO] snapshot org.apache.tapestry:tapestry-ioc:5.0.4-SNAPSHOT:
checking for updates from codehaus.snapshots
[INFO] snapshot org.apache.tapestry:tapestry-ioc:5.0.4-SNAPSHOT:
checking for updates from openqa
Downloading: 
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-ioc/5.0.4-SNAPSHOT/tapestry-ioc-5.0.4-20070426.014648-2.pom
4K downloaded
Downloading: 
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-20070329.233018-1.jar
709K downloaded
Downloading: 
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-ioc/5.0.4-SNAPSHOT/tapestry-ioc-5.0.4-20070426.014648-2.jar
249K downloaded
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jetty:run]
[INFO] Configuring Jetty for project: myapp Tapestry 5 Application
[INFO] Webapp source directory = /home/jcai/workspace-tmp/myapp/src/main/webapp
[INFO] web.xml file =
/home/jcai/workspace-tmp/myapp/src/main/webapp/WEB-INF/web.xml
[INFO] Classes = /home/jcai/workspace-tmp/myapp/target/classes
2007-05-05 10:42:30.462::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /myapp
[INFO] Tmp directory = /home/jcai/workspace-tmp/myapp/target/work
[INFO] Web defaults =  jetty default
[INFO] Webapp directory = /home/jcai/workspace-tmp/myapp/src/main/webapp
[INFO] Starting jetty 6.1.0pre0 ...
2007-05-05 10:42:30.560::INFO:  jetty-6.1.0pre0
[INFO] Classpath =
[file:/home/jcai/workspace-tmp/myapp/target/classes/,
file:/home/jcai/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar,
file:/home/jcai/.m2/repository/org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-SNAPSHOT.jar,
file:/home/jcai/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,
file:/home/jcai/.m2/repository/org/apache/tapestry/tapestry-ioc/5.0.4-SNAPSHOT/tapestry-ioc-5.0.4-SNAPSHOT.jar,
file:/home/jcai/.m2/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar,
file:/home/jcai/.m2/repository/jboss/javassist/3.4.ga/javassist-3.4.ga.jar]
2007-05-05 10:42:31.033::WARN:  failed app
java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/ServiceLocator
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.privateGetPublicMethods(Class.java:2519)
at java.lang.Class.getMethods(Class.java:1406)
at 
org.apache.tapestry.ioc.internal.DefaultModuleDefImpl.grind(Defaul

Re: ForBean issues

2006-11-14 Thread Gabriel Lozano

Hey what I do is the following:

1. You have to initialize the collection somewhere. Yes, pageBeginRender is
ok ( well, sorry for the tapestry gurus, but I have also done it that way ).
And dont have to initialize it in the rewind phase.
2. What I do is to "hide" the collection in the form. Oh, what I did
sometime was to persist the collection property ( tap 3) but now I prefer to
do this.  Items in the collection should implement serializable interface.
In your code I would do:



...

Question
Text



3. I dont pass parameters to the submit method, I think you dont need it.
4. With this, in the submit or in the form listener you should have access
to the updated collection.

Tell me if this works for you.

Gabriel H. Lozano M.


On 11/14/06, Srinivas Yermal <[EMAIL PROTECTED]> wrote:


Thanks so much for the response. I will try out the
DefaultPrimaryKeyConverter and InvokeListener options.
My comments inline -


> Anyway.. about your code: obviously, I can't tell you which is best.
> But I think you don't have to pass your items as a parameter to the
> listener method. Instead, the form fields (in this case, the
> collection) will be bound to an instance variable in your page object.
> Maybe you should drop that parameters attribute in the @Submit.
> But you have to make sure the list is not null during rewind, and has
> the right length, so you have to refill it before the rewind, and the
> values will be overwritten during rewind.


I tried not passing them as parameter initially, but that didnt work.
Setting the parameter was something that I guessed might work, but it
doesnot. I have also made sure that the items object is not null during
rewind phase by removing the if condition in pageBeginRender, but all it
does is gives me the same items without change to any values. On a side
note, actually it might turn out be a overhead in large pages if I have to
run the query again just for the rewind phase. Moreover, the collection is
serialised and is available from the form, isnt it? Shouldnt it be
deserialized?

I have another observation to add. I have a method that returns the
PropertySelectionModel for each item depending on the item. This is
required
for the dropdowns for each item. The dropdown values depend on the item.
During the rewind phase this method gets called and I get proper objects
with proper values. But when the submit listener gets called I still get a
null collection or the old collection. Is there any other method like say
renderComponent of the page that I have to implement?

The listener method that is called will be the one referenced in the
> @Submit component. In your case, the one referenced in the @Form is
> never called, I think. So you might want to lose on of those two, to
> avoid confusion.


Actually, both the listeners get called. The form listener gets invoked
last. I have both the listeners just as an experiment to see if I get a
non-null proper collection in any listener at all.
Thank you very much for the advice. Will continue trying and see where
this
goes. Its just that I am running out of time.
Regards,
Srini.




Problems with Event listener

2006-11-06 Thread Gabriel Lozano

Hi

I'm trying to work with the eventListener but I just can't get just the
example to work. I have a page with the same code as the "Big brother is
watching you" example in the tapestry page. the html I have is this:

 
 
 

   Big brother is watching you.

 
 
 

and the .java this:


import org.apache.tapestry.annotations.EventListener;
import org.apache.tapestry.event.BrowserEvent;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.html.BasePage;

public abstract class Test extends BasePage {

   @EventListener(elements = "myFavoriteDiv", events = "onmouseover")
   public void watchText(BrowserEvent event)
   {
// do something
System.out.println("User clicked on x/y coordinates "
   + event.getPageX() + "/" + event.getPageY());
   }

}

But nothing happends. But if I give a pageBeginRenderListener it gets
called. What am I doing wrong or what else should I do to get this working?
Any help is very appreciated.

Thanks in advanced.

Gabriel H. Lozano M.


Re: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-11-05 Thread Gabriel Lozano

Hi

Sorry, but i finally dont know what is the answer to the issue of upgrading
tapestry and the datepicker not working. Why is this happening? or should we
instead use the dropdownTimePicker? When I click on the date icon ( for the
daypicker component ) on IE, the js error says ('
document.formId.dateComponentId null or not an object')

By the way, how can be the effects for the dropdownDatePicker be achieved ?
( fade ...)

Thanks in advance

Gabriel Lozano M.

On 10/17/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


The DatePicker placement issues should be fixed & deployed.

On 10/17/06, Josh Long <[EMAIL PROTECTED]> wrote:
>
> I'm not too sure about DropdownDatePicker ( I guess I haven't notied
> much there) but...
>
> the following code on mozilla yeilds a @DatePicker that, when clicked,
> shows up at the bottom of the 100px border (not at the bottom of th
> etext field).  (scroll down for sample code..)
>
> In fact, if you check the workbench example on opencomponentry.com and
> click on the 'Dates' tab the problem is visible right there: the drop
> down date pickers show up under the submit button (not the text
> fields).
> /
> import org.apache.tapestry.html.BasePage;
> import java.util.Date;
> abstract public class Test extends BasePage {
> abstract public Date getDateValue() ;
> abstract public void setDateValue(Date dateValue) ;
>
> }
> 
>
>
>
> 
>
> 
> 
>
> 
> 
>  jwcid="@DatePicker"  value="ognl:dateValue"/>
> 
> 
> 
>
> Peace,
> Josh
>
> On 10/16/06, mraible <[EMAIL PROTECTED]> wrote:
> >
> > Strangely enough - it works fine when I use "mvn", but not when I use
my
> Ant
> > build file that reads from pom.xml.  Oh well, chaulk the compile
problem
> up
> > to a Maven issue - obviously not something you should worry about.
> >
> > As far as @DatePicker and @DropdownDatePicker in 4.1.1-SNAPSHOT, I'm
> > experiencing the same behavior I did in 4.1.  I disabled SiteMesh, but
> that
> > didn't help either.  From looking at the output, it looks like there's
> calls
> > to Dojo, but Dojo JavaScript files are never referenced.
> >
> > http://rifers.org/paste/show/1993
> >
> > I wouldn't worry about this too much, I'm more than happy to revert
back
> to
> > 4.0.2 - less work for me. ;-)
> >
> > Matt
> >
> >
> > Jessek wrote:
> > >
> > > Is this something I can attempt on my own as well (like in an svn
repo
> > > somwhere)? What I mean to say is I'm willing to invest a little time
> to
> > > figure out wtf is happening if you think it'll help by trying the
same
> on
> > > my
> > > own comp.
> > >
> > > On 10/17/06, mraible <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>
> > >>
> > >> Jessek wrote:
> > >> >
> > >> > Ah. I guess I was expecting you to use the 4.1.1 version, it is
> > >> available
> > >> > in
> > >> > the apache snapshot repos only (the main repos are reserved for
> > >> official
> > >> > releases) :
> > >> >
> > >> > http://people.apache.org/repo/m2-snapshot-repository/
> > >> >
> > >> > The 4.1 version is hopelessly behind what is in 4.1.1. (At least
it
> > >> seems
> > >> > that way to me personally, maybe the differences aren't that
> large.)
> > >> >
> > >> > Is equinox on a "snapshot" version as well or are you only
allowing
> > >> fully
> > >> > stable final releases into it?
> > >> >
> > >> > All known major issues that I know of (besides my umm..hickup
> brought
> > >> up
> > >> > with portlets today ) are resolved and stable right now. I make
> > >> releases
> > >> > every few days or so.
> > >> >
> > >>
> > >> I'm not against using Snapshots for releases, but I'd prefer not
> to.  I
> > >> tried 4.1.1-SNAPSHOT and adding the Apache Snapshots
repository.  Now
> I'm
> > >> getting compile errors.  I'm assuming not a whole lot changed b/w
4.1and
> > >> 4.1.1 - maybe the JARs are corrupted?
> > >>
> > >> Here's the output I'm getting:
> > >>
> > >> test:
> > >> [artifact:d

Re: A hosting for a tapestry based application

2006-11-05 Thread Gabriel Lozano

Hey

take a look at eatj.com. Sincerely I have had some problems but it is very
cheap, you have tomcat and mySql. But for the money it is not very bad.

By the way, I would also want to know wich is consider the best hosting for
tapestry ( and JEE in general ).

Gabriel Lozano M.


On 11/4/06, Lennart Benoot <[EMAIL PROTECTED]> wrote:


Hi all,

Anyone been looking for a hosting for a tapestry based web application?
Do you think it's necessary/preferable to have a dedicated virtual
machine?
What is an acceptable monthly price?
Other things to consider that are specifically important when using
tapestry?

Thanks,
Lennart

--
Lennart Benoot
http://iEssence.net
http://thoth-systems.com




Re: problem with images

2006-10-18 Thread Gabriel Lozano

Thanks for your answer. Well, what I did in the end was to save the images
in another directory on the server. I had some trouble because I dont have
full access to the server but now it is working. About Ryans idea of the
service, I have access to Kent's book and I looked the chapter but I dont
have much time ( and neither the book ) so for now this is just ok. But what
Im doing now is to create for me a kind of framework for developing apps so
I'm looking for the best way of doing things so thanks for your advice.

On 10/18/06, Patrick Moore <[EMAIL PROTECTED]> wrote:


But in the end why would you? if not then it will always be slower to
get the images out and the code will be beating on what will no doubt
be your most stressed, weakest link ... your database.

Think about how hard you are making to check that an image is correct
on your system. You are going to have to write some sort of utility
just to look at the images stored. Your database could start having
issues with trying to manage such large data items.

Do you need the ACID properties of a database? If you, really, really
do a hybrid approach that has some value is using a database like
apache's derby to store your images. (in other words not your main
database)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




problem with images

2006-10-17 Thread Gabriel Lozano

Hi all

I want some help on this issue:

I want to know which is the best way to work with images. If I saved them on
a folder inside the application, the next time I deploy the application I
will loose all the images. I was thinking on saving them in the db, but I
dont know how can I retrieve them and show them in the html. If I generate a
temp file per request, then I will end up with a file representing an image
for everytime the image is requested.

Any help would be welcome, I was looking for this and I didnt find anything
on this topic.

Gabriel Lozano M.