Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
LOL@"Couch potato idea of my self"

On Mon, Oct 4, 2010 at 8:41 AM, Kent Tong  wrote:

> > Now I have to build a small app to manage small accounting and
> > logistics for my wife's Business
> >
> > She is opening a small printing shop for small business labels, such
> > as wine bottle labels, clothing labels, bags, etc.
>
> I am quite surprised to see so many suggestions, while all there
> is known is the above brief description :-)
>
> My suggestion is to avoid writing any code at all :-) For example,
> check out the open source, free or paid applications that can do
> what you want (eg, sql-ledger for accounting), then customize them
> as needed.
>
> --
> Kent Tong
> Useful news for network admins at
> http://www2.cpttm.org.mo/cyberlab/netadmin-news
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
Aha...

On Sun, Oct 3, 2010 at 11:59 PM, Chris Colman
wrote:

> >> Forgot to mention: DataNucleus allows you to use a wide range of
> >> datastores and switch between them without any code changes: eg., all
> >> the usual RDBMSes (MySQL, Oracle etc.,), Object Databases (DB4O and
> some
> >> others), Google Application Engine (GAE), LDAP, Excel plus loads
> more.
> >> If you don't want to commit to an ORM/RDBMS then DN would provide
> that
> >> level of protection against datastore 'lock in'.
> >
> >Keep in mind though that adding a layer like this over DB4O will mostly
> >remove the advantages that would make you want to choose DB4O in the
> >first place.
>
> Not really AFAIK: The ability to not have to manage fetch depths that
> JDO/DB40 gives you over raw DB40 gives you is a massive productivity
> boost (not sure if the latest DB40 supports lazy loading or not yet). In
> any case coding to a standard persistence interface (JDO) over a
> proprietary API is IMHO an insurance policy I am prepared to invest in
> given the performance overheads are so miniscule.
>
> ... but this is probably a discussion best held elsewhere... I think we
> all agree in terms of UI frameworks Wicket is definitely the best there
> is!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
Right indeed...

On Sun, Oct 3, 2010 at 11:09 PM, Sam Stainsby <
s...@sustainablesoftware.com.au> wrote:

> On Mon, 04 Oct 2010 11:36:48 +1000, Chris Colman wrote:
>
>
> > Forgot to mention: DataNucleus allows you to use a wide range of
> > datastores and switch between them without any code changes: eg., all
> > the usual RDBMSes (MySQL, Oracle etc.,), Object Databases (DB4O and some
> > others), Google Application Engine (GAE), LDAP, Excel plus loads more.
> > If you don't want to commit to an ORM/RDBMS then DN would provide that
> > level of protection against datastore 'lock in'.
>
> Keep in mind though that adding a layer like this over DB4O will mostly
> remove the advantages that would make you want to choose DB4O in the
> first place.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
LOL@"100%, mathematically-proven to be superior technology in this is Wicket
;-)"

Hate Spring.
Almost hate Hibernate.

This totally personal, and those with reason should abstain from taking me
seriously.

:-)

f(t)

On Sun, Oct 3, 2010 at 10:50 PM, 7zark7 <7za...@gmail.com> wrote:

> There's no "best practices" any more :-)
>
> Wicket/Spring/Hibernate is simple and lots of examples.
> Hibernate with JPA is super-easy to work with.
>
> If you want something "different", NoSQL such as CouchDB is nice,
> especially if you need to store binary attachments, etc.
>
> My current stack is Wicket/Spring/CouchDB using Scala - but the only 100%,
> mathematically-proven to be superior technology in this is Wicket ;-)
>
>
>
> On 10/3/10 4:40 PM, Francisco Diaz Trepat - gmail wrote:
>
>> Hi I've tested wicket before it was in the apache incubator and found
>> it to be awesome, since then we have adopted it and I have been
>> migrating all legacy applications for my company for the last 3 years
>> aprox.
>>
>> Now I have to build a small app to manage small accounting and
>> logistics for my wife's """"Business""""
>>
>> She is opening a small printing shop for small business labels, such
>> as wine bottle labels, clothing labels, bags, etc.
>>
>> At work I use wicket with an "ingenious" CORBA server, courtesy of the
>> legacy applications.
>>
>> Now I am free to do whatever I want. This is the worst part. :-)
>>
>> I would like to help out and test maybe wicket 1.5 and some good
>> database solution.
>>
>> Can you share some comments or recommendations on what to do?
>> For Instance, I once read about Active Objects, I pretty much liked
>> the idea and built some prototypes, but now the site is exactly the
>> same and found their latest released is from 2008. So that is no so
>> edgy...
>>
>> I don't wish to use hibernate, but could be some other "object
>> relational mapping", even hibernate if you insist... :-)
>>
>> So, ideas on what to use?
>>
>> UI = Wicket.
>> + 1.4?
>> + 1.5?
>> middle layer?
>> Persistence?
>>
>> Thanks in advance,
>> f(t)
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
Thanks Chris, I'll never heard of it. It sounds pretty cool. I'll check it
out.

On Sun, Oct 3, 2010 at 10:33 PM, Chris Colman
wrote:

> We use Wicket with DataNucleus (JDO) www.datanucleus.org as the
> persistence layer. The persistence side is truly transparent and it
> performs really well - your model objects don't need any extra methods
> and you are free to model and code just as if you were dealing with an
> 'in memory' only set of objects.
>
> We also use the 'Exposed Domain Model' pattern/strategy which is another
> productivity boost over many of the other more traditional approaches to
> persistence.
>
> Regards,
> Chris
>
> >-Original Message-
> >From: Francisco Diaz Trepat - gmail
> [mailto:francisco.diaztre...@gmail.com]
> >Sent: Monday, 4 October 2010 10:40 AM
> >To: Wicket-Users
> >Subject: New App - Best Practices
> >
> >Hi I've tested wicket before it was in the apache incubator and found
> >it to be awesome, since then we have adopted it and I have been
> >migrating all legacy applications for my company for the last 3 years
> >aprox.
> >
> >Now I have to build a small app to manage small accounting and
> >logistics for my wife's """"Business""""
> >
> >She is opening a small printing shop for small business labels, such
> >as wine bottle labels, clothing labels, bags, etc.
> >
> >At work I use wicket with an "ingenious" CORBA server, courtesy of the
> >legacy applications.
> >
> >Now I am free to do whatever I want. This is the worst part. :-)
> >
> >I would like to help out and test maybe wicket 1.5 and some good
> >database solution.
> >
> >Can you share some comments or recommendations on what to do?
> >For Instance, I once read about Active Objects, I pretty much liked
> >the idea and built some prototypes, but now the site is exactly the
> >same and found their latest released is from 2008. So that is no so
> >edgy...
> >
> >I don't wish to use hibernate, but could be some other "object
> >relational mapping", even hibernate if you insist... :-)
> >
> >So, ideas on what to use?
> >
> >UI = Wicket.
> >+ 1.4?
> >+ 1.5?
> >middle layer?
> >Persistence?
> >
> >Thanks in advance,
> >f(t)
> >
> >-
> >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
Sam you are absolutely right about my subject, it is not best practices.

Best Practices are Safe, Robust, Well Tested, Etc.

I want new innovating ideas.

Thanks for pointing that up, and last night I was checking DB4O up... (my
life is sad... but I was happy :-)

f(t)

On Sun, Oct 3, 2010 at 9:16 PM, Sam Stainsby  wrote:

> On Sun, 03 Oct 2010 20:40:04 -0300, Francisco Diaz Trepat - gmail wrote:
>
> > Now I am free to do whatever I want. This is the worst part. :-)
>
> I understand that feeling! When I started designing our web app
> framework, I picked the technologies from an enormous set of options that
> I thought would make app development as rapid and robust as possible. The
> title of your message "best practices" suggests though that you want to
> stick to the mainstream solutions.
>
> > So, ideas on what to use?
>
> If you want to avoid ORMs completely, you could consider an object
> database like DB4O as we have in Granite. Granite is currently is not
> quite complete and poorly documented, and written Scala not Java, but
> there is surely something you can use there if you want to go down a that
> path - even if its just ideas and sample code.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: New App - Best Practices

2010-10-04 Thread Francisco Diaz Trepat - gmail
Hi jeremy, thanks for answering.

I mostly wanted a new technology, and maybe learn new ways and help with
testing and reporting.

Thanks again,
f(t)

On Sun, Oct 3, 2010 at 8:50 PM, Jeremy Thomerson
wrote:

> >
> > So, ideas on what to use?
> >
> > UI = Wicket.
> >+ 1.4?
> >+ 1.5?
> > middle layer?
> > Persistence?
> >
>
> Wicket / Spring / Hibernate is a very common setup, so you will have an
> easy
> time finding examples, help, etc.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>


New App - Best Practices

2010-10-03 Thread Francisco Diaz Trepat - gmail
Hi I've tested wicket before it was in the apache incubator and found
it to be awesome, since then we have adopted it and I have been
migrating all legacy applications for my company for the last 3 years
aprox.

Now I have to build a small app to manage small accounting and
logistics for my wife's Business

She is opening a small printing shop for small business labels, such
as wine bottle labels, clothing labels, bags, etc.

At work I use wicket with an "ingenious" CORBA server, courtesy of the
legacy applications.

Now I am free to do whatever I want. This is the worst part. :-)

I would like to help out and test maybe wicket 1.5 and some good
database solution.

Can you share some comments or recommendations on what to do?
For Instance, I once read about Active Objects, I pretty much liked
the idea and built some prototypes, but now the site is exactly the
same and found their latest released is from 2008. So that is no so
edgy...

I don't wish to use hibernate, but could be some other "object
relational mapping", even hibernate if you insist... :-)

So, ideas on what to use?

UI = Wicket.
+ 1.4?
+ 1.5?
middle layer?
Persistence?

Thanks in advance,
f(t)

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Any Italian wicket maniacs out there?

2010-07-13 Thread Francisco Diaz Trepat - gmail
Hi, I would like to ask some Italian users about something personal.

If any, and don't mind please contact me privately. I'll surely appreciate
it.

regards,

f(t)


Memory Growth and JavaScript Increasingly Slower in Internet Explorer

2010-02-10 Thread Francisco Diaz Trepat - gmail
Hi All.

I am trouble by Internet Explorer's inability to work properly as I use the
wicket web application we are building.

It is an ajax application and I found many references on the internet about
circular reference and memory leaks and how to solve them.

Almost all came down the the same function structure. a purge function that
detaches events from elements that are being removed.

This function was called on unload event in the samples from the web, but as
we don't have that event available (all-ajax) we replaced the wicket
replaceOuterHtml function.

This DOES NOT work at all. IE keeps allocating resources and surpasses 120
130 mb.

Can someone help us?

Here is the code that we use:

/**
 * Decorates the Wicket's replaceOuterHtml in order to add some memory clean
up attempts.
 */
function enhanceWicketAjaxReplaceOuterHtml() {
   var originalReplaceOuterHtml = Wicket.replaceOuterHtml;
   Wicket.replaceOuterHtml = function(element, text) {
  // purge element before removing
  // it must be done BEFORE in order to work properly in IE
  // if done after, the element no longer has its childNodes attached,
and then the purge is not done for the child nodes.
  purge(element);
  // call the original function
  originalReplaceOuterHtml(element, text);
   }
}

Here is the purge JS function:

/**
 * Attempts to break circular references, which are the cause of memory
leaks.
 * It sets the references to functions in DOM elements to null, then
theoretically breaking the circular reference.
 * It is not sure if this works or not (decrease of memory leaks could not
be verified in browsers),
 * and this could even be adding trouble by making lot of javascript
processing.
 * The trick is suggested in an article in
http://javascript.crockford.com/memory/leak.html,
 * and has some IE specific enhancements (calling detachEvent) that give
some hope for effectiveness.
 */
function purge(element) {
   var attributes, childNodes, index, length, name;

   attributes = element.attributes;
   if (attributes) {
  length = attributes.length;
  for (index = 0; index < length; index += 1) {
 if (attributes[index] == null) {
continue;
 }

 name = attributes[index].name;

 if (typeof element[name] === 'function') {
// Verify if is an onload onclick onblah
if (Wicket.Browser.isIE()) {
   if (name.substring(0, 2) == 'on') {
  element.detachEvent(name, element[name]);
   }
}

element[name] = null;
 }
  }
   }

   childNodes = element.childNodes;
   if (childNodes) {
  length = childNodes.length;
  for (index = 0; index < length; index += 1) {
 purge(childNodes[index]);
  }
   }
}


Redirect to Login results in Normal PageExired

2009-08-24 Thread Francisco Diaz Trepat - gmail
Hi All,
I have a normal PageExpired redirection, after an Unauthorized user is
redirected to the Login page, and then gets distracted looking at
butterflies or something.

Which is perfectly normal. Though I was asked to look for a way to handle
this.

If an unauthorized user that began a new Session, gets redirected to Login
page and waits there until session expires, Can I Log the user in and send
him to the Home page anyways?

Is this possible?

f(t)


Re: Logging to an additional File

2009-06-05 Thread Francisco Diaz Trepat - gmail
:-)
Tonio, my man. Thank you so much for your reply.

I'm looking for some alternatives.

I'll see to post (mail) my conclusions if any.

f(t)

On Fri, Jun 5, 2009 at 3:36 PM, Tonio Caputo  wrote:

> Francisco,
>
> I'm not a wicket expert (as you know), the log4j configuration seems to be
> ok, so probably
> the reason for the problem is in other place.
>
> hope this helps
> tonio
>
>
>
>
> On Thu, Jun 4, 2009 at 5:18 PM, Francisco Diaz Trepat - gmail <
> francisco.diaztre...@gmail.com> wrote:
>
> > Hi all,
> > I'm having a small problem trying to log to an additional file with a
> >  org.apache.log4j.FileAppender.
> >
> > Problem: Does not log Wicket stuff to the file. For instance this
> message:
> >
> > "WARNING: Tried to retrieve a localized string for a component that has
> not
> > yet been added to the page.".
> >
> > Is written to the StdOut which netbeans shows in its output window. But
> > this
> > message doesn't appears in my MyLog.log file.
> >
> > I have this log4j property file:
> >
> > log4j.debug=false log4j.rootLogger=INFO,Stdout,Fileappender
> > log4j.logger.org=INFO
> > log4j.logger.com=INFO log4j.logger.net=INFO log4j.logger.nl=INFO
> > log4j.logger.org.apache.wicket=INFO
> > log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO
> > log4j.logger.org.apache.catalina.cluster=INFO
> > log4j.logger.org.apache.wicket.version=INFO
> > log4j.logger.org.apache.wicket.RequestCycle=INFO
> > log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
> > log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
> > log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n
> #
> > Additional configuration
> > log4j.appender.Fileappender=org.apache.log4j.FileAppender
> > log4j.appender.Fileappender.file=${mylog.log.dir}/logs/MyLog.log
> > log4j.appender.Fileappender.layout=org.apache.log4j.PatternLayout
> > log4j.appender.Fileappender.layout.conversionPattern=%d [%t] %p - %m%n
> >
> > Is this correct?
> >
> > Can anyone comment?
> >
> > Thanks,
> > f(t)
> >
>


Logging to an additional File

2009-06-04 Thread Francisco Diaz Trepat - gmail
Hi all,
I'm having a small problem trying to log to an additional file with a
 org.apache.log4j.FileAppender.

Problem: Does not log Wicket stuff to the file. For instance this message:

"WARNING: Tried to retrieve a localized string for a component that has not
yet been added to the page.".

Is written to the StdOut which netbeans shows in its output window. But this
message doesn't appears in my MyLog.log file.

I have this log4j property file:

log4j.debug=false log4j.rootLogger=INFO,Stdout,Fileappender
log4j.logger.org=INFO
log4j.logger.com=INFO log4j.logger.net=INFO log4j.logger.nl=INFO
log4j.logger.org.apache.wicket=INFO
log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.catalina.cluster=INFO
log4j.logger.org.apache.wicket.version=INFO
log4j.logger.org.apache.wicket.RequestCycle=INFO
log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n #
Additional configuration
log4j.appender.Fileappender=org.apache.log4j.FileAppender
log4j.appender.Fileappender.file=${mylog.log.dir}/logs/MyLog.log
log4j.appender.Fileappender.layout=org.apache.log4j.PatternLayout
log4j.appender.Fileappender.layout.conversionPattern=%d [%t] %p - %m%n

Is this correct?

Can anyone comment?

Thanks,
f(t)


Re: Change Page Title via Ajax??

2009-05-29 Thread Francisco Diaz Trepat - gmail
JAJAJA
how could I forget.

thanks IGOR.

f(t)

On Fri, May 29, 2009 at 3:52 PM, Igor Vaynberg wrote:

> target.appendjavascript("window.title='new title'");
>
> something like that should work.
>
> -igor
>
> On Fri, May 29, 2009 at 11:30 AM, Francisco Diaz Trepat - gmail
>  wrote:
> > Hi all, long time...
> > I saw in some sample to label very long ago and put it in for the Page
> > Title.
> >
> > 
> >   
> >  [Page Title]
> >   
> >   
> > ..
> >
> > Now, is it possible to change this via ajax?
> >
> > As I write you this lines I think I could put an input type hidden and a
> > decorator or something like that.
> >
> > But just to check it out with you and see what you think.
> >
> > Thanks,
> >
> > f(t)
> >
> > PS: Elco your book has arrived and was great, although more geeky
> comments
> > are needed so we don't feel alone reading it the subway for instance...
> :-)
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Change Page Title via Ajax??

2009-05-29 Thread Francisco Diaz Trepat - gmail
Hi all, long time...
I saw in some sample to label very long ago and put it in for the Page
Title.


   
  [Page Title]
   
   
..

Now, is it possible to change this via ajax?

As I write you this lines I think I could put an input type hidden and a
decorator or something like that.

But just to check it out with you and see what you think.

Thanks,

f(t)

PS: Elco your book has arrived and was great, although more geeky comments
are needed so we don't feel alone reading it the subway for instance... :-)


Re: Just a little thank you

2009-03-20 Thread Francisco Diaz Trepat - gmail
once you go wicket you never go back...
:-)

I also want to adhere to the thanks for this great framework and all your
help.

f(t)

On Fri, Mar 20, 2009 at 4:33 PM, Vit Rozkovec  wrote:

> Hallo,
> I just wanted to say a little thank you.
> I have a lot of gratitude towards people who made this framework and to the
> whole community. It is really pleasure to work with such nice and well
> thought framework, I really enjoy it. After spending some years with PHP,
> now, after a year and a half with wicket I see there is no way back. In this
> case I do not fear being dogmatic. Wicket, the only way :).
>
> Really, thank you.
>
> Vitek
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: encoding issue on ajax form post (portlet)

2009-03-16 Thread Francisco Diaz Trepat - gmail
Aha.
Thanks eike. I'll try it right away.

On Sat, Mar 14, 2009 at 4:10 PM, Eike Kettner  wrote:

> Hi Francisco,
>
> i ran into a similiar problem with ajax and umlauts. in my case i had
> a tomcat running the webapp. and for the ajax requests, i had to
> configure the tomcat connector with useBodyEncodingForURI="true". then
> the content of ajax requests got correctly encoded (using utf8). since
> i didn't use porltlets i don't know if this is of any help for you...
>
> eike
>
>
>
> On [Wed, 11.03.2009 11:00], Francisco Diaz Trepat - gmail wrote:
> > Hi all, I have a wicket project that suddenly required to support
> portlets.
> > I traveled through a lot of (I guess) normal issues from not being
> familiar
> > with portlets technology. But now I am at a  cross rode (quoting  obama)
> :-)
> >
> > I have an encoding issue in which, for as much  as I could investigate,
> > begins something like this:
> >
> > 1- type  [Hómer] in a textfield
> > 2- wicket javascript functions to handle post encode the field value to
> > H%C3%D3 (or similar)
> > 3-portlet handles the request and redireccionates it to wicket.
> > 4-on wicket side H\ufffd is the resulting string.
> > 5- when ajax returns H?omer is the resulting string.
> > I have ISO-8859-1 in the main page (and only page) of my wicket
> application.
> > All the rest is ajax.
> > With my application inside the portlet container the UTF-8 is the
> encoding
> > but this doesn't seam to be because I change the encoding for the
> > portlet-driver and it didn't work at all.
> > Any Ideas?
> > f(t)
>
> --
> email: e...@eknet.org   https://www.eknet.org  pgp: 481161A0
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


encoding issue on ajax form post (portlet)

2009-03-11 Thread Francisco Diaz Trepat - gmail
Hi all, I have a wicket project that suddenly required to support portlets.
I traveled through a lot of (I guess) normal issues from not being familiar
with portlets technology. But now I am at a  cross rode (quoting  obama) :-)

I have an encoding issue in which, for as much  as I could investigate,
begins something like this:

1- type  [Hómer] in a textfield
2- wicket javascript functions to handle post encode the field value to
H%C3%D3 (or similar)
3-portlet handles the request and redireccionates it to wicket.
4-on wicket side H\ufffd is the resulting string.
5- when ajax returns H?omer is the resulting string.
I have ISO-8859-1 in the main page (and only page) of my wicket application.
All the rest is ajax.
With my application inside the portlet container the UTF-8 is the encoding
but this doesn't seam to be because I change the encoding for the
portlet-driver and it didn't work at all.
Any Ideas?
f(t)


model for entity with checkgroup (user roles relation)

2009-03-07 Thread Francisco Diaz Trepat - gmail
Hi all, it probably that this has been answered in the list, but I can't
figure out how to construct the query for gmail (I've been on the list for
some time now).

I have the following feature I don't know how to resolve. I am using wicket
1.4rc2 with activeobjects (orm).

I have User and Role entities, and User has a manytomany relationship.

I would like to have a form with a checkgroup to be able to select which
roles a user have.

User has:
String name
String password
@ManyToMany(UserRole.class)
Role[] roles

Role has:
String name

and UserRole has:
User user
Role role

all with corresponding setters and getters.

How could I combine this entities to develop a form in which user could see:
TextField
PasswordTextField
CheckGroup (with the names of the roles available)
?

Thanks
f(t)

PS: some extra info.

this is my model and form (comments other than the question would be grate
also):

  //create user entity model
  userModel = new LoadableDetachableModel() {
 private static final long serialVersionUID = 0L;

 @Override
 protected SqsUser load() {
Session session;
session = (Session) getSession();
SqsUser user;
if (selectedUser != null)
   return selectedUser;
user = null;
try {
   user = session.getEntityManager().create(SqsUser.class);
} catch (SQLException ex) {

Logger.getLogger(UsersPanel.class.getName()).log(Level.SEVERE, null, ex);
}
if (user != null)
   selectedUser = user;
return user;
 }
  };

  //create user form overriding process to begin transaction
  usersForm = new Form("users-form", new
CompoundPropertyModel(userModel)) {
 private static final long serialVersionUID = 0L;
 private Transaction transaction;

 @Override
 public void process(IFormSubmittingComponent submittingComponent) {

super.process(submittingComponent);
transaction = new Transaction(((Session)
getSession()).getEntityManager()) {
   @Override
   protected SqsUser run() throws SQLException {
  SqsUser user = getModelObject();
  user.save();
  return user;
   }
};
 }

 @Override
 protected void onSubmit() {
try {
   transaction.execute();
} catch (SQLException ex) {

Logger.getLogger(UsersPanel.class.getName()).log(Level.SEVERE, null, ex);
   onError();
}
 }

 @Override
 protected void onError() {

 }
  };


Re: Please Please Portlet

2009-03-04 Thread Francisco Diaz Trepat - gmail
Thanks for the tip. I will look it up.
I didn't include all the parameter but applicationClassName is there.

Thanks again,
f(t)

On Tue, Mar 3, 2009 at 7:36 PM, Niels van Kampenhout <
n.vankampenh...@onehippo.com> wrote:

> On Tue, Mar 3, 2009 at 7:43 AM, Francisco Diaz Trepat - gmail
>  wrote:
> > Hi all, I decided to ask for help, since last night I had nightmares of
> xml
> > files extrangulating me.
> > I read the portlet how-to in the wiki, probably misread it. I have an
> > application that has no portlet usage (as in no blabla extends
> blaportlet),
> > but I was told that all the application could be seen from inside a
> portle,
> > simply by configure xmls:
> >
> > web.xml
> > portlet.xml
> > sun-web.xml
> >
> > (using Netbeans, wicket 1.4rc2, glassfish v3, portlet-container from
> > open-portal project)
> >
> >
> > I have this on the web.xml:
> >
> >   
> >  WicketFilter
> >
> >
>  org.apache.wicket.protocol.http.WicketFilter
> >
> >  
> >  
> > portletOnlyFilter
> > true
> >  
> >
> >  
> > detectPortletContext
> > true
> >  
> >
> >
> >  
> > configuration
> > development
> >  
> >
> > 
> > filterMappingUrlPattern
> >
> > /MyApplicationThatDoesNotWorkWithPortlet/*
> >  
> >
> > I have this on the portlet.xml:
> >
> > 
> >   
> >   MyApplicationThatDoesNotWorkWithPortlet
> > portlet version
> >   MyApplicationThatDoesNotWorkWithPortlet
> 
> >   MyApplicationThatDoesNotWorkWithPortlet -
> > Portlet
> >
> >
>  
> org.apache.wicket.protocol.http.portlet.WicketPortlet
> >
> >  
> >wicketFilterPath
> >/MyApplicationThatDoesNotWorkWithPortlet
> >  
> >
> >  -1
> >  
> > */*
> > VIEW
> >  
> >  
> > MyApplicationThatDoesNotWorkWithPortlet
> >
> > Portlet MyApplicationThatDoesNotWorkWithPortlet
> >  
> >   
> > 
> >
> > finally I have this on the sun-web.xml:
> >
> > 
> >  /MyApplicationThatDoesNotWorkWithPortlet
> >  
> >  
> >
> >  Keep a copy of the generated servlet class' java
> > code.
> >
> >  
> > 
> >
> > Please, could someone help me out. I couldn't find a comprehensive guide
> to
> > these 3 xml file and I am sure that I am missing something.
>
> I suggest looking at the web.xml and portlet.xml in wicket-examples
> [1]. That's what I did and I had my Wicket app running as a portlet in
> no time.
>
> One thing I miss in your filter configuration is the init-param
> 'applicationClassName' which should have your Wicket application class
> as value.
>
> HTH,
>
> Niels
>
> [1]
> http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc2/wicket-examples/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Please Please Portlet

2009-03-03 Thread Francisco Diaz Trepat - gmail
Hi all, I decided to ask for help, since last night I had nightmares of xml
files extrangulating me.
I read the portlet how-to in the wiki, probably misread it. I have an
application that has no portlet usage (as in no blabla extends blaportlet),
but I was told that all the application could be seen from inside a portle,
simply by configure xmls:

web.xml
portlet.xml
sun-web.xml

(using Netbeans, wicket 1.4rc2, glassfish v3, portlet-container from
open-portal project)


I have this on the web.xml:

   
  WicketFilter

 org.apache.wicket.protocol.http.WicketFilter

  
  
 portletOnlyFilter
 true
  

  
 detectPortletContext
 true
  


  
 configuration
 development
  

 
 filterMappingUrlPattern

/MyApplicationThatDoesNotWorkWithPortlet/*
  

I have this on the portlet.xml:


   
   MyApplicationThatDoesNotWorkWithPortlet
portlet version
   MyApplicationThatDoesNotWorkWithPortlet 
   MyApplicationThatDoesNotWorkWithPortlet -
Portlet

 
org.apache.wicket.protocol.http.portlet.WicketPortlet

  
wicketFilterPath
/MyApplicationThatDoesNotWorkWithPortlet
  

  -1
  
 */*
 VIEW
  
  
 MyApplicationThatDoesNotWorkWithPortlet

Portlet MyApplicationThatDoesNotWorkWithPortlet
  
   


finally I have this on the sun-web.xml:


  /MyApplicationThatDoesNotWorkWithPortlet
  
  

  Keep a copy of the generated servlet class' java
code.

  


Please, could someone help me out. I couldn't find a comprehensive guide to
these 3 xml file and I am sure that I am missing something.

f(t)


Re: Blob or File for Images

2009-02-28 Thread Francisco Diaz Trepat - gmail
Sounds Top of the Line!!

Yeah, you are right to laugh.

:-)


f(t)

On Sat, Feb 28, 2009 at 7:23 PM, Korbinian Bachl - privat <
korbinian.ba...@whiskyworld.de> wrote:

>
>
> Francisco Diaz Trepat - gmail schrieb:
>
>> Hi all.
>>
>> I am building a small shopping app for my girlfriend who sells women
>> underwear (no, i do not get to run around with hot models, other than the
>> uml ones).
>>
>
> HA HA HA! :P
>
> *sorry could not resist*
>
>
>> As the He-Man of this project I opted for Wicket (obviously) with
>> ActiveObjects and Postgres.
>>
>> Now to the question or opinion request.
>>
>> I have to show a nice catalog display, maybe with the gallery style of
>> small
>> pic large image for enlargement.
>>
>> Should I put my images in the database and use a blob type or should I
>> build
>> file system hierarchy?
>>
>
> I would do neither! - you should have a look at JCR, especially Apache
> Jackrabbit as its reference impl. - that'll solve your problems while still
> keeping you flexible in future. You also might want to have a look at
> Brix-CMS as a good starting point and has good reasons to use it:
> -> it gives you most needed CMS functions for your shop
> -> it uses JCR to save its content
> -> it can be extended using Tiles that are somewhat wicket-panels that
> implement a special interface
> -> its made by 2 wicket core devs that build it as a basement for their
> selling-shopsoftware
> -> big part of its code is written by Igor :)
>
> Best,
>
> Korbinian
>
>
>> Should I stay or Should I go? ;-)
>>
>>
> thats obviously a thing your gilfriend has to answer... ;D
>
>
>  f(t)
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Blob or File for Images

2009-02-28 Thread Francisco Diaz Trepat - gmail
Hi all.

I am building a small shopping app for my girlfriend who sells women
underwear (no, i do not get to run around with hot models, other than the
uml ones).

As the He-Man of this project I opted for Wicket (obviously) with
ActiveObjects and Postgres.

Now to the question or opinion request.

I have to show a nice catalog display, maybe with the gallery style of small
pic large image for enlargement.

Should I put my images in the database and use a blob type or should I build
file system hierarchy?

Should I stay or Should I go? ;-)

f(t)


Wicket ResourceReferences Fail (invalid url) portal-container on GlassFish

2009-02-26 Thread Francisco Diaz Trepat - gmail
Hi guys, I've received the news that our application could need portlet
support.
We turned to wicket 1.4rc2 and OpenPortal portal-container which runs on
glassfish v3 (just to choose one portal, has netbeans support). With that we
started playing around with it, and get to know it.

After endless micro-troubles with configuration and other stuff, we got it
running but we are having an issue with a resource (some extra slash-bar / )

In this case on an ajax-call we get an error:

*   ERROR: *Received Ajax response with code: 404

from firebug,  we see  that the browser is unable to get:
http://localhost:8080/portletdriver//
MyWebApplication/MyWebApplication/MyWebApplication | MyWebApplication
| MyWebApplication.
MyWebApplication/resources/com.mywebapplication.wicket.behavior.help.MyHelpBehavior/MyHelpBehavior.js

as you can notice I've bolded out the double slashes in the url.

This is a behavior with a javascript that initializes a small div that
serves as a kind of tooltip for form components such as textfields and
dropdowns.

The weird part is that it is being added on the onBeforeRender method of a
Panel. Could this be the problem?


   @Override
   protected void onBeforeRender() {
  super.onBeforeRender();
  ...

  visitChildren(new IVisitor() {
 @Override
 public Object component(Component component) {
   ...
   component.add(new MyHelpBehavior());
   ...
 }
  });
   }

cheers,

f(t)


Re: Wicket meetup in Switzerland?

2009-02-23 Thread Francisco Diaz Trepat - gmail
maradona hint no working anymore? Is that a sign I'm beginning to get old?
I'm in Buenos Aires, Argentina.


f(t)

On Sun, Feb 22, 2009 at 6:02 PM, Nino Martinez  wrote:

> Francisco Diaz Trepat - gmail wrote:
>
>> First of all, could this be the coolest list ever?
>> May be because Nino is on it.
>>
>> I would love to be in driving distance but Bs. As. is too far... Though
>> starting to beg my boss for a quick trip (as we work for a Zürich based
>> company)...
>>
>> We could have one here
>>
> Wheres here? But Im really thinking that either apache con or WUG in UK
> could be the place for an annual WUG meetup..? I might be able to persuade
> my boss to let me go for something like it..
>
>  , and extend our invitation to all, specially Nino,
>> Igor, Elco, Johan, and many more. Could make an Azado (as we are as widely
>> known for our good meat as maradona, tango and other semi-cultural
>> references about my country).
>>
>> Anyways nagging will continue,
>>
>> f(t)
>>
>> On Fri, Feb 20, 2009 at 1:23 PM, Johan Compagner > >wrote:
>>
>>
>>
>>> that was the whole idea, now you spoiled it! ;(
>>>
>>> On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson
>>> wrote:
>>>
>>>
>>>
>>>> I've seen plenty of programming language flame wars, but it looks like
>>>> Johan
>>>> is starting a REAL language flamewar.  :)
>>>>
>>>> On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner >>>
>>>>
>>>>> wrote:
>>>>>if you would do it in a time that i am in the swiss then i could
>>>>> also
>>>>> attend
>>>>> But that is now and then +/- 1 time in 2 months..
>>>>> (this  week i am in Bern)
>>>>>
>>>>> I dont have a problem if it was in real german, but it cant be in that
>>>>> swiss
>>>>> german (which has i my eyes nothing to do with german anyway)
>>>>> because that i really cant follow at all. its complete garbage.. ;)
>>>>>
>>>>> johan
>>>>>
>>>>>
>>>>> On Fri, Feb 20, 2009 at 12:17, Thomas Mäder
>>>>>
>>>>>
>>>> >>
>>>
>>>> wrote:
>>>>>>  Whoa! The silence is deafening! Since I've had one answer in
>>>>>> a week,
>>>>>>
>>>>>>
>>>>> I
>>>
>>>
>>>> guess
>>>>>> there is just no interest. Oh well...
>>>>>>
>>>>>> Thomas
>>>>>>
>>>>>> On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi Folks,
>>>>>>>
>>>>>>> I would be willing to organize a Wicket meetup in Switzerland if
>>>>>>>
>>>>>>>
>>>>>> there
>>>>
>>>>
>>>>> is
>>>>>
>>>>>
>>>>>> enough interest. I propose a meeting somewhere in Zürich. The
>>>>>>>
>>>>>>>
>>>>>> format
>>>
>>>
>>>> I
>>>>
>>>>
>>>>> imagine is that participants could (don't have to) shortly
>>>>>>>
>>>>>>>
>>>>>> (15-20min.)
>>>>
>>>>
>>>>> present their work with Wicket (demos are always nice). That would
>>>>>>>
>>>>>>>
>>>>>> be
>>>
>>>
>>>> followed by general mingling with drinks & snacks.
>>>>>>> For the date, I would shoot for the week starting March 16,
>>>>>>>
>>>>>>>
>>>>>> 17:30-20:30h.
>>>>>
>>>>>
>>>>>> Would you be interested in participating in/hosting/sponsoring such
>>>>>>>
>>>>>>>
>>>>>> a
>>>
>>>
>>>> thing? Either reply here or to me privately, and if there is enough
>>>>>>> interest, I'll set up a thing on the wiki.
>>>>>>>
>>>>>>> Thomas
>>>>>>>
>>>>>>> --
>>>>>>> Thomas Mäder
>>>>>>> Wicket & Eclipse Consulting
>>>>>>> www.devotek-it.ch
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Wicket & Eclipse Consulting
>>>>>> www.devotek-it.ch
>>>>>> thomasmaeder.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Jeremy Thomerson
>>>> http://www.wickettraining.com
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket meetup in Switzerland?

2009-02-20 Thread Francisco Diaz Trepat - gmail
First of all, could this be the coolest list ever?
May be because Nino is on it.

I would love to be in driving distance but Bs. As. is too far... Though
starting to beg my boss for a quick trip (as we work for a Zürich based
company)...

We could have one here, and extend our invitation to all, specially Nino,
Igor, Elco, Johan, and many more. Could make an Azado (as we are as widely
known for our good meat as maradona, tango and other semi-cultural
references about my country).

Anyways nagging will continue,

f(t)

On Fri, Feb 20, 2009 at 1:23 PM, Johan Compagner wrote:

> that was the whole idea, now you spoiled it! ;(
>
> On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson
> wrote:
>
> > I've seen plenty of programming language flame wars, but it looks like
> > Johan
> > is starting a REAL language flamewar.  :)
> >
> > On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner  > >wrote:
> >
> > > if you would do it in a time that i am in the swiss then i could also
> > > attend
> > > But that is now and then +/- 1 time in 2 months..
> > > (this  week i am in Bern)
> > >
> > > I dont have a problem if it was in real german, but it cant be in that
> > > swiss
> > > german (which has i my eyes nothing to do with german anyway)
> > > because that i really cant follow at all. its complete garbage.. ;)
> > >
> > > johan
> > >
> > >
> > > On Fri, Feb 20, 2009 at 12:17, Thomas Mäder
>  > > >wrote:
> > >
> > > > Whoa! The silence is deafening! Since I've had one answer in a week,
> I
> > > > guess
> > > > there is just no interest. Oh well...
> > > >
> > > > Thomas
> > > >
> > > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder
> > > > wrote:
> > > >
> > > > > Hi Folks,
> > > > >
> > > > > I would be willing to organize a Wicket meetup in Switzerland if
> > there
> > > is
> > > > > enough interest. I propose a meeting somewhere in Zürich. The
> format
> > I
> > > > > imagine is that participants could (don't have to) shortly
> > (15-20min.)
> > > > > present their work with Wicket (demos are always nice). That would
> be
> > > > > followed by general mingling with drinks & snacks.
> > > > > For the date, I would shoot for the week starting March 16,
> > > 17:30-20:30h.
> > > > > Would you be interested in participating in/hosting/sponsoring such
> a
> > > > > thing? Either reply here or to me privately, and if there is enough
> > > > > interest, I'll set up a thing on the wiki.
> > > > >
> > > > > Thomas
> > > > >
> > > > > --
> > > > > Thomas Mäder
> > > > > Wicket & Eclipse Consulting
> > > > > www.devotek-it.ch
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Wicket & Eclipse Consulting
> > > > www.devotek-it.ch
> > > > thomasmaeder.blogspot.com
> > > >
> > >
> >
> >
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
>


Re: Happy New Year Wickers

2009-01-02 Thread Francisco Diaz Trepat - gmail
much better...

On Fri, Jan 2, 2009 at 2:19 AM, James Carman
wrote:

> I believe the proper term is "Wicketeers"
>
> On Thu, Jan 1, 2009 at 10:05 AM, Francisco Diaz Trepat - gmail
>  wrote:
> > From Argentina to all you wicket users and developers.
> >
> > Thanks for all the help and improvements.
> >
> > Hope you all have a fulfilling 2009, and may all your hopes and wishes
> come
> > true.
> >
> > Cheers,
> >
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Happy New Year Wickers

2009-01-01 Thread Francisco Diaz Trepat - gmail
>From Argentina to all you wicket users and developers.

Thanks for all the help and improvements.

Hope you all have a fulfilling 2009, and may all your hopes and wishes come
true.

Cheers,

f(t)


Re: [OT] wicket users around the world

2008-12-26 Thread Francisco Diaz Trepat - gmail
Buenos Aires, Argentina.

On Fri, Dec 26, 2008 at 9:57 AM, Mathias P.W Nilsson
wrote:

>
> Munkedal, Sweden.
>
> I used wicket for 2 intranet projects and one external project.
>
> http://www.boardstore.se http://www.boardstore.se
> http://www.eddyemery.com http://www.eddyemery.com
>
> They both run the same wicket code.
> --
> View this message in context:
> http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21174081.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Francisco Diaz Trepat - gmail
[X] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.

On Mon, Nov 24, 2008 at 3:13 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:

> Hello everyone,
>  I would like to get your opinion on an idea regarding the Wicket Stuff
> project(s).  As you are familiar with, Wicket Stuff is where anyone can
> create anything related to Wicket, small or large.  One problem that new
> users of Wicket (and us "old" users) come across is that there is a lot of
> stuff in there, and not all of it is well maintained, and there aren't
> specific releases of many of the projects.  So, you have to build it
> yourself and figure out which version matches which Wicket version, etc...
>
>  What I would like to know is if everyone thinks it would be good to have a
> subset of WS projects that are structured in a way that they are always in
> sync with the Wicket versions.  IOW, there would be two branches - 1.3.X
> and
> 1.4 (trunk), just like Wicket has.  There would be a parent module and all
> of the modules that wanted to participate would be structured under it.
> They would all release in sync with Wicket.  For instance, when Wicket
> releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
> (bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
> figured out how interim releases would work (new features are added to a WS
> project and it wants to cut a release between wicket releases) or if that
> matters.
>
>  This would not have to effect all WS projects - someone could continue to
> add projects to WS just like they do today.  This would simply create a
> sub-tree of projects that are in the structured / scheduled release area.
> For those that don't want to be part of that structure, they could continue
> operating as they do today.
>
> So, here's the vote:
>
> [ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
> structure
> [ ] - YES - I would like to see at least the most used Wicket Stuff
> projects
> structured so that they mirror Wicket, and a release is produced for each
> Wicket release.
> [ ] - Maybe - I have a better idea (perfect!)
>
> Also - please add the following:
> 1 - Would you be interested in helping to maintain such a thing. (If we had
> two or three of the owners of the larger projects on board, I don't think
> it
> would be too hard to keep the codebase of this in sync with Wicket core.)
> 2 - What projects do you own (and by your vote we'll see if you want those
> projects to be included in this restructuring).
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>


Re: Compoundpropertymodel with shadow map?

2008-11-20 Thread Francisco Diaz Trepat - gmail
Don't know, but LOL.
This might be an instancing issue in which special handling is good for this
scenario but seems to be fine for most cases. And in a lazy TDD programming
way it might be good enough.

Although I know from blog and other threads that you look for greatness :-)
and not just code that works. Which is very inspiring now a days, in this
business hour of programming history.

I'll ask arround though, I think I might know someone who might know, and
also is not my mother...

f(t)

On Thu, Nov 20, 2008 at 6:26 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> I love simple and simple is good. But this approach has issues with
> hibernate if your hibernate sessions are per request and your shadowmodel
> lives in multiple requests and your entities has references to other
> entities for example 1..* etc ...  In "simple" use cases, and possibly also
> when not using hibernate this might be fine. This is what I am exploring
> currently. When not attending seminars or talking with people..
>
> Im wondering how eclipselink & openJPA handles the "hibernate lazy load
> problem", according to a oracle guy theres not a problem when using Toplink
> (which now are eclipselink?)
>
> Input on these things are very welcome...
>
> regards Nino
>
>
> Francisco Diaz Trepat - gmail wrote:
>
>> why?
>> simple is good. doesn't need to be complex.
>>
>> what part you dislike the most?
>>
>> f(t)
>>
>> On Thu, Nov 20, 2008 at 2:29 AM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> BTW this is a flawed approch.. We need something a little more
>>> intelligent.. I'll return on the subject..
>>>
>>>
>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>
>>>
>>>
>>>> heres the raw and completely untested version of it. probably with a
>>>> whole
>>>> bunch of issues...:
>>>>
>>>>  package zeuzgroup.web.model;
>>>>import java.lang.reflect.Field;
>>>>  import java.util.HashMap;
>>>>  import java.util.Map;
>>>>  import java.util.Map.Entry;
>>>>import org.apache.wicket.Component;
>>>>  import org.apache.wicket.WicketRuntimeException;
>>>>  import org.apache.wicket.model.AbstractPropertyModel;
>>>>  import org.apache.wicket.model.CompoundPropertyModel;
>>>>  import org.apache.wicket.model.IModel;
>>>>  import org.apache.wicket.model.IWrapModel;
>>>>public class EditorModel extends CompoundPropertyModel {
>>>>private final Map newValues = new HashMap>>> Object>();
>>>>public EditorModel(IModel underlyingModel) {
>>>>  super(underlyingModel);
>>>>  }
>>>>public void fillOriginal() {
>>>>Class c = this.getObject().getClass();
>>>>for (Entry entry : newValues.entrySet()) {
>>>>  try {
>>>>  Field t = c.getDeclaredField(entry.getKey());
>>>>  t.set(this.getObject(), entry.getValue());
>>>>  } catch (Exception e) {
>>>>  throw new WicketRuntimeException("Could not set "
>>>>  + entry.getKey(), e);
>>>>  }
>>>>}
>>>>  }
>>>>public  IWrapModel wrapOnInheritance(Component component) {
>>>>  return new AttachedCompoundPropertyModel(component,
>>>> newValues);
>>>>  }
>>>>private class AttachedCompoundPropertyModel extends
>>>>  AbstractPropertyModel implements IWrapModel {
>>>>  private static final long serialVersionUID = 1L;
>>>>private final Component owner;
>>>>private final Map newValues;
>>>>/**
>>>>   * Constructor
>>>>   *
>>>>   * @param owner
>>>>   *component that this model has been attached to
>>>>   */
>>>>  public AttachedCompoundPropertyModel(Component owner,
>>>> Map map) {
>>>>  super(EditorModel.this);
>>>>  this.owner = owner;
>>>>  this.newValues = map;
>>>>  }
>>>>@Override
>>>>  public C getObject() {
>>>>

Re: Compoundpropertymodel with shadow map?

2008-11-20 Thread Francisco Diaz Trepat - gmail
why?
simple is good. doesn't need to be complex.

what part you dislike the most?

f(t)

On Thu, Nov 20, 2008 at 2:29 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> BTW this is a flawed approch.. We need something a little more
> intelligent.. I'll return on the subject..
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>
>> heres the raw and completely untested version of it. probably with a whole
>> bunch of issues...:
>>
>>   package zeuzgroup.web.model;
>> import java.lang.reflect.Field;
>>   import java.util.HashMap;
>>   import java.util.Map;
>>   import java.util.Map.Entry;
>> import org.apache.wicket.Component;
>>   import org.apache.wicket.WicketRuntimeException;
>>   import org.apache.wicket.model.AbstractPropertyModel;
>>   import org.apache.wicket.model.CompoundPropertyModel;
>>   import org.apache.wicket.model.IModel;
>>   import org.apache.wicket.model.IWrapModel;
>> public class EditorModel extends CompoundPropertyModel {
>> private final Map newValues = new HashMap> Object>();
>> public EditorModel(IModel underlyingModel) {
>>   super(underlyingModel);
>>   }
>> public void fillOriginal() {
>> Class c = this.getObject().getClass();
>> for (Entry entry : newValues.entrySet()) {
>>   try {
>>   Field t = c.getDeclaredField(entry.getKey());
>>   t.set(this.getObject(), entry.getValue());
>>   } catch (Exception e) {
>>   throw new WicketRuntimeException("Could not set "
>>   + entry.getKey(), e);
>>   }
>> }
>>   }
>> public  IWrapModel wrapOnInheritance(Component component) {
>>   return new AttachedCompoundPropertyModel(component,
>> newValues);
>>   }
>> private class AttachedCompoundPropertyModel extends
>>   AbstractPropertyModel implements IWrapModel {
>>   private static final long serialVersionUID = 1L;
>> private final Component owner;
>> private final Map newValues;
>> /**
>>* Constructor
>>*
>>* @param owner
>>*component that this model has been attached to
>>*/
>>   public AttachedCompoundPropertyModel(Component owner,
>> Map map) {
>>   super(EditorModel.this);
>>   this.owner = owner;
>>   this.newValues = map;
>>   }
>> @Override
>>   public C getObject() {
>>   if (EditorModel.this.newValues.containsKey(owner.getId())) {
>>   return (C) newValues.get(owner.getId());
>>   } else {
>>   return super.getObject();
>>   }
>>   }
>> @Override
>>   public void setObject(C object) {
>>   newValues.put(owner.getId(), object);
>>   }
>> /**
>>* @see
>> org.apache.wicket.model.AbstractPropertyModel#propertyExpression()
>>*/
>>   @Override
>>   protected String propertyExpression() {
>>   return EditorModel.this.propertyExpression(owner);
>>   }
>> /**
>>* @see org.apache.wicket.model.IWrapModel#getWrappedModel()
>>*/
>>   public IModel getWrappedModel() {
>>   return EditorModel.this;
>>   }
>> /**
>>* @see org.apache.wicket.model.AbstractPropertyModel#detach()
>>*/
>>   @Override
>>   public void detach() {
>>   super.detach();
>>   EditorModel.this.detach();
>>   }
>>   }
>> }
>> // IComponentAssignedModel / IWrapModel
>>
>> Francisco Diaz Trepat - gmail wrote:
>>
>>> Nice, I was up to something similar.
>>>
>>> On Tue, Nov 18, 2008 at 9:43 AM, Nino Saturnino Martinez Vazquez Wael <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>> Hi
>>>>
>>>> Im trying todo a compoundpropertymodel which does not change original
>>>> values in the "original" model. I need this since I am updating some
>>>> stuff
>>>> in a wizard but I first want to commit when the user co

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
[+] on proposition shadow

On Tue, Nov 18, 2008 at 4:16 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> And heres the result in all its glory, should I create jira issue and
> attach the code?.. :
>
> package zeuzgroup.web.model;
>
> import java.lang.reflect.Field;
> import java.lang.reflect.Method;
> import java.util.HashMap;
> import java.util.Map;
> import java.util.Map.Entry;
>
> import org.apache.wicket.Application;
> import org.apache.wicket.Component;
> import org.apache.wicket.Session;
> import org.apache.wicket.WicketRuntimeException;
> import org.apache.wicket.model.AbstractPropertyModel;
> import org.apache.wicket.model.CompoundPropertyModel;
> import org.apache.wicket.model.IModel;
> import org.apache.wicket.model.IWrapModel;
> import org.apache.wicket.util.lang.PropertyResolver;
> import org.apache.wicket.util.lang.PropertyResolverConverter;
>
> public class ShadowCompoundPropertyModel extends
> CompoundPropertyModel {
>
>   private final Map newValues = new HashMap Object>();
>
>   public ShadowCompoundPropertyModel(IModel underlyingModel) {
>   super(underlyingModel);
>   }
>
>   public void fillOriginal() {
>   for (Entry entry : newValues.entrySet()) {
>
>   PropertyResolverConverter prc = null;
>   prc = new
> PropertyResolverConverter(Application.get().getConverterLocator(),
>   Session.get().getLocale());
>   PropertyResolver.setValue(entry.getKey(), getObject(),
> entry.getValue(), prc);
>   }
>   }
>
>   public  IWrapModel wrapOnInheritance(Component component) {
>   return new AttachedCompoundPropertyModel(component, newValues);
>   }
>
>   private class AttachedCompoundPropertyModel extends
>   AbstractPropertyModel implements IWrapModel {
>   private static final long serialVersionUID = 1L;
>
>   private final Component owner;
>
>   private final Map newValues;
>
>   /**
>* Constructor
>*
>* @param owner
>*component that this model has been attached to
>*/
>   public AttachedCompoundPropertyModel(Component owner,
>   Map map) {
>   super(ShadowCompoundPropertyModel.this);
>   this.owner = owner;
>   this.newValues = map;
>   }
>
>   @Override
>   public C getObject() {
>   if
> (ShadowCompoundPropertyModel.this.newValues.containsKey(owner.getId())) {
>   return (C) newValues.get(owner.getId());
>   } else {
>   return super.getObject();
>   }
>   }
>
>   @Override
>   public void setObject(C object) {
>   newValues.put(owner.getId(), object);
>   }
>
>   /**
>* @see
> org.apache.wicket.model.AbstractPropertyModel#propertyExpression()
>*/
>   @Override
>   protected String propertyExpression() {
>   return
> ShadowCompoundPropertyModel.this.propertyExpression(owner);
>   }
>
>   /**
>* @see org.apache.wicket.model.IWrapModel#getWrappedModel()
>*/
>   public IModel getWrappedModel() {
>   return ShadowCompoundPropertyModel.this;
>   }
>
>   /**
>* @see org.apache.wicket.model.AbstractPropertyModel#detach()
>*/
>   @Override
>   public void detach() {
>   super.detach();
>   ShadowCompoundPropertyModel.this.detach();
>   }
>   }
>
> }
>
> // IComponentAssignedModel / IWrapModel
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>
>> Hi
>>
>> Im trying todo a compoundpropertymodel which does not change original
>> values in the "original" model. I need this since I am updating some stuff
>> in a wizard but I first want to commit when the user confirms in the end of
>> the wizard, and if the model are changed directly the transaction are
>> automatically committed to the database
>>
>> So my idea were to todo a shadowCompoundPropertyModel something like this:
>>
>> class EditorModel extends CompoundPropertyModel {
>> private Map newValues=new HashMap();
>> public EditorModel(CompoundPropertyModel underlyingModel,
>>   String propertyName) {
>>   super(underlyingModel);
>>   }
>>  public getObject (String property){
>> check if there are something in the map if so return it, otherwise fall
>> back to the underlying model
>>
>> }  public setObject (String prop, Value){
>>   put changes in the map...
>> }
>>
>> public UpdateOriginal(){
>> iterate over the map and use reflection to set values on the original
>> model..
>>
>> }
>>
>> }
>>
>> Does anybody have something similar floating around, in a more complete
>> state..? Or could it be done in a easier way?
>>
>>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
Shadows sounds good... :-)f(t)

On Tue, Nov 18, 2008 at 11:37 AM, James Carman
<[EMAIL PROTECTED]>wrote:

> You could adapt the proxy model thing (I kind of like the name
> "shadow" and I might change mine) to do what you want.  You'd need to
> keep a flag that tells whether or not you've retrieved the value from
> the "destination" model.
>
> On Tue, Nov 18, 2008 at 9:33 AM, Nino Saturnino Martinez Vazquez Wael
> <[EMAIL PROTECTED]> wrote:
> > I do.. But if I use it with a detachable model the idea goes a bit away..
> > Plus I'd like it to be a bit more transparent... Could be me that just
> not
> > know enough
> >
> > James Carman wrote:
> >>
> >> You didn't like the ProxyModelManager?
> >>
> >>
> >>
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/proxy/ProxyModelManager.java
> >>
> >>
> >>
> >> On Tue, Nov 18, 2008 at 7:43 AM, Nino Saturnino Martinez Vazquez Wael
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>>
> >>> Hi
> >>>
> >>> Im trying todo a compoundpropertymodel which does not change original
> >>> values
> >>> in the "original" model. I need this since I am updating some stuff in
> a
> >>> wizard but I first want to commit when the user confirms in the end of
> >>> the
> >>> wizard, and if the model are changed directly the transaction are
> >>> automatically committed to the database
> >>>
> >>> So my idea were to todo a shadowCompoundPropertyModel something like
> >>> this:
> >>>
> >>> class EditorModel extends CompoundPropertyModel {
> >>>
> >>>  private Map newValues=new HashMap();
> >>>public EditorModel(CompoundPropertyModel underlyingModel,
> >>>  String propertyName) {
> >>>  super(underlyingModel);
> >>>  }
> >>>  public getObject (String property){
> >>> check if there are something in the map if so return it, otherwise fall
> >>> back
> >>> to the underlying model
> >>>
> >>> }  public setObject (String prop, Value){
> >>>  put changes in the map...
> >>> }
> >>>
> >>> public UpdateOriginal(){
> >>> iterate over the map and use reflection to set values on the original
> >>> model..
> >>>
> >>> }
> >>>
> >>> }
> >>>
> >>> Does anybody have something similar floating around, in a more complete
> >>> state..? Or could it be done in a easier way?
> >>>
> >>> --
> >>> -Wicket for love
> >>>
> >>> Nino Martinez Wael
> >>> Java Specialist @ Jayway DK
> >>> http://www.jayway.dk
> >>> +45 2936 7684
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > --
> > -Wicket for love
> >
> > Nino Martinez Wael
> > Java Specialist @ Jayway DK
> > http://www.jayway.dk
> > +45 2936 7684
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
Nice, I was up to something similar.

On Tue, Nov 18, 2008 at 9:43 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hi
>
> Im trying todo a compoundpropertymodel which does not change original
> values in the "original" model. I need this since I am updating some stuff
> in a wizard but I first want to commit when the user confirms in the end of
> the wizard, and if the model are changed directly the transaction are
> automatically committed to the database
>
> So my idea were to todo a shadowCompoundPropertyModel something like this:
>
> class EditorModel extends CompoundPropertyModel {
>
>   private Map newValues=new HashMap();
> public EditorModel(CompoundPropertyModel underlyingModel,
>   String propertyName) {
>   super(underlyingModel);
>   }
>  public getObject (String property){
> check if there are something in the map if so return it, otherwise fall
> back to the underlying model
>
> }  public setObject (String prop, Value){
>   put changes in the map...
> }
>
> public UpdateOriginal(){
> iterate over the map and use reflection to set values on the original
> model..
>
> }
>
> }
>
> Does anybody have something similar floating around, in a more complete
> state..? Or could it be done in a easier way?
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Progress Bar

2008-11-13 Thread Francisco Diaz Trepat - gmail
I kind of felt curious to knowing a little bit more about you, so hearing
the video made me wonder...
I got knock down by management on modifying progress.js with templates.
Solution was mandate to remove Status Messages all together.

so css visibility: hidden added to the status class.

wupb-uploadStatus {
visibility: hidden;
}

Sad, but true.

On another topic I'm currently working on perfecting a Modeless Window
extension of the current Modal window.

f(t)

On Thu, Nov 13, 2008 at 3:39 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> hehe yes why?
>
>
> Francisco Diaz Trepat - gmail wrote:
>
>> your voice in the video?
>>
>> On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> You could also just do the js with an texttemplate, that way it should be
>>> somewhat the same:)
>>>
>>> I wrote something on it on my blog...
>>>
>>>
>>>
>>> http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/
>>>
>>> If you have any questions just ask...
>>>
>>> Francisco Diaz Trepat - gmail wrote:
>>>
>>>
>>>
>>>> Hi nino, I'm on it. Very simple at first, English default text and
>>>> javascript function parameters for other values.
>>>> But I think latter on it could bring all text from server, although it
>>>> could
>>>> increase traffic unnecessarily.
>>>>
>>>> f(t)
>>>>
>>>> On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Francisco, feel free to provide a patch :)
>>>>>
>>>>> Francisco Diaz Trepat - gmail wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Could you be more specific?
>>>>>> You send me the Wicket internationalization link.
>>>>>>
>>>>>> The word progress, of Progress Bar, doesn't even exist in the page.
>>>>>>
>>>>>> And finally I found that it is not possible through regular
>>>>>> (framework)
>>>>>> means to i18n the Progress Bar due to the fact that the text I
>>>>>> referred
>>>>>> to
>>>>>> is inside (hardcoded) the JavaScript file profress.js
>>>>>>
>>>>>> f(t)
>>>>>>
>>>>>> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
>>>>>> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
>>>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]>>
>>>>>> <
>>>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]><
>>>>>> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>>>> >><
>>>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]><
>>>>>> [EMAIL PROTECTED]<[EMAIL PROTECTED]>>
>>>>>> <
>>>>>> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>>>> <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>>>>>>>
>>>>>>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail"
>>>>>>> <[EMAIL PROTECTED]> said:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Hi all, I am using the progress bar found at extensions.
>>>>>>>> Is it possible to translate the words of the message that appear at
>>>>>>>> the
>>>>>>>> status (Upload Starting... and "34% finished, 71.3M of 209.7M at
>>>>>>>> 5.9M/s;
>>>>>>>> 23
>>>>>>>> seconds") ??
>>>>>>>>
>>>>>>>> Or put my own version of messages?
>>>>>>>>
>>>>>>>> f(t)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> -
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> -Wicket for love
>>>>>
>>>>> Nino Martinez Wael
>>>>> Java Specialist @ Jayway DK
>>>>> http://www.jayway.dk
>>>>> +45 2936 7684
>>>>>
>>>>>
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Progress Bar

2008-11-13 Thread Francisco Diaz Trepat - gmail
your voice in the video?

On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> You could also just do the js with an texttemplate, that way it should be
> somewhat the same:)
>
> I wrote something on it on my blog...
>
>
> http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/
>
> If you have any questions just ask...
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Hi nino, I'm on it. Very simple at first, English default text and
>> javascript function parameters for other values.
>> But I think latter on it could bring all text from server, although it
>> could
>> increase traffic unnecessarily.
>>
>> f(t)
>>
>> On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Francisco, feel free to provide a patch :)
>>>
>>> Francisco Diaz Trepat - gmail wrote:
>>>
>>>
>>>
>>>> Could you be more specific?
>>>> You send me the Wicket internationalization link.
>>>>
>>>> The word progress, of Progress Bar, doesn't even exist in the page.
>>>>
>>>> And finally I found that it is not possible through regular (framework)
>>>> means to i18n the Progress Bar due to the fact that the text I referred
>>>> to
>>>> is inside (hardcoded) the JavaScript file profress.js
>>>>
>>>> f(t)
>>>>
>>>> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
>>>> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]>><
>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]> <
>>>> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>> >>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>>>>>
>>>>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail"
>>>>> <[EMAIL PROTECTED]> said:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi all, I am using the progress bar found at extensions.
>>>>>> Is it possible to translate the words of the message that appear at
>>>>>> the
>>>>>> status (Upload Starting... and "34% finished, 71.3M of 209.7M at
>>>>>> 5.9M/s;
>>>>>> 23
>>>>>> seconds") ??
>>>>>>
>>>>>> Or put my own version of messages?
>>>>>>
>>>>>> f(t)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Progress Bar

2008-11-13 Thread Francisco Diaz Trepat - gmail
openning link...

On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> You could also just do the js with an texttemplate, that way it should be
> somewhat the same:)
>
> I wrote something on it on my blog...
>
>
> http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/
>
> If you have any questions just ask...
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Hi nino, I'm on it. Very simple at first, English default text and
>> javascript function parameters for other values.
>> But I think latter on it could bring all text from server, although it
>> could
>> increase traffic unnecessarily.
>>
>> f(t)
>>
>> On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Francisco, feel free to provide a patch :)
>>>
>>> Francisco Diaz Trepat - gmail wrote:
>>>
>>>
>>>
>>>> Could you be more specific?
>>>> You send me the Wicket internationalization link.
>>>>
>>>> The word progress, of Progress Bar, doesn't even exist in the page.
>>>>
>>>> And finally I found that it is not possible through regular (framework)
>>>> means to i18n the Progress Bar due to the fact that the text I referred
>>>> to
>>>> is inside (hardcoded) the JavaScript file profress.js
>>>>
>>>> f(t)
>>>>
>>>> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
>>>> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> <
>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]>><
>>>> [EMAIL PROTECTED] <[EMAIL PROTECTED]> <
>>>> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>> >>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>>>>>
>>>>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail"
>>>>> <[EMAIL PROTECTED]> said:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi all, I am using the progress bar found at extensions.
>>>>>> Is it possible to translate the words of the message that appear at
>>>>>> the
>>>>>> status (Upload Starting... and "34% finished, 71.3M of 209.7M at
>>>>>> 5.9M/s;
>>>>>> 23
>>>>>> seconds") ??
>>>>>>
>>>>>> Or put my own version of messages?
>>>>>>
>>>>>> f(t)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Progress Bar

2008-11-12 Thread Francisco Diaz Trepat - gmail
Hi nino, I'm on it. Very simple at first, English default text and
javascript function parameters for other values.
But I think latter on it could bring all text from server, although it could
increase traffic unnecessarily.

f(t)

On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Francisco, feel free to provide a patch :)
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Could you be more specific?
>> You send me the Wicket internationalization link.
>>
>> The word progress, of Progress Bar, doesn't even exist in the page.
>>
>> And finally I found that it is not possible through regular (framework)
>> means to i18n the Progress Bar due to the fact that the text I referred to
>> is inside (hardcoded) the JavaScript file profress.js
>>
>> f(t)
>>
>> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
>> <[EMAIL PROTECTED] <[EMAIL PROTECTED]><
>> [EMAIL PROTECTED] <[EMAIL PROTECTED]>>
>>
>>
>>> wrote:
>>>
>>>
>>
>>
>>
>>>
>>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>>>
>>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail"
>>> <[EMAIL PROTECTED]> said:
>>>
>>>
>>>> Hi all, I am using the progress bar found at extensions.
>>>> Is it possible to translate the words of the message that appear at the
>>>> status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s;
>>>> 23
>>>> seconds") ??
>>>>
>>>> Or put my own version of messages?
>>>>
>>>> f(t)
>>>>
>>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Progress Bar

2008-11-12 Thread Francisco Diaz Trepat - gmail
Could you be more specific?
You send me the Wicket internationalization link.

The word progress, of Progress Bar, doesn't even exist in the page.

And finally I found that it is not possible through regular (framework)
means to i18n the Progress Bar due to the fact that the text I referred to
is inside (hardcoded) the JavaScript file profress.js

f(t)

On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> wrote:

>
> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>
> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail"
> <[EMAIL PROTECTED]> said:
> > Hi all, I am using the progress bar found at extensions.
> > Is it possible to translate the words of the message that appear at the
> > status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s;
> > 23
> > seconds") ??
> >
> > Or put my own version of messages?
> >
> > f(t)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Progress Bar

2008-11-12 Thread Francisco Diaz Trepat - gmail
Hi all, I am using the progress bar found at extensions.
Is it possible to translate the words of the message that appear at the
status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23
seconds") ??

Or put my own version of messages?

f(t)


Re: FileUpload Problem (Submitting a file from an Ajax ModalWindow)

2008-11-05 Thread Francisco Diaz Trepat - gmail
I remember looking but on my google account, not in the nable archives.
Usually those threads where NO AJAX FILE UPLOAD POSSIBLE.

But I think my problem is different.

I'll take a look right now though.

Thanks Igor, always present, short, to the point, and present.. :-)

f(t)

On Wed, Nov 5, 2008 at 3:32 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> plenty threads in the archives on uploading and ajax, you just have to
> search.
>
> -igor
>
> On Wed, Nov 5, 2008 at 9:48 AM, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi all I have an issue submitting a file in IE. It is kind of an evolving
> > problem and is getting out of hand, I'm sure there is an easier solution.
> > First of all. I have an ajax ModalWindow that pops up and shows a label
> and
> > and the file input. This didn't upload anything on any browser, I guess
> > because nested forms are replace with divs and for some reason did not
> > submit as multipart.
> >
> >
> > this is the evolving part. :-)
> >
> > After that, I'll tried an alternative that is working on Firefox but not
> on
> > IE, which was to add a multipart form on my page and another one on the
> > ModalWindow, and with an ajaxlink I Add the following JS code, that
> clones
> > the file-input of the ModalWindow to the Pages Form and then submits the
> > Pages Form. This works but not on IE.
> >
> > Here is the intricate solution:
> >
> >
> > @Override
> > public void onClick(AjaxRequestTarget cAjaxRequestTarget) {
> >String sFormId;
> >String sFileInputId;
> >
> >MainPage cMainPage = (MainPage) cAjaxRequestTarget.getPage();
> >
> >sFormId = cMainPage.getImportForm().getMarkupId();
> >sFileInputId =
> > cMainPage.getImportForm().getFileUploadField().getMarkupId();
> >
> >String sSubmitScript = "" +
> >  "var cImportForm = document.getElementById('" + sFormId
> +
> > "');\n" +
> >  "var cImportFileInput = document.getElementById('" +
> > sFileInputId + "');\n" +
> >  "var cFileInput = document.getElementById('" +
> > cUploadField.getMarkupId() + "');\n" + //cUploadField is the FileInput
> from
> > the current ModalWindow that holds the ajax-link (whos onClick I'm
> > overriding)
> >  "var sValue = cFileInput.value;\n" +
> >  "if (typeof(sValue)!=\"undefined\" && sValue.length>5)
> {"
> > +
> >  "   var cClone = cFileInput.cloneNode(true);\n" +
> >  "  var sName = cImportFileInput.name;\n" +
> >  "  cClone.name = sName;\n" +
> >  "
> >  cImportFileInput.parentNode.removeChild(cImportFileInput);\n" +
> >  "  cImportForm.appendChild(cClone);\n" +
> >  "  cImportForm.submit();\n" +
> >  "}";
> >
> >
> >cAjaxRequestTarget.appendJavascript(sSubmitScript);
> > }
> >
> > As the Subject, what I need is to submit a file from an Ajax ModalWindow.
> Is
> > this possible?
> >
> > Thanks,
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


FileUpload Problem (Submitting a file from an Ajax ModalWindow)

2008-11-05 Thread Francisco Diaz Trepat - gmail
Hi all I have an issue submitting a file in IE. It is kind of an evolving
problem and is getting out of hand, I'm sure there is an easier solution.
First of all. I have an ajax ModalWindow that pops up and shows a label and
and the file input. This didn't upload anything on any browser, I guess
because nested forms are replace with divs and for some reason did not
submit as multipart.


this is the evolving part. :-)

After that, I'll tried an alternative that is working on Firefox but not on
IE, which was to add a multipart form on my page and another one on the
ModalWindow, and with an ajaxlink I Add the following JS code, that clones
the file-input of the ModalWindow to the Pages Form and then submits the
Pages Form. This works but not on IE.

Here is the intricate solution:


 @Override
 public void onClick(AjaxRequestTarget cAjaxRequestTarget) {
String sFormId;
String sFileInputId;

MainPage cMainPage = (MainPage) cAjaxRequestTarget.getPage();

sFormId = cMainPage.getImportForm().getMarkupId();
sFileInputId =
cMainPage.getImportForm().getFileUploadField().getMarkupId();

String sSubmitScript = "" +
  "var cImportForm = document.getElementById('" + sFormId +
"');\n" +
  "var cImportFileInput = document.getElementById('" +
sFileInputId + "');\n" +
  "var cFileInput = document.getElementById('" +
cUploadField.getMarkupId() + "');\n" + //cUploadField is the FileInput from
the current ModalWindow that holds the ajax-link (whos onClick I'm
overriding)
  "var sValue = cFileInput.value;\n" +
  "if (typeof(sValue)!=\"undefined\" && sValue.length>5) {"
+
  "   var cClone = cFileInput.cloneNode(true);\n" +
  "  var sName = cImportFileInput.name;\n" +
  "  cClone.name = sName;\n" +
  "
 cImportFileInput.parentNode.removeChild(cImportFileInput);\n" +
  "  cImportForm.appendChild(cClone);\n" +
  "  cImportForm.submit();\n" +
  "}";


cAjaxRequestTarget.appendJavascript(sSubmitScript);
 }

As the Subject, what I need is to submit a file from an Ajax ModalWindow. Is
this possible?

Thanks,
f(t)


Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-10-31 Thread Francisco Diaz Trepat - gmail
Hi Adriano, maybe looking for PDF dynamic resource will bring something up.
We had a similiar issue and discussed it on the list a while ago.
f(t)

On Fri, Oct 31, 2008 at 10:06 AM, Adriano dos Santos Fernandes <
[EMAIL PROTECTED]> wrote:

> Hi!
>
> I added AjaxSelfUpdatingTimerBehavior to a WebMarkupContainer (div), and
> inside its onPostProcessTarget I loaded a PDF (ResourceStreamRequestTarget)
> and called RequestCycle.get().setRequestTarget(requestTarget).
>
> After that, redirection doesn't happen, and I see the PDF content on the
> AJAX Debug Window.
>
> Can (and how) I redirect to another page/resource from
> AjaxSelfUpdatingTimerBehavior?
>
> Thanks,
>
>
> Adriano
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Understanding JS Error on Wicket-Framewor (Ajax + F5)

2008-10-24 Thread Francisco Diaz Trepat - gmail
WicketAjaxDebug.log(bla);

On Fri, Oct 24, 2008 at 2:25 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> What is that supposed to be? Custom javascript?
>
> -Matej
>
> On Fri, Oct 24, 2008 at 6:02 PM, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi all. I am getting the following error when refreshing (CTRL+R) my
> page.
> > I work entirely with ajax except for the first-time loading of the page.
> > After that it is all panel replacements.
> >
> > Everything kind of work but I have one formatting component that don't,
> and
> > as a hint I get this error (on firebug):
> >
> >
> > document.body is null
> > addElement()("
>  > style='border: 1px solid black; padding: 1px; background-color: #eee'>
>  > style='overflow: auto; width: 100%'>   > href='javascript:WicketAjaxDebug.switchScrollLock()'
> > id='wicketAjaxDebugScrollLock' style='color:blue'
> > onfocus='this.blur();'>scroll lock |  > href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear
> |
> >  > style='color:blue'>close   > id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em;
> > background-color: gray; color: white; padding-left: 1em; margin-right:
> 14em;
> > cursor: move;'> Wicket Ajax Debug Window (drag me here)   > id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px;
> > background-color: white; color: black; overflow: auto; white-space:
> nowrap'>
> >  
> >  > id='wicketAjaxDebugWindowResizeHandle'>   
>  > id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px;
> > z-index:100; padding-top: 0.3em; padding-bottom: 0.3em; line-height:
> > normal ; _padding-top: 0em; width: 12em; border: 1px solid black;
> > background-color: white; text-align: center; opacity: 0.7; color: blue;'
> > href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX
> > DEBUG")wicket-a...-debug.js
> > (line 207)
> > init()()wicket-a...-debug.js (line 137)
> > log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49)
> > log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3)
> > logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10)
> > getGERMANItems()()LcDateTy..._de_CH.js (line 2)
> > LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
> >  document.body.appendChild(element);
> >
> >
> > Any clue to what could be happening that when page is refreshed,
> > document.body returns null?
> >
> > At first this error was appearing when uploading a file (hence posting
> and
> > refreshing window).
> >
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Can you see this mail?

2008-10-24 Thread Francisco Diaz Trepat - gmail
great.
^_^

thx,

f(t)

2008/10/24 Cristi Manole <[EMAIL PROTECTED]>

> yup.
>
>
> On Fri, Oct 24, 2008 at 2:08 PM, Francisco Diaz Trepat - gmail <
> [EMAIL PROTECTED]> wrote:
>
>> Hi, can at least one list member reply?
>> f(t)
>>
>
>


Can you see this mail?

2008-10-24 Thread Francisco Diaz Trepat - gmail
Hi, can at least one list member reply?
f(t)


Understanding JS Error on Wicket-Framewor (Ajax + F5)

2008-10-24 Thread Francisco Diaz Trepat - gmail
Hi all. I am getting the following error when refreshing (CTRL+R) my page.
I work entirely with ajax except for the first-time loading of the page.
After that it is all panel replacements.

Everything kind of work but I have one formatting component that don't, and
as a hint I get this error (on firebug):


document.body is null
addElement()("scroll lock | clear |
close   Wicket Ajax Debug Window (drag me here)  
 
WICKET AJAX
DEBUG")wicket-a...-debug.js
(line 207)
init()()wicket-a...-debug.js (line 137)
log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49)
log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3)
logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10)
getGERMANItems()()LcDateTy..._de_CH.js (line 2)
LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
  document.body.appendChild(element);


Any clue to what could be happening that when page is refreshed,
document.body returns null?

At first this error was appearing when uploading a file (hence posting and
refreshing window).

f(t)


Close ModalWindow and Download a File

2008-10-16 Thread Francisco Diaz Trepat - gmail
Hi, to easy up on my previous Q I need to do the following:
I have a modal dialog with three buttons (actually AjaxLinks).

One to Cancel and call modalDIalog.close(ajaxRequestTarget);

And two buttons that need to close the modalWindow and download (open the
Save File window) a file. One button will download the file with one option,
and the other one with another option (I think this part is not that
relevant though).

Can you guide me a bit?


thanks,

f(t)


Redirect AjaxRequest to A File

2008-10-16 Thread Francisco Diaz Trepat - gmail
Hi all, I wanted to know if it is possible to redirect an AjaxLink call to a
file.
Kind of like an expiration redirection but with a file...

f(t)


Re: Modeless Window (real or div)

2008-10-07 Thread Francisco Diaz Trepat - gmail
right, the nonmodal window is basically a calculator (kind of) that helps
the user do some math. It needs to have access to "lower" (layer-wise)
fields.
If a modal window is displayed then it should cover the nonmodal window
(lets call it the calculator).

I can do this with some error like this:

new ModalWindow(calculator){ private static final long
serialVersionUID = 0L;

 @Override
 public void show(AjaxRequestTarget cTarget) {
super.show(cTarget);
cTarget.appendJavascript("if
(typeof(Wicket.Window.get())!=\"undefined\") {
Wicket.Window.get().destroyMask(); }");
 }

  };

This destroyMask works fine, but when I close the window, it throws an error
due to destroyMask is called again and inside executes the following code:

/**
 * Destroys the mask.
 */
destroyMask: function() {
this.mask.hide();
this.mask = null;
}

I am thinking in overriding this body with:

/**
 * Destroys the mask.
 */
destroyMask: function() {
if(this.mask) {
this.mask.hide();
this.mask = null;
}
}

Or something of the sort.

f(t)

On Tue, Oct 7, 2008 at 9:01 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> both modal and nonmodal?
>
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Seams that it is not possible to do this.
>> I need both modal and modeless.
>>
>> f(t)
>>
>> On Tue, Oct 7, 2008 at 7:57 AM, Francisco Diaz Trepat - gmail <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Hi nino, sounds good, I'll have to set the setCssClassName() if I don't
>>> want to clash with other modal windows, that need to be modal, right?
>>> f(t)
>>>
>>>
>>> On Tue, Oct 7, 2008 at 2:36 AM, Nino Saturnino Martinez Vazquez Wael <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>> Why not use wicket modal window, and just override css?
>>>>
>>>>
>>>> Francisco Diaz Trepat - gmail wrote:
>>>>
>>>>
>>>>
>>>>> Hi I need to build a pop-up modal window on my application.
>>>>> I wanted to see if I could get some recomendations or comments.
>>>>>
>>>>> Obviously I need not to re-enter username and password and work on the
>>>>> same
>>>>> session.
>>>>>
>>>>> It could be a div element like the Wicket Dialog, or a real new window.
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> thanks,
>>>>> f(t)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> -Wicket for love
>>>>
>>>> Nino Martinez Wael
>>>> Java Specialist @ Jayway DK
>>>> http://www.jayway.dk
>>>> +45 2936 7684
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Modeless Window (real or div)

2008-10-07 Thread Francisco Diaz Trepat - gmail
Seams that it is not possible to do this.
I need both modal and modeless.

f(t)

On Tue, Oct 7, 2008 at 7:57 AM, Francisco Diaz Trepat - gmail <
[EMAIL PROTECTED]> wrote:

> Hi nino, sounds good, I'll have to set the setCssClassName() if I don't
> want to clash with other modal windows, that need to be modal, right?
> f(t)
>
>
> On Tue, Oct 7, 2008 at 2:36 AM, Nino Saturnino Martinez Vazquez Wael <
> [EMAIL PROTECTED]> wrote:
>
>> Why not use wicket modal window, and just override css?
>>
>>
>> Francisco Diaz Trepat - gmail wrote:
>>
>>> Hi I need to build a pop-up modal window on my application.
>>> I wanted to see if I could get some recomendations or comments.
>>>
>>> Obviously I need not to re-enter username and password and work on the
>>> same
>>> session.
>>>
>>> It could be a div element like the Wicket Dialog, or a real new window.
>>>
>>> Thoughts?
>>>
>>> thanks,
>>> f(t)
>>>
>>>
>>>
>>
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: Modeless Window (real or div)

2008-10-07 Thread Francisco Diaz Trepat - gmail
Hi nino, sounds good, I'll have to set the setCssClassName() if I don't want
to clash with other modal windows, that need to be modal, right?
f(t)

On Tue, Oct 7, 2008 at 2:36 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Why not use wicket modal window, and just override css?
>
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Hi I need to build a pop-up modal window on my application.
>> I wanted to see if I could get some recomendations or comments.
>>
>> Obviously I need not to re-enter username and password and work on the
>> same
>> session.
>>
>> It could be a div element like the Wicket Dialog, or a real new window.
>>
>> Thoughts?
>>
>> thanks,
>> f(t)
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Modeless Window (real or div)

2008-10-06 Thread Francisco Diaz Trepat - gmail
Hi I need to build a pop-up modal window on my application.
I wanted to see if I could get some recomendations or comments.

Obviously I need not to re-enter username and password and work on the same
session.

It could be a div element like the Wicket Dialog, or a real new window.

Thoughts?

thanks,
f(t)


Re: Wicket merchandise?

2008-08-20 Thread Francisco Diaz Trepat - gmail
Hi all, I totally agree.

We should have some merchandise.

I second the motion :-)

f(t)



On Wed, Aug 20, 2008 at 7:39 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hi
>
> We talked about this a loong time ago. But theres a service CafePress.com
> (could have been there then aswell )which fairly easy lets you produce
> wicket merchandise.. So do the community want mugs caps and t-shirts? And
> what does the devs say?
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [nbusers] WebApp Src/Html/css Updating ==> Redeploying / Refreshing Way

2008-06-30 Thread Francisco Diaz Trepat - gmail
Thanks Elco we are looking at the article right now.

f(t)

PS: We have your early edition, it was great, it is great. Thank you.

On Sun, Jun 29, 2008 at 3:50 PM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> I don't think it's Wicket's fault either, but someone could scan
> Wicket's code for problems like described here:
> http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java
>
> Eelco
>
> On Fri, Jun 27, 2008 at 11:58 AM, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi I send this mail to the Netbeans user list. And this is what some has
> > responded. I don't think is the case, and I know this is a wicket list,
> but
> > could some-one developing wicket on  netbeans 6.1 is dealing or has dealt
> > with this issue?
> >
> > Thanks,
> > f(t)
> >
> > -- Forwarded message --
> > From: Petr Hejl <[EMAIL PROTECTED]>
> > Date: Fri, Jun 27, 2008 at 2:31 PM
> > Subject: Re: [nbusers] WebApp Src/Html/css Updating ==> Redeploying /
> > Refreshing Way
> > To: [EMAIL PROTECTED]
> > Cc: Petr Jiricka <[EMAIL PROTECTED]>
> >
> >
> > Hi,
> > this is usually bug (memory leak) in used framework. For example
> hibernate
> > is using PermGen space a lot and there were several issues (leaks)
> related
> > to this. It is usually related to dynamically created classes.
> > P.
> >
> >
> > Francisco Diaz Trepat - gmail wrote:
> >
> >> Hi, we are having the following problem, and believe it is the way we
> work
> >> with it. On developing mode the Apache Tomcat fails saying out of
> memory.
> >>
> >> We are developing a Wicket app.
> >>
> >> Each change we do, we basically run the project again, or do a
> right-click
> >> ==> undeply and deploy
> >>
> >> Some times we touch a CSS or and HTML file, and have to touch a JAVA
> file
> >> just to reload it.
> >>
> >> After a few or better said, many, times of doing this (some touch,
> re-run,
> >> or undeploy-deploy) the Apache finally fails throwing an exception of
> Out of
> >> memory and something about perm objects.
> >>
> >> On Eclipse, a coworker is just Saving the CSS file to see the changes on
> >> the Browser, he doesn't need to re-run or re-deploy.
> >>
> >> Can some one tell me what we are doing wrong?
> >>
> >> Thanks,
> >> f(t)
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Fwd: [nbusers] WebApp Src/Html/css Updating ==> Redeploying / Refreshing Way

2008-06-27 Thread Francisco Diaz Trepat - gmail
Hi I send this mail to the Netbeans user list. And this is what some has
responded. I don't think is the case, and I know this is a wicket list, but
could some-one developing wicket on  netbeans 6.1 is dealing or has dealt
with this issue?

Thanks,
f(t)

-- Forwarded message --
From: Petr Hejl <[EMAIL PROTECTED]>
Date: Fri, Jun 27, 2008 at 2:31 PM
Subject: Re: [nbusers] WebApp Src/Html/css Updating ==> Redeploying /
Refreshing Way
To: [EMAIL PROTECTED]
Cc: Petr Jiricka <[EMAIL PROTECTED]>


Hi,
this is usually bug (memory leak) in used framework. For example hibernate
is using PermGen space a lot and there were several issues (leaks) related
to this. It is usually related to dynamically created classes.
P.


Francisco Diaz Trepat - gmail wrote:

> Hi, we are having the following problem, and believe it is the way we work
> with it. On developing mode the Apache Tomcat fails saying out of memory.
>
> We are developing a Wicket app.
>
> Each change we do, we basically run the project again, or do a right-click
> ==> undeply and deploy
>
> Some times we touch a CSS or and HTML file, and have to touch a JAVA file
> just to reload it.
>
> After a few or better said, many, times of doing this (some touch, re-run,
> or undeploy-deploy) the Apache finally fails throwing an exception of Out of
> memory and something about perm objects.
>
> On Eclipse, a coworker is just Saving the CSS file to see the changes on
> the Browser, he doesn't need to re-run or re-deploy.
>
> Can some one tell me what we are doing wrong?
>
> Thanks,
> f(t)
>
>


Re: Style implementation for Round Cornered Tabbed Panels

2008-06-25 Thread Francisco Diaz Trepat - gmail
Thanks guys,

I follow the leads and got it done.

Great link about the sliding doors,

thanks,
f(t)

On Tue, Jun 24, 2008 at 10:20 PM, Matthew Young <[EMAIL PROTECTED]> wrote:

> The wicket tab panel example does exactly this
>
> http://www.wicket-library.com/wicket-examples/ajax/tabbed-panel.1
>
> It uses the sliding door technique describe here:
>
> http://www.alistapart.com/articles/slidingdoors/
>
> On Tue, Jun 24, 2008 at 5:02 PM, Brill Pappin <[EMAIL PROTECTED]> wrote:
>
> > I've seen this done pretty much how you describe (in fact I think there
> is
> > a demo inthe wicket examples) That use two images (left and right).
> > the left one is narrow, just enough to contain the rounded corners, the
> > right side however is extra long; long enough to fit pretty much any text
> > you put in.
> >
> > As the tab expands, the right side move to the right and simply clips to
> > the left as needed.
> >
> >
> > - Brill Pappin
> >
> >
> >
> > On 24-Jun-08, at 6:01 PM, Francisco Diaz Trepat - gmail wrote:
> >
> >  Hi all,
> >>
> >> I need to make each tab on an AjaxTabbedPanel have round corners. No big
> >> deal so far:
> >>
> >> *div.tabpanel div.tab-row li* {
> >>   background:url("my-round-corner-tab-background.png") no-repeat left
> top;
> >> }
> >>
> >> But what if I want to have a "resizable" round cornered tab. Therefore
> if
> >> i
> >> have a tab title "hi" and another "good bye and have a wonderful
> >> weekend!!!"
> >> I wouldn't need to have two different background images: one for small
> >> normal titles and another background for huge horrible ones.
> >>
> >> I believe the technique is to have the two corners edges (left and
> right)
> >> and have the middle space with the same colored background.
> >>
> >> so, any ideas on how, and if I could implement that without touching so
> >> much
> >> the AjaxTabbedPanel implementation (extending).
> >>
> >> I think I might be able to put the left corner background image on the
> >> *div.tabpanel
> >> div.tab-row li a *and the right one on the *div.tabpanel div.tab-row li
> a
> >> span
> >>
> >> *This would be, uggly even if I could do it.
> >>
> >> So, any better way of doing this without having to extend the current
> >> AjaxTabbedPanel?
> >>
> >> thanks,
> >> f(t)
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Style implementation for Round Cornered Tabbed Panels

2008-06-24 Thread Francisco Diaz Trepat - gmail
Hi all,

I need to make each tab on an AjaxTabbedPanel have round corners. No big
deal so far:

*div.tabpanel div.tab-row li* {
background:url("my-round-corner-tab-background.png") no-repeat left top;
}

But what if I want to have a "resizable" round cornered tab. Therefore if i
have a tab title "hi" and another "good bye and have a wonderful weekend!!!"
I wouldn't need to have two different background images: one for small
normal titles and another background for huge horrible ones.

I believe the technique is to have the two corners edges (left and right)
and have the middle space with the same colored background.

so, any ideas on how, and if I could implement that without touching so much
the AjaxTabbedPanel implementation (extending).

I think I might be able to put the left corner background image on the
*div.tabpanel
div.tab-row li a *and the right one on the *div.tabpanel div.tab-row li a
span

*This would be, uggly even if I could do it.

So, any better way of doing this without having to extend the current
AjaxTabbedPanel?

thanks,
f(t)


Re: Rare Style disabling and Ajax Panel Replacement Question

2008-06-18 Thread Francisco Diaz Trepat - gmail
That was my approach exactly but I lack the "arguments" to convince them. I
managed to send this mail and see if I'll get better ones :-), or at least
community consensus.

Maybe if I started a thread I could get some other experiences and opinions
on the matter.

Thanks Nino.

f(t)

On Wed, Jun 18, 2008 at 1:49 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hi Francisco
>
> I'd much rather go with more detailed naming of your styles, instead of
> doing complex stuff with dom? Like
>
> .DetailPanel-A-fieldPersonName{
>  position:absolute;
>  left:50px;
>  top: 50px;
> }
>
> Or maybe the problem are more complex than this..?
>
> Francisco Diaz Trepat - gmail wrote:
>
>> Hi all, its been a while.
>>
>> Finally we started migrating other applications from swing to wicket
>> thanks
>> to all your help provided last year.
>>
>> Having said that, I have some colleagues that are looking to develop a way
>> to disable style sheets that are loaded as part of panel replacement.
>>
>> Here is the Scenario:
>>
>> we have a classic web structure: left menu, top header, and center to
>> right
>> "Detail" area.
>>
>> The detail area is replaced by wicket-ajax functions and each panel
>> usually
>> has an overriden renderHead with code similar to this one:
>>
>> cHtmlHeaderContainer.getHeaderResponse().renderCSSReference(new
>> ResourceReference(
>>this.getClass(),
>>this.getClass().getSimpleName() + ".css",
>>getLocale(),
>>getStyle()));
>>
>>
>> Because on more than one "detail" panel they use a same field but with
>> different position (lets say person.name) they are experiencing some
>> style
>> collision.
>>
>> Lets say that DetailPanel-A and DetailPanel-B show a text-field with the
>> person.name and displays them in different locations. Surely now we have
>> the
>> same style name (by class (.) or by id (#) in some versions).
>>
>> So we have two .css files.
>>
>> *DetailPanel-A.css* with:
>>
>> .fieldPersonName{
>>   position:absolute;
>>   left:50px;
>>   top: 50px;
>> }
>>
>> *DetailPanel-B.css* with:
>>
>> .fieldPersonName{
>>   background-color:   yellow;
>> }
>>
>> Now we navigate from DetailPanel-A to DetailPanel-B or viceversa. And
>> ofcourse the "problem" is that on the DetailPanel-B my field gets moved if
>> I
>> don't specify otherwise. And some times although we specify it, it will
>> depend on order and other matters as well. This are the rules of the game
>> and web development has been fine with them.
>>
>> But my colleages are proposing a disabling of previously loaded styles,
>> living DOM with disabled style objects.
>>
>> I haven't heard of that kind of practice. And IMHO instead of building a
>> complex javascript function to disable the style object (> rel="stylesheet" type="text/css" charset="utf-8" media="all"
>> href="someWicketResourceUrl">) on the pages DOM object, we could share
>> this
>> with wicket community and find out if we are on the right path. I don't
>> feel
>> we are in it.
>>
>> Could some please comment on this, or ask anything you need to comment on
>> this desing issue.
>>
>> Thanks,
>> f(t)
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Rare Style disabling and Ajax Panel Replacement Question

2008-06-18 Thread Francisco Diaz Trepat - gmail
Hi all, its been a while.

Finally we started migrating other applications from swing to wicket thanks
to all your help provided last year.

Having said that, I have some colleagues that are looking to develop a way
to disable style sheets that are loaded as part of panel replacement.

Here is the Scenario:

we have a classic web structure: left menu, top header, and center to right
"Detail" area.

The detail area is replaced by wicket-ajax functions and each panel usually
has an overriden renderHead with code similar to this one:

cHtmlHeaderContainer.getHeaderResponse().renderCSSReference(new
ResourceReference(
this.getClass(),
this.getClass().getSimpleName() + ".css",
getLocale(),
getStyle()));


Because on more than one "detail" panel they use a same field but with
different position (lets say person.name) they are experiencing some style
collision.

Lets say that DetailPanel-A and DetailPanel-B show a text-field with the
person.name and displays them in different locations. Surely now we have the
same style name (by class (.) or by id (#) in some versions).

So we have two .css files.

*DetailPanel-A.css* with:

.fieldPersonName{
   position:absolute;
   left:50px;
   top: 50px;
}

*DetailPanel-B.css* with:

.fieldPersonName{
   background-color:   yellow;
}

Now we navigate from DetailPanel-A to DetailPanel-B or viceversa. And
ofcourse the "problem" is that on the DetailPanel-B my field gets moved if I
don't specify otherwise. And some times although we specify it, it will
depend on order and other matters as well. This are the rules of the game
and web development has been fine with them.

But my colleages are proposing a disabling of previously loaded styles,
living DOM with disabled style objects.

I haven't heard of that kind of practice. And IMHO instead of building a
complex javascript function to disable the style object () on the pages DOM object, we could share this
with wicket community and find out if we are on the right path. I don't feel
we are in it.

Could some please comment on this, or ask anything you need to comment on
this desing issue.

Thanks,
f(t)


Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I have updated the Safari to the 3.0.4 version and now it works also.

The only one that doesn't work is FireFox so I have the
*attachment*Content-Disposition workarround so that it will download
the file and open
it latter with Adobe Acrobat Reader.

f(t)

On Jan 24, 2008 11:11 AM, Francisco Diaz Trepat - gmail <
[EMAIL PROTECTED]> wrote:

> Johan, thanks, I'll tryit out and will give a feedback.
>
> f(t)
>
>   On Jan 24, 2008 11:08 AM, Johan Maasing <[EMAIL PROTECTED]> wrote:
>
> > In my experience (outside wicket) the content type matters to FF and
> > Opera, IE mainly looks at the file ending. So make sure you set that
> > to application/pdf or some similiar. Also, the content-dispostion can
> > be set to "inline" instead of "attachement"
> > (http://www.ietf.org/rfc/rfc1806.txt ) which sometimes leads the
> > browser down the path of opening the PDF in the browser window.
> > However, I have noticied that you can never predict what will happen,
> > new versions of acrobat plug-in and browsers can change the behaviour.
> >
> > 2008/1/24, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]
> > >:
> > > MMmmm Could it be possible an expiration before the launch of the
> > adobe
> > > reader plugin for the firefox tab?
> > >
> > > I'll try it out.
> > >
> > > thanks,
> > > f(t)
> > >
> > > On Jan 24, 2008 4:54 AM, severian <[EMAIL PROTECTED]> wrote:
> > >
> > > >
> > > > Something like this may work for your DynamicWebResource:
> > > >
> > > > @Override
> > > >protected void setHeaders(WebResponse response) {
> > > >super.setHeaders(response);
> > > >String name = getFileName();
> > > >if (name != null) {
> > > >response.setHeader("Content-Disposition",
> > > > String.format("attachment; filename=\"%s\"", name));
> > > >}
> > > >
> > > >// Cache for 60 secs to give client app ( e.g. word or excel
> > or
> > > > acrobat) time to open file.
> > > >response.setDateHeader("Expires", System.currentTimeMillis()
> > + (60
> > > > *
> > > > 1000));
> > > >response.setHeader ("Cache-Control", "max-age=" + 60);
> > > >}
> > > > --
> > > > View this message in context:
> > > > http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
> > > > Sent from the Wicket - User mailing list archive at 
> > > > Nabble.com<http://nabble.com/>
> > < http://nabble.com/>
> >  > > .
> > > >
> > > >
> > > >
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
Johan, thanks, I'll tryit out and will give a feedback.

f(t)

On Jan 24, 2008 11:08 AM, Johan Maasing <[EMAIL PROTECTED]> wrote:

> In my experience (outside wicket) the content type matters to FF and
> Opera, IE mainly looks at the file ending. So make sure you set that
> to application/pdf or some similiar. Also, the content-dispostion can
> be set to "inline" instead of "attachement"
> (http://www.ietf.org/rfc/rfc1806.txt) which sometimes leads the
> browser down the path of opening the PDF in the browser window.
> However, I have noticied that you can never predict what will happen,
> new versions of acrobat plug-in and browsers can change the behaviour.
>
> 2008/1/24, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>:
> > MMmmm Could it be possible an expiration before the launch of the
> adobe
> > reader plugin for the firefox tab?
> >
> > I'll try it out.
> >
> > thanks,
> > f(t)
> >
> > On Jan 24, 2008 4:54 AM, severian <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Something like this may work for your DynamicWebResource:
> > >
> > > @Override
> > >protected void setHeaders(WebResponse response) {
> > >super.setHeaders(response);
> > >String name = getFileName();
> > >if (name != null) {
> > >response.setHeader("Content-Disposition",
> > > String.format("attachment; filename=\"%s\"", name));
> > >}
> > >
> > >// Cache for 60 secs to give client app (e.g. word or excel or
> > > acrobat) time to open file.
> > >response.setDateHeader("Expires", System.currentTimeMillis() +
> (60
> > > *
> > > 1000));
> > >response.setHeader("Cache-Control", "max-age=" + 60);
> > >}
> > > --
> > > View this message in context:
> > > http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
> > > Sent from the Wicket - User mailing list archive at 
> > > Nabble.com<http://nabble.com/>
> <http://nabble.com/>
>  > > .
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
MMmmm Could it be possible an expiration before the launch of the adobe
reader plugin for the firefox tab?

I'll try it out.

thanks,
f(t)

On Jan 24, 2008 4:54 AM, severian <[EMAIL PROTECTED]> wrote:

>
> Something like this may work for your DynamicWebResource:
>
> @Override
>protected void setHeaders(WebResponse response) {
>super.setHeaders(response);
>String name = getFileName();
>if (name != null) {
>response.setHeader("Content-Disposition",
> String.format("attachment; filename=\"%s\"", name));
>}
>
>// Cache for 60 secs to give client app (e.g. word or excel or
> acrobat) time to open file.
>response.setDateHeader("Expires", System.currentTimeMillis() + (60
> *
> 1000));
>response.setHeader("Cache-Control", "max-age=" + 60);
>}
> --
> View this message in context:
> http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
> Sent from the Wicket - User mailing list archive at 
> Nabble.com
> .
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I am not sure which headers would be necesary.

I usually set the set attachment as I said but ONLY FOR FIREFOX. And it
WORKS FINE.

But it is not my intention. My intention is to open the pdf inside the new
created tab in the same browser.

Safari still not working.

f(t)

On Jan 23, 2008 6:29 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:

> Do not call respond() your self, set the requesttarget as the response
> rt in the request cycle.
>
> Dont know if that works but most of the time you need a name to
> download it correctly. Are alle the content headers set ok?
>
> On 1/23/08, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi it does the same behavior.
> >
> > Opens the new Tab and displays an emtpy broken content with the title in
> the
> > tab being (application/pdf Object). This is unless I put the file name.
> So I
> > have the following code now (Testing it):
> >
> >
> >   public void onSubmit() {
> > Resource cResource = new LcCalculationPDFWebResource();
> > //cResource.onResourceRequested();
> > ResourceStreamRequestTarget cTarget = new
> > ResourceStreamRequestTarget(cResource.getResourceStream());
> >
> > if (!((WebClientInfo)
> >
> getSession().getClientInfo()).getProperties().isBrowserInternetExplorer()) {
> >cTarget.setFileName("Argo.pdf");
> > }
> >
> > cTarget.respond(getRequestCycle());
> >
> >   }
> >
> >
> > Safari still crashes.
> >
> > The onSubmit is still the one in the MyForm.
> >
> > f(t)
> >
> >
> > On Jan 23, 2008 5:37 PM, Francisco Diaz Trepat - gmail <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Hi Johan, thanks.
> > >
> > > We are actually doing the target _blank.
> > >
> > > I'm gonna check resourestreamrequesttarget out to see.
> > >
> > > I have a small work arround for Firefox only (remember it works fine
> on
> > > IE, and does not on Safari & Firefox)
> > >
> > > which is setting the header Content-Disposition with the
> > > setAttachment(String fileName) method.
> > >
> > > I'll let you know about the resourestreamrequesttarget.
> > >
> > > f(t)
> > >
> > >   On Jan 23, 2008 5:22 PM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
> > >
> > > > First of all dont do directly onresourcerequest in the on submit but
> > > > use the resourestreamrequesttarget or something like that.
> > > >
> > > > If you want tro keep the current html you could submit to a new
> target
> > > > window?
> > > > I guess you could also play with http headers so that the browser
> > > > knows what it get and should do
> > > >
> > > > On 1/23/08, Francisco Diaz Trepat - gmail
> > > >  <[EMAIL PROTECTED]> wrote:
> > > > > Hi all, I am having some problems dealing with PDFs.
> > > > >
> > > > > 1) I have DynamicWebResource (MyPdfDynamicWebResource) that
> overrides
> > > > the
> > > > > getResourceState() method as follows.
> > > > >
> > > > >
> > > > >   protected ResourceState getResourceState() {
> > > > >  return new ResourceState() {
> > > > > protected byte[] myPDF;
> > > > >
> > > > > public String getContentType() {
> > > > >return "application/pdf";
> > > > > }
> > > > >
> > > > > public Time lastModifiedTime() {
> > > > >return Time.now();
> > > > > }
> > > > >
> > > > > public byte[] getData() {
> > > > >return basicGetData();
> > > > > }
> > > > >
> > > > > protected synchronized byte[] basicGetData() {
> > > > >if (myPDF== null) {
> > > > >   myPDF = generatePDF();
> > > > >}
> > > > >return myPDF;
> > > > > }
> > > > >
> > > > > public int getLength() {
> > > > >   return basicGetData().length;
> > > > > }
> > > > >
> > > > &g

Re: Hi, PDF Question

2008-01-23 Thread Francisco Diaz Trepat - gmail
Hi it does the same behavior.

Opens the new Tab and displays an emtpy broken content with the title in the
tab being (application/pdf Object). This is unless I put the file name. So I
have the following code now (Testing it):


  public void onSubmit() {
Resource cResource = new LcCalculationPDFWebResource();
//cResource.onResourceRequested();
ResourceStreamRequestTarget cTarget = new
ResourceStreamRequestTarget(cResource.getResourceStream());

if (!((WebClientInfo)
getSession().getClientInfo()).getProperties().isBrowserInternetExplorer()) {
   cTarget.setFileName("Argo.pdf");
}

cTarget.respond(getRequestCycle());

  }


Safari still crashes.

The onSubmit is still the one in the MyForm.

f(t)


On Jan 23, 2008 5:37 PM, Francisco Diaz Trepat - gmail <
[EMAIL PROTECTED]> wrote:

> Hi Johan, thanks.
>
> We are actually doing the target _blank.
>
> I'm gonna check resourestreamrequesttarget out to see.
>
> I have a small work arround for Firefox only (remember it works fine on
> IE, and does not on Safari & Firefox)
>
> which is setting the header Content-Disposition with the
> setAttachment(String fileName) method.
>
> I'll let you know about the resourestreamrequesttarget.
>
> f(t)
>
>   On Jan 23, 2008 5:22 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> > First of all dont do directly onresourcerequest in the on submit but
> > use the resourestreamrequesttarget or something like that.
> >
> > If you want tro keep the current html you could submit to a new target
> > window?
> > I guess you could also play with http headers so that the browser
> > knows what it get and should do
> >
> > On 1/23/08, Francisco Diaz Trepat - gmail
> >  <[EMAIL PROTECTED]> wrote:
> > > Hi all, I am having some problems dealing with PDFs.
> > >
> > > 1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides
> > the
> > > getResourceState() method as follows.
> > >
> > >
> > >   protected ResourceState getResourceState() {
> > >  return new ResourceState() {
> > > protected byte[] myPDF;
> > >
> > > public String getContentType() {
> > >return "application/pdf";
> > > }
> > >
> > > public Time lastModifiedTime() {
> > >return Time.now();
> > > }
> > >
> > > public byte[] getData() {
> > >return basicGetData();
> > > }
> > >
> > > protected synchronized byte[] basicGetData() {
> > >if (myPDF== null) {
> > >   myPDF = generatePDF();
> > >}
> > >return myPDF;
> > > }
> > >
> > > public int getLength() {
> > >   return basicGetData().length;
> > > }
> > >
> > >  };
> > >   }
> > >
> > > 2) I have a MyForm extension (simple) that has the following
> > onSubmit()
> > > code:
> > >
> > >  public void onSubmit() {
> > > Resource cResource = new MyPdfDynamicWebResource();
> > > cResource.onResourceRequested();
> > >   }
> > >
> > > 3) Saddly )*This works perfect on IE 7, but does not work on Firefox
> > and
> > > Safari.*
> > >
> > > My goals:
> > >
> > > 1) Open the PDF file in a new window for the purpose of NOT losing the
> > User
> > > input data on the form and the page that the user was on.
> > >
> > > 2) The opening of the PDF inside the browser is kind of optional.
> > >
> > >
> > > Hopefully you'll be able to help me,
> > >
> > > cheers,
> > >
> > > f(t)
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Hi, PDF Question

2008-01-23 Thread Francisco Diaz Trepat - gmail
Hi Johan, thanks.

We are actually doing the target _blank.

I'm gonna check resourestreamrequesttarget out to see.

I have a small work arround for Firefox only (remember it works fine on IE,
and does not on Safari & Firefox)

which is setting the header Content-Disposition with the
setAttachment(String fileName) method.

I'll let you know about the resourestreamrequesttarget.

f(t)

On Jan 23, 2008 5:22 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:

> First of all dont do directly onresourcerequest in the on submit but
> use the resourestreamrequesttarget or something like that.
>
> If you want tro keep the current html you could submit to a new target
> window?
> I guess you could also play with http headers so that the browser
> knows what it get and should do
>
> On 1/23/08, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > Hi all, I am having some problems dealing with PDFs.
> >
> > 1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides
> the
> > getResourceState() method as follows.
> >
> >
> >   protected ResourceState getResourceState() {
> >  return new ResourceState() {
> > protected byte[] myPDF;
> >
> > public String getContentType() {
> >return "application/pdf";
> > }
> >
> > public Time lastModifiedTime() {
> >return Time.now();
> > }
> >
> > public byte[] getData() {
> >return basicGetData();
> > }
> >
> > protected synchronized byte[] basicGetData() {
> >if (myPDF== null) {
> >   myPDF = generatePDF();
> >}
> >return myPDF;
> > }
> >
> > public int getLength() {
> >   return basicGetData().length;
> > }
> >
> >  };
> >   }
> >
> > 2) I have a MyForm extension (simple) that has the following onSubmit()
> > code:
> >
> >  public void onSubmit() {
> > Resource cResource = new MyPdfDynamicWebResource();
> > cResource.onResourceRequested();
> >   }
> >
> > 3) Saddly )*This works perfect on IE 7, but does not work on Firefox and
> > Safari.*
> >
> > My goals:
> >
> > 1) Open the PDF file in a new window for the purpose of NOT losing the
> User
> > input data on the form and the page that the user was on.
> >
> > 2) The opening of the PDF inside the browser is kind of optional.
> >
> >
> > Hopefully you'll be able to help me,
> >
> > cheers,
> >
> > f(t)
> >
>
> --
> Sent from Gmail for mobile | mobile.google.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Hi, PDF Question

2008-01-23 Thread Francisco Diaz Trepat - gmail
Hi all, I am having some problems dealing with PDFs.

1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides the
getResourceState() method as follows.


  protected ResourceState getResourceState() {
 return new ResourceState() {
protected byte[] myPDF;

public String getContentType() {
   return "application/pdf";
}

public Time lastModifiedTime() {
   return Time.now();
}

public byte[] getData() {
   return basicGetData();
}

protected synchronized byte[] basicGetData() {
   if (myPDF== null) {
  myPDF = generatePDF();
   }
   return myPDF;
}

public int getLength() {
  return basicGetData().length;
}

 };
  }

2) I have a MyForm extension (simple) that has the following onSubmit()
code:

 public void onSubmit() {
Resource cResource = new MyPdfDynamicWebResource();
cResource.onResourceRequested();
  }

3) Saddly )*This works perfect on IE 7, but does not work on Firefox and
Safari.*

My goals:

1) Open the PDF file in a new window for the purpose of NOT losing the User
input data on the form and the page that the user was on.

2) The opening of the PDF inside the browser is kind of optional.


Hopefully you'll be able to help me,

cheers,

f(t)


Re: Happy new year list!

2007-12-31 Thread Francisco Diaz Trepat - gmail
Happy NEW YEAR 2008 WICKET

f(t)

On Jan 1, 2008 1:02 AM, Jörgen Persson <[EMAIL PROTECTED]> wrote:

> Regards,
>
> Jörgen
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [OT] Merry Christmas to the wicket community

2007-12-23 Thread Francisco Diaz Trepat - gmail
Thanks,
Happy Holidays.

f(t)

On Dec 22, 2007 4:09 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote:

>
>
> You're welcome.
>
>
> Newgro wrote:
> >
> > I had alot fun with you this year. Wicket seems to become a real
> important
> > framework (Maybe it is already :-). I'm new to web-development and i
> tried
> > a
> > bit with jsf, jsp, and and and. But since i found wicket, it's realy fun
> > to
> > create webapplications.
> >
> > All i want to say is - thanks to everyone who helped us out from the
> wood.
> > This project is one of the best managed and supported one i saw until
> now.
> > I
> > hope you all have a busy santa and a happy new year.
> >
> > CU next year
> > Per
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-OT--Merry-Christmas-to-the-wicket-community-tp14460734p14466988.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wicket really dumb? Converting & to & in password fields?

2007-12-21 Thread Francisco Diaz Trepat - gmail
Although I think you didn't angered the masses. We don't like to miss the
oportunity to support Wicket and its community of users and developers.

:-)

Any oportunity ;-)

f(t)

On Dec 21, 2007 3:54 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> pretty hard to misunderstand "Wicket really dumb?" :)
>
> -igor
>
>
> On Dec 21, 2007 10:49 AM, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > Misunderstandings happen eventually, but Wicket RULEZ, and its community
> > too.
> >
> > :-)
> >
> > my2cents,
> > f(t)
> >
> > On Dec 21, 2007 3:40 PM, Sergey Podatelev <[EMAIL PROTECTED]>
> > wrote:
> >
> >
> > > I love the way Wicket community handles such offences :).
> > >
> > > --
> > > sp
> > >
> >
>
>  -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wicket really dumb? Converting & to & in password fields?

2007-12-21 Thread Francisco Diaz Trepat - gmail
Misunderstandings happen eventually, but Wicket RULEZ, and its community
too.

:-)

my2cents,
f(t)

On Dec 21, 2007 3:40 PM, Sergey Podatelev <[EMAIL PROTECTED]>
wrote:

> I love the way Wicket community handles such offences :).
>
> --
> sp
>


Re: Wicket really dumb? Converting & to & in password fields?

2007-12-21 Thread Francisco Diaz Trepat - gmail
right



On Dec 21, 2007 3:36 PM, Per Newgro <[EMAIL PROTECTED]> wrote:

> Hmm, strange tone to get an answer for.
>
> Cheers
> Per
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Using the tags

2007-12-06 Thread Francisco Diaz Trepat - gmail
thx

On Dec 5, 2007 3:59 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> see (Simple)FormComponentLabel
>
> -igor
>
>
> On Dec 5, 2007 10:57 AM, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > Hi I wish to add  tag to my form and put some styling on it.
> >
> > Is there a wicket side version of it?
> >
> > What would be the best way of using it?
> >
> > For instance,  tag has the for attribute, which should hold the
> id of
> > the form component that it is asociated with. How can I render it from
> > wicket?
> >
> > Can I use a WebMarkupContainer and an AttributeModifier?
> >
> > what would be a wicket way of handling form with  etc?
> >
> >
> > Thanks,
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Using the tags

2007-12-05 Thread Francisco Diaz Trepat - gmail
Hi I wish to add  tag to my form and put some styling on it.

Is there a wicket side version of it?

What would be the best way of using it?

For instance,  tag has the for attribute, which should hold the id of
the form component that it is asociated with. How can I render it from
wicket?

Can I use a WebMarkupContainer and an AttributeModifier?

what would be a wicket way of handling form with  etc?


Thanks,
f(t)


Re: Downloading Files Aproaches

2007-11-23 Thread Francisco Diaz Trepat - gmail
more please?

On Nov 23, 2007 5:38 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> it can be a callback url, just like how Link works...
>
> -igor
>
>
> On Nov 23, 2007 12:36 PM, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > the window.location=downloadurl would indicate a previously existing
> file.
> >
> > but I don't have the file.
> >
> > I can call calculate() (returns a map) and/or calculatePdf() (returns a
> > base64 encoded pdf).
> >
> > It would be nice not to write the file on the server.
> >
> > Also, wouldn't window.location change the current view from a web page
> to a
> > pdf? That is not desired.
> >
> > f(t)
> >
> >
> >
> >
> > On Nov 23, 2007 5:05 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > refresh the components like you usually would and then add javascript
> > > that does window.location=downloadurl
> > >
> > > -igor
> > >
> > >
> > > On Nov 23, 2007 7:28 AM, Francisco Diaz Trepat - gmail
> > >  <[EMAIL PROTECTED]> wrote:
> > > > Thanks but, It seams I need a bit more help.
> > > >
> > > > This was the original mail:
> > > >
> > > >
> > >
> --
> > > > Hi
> > > >
> > > > I have a forms that performs a calculation and shows the result, all
> > > done by
> > > > an ajax form.
> > > >
> > > > I have an ajax link that has to return a PDF, but also "refresh" the
> > > results
> > > > or execute the ajax form submit.
> > > >
> > > > Also if the form proces fails for a validation (eg. empty field)
> then I
> > > > should show the validation messages in my feedback panel, and do not
> > > process
> > > > de pdf for download.
> > > >
> > > > Anyone?
> > > >
> > > > thanks,
> > > >
> > > > f(t)
> > > >
> > >
> --
> > > > Is there any articles, Documentation Links?
> > > >
> > > > I know about DownloadLink, I don't know how to resolve the form
> submit,
> > > the
> > > > result label's refresh, and the canceling of the download if the
> form
> > > submit
> > > > fails.
> > > >
> > > > We have this working with decorators, but what the approach was to
> put a
> > > new
> > > > form with target new to have a submit of another form on a new page
> and
> > > have
> > > > that download the PDF version of the results that were calculated.
> > > >
> > > > I didn't think this approach look so neat, so I try to find
> information
> > > on
> > > > the list and on the web. I found Fanton's mail on the list but he
> didn't
> > > saw
> > > > the mail I sent him or didn't answer.
> > > >
> > > > So, although I have everything "working" I would like a better more
> > > wicket
> > > > like approach of solving this.
> > > >
> > > > It is a very simple scenario, a calculator form, submits via AJAX
> and
> > > has
> > > > some labels show the result. On the right side of the submit button
> > > there is
> > > > a link that says PDF Result, which needs to send the calculator the
> > > Input
> > > > Data and Calculate on a function that returns a pdf instead of a
> result
> > > map,
> > > > and then returned it to the browser, without replacing the current
> view.
> > > >
> > > > Thanks,
> > > > f(t)
> > > >
> > > >
> > > > On Nov 23, 2007 12:44 AM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > DownloadLink ?
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > > On Nov 22, 2007 11:30 AM, Francisco Diaz Trepat - gmail
> > > > >  <[EMAIL PROTECTED]> wrote:
> > > > > > Hi could someone guide me a bit on where can I find information
> on
> > > ways
> > > > > to
> > > > > > Download Files.
> > > > > >
> > > > > > Specially AJAX ways.
> > > > > >
> > > > > > Sorry to be so insistent (3rd mail) on the subject but I found
> it to
> > > be
> > > > > > difficult to research.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > f(t)
> > > > > >
> > > > >
> > > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Downloading Files Aproaches

2007-11-23 Thread Francisco Diaz Trepat - gmail
the window.location=downloadurl would indicate a previously existing file.

but I don't have the file.

I can call calculate() (returns a map) and/or calculatePdf() (returns a
base64 encoded pdf).

It would be nice not to write the file on the server.

Also, wouldn't window.location change the current view from a web page to a
pdf? That is not desired.

f(t)



On Nov 23, 2007 5:05 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> refresh the components like you usually would and then add javascript
> that does window.location=downloadurl
>
> -igor
>
>
> On Nov 23, 2007 7:28 AM, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > Thanks but, It seams I need a bit more help.
> >
> > This was the original mail:
> >
> >
> --
> > Hi
> >
> > I have a forms that performs a calculation and shows the result, all
> done by
> > an ajax form.
> >
> > I have an ajax link that has to return a PDF, but also "refresh" the
> results
> > or execute the ajax form submit.
> >
> > Also if the form proces fails for a validation (eg. empty field) then I
> > should show the validation messages in my feedback panel, and do not
> process
> > de pdf for download.
> >
> > Anyone?
> >
> > thanks,
> >
> > f(t)
> >
> --
> > Is there any articles, Documentation Links?
> >
> > I know about DownloadLink, I don't know how to resolve the form submit,
> the
> > result label's refresh, and the canceling of the download if the form
> submit
> > fails.
> >
> > We have this working with decorators, but what the approach was to put a
> new
> > form with target new to have a submit of another form on a new page and
> have
> > that download the PDF version of the results that were calculated.
> >
> > I didn't think this approach look so neat, so I try to find information
> on
> > the list and on the web. I found Fanton's mail on the list but he didn't
> saw
> > the mail I sent him or didn't answer.
> >
> > So, although I have everything "working" I would like a better more
> wicket
> > like approach of solving this.
> >
> > It is a very simple scenario, a calculator form, submits via AJAX and
> has
> > some labels show the result. On the right side of the submit button
> there is
> > a link that says PDF Result, which needs to send the calculator the
> Input
> > Data and Calculate on a function that returns a pdf instead of a result
> map,
> > and then returned it to the browser, without replacing the current view.
> >
> > Thanks,
> > f(t)
> >
> >
> > On Nov 23, 2007 12:44 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > DownloadLink ?
> > >
> > > -igor
> > >
> > >
> > > On Nov 22, 2007 11:30 AM, Francisco Diaz Trepat - gmail
> > >  <[EMAIL PROTECTED]> wrote:
> > > > Hi could someone guide me a bit on where can I find information on
> ways
> > > to
> > > > Download Files.
> > > >
> > > > Specially AJAX ways.
> > > >
> > > > Sorry to be so insistent (3rd mail) on the subject but I found it to
> be
> > > > difficult to research.
> > > >
> > > > Thanks,
> > > >
> > > > f(t)
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Downloading Files Aproaches

2007-11-23 Thread Francisco Diaz Trepat - gmail
Thanks but, It seams I need a bit more help.

This was the original mail:

--
Hi

I have a forms that performs a calculation and shows the result, all done by
an ajax form.

I have an ajax link that has to return a PDF, but also "refresh" the results
or execute the ajax form submit.

Also if the form proces fails for a validation (eg. empty field) then I
should show the validation messages in my feedback panel, and do not process
de pdf for download.

Anyone?

thanks,

f(t)
--
Is there any articles, Documentation Links?

I know about DownloadLink, I don't know how to resolve the form submit, the
result label's refresh, and the canceling of the download if the form submit
fails.

We have this working with decorators, but what the approach was to put a new
form with target new to have a submit of another form on a new page and have
that download the PDF version of the results that were calculated.

I didn't think this approach look so neat, so I try to find information on
the list and on the web. I found Fanton's mail on the list but he didn't saw
the mail I sent him or didn't answer.

So, although I have everything "working" I would like a better more wicket
like approach of solving this.

It is a very simple scenario, a calculator form, submits via AJAX and has
some labels show the result. On the right side of the submit button there is
a link that says PDF Result, which needs to send the calculator the Input
Data and Calculate on a function that returns a pdf instead of a result map,
and then returned it to the browser, without replacing the current view.

Thanks,
f(t)

On Nov 23, 2007 12:44 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> DownloadLink ?
>
> -igor
>
>
> On Nov 22, 2007 11:30 AM, Francisco Diaz Trepat - gmail
>  <[EMAIL PROTECTED]> wrote:
> > Hi could someone guide me a bit on where can I find information on ways
> to
> > Download Files.
> >
> > Specially AJAX ways.
> >
> > Sorry to be so insistent (3rd mail) on the subject but I found it to be
> > difficult to research.
> >
> > Thanks,
> >
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Downloading Files Aproaches

2007-11-22 Thread Francisco Diaz Trepat - gmail
Hi could someone guide me a bit on where can I find information on ways to
Download Files.

Specially AJAX ways.

Sorry to be so insistent (3rd mail) on the subject but I found it to be
difficult to research.

Thanks,

f(t)


Ajax File Download with Form Process and Result Refresh

2007-11-22 Thread Francisco Diaz Trepat - gmail
Hi

I have a forms that performs a calculation and shows the result, all done by
an ajax form.

I have an ajax link that has to return a PDF, but also "refresh" the results
or execute the ajax form submit.

Also if the form proces fails for a validation (eg. empty field) then I
should show the validation messages in my feedback panel, and do not process
de pdf for download.


Anyone?

thanks,

f(t)


Re: File download and page refresh

2007-11-21 Thread Francisco Diaz Trepat - gmail
Hi Federico, could you or anyone tell me how to do the "meta refresh
pointing to a file".

You see I have a forms that performs a calculation and shows the result, all
done by an ajax form.

I have an ajax link that has to return a PDF, but also "refresh" the results
or execute the ajax form submit.

Anyone?

thanks,
f(t)

On Oct 19, 2007 3:45 AM, Federico Fanton <[EMAIL PROTECTED]> wrote:

> On Thu, 18 Oct 2007 10:04:17 -0700
> "Igor Vaynberg" <[EMAIL PROTECTED]> wrote:
>
> > you can redirect to a page that has a meta refresh pointing to a file...
>
> I'll try that, thanks! :)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
Bolshoi Spasiba Gaspadin



On Nov 12, 2007 5:11 PM, Dmitry Kandalov <[EMAIL PROTECTED]> wrote:

>  On Monday 12 November 2007 23:40:51 Francisco Diaz Trepat - gmail wrote:
> > Hi, I have a Label who's model maight come with markup for bold italic,
> > bullets, etc. (e.g. "This is a Message")
> >
> > Obviously I get "This is a Message" rendered.
> >
> > Is there a way to get the label to render:
> >
> > "*This* is a *Message*"
>
> Hm.. just in case you wanted label look bold and italic you can use
> label.setEscapeModelStrings(false)
>
>
> Dima
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
It seams the formatted message I set didn't show well.

I want to (as the subject says) Render HTML content from the String.

Is there a way to get the label to render:

"*This* is a *Message*" [this line here and in the original message is
formatted with bold and italics]

On Nov 12, 2007 5:02 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:

> Hehe, nasty! :-)
>
> I suggest doing it in one replaceAll though:
>
> text.replaceAll("<[^>]*>", "*")
>
> This has the added benefit of correctly treating unexpected and as yet
> unknown tags, and thus is more future proof!
>
> Regards,
> Sebastiaan
>
> Martijn Dashorst wrote:
> > this should get what you want:
> > add(new Label("foo", text.replaceAll("", "*")
> >     .replaceAll("", "*")
> > .replaceAll("", "*")
> > .replaceAll("", "*")));
> >
> > Martijn
> >
> > On 11/12/07, Francisco Diaz Trepat - gmail
> > <[EMAIL PROTECTED]> wrote:
> >> Hi, I have a Label who's model maight come with markup for bold italic,
> >> bullets, etc. (e.g. "This is a Message")
> >>
> >> Obviously I get "This is a Message" rendered.
> >>
> >> Is there a way to get the label to render:
> >>
> >> "*This* is a *Message*"
> >>
> >> thanks,
> >> f(t)
> >>
> >
> >
>


Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
Hi, I have a Label who's model maight come with markup for bold italic,
bullets, etc. (e.g. "This is a Message")

Obviously I get "This is a Message" rendered.

Is there a way to get the label to render:

"*This* is a *Message*"

thanks,
f(t)


Re: ResourceReference with locale and style, for CSSs

2007-11-10 Thread Francisco Diaz Trepat - gmail
no problem.
:-)
f(t)

ps: even from my cel, on a date, saturday night, sad... :-)

On 11/10/07, German Morales <[EMAIL PROTECTED]> wrote:
> Ok, please give me some time, i will ask someone (who is reading) with
> Netbeans 6 already installed to help me produce a quickstart.
>
> Anyway, i insist that now is all working for me, just that it is strange
> that it generates the HTML referencing the CSS with full locale and style,
> and then when the browser ask for the file, it seems that in that moment
> the look up is done and the correct available file is found. Perhaps
> that's the way it is supposed to work?
>
> German
>
> It seems that Johan Compagner wrote:
> > can you make a test case for this and attach it to an issue in your jira?
> >
> > I did fix something in RC1 but i don't know if your case is fixed
> >
> > The problem is that when you get or generate an url from a
> > ResourceReference
> > first bind() should be called. If that is then a PackageResource then the
> > ResourceReference
> > should get the locale of the PackageResource but i see that there could be
> > some issues with that.
> >
> > But what doesn't happen is that the headerresponse doesn't call bind() for
> > us when you add a resource reference
> > that should also be fixed
> >
> > johan
> >
> > On Nov 9, 2007 5:54 PM, German Morales <[EMAIL PROTECTED]>
> > wrote:
> >
> >> 1.3.0 beta 4
> >>
> >> It seems that Johan Compagner wrote:
> >> > I think i asked this before, but what version of wicket??
> >> >
> >> > Normally (in the current wicket 1.3 buids) a ResourceReference to a
> >> > PackageResource will fallback to the real locale the PackageResource
> >> is
> >> > loaded
> >> > from after the ResourceReference is binded.
> >> >
> >> > johan
> >> >
> >> > On Nov 9, 2007 3:34 PM, German Morales <[EMAIL PROTECTED]>
> >> > wrote:
> >> >
> >> >> Yes, at least that's what i see when i ask Firefox to show me the
> >> source
> >> >> of the page.
> >> >>
> >> >> It seems that Johan Compagner wrote:
> >> >> > But even with bind() it still shows you the locale in the url?
> >> >> >
> >> >> > On Nov 9, 2007 3:22 PM, German Morales
> >> <[EMAIL PROTECTED]>
> >> >> > wrote:
> >> >> >
> >> >> >> Hi again,
> >> >> >>
> >> >> >> With your solution, the generated HTML now looks this way:
> >> >> >>
> >> >> >>  >> >> >> href="resources/path.to.mypage.MyPage/style_mystyle_mylocale.css"
> >> />
> >> >> >>
> >> >> >> i don't have style_mystyle_mylocale.css, but only
> >> style_mystyle.css
> >> >> >>
> >> >> >> But it works!
> >> >> >>
> >> >> >> So it seems that wicket later (when the browser asks for the css)
> >> >> makes
> >> >> >> the corresponding look up.
> >> >> >>
> >> >> >> Thanks a lot!
> >> >> >>
> >> >> >> German
> >> >> >>
> >> >> >> PS: just for the record (if someone reads this later), there was a
> >> >> easy
> >> >> >> typo in the code below. It should be Application.get() and not
> >> >> >> Application.bind().
> >> >> >>
> >> >> >> It seems that Johan Compagner wrote:
> >> >> >> > no as i said before
> >> >> >> > you have to create the resourcereference with the locale and the
> >> >> >> style.
> >> >> >> > Those are not automatically picked up from the session. If you
> >> >> don't
> >> >> >> give
> >> >> >> > them in the constructor
> >> >> >> > then both are just null
> >> >> >> >
> >> >> >> > What you could do is this:
> >> >> >> >
> >> >> >> > ResourceReference reference = new
> >> ResourceReference(MyPage.class,
> >> >> >> > "style.css",
> >> >> >> > locale,style);
> >> >> >> > reference.bind(Application.bind());
> >> >> >> > cResponse.getHeaderResponse().renderCSSReference(reference);
> >> >> >> > johan
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Nov 9, 2007 1:55 PM, German Morales
> >> >> <[EMAIL PROTECTED]>
> >> >> >> > wrote:
> >> >> >> >
> >> >> >> >> version 1.3.0-beta4.
> >> >> >> >>
> >> >> >> >> I insist that the problem must be something different, perhaps
> >> in
> >> >> the
> >> >> >> >> way
> >> >> >> >> i pretend it to work. I know about the ResourceStreamLocator,
> >> and
> >> >> as
> >> >> >> i
> >> >> >> >> tell it works perfectly for the HTML. The difference is that
> >> from
> >> >> my
> >> >> >> >> class
> >> >> >> >> the framework looks automatically for the corresponding HTML,
> >> but
> >> >> how
> >> >> >> >> should it work for the CSS?
> >> >> >> >>
> >> >> >> >> Should i declare it in the code?
> >> >> >> >>
> >> >> >> >>   // on renderHead
> >> >> >> >>   cResponse.getHeaderResponse().renderCSSReference(new
> >> >> >> >> ResourceReference(MyPage.class, "style.css"));
> >> >> >> >>
> >> >> >> >> or how?
> >> >> >> >>
> >> >> >> >> What i'm doing is very simple... i'm forcing (for testing) a
> >> call
> >> >> to
> >> >> >> >> Session.setStyle("whatever"), then i have MyPage.html and
> >> >> >> >> MyPage_whatever.html (which works fine) and then style.css and
> >> >> >> >> style_whatever.css (which i expect to be used thanks to the
> >> code
> >> >> >> above).
> >> >> >> >>
> >> >> >> >> But wh

Disable Ajax Buttons/Links while a in request progress

2007-11-05 Thread Francisco Diaz Trepat - gmail
Hi, I wish to discuss best practices for disabling an AjaxLink and a
AjaxButton while a previous request is being process.

f(t)


Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-11-02 Thread Francisco Diaz Trepat - gmail
Great.

On 11/2/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Thanks, I've assigned the issue to me, will look at it as soon as I have
> time.
>
> -Matej
>
> On 11/1/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Done, I reported the issue. Attached the Ziped QuickStart and added the
> FIX
> > or a Fix in the form of a Comment.
> >
> > Please let me know as I might done something incorrectly like filling
> the
> > correct values for the properties of the Issue. Example: it is not
> major, it
> > is minor. things like that.
> >
> >
> > f(t)
> >
> >
> > On 11/1/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > >
> > > Yeah, that would work.
> > >
> > > Cheers,
> > > -Matej
> > >
> > > On 11/1/07, Francisco Diaz Trepat - gmail
> > > <[EMAIL PROTECTED]> wrote:
> > > > Matej I've got the QuickStart. I've loaded it with Netbeans 6 beta 2
> > > with
> > > > the maven plugin. Everything compiled and ran perfectly.
> > > >
> > > > I added the panels that show the issue.
> > > >
> > > > Now what?
> > > >
> > > > Do I Zip the root project folder with all inside and attach it to a
> > > JIRA?
> > > >
> > > > thanks,
> > > >
> > > > f(t)
> > > >
> > > >
> > > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Well, it's the last resort for you, but first resort for me :)
> > > > > Issues that are easily reproduce (quickstart) can expect to be
> > > > > resolved sooner, that's how it works.
> > > > >
> > > > > -Matej
> > > > >
> > > > > On 10/31/07, Francisco Diaz Trepat - gmail
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Ok I wanted to leave the QuickStart the last resort.
> > > > > >
> > > > > > I'll get right on it. Jira + QuickStart.
> > > > > >
> > > > > > We must all contribute.
> > > > > >
> > > > > > :-)
> > > > > >
> > > > > > f(t)
> > > > > >
> > > > > >
> > > > > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > So even better than html page would be a quickstart attched to
> > > jira
> > > > > > > issue that you create about this problem :-)
> > > > > > >
> > > > > > > Cheers,
> > > > > > > -Matej
> > > > > > >
> > > > > > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I got your point. But I need a complete html file to be able
> to
> > > > > > > > reproduce it with as little effort as possible :) My time is
> > > quite
> > > > > > > > limited lately :(
> > > > > > > >
> > > > > > > > I don't mind fixing this in wicket, but I need to make sure
> that
> > > > > this
> > > > > > > > is the right fix and has no side-effect.
> > > > > > > >
> > > > > > > > -Matej
> > > > > > > >
> > > > > > > > On 10/31/07, Francisco Diaz Trepat - gmail
> > > > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > > > Hi Matej. Have you read the the forwarded part of the last
> > > > > message?
> > > > > > > > >
> > > > > > > > > Because that is where I explained the behavior. Basically
> in
> > > > > Firefox
> > > > > > > if I
> > > > > > > > > replace a panel with two subpanels the second subpanel
> doesn't
> > > get
> > > > > > > replaced.
> > > > > > > > > Please check out the message bellow, the one I forwarded.
> > > > > > > > >
> > > > > > > > > If you see the org/apache/wicket/ajax/wicket-ajax.js in
> > > > > > > > > wicket-1.3.0-beta4.jar. You will see the code for the *
> &

Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-11-01 Thread Francisco Diaz Trepat - gmail
Done, I reported the issue. Attached the Ziped QuickStart and added the FIX
or a Fix in the form of a Comment.

Please let me know as I might done something incorrectly like filling the
correct values for the properties of the Issue. Example: it is not major, it
is minor. things like that.


f(t)


On 11/1/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Yeah, that would work.
>
> Cheers,
> -Matej
>
> On 11/1/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Matej I've got the QuickStart. I've loaded it with Netbeans 6 beta 2
> with
> > the maven plugin. Everything compiled and ran perfectly.
> >
> > I added the panels that show the issue.
> >
> > Now what?
> >
> > Do I Zip the root project folder with all inside and attach it to a
> JIRA?
> >
> > thanks,
> >
> > f(t)
> >
> >
> > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > >
> > > Well, it's the last resort for you, but first resort for me :)
> > > Issues that are easily reproduce (quickstart) can expect to be
> > > resolved sooner, that's how it works.
> > >
> > > -Matej
> > >
> > > On 10/31/07, Francisco Diaz Trepat - gmail
> > > <[EMAIL PROTECTED]> wrote:
> > > > Ok I wanted to leave the QuickStart the last resort.
> > > >
> > > > I'll get right on it. Jira + QuickStart.
> > > >
> > > > We must all contribute.
> > > >
> > > > :-)
> > > >
> > > > f(t)
> > > >
> > > >
> > > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > So even better than html page would be a quickstart attched to
> jira
> > > > > issue that you create about this problem :-)
> > > > >
> > > > > Cheers,
> > > > > -Matej
> > > > >
> > > > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I got your point. But I need a complete html file to be able to
> > > > > > reproduce it with as little effort as possible :) My time is
> quite
> > > > > > limited lately :(
> > > > > >
> > > > > > I don't mind fixing this in wicket, but I need to make sure that
> > > this
> > > > > > is the right fix and has no side-effect.
> > > > > >
> > > > > > -Matej
> > > > > >
> > > > > > On 10/31/07, Francisco Diaz Trepat - gmail
> > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > Hi Matej. Have you read the the forwarded part of the last
> > > message?
> > > > > > >
> > > > > > > Because that is where I explained the behavior. Basically in
> > > Firefox
> > > > > if I
> > > > > > > replace a panel with two subpanels the second subpanel doesn't
> get
> > > > > replaced.
> > > > > > > Please check out the message bellow, the one I forwarded.
> > > > > > >
> > > > > > > If you see the org/apache/wicket/ajax/wicket-ajax.js in
> > > > > > > wicket-1.3.0-beta4.jar. You will see the code for the *
> > > > > > > Wicket.replaceOuterHtml*
> > > > > > >
> > > > > > > In there, I understand that there are two main things going
> on:
> > > > > > >
> > > > > > > 1) There is some code that it is not used and so, in our
> version
> > > we
> > > > > > > commented it.
> > > > > > >
> > > > > > > 2) And most important, we fixed a the issue for us by moving
> the
> > > nodes
> > > > > in
> > > > > > > the tree herarchy that appears wrongly in the get *
> > > > > > > range.createContextualFragment*() function from the Gecko
> > > (firefox)
> > > > > engine.
> > > > > > > If there are many subpanels, the range uncorrectly parses the
> > > content,
> > > > > > > resulting in a fragment that contains many childs instead of
> one.
> > > > > > >
> > > > > > > The HTML is explained bellow, if that explanation fails I'll
> try
> > > to
> > > >

Re: mvn netbeans:netbeans command for QuickStart Project

2007-11-01 Thread Francisco Diaz Trepat - gmail
Great!!!

f(t)


On 11/1/07, Gwyn Evans <[EMAIL PROTECTED]> wrote:
>
> Hi Francisco,
>
> Sorry, it does appear that we got it wrong as far the the "mvn
> netbeans:netbeans" instruction goes - I've updated the website source
> (it'll sync eventually) to remove that, leaving the suggestion that,
> with NB6, the pom.xml can be opened directly.
>
> As I use IDEA and most of the other committers use Eclipse, I'm afraid
> that NetBeans behaviour doesn't seem to be something we can easily
> check!
>
> /Gwyn
>
> Thursday, November 1, 2007, 10:56:58 AM, you wrote:
>
> FDT> thanks al. i would not expect to, as so elocuently put, RTFM for
> FDT> some tool so outside wicket scope. rather wicket projects worked
> FDT> out me the box or with simpler tool such as ant. specially when
> FDT> we are trying to contribute to the cause. f(t)
>
> FDT> On 10/31/07, Al Maw <[EMAIL PROTECTED]> wrote:
> >> Francisco Diaz Trepat - gmail wrote:
> >> > Hi I just downloaded the maven 2.0.7 and ran the *mvn
> archetype:create
> >> > -DarchetypeGroupId=org.apache.wicket*
> >> >
> >> > then ran the *mvn netbeans:netbeans* inside the project to get a
> Netbeans
> >> > project. And got an error.
> >>
> >> That's because there is no such plug-in.
> >>
> >> RTFM here:
> >>
> http://maven.apache.org/guides/mini/guide-ide-netbeans/guide-ide-netbeans.html
> >>
> >> Regards,
> >>
> >> Al
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: mvn netbeans:netbeans command for QuickStart Project

2007-11-01 Thread Francisco Diaz Trepat - gmail
Martijn thanks for the tip. It worked perfectly.

f(t)


On 11/1/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:
>
> Great Martjin I'll try it out.
>
> f(t)
>
>
>  On 10/31/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> >
> > Netbeans has a module for direct maven support. I think you can
> > download it in the plugin manager (I tried it once and that worked
> > great, but I still didn't like netbeans).
> >
> > Martijn
> >
> > On 10/31/07, Francisco Diaz Trepat - gmail
> > <[EMAIL PROTECTED]> wrote:
> > > Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create
> > > -DarchetypeGroupId=org.apache.wicket*
> > >
> > > then ran the *mvn netbeans:netbeans* inside the project to get a
> > Netbeans
> > > project. And got an error.
> > >
> > > I am very new to maven and I was wondering if some one could help me
> > out.
> > >
> > > I know there is a thing going on with the netbeans plugin but how may
> > I
> > > solve it.
> > >
> > > When googled I got 3 result.
> > >
> > > f(t)
> > >
> > > *mvn netbeans:netbeans CONSOLE OUTPUT*
> > >
> > > $ mvn -e netbeans:netbeans
> > > + Error stacktraces are turned on.
> > > [INFO] Scanning for projects...
> > > [INFO] Searching repository for plugin with prefix: 'netbeans'.
> > > [INFO]
> > >
> > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> > 
> > > [INFO] The plugin 'org.apache.maven.plugins:maven-netbeans-plugin'
> > does not
> > > exist or no valid version could be found
> > > [INFO]
> > >
> > 
> > > [INFO] Trace
> > > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
> > > org.apache.maven.plugins:maven-netbeans-plugin' does
> > >  not exist or no valid version could be found
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > > DefaultLifecycleExecutor.java:1286)
> > > at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> > > DefaultLifecycleExecutor.java:1522)
> > > at
> > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> > > (DefaultLifecycleExecuto
> > > r.java:386)
> > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > (
> > > DefaultLifecycleExecutor.java:138)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :334)
> > > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java
> > :125)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke (
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > at org.codehaus.classworlds.Launcher.launchEnhanced(
> > Launcher.java
> > > :315)
> > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > at org.codehaus.classworlds.Launcher.mainWithExitCode (
> > Launcher.java
> > > :430)
> > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by:
> > org.apache.maven.plugin.version.PluginVersionNotFoundException:
> > > The plugin 'org.apache.maven.plugins:maven-ne
> > > tbeans-plugin' does not exist or no valid version could be found
> > > at
> > >
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> > > (DefaultPluginVersionManager.
> > > java:228)
> > > at
> > >
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> > > (DefaultPluginVersionManager.
> > > java:90)
> > > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin (
> > > DefaultPluginManager.java:166)
> > > at
> > org.apa

Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-11-01 Thread Francisco Diaz Trepat - gmail
Matej I've got the QuickStart. I've loaded it with Netbeans 6 beta 2 with
the maven plugin. Everything compiled and ran perfectly.

I added the panels that show the issue.

Now what?

Do I Zip the root project folder with all inside and attach it to a JIRA?

thanks,

f(t)


On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Well, it's the last resort for you, but first resort for me :)
> Issues that are easily reproduce (quickstart) can expect to be
> resolved sooner, that's how it works.
>
> -Matej
>
> On 10/31/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Ok I wanted to leave the QuickStart the last resort.
> >
> > I'll get right on it. Jira + QuickStart.
> >
> > We must all contribute.
> >
> > :-)
> >
> > f(t)
> >
> >
> > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > >
> > > So even better than html page would be a quickstart attched to jira
> > > issue that you create about this problem :-)
> > >
> > > Cheers,
> > > -Matej
> > >
> > > On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I got your point. But I need a complete html file to be able to
> > > > reproduce it with as little effort as possible :) My time is quite
> > > > limited lately :(
> > > >
> > > > I don't mind fixing this in wicket, but I need to make sure that
> this
> > > > is the right fix and has no side-effect.
> > > >
> > > > -Matej
> > > >
> > > > On 10/31/07, Francisco Diaz Trepat - gmail
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Hi Matej. Have you read the the forwarded part of the last
> message?
> > > > >
> > > > > Because that is where I explained the behavior. Basically in
> Firefox
> > > if I
> > > > > replace a panel with two subpanels the second subpanel doesn't get
> > > replaced.
> > > > > Please check out the message bellow, the one I forwarded.
> > > > >
> > > > > If you see the org/apache/wicket/ajax/wicket-ajax.js in
> > > > > wicket-1.3.0-beta4.jar. You will see the code for the *
> > > > > Wicket.replaceOuterHtml*
> > > > >
> > > > > In there, I understand that there are two main things going on:
> > > > >
> > > > > 1) There is some code that it is not used and so, in our version
> we
> > > > > commented it.
> > > > >
> > > > > 2) And most important, we fixed a the issue for us by moving the
> nodes
> > > in
> > > > > the tree herarchy that appears wrongly in the get *
> > > > > range.createContextualFragment*() function from the Gecko
> (firefox)
> > > engine.
> > > > > If there are many subpanels, the range uncorrectly parses the
> content,
> > > > > resulting in a fragment that contains many childs instead of one.
> > > > >
> > > > > The HTML is explained bellow, if that explanation fails I'll try
> to
> > > send you
> > > > > a file. ok?
> > > > >
> > > > > Our function basically call the *Wicket.replaceOuterHtml=function
> (){
> > > blah,
> > > > > blah* to replace the one in the framework with the fixed one. And
> we
> > > call
> > > > > the replacement on a window.setTimeOut() on the specific page in
> which
> > > we
> > > > > have the panel with subpanels.
> > > > >
> > > > > thanks,
> > > > >
> > > > > f(t)
> > > > >
> > > > >
> > > > >
> > > > > On 10/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Sorry, I'm not sure I follow.
> > > > > >
> > > > > > there is some code in replaceOuterHtml that seems redundant so
> it
> > > could
> > > > > > be like this:
> > > > > >
> > > > > > Wicket.replaceOuterHtml = function(element, text) {
> > > > > >
> > > > > > if (Wicket.Browser.isIE()) {
> > > > > >Wicket.replaceOuterHtmlIE(element, text);
> > > > >

Re: mvn netbeans:netbeans command for QuickStart Project

2007-11-01 Thread Francisco Diaz Trepat - gmail
Great Martjin I'll try it out.

f(t)


On 10/31/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>
> Netbeans has a module for direct maven support. I think you can
> download it in the plugin manager (I tried it once and that worked
> great, but I still didn't like netbeans).
>
> Martijn
>
> On 10/31/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create
> > -DarchetypeGroupId=org.apache.wicket*
> >
> > then ran the *mvn netbeans:netbeans* inside the project to get a
> Netbeans
> > project. And got an error.
> >
> > I am very new to maven and I was wondering if some one could help me
> out.
> >
> > I know there is a thing going on with the netbeans plugin but how may I
> > solve it.
> >
> > When googled I got 3 result.
> >
> > f(t)
> >
> > *mvn netbeans:netbeans CONSOLE OUTPUT*
> >
> > $ mvn -e netbeans:netbeans
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'netbeans'.
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] The plugin 'org.apache.maven.plugins:maven-netbeans-plugin' does
> not
> > exist or no valid version could be found
> > [INFO]
> > 
> > [INFO] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
> > org.apache.maven.plugins:maven-netbeans-plugin' does
> >  not exist or no valid version could be found
> > at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > DefaultLifecycleExecutor.java:1286)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> > DefaultLifecycleExecutor.java:1522)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> > (DefaultLifecycleExecuto
> > r.java:386)
> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > DefaultLifecycleExecutor.java:138)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :334)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> > :315)
> > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java
> > :430)
> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by:
> org.apache.maven.plugin.version.PluginVersionNotFoundException:
> > The plugin 'org.apache.maven.plugins:maven-ne
> > tbeans-plugin' does not exist or no valid version could be found
> > at
> >
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> > (DefaultPluginVersionManager.
> > java:228)
> > at
> >
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> > (DefaultPluginVersionManager.
> > java:90)
> > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> > DefaultPluginManager.java:166)
> > at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > DefaultLifecycleExecutor.java:1257)
> > ... 14 more
> > [INFO]
> > 
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Wed Oct 31 16:37:20 GMT-03:00 2007
> > [INFO] Final Memory: 1M/4M
> > [INFO]
> > 
> >
> >
> > *mvn archetype:create -DarchetypeGroupId=org.apache.wicket
> CONSOLE
> > OUTPUT*
> >
> > $ mvn archetype:create
&g

Re: mvn netbeans:netbeans command for QuickStart Project

2007-11-01 Thread Francisco Diaz Trepat - gmail
thanks al. i would not expect to, as so elocuently put, RTFM for some
tool so outside wicket scope. rather wicket projects worked out me the
box or with simpler tool such as ant.
specially when we are trying to contribute to the cause.
f(t)

On 10/31/07, Al Maw <[EMAIL PROTECTED]> wrote:
> Francisco Diaz Trepat - gmail wrote:
> > Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create
> > -DarchetypeGroupId=org.apache.wicket*
> >
> > then ran the *mvn netbeans:netbeans* inside the project to get a Netbeans
> > project. And got an error.
>
> That's because there is no such plug-in.
>
> RTFM here:
> http://maven.apache.org/guides/mini/guide-ide-netbeans/guide-ide-netbeans.html
>
> Regards,
>
> Al
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



mvn netbeans:netbeans command for QuickStart Project

2007-10-31 Thread Francisco Diaz Trepat - gmail
Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create
-DarchetypeGroupId=org.apache.wicket*

then ran the *mvn netbeans:netbeans* inside the project to get a Netbeans
project. And got an error.

I am very new to maven and I was wondering if some one could help me out.

I know there is a thing going on with the netbeans plugin but how may I
solve it.

When googled I got 3 result.

f(t)

*mvn netbeans:netbeans CONSOLE OUTPUT*

$ mvn -e netbeans:netbeans
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'netbeans'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-netbeans-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-netbeans-plugin' does
 not exist or no valid version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
(DefaultLifecycleExecuto
r.java:386)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-ne
tbeans-plugin' does not exist or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
(DefaultPluginVersionManager.
java:228)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
(DefaultPluginVersionManager.
java:90)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
DefaultPluginManager.java:166)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1257)
... 14 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Oct 31 16:37:20 GMT-03:00 2007
[INFO] Final Memory: 1M/4M
[INFO]



*mvn archetype:create -DarchetypeGroupId=org.apache.wicket CONSOLE
OUTPUT*

$ mvn archetype:create
-DarchetypeGroupId=org.apache.wicket-DarchetypeArtifactId=wicket-archetype-quickstart
-Darchety
peVersion=1.3.0-beta4
-DgroupId=ch.logismata-DartifactId=GeckoEnginePanelReplacementBug_QS
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]

[INFO] Setting property: classpath.resource.loader.class => '
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoad
er'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (c

Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-31 Thread Francisco Diaz Trepat - gmail
Ok I wanted to leave the QuickStart the last resort.

I'll get right on it. Jira + QuickStart.

We must all contribute.

:-)

f(t)


On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> So even better than html page would be a quickstart attched to jira
> issue that you create about this problem :-)
>
> Cheers,
> -Matej
>
> On 10/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I got your point. But I need a complete html file to be able to
> > reproduce it with as little effort as possible :) My time is quite
> > limited lately :(
> >
> > I don't mind fixing this in wicket, but I need to make sure that this
> > is the right fix and has no side-effect.
> >
> > -Matej
> >
> > On 10/31/07, Francisco Diaz Trepat - gmail
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Matej. Have you read the the forwarded part of the last message?
> > >
> > > Because that is where I explained the behavior. Basically in Firefox
> if I
> > > replace a panel with two subpanels the second subpanel doesn't get
> replaced.
> > > Please check out the message bellow, the one I forwarded.
> > >
> > > If you see the org/apache/wicket/ajax/wicket-ajax.js in
> > > wicket-1.3.0-beta4.jar. You will see the code for the *
> > > Wicket.replaceOuterHtml*
> > >
> > > In there, I understand that there are two main things going on:
> > >
> > > 1) There is some code that it is not used and so, in our version we
> > > commented it.
> > >
> > > 2) And most important, we fixed a the issue for us by moving the nodes
> in
> > > the tree herarchy that appears wrongly in the get *
> > > range.createContextualFragment*() function from the Gecko (firefox)
> engine.
> > > If there are many subpanels, the range uncorrectly parses the content,
> > > resulting in a fragment that contains many childs instead of one.
> > >
> > > The HTML is explained bellow, if that explanation fails I'll try to
> send you
> > > a file. ok?
> > >
> > > Our function basically call the *Wicket.replaceOuterHtml=function(){
> blah,
> > > blah* to replace the one in the framework with the fixed one. And we
> call
> > > the replacement on a window.setTimeOut() on the specific page in which
> we
> > > have the panel with subpanels.
> > >
> > > thanks,
> > >
> > > f(t)
> > >
> > >
> > >
> > > On 10/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Sorry, I'm not sure I follow.
> > > >
> > > > there is some code in replaceOuterHtml that seems redundant so it
> could
> > > > be like this:
> > > >
> > > > Wicket.replaceOuterHtml = function(element, text) {
> > > >
> > > > if (Wicket.Browser.isIE()) {
> > > >Wicket.replaceOuterHtmlIE(element, text);
> > > > } else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera())
> {
> > > >Wicket.replaceOuterHtmlSafari(element, text);
> > > > } else /* GECKO */ {
> > > >// create range and fragment
> > > > var range = element.ownerDocument.createRange();
> > > > range.selectNode(element);
> > > >var fragment = range.createContextualFragment(text);
> > > >
> > > > element.parentNode.replaceChild(fragment, element);
> > > > }
> > > > }
> > > >
> > > > Still I'm not sure what the problem is that your code solves. Can
> you
> > > > please provide me a html file where the replaceOuterHtml call fails?
> > > >
> > > > -Matej
> > > >
> > > >
> > > > Francisco Diaz Trepat - gmail  wrote / napísal(a):
> > > > > Hi a cowerker here might have found something here. We have fix
> the
> > > > issue by
> > > > > replacing the *Wicket.replaceOuterHtml* function.
> > > > >
> > > > > Could this be a BUG?
> > > > >
> > > > > I have forwarded the initial message that explains the behavior.
> > > > >
> > > > > Here is the code that fixed our problem:
> > > > >
> > > > > f(t)
> > > > >
> > > > >
> > > > >
> > > > > //
> > > > >
> > > >
> -

Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-31 Thread Francisco Diaz Trepat - gmail
Hi Matej. Have you read the the forwarded part of the last message?

Because that is where I explained the behavior. Basically in Firefox if I
replace a panel with two subpanels the second subpanel doesn't get replaced.
Please check out the message bellow, the one I forwarded.

If you see the org/apache/wicket/ajax/wicket-ajax.js in
wicket-1.3.0-beta4.jar. You will see the code for the *
Wicket.replaceOuterHtml*

In there, I understand that there are two main things going on:

1) There is some code that it is not used and so, in our version we
commented it.

2) And most important, we fixed a the issue for us by moving the nodes in
the tree herarchy that appears wrongly in the get *
range.createContextualFragment*() function from the Gecko (firefox) engine.
If there are many subpanels, the range uncorrectly parses the content,
resulting in a fragment that contains many childs instead of one.

The HTML is explained bellow, if that explanation fails I'll try to send you
a file. ok?

Our function basically call the *Wicket.replaceOuterHtml=function(){ blah,
blah* to replace the one in the framework with the fixed one. And we call
the replacement on a window.setTimeOut() on the specific page in which we
have the panel with subpanels.

thanks,

f(t)



On 10/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Sorry, I'm not sure I follow.
>
> there is some code in replaceOuterHtml that seems redundant so it could
> be like this:
>
> Wicket.replaceOuterHtml = function(element, text) {
>
> if (Wicket.Browser.isIE()) {
>Wicket.replaceOuterHtmlIE(element, text);
> } else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
>Wicket.replaceOuterHtmlSafari(element, text);
> } else /* GECKO */ {
>// create range and fragment
> var range = element.ownerDocument.createRange();
> range.selectNode(element);
>var fragment = range.createContextualFragment(text);
>
> element.parentNode.replaceChild(fragment, element);
> }
> }
>
> Still I'm not sure what the problem is that your code solves. Can you
> please provide me a html file where the replaceOuterHtml call fails?
>
> -Matej
>
>
> Francisco Diaz Trepat - gmail  wrote / napísal(a):
> > Hi a cowerker here might have found something here. We have fix the
> issue by
> > replacing the *Wicket.replaceOuterHtml* function.
> >
> > Could this be a BUG?
> >
> > I have forwarded the initial message that explains the behavior.
> >
> > Here is the code that fixed our problem:
> >
> > f(t)
> >
> >
> >
> > //
> >
> 
> > // Hack that demonstrates a possible fix for a problem with Gecko based
> > browsers.
> > // The problem happens in this line:
> > //var fragment = range.createContextualFragment(text);
> > // If there are many subpanels, the range uncorrectly parses the
> content,
> > resulting
> > // in a fragment that contains many childs instead of one.
> > // The first child is the first subpanel, and the rest are the other
> > subpanels,
> > // which are incorrectly hang at the same level as the main panel,
> instead
> > of being
> > // childs of it.
> >
> > function replaceWicketReplaceOuterHtml() {
> >   Wicket.replaceOuterHtml = function(element, text) {
> > if (Wicket.Browser.isIE()) {
> >   Wicket.replaceOuterHtmlIE(element, text);
> > } else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
> >   Wicket.replaceOuterHtmlSafari(element, text);
> > } else /* GECKO */ {
> >   // create range and fragment
> >   var range = element.ownerDocument.createRange();
> >   range.selectNode(element);
> >   var fragment = range.createContextualFragment(text);
> >
> >   // The following code seems useless, and then is commented out
> > // get the elements to be added
> > //var elements = new Array();
> > //for (var i = 0; i < fragment.childNodes.length; ++i)
> > //elements.push(fragment.childNodes[i]);
> >
> >   // move additional subnodes to the correct place in the dom
> >   if (fragment.childNodes.length > 1) {
> > // the for clause intentionally starts from 1,
> > // to fix only the wrongly hanging subnodes.
> > for (var i = 1; i < fragment.childNodes.length; ++i) {
> >   var otherNode = fragment.childNodes[i];
> >
> >   fragment.childNodes[0].childNodes[0].appendChild(otherNode);
> > }
> >   }
> >
> >   eleme

BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-30 Thread Francisco Diaz Trepat - gmail
Hi a cowerker here might have found something here. We have fix the issue by
replacing the *Wicket.replaceOuterHtml* function.

Could this be a BUG?

I have forwarded the initial message that explains the behavior.

Here is the code that fixed our problem:

f(t)



//

// Hack that demonstrates a possible fix for a problem with Gecko based
browsers.
// The problem happens in this line:
//var fragment = range.createContextualFragment(text);
// If there are many subpanels, the range uncorrectly parses the content,
resulting
// in a fragment that contains many childs instead of one.
// The first child is the first subpanel, and the rest are the other
subpanels,
// which are incorrectly hang at the same level as the main panel, instead
of being
// childs of it.

function replaceWicketReplaceOuterHtml() {
  Wicket.replaceOuterHtml = function(element, text) {
if (Wicket.Browser.isIE()) {
  Wicket.replaceOuterHtmlIE(element, text);
} else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
  Wicket.replaceOuterHtmlSafari(element, text);
} else /* GECKO */ {
  // create range and fragment
  var range = element.ownerDocument.createRange();
  range.selectNode(element);
  var fragment = range.createContextualFragment(text);

  // The following code seems useless, and then is commented out
// get the elements to be added
//var elements = new Array();
//for (var i = 0; i < fragment.childNodes.length; ++i)
//elements.push(fragment.childNodes[i]);

  // move additional subnodes to the correct place in the dom
  if (fragment.childNodes.length > 1) {
// the for clause intentionally starts from 1,
// to fix only the wrongly hanging subnodes.
for (var i = 1; i < fragment.childNodes.length; ++i) {
  var otherNode = fragment.childNodes[i];

  fragment.childNodes[0].childNodes[0].appendChild(otherNode);
}
  }

  element.parentNode.replaceChild(fragment, element);
}
  }
}

window.setTimeout(replaceWicketReplaceOuterHtml, 1000);
//



-- Forwarded message --
From: Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
Date: Oct 23, 2007 10:27 PM
Subject: Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex
Scenario)
To: users@wicket.apache.org

Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.




If everything else fails I'll provide a QuickStart.


Thanks,
f(t)

On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Can you provide a quickstart?
>
> -Matej
>
> On 10/23/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi. I'm going to try to explain the best that I can and without posting
> code
> > at first the issue that is happening.
> >
> > I have the following panels A and C. A has two instances of B nested
> inside
> > of it. C is empty:
> >
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > What happens is that on another Panel that represent the Page content,
> lets
> > call it ContentPanel I need to toggle between panels A and C with the
> click
> > of an Ajax Link.
> >
> > The first state is with panel C that it is empty (actually with lots of
> > HiddenFields, but empty visually). On click I need to Show the A panel
> that
> > has viewable content. Finally on another click I need to go back to the
> > original state of C panel.
> >
> > So far so good. The issue is as follows:
> >
> > The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6
> and 7
> > it is not an issue as everything works fine).
> >
> > What happens is that I click on the link, and panel A shows perfectly.
> But
> > when I click again to put the C panel back, the A panel gets Partially
> > removed, that is panel A's first panel B instance B1 gets removed, but
> B2 is
> > not removed and it is still visible, plus I get the C panel, as C panel
> > doesn't have viewable content it doesn't add to the visual problem.
> *Ej*:
> >
> > [
> >
> > ==PANEL-A==
> >
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > [
> > ==PANEL-C==
> > ]
> >
> >

Where do I get latest QuickStart Project?

2007-10-29 Thread Francisco Diaz Trepat - gmail
Is it the one on
http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=166850

I use beta 4, do I download that one with version 1.2.6 and replace
references?


thanks,

f(t)


Re: AutoCompleteTextField

2007-10-24 Thread Francisco Diaz Trepat - gmail
Zdrasty

This is from beta4 (I BOLDED the important stuff):

case KEY_ENTER:
 if(selected>-1){
 obj.value=getSelectedValue();
hideAutoComplete();
hidingAutocomplete=1;
 } else if (Wicket.AutoCompleteSettings.enterHidesWithNoSelection ==
true) {
hideAutoComplete();
hidingAutocomplete=1;
 }

*if(typeof objonkeydown == "function")objonkeydown();
if(typeof objonchange == "function")objonchange();*

As you can see you might put a formsubmit behavior for on key down. and
added to the Autocomplete.

There might be another easier solution. But I had to extend the current
autocomplete in the past. you might search for some archives.

soyus nerushyme

f(t)
On the JavaScript but I am not sure it will do the submit.

On 10/24/07, MarinaKasatka <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> How can make a AutoCompleteTextField react on the Enter button and submit
> the form?
>
> Как сделать чтобы AutoCompleteTextField делал submit формы только с Enter
> ?
> --
> View this message in context:
> http://www.nabble.com/AutoCompleteTextField-tf4683992.html#a13384570
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-23 Thread Francisco Diaz Trepat - gmail
Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.

If everything else fails I'll provide a QuickStart.

Thanks,
f(t)

On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Can you provide a quickstart?
>
> -Matej
>
> On 10/23/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi. I'm going to try to explain the best that I can and without posting
> code
> > at first the issue that is happening.
> >
> > I have the following panels A and C. A has two instances of B nested
> inside
> > of it. C is empty:
> >
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > What happens is that on another Panel that represent the Page content,
> lets
> > call it ContentPanel I need to toggle between panels A and C with the
> click
> > of an Ajax Link.
> >
> > The first state is with panel C that it is empty (actually with lots of
> > HiddenFields, but empty visually). On click I need to Show the A panel
> that
> > has viewable content. Finally on another click I need to go back to the
> > original state of C panel.
> >
> > So far so good. The issue is as follows:
> >
> > The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6
> and 7
> > it is not an issue as everything works fine).
> >
> > What happens is that I click on the link, and panel A shows perfectly.
> But
> > when I click again to put the C panel back, the A panel gets Partially
> > removed, that is panel A's first panel B instance B1 gets removed, but
> B2 is
> > not removed and it is still visible, plus I get the C panel, as C panel
> > doesn't have viewable content it doesn't add to the visual problem.
> *Ej*:
> >
> > [
> >
> > ==PANEL-A==
> >
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > Now If I click again, I get Panel A with "2 instances of B2" as panel B2
> was
> > not removed.
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > So and so forth every click and click, I get panel A partially removed
> and
> > when added again I have another instance of B2 as it is never removed.
> >
> >
> >
> > Any Ideas?
> >
> > thanks,
> >
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


  1   2   >