RE: [wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
Okay, I've committed my changes; they are r3303 if I remember correctly.  I
pushed it to a Maven repository that I run until I can figure out how to get
them to the wicketstuff repo (if I can, that is).  (I used the same repo to
host the jazzy plugin dependency.)

Mike

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: November 28, 2007 1:04 AM
To: users@wicket.apache.org
Subject: Re: [wicket-contrib] TinyMCE Hackery

i dont think committing changes, as long as they are basic fixes, right away
should be a problem, that is why it is in a public repo...

-igor


On Nov 27, 2007 9:09 PM, Michael Laccetti <[EMAIL PROTECTED]> wrote:
> I've done some work on the TinyMCE project to get it to compile, since 
> it currently does not do so straight out of subversion.  Two 
> questions: is it okay for me to commit the changes, and would it be 
> possible to push this to the wicketstuff Maven repo?  (If it is not, I 
> have a publically accessible repo that I can push it to, for others to 
> use.)
>
> Mike
>
>
> -
> 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: [wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Igor Vaynberg
i dont think committing changes, as long as they are basic fixes,
right away should be a problem, that is why it is in a public repo...

-igor


On Nov 27, 2007 9:09 PM, Michael Laccetti <[EMAIL PROTECTED]> wrote:
> I've done some work on the TinyMCE project to get it to compile, since it
> currently does not do so straight out of subversion.  Two questions: is it
> okay for me to commit the changes, and would it be possible to push this to
> the wicketstuff Maven repo?  (If it is not, I have a publically accessible
> repo that I can push it to, for others to use.)
>
> Mike
>
>
> -
> 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-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
I've done some work on the TinyMCE project to get it to compile, since it
currently does not do so straight out of subversion.  Two questions: is it
okay for me to commit the changes, and would it be possible to push this to
the wicketstuff Maven repo?  (If it is not, I have a publically accessible
repo that I can push it to, for others to use.)

Mike


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



Re: Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
I actually *do* have that, but this code recently went through some ...
surgery that left things in a rather sloppy state.  Clearly not the most
prize worthy section of code.  :)

On Nov 27, 2007 10:43 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:

> On Tue, 27 Nov 2007, Evan Chooly wrote:
> > So here's the skinny:  while my subclass was marked as serializable, the
> > parent class was not.  So no state from the parent class got serialized
> nor,
> > not so surprisingly, deserialized.  After adding that implements clause
> > things miraculously started working.  So a big "you idiot" for me and a
> big
> > thanks to igor for pointing me to the Objects.cloneObject() method to
> help
> > write unit tests to highlight my otherwise obvious error.
>
> In an earlier project I also made a check on the main page
> that serialised it to memory on every request in development
> mode. It might be a good idea to do something like this but
> make it check that the cloned object is equal to the
> original.
>
> Yours is a nasty case as in that serialisation seems to fail
> (or rather work in a broken way) silently.
>
> For persistent objects (you said the parent class was a
> @MappedSuperclass right?) it often makes sense to make them
> inherit or implement a common base class / interface that
> implements / extends Serializable.
>
> Best wishes,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oyhttp://www.ri.fi/ >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Timo Rantalaiho
On Tue, 27 Nov 2007, Evan Chooly wrote:
> So here's the skinny:  while my subclass was marked as serializable, the
> parent class was not.  So no state from the parent class got serialized nor,
> not so surprisingly, deserialized.  After adding that implements clause
> things miraculously started working.  So a big "you idiot" for me and a big
> thanks to igor for pointing me to the Objects.cloneObject() method to help
> write unit tests to highlight my otherwise obvious error.

In an earlier project I also made a check on the main page
that serialised it to memory on every request in development
mode. It might be a good idea to do something like this but
make it check that the cloned object is equal to the 
original.

Yours is a nasty case as in that serialisation seems to fail
(or rather work in a broken way) silently.

For persistent objects (you said the parent class was a
@MappedSuperclass right?) it often makes sense to make them
inherit or implement a common base class / interface that 
implements / extends Serializable.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



RE: replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread xiefei
Should not "Replace" mean turning 
[whatever content of old container
into 
[whatever content of new container irrelevant to 
content of old container]
?
 
And, Panel as the new container does not work either. Some code may make it 
clear.
IndexPage.java:
 
public class IndexPage extends WebPage {
public IndexPage() {WebMarkupContainer container = new 
WebMarkupContainer("container");container.add(new 
Label("nested-component", "nested-component"));
container.setOutputMarkupId(true);add(container);
add(new AjaxLink("ReplaceContainer"){@Overridepublic 
void onClick(AjaxRequestTarget target) {NewContainer 
newContainer = new NewContainer("container");
newContainer.add(new Label("new-nested-component", "new-nested-componet")); 
   newContainer.setOutputMarkupId(true);
IndexPage.this.addOrReplace(newContainer);
target.addComponent(newContainer);}});} 
   private class NewContainer extends Panel {public NewContainer(String 
id){super(id);}}}IndexPage.html:
 

   
Click me to replace the container with a 
new one. 
 
IndexPage$NewContainer.html:
 

 
When i click "ReplaceContainer" link, wicket throws exception: "close tag not 
found for tag:  ..."



> Date: Tue, 27 Nov 2007 09:46:55 -0800> From: [EMAIL PROTECTED]> To: 
> users@wicket.apache.org> Subject: Re: replacing component causes "Expected 
> close tag for xxx" Exception> > you cant replace something like:> >  wicket:id="container"> with a> label, 
> because then your markup is> >  wicket:id="inner"> and labels> do not support inner components> > 
> makes sense?> > -igor> > > On Nov 27, 2007 7:03 AM, 非 谢 <[EMAIL PROTECTED]> 
> wrote:> > hi,> >> > In wicket1.3-rc1, When I try to replace a 
> WebMarkupContainer that has nested components with another component in 
> AjaxLink.onClick, wicket says> >> > "Expected close tag for ' wicket:id="container">' Possible attempt to embed component(s) ' wicket:id="nested-component">' in the body of this component which discards 
> its body> > "> > Is this an expected result? I think the above senario is 
> quite common. Currently I am using a fragment to repr
 esent the "default" content of the container which can be replaced without any 
complaint but this feels not that natural.> >> > 
_> > Discover 
the new Windows Vista> > 
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
_
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/

Re: wicket success stories

2007-11-27 Thread Doug Leeper

I used this link to get the information

http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/Blog.html
-- 
View this message in context: 
http://www.nabble.com/wicket-success-stories-tf4877640.html#a13984347
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: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Seif
Using the org.apache.wicket.protocol.http.WicketServlet instead of the
WicketFilter generate a java.lang.StringIndexOutOfBoundsException :S

[#|2007-11-28T01:52:
19.732+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-58080-0;_RequestID=8a92eca0-68ec-40b2-8d25-59c252f70873;|ApplicationDispatcher[/TestWicket]
PWC1231: Servlet.service() for servlet HelloWorldApplication threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -9
at java.lang.String.substring(String.java:1768)
at java.lang.String.substring(String.java:1735)
at org.apache.wicket.protocol.http.WicketFilter.getRelativePath(
WicketFilter.java:399)
at org.apache.wicket.protocol.http.WicketFilter.getLastModified(
WicketFilter.java:865)
at org.apache.wicket.protocol.http.WicketServlet.getLastModified(
WicketServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:714)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(
ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(
ApplicationDispatcher.java:855)
at org.apache.catalina.core.ApplicationDispatcher.invoke(
ApplicationDispatcher.java:703)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(
ApplicationDispatcher.java:660)
at org.apache.catalina.core.ApplicationDispatcher.include(
ApplicationDispatcher.java:578)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(
JspRuntimeLibrary.java:997)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(
ApplicationFilterChain.java:411)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:290)
at org.apache.catalina.core.StandardContextValve.invokeInternal(
StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java
:270)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(
DefaultProcessorTask.java:637)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
(DefaultProcessorTask.java:813)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
DefaultReadTask.java:212)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask
(PortUnificationPipeline.java:361)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java
:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(
SSLWorkerThread.java:106)
|#]

i think wicket 1.3-rc1 is not good for my health ;(

2007/11/27, Timo Rantalaiho <[EMAIL PROTECTED]>:
>
> On Tue, 27 Nov 2007, Seif wrote:
> > in version 1.2.6 or wicket, there was a servlet in the web.xml file
> which
> > can be included in a jsp page using .
> > in the new version (1.3-rc1) this changed to a filter so 
> > produce a FileNot Found exception.
>
> The ser

Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
So here's the skinny:  while my subclass was marked as serializable, the
parent class was not.  So no state from the parent class got serialized nor,
not so surprisingly, deserialized.  After adding that implements clause
things miraculously started working.  So a big "you idiot" for me and a big
thanks to igor for pointing me to the Objects.cloneObject() method to help
write unit tests to highlight my otherwise obvious error.

On Nov 27, 2007 5:29 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:

> Thanks for the tip, igor.  i wasn't sure how to get at the serialization
> code directly without going through all the page stuff as well.
> (DetachedReport)Objects.cloneObject(report) does indeed return an empty
> Report object so there's something not quite right there.  At least now I
> have a place i can focus on without having to worry about all the other
> wicket layers.  I'll let you know what I find out.
>
>
> On Nov 27, 2007 2:36 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > run it through Objects.clone() and see what you get back
> >
> > -igor
> >
> >
> > On Nov 27, 2007 11:35 AM, Evan Chooly < [EMAIL PROTECTED]> wrote:
> > > Just a pojo.  (that's right!  i said it!  pojo!  pojo!  pojo!)  It
> > does have
> > > a baseclass annotated with @MappedSuperclass but that shouldn't cause
> > any
> > > problems.  The object is created by calling new and is never touched
> > by
> > > hibernate.
> > >
> > >
> > > On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > > what is this report object?
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > Just about every field in my model object.  Though it would appear
> > that
> > > > the
> > > > > date object(s) is set to "now."
> > > > >
> > > > >
> > > > > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED] >
> > wrote:
> > > > >
> > > > > > But what field is then exactly null???
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 7:05 PM, Evan Chooly < [EMAIL PROTECTED]>
> > wrote:
> > > > > >
> > > > > > > just something like:
> > > > > > >
> > > > > > > setModel(new CompoundPropertyModel(report));
> > > > > > >
> > > > > > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <
> > [EMAIL PROTECTED]>
> > > > wrote:
> > > > > > >
> > > > > > > > ok, so the model is there, but the object inside it suddenly
> > is
> > > > null?
> > > > > > > > what kind of model is it?
> > > > > > > >
> > > > > > > > -igor
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]>
> > wrote:
> > > > > > > > > No, they're "detached" versions which are basically clones
> > so
> > > > > > there's
> > > > > > > no
> > > > > > > > > hibernate proxies involved.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <
> > [EMAIL PROTECTED]
> > > > >
> > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > these objects are not by chance hibernate objects?
> > because if
> > > > you
> > > > > > > > > > serialize and then deserialize all the collections come
> > back
> > > > as
> > > > > > > empty
> > > > > > > > > > standard jdk collections instead of hibernate proxies
> > > > sometimes
> > > > > > > > > >
> > > > > > > > > > -igor
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <
> > [EMAIL PROTECTED]>
> > > > wrote:
> > > > > > > > > > > No transient fields.  Everything is serializable.
> >  We're
> > > > storing
> > > > > > > the
> > > > > > > > > > > complete objects in the model for a number of reasons.
> >  When
> > > > we
> > > > > > > come
> > > > > > > > > > back to
> > > > > > > > > > > the page we have some object but the state is gone.  I
> > think
> > > > > > it's
> > > > > > > > > > because
> > > > > > > > > > > we're redirecting back to the same page class/type so
> > the
> > > > old
> > > > > > one
> > > > > > > > gets
> > > > > > > > > > > dumped.  Probably what I'll have to do,then, is to
> > build
> > > > special
> > > > > > > > > > subclasses
> > > > > > > > > > > for the drilldown so that the page type changes on
> > each
> > > > step.
> > > > > > > >  Unless
> > > > > > > > > > > there's some way to increment the number of versions
> > per
> > > > > > > pagemap...
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <
> > > > [EMAIL PROTECTED]>
> > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > > Yes in wicket 1.3 there is only 1 active page per
> > pagemap
> > > > > > > > > > > >
> > > > > > > > > > > > But it shouldn't matter where the page comes from.
> > If it
> > > > is
> > > > > > > > serialized
> > > > > > > > > > > > from
> > > > > > > > > > > > disk
> > > > > > > > > > > > or serialized in the session somehow by the
> > container, You
> > > > > > still
> > > > > > > > > > should be
> > > > > > > > > > > > able
> > > > > > > > > > > > to fully construct al

Re: Ajax Memory Leak in IE

2007-11-27 Thread Matej Knopp
Hi,

should be fixed in latest trunk.

-Matej

On Nov 26, 2007 5:24 PM, picknick <[EMAIL PROTECTED]> wrote:
>
> Here's the jira issue. Currently i can't say anything about IE7.
>
> https://issues.apache.org/jira/browse/WICKET-1186
> https://issues.apache.org/jira/browse/WICKET-1186
>
>
>
> Matej Knopp-2 wrote:
> >
> > Does it happen for IE6 only or also for IE7? Can you create a jira
> > issue and attach a  quickstart?
> >
> > -Matej
> >
> > On Nov 26, 2007 12:19 PM, picknick <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm using a DataView-Table with an AjaxPagingNavigator listing 100 items
> >> per
> >> page. Each item has an AjaxLink to a detail view. When paging through the
> >> list the memory usage of the IE is increased by about 500 KB per page.
> >> Without the ajax link it's doing well.
> >>
> >> AjaxDebugMode is disabled. Configuration is set to deployment. Currently
> >> I'm
> >> using Wicket 1.3.0-rc1. I tried Wicket 1.2.6, which is working fine.
> >>
> >> Any ideas?
> >>
> >> Nick
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Ajax-Memory-Leak-in-IE-tf4874611.html#a13947927
> >> Sent from the Wicket - User mailing list archive at 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]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Ajax-Memory-Leak-in-IE-tf4874611.html#a13953000
>
> Sent from the Wicket - User mailing list archive at 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: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Eelco Hillenius
> Thanks for the help.
> From the example I see that I need to convert the text into Unicode
> characters.

If you want to use another charset you can do that as well, both in
your pages and in the properties XML file (at least, that's what I
think). Don't forget to *edit* it in the proper format as well though.

Eelco

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



Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Thanks for the tip, igor.  i wasn't sure how to get at the serialization
code directly without going through all the page stuff as well.
(DetachedReport)Objects.cloneObject(report) does indeed return an empty
Report object so there's something not quite right there.  At least now I
have a place i can focus on without having to worry about all the other
wicket layers.  I'll let you know what I find out.

On Nov 27, 2007 2:36 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> run it through Objects.clone() and see what you get back
>
> -igor
>
>
> On Nov 27, 2007 11:35 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > Just a pojo.  (that's right!  i said it!  pojo!  pojo!  pojo!)  It does
> have
> > a baseclass annotated with @MappedSuperclass but that shouldn't cause
> any
> > problems.  The object is created by calling new and is never touched by
> > hibernate.
> >
> >
> > On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > what is this report object?
> > >
> > > -igor
> > >
> > >
> > > On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > Just about every field in my model object.  Though it would appear
> that
> > > the
> > > > date object(s) is set to "now."
> > > >
> > > >
> > > > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > But what field is then exactly null???
> > > > >
> > > > >
> > > > >
> > > > > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > just something like:
> > > > > >
> > > > > > setModel(new CompoundPropertyModel(report));
> > > > > >
> > > > > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > > wrote:
> > > > > >
> > > > > > > ok, so the model is there, but the object inside it suddenly
> is
> > > null?
> > > > > > > what kind of model is it?
> > > > > > >
> > > > > > > -igor
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]>
> wrote:
> > > > > > > > No, they're "detached" versions which are basically clones
> so
> > > > > there's
> > > > > > no
> > > > > > > > hibernate proxies involved.
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <
> [EMAIL PROTECTED]
> > > >
> > > > > > wrote:
> > > > > > > >
> > > > > > > > > these objects are not by chance hibernate objects? because
> if
> > > you
> > > > > > > > > serialize and then deserialize all the collections come
> back
> > > as
> > > > > > empty
> > > > > > > > > standard jdk collections instead of hibernate proxies
> > > sometimes
> > > > > > > > >
> > > > > > > > > -igor
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]
> >
> > > wrote:
> > > > > > > > > > No transient fields.  Everything is serializable.  We're
> > > storing
> > > > > > the
> > > > > > > > > > complete objects in the model for a number of reasons.
>  When
> > > we
> > > > > > come
> > > > > > > > > back to
> > > > > > > > > > the page we have some object but the state is gone.  I
> think
> > > > > it's
> > > > > > > > > because
> > > > > > > > > > we're redirecting back to the same page class/type so
> the
> > > old
> > > > > one
> > > > > > > gets
> > > > > > > > > > dumped.  Probably what I'll have to do,then, is to build
> > > special
> > > > > > > > > subclasses
> > > > > > > > > > for the drilldown so that the page type changes on each
> > > step.
> > > > > > >  Unless
> > > > > > > > > > there's some way to increment the number of versions per
> > > > > > pagemap...
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <
> > > [EMAIL PROTECTED]>
> > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > Yes in wicket 1.3 there is only 1 active page per
> pagemap
> > > > > > > > > > >
> > > > > > > > > > > But it shouldn't matter where the page comes from. If
> it
> > > is
> > > > > > > serialized
> > > > > > > > > > > from
> > > > > > > > > > > disk
> > > > > > > > > > > or serialized in the session somehow by the container,
> You
> > > > > still
> > > > > > > > > should be
> > > > > > > > > > > able
> > > > > > > > > > > to fully construct all your data again in the objects.
> > > > > > > > > > >
> > > > > > > > > > > So what is suddenly null? All the transient fields?
> Why
> > > aren't
> > > > > > > those
> > > > > > > > > > > reloaded
> > > > > > > > > > > from a database or something?
> > > > > > > > > > >
> > > > > > > > > > > johan
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <
> [EMAIL PROTECTED]
> > > >
> > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > > We have a page that presents a report in which we
> can
> > > "drill
> > > > > > > down"
> > > > > > > > > into
> > > > > > > > > > > > the
> > > > > > > > > > > > data.  When this happens, we setResponsePage() back
> to a
> > > new
> > > > > > > > > instance of
> > > > > > > > > > > 

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Vit Rozkovec

If you're on Linux,
I have made a little script for conversion, which finds all .properties 
files in current directory and subdirectories and encode them proper way:


#!/bin/sh
for file in $(find . -name *.properties); do
   native2ascii $file $file
   echo $file
done

You can find native2ascii also for other platforms

vitek



Frank Bille wrote:

I have the same problem even though only 3 characters (Danish: æ, ø, å), but
I use http://www.resourcebundleeditor.com for eclipse, which creates
.properties files without me having to worry about non-ascii, linebreaks
etc. Nice little tool.

Frank


On Nov 27, 2007 8:52 PM, abaijal <[EMAIL PROTECTED]> wrote:

  

Thanks for the help.
From the example I see that I need to convert the text into Unicode
characters.


Eelco Hillenius wrote:


I am new to wicket framework and am trying to implement
internationalization
for Russian Characters.

When displaying Russian characters on screen, Wicket rendering displays
garbage values


Check out http://wicketstuff.org/wicket13/forminput/. You can select
Russian from the drop down and that looks fine to me. I think that
should work for 1.2 as well, though one of the improvements of 1.3 is
that you can use XML (UTF-8) encoded properties files (even if you're
using Java 1.4).

Eelco

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



  

--
View this message in context:
http://www.nabble.com/Issue-with-Internationalization-of-Non-ascii-characters-tf4883325.html#a13978245
Sent from the Wicket - User mailing list archive at 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: wicket + gwt

2007-11-27 Thread Sean Sullivan
On 11/25/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> i noticed daniel carleton was working on wicket gwt integration, but the wiki
> page makes it look incomplete.  has anyone gone any further on this?

I am interested in this topic but I have not done any work in this area.

@see http://cwiki.apache.org/WICKET/google-web-tools-starting-point.html

@see http://issues.apache.org/jira/browse/WICKET-160

@see http://www.jroller.com/JonathanLocke/entry/wicket_gwt

I am going to Google's GWT conference in San Francisco next week.

Sean

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



Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Frank Bille
I have the same problem even though only 3 characters (Danish: æ, ø, å), but
I use http://www.resourcebundleeditor.com for eclipse, which creates
.properties files without me having to worry about non-ascii, linebreaks
etc. Nice little tool.

Frank


On Nov 27, 2007 8:52 PM, abaijal <[EMAIL PROTECTED]> wrote:

>
> Thanks for the help.
> From the example I see that I need to convert the text into Unicode
> characters.
>
>
> Eelco Hillenius wrote:
> >
> >> I am new to wicket framework and am trying to implement
> >> internationalization
> >> for Russian Characters.
> >>
> >> When displaying Russian characters on screen, Wicket rendering displays
> >> garbage values
> >
> > Check out http://wicketstuff.org/wicket13/forminput/. You can select
> > Russian from the drop down and that looks fine to me. I think that
> > should work for 1.2 as well, though one of the improvements of 1.3 is
> > that you can use XML (UTF-8) encoded properties files (even if you're
> > using Java 1.4).
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Issue-with-Internationalization-of-Non-ascii-characters-tf4883325.html#a13978245
> 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: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
> What does it mean "update tree as often as possible"?

The data for the tree comes from a database where multiple users have
access to. With "update tree as often as possible" I mean that the
database may have changed and I want to show this information as soon
as possible to the user. There is no way to have a kind of "database
trigger" in my case so I want to do it this way.

Greetings

Thomas

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



Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse

No you don't have to hve the servlet response for that
Just check if the Response is a WebResponse
That already has the setHeader methods


Thank you so much, it worked perfectly :)

-- Edvin

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



Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Timo Rantalaiho
On Tue, 27 Nov 2007, Seif wrote:
> in version 1.2.6 or wicket, there was a servlet in the web.xml file which
> can be included in a jsp page using .
> in the new version (1.3-rc1) this changed to a filter so 
> produce a FileNot Found exception.

The servlet is still there in 1.3, the filter is just the
recommended way. 

Salut,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Johan Compagner
No you don't have to hve the servlet response for that
Just check if the Response is a WebResponse
That already has the setHeader methods

On Nov 27, 2007 9:13 PM, Edvin Syse <[EMAIL PROTECTED]> wrote:

> > hmm this way i have never seen it before :)
>
> Hehe.. I know it might be a bit unconventional, but I think I have a good
> reason for it. Since the application is "virtualhosted", the
> session holds a path to the "filearchive" for the current instance (set
> based on the http host of the request), and the /files url of the
> site should serve up the files in the current site's filearchive.
>
> > then overwrite the ResourceStreamRequestTargets:
> > *
> >
> > protected* *void* configure(*final* RequestCycle requestCycle,
> > *final*Response response,
> > *final* IResourceStream resourceStream)
> > and set some headers in the response and call super.
>
> To do that I think I need to get to the HttpServletResponse, right? How
> can I retrieve that from the Response object? It seems to be of type
> org.apache.wicket.protocol.http.BufferedWebResponse.
>
> -- Edvin
>
> -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse

hmm this way i have never seen it before :)


Hehe.. I know it might be a bit unconventional, but I think I have a good reason for it. Since the application is "virtualhosted", the 
session holds a path to the "filearchive" for the current instance (set based on the http host of the request), and the /files url of the 
site should serve up the files in the current site's filearchive.



then overwrite the ResourceStreamRequestTargets:
*

protected* *void* configure(*final* RequestCycle requestCycle,
*final*Response response,
*final* IResourceStream resourceStream)
and set some headers in the response and call super.


To do that I think I need to get to the HttpServletResponse, right? How can I retrieve that from the Response object? It seems to be of type 
org.apache.wicket.protocol.http.BufferedWebResponse.


-- Edvin

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



Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread abaijal

Thanks for the help.
>From the example I see that I need to convert the text into Unicode
characters.


Eelco Hillenius wrote:
> 
>> I am new to wicket framework and am trying to implement
>> internationalization
>> for Russian Characters.
>>
>> When displaying Russian characters on screen, Wicket rendering displays
>> garbage values
> 
> Check out http://wicketstuff.org/wicket13/forminput/. You can select
> Russian from the drop down and that looks fine to me. I think that
> should work for 1.2 as well, though one of the improvements of 1.3 is
> that you can use XML (UTF-8) encoded properties files (even if you're
> using Java 1.4).
> 
> Eelco
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Issue-with-Internationalization-of-Non-ascii-characters-tf4883325.html#a13978245
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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
On Nov 27, 2007 8:37 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:

> >
> > lol, sometimes the solution is just too damn obvious ;)
> >
> >  Gerolf
> >
> >
> >
> thats called wicket.
>

yeah, obivously ;)


Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Johan Compagner
>
> lol, sometimes the solution is just too damn obvious ;)
>
>  Gerolf
>
>
>
thats called wicket.


Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
run it through Objects.clone() and see what you get back

-igor


On Nov 27, 2007 11:35 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> Just a pojo.  (that's right!  i said it!  pojo!  pojo!  pojo!)  It does have
> a baseclass annotated with @MappedSuperclass but that shouldn't cause any
> problems.  The object is created by calling new and is never touched by
> hibernate.
>
>
> On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > what is this report object?
> >
> > -igor
> >
> >
> > On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > Just about every field in my model object.  Though it would appear that
> > the
> > > date object(s) is set to "now."
> > >
> > >
> > > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > >
> > > > But what field is then exactly null???
> > > >
> > > >
> > > >
> > > > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > just something like:
> > > > >
> > > > > setModel(new CompoundPropertyModel(report));
> > > > >
> > > > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > wrote:
> > > > >
> > > > > > ok, so the model is there, but the object inside it suddenly is
> > null?
> > > > > > what kind of model is it?
> > > > > >
> > > > > > -igor
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > > > No, they're "detached" versions which are basically clones so
> > > > there's
> > > > > no
> > > > > > > hibernate proxies involved.
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]
> > >
> > > > > wrote:
> > > > > > >
> > > > > > > > these objects are not by chance hibernate objects? because if
> > you
> > > > > > > > serialize and then deserialize all the collections come back
> > as
> > > > > empty
> > > > > > > > standard jdk collections instead of hibernate proxies
> > sometimes
> > > > > > > >
> > > > > > > > -igor
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]>
> > wrote:
> > > > > > > > > No transient fields.  Everything is serializable.  We're
> > storing
> > > > > the
> > > > > > > > > complete objects in the model for a number of reasons.  When
> > we
> > > > > come
> > > > > > > > back to
> > > > > > > > > the page we have some object but the state is gone.  I think
> > > > it's
> > > > > > > > because
> > > > > > > > > we're redirecting back to the same page class/type so the
> > old
> > > > one
> > > > > > gets
> > > > > > > > > dumped.  Probably what I'll have to do,then, is to build
> > special
> > > > > > > > subclasses
> > > > > > > > > for the drilldown so that the page type changes on each
> > step.
> > > > > >  Unless
> > > > > > > > > there's some way to increment the number of versions per
> > > > > pagemap...
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <
> > [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > > > > > > >
> > > > > > > > > > But it shouldn't matter where the page comes from. If it
> > is
> > > > > > serialized
> > > > > > > > > > from
> > > > > > > > > > disk
> > > > > > > > > > or serialized in the session somehow by the container, You
> > > > still
> > > > > > > > should be
> > > > > > > > > > able
> > > > > > > > > > to fully construct all your data again in the objects.
> > > > > > > > > >
> > > > > > > > > > So what is suddenly null? All the transient fields? Why
> > aren't
> > > > > > those
> > > > > > > > > > reloaded
> > > > > > > > > > from a database or something?
> > > > > > > > > >
> > > > > > > > > > johan
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]
> > >
> > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > We have a page that presents a report in which we can
> > "drill
> > > > > > down"
> > > > > > > > into
> > > > > > > > > > > the
> > > > > > > > > > > data.  When this happens, we setResponsePage() back to a
> > new
> > > > > > > > instance of
> > > > > > > > > > > the
> > > > > > > > > > > page with some different parameters and that all works
> > > > dandy.
> > > > > >  But
> > > > > > > > when
> > > > > > > > > > we
> > > > > > > > > > > hit the back button, it seems the old version is gone.
> >  All
> > > > > the
> > > > > > > > model
> > > > > > > > > > data
> > > > > > > > > > > comes back null (though the model object itself is not).
> >  So
> > > > > > when we
> > > > > > > > > > click
> > > > > > > > > > > back and then click another link to drilldown in another
> > > > > > direction
> > > > > > > > we
> > > > > > > > > > get
> > > > > > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it
> > would
> > > > > > appear
> > > > > > > > that
> > > > > > > > > > > since the page class isn't changing, the new page bump

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
what  happens if you just serialize that object your self and read it back
in?

It seems to me like a serializing problem for that object.

johan




On Nov 27, 2007 8:35 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:

> Just a pojo.  (that's right!  i said it!  pojo!  pojo!  pojo!)  It does
> have
> a baseclass annotated with @MappedSuperclass but that shouldn't cause any
> problems.  The object is created by calling new and is never touched by
> hibernate.
>
> On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > what is this report object?
> >
> > -igor
> >
> >
> > On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > Just about every field in my model object.  Though it would appear
> that
> > the
> > > date object(s) is set to "now."
> > >
> > >
> > > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > >
> > > > But what field is then exactly null???
> > > >
> > > >
> > > >
> > > > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > just something like:
> > > > >
> > > > > setModel(new CompoundPropertyModel(report));
> > > > >
> > > > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > wrote:
> > > > >
> > > > > > ok, so the model is there, but the object inside it suddenly is
> > null?
> > > > > > what kind of model is it?
> > > > > >
> > > > > > -igor
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]>
> wrote:
> > > > > > > No, they're "detached" versions which are basically clones so
> > > > there's
> > > > > no
> > > > > > > hibernate proxies involved.
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <
> [EMAIL PROTECTED]
> > >
> > > > > wrote:
> > > > > > >
> > > > > > > > these objects are not by chance hibernate objects? because
> if
> > you
> > > > > > > > serialize and then deserialize all the collections come back
> > as
> > > > > empty
> > > > > > > > standard jdk collections instead of hibernate proxies
> > sometimes
> > > > > > > >
> > > > > > > > -igor
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]>
> > wrote:
> > > > > > > > > No transient fields.  Everything is serializable.  We're
> > storing
> > > > > the
> > > > > > > > > complete objects in the model for a number of reasons.
>  When
> > we
> > > > > come
> > > > > > > > back to
> > > > > > > > > the page we have some object but the state is gone.  I
> think
> > > > it's
> > > > > > > > because
> > > > > > > > > we're redirecting back to the same page class/type so the
> > old
> > > > one
> > > > > > gets
> > > > > > > > > dumped.  Probably what I'll have to do,then, is to build
> > special
> > > > > > > > subclasses
> > > > > > > > > for the drilldown so that the page type changes on each
> > step.
> > > > > >  Unless
> > > > > > > > > there's some way to increment the number of versions per
> > > > > pagemap...
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <
> > [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Yes in wicket 1.3 there is only 1 active page per
> pagemap
> > > > > > > > > >
> > > > > > > > > > But it shouldn't matter where the page comes from. If it
> > is
> > > > > > serialized
> > > > > > > > > > from
> > > > > > > > > > disk
> > > > > > > > > > or serialized in the session somehow by the container,
> You
> > > > still
> > > > > > > > should be
> > > > > > > > > > able
> > > > > > > > > > to fully construct all your data again in the objects.
> > > > > > > > > >
> > > > > > > > > > So what is suddenly null? All the transient fields? Why
> > aren't
> > > > > > those
> > > > > > > > > > reloaded
> > > > > > > > > > from a database or something?
> > > > > > > > > >
> > > > > > > > > > johan
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <
> [EMAIL PROTECTED]
> > >
> > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > We have a page that presents a report in which we can
> > "drill
> > > > > > down"
> > > > > > > > into
> > > > > > > > > > > the
> > > > > > > > > > > data.  When this happens, we setResponsePage() back to
> a
> > new
> > > > > > > > instance of
> > > > > > > > > > > the
> > > > > > > > > > > page with some different parameters and that all works
> > > > dandy.
> > > > > >  But
> > > > > > > > when
> > > > > > > > > > we
> > > > > > > > > > > hit the back button, it seems the old version is gone.
> >  All
> > > > > the
> > > > > > > > model
> > > > > > > > > > data
> > > > > > > > > > > comes back null (though the model object itself is
> not).
> >  So
> > > > > > when we
> > > > > > > > > > click
> > > > > > > > > > > back and then click another link to drilldown in
> another
> > > > > > direction
> > > > > > > > we
> > > > > > > > > > get
> > > > > > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it
> > would
> > > 

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
>
> looking at markup like this
>
> date:
>
> rather then
>
> date: id="foo"/>
>
> sucks. it is pretty unintuitive.


i agree. i will enhance the javadoc for DateField for now. i guess we just
have to live with it...


> ok, let me correct you :) simply add an attribute modifier to the
> created text field which adds all the necessary attributes
>

lol, sometimes the solution is just too damn obvious ;)

  Gerolf


>
> -igor
>
> >
> >   Gerolf
> >
> >
> >
> > > just my two cents
> >
> >
> > > all of these changes can be implemented now as well, since they do not
> > > break api
> > >
> > > well maybe at this point we should make (a) log a warning rather then
> > > error out and leave a todo for 1.4 to switch to error
> > >
> > > -igor
> > >
> > >
> > > On Nov 27, 2007 1:31 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > > > i will add a big fat notice to the class's javadoc.
> > > > it wouldn't hurt either to add more examples to wicket-examples...
> > > >
> > > > will do so later this day...
> > > >
> > > >   Gerolf
> > > >
> > > >
> > > > On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > I had the same problem the first time i tried using the component,
> so
> > > > > I would have to agree that some sort of warning would be handy
> > > > >
> > > > > On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED] >
> wrote:
> > > > > > hi matt,
> > > > > >
> > > > > > DateField is derived from FormComponentPanel and thus the markup
> > > should
> > > > > look
> > > > > > something like this:
> > > > > >
> > > > > > 
> > > > > >
> > > > > > maybe we should check that the associated tag is not an input
> tag,
> > > as
> > > > > this
> > > > > > is a rather common pitfall,
> > > > > > or rename DateField to DateFieldPanel, but it's most probably
> too
> > > late
> > > > > for
> > > > > > that.
> > > > > >
> > > > > > Eelco, wdyt?
> > > > > >
> > > > > >   Gerolf
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 10:08 AM, mraible < [EMAIL PROTECTED]>
> wrote:
> > > > > >
> > > > > > >
> > > > > > > Changing the HTML from:
> > > > > > >
> > > > > > >  > > size="11"/>
> > > > > > >
> > > > > > > To:
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > Solved my problem.
> > > > > > >
> > > > > > > Unfortunately, there doesn't seem to be a way (from markup) to
> add
> > > my
> > > > > > > class
> > > > > > > classes (text small) to the input field rendered by this
> > > component.
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > >
> > > > > > > mraible wrote:
> > > > > > > >
> > > > > > > > For some reason, when using the new
> > > > > extensions.yui.calendar.DateField, I
> > > > > > > > end up with two text fields on my page. I'm sure it's
> something
> > > I'm
> > > > > > > doing
> > > > > > > > wrong, but I can't see the solution at 2 a.m. (and I haven't
> > > even
> > > > > been
> > > > > > > > drinking!). ;-)
> > > > > > > >
> > > > > > > > Java:
> > > > > > > >
> > > > > > > > add(new DateField("birthday"), new ResourceModel("
> user.birthday
> > > "));
> > > > > > > >
> > > > > > > > HTML:
> > > > > > > >
> > > > > > > > 
> > > > > > > >  > > > > > > > key=" user.birthday">Birthday:
> > > > > > > > 
> > > > > > > >  > > > > > > > size="11"/>
> > > > > > > > [birthday feedback]
> > > > > > > > 
> > > > > > > > 
> > > > > > > >
> > > > > > > > The rendered markup has two input fields. Any ideas how to
> fix?
> > > > > > > >
> > > > > > > > 
> > > > > > > > Birthday:
> > > > > > > > 
> > > > > > > >  > > > > name="birthday">
> > > > > > > >
> > > > > > > >  > > > > name="birthday:date"
> > > > > > > > id="date3"/>
> > > > > > > >  
> > > > > > > >
> > > > >
> > >
> resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > > > > > > >
> > > > > > > > 
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 
> > > > > > > > 
> > > > > > > >
> > > > > > > > I've attached a screenshot of what it looks like.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Matt
> > > > > > > >
> > > > > > > >   http://www.nabble.com/file/p13967061/twodatefields.png
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > >
> > >
> http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > > > > > > Sent from the Wicket - User mailing list archive at 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: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Just a pojo.  (that's right!  i said it!  pojo!  pojo!  pojo!)  It does have
a baseclass annotated with @MappedSuperclass but that shouldn't cause any
problems.  The object is created by calling new and is never touched by
hibernate.

On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> what is this report object?
>
> -igor
>
>
> On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > Just about every field in my model object.  Though it would appear that
> the
> > date object(s) is set to "now."
> >
> >
> > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > > But what field is then exactly null???
> > >
> > >
> > >
> > > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > >
> > > > just something like:
> > > >
> > > > setModel(new CompoundPropertyModel(report));
> > > >
> > > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > ok, so the model is there, but the object inside it suddenly is
> null?
> > > > > what kind of model is it?
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > > No, they're "detached" versions which are basically clones so
> > > there's
> > > > no
> > > > > > hibernate proxies involved.
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]
> >
> > > > wrote:
> > > > > >
> > > > > > > these objects are not by chance hibernate objects? because if
> you
> > > > > > > serialize and then deserialize all the collections come back
> as
> > > > empty
> > > > > > > standard jdk collections instead of hibernate proxies
> sometimes
> > > > > > >
> > > > > > > -igor
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]>
> wrote:
> > > > > > > > No transient fields.  Everything is serializable.  We're
> storing
> > > > the
> > > > > > > > complete objects in the model for a number of reasons.  When
> we
> > > > come
> > > > > > > back to
> > > > > > > > the page we have some object but the state is gone.  I think
> > > it's
> > > > > > > because
> > > > > > > > we're redirecting back to the same page class/type so the
> old
> > > one
> > > > > gets
> > > > > > > > dumped.  Probably what I'll have to do,then, is to build
> special
> > > > > > > subclasses
> > > > > > > > for the drilldown so that the page type changes on each
> step.
> > > > >  Unless
> > > > > > > > there's some way to increment the number of versions per
> > > > pagemap...
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <
> [EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > > >
> > > > > > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > > > > > >
> > > > > > > > > But it shouldn't matter where the page comes from. If it
> is
> > > > > serialized
> > > > > > > > > from
> > > > > > > > > disk
> > > > > > > > > or serialized in the session somehow by the container, You
> > > still
> > > > > > > should be
> > > > > > > > > able
> > > > > > > > > to fully construct all your data again in the objects.
> > > > > > > > >
> > > > > > > > > So what is suddenly null? All the transient fields? Why
> aren't
> > > > > those
> > > > > > > > > reloaded
> > > > > > > > > from a database or something?
> > > > > > > > >
> > > > > > > > > johan
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]
> >
> > > > wrote:
> > > > > > > > >
> > > > > > > > > > We have a page that presents a report in which we can
> "drill
> > > > > down"
> > > > > > > into
> > > > > > > > > > the
> > > > > > > > > > data.  When this happens, we setResponsePage() back to a
> new
> > > > > > > instance of
> > > > > > > > > > the
> > > > > > > > > > page with some different parameters and that all works
> > > dandy.
> > > > >  But
> > > > > > > when
> > > > > > > > > we
> > > > > > > > > > hit the back button, it seems the old version is gone.
>  All
> > > > the
> > > > > > > model
> > > > > > > > > data
> > > > > > > > > > comes back null (though the model object itself is not).
>  So
> > > > > when we
> > > > > > > > > click
> > > > > > > > > > back and then click another link to drilldown in another
> > > > > direction
> > > > > > > we
> > > > > > > > > get
> > > > > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it
> would
> > > > > appear
> > > > > > > that
> > > > > > > > > > since the page class isn't changing, the new page bumps
> the
> > > > old
> > > > > one
> > > > > > > from
> > > > > > > > > > the
> > > > > > > > > > cache so that only one version of the page.
> > > > > > > > > >
> > > > > > > > > > Am I correctly interpreting what I'm seeing and is there
> a
> > > way
> > > > > to
> > > > > > > set
> > > > > > > > > the
> > > > > > > > > > number of versions of a page?
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > 

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Seif
Sorry i'm not developping a new application, i want only to integrate wicket
in an existant apps, which work with ejb3/hibernate, urlrewrite from
tukey.org, taglibs, apache-lucene, etc...
in version 1.2.6 or wicket, there was a servlet in the web.xml file which
can be included in a jsp page using .
in the new version (1.3-rc1) this changed to a filter so 
produce a FileNot Found exception.
I don't think that all the developpers would like to devellop apps only
using Wicket :s, but they can use other framework too.
Wicket is a very good and a very exciting project, why can't we integrate it
in other project ???

BTW sorry for my english i'm a frenchy user :S

2007/11/27, Timo Rantalaiho <[EMAIL PROTECTED]>:
>
> On Mon, 26 Nov 2007, Seif wrote:
> > Hi, i'm a new wicket user, and i'm trying to execute a helloworld
> exemple
> > included in a JSP page
>
> You might be better off first trying stuff out in a simpler
> setting, without the JSP.
>
> > My problem is that wicket become a javax.servlet.Filter and not a
> Servlet in
> > the 1.3-rc1 version :(
>
> You can still use the servlet.
>
> > I have asked in the IRC channel and the only answer i got is look at
> > http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/which
> > explain how to include/use JSP in Wicket and not the reverse :(
>
> Search these mailing lists in Nabble (put "wicket nabble" in
> Google), this has come up sometimes.
>
> Best wishes,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oyhttp://www.ri.fi/ >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cordialement
---
Seif


Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Johan Compagner
hmm this way i have never seen it before :)

But you could also do this with a mounted shared resource
But what you could do if you want to do it that way

then overwrite the ResourceStreamRequestTargets:
*

protected* *void* configure(*final* RequestCycle requestCycle,
*final*Response response,
*final* IResourceStream resourceStream)
and set some headers in the response and call super.

johan



On Nov 27, 2007 6:55 PM, Edvin Syse <[EMAIL PROTECTED]> wrote:

> In my WicketApplication class I have mounted a URL with the
> URIRequestTargetUrlCodingStrategy to serve files in my virtualhosted
> CMS-application written in Wicket 1.3. The problem with this is that it
> returns a header like this with the file it serves up:
>
>   HTTP/1.1 200 OK
>   Expires: Thu, 01 Jan 1970 00:00:00 GMT
>   Set-Cookie: JSESSIONID=1ugsnhj1evodg;Path=/
>   Content-Type: image/jpeg; charset=UTF-8
>   Content-Length: 55925
>   Connection: keep-alive
>   Server: Jetty(6.1.5)
>
> The Expires: header obviously prevents the client from caching the result.
> How can I override this header?
>
> My implementation is like this:
>
> mount(new URIRequestTargetUrlCodingStrategy("/files") {
>@Override
>public IRequestTarget decode(RequestParameters requestParameters) {
>// TODO: Better path-checking
>final String uri =
> getURI(requestParameters).replaceAll("\\.\\.", "");
>/* Redirect to / if empty result, maybe return 404 instead?
> */
>if ("".equals(uri))
>return new RedirectRequestTarget("/");
>
>/* Get file for this instance */
>File file = new File(((TornadoWebSession) 
> (Session.get())).getInstancePath()
> + File.separator + uri);
>return new ResourceStreamRequestTarget(new
> FileResourceStream(file));
>}
> });
>
> Sincerely,
> Edvin Syse
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
what is this report object?

-igor


On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> Just about every field in my model object.  Though it would appear that the
> date object(s) is set to "now."
>
>
> On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> > But what field is then exactly null???
> >
> >
> >
> > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> >
> > > just something like:
> > >
> > > setModel(new CompoundPropertyModel(report));
> > >
> > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > > ok, so the model is there, but the object inside it suddenly is null?
> > > > what kind of model is it?
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > No, they're "detached" versions which are basically clones so
> > there's
> > > no
> > > > > hibernate proxies involved.
> > > > >
> > > > >
> > > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > > wrote:
> > > > >
> > > > > > these objects are not by chance hibernate objects? because if you
> > > > > > serialize and then deserialize all the collections come back as
> > > empty
> > > > > > standard jdk collections instead of hibernate proxies sometimes
> > > > > >
> > > > > > -igor
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > > > No transient fields.  Everything is serializable.  We're storing
> > > the
> > > > > > > complete objects in the model for a number of reasons.  When we
> > > come
> > > > > > back to
> > > > > > > the page we have some object but the state is gone.  I think
> > it's
> > > > > > because
> > > > > > > we're redirecting back to the same page class/type so the old
> > one
> > > > gets
> > > > > > > dumped.  Probably what I'll have to do,then, is to build special
> > > > > > subclasses
> > > > > > > for the drilldown so that the page type changes on each step.
> > > >  Unless
> > > > > > > there's some way to increment the number of versions per
> > > pagemap...
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > >
> > > > > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > > > > >
> > > > > > > > But it shouldn't matter where the page comes from. If it is
> > > > serialized
> > > > > > > > from
> > > > > > > > disk
> > > > > > > > or serialized in the session somehow by the container, You
> > still
> > > > > > should be
> > > > > > > > able
> > > > > > > > to fully construct all your data again in the objects.
> > > > > > > >
> > > > > > > > So what is suddenly null? All the transient fields? Why aren't
> > > > those
> > > > > > > > reloaded
> > > > > > > > from a database or something?
> > > > > > > >
> > > > > > > > johan
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]>
> > > wrote:
> > > > > > > >
> > > > > > > > > We have a page that presents a report in which we can "drill
> > > > down"
> > > > > > into
> > > > > > > > > the
> > > > > > > > > data.  When this happens, we setResponsePage() back to a new
> > > > > > instance of
> > > > > > > > > the
> > > > > > > > > page with some different parameters and that all works
> > dandy.
> > > >  But
> > > > > > when
> > > > > > > > we
> > > > > > > > > hit the back button, it seems the old version is gone.  All
> > > the
> > > > > > model
> > > > > > > > data
> > > > > > > > > comes back null (though the model object itself is not).  So
> > > > when we
> > > > > > > > click
> > > > > > > > > back and then click another link to drilldown in another
> > > > direction
> > > > > > we
> > > > > > > > get
> > > > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it would
> > > > appear
> > > > > > that
> > > > > > > > > since the page class isn't changing, the new page bumps the
> > > old
> > > > one
> > > > > > from
> > > > > > > > > the
> > > > > > > > > cache so that only one version of the page.
> > > > > > > > >
> > > > > > > > > Am I correctly interpreting what I'm seeing and is there a
> > way
> > > > to
> > > > > > set
> > > > > > > > the
> > > > > > > > > number of versions of a page?
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > -
> > > > > > 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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Igor Vaynberg
On Nov 27, 2007 11:24 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> >
> > a) it should check that it is attached to an input tag
> > b) it should call setrenderbodyonly(true) on itself
>
>
> this silently breaks the "api" (rather the usage), because you couldn't add
> it to an AjaxRequestTarget anymore

hmm, yeah that sucks a bit. we can mutate the tag and strip all
attributes, but then there is no good default to mutate it to as it
will most likely always mess with user's css. i guess the design of
this stinks a bit...

looking at markup like this

date:

rather then

date:

sucks. it is pretty unintuitive.

> > c) it should carry over any attributes from the panel tag to the inner
> > input tag
> >
>
> correct me if i'm wrong: this is not possible since the the actual
> DateTextField (and thus the inner input tag) is provided via a factory
> method,
> so we cannot make sure that users override the onComponentTag method to put
> attributes from the DateField's tag to the DateTextField's tag.
> not even considering the static factory methods on DateTextField...

ok, let me correct you :) simply add an attribute modifier to the
created text field which adds all the necessary attributes

-igor

>
>   Gerolf
>
>
>
> > just my two cents
>
>
> > all of these changes can be implemented now as well, since they do not
> > break api
> >
> > well maybe at this point we should make (a) log a warning rather then
> > error out and leave a todo for 1.4 to switch to error
> >
> > -igor
> >
> >
> > On Nov 27, 2007 1:31 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > > i will add a big fat notice to the class's javadoc.
> > > it wouldn't hurt either to add more examples to wicket-examples...
> > >
> > > will do so later this day...
> > >
> > >   Gerolf
> > >
> > >
> > > On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:
> > >
> > > > I had the same problem the first time i tried using the component, so
> > > > I would have to agree that some sort of warning would be handy
> > > >
> > > > On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > > > > hi matt,
> > > > >
> > > > > DateField is derived from FormComponentPanel and thus the markup
> > should
> > > > look
> > > > > something like this:
> > > > >
> > > > > 
> > > > >
> > > > > maybe we should check that the associated tag is not an input tag,
> > as
> > > > this
> > > > > is a rather common pitfall,
> > > > > or rename DateField to DateFieldPanel, but it's most probably too
> > late
> > > > for
> > > > > that.
> > > > >
> > > > > Eelco, wdyt?
> > > > >
> > > > >   Gerolf
> > > > >
> > > > >
> > > > > On Nov 27, 2007 10:08 AM, mraible < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > > > Changing the HTML from:
> > > > > >
> > > > > >  > size="11"/>
> > > > > >
> > > > > > To:
> > > > > >
> > > > > > 
> > > > > >
> > > > > > Solved my problem.
> > > > > >
> > > > > > Unfortunately, there doesn't seem to be a way (from markup) to add
> > my
> > > > > > class
> > > > > > classes (text small) to the input field rendered by this
> > component.
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > >
> > > > > > mraible wrote:
> > > > > > >
> > > > > > > For some reason, when using the new
> > > > extensions.yui.calendar.DateField, I
> > > > > > > end up with two text fields on my page. I'm sure it's something
> > I'm
> > > > > > doing
> > > > > > > wrong, but I can't see the solution at 2 a.m. (and I haven't
> > even
> > > > been
> > > > > > > drinking!). ;-)
> > > > > > >
> > > > > > > Java:
> > > > > > >
> > > > > > > add(new DateField("birthday"), new ResourceModel(" user.birthday
> > "));
> > > > > > >
> > > > > > > HTML:
> > > > > > >
> > > > > > > 
> > > > > > >  > > > > > > key=" user.birthday">Birthday:
> > > > > > > 
> > > > > > >  > > > > > > size="11"/>
> > > > > > > [birthday feedback]
> > > > > > > 
> > > > > > > 
> > > > > > >
> > > > > > > The rendered markup has two input fields. Any ideas how to fix?
> > > > > > >
> > > > > > > 
> > > > > > > Birthday:
> > > > > > > 
> > > > > > >  > > > name="birthday">
> > > > > > >
> > > > > > >  > > > name="birthday:date"
> > > > > > > id="date3"/>
> > > > > > >  
> > > > > > >
> > > >
> > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > > 
> > > > > > >
> > > > > > > I've attached a screenshot of what it looks like.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > >   http://www.nabble.com/file/p13967061/twodatefields.png
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > >
> > http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > > > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > -

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Just about every field in my model object.  Though it would appear that the
date object(s) is set to "now."

On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:

> But what field is then exactly null???
>
>
>
> On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
>
> > just something like:
> >
> > setModel(new CompoundPropertyModel(report));
> >
> > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > ok, so the model is there, but the object inside it suddenly is null?
> > > what kind of model is it?
> > >
> > > -igor
> > >
> > >
> > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > No, they're "detached" versions which are basically clones so
> there's
> > no
> > > > hibernate proxies involved.
> > > >
> > > >
> > > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> > wrote:
> > > >
> > > > > these objects are not by chance hibernate objects? because if you
> > > > > serialize and then deserialize all the collections come back as
> > empty
> > > > > standard jdk collections instead of hibernate proxies sometimes
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > > No transient fields.  Everything is serializable.  We're storing
> > the
> > > > > > complete objects in the model for a number of reasons.  When we
> > come
> > > > > back to
> > > > > > the page we have some object but the state is gone.  I think
> it's
> > > > > because
> > > > > > we're redirecting back to the same page class/type so the old
> one
> > > gets
> > > > > > dumped.  Probably what I'll have to do,then, is to build special
> > > > > subclasses
> > > > > > for the drilldown so that the page type changes on each step.
> > >  Unless
> > > > > > there's some way to increment the number of versions per
> > pagemap...
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]>
> > > wrote:
> > > > > >
> > > > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > > > >
> > > > > > > But it shouldn't matter where the page comes from. If it is
> > > serialized
> > > > > > > from
> > > > > > > disk
> > > > > > > or serialized in the session somehow by the container, You
> still
> > > > > should be
> > > > > > > able
> > > > > > > to fully construct all your data again in the objects.
> > > > > > >
> > > > > > > So what is suddenly null? All the transient fields? Why aren't
> > > those
> > > > > > > reloaded
> > > > > > > from a database or something?
> > > > > > >
> > > > > > > johan
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]>
> > wrote:
> > > > > > >
> > > > > > > > We have a page that presents a report in which we can "drill
> > > down"
> > > > > into
> > > > > > > > the
> > > > > > > > data.  When this happens, we setResponsePage() back to a new
> > > > > instance of
> > > > > > > > the
> > > > > > > > page with some different parameters and that all works
> dandy.
> > >  But
> > > > > when
> > > > > > > we
> > > > > > > > hit the back button, it seems the old version is gone.  All
> > the
> > > > > model
> > > > > > > data
> > > > > > > > comes back null (though the model object itself is not).  So
> > > when we
> > > > > > > click
> > > > > > > > back and then click another link to drilldown in another
> > > direction
> > > > > we
> > > > > > > get
> > > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it would
> > > appear
> > > > > that
> > > > > > > > since the page class isn't changing, the new page bumps the
> > old
> > > one
> > > > > from
> > > > > > > > the
> > > > > > > > cache so that only one version of the page.
> > > > > > > >
> > > > > > > > Am I correctly interpreting what I'm seeing and is there a
> way
> > > to
> > > > > set
> > > > > > > the
> > > > > > > > number of versions of a page?
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > -
> > > > > 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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
>
> a) it should check that it is attached to an input tag
> b) it should call setrenderbodyonly(true) on itself


this silently breaks the "api" (rather the usage), because you couldn't add
it to an AjaxRequestTarget anymore


>
> c) it should carry over any attributes from the panel tag to the inner
> input tag
>

correct me if i'm wrong: this is not possible since the the actual
DateTextField (and thus the inner input tag) is provided via a factory
method,
so we cannot make sure that users override the onComponentTag method to put
attributes from the DateField's tag to the DateTextField's tag.
not even considering the static factory methods on DateTextField...

  Gerolf


> just my two cents


> all of these changes can be implemented now as well, since they do not
> break api
>
> well maybe at this point we should make (a) log a warning rather then
> error out and leave a todo for 1.4 to switch to error
>
> -igor
>
>
> On Nov 27, 2007 1:31 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > i will add a big fat notice to the class's javadoc.
> > it wouldn't hurt either to add more examples to wicket-examples...
> >
> > will do so later this day...
> >
> >   Gerolf
> >
> >
> > On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:
> >
> > > I had the same problem the first time i tried using the component, so
> > > I would have to agree that some sort of warning would be handy
> > >
> > > On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > > > hi matt,
> > > >
> > > > DateField is derived from FormComponentPanel and thus the markup
> should
> > > look
> > > > something like this:
> > > >
> > > > 
> > > >
> > > > maybe we should check that the associated tag is not an input tag,
> as
> > > this
> > > > is a rather common pitfall,
> > > > or rename DateField to DateFieldPanel, but it's most probably too
> late
> > > for
> > > > that.
> > > >
> > > > Eelco, wdyt?
> > > >
> > > >   Gerolf
> > > >
> > > >
> > > > On Nov 27, 2007 10:08 AM, mraible < [EMAIL PROTECTED]> wrote:
> > > >
> > > > >
> > > > > Changing the HTML from:
> > > > >
> > > > >  size="11"/>
> > > > >
> > > > > To:
> > > > >
> > > > > 
> > > > >
> > > > > Solved my problem.
> > > > >
> > > > > Unfortunately, there doesn't seem to be a way (from markup) to add
> my
> > > > > class
> > > > > classes (text small) to the input field rendered by this
> component.
> > > > >
> > > > > Matt
> > > > >
> > > > >
> > > > > mraible wrote:
> > > > > >
> > > > > > For some reason, when using the new
> > > extensions.yui.calendar.DateField, I
> > > > > > end up with two text fields on my page. I'm sure it's something
> I'm
> > > > > doing
> > > > > > wrong, but I can't see the solution at 2 a.m. (and I haven't
> even
> > > been
> > > > > > drinking!). ;-)
> > > > > >
> > > > > > Java:
> > > > > >
> > > > > > add(new DateField("birthday"), new ResourceModel(" user.birthday
> "));
> > > > > >
> > > > > > HTML:
> > > > > >
> > > > > > 
> > > > > >  > > > > > key=" user.birthday">Birthday:
> > > > > > 
> > > > > >  > > > > > size="11"/>
> > > > > > [birthday feedback]
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > The rendered markup has two input fields. Any ideas how to fix?
> > > > > >
> > > > > > 
> > > > > > Birthday:
> > > > > > 
> > > > > >  > > name="birthday">
> > > > > >
> > > > > >  > > name="birthday:date"
> > > > > > id="date3"/>
> > > > > >  
> > > > > >
> > >
> resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > > > > >
> > > > > > 
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > I've attached a screenshot of what it looks like.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > >   http://www.nabble.com/file/p13967061/twodatefields.png
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > >
> http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > > > > Sent from the Wicket - User mailing list archive at 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]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
But what field is then exactly null???



On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:

> just something like:
>
> setModel(new CompoundPropertyModel(report));
>
> On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > ok, so the model is there, but the object inside it suddenly is null?
> > what kind of model is it?
> >
> > -igor
> >
> >
> > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > No, they're "detached" versions which are basically clones so there's
> no
> > > hibernate proxies involved.
> > >
> > >
> > > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> > >
> > > > these objects are not by chance hibernate objects? because if you
> > > > serialize and then deserialize all the collections come back as
> empty
> > > > standard jdk collections instead of hibernate proxies sometimes
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > > No transient fields.  Everything is serializable.  We're storing
> the
> > > > > complete objects in the model for a number of reasons.  When we
> come
> > > > back to
> > > > > the page we have some object but the state is gone.  I think it's
> > > > because
> > > > > we're redirecting back to the same page class/type so the old one
> > gets
> > > > > dumped.  Probably what I'll have to do,then, is to build special
> > > > subclasses
> > > > > for the drilldown so that the page type changes on each step.
> >  Unless
> > > > > there's some way to increment the number of versions per
> pagemap...
> > > > >
> > > > >
> > > > > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]>
> > wrote:
> > > > >
> > > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > > >
> > > > > > But it shouldn't matter where the page comes from. If it is
> > serialized
> > > > > > from
> > > > > > disk
> > > > > > or serialized in the session somehow by the container, You still
> > > > should be
> > > > > > able
> > > > > > to fully construct all your data again in the objects.
> > > > > >
> > > > > > So what is suddenly null? All the transient fields? Why aren't
> > those
> > > > > > reloaded
> > > > > > from a database or something?
> > > > > >
> > > > > > johan
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]>
> wrote:
> > > > > >
> > > > > > > We have a page that presents a report in which we can "drill
> > down"
> > > > into
> > > > > > > the
> > > > > > > data.  When this happens, we setResponsePage() back to a new
> > > > instance of
> > > > > > > the
> > > > > > > page with some different parameters and that all works dandy.
> >  But
> > > > when
> > > > > > we
> > > > > > > hit the back button, it seems the old version is gone.  All
> the
> > > > model
> > > > > > data
> > > > > > > comes back null (though the model object itself is not).  So
> > when we
> > > > > > click
> > > > > > > back and then click another link to drilldown in another
> > direction
> > > > we
> > > > > > get
> > > > > > > NPEs.  From stepping through DiskPageStore, et. al, it would
> > appear
> > > > that
> > > > > > > since the page class isn't changing, the new page bumps the
> old
> > one
> > > > from
> > > > > > > the
> > > > > > > cache so that only one version of the page.
> > > > > > >
> > > > > > > Am I correctly interpreting what I'm seeing and is there a way
> > to
> > > > set
> > > > > > the
> > > > > > > number of versions of a page?
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> -
> > > > 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: Floating Column

2007-11-27 Thread Alex Objelean

Sorry, didn't read the post carefully. 

I've done something similar. The entire component was in a table with two
cells. The fixed column was in a first TD, while the rest was contained in
another TD element. The point is, that it has nothing to do with wicket, it
is about how you choose your markup and style it using CSS.


Matej Knopp-2 wrote:
> 
> On Nov 27, 2007 3:23 PM, Alex Objelean <[EMAIL PROTECTED]> wrote:
>>
>> It is up to you how to style the markup. A little of CSS can do all you
>> need.
> little CSS? for a floating column that says on screen while other
> scroll? Heh, I doubt it :)
> At least if you want to work it across different browsers.
> 
> -Matej
>>
>> Alex
>>
>>
>>
>> dariusz.holda wrote:
>> >
>> > Hi,
>> > Is it possible in Wicket to do a floating column? I have a DataView
>> that
>> > has so many columns that it expands over one screen. I would like to
>> make
>> > one column to stay on the screen all the time even if a user scrolls
>> > horizontally to the other side of the DataView. Has anybody tried that?
>> > Any ideas where to start?
>> >
>> > Cheers,
>> > Dariusz
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Floating-Column-tf4881169.html#a13971775
>>
>> Sent from the Wicket - User mailing list archive at 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Floating-Column-tf4881169.html#a13976919
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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Eelco Hillenius
> a) it should check that it is attached to an input tag
> b) it should call setrenderbodyonly(true) on itself
> c) it should carry over any attributes from the panel tag to the inner input 
> tag

It could do that magic if it is attached to a text field, but leave
things as they are if it is attached to another tag. Won't break the
API and lets people use whatever they prefer.

Then there is a decision to be made what to do with the text field
that is produced (possibly overriden) by newDateTextField. Should the
markup win and override any attributes defined on that? It is easier
for people to just use a regular text field and couple a DatePicker
separately.

Eelco

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



Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Eelco Hillenius
> I am new to wicket framework and am trying to implement internationalization
> for Russian Characters.
>
> When displaying Russian characters on screen, Wicket rendering displays
> garbage values

Check out http://wicketstuff.org/wicket13/forminput/. You can select
Russian from the drop down and that looks fine to me. I think that
should work for 1.2 as well, though one of the improvements of 1.3 is
that you can use XML (UTF-8) encoded properties files (even if you're
using Java 1.4).

Eelco

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



Re: How do others include their browser specific styles in Wicket?

2007-11-27 Thread Eelco Hillenius
> Hi,
> We get the client info the same way, but how do you prevent having to
> manually do (for example):
> page.add(HeaderContributor.forCss("_css/style.css", "screen"));
>
> if (clientProperties.isBrowserInternetExplorer()) {
> page.add(HeaderContributor.forCss("_css/screen_ie.css",
> "screen"));
> }
>// possibly even: else if isBrowserXXX, etc.
>
> ...in the XXXBasePage for each and every project. Not that this is very
> hard or cumbersome to do so. I just want to know what is the wicket way
> (tm)?

You should be able to use Session's style property for that. The
contribution that is added through calling
add(HeaderContributor.forCss("foo.css")) should use that when
rendering:

  protected Resource newResource() {
PackageResource packageResource =
CompressedPackageResource.get(getScope(), getName(), getLocale(),
getStyle());
...

Eelco

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



Re: TabbedPanel + authorization strategy

2007-11-27 Thread Eelco Hillenius
On Nov 27, 2007 3:15 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
> That gave me some hints indeed. Thanks !
> The authorization needs to be placed on the link (that is created when
> overriding the newlink method from TabbedPanel).

Yeah, that makes sense :-)

Eelco

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



Ajax AutoCompleteTextField with hidden id-field

2007-11-27 Thread ckuehne

Hi,

I'd like my AutoCompleteTextField to behave as follows

- I want the names of my list items displayed (item.name)
- when I select one I want the item.name displayed in the AC-TextField

So far, so good. But ...

- internally I want the item.id  put into the request in order to select the
object corresponding to the item that was selected.

I came up with a solution like this
http://www.nabble.com/AutoCompleteTextfield---how-to-populate-two-input-fields-tf4592192.html

The problem is, that I don't want the user to see the internal item.id.

At the moment I am thinking of changing the js to put the item.id into a
hidden form field whose
value I could take from the request. But I find this solution a little
inelegant.

Any ideas?

Thanks,
Conny

-- 
View this message in context: 
http://www.nabble.com/Ajax-AutoCompleteTextField-with-hidden-id-field-tf4883557.html#a13976698
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: Amsterdam meetup: the agenda!

2007-11-27 Thread Eelco Hillenius
Cool. Though where is Terracotta in there? Didn't they plan on
participating as well?

Eelco


On Nov 27, 2007 7:59 AM, Arje Cahn <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm proud to present our heavily packed agenda for the Amsterdam Wicket 
> Meetup this Friday!
>
> We're going sky-high with our little Wicket Meetup... 86 attendees already!
> If still haven't signed up, you're not too late! Rush yourself to
> http://cwiki.apache.org/WICKET/community-meetups.html
>
>
> 
> Programme
>   Friday, November 30
> 
>
> 12:00 Room opens, Wifi connection, power outlets and coffee available.
>   Walk-in hackaton for whoever likes to join.
> 12:30 Q/A Ask the experts
>   Got a question for your Wicket project? Feel free to ask!
> 14:30 End of hackaton
>
> 15:00 Opening talk - Arjé Cahn
> 15:15 Apache Wicket: web applications with just Java - Martijn Dashorst
> 15:45 Wicket and Swing from one codebase - Johan Compagner
> 16:15 wicket-contrib-gmap2 - Martin Funk
> 16:30 [To be determined]
> 17:00 Wicket Portlets primer - Ate Douma
> 17:30 Dynamic markup and on the fly components (on binding XML to Wicket) - 
> Wouter Huijnink
> 18:00 Dinner pasta buffet
> 19:00 Introduction to Wicket Security - Maurice Marrink
> 19:30 A plugin architecture for Wicket - Niels van Kampenhout
> 20:00 SessionStores, Pagemaps and Pages.. What does wicket store (and where) 
> - Johan Compagner
> 20:30 Wicket Live On Stage! A production case study (with lots of AJAX) - 
> Martijn Dashorst
> 21:00 Closing - Arjé Cahn
>
> 21:05 Sponsored drinks!
>
> 23:00 Bar closes
>
> Please note that the programme is subject to change (even up to the very last 
> minute :-P ).
>
>
> 
>Location
> 
> Amsterdam, Felix Meritis building (www.felixmeritis.nl)
> In the Shaffyroom (upstairs).
>
> See a Google Map of the venue: 
> http://maps.google.com/maps?f=q&hl=en&geocode&time&date&ttype&q=Keizersgracht%20324,%20amsterdam&sll=37.0625,-95.677068&sspn=26.339531,58.710937&ie=UTF8&z=16&iwloc=addr&om=1
>
> 
>Logistics
> 
>
> There'll be free coffee and tea available in the room all day. Other drinks 
> and small food can be bought downstairs in the bar. At 18:00 hours, pasta is 
> served - free! Free as in beer! Thanks to our sponsors! Hurray!
> However, the beer itself is not free. Although this *is* open source, we 
> kindly ask you to pay for your own beers :). To make things easier, there's a 
> bar available in the room where you can dispose of your money and get beers 
> in return.
>
> 
>Sponsors
> 
>
> The sponsors that made this event possible are Func, Hippo, Servoy and 
> Topicus (in no particular order). They'll be around at the meetup - pay them 
> a visit :)
>
>
> Looking forward to meeting you all this Friday,
>
> Arjé Cahn
>
>
> -
> 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: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
just something like:

setModel(new CompoundPropertyModel(report));

On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> ok, so the model is there, but the object inside it suddenly is null?
> what kind of model is it?
>
> -igor
>
>
> On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > No, they're "detached" versions which are basically clones so there's no
> > hibernate proxies involved.
> >
> >
> > On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > these objects are not by chance hibernate objects? because if you
> > > serialize and then deserialize all the collections come back as empty
> > > standard jdk collections instead of hibernate proxies sometimes
> > >
> > > -igor
> > >
> > >
> > > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > No transient fields.  Everything is serializable.  We're storing the
> > > > complete objects in the model for a number of reasons.  When we come
> > > back to
> > > > the page we have some object but the state is gone.  I think it's
> > > because
> > > > we're redirecting back to the same page class/type so the old one
> gets
> > > > dumped.  Probably what I'll have to do,then, is to build special
> > > subclasses
> > > > for the drilldown so that the page type changes on each step.
>  Unless
> > > > there's some way to increment the number of versions per pagemap...
> > > >
> > > >
> > > > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > > >
> > > > > But it shouldn't matter where the page comes from. If it is
> serialized
> > > > > from
> > > > > disk
> > > > > or serialized in the session somehow by the container, You still
> > > should be
> > > > > able
> > > > > to fully construct all your data again in the objects.
> > > > >
> > > > > So what is suddenly null? All the transient fields? Why aren't
> those
> > > > > reloaded
> > > > > from a database or something?
> > > > >
> > > > > johan
> > > > >
> > > > >
> > > > >
> > > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > We have a page that presents a report in which we can "drill
> down"
> > > into
> > > > > > the
> > > > > > data.  When this happens, we setResponsePage() back to a new
> > > instance of
> > > > > > the
> > > > > > page with some different parameters and that all works dandy.
>  But
> > > when
> > > > > we
> > > > > > hit the back button, it seems the old version is gone.  All the
> > > model
> > > > > data
> > > > > > comes back null (though the model object itself is not).  So
> when we
> > > > > click
> > > > > > back and then click another link to drilldown in another
> direction
> > > we
> > > > > get
> > > > > > NPEs.  From stepping through DiskPageStore, et. al, it would
> appear
> > > that
> > > > > > since the page class isn't changing, the new page bumps the old
> one
> > > from
> > > > > > the
> > > > > > cache so that only one version of the page.
> > > > > >
> > > > > > Am I correctly interpreting what I'm seeing and is there a way
> to
> > > set
> > > > > the
> > > > > > number of versions of a page?
> > > > > >
> > > > >
> > > >
> > >
> > > -
> > > 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: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
ok, so the model is there, but the object inside it suddenly is null?
what kind of model is it?

-igor


On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> No, they're "detached" versions which are basically clones so there's no
> hibernate proxies involved.
>
>
> On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > these objects are not by chance hibernate objects? because if you
> > serialize and then deserialize all the collections come back as empty
> > standard jdk collections instead of hibernate proxies sometimes
> >
> > -igor
> >
> >
> > On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > No transient fields.  Everything is serializable.  We're storing the
> > > complete objects in the model for a number of reasons.  When we come
> > back to
> > > the page we have some object but the state is gone.  I think it's
> > because
> > > we're redirecting back to the same page class/type so the old one gets
> > > dumped.  Probably what I'll have to do,then, is to build special
> > subclasses
> > > for the drilldown so that the page type changes on each step.  Unless
> > > there's some way to increment the number of versions per pagemap...
> > >
> > >
> > > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > >
> > > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > > >
> > > > But it shouldn't matter where the page comes from. If it is serialized
> > > > from
> > > > disk
> > > > or serialized in the session somehow by the container, You still
> > should be
> > > > able
> > > > to fully construct all your data again in the objects.
> > > >
> > > > So what is suddenly null? All the transient fields? Why aren't those
> > > > reloaded
> > > > from a database or something?
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > We have a page that presents a report in which we can "drill down"
> > into
> > > > > the
> > > > > data.  When this happens, we setResponsePage() back to a new
> > instance of
> > > > > the
> > > > > page with some different parameters and that all works dandy.  But
> > when
> > > > we
> > > > > hit the back button, it seems the old version is gone.  All the
> > model
> > > > data
> > > > > comes back null (though the model object itself is not).  So when we
> > > > click
> > > > > back and then click another link to drilldown in another direction
> > we
> > > > get
> > > > > NPEs.  From stepping through DiskPageStore, et. al, it would appear
> > that
> > > > > since the page class isn't changing, the new page bumps the old one
> > from
> > > > > the
> > > > > cache so that only one version of the page.
> > > > >
> > > > > Am I correctly interpreting what I'm seeing and is there a way to
> > set
> > > > the
> > > > > number of versions of a page?
> > > > >
> > > >
> > >
> >
> > -
> > 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: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Suad AlShamsi
I faced the same problem with Arabic character. I used native2ascii.exe 
to encode the property files and I used encoding="utf-8" in my html 
pages and then it worked.


Regards,
Suad

abaijal wrote:

Hi All

I am new to wicket framework and am trying to implement internationalization
for Russian Characters. 


When displaying Russian characters on screen, Wicket rendering displays
garbage values 


I am using Wicket 1.2.6 and Weblogic 8.1 SP3

Things I have already tried :
1)HTML pages have charset as UTF- 8 as part of the META tag. 
2) The Property files and HTML files have been encoded as UTF-8 files so as
to save any non-ascii characters.
3 ) Checked settings of Browsers. All External internet links with non-ascii
characters work properly in browser. Tried both on IE6 and on Firefox 2.0

My Observations : 
1) While trying to display non ascii characters , garbage value appears on

the screen. Apart from pulling data from property file I have also hard
coded non-ascii characters in HTML file. Even hardcoded characters do not
get displayed properly on web browser.
2) The HTML files are present in WEB-INF/classes/.. folders. If I place the
same HTML file outside the WEB-INF folder and put a direct  link  to the
html file, russian characters appear correctly on the screen.
3 ) Using the method getLocale().getLanguage() I tried to display "Russian"
in non-ascii character. This phrase appeared correctly on browser screen.

It seems that when Wicket tries to render the Web-page the non-ascii
characters are getting distorted. 
  



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



Re: wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Antoine Angénieux

Hi Igor,

Igor Vaynberg a écrit :

please add a jira ticket for this


Done !

https://issues.apache.org/jira/browse/WICKET-1188

Cheers,

Antoine.



-igor


On Nov 27, 2007 3:25 AM, Antoine Angénieux <[EMAIL PROTECTED]> wrote:

Hi guys,

I'm using the latest trunk version. I have a border (non transparent) in
which portions of markup are made visible / invisible by the use of the
wicket enclosure tag. Here is an example markup :




   
  
   



And I always get an exception in the Enclosure
getChildComponent(CharSequence childId).

I investigated that method a bit, and when looking up for the component
whild id childId in the enclosure parent (thus the
Border.BorderBodyContainer component), the only child visited is... the
Enclosure element!

Then, a MarkupException is thrown by the getComponentChild() method
(line 136) complaining that it could not find my component...

I saw that the code dealing with transparent resolvers, and component
children types (arrays or single child) is rather "touchy" and did not
try to tweak it, as I feared it would cause more dammage than good ;)

I cannot tell you if this problem exists in other wicket versions, as I
rarely need the enclosure tag, and for those rare occasions, I
encountered no problem at all...

I've used a WebMarkupContainer on the div as a workaround, but since
that is exactly the purpose of the  tag, that's
juste too bad :D

Anybody else god bittent by this one?

Cheers,

Antoine.





-
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: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
No, they're "detached" versions which are basically clones so there's no
hibernate proxies involved.

On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> these objects are not by chance hibernate objects? because if you
> serialize and then deserialize all the collections come back as empty
> standard jdk collections instead of hibernate proxies sometimes
>
> -igor
>
>
> On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > No transient fields.  Everything is serializable.  We're storing the
> > complete objects in the model for a number of reasons.  When we come
> back to
> > the page we have some object but the state is gone.  I think it's
> because
> > we're redirecting back to the same page class/type so the old one gets
> > dumped.  Probably what I'll have to do,then, is to build special
> subclasses
> > for the drilldown so that the page type changes on each step.  Unless
> > there's some way to increment the number of versions per pagemap...
> >
> >
> > On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > > Yes in wicket 1.3 there is only 1 active page per pagemap
> > >
> > > But it shouldn't matter where the page comes from. If it is serialized
> > > from
> > > disk
> > > or serialized in the session somehow by the container, You still
> should be
> > > able
> > > to fully construct all your data again in the objects.
> > >
> > > So what is suddenly null? All the transient fields? Why aren't those
> > > reloaded
> > > from a database or something?
> > >
> > > johan
> > >
> > >
> > >
> > > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > >
> > > > We have a page that presents a report in which we can "drill down"
> into
> > > > the
> > > > data.  When this happens, we setResponsePage() back to a new
> instance of
> > > > the
> > > > page with some different parameters and that all works dandy.  But
> when
> > > we
> > > > hit the back button, it seems the old version is gone.  All the
> model
> > > data
> > > > comes back null (though the model object itself is not).  So when we
> > > click
> > > > back and then click another link to drilldown in another direction
> we
> > > get
> > > > NPEs.  From stepping through DiskPageStore, et. al, it would appear
> that
> > > > since the page class isn't changing, the new page bumps the old one
> from
> > > > the
> > > > cache so that only one version of the page.
> > > >
> > > > Am I correctly interpreting what I'm seeing and is there a way to
> set
> > > the
> > > > number of versions of a page?
> > > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse
In my WicketApplication class I have mounted a URL with the URIRequestTargetUrlCodingStrategy to serve files in my virtualhosted 
CMS-application written in Wicket 1.3. The problem with this is that it returns a header like this with the file it serves up:


  HTTP/1.1 200 OK
  Expires: Thu, 01 Jan 1970 00:00:00 GMT
  Set-Cookie: JSESSIONID=1ugsnhj1evodg;Path=/
  Content-Type: image/jpeg; charset=UTF-8
  Content-Length: 55925
  Connection: keep-alive
  Server: Jetty(6.1.5)

The Expires: header obviously prevents the client from caching the result. How 
can I override this header?

My implementation is like this:

mount(new URIRequestTargetUrlCodingStrategy("/files") {
@Override
public IRequestTarget decode(RequestParameters requestParameters) {
// TODO: Better path-checking
final String uri = getURI(requestParameters).replaceAll("\\.\\.", 
"");
/* Redirect to / if empty result, maybe return 404 instead? */
if ("".equals(uri))
return new RedirectRequestTarget("/");

/* Get file for this instance */
File file = new File(((TornadoWebSession) 
(Session.get())).getInstancePath() + File.separator + uri);
return new ResourceStreamRequestTarget(new 
FileResourceStream(file));
}
});

Sincerely,
Edvin Syse

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



Issue with Internationalization of Non ascii characters

2007-11-27 Thread abaijal

Hi All

I am new to wicket framework and am trying to implement internationalization
for Russian Characters. 

When displaying Russian characters on screen, Wicket rendering displays
garbage values 

I am using Wicket 1.2.6 and Weblogic 8.1 SP3

Things I have already tried :
1)HTML pages have charset as UTF- 8 as part of the META tag. 
2) The Property files and HTML files have been encoded as UTF-8 files so as
to save any non-ascii characters.
3 ) Checked settings of Browsers. All External internet links with non-ascii
characters work properly in browser. Tried both on IE6 and on Firefox 2.0

My Observations : 
1) While trying to display non ascii characters , garbage value appears on
the screen. Apart from pulling data from property file I have also hard
coded non-ascii characters in HTML file. Even hardcoded characters do not
get displayed properly on web browser.
2) The HTML files are present in WEB-INF/classes/.. folders. If I place the
same HTML file outside the WEB-INF folder and put a direct  link  to the
html file, russian characters appear correctly on the screen.
3 ) Using the method getLocale().getLanguage() I tried to display "Russian"
in non-ascii character. This phrase appeared correctly on browser screen.

It seems that when Wicket tries to render the Web-page the non-ascii
characters are getting distorted. 
-- 
View this message in context: 
http://www.nabble.com/Issue-with-Internationalization-of-Non-ascii-characters-tf4883325.html#a13975999
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: replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread Igor Vaynberg
you cant replace something like:

 with a
label, because then your markup is

 and labels
do not support inner components

makes sense?

-igor


On Nov 27, 2007 7:03 AM, 非 谢 <[EMAIL PROTECTED]> wrote:
> hi,
>
> In wicket1.3-rc1, When I try to replace a WebMarkupContainer that has nested 
> components with another component in AjaxLink.onClick, wicket says
>
> "Expected close tag for '' Possible attempt to 
> embed component(s) '' in the body of this 
> component which discards its body
> "
> Is this an expected result?  I think the above senario is quite common. 
> Currently I am using a fragment to represent the "default" content of the 
> container which can be replaced without any complaint but this feels not that 
> natural.
>
> _
> Discover the new Windows Vista
> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE


Re: mounting large number of url

2007-11-27 Thread Igor Vaynberg
you wouldnt mount one per user, you would do it like this:

mount(new indexedurlcodingstrategy("/user", userprofilepage.class));

class UserProfilePage extends WebPage {
  public UserProfilePage(PageParameters params) {
   String userid=params.get("0");
  }
}

then your urls are myapp.com/user/username

and one page can handle all usernames

makes sense?

-igor


On Nov 27, 2007 7:22 AM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> Hi.
>
> In my app I would like to have a easy url for a user, say:
>
> http://myapp.com/username
>
> to make this, in wicket, I only know the mount url way.
> Anyone know about problems in adding a large number of url this way?
>
> Just in case, any alternatives?
>
> Thanks.
>
> --
> Daniele Dellafiore
> http://ildella.wordpress.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: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
these objects are not by chance hibernate objects? because if you
serialize and then deserialize all the collections come back as empty
standard jdk collections instead of hibernate proxies sometimes

-igor


On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> No transient fields.  Everything is serializable.  We're storing the
> complete objects in the model for a number of reasons.  When we come back to
> the page we have some object but the state is gone.  I think it's because
> we're redirecting back to the same page class/type so the old one gets
> dumped.  Probably what I'll have to do,then, is to build special subclasses
> for the drilldown so that the page type changes on each step.  Unless
> there's some way to increment the number of versions per pagemap...
>
>
> On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> > Yes in wicket 1.3 there is only 1 active page per pagemap
> >
> > But it shouldn't matter where the page comes from. If it is serialized
> > from
> > disk
> > or serialized in the session somehow by the container, You still should be
> > able
> > to fully construct all your data again in the objects.
> >
> > So what is suddenly null? All the transient fields? Why aren't those
> > reloaded
> > from a database or something?
> >
> > johan
> >
> >
> >
> > On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> >
> > > We have a page that presents a report in which we can "drill down" into
> > > the
> > > data.  When this happens, we setResponsePage() back to a new instance of
> > > the
> > > page with some different parameters and that all works dandy.  But when
> > we
> > > hit the back button, it seems the old version is gone.  All the model
> > data
> > > comes back null (though the model object itself is not).  So when we
> > click
> > > back and then click another link to drilldown in another direction we
> > get
> > > NPEs.  From stepping through DiskPageStore, et. al, it would appear that
> > > since the page class isn't changing, the new page bumps the old one from
> > > the
> > > cache so that only one version of the page.
> > >
> > > Am I correctly interpreting what I'm seeing and is there a way to set
> > the
> > > number of versions of a page?
> > >
> >
>

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



Re: Manually handle post data

2007-11-27 Thread Igor Vaynberg
point the sytem to a bookmarkable page that has the (PageParameters
params) constructor mounted with querystring url coding strategy

then the posted params are in your page parameters

-igor


On Nov 27, 2007 5:24 AM, Pills <[EMAIL PROTECTED]> wrote:
>
>
> Michael Sparer wrote:
> >
> > I you really wanna do this manually, this code might help you: Map map =
> > ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
> >
> > regards
> >
>
> For me it doesn't matter... This way is quite good, but if you've a better
> idea (the wicket way) I'll use it ;)
>
> --
> View this message in context: 
> http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13970567
>
> Sent from the Wicket - User mailing list archive at 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: wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Igor Vaynberg
please add a jira ticket for this

-igor


On Nov 27, 2007 3:25 AM, Antoine Angénieux <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm using the latest trunk version. I have a border (non transparent) in
> which portions of markup are made visible / invisible by the use of the
> wicket enclosure tag. Here is an example markup :
>
> 
> 
> 
>
>   
>
> 
> 
>
> And I always get an exception in the Enclosure
> getChildComponent(CharSequence childId).
>
> I investigated that method a bit, and when looking up for the component
> whild id childId in the enclosure parent (thus the
> Border.BorderBodyContainer component), the only child visited is... the
> Enclosure element!
>
> Then, a MarkupException is thrown by the getComponentChild() method
> (line 136) complaining that it could not find my component...
>
> I saw that the code dealing with transparent resolvers, and component
> children types (arrays or single child) is rather "touchy" and did not
> try to tweak it, as I feared it would cause more dammage than good ;)
>
> I cannot tell you if this problem exists in other wicket versions, as I
> rarely need the enclosure tag, and for those rare occasions, I
> encountered no problem at all...
>
> I've used a WebMarkupContainer on the div as a workaround, but since
> that is exactly the purpose of the  tag, that's
> juste too bad :D
>
> Anybody else god bittent by this one?
>
> Cheers,
>
> Antoine.
>
>
>
>
>
> -
> 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: Add GET parameter to ajax call

2007-11-27 Thread Igor Vaynberg
but you can still override getcallbackurl()...even if it is inside the fragment

-igor


On Nov 27, 2007 2:43 AM, Michael Sparer <[EMAIL PROTECTED]> wrote:
>
> I was wondering if there is an easy way to add a GET parameter to an
> AjaxLink. Sothat I can get the parameter out of the request's parameter map.
>
> I know there's the possibility to make a javascript function that dispatches
> the call (and adds the parameters) on client side and an
> AbstractDefaultAjaxBehavior that receives the call on server side, but since
> my AjaxLink lies inside a Fragment and therefore the .getCallBackURL()
> method can't be called on instantiation ...
>
> -
> Michael Sparer
> http://talk-on-tech.blogspot.com
> --
> View this message in context: 
> http://www.nabble.com/Add-GET-parameter-to-ajax-call-tf4880991.html#a13968582
> Sent from the Wicket - User mailing list archive at 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: ListMultipleChoice to take choices model from parent

2007-11-27 Thread Gabor Szokoli
On Nov 27, 2007 5:52 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> you can create your own subclass that does what you want...but thats
> about it short of writing your own component

Thanks, just wanted to make sure I'm not overlooking some more
straight-forward way of doing this.


Gabor Szokoli

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



Re: IDataProvider Best Practice for multiple POJOs

2007-11-27 Thread Martijn Dashorst
Hmm, not sure what you are getting at... The IDataProvider is just a class,
so you can do anything inside.
Possibly you should create a multi-pojo Model that you return for each
element in the original list?

Martijn

On Nov 27, 2007 3:27 AM, pwillemann <[EMAIL PROTECTED]> wrote:

>
> All the IDataProvider implementations I have seen use a single POJO.  What
> about an example with multiple POJOs?
>
> For a single POJO I normally have a DataProvider object that gets data
> from
> my DAO object.   For multiple POJOs would it be best to have a
> DataProvider
> object that gets data from a DAO which is based on a query of multiple
> POJOs
> (tables in my case) ?  I am not immediately sure of the ramifications of
> doing this.  Is there a better way that I just don't realize?
> --
> View this message in context:
> http://www.nabble.com/IDataProvider-Best-Practice-for-multiple-POJOs-tf4879377.html#a13963492
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


Re: Floating Column

2007-11-27 Thread Matej Knopp
On Nov 27, 2007 3:23 PM, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> It is up to you how to style the markup. A little of CSS can do all you need.
little CSS? for a floating column that says on screen while other
scroll? Heh, I doubt it :)
At least if you want to work it across different browsers.

-Matej
>
> Alex
>
>
>
> dariusz.holda wrote:
> >
> > Hi,
> > Is it possible in Wicket to do a floating column? I have a DataView that
> > has so many columns that it expands over one screen. I would like to make
> > one column to stay on the screen all the time even if a user scrolls
> > horizontally to the other side of the DataView. Has anybody tried that?
> > Any ideas where to start?
> >
> > Cheers,
> > Dariusz
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Floating-Column-tf4881169.html#a13971775
>
> Sent from the Wicket - User mailing list archive at 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: problems adding nodes to a BaseTree

2007-11-27 Thread Matej Knopp
Hi,

On Nov 27, 2007 12:42 PM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> Hello,
>
> thank you very much for that hint. Since I want to update the tree as
> often as possible at every user interaction and I don't want to add a
> call to updateNotes() at every possible link or button I will try
> detect wether the rendering was forced by an action on the tree or by
> something else. Should'nt be a problem since I have the callback
> functions.

What does it mean "update tree as often as possible"? The only thing
you have to do when adding/removing node is to invoke the proper
listener callbacks, thus you should be using methods in
DefaultTreeModel (insertNodeInto, removeNodeFromParent, etc.). If you
modify the tree using these methods DefaultTreeModel makes sure the
proper listener callbacks are invoked and the tree is notified about
the changes and updates itself properly.

-Matej
>
> Again, thank you very much I think I got it now :-)
>
>
> Greetings
>
> Thomas
>
> 2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
> > Hi,
> >
> > problem is that you rebuild the entire tree in onBeforeRender().
> > onBeforeRender is invoked on every render, even when you
> > expand/collapse a node. So you collapse a node but right afterwards
> > you rebuild the entire tree, that's why you don't see the node being
> > collapsed.
> >
> > Try moving the updateNodes() call to link's onClick().
> >
> > -Matej
> >
> > On Nov 27, 2007 10:12 AM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > > Hello again,
> > >
> > > I tried to create an as simple as possible example quick start (I hope
> > > this is what you meant). The original code already would have been too
> > > bloated:
> > >
> > > http://www2.informatik.hu-berlin.de/~krause/examples/BaseTreeProblemQuickstart.zip
> > >
> > > Hopefully somebody sees where my fault is because I have the feeling
> > > that even working since quite a long time with Wicket I didn't
> > > understand some very basic stuff and that's why it is failing.
> > >
> > > Greetings
> > >
> > > Thomas
> > >
> > > 2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
> > >
> > > > It's hard to tell without any code. Basically, if you have proper
> > > > listeners fired in your model the tree should update itself.
> > > > Alternatively, you can try calling invalidateAll() in your page
> > > > onBeforeRender() (before calling super.onBeforeRender).
> > > >
> > > > Can you post a quickstart?
> > > >
> > > > -Matej
> > > >
> > > > On Nov 26, 2007 6:33 PM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > > > > Hello,
> > > > >
> > > > > since a few days I'm struggling with a problem I didn't find any 
> > > > > solution yet.
> > > > >
> > > > > I have two pages containing some Panels and a BaseTree (I'm using my
> > > > > own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used.
> > > > > What I want is that the tree is updated every time the page is updated
> > > > > due to some actions done by the user. This works correctly for page
> > > > > number one but not for the other one. Page 2 shows the updated tree
> > > > > (all nodes are expanded) but there is no visual feedback when a node
> > > > > is selected even if the selection on "the code side" works. It is not
> > > > > possible for the user to collapse a node as well.
> > > > >
> > > > > I have some questions related with the problem. Before I forget to
> > > > > mention it: I use 1.3.0 RC1.
> > > > >
> > > > > 1) Is it OK using onBeforeRender() (overridden at the page, super is
> > > > > called *after* I updated everything) to update the model of the tree?
> > > > >
> > > > > 2) Should I update the model of the tree by removing and adding nodes
> > > > > to the root-node and then calling reload() on the DefaultTreeModel?
> > > > > The more I think about it I would say "no" since this is a method from
> > > > > the Swing-API. But it works on page 1 (would't work if it is not
> > > > > there). Calling updateTree() on the AbstractTree has no effect since i
> > > > > don't use AJAX.
> > > > >
> > > > > If you need any code or more explanation I will provide it of course.
> > > > > I hope somebody has an idea what I'm doing wrong.
> > > > >
> > > > > Thank you for your help.
> > > > >
> > > > > Thomas Krause
> > > > >
> > > > > -
> > > > > 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]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additio

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Igor Vaynberg
here is what this should be doing:

a) it should check that it is attached to an input tag
b) it should call setrenderbodyonly(true) on itself
c) it should carry over any attributes from the panel tag to the inner input tag

just my two cents

all of these changes can be implemented now as well, since they do not break api

well maybe at this point we should make (a) log a warning rather then
error out and leave a todo for 1.4 to switch to error

-igor


On Nov 27, 2007 1:31 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> i will add a big fat notice to the class's javadoc.
> it wouldn't hurt either to add more examples to wicket-examples...
>
> will do so later this day...
>
>   Gerolf
>
>
> On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:
>
> > I had the same problem the first time i tried using the component, so
> > I would have to agree that some sort of warning would be handy
> >
> > On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> > > hi matt,
> > >
> > > DateField is derived from FormComponentPanel and thus the markup should
> > look
> > > something like this:
> > >
> > > 
> > >
> > > maybe we should check that the associated tag is not an input tag, as
> > this
> > > is a rather common pitfall,
> > > or rename DateField to DateFieldPanel, but it's most probably too late
> > for
> > > that.
> > >
> > > Eelco, wdyt?
> > >
> > >   Gerolf
> > >
> > >
> > > On Nov 27, 2007 10:08 AM, mraible <[EMAIL PROTECTED]> wrote:
> > >
> > > >
> > > > Changing the HTML from:
> > > >
> > > > 
> > > >
> > > > To:
> > > >
> > > > 
> > > >
> > > > Solved my problem.
> > > >
> > > > Unfortunately, there doesn't seem to be a way (from markup) to add my
> > > > class
> > > > classes (text small) to the input field rendered by this component.
> > > >
> > > > Matt
> > > >
> > > >
> > > > mraible wrote:
> > > > >
> > > > > For some reason, when using the new
> > extensions.yui.calendar.DateField, I
> > > > > end up with two text fields on my page. I'm sure it's something I'm
> > > > doing
> > > > > wrong, but I can't see the solution at 2 a.m. (and I haven't even
> > been
> > > > > drinking!). ;-)
> > > > >
> > > > > Java:
> > > > >
> > > > > add(new DateField("birthday"), new ResourceModel("user.birthday"));
> > > > >
> > > > > HTML:
> > > > >
> > > > > 
> > > > >  > > > > key="user.birthday">Birthday:
> > > > > 
> > > > >  > > > > size="11"/>
> > > > > [birthday feedback]
> > > > > 
> > > > > 
> > > > >
> > > > > The rendered markup has two input fields. Any ideas how to fix?
> > > > >
> > > > > 
> > > > > Birthday:
> > > > > 
> > > > >  > name="birthday">
> > > > >
> > > > >  > name="birthday:date"
> > > > > id="date3"/>
> > > > >  
> > > > >
> > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > > 
> > > > >
> > > > > I've attached a screenshot of what it looks like.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Matt
> > > > >
> > > > >  http://www.nabble.com/file/p13967061/twodatefields.png
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > > > Sent from the Wicket - User mailing list archive at 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]
> >
> >
>

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



Re: ListMultipleChoice to take choices model from parent

2007-11-27 Thread Igor Vaynberg
you can create your own subclass that does what you want...but thats
about it short of writing your own component

-igor

On Nov 27, 2007 12:59 AM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> We sometimes need a component for editing sets of arbitrary strings.
> We currently use a ListMultipleChoice component, whose choices model
> contains the actual set, and selected elements can be deleted with a
> button.
> Is there a simple way to instruct ListMultipleChoice to use the model
> looked up from its parents CompoundPropertyModel by its wicket:id as
> its "choices" model instead of its "selected elements" model? I can do
> new PropertyModel(parentModel,"myWicketId"), but its clumsy and more
> static.
> Or is there some other component we should be using to make a
> "free-text palette" set editor?
> (regular palette does not work, as we must have a text entry field for
> adding new elements, there is no finite universal set to chose from.)
>
>
> Thank you in advance for any ideas!
>
> Gabor Szokoli
>
> -
> 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: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
No transient fields.  Everything is serializable.  We're storing the
complete objects in the model for a number of reasons.  When we come back to
the page we have some object but the state is gone.  I think it's because
we're redirecting back to the same page class/type so the old one gets
dumped.  Probably what I'll have to do,then, is to build special subclasses
for the drilldown so that the page type changes on each step.  Unless
there's some way to increment the number of versions per pagemap...

On Nov 27, 2007 11:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:

> Yes in wicket 1.3 there is only 1 active page per pagemap
>
> But it shouldn't matter where the page comes from. If it is serialized
> from
> disk
> or serialized in the session somehow by the container, You still should be
> able
> to fully construct all your data again in the objects.
>
> So what is suddenly null? All the transient fields? Why aren't those
> reloaded
> from a database or something?
>
> johan
>
>
>
> On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
>
> > We have a page that presents a report in which we can "drill down" into
> > the
> > data.  When this happens, we setResponsePage() back to a new instance of
> > the
> > page with some different parameters and that all works dandy.  But when
> we
> > hit the back button, it seems the old version is gone.  All the model
> data
> > comes back null (though the model object itself is not).  So when we
> click
> > back and then click another link to drilldown in another direction we
> get
> > NPEs.  From stepping through DiskPageStore, et. al, it would appear that
> > since the page class isn't changing, the new page bumps the old one from
> > the
> > cache so that only one version of the page.
> >
> > Am I correctly interpreting what I'm seeing and is there a way to set
> the
> > number of versions of a page?
> >
>


Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
Yes in wicket 1.3 there is only 1 active page per pagemap

But it shouldn't matter where the page comes from. If it is serialized from
disk
or serialized in the session somehow by the container, You still should be
able
to fully construct all your data again in the objects.

So what is suddenly null? All the transient fields? Why aren't those
reloaded
from a database or something?

johan



On Nov 27, 2007 5:01 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:

> We have a page that presents a report in which we can "drill down" into
> the
> data.  When this happens, we setResponsePage() back to a new instance of
> the
> page with some different parameters and that all works dandy.  But when we
> hit the back button, it seems the old version is gone.  All the model data
> comes back null (though the model object itself is not).  So when we click
> back and then click another link to drilldown in another direction we get
> NPEs.  From stepping through DiskPageStore, et. al, it would appear that
> since the page class isn't changing, the new page bumps the old one from
> the
> cache so that only one version of the page.
>
> Am I correctly interpreting what I'm seeing and is there a way to set the
> number of versions of a page?
>


Re: Custom implementation of TabbedPanel HTML

2007-11-27 Thread Igor Vaynberg
subclass tabbedpanel and put that markup into the html file. just make
sure all the components and nesting matches the orginal.

-igor


On Nov 27, 2007 12:43 AM, Alexander Landsnes Keül
<[EMAIL PROTECTED]> wrote:
>
> Is there some way for me to control the HTML of the TabbedPanel 
> implementation? I need to provide a tab panel with tables for our designers, 
> however that's proven to be a mite hard to get done. A solution I can see is 
> to rewrite the TabbedPanel class, but that's not something I'd prefere to do. 
> Makes me do all the maintainance on it, but right now that's the only 
> solution I can see to it.
>
> What I'm really after is having the TabbedPanel html look something like this:
>
> 
> 
> 
> 
> a href="#" wicket:id="link"> wicket:id="title">[[tab title]]
> 
> 
> 
> 
>
>
> Alexander
>
>
> -
> 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: InlineFrame and Ajax Timer failing

2007-11-27 Thread Jeremy Levy
I fixed it.

I was creating the InlineFrame by passing in a Page to the constructor, I
switched it to MyPage.class and it worked... Not quite sure why though..

j

On Nov 27, 2007 10:29 AM, Jeremy Levy <[EMAIL PROTECTED]> wrote:

> I've created a Ajax Timer similar to the one on the example page, it works
> well, and I use it several places on my site.  However when it's added to
> the same page as a InlineFrame/Iframe the Ajax callback fails with the
> following error:
>
> *INFO: *
> *INFO: *
> Initiating Ajax GET request on 
> /1/m?x=R..t85w&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
> 0.9373848969782422
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (0 characters)
> *INFO: *
> *ERROR: *Error while parsing response: Could not find root  
> element
>
> *INFO: *Invoking post-call handler(s)...
> *INFO: *Invoking failure handler(s)..
>
> I've been messing with it for sometime now and can't see to get a grasp on
> whats not functioning properly...
>
> J
>


only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
We have a page that presents a report in which we can "drill down" into the
data.  When this happens, we setResponsePage() back to a new instance of the
page with some different parameters and that all works dandy.  But when we
hit the back button, it seems the old version is gone.  All the model data
comes back null (though the model object itself is not).  So when we click
back and then click another link to drilldown in another direction we get
NPEs.  From stepping through DiskPageStore, et. al, it would appear that
since the page class isn't changing, the new page bumps the old one from the
cache so that only one version of the page.

Am I correctly interpreting what I'm seeing and is there a way to set the
number of versions of a page?


Amsterdam meetup: the agenda!

2007-11-27 Thread Arje Cahn
Hi all,

I'm proud to present our heavily packed agenda for the Amsterdam Wicket Meetup 
this Friday!

We're going sky-high with our little Wicket Meetup... 86 attendees already!
If still haven't signed up, you're not too late! Rush yourself to
http://cwiki.apache.org/WICKET/community-meetups.html



Programme
  Friday, November 30


12:00 Room opens, Wifi connection, power outlets and coffee available.
  Walk-in hackaton for whoever likes to join. 
12:30 Q/A Ask the experts
  Got a question for your Wicket project? Feel free to ask!
14:30 End of hackaton

15:00 Opening talk - Arjé Cahn
15:15 Apache Wicket: web applications with just Java - Martijn Dashorst 
15:45 Wicket and Swing from one codebase - Johan Compagner
16:15 wicket-contrib-gmap2 - Martin Funk
16:30 [To be determined]
17:00 Wicket Portlets primer - Ate Douma
17:30 Dynamic markup and on the fly components (on binding XML to Wicket) - 
Wouter Huijnink
18:00 Dinner pasta buffet
19:00 Introduction to Wicket Security - Maurice Marrink
19:30 A plugin architecture for Wicket - Niels van Kampenhout
20:00 SessionStores, Pagemaps and Pages.. What does wicket store (and where) - 
Johan Compagner
20:30 Wicket Live On Stage! A production case study (with lots of AJAX) - 
Martijn Dashorst
21:00 Closing - Arjé Cahn

21:05 Sponsored drinks!

23:00 Bar closes

Please note that the programme is subject to change (even up to the very last 
minute :-P ).



   Location

Amsterdam, Felix Meritis building (www.felixmeritis.nl)
In the Shaffyroom (upstairs). 

See a Google Map of the venue: 
http://maps.google.com/maps?f=q&hl=en&geocode&time&date&ttype&q=Keizersgracht%20324,%20amsterdam&sll=37.0625,-95.677068&sspn=26.339531,58.710937&ie=UTF8&z=16&iwloc=addr&om=1


   Logistics


There'll be free coffee and tea available in the room all day. Other drinks and 
small food can be bought downstairs in the bar. At 18:00 hours, pasta is served 
- free! Free as in beer! Thanks to our sponsors! Hurray!
However, the beer itself is not free. Although this *is* open source, we kindly 
ask you to pay for your own beers :). To make things easier, there's a bar 
available in the room where you can dispose of your money and get beers in 
return.


   Sponsors


The sponsors that made this event possible are Func, Hippo, Servoy and Topicus 
(in no particular order). They'll be around at the meetup - pay them a visit :)


Looking forward to meeting you all this Friday,

Arjé Cahn


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



InlineFrame and Ajax Timer failing

2007-11-27 Thread Jeremy Levy
I've created a Ajax Timer similar to the one on the example page, it works
well, and I use it several places on my site.  However when it's added to
the same page as a InlineFrame/Iframe the Ajax callback fails with the
following error:

*INFO: *
*INFO: *
Initiating Ajax GET request on
/1/m?x=R..t85w&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
0.9373848969782422
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (0 characters)
*INFO: *
*ERROR: *
Error while parsing response: Could not find root  element
*INFO: *Invoking post-call handler(s)...
*INFO: *Invoking failure handler(s)..

I've been messing with it for sometime now and can't see to get a grasp on
whats not functioning properly...

J


mounting large number of url

2007-11-27 Thread Daniele Dellafiore
Hi.

In my app I would like to have a easy url for a user, say:

http://myapp.com/username

to make this, in wicket, I only know the mount url way.
Anyone know about problems in adding a large number of url this way?

Just in case, any alternatives?

Thanks.

-- 
Daniele Dellafiore
http://ildella.wordpress.com/

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



Re: Display enum in a RadioChoice

2007-11-27 Thread Jonas
> Yes i've considered RadioGroup and Radio but my question was also for
> other components (in fact i need to set the class of , and
>  tag and surrely many others)

have a look at AttributeModifier and AttributeAppender.

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



replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread 非 谢
hi, 

In wicket1.3-rc1, When I try to replace a WebMarkupContainer that has nested 
components with another component in AjaxLink.onClick, wicket says

"Expected close tag for '' Possible attempt to 
embed component(s) '' in the body of this 
component which discards its body
"
Is this an expected result?  I think the above senario is quite common. 
Currently I am using a fragment to represent the "default" content of the 
container which can be replaced without any complaint but this feels not that 
natural. 

_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

Re: testcase click button

2007-11-27 Thread Newgro

If youre using ajax call you should use 
tester.executeAjaxEvent(componentPath, event)

Am i right here that it's not possible to click on a "normal" button?

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/testcase-click-button-tf4682808.html#a13972252
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: Display enum in a RadioChoice

2007-11-27 Thread Gervais

Ok, thank you for the setSuffix() and setPrefix().

Yes i've considered RadioGroup and Radio but my question was also for 
other components (in fact i need to set the class of , and 
 tag and surrely many others)



Jonas a écrit :

The '' is the default suffix (see RadioChoice#setSuffix and
RadioChoice#setPrefix).

AFAIK there's no way to set a class attribute using RadioChoice. Have
you considered
using RadioGroup and Radio? They're much more flexible than RadioChoice.


On Nov 27, 2007 2:56 PM, Gervais <[EMAIL PROTECTED]> wrote:
  

Ok, thanks.

But if i need to set a class name for each items how can i do that ?
I need to get and output like that :


And maybe can i also remove the '' between each radio ?



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



__ NOD32 2688 (20071127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



  


Re: Display enum in a RadioChoice

2007-11-27 Thread Jonas
The '' is the default suffix (see RadioChoice#setSuffix and
RadioChoice#setPrefix).

AFAIK there's no way to set a class attribute using RadioChoice. Have
you considered
using RadioGroup and Radio? They're much more flexible than RadioChoice.


On Nov 27, 2007 2:56 PM, Gervais <[EMAIL PROTECTED]> wrote:
> Ok, thanks.
>
> But if i need to set a class name for each items how can i do that ?
> I need to get and output like that :
> 
>
> And maybe can i also remove the '' between each radio ?

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



Re: Floating Column

2007-11-27 Thread Alex Objelean

It is up to you how to style the markup. A little of CSS can do all you need. 

Alex



dariusz.holda wrote:
> 
> Hi,
> Is it possible in Wicket to do a floating column? I have a DataView that
> has so many columns that it expands over one screen. I would like to make
> one column to stay on the screen all the time even if a user scrolls
> horizontally to the other side of the DataView. Has anybody tried that?
> Any ideas where to start?
> 
> Cheers,
> Dariusz
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Floating-Column-tf4881169.html#a13971775
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: Display enum in a RadioChoice

2007-11-27 Thread Gervais

Ok, thanks.

But if i need to set a class name for each items how can i do that ?
I need to get and output like that :
   

And maybe can i also remove the '' between each radio ?



Jonas a écrit :

Hi,

some constructors of RadioChoice take a
org.apache.wicket.markup.html.form.IChoiceRenderer,
which is used to render the choices.

cheers,
Jonas

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



__ NOD32 2688 (20071127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



  


Re: Manually handle post data

2007-11-27 Thread Pills


Michael Sparer wrote:
> 
> I you really wanna do this manually, this code might help you: Map map =
> ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
> 
> regards
> 

For me it doesn't matter... This way is quite good, but if you've a better
idea (the wicket way) I'll use it ;)

-- 
View this message in context: 
http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13970567
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: What kind of link could I use?

2007-11-27 Thread Clay Lehman
You probably want to check out DownloadLink
http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/marku
p/html/link/DownloadLink.html


-Clay

-Original Message-
From: yadubi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 3:14 AM
To: users@wicket.apache.org
Subject: What kind of link could I use?


Hi,

I have a following link which creates a pop-up window and shows the
content
of the referenced pdf in it
(anchors removed):
href="/generated/page_1.pdf" target="_blank">Page 1

However, I am unable to achieve the same result with Wicket. I use the
following code:

PopupSettings popupSettings = new PopupSettings();
popupSettings.setTarget( "/generated/page_1.pdf" );
   // popupSettings.setTarget( null );
Link myLink = new Link("theLink")
{
@Override public void onClick() {
  //mothing to do
}   
};
myLink.setPopupSettings( popupSettings );
add( myLink );

In the html page, I have 'href="#" wicket:id="theLink">Page 1'.
When I click on the link, the code executes, but with no pop-up.
However,
when the target is set to null, at least a new window opens.

Thanks for suggestions.

-- 
View this message in context:
http://www.nabble.com/What-kind-of-link-could-I-use--tf4880340.html#a139
66504
Sent from the Wicket - User mailing list archive at 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: Display enum in a RadioChoice

2007-11-27 Thread Jonas
Hi,

some constructors of RadioChoice take a
org.apache.wicket.markup.html.form.IChoiceRenderer,
which is used to render the choices.

cheers,
Jonas

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



Re: Populate form according to selected item in dropdownchoice

2007-11-27 Thread Dipu Seminlal
have a look at the attached files, thats based on your code snippet,
you will get the idea.

regards
dipu

On Nov 27, 2007 7:17 AM, tsuresh <[EMAIL PROTECTED]> wrote:
>
> Hi Dipu,
>   Could you please tell me what to write in the method
> onSelecitionChanged(). It would be easier for me to understand if you
> provide the code example. I studied the link
> http://cwiki.apache.org/WICKET/dropdownchoice-examples.html but could not
> understand it.
> thanks
>
>
> Dipu Seminlal wrote:
> >
> > there are two ways to do it
> >
> > override the wantOnSelectionChangedNotifications of the user dropdown
> > to return true and override onSelectionChanged to do what you want,
> > but this will result in server round trips ( refer the java of
> > DropDownChoice )
> >
> > or use an AjaxFormComponentUpdatingBehavior on the onChange event of
> > the dropdown.
> >
> > regards
> > Dipu
> >
> > On Nov 26, 2007 7:14 AM, tsuresh <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello wicketeers,
> >> I have a form to edit the attributes of User. User has the attributes
> >> username, mail and role.I have a dropdownchoice filled with list of
> >> users.
> >> When I select the user his mail should be displayed in textfield and his
> >> role should be displayed in dropdownchoice. And i should be able to edit
> >> his
> >> mail and role. I have already made the form to fill the first drop down
> >> choice.I have made function view(username) in User class which helps in
> >> viewing attributes of the user(user selected in dropdown), But I have no
> >> idea to populate the remaining form components.How to do this? My code
> >> for
> >> form is as below:
> >>
> >> public UserEdit(){
> >>
> >> User user= new user();
> >> CompoundPropertyModel userEditModel = new
> >> CompoundPropertyModel(user);
> >> Form form = new userEditForm("user",userEditModel);
> >> add(form);
> >> add(new FeedbackPanel("feedback").setOutputMarkupId(true));
> >> DropDownChoice ddc = null;
> >> try{
> >> ddc = new DropDownChoice("username",user.list());
> >> }catch(SQLException e){
> >> String err = e.getMessage();
> >> }
> >>
> >> TextField mailComp = new TextField("mail");
> >> DropDownChoice roleDdc =null;
> >> try{
> >> roleDdc = new DropDownChoice("role.name",r.list());
> >> }catch(SQLException e){
> >> String err = e.getMessage();
> >> }
> >> form.add(ddc);
> >> form.add(mailComp);
> >> form.add(roleDdc);
> >> }
> >>
> >> class UserEditForm extends Form {
> >> public UserEditForm(String id,IModel model) {
> >> super(id,model);
> >> }
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
> >> Sent from the Wicket - User mailing list archive at 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]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13965803
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
/* TestPage.java
 * com.xmltravel.fab1.wicket.testcontrol
 * fab1gui1.3 
 * 
 * Created on 27 Nov 2007 by FULL NAME HERE (dipu should fix this)
 * 
 * Copyright: 
 * Multicom Products Ltd. 2007
 * Bristol, England.
 * 
 */
package com.xmltravel.fab1.wicket.testcontrol;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;

import com.xmltravel.fab1.wicket.page.BasePage;

public class TestPage extends BasePage 
{

	private static final long serialVersionUID = 1L;
	private CompoundPropertyModel userEditModel;
	private static List roles = new ArrayList();
	static 
	{
		roles.add("Manger");
		roles.add("Admin");
		roles.add("Super User");
		roles.add("User");
	}
	
	private static List users = new ArrayList();
	

Display enum in a RadioChoice

2007-11-27 Thread Gervais

Hi all,

I need to display a enum in a RadioChoice. So i'm doing that :

   public static enum Genre { Male, Female }
   private static List GENRES = Arrays.asList(Person.Genre.values());
   ...
   add(new RadioChoice("student.genre", GENRES));
   ...

It work but displaying avlues Are "Male" and "Female" and i'm french so 
i prefer "Masculin" and "Feminin" or (better in my case) "M" and "F".
I don't need to overload toString in my enum because i think Genre is in 
the model and my model doesn't have to change with langage.


->  How can i render "M" or "F" instead of "Male" or "Female" ?

Thanks


Re: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
Hello,

thank you very much for that hint. Since I want to update the tree as
often as possible at every user interaction and I don't want to add a
call to updateNotes() at every possible link or button I will try
detect wether the rendering was forced by an action on the tree or by
something else. Should'nt be a problem since I have the callback
functions.

Again, thank you very much I think I got it now :-)

Greetings

Thomas

2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
> Hi,
>
> problem is that you rebuild the entire tree in onBeforeRender().
> onBeforeRender is invoked on every render, even when you
> expand/collapse a node. So you collapse a node but right afterwards
> you rebuild the entire tree, that's why you don't see the node being
> collapsed.
>
> Try moving the updateNodes() call to link's onClick().
>
> -Matej
>
> On Nov 27, 2007 10:12 AM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > Hello again,
> >
> > I tried to create an as simple as possible example quick start (I hope
> > this is what you meant). The original code already would have been too
> > bloated:
> >
> > http://www2.informatik.hu-berlin.de/~krause/examples/BaseTreeProblemQuickstart.zip
> >
> > Hopefully somebody sees where my fault is because I have the feeling
> > that even working since quite a long time with Wicket I didn't
> > understand some very basic stuff and that's why it is failing.
> >
> > Greetings
> >
> > Thomas
> >
> > 2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
> >
> > > It's hard to tell without any code. Basically, if you have proper
> > > listeners fired in your model the tree should update itself.
> > > Alternatively, you can try calling invalidateAll() in your page
> > > onBeforeRender() (before calling super.onBeforeRender).
> > >
> > > Can you post a quickstart?
> > >
> > > -Matej
> > >
> > > On Nov 26, 2007 6:33 PM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > since a few days I'm struggling with a problem I didn't find any 
> > > > solution yet.
> > > >
> > > > I have two pages containing some Panels and a BaseTree (I'm using my
> > > > own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used.
> > > > What I want is that the tree is updated every time the page is updated
> > > > due to some actions done by the user. This works correctly for page
> > > > number one but not for the other one. Page 2 shows the updated tree
> > > > (all nodes are expanded) but there is no visual feedback when a node
> > > > is selected even if the selection on "the code side" works. It is not
> > > > possible for the user to collapse a node as well.
> > > >
> > > > I have some questions related with the problem. Before I forget to
> > > > mention it: I use 1.3.0 RC1.
> > > >
> > > > 1) Is it OK using onBeforeRender() (overridden at the page, super is
> > > > called *after* I updated everything) to update the model of the tree?
> > > >
> > > > 2) Should I update the model of the tree by removing and adding nodes
> > > > to the root-node and then calling reload() on the DefaultTreeModel?
> > > > The more I think about it I would say "no" since this is a method from
> > > > the Swing-API. But it works on page 1 (would't work if it is not
> > > > there). Calling updateTree() on the AbstractTree has no effect since i
> > > > don't use AJAX.
> > > >
> > > > If you need any code or more explanation I will provide it of course.
> > > > I hope somebody has an idea what I'm doing wrong.
> > > >
> > > > Thank you for your help.
> > > >
> > > > Thomas Krause
> > > >
> > > > -
> > > > 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]
> >
> >
>
> -
> 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]



Floating Column

2007-11-27 Thread dariusz.holda

Hi,
Is it possible in Wicket to do a floating column? I have a DataView that has
so many columns that it expands over one screen. I would like to make one
column to stay on the screen all the time even if a user scrolls
horizontally to the other side of the DataView. Has anybody tried that? Any
ideas where to start?

Cheers,
Dariusz

-- 
View this message in context: 
http://www.nabble.com/Floating-Column-tf4881169.html#a13969119
Sent from the Wicket - User mailing list archive at Nabble.com.


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



wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Antoine Angénieux

Hi guys,

I'm using the latest trunk version. I have a border (non transparent) in 
which portions of markup are made visible / invisible by the use of the 
wicket enclosure tag. Here is an example markup :




   
  
 
  
   


And I always get an exception in the Enclosure 
getChildComponent(CharSequence childId).


I investigated that method a bit, and when looking up for the component 
whild id childId in the enclosure parent (thus the 
Border.BorderBodyContainer component), the only child visited is... the 
Enclosure element!


Then, a MarkupException is thrown by the getComponentChild() method 
(line 136) complaining that it could not find my component...


I saw that the code dealing with transparent resolvers, and component 
children types (arrays or single child) is rather "touchy" and did not 
try to tweak it, as I feared it would cause more dammage than good ;)


I cannot tell you if this problem exists in other wicket versions, as I 
rarely need the enclosure tag, and for those rare occasions, I 
encountered no problem at all...


I've used a WebMarkupContainer on the div as a workaround, but since 
that is exactly the purpose of the  tag, that's 
juste too bad :D


Anybody else god bittent by this one?

Cheers,

Antoine.





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



Re: TabbedPanel + authorization strategy

2007-11-27 Thread Marieke Vandamme

That gave me some hints indeed. Thanks !
The authorization needs to be placed on the link (that is created when
overriding the newlink method from TabbedPanel).


Mr Mean wrote:
> 
> Not sure if it is of help to you, but Swarm has an example on how to do
> this:
> http://wicketstuff.org/wicketsecurity/tabs/
> You probably want the hide tabs option.
> Source is available at
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples
> 
> Maurice
> 
> On Nov 27, 2007 8:02 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>>
>> I tried that, but it won't compile. Maybe because AbstractTab doesn't
>> extends
>> Component?
>> I can't add the @AuthorizeAction to the panel, because the panel is only
>> created when the specific tab is clicked.
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> > On Nov 26, 2007 10:38 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>> >>
>> >> That was my last solution, because i hoped it could be integrated with
>> >> the
>> >> auth-roles so i didn't have to check the role myself. Because if i'm
>> >> right,
>> >> before adding the tab to the list, i check with the role from the
>> user's
>> >> session?
>> >
>> > So did you try using @AuthorizeAction(action = Action.RENDER, roles =
>> > Roles.ADMIN)? That way you could just add the panels and they wouldn't
>> > be rendered when the user isn't authorized. And you can keep the
>> > actual authorization code out of your normal component construction
>> > code.
>> >
>> > Eelco
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-tf4875256.html#a13965770
>> Sent from the Wicket - User mailing list archive at 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-tf4875256.html#a13968886
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: Leaf menus stop responding after collapse and expand

2007-11-27 Thread Matej Knopp
It might be a bug, can you please make a quickstart that shows the
behavior? Thanks.

-Matej

On Nov 14, 2007 12:31 AM, yadubi <[EMAIL PROTECTED]> wrote:
>
> I have an application which is modeled on ajax SimpleTreePage example.
> Navigation is handled by overriding
> the onNodeLinkClicked of the LinkTree class.
> There are tree levels of nesting in the menu, the second level has multiple
> leaf nodes.
> Everything works as expected until I collapse and expand the second level
> menu. Thereafter,
> the highest leaf node under that node stops responding to mouse clicks, but
> other leaf nodes still work.
> This might be a bug.
>
> --
> View this message in context: 
> http://www.nabble.com/Leaf-menus-stop-responding-after-collapse-and-expand-tf4801262.html#a13737055
> Sent from the Wicket - User mailing list archive at 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: problems adding nodes to a BaseTree

2007-11-27 Thread Matej Knopp
Hi,

problem is that you rebuild the entire tree in onBeforeRender().
onBeforeRender is invoked on every render, even when you
expand/collapse a node. So you collapse a node but right afterwards
you rebuild the entire tree, that's why you don't see the node being
collapsed.

Try moving the updateNodes() call to link's onClick().

-Matej

On Nov 27, 2007 10:12 AM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> Hello again,
>
> I tried to create an as simple as possible example quick start (I hope
> this is what you meant). The original code already would have been too
> bloated:
>
> http://www2.informatik.hu-berlin.de/~krause/examples/BaseTreeProblemQuickstart.zip
>
> Hopefully somebody sees where my fault is because I have the feeling
> that even working since quite a long time with Wicket I didn't
> understand some very basic stuff and that's why it is failing.
>
> Greetings
>
> Thomas
>
> 2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
>
> > It's hard to tell without any code. Basically, if you have proper
> > listeners fired in your model the tree should update itself.
> > Alternatively, you can try calling invalidateAll() in your page
> > onBeforeRender() (before calling super.onBeforeRender).
> >
> > Can you post a quickstart?
> >
> > -Matej
> >
> > On Nov 26, 2007 6:33 PM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > since a few days I'm struggling with a problem I didn't find any solution 
> > > yet.
> > >
> > > I have two pages containing some Panels and a BaseTree (I'm using my
> > > own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used.
> > > What I want is that the tree is updated every time the page is updated
> > > due to some actions done by the user. This works correctly for page
> > > number one but not for the other one. Page 2 shows the updated tree
> > > (all nodes are expanded) but there is no visual feedback when a node
> > > is selected even if the selection on "the code side" works. It is not
> > > possible for the user to collapse a node as well.
> > >
> > > I have some questions related with the problem. Before I forget to
> > > mention it: I use 1.3.0 RC1.
> > >
> > > 1) Is it OK using onBeforeRender() (overridden at the page, super is
> > > called *after* I updated everything) to update the model of the tree?
> > >
> > > 2) Should I update the model of the tree by removing and adding nodes
> > > to the root-node and then calling reload() on the DefaultTreeModel?
> > > The more I think about it I would say "no" since this is a method from
> > > the Swing-API. But it works on page 1 (would't work if it is not
> > > there). Calling updateTree() on the AbstractTree has no effect since i
> > > don't use AJAX.
> > >
> > > If you need any code or more explanation I will provide it of course.
> > > I hope somebody has an idea what I'm doing wrong.
> > >
> > > Thank you for your help.
> > >
> > > Thomas Krause
> > >
> > > -
> > > 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]
>
>

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



Re: Manually handle post data

2007-11-27 Thread Michael Sparer

I you really wanna do this manually, this code might help you: Map map =
((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();

regards


Pills wrote:
> 
> Hello,
> 
> I'm using an online payement system, and it sends me some data with the
> POST method (transaction completed or not, amount payed, currency,
> etc...).
> 
> How can I retrieve this data with wicket? 
> 
> Thanks a lot ;)
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13968584
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Add GET parameter to ajax call

2007-11-27 Thread Michael Sparer

I was wondering if there is an easy way to add a GET parameter to an
AjaxLink. Sothat I can get the parameter out of the request's parameter map.

I know there's the possibility to make a javascript function that dispatches
the call (and adds the parameters) on client side and an
AbstractDefaultAjaxBehavior that receives the call on server side, but since
my AjaxLink lies inside a Fragment and therefore the .getCallBackURL()
method can't be called on instantiation ...

-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Add-GET-parameter-to-ajax-call-tf4880991.html#a13968582
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Manually handle post data

2007-11-27 Thread Pills

Hello,

I'm using an online payement system, and it sends me some data with the POST
method (transaction completed or not, amount payed, currency, etc...).

How can I retrieve this data with wicket? 

Thanks a lot ;)
-- 
View this message in context: 
http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13968500
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: How do others include their browser specific styles in Wicket?

2007-11-27 Thread Sjoerd Lohuis

Hi,
We get the client info the same way, but how do you prevent having to 
manually do (for example):

   page.add(HeaderContributor.forCss("_css/style.css", "screen"));
 
   if (clientProperties.isBrowserInternetExplorer()) {
   page.add(HeaderContributor.forCss("_css/screen_ie.css", 
"screen"));

   }
  // possibly even: else if isBrowserXXX, etc.

...in the XXXBasePage for each and every project. Not that this is very 
hard or cumbersome to do so. I just want to know what is the wicket way 
(tm)?


@Nino: How do you cope with differences in css interprations between 
browsers? Css hacks?


Regards,
Sjoerd

--
Sjoerd Lohuis
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500



Johan Compagner wrote:

Session.getClientInfo() ?

On 11/6/07, Sjoerd Lohuis <[EMAIL PROTECTED]> wrote:
  

There are a few ways to include your browser specific styles in a project:
- CSS hacks to target specific browsers
- IE Conditional Comments
- Server-side browsercheck

I'm not asking which way is better or the best. I'm asking who's using
one of these methods and what is the best way to implement this in Wicket.

The way I'm currently doing it is by using a server-side browsercheck
which includes the necessary stylesheets in my pages. This is done by a
Java Class which we reuse in evrey new project. Is there maybe a
standard Wicket browsercheck component for this?

--
Sjoerd Lohuis
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
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: howto JSON Wicket works?

2007-11-27 Thread Alex Objelean

When form is submitted, wicket performs a request which looks something like
this:
"?wicket:interface=:0:body:panel:IFormSubmitListener::". This ensures that
the onSubmit method is called. But what you did with your example, is wrong,
because your request is not a normal wicket request:
$.post("demo", "message=[" + data.toSource() + "];", receiveForm, "json");
That is why, your onSubmit method will never be called.

I don't understand, why are you trying to do something simple, in such a
complicated way. I recommend you, to have a look at examples in order to
learn thinking in wicket way and understand basic principles.

Alex.



Pen wrote:
> 
> Greetings,
> 
> I want to know how to handle the Jquery, JSon data in the wicket. What is
> the best way to do it.
> I have created simple form which sends the json data across to server and
> replies back to the form.
> I am not sure how to handle the request and response in wicket. I am using
> Json-lib 2.1 for jdk1.5
> Can anybody analyze the below program and suggest me what is wrong.
> 
> demo.html
> 
>charset="utf-8"> 
>   
>   $(document).ready(function() {
>   $("#testForm").submit(sendForm);
>   });
>   
>   function sendForm(e) {
>   e.preventDefault();
>   var data = {
>   field1: $("#field1").val(),
>   field2: $("#field2").val(),
>   field3: $("#field3").val(),
>   };
>   
>   $("#sent .content").html(data.toSource());
>   $.post("demo", "message=[" + data.toSource() + "];", 
> receiveForm,
> "json");
>   };  
>   
>function receiveForm(data) {
>   $("#field1").val(data.field1);
>   $("#field2").val(data.field2);
>   $("#field3").val(data.field3);
>   
>   $("#received .content").html(data.toSource());
>   };
>   
>   
> 
> 
> 
> 
>   Form
>   
>   Field One:
>   
>   
>   Field Two:
>   
>   
>   Field Three:
>   
>   
>   
> 
> 
> 
>   Sent Data:
>   
>   
>   
> 
> 
> 
>   Received Data:
>   
>   
>   
> 
> 
> 
> 
> Here is the wicket program to handle this 
> 
> demo.java
> public class Demo extends BasePage {
>   public Demo() {
>   
>   Form form = new Form("testForm",new 
> CompoundPropertyModel(this));
>   add(form);
>   form.add(new AjaxFormSubmitBehavior(form,"onsubmit"){
>   private static final long serialVersionUID = 1L;
> 
> 
>   protected void onSubmit(AjaxRequestTarget target) {
>   Request request = getRequest();
>   String data = request.getParameter("data"); 
> 
>   try {
>   JSONObject jsonData = new JSONObject();
>   JSONObject selectedNode = 
> jsonData.getJSONObject(data); 
>   } catch (Exception e) {
>   throw new RuntimeException("Failed to 
> parse selected node from reply:
> " + data);
>   } 
>   //target.addComponent(received)// Add to the 
> response data
>   }
>   });
>   }
> }
> 
> 
> ~Pen
> 

-- 
View this message in context: 
http://www.nabble.com/howto-JSON-Wicket-works--tf4865188.html#a13967492
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: TabbedPanel + authorization strategy

2007-11-27 Thread Maurice Marrink
Not sure if it is of help to you, but Swarm has an example on how to do this:
http://wicketstuff.org/wicketsecurity/tabs/
You probably want the hide tabs option.
Source is available at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples

Maurice

On Nov 27, 2007 8:02 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
> I tried that, but it won't compile. Maybe because AbstractTab doesn't extends
> Component?
> I can't add the @AuthorizeAction to the panel, because the panel is only
> created when the specific tab is clicked.
>
>
>
> Eelco Hillenius wrote:
> >
> > On Nov 26, 2007 10:38 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
> >>
> >> That was my last solution, because i hoped it could be integrated with
> >> the
> >> auth-roles so i didn't have to check the role myself. Because if i'm
> >> right,
> >> before adding the tab to the list, i check with the role from the user's
> >> session?
> >
> > So did you try using @AuthorizeAction(action = Action.RENDER, roles =
> > Roles.ADMIN)? That way you could just add the panels and they wouldn't
> > be rendered when the user isn't authorized. And you can keep the
> > actual authorization code out of your normal component construction
> > code.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-tf4875256.html#a13965770
> Sent from the Wicket - User mailing list archive at 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: howto JSON Wicket works?

2007-11-27 Thread Martijn Dashorst
Please look in the wicket examples to learn about Ajax forms in Wicket. You
can also look at the example online:
http://wicketstuff.org/wicket13/ajax/form.1

(sourcecode browser is in the top right corner)

Martijn


On Nov 27, 2007 8:39 AM, Pen <[EMAIL PROTECTED]> wrote:

>
>
> I am not really understanding your question? we are not creating any json
> object in browser. I believe that 's what we want to do in the normal form
> submit create the json object.
> This is just a simple example to demonstrate the Ajax round trip. Here
> bascially you get the updated data back. This can happen if we have form
> submit and a grid which gets updated on the form submit.
>
> Can you please look into the below example and provide some solution. I
> have
> copied both the html and java code. If you can tell me how to handle the
> data in wicket and send it back in the below example that would be great.
> I
> am not receving the form post data in the request object in wicket.
>
> Thanks
> ~Pen
>
>
> Johan Compagner wrote:
> >
> > Again, why do you try to generate a json object in the browser??
> > Why not create a normal wicket form that you post to the server and
> > then in the form submit method you create the json object
> >
> > On 11/24/07, Pen <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> I don't know how to get the postdata from the request object in wicket.
> I
> >> do
> >> see the request being sent. As you see from the example I am struck
> >> there, I
> >> don't know how to proceed further.
> >> This is just a basic example of round trip using Json, AJax and wicket
> >> through form submit. You get the Json data modify it update back the
> >> form.
> >> There will be more complicated of this like grid update.
> >> Also there can be normal form submit of Json object. In either case I
> >> don't
> >> know how to handle on the server in wicket. I have done lot using JSP,
> it
> >> looks bit different here. And no good documentation.
> >> If you can provide some coding example or some pointer it would be
> great.
> >>
> >> ~Pen
> >>
> >>
> >>
> >>
> >>
> >> Johan Compagner wrote:
> >> >
> >> > Which part goes wrong?
> >> > Do you see the request being send?
> >> > Why do this though json? If you need json objects on the server why
> >> > not using  a normal form post and create the json object on the
> >> > server?
> >> >
> >> > 2007/11/24, Pen <[EMAIL PROTECTED]>:
> >> >>
> >> >> Greetings,
> >> >>
> >> >> I want to know how to handle the Jquery, JSon data in the wicket.
> What
> >> is
> >> >> the best way to do it.
> >> >> I have created simple form which sends the json data across to
> server
> >> and
> >> >> replies back to the form.
> >> >> I am not sure how to handle the request and response in wicket. I am
> >> >> using
> >> >> Json-lib 2.1 for jdk1.5
> >> >> Can anybody analyze the below program and suggest me what is wrong.
> >> >>
> >> >> demo.html
> >> >> 
> >> >>>> >> charset="utf-8">
> >> >>   
> >> >>   $(document).ready(function() {
> >> >>   $("#testForm").submit(sendForm);
> >> >>   });
> >> >>
> >> >>   function sendForm(e) {
> >> >>   e.preventDefault();
> >> >>   var data = {
> >> >>   field1: $("#field1").val(),
> >> >>   field2: $("#field2").val(),
> >> >>   field3: $("#field3").val(),
> >> >>   };
> >> >>
> >> >>   $("#sent .content").html(data.toSource());
> >> >>   $.post("demo", "message=[" + data.toSource() +
> "];", receiveForm,
> >> >> "json");
> >> >>   };
> >> >>
> >> >>function receiveForm(data) {
> >> >>   $("#field1").val(data.field1);
> >> >>   $("#field2").val(data.field2);
> >> >>   $("#field3").val(data.field3);
> >> >>
> >> >>   $("#received .content").html(data.toSource());
> >> >>   };
> >> >>   
> >> >>
> >> >> 
> >> >> 
> >> >>
> >> >> 
> >> >>   Form
> >> >>
> >> >>   Field One:
> >> >>   
> >> >>
> >> >>   Field Two:
> >> >>   
> >> >>
> >> >>   Field Three:
> >> >>   
> >> >>
> >> >>   
> >> >> 
> >> >>
> >> >> 
> >> >>   Sent Data:
> >> >>   
> >> >>
> >> >>   
> >> >> 
> >> >> 
> >> >>
> >> >>   Received Data:
> >> >>   
> >> >>
> >> >>   
> >> >> 
> >> >> 
> >> >> 
> >> >>
> >> >> Here is the wicket program to handle this
> >> >>
> >> >> demo.java
> >> >> public class Demo extends BasePage {
> >> >>   public Demo() {
> >> >>
> >> >>   Form form = new Form("testForm",new
> CompoundPropertyModel(this));
> >> >>   add(form);
> >> >>   form.add(new AjaxFormSubmitBehavior(form,"onsubmit"){
> >> >>   private static final long serialVersionUID = 1L;
> >> >>
> >> >>   protected void onSubmit(AjaxRequestTarget target)
> {
> >> >>   Request request = getRequest();
> >> >>   String data = requ

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
i will add a big fat notice to the class's javadoc.
it wouldn't hurt either to add more examples to wicket-examples...

will do so later this day...

  Gerolf

On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:

> I had the same problem the first time i tried using the component, so
> I would have to agree that some sort of warning would be handy
>
> On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> > hi matt,
> >
> > DateField is derived from FormComponentPanel and thus the markup should
> look
> > something like this:
> >
> > 
> >
> > maybe we should check that the associated tag is not an input tag, as
> this
> > is a rather common pitfall,
> > or rename DateField to DateFieldPanel, but it's most probably too late
> for
> > that.
> >
> > Eelco, wdyt?
> >
> >   Gerolf
> >
> >
> > On Nov 27, 2007 10:08 AM, mraible <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Changing the HTML from:
> > >
> > > 
> > >
> > > To:
> > >
> > > 
> > >
> > > Solved my problem.
> > >
> > > Unfortunately, there doesn't seem to be a way (from markup) to add my
> > > class
> > > classes (text small) to the input field rendered by this component.
> > >
> > > Matt
> > >
> > >
> > > mraible wrote:
> > > >
> > > > For some reason, when using the new
> extensions.yui.calendar.DateField, I
> > > > end up with two text fields on my page. I'm sure it's something I'm
> > > doing
> > > > wrong, but I can't see the solution at 2 a.m. (and I haven't even
> been
> > > > drinking!). ;-)
> > > >
> > > > Java:
> > > >
> > > > add(new DateField("birthday"), new ResourceModel("user.birthday"));
> > > >
> > > > HTML:
> > > >
> > > > 
> > > >  > > > key="user.birthday">Birthday:
> > > > 
> > > >  > > > size="11"/>
> > > > [birthday feedback]
> > > > 
> > > > 
> > > >
> > > > The rendered markup has two input fields. Any ideas how to fix?
> > > >
> > > > 
> > > > Birthday:
> > > > 
> > > >  name="birthday">
> > > >
> > > >  name="birthday:date"
> > > > id="date3"/>
> > > >  
> > > >
> resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > 
> > > > 
> > > >
> > > > I've attached a screenshot of what it looks like.
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > >  http://www.nabble.com/file/p13967061/twodatefields.png
> > > >
> > >
> > > --
> > > View this message in context:
> > >
> http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > > Sent from the Wicket - User mailing list archive at 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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Jason Anderson
I had the same problem the first time i tried using the component, so
I would have to agree that some sort of warning would be handy

On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> hi matt,
>
> DateField is derived from FormComponentPanel and thus the markup should look
> something like this:
>
> 
>
> maybe we should check that the associated tag is not an input tag, as this
> is a rather common pitfall,
> or rename DateField to DateFieldPanel, but it's most probably too late for
> that.
>
> Eelco, wdyt?
>
>   Gerolf
>
>
> On Nov 27, 2007 10:08 AM, mraible <[EMAIL PROTECTED]> wrote:
>
> >
> > Changing the HTML from:
> >
> > 
> >
> > To:
> >
> > 
> >
> > Solved my problem.
> >
> > Unfortunately, there doesn't seem to be a way (from markup) to add my
> > class
> > classes (text small) to the input field rendered by this component.
> >
> > Matt
> >
> >
> > mraible wrote:
> > >
> > > For some reason, when using the new extensions.yui.calendar.DateField, I
> > > end up with two text fields on my page. I'm sure it's something I'm
> > doing
> > > wrong, but I can't see the solution at 2 a.m. (and I haven't even been
> > > drinking!). ;-)
> > >
> > > Java:
> > >
> > > add(new DateField("birthday"), new ResourceModel("user.birthday"));
> > >
> > > HTML:
> > >
> > > 
> > >  > > key="user.birthday">Birthday:
> > > 
> > >  > > size="11"/>
> > > [birthday feedback]
> > > 
> > > 
> > >
> > > The rendered markup has two input fields. Any ideas how to fix?
> > >
> > > 
> > > Birthday:
> > > 
> > > 
> > >
> > >  > > id="date3"/>
> > >  
> > > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > >
> > > 
> > >
> > >
> > >
> > > 
> > > 
> > >
> > > I've attached a screenshot of what it looks like.
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > >  http://www.nabble.com/file/p13967061/twodatefields.png
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > Sent from the Wicket - User mailing list archive at 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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
hi matt,

DateField is derived from FormComponentPanel and thus the markup should look
something like this:



maybe we should check that the associated tag is not an input tag, as this
is a rather common pitfall,
or rename DateField to DateFieldPanel, but it's most probably too late for
that.

Eelco, wdyt?

  Gerolf

On Nov 27, 2007 10:08 AM, mraible <[EMAIL PROTECTED]> wrote:

>
> Changing the HTML from:
>
> 
>
> To:
>
> 
>
> Solved my problem.
>
> Unfortunately, there doesn't seem to be a way (from markup) to add my
> class
> classes (text small) to the input field rendered by this component.
>
> Matt
>
>
> mraible wrote:
> >
> > For some reason, when using the new extensions.yui.calendar.DateField, I
> > end up with two text fields on my page. I'm sure it's something I'm
> doing
> > wrong, but I can't see the solution at 2 a.m. (and I haven't even been
> > drinking!). ;-)
> >
> > Java:
> >
> > add(new DateField("birthday"), new ResourceModel("user.birthday"));
> >
> > HTML:
> >
> > 
> >  > key="user.birthday">Birthday:
> > 
> >  > size="11"/>
> > [birthday feedback]
> > 
> > 
> >
> > The rendered markup has two input fields. Any ideas how to fix?
> >
> > 
> > Birthday:
> > 
> > 
> >
> >  > id="date3"/>
> >  
> > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> >
> > 
> >
> >
> >
> > 
> > 
> >
> > I've attached a screenshot of what it looks like.
> >
> > Thanks,
> >
> > Matt
> >
> >  http://www.nabble.com/file/p13967061/twodatefields.png
> >
>
> --
> View this message in context:
> http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> 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: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
Hello again,

I tried to create an as simple as possible example quick start (I hope
this is what you meant). The original code already would have been too
bloated:

http://www2.informatik.hu-berlin.de/~krause/examples/BaseTreeProblemQuickstart.zip

Hopefully somebody sees where my fault is because I have the feeling
that even working since quite a long time with Wicket I didn't
understand some very basic stuff and that's why it is failing.

Greetings

Thomas

2007/11/27, Matej Knopp <[EMAIL PROTECTED]>:
> It's hard to tell without any code. Basically, if you have proper
> listeners fired in your model the tree should update itself.
> Alternatively, you can try calling invalidateAll() in your page
> onBeforeRender() (before calling super.onBeforeRender).
>
> Can you post a quickstart?
>
> -Matej
>
> On Nov 26, 2007 6:33 PM, Thomas Krause <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > since a few days I'm struggling with a problem I didn't find any solution 
> > yet.
> >
> > I have two pages containing some Panels and a BaseTree (I'm using my
> > own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used.
> > What I want is that the tree is updated every time the page is updated
> > due to some actions done by the user. This works correctly for page
> > number one but not for the other one. Page 2 shows the updated tree
> > (all nodes are expanded) but there is no visual feedback when a node
> > is selected even if the selection on "the code side" works. It is not
> > possible for the user to collapse a node as well.
> >
> > I have some questions related with the problem. Before I forget to
> > mention it: I use 1.3.0 RC1.
> >
> > 1) Is it OK using onBeforeRender() (overridden at the page, super is
> > called *after* I updated everything) to update the model of the tree?
> >
> > 2) Should I update the model of the tree by removing and adding nodes
> > to the root-node and then calling reload() on the DefaultTreeModel?
> > The more I think about it I would say "no" since this is a method from
> > the Swing-API. But it works on page 1 (would't work if it is not
> > there). Calling updateTree() on the AbstractTree has no effect since i
> > don't use AJAX.
> >
> > If you need any code or more explanation I will provide it of course.
> > I hope somebody has an idea what I'm doing wrong.
> >
> > Thank you for your help.
> >
> > Thomas Krause
> >
> > -
> > 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: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread mraible

Changing the HTML from:



To:



Solved my problem.

Unfortunately, there doesn't seem to be a way (from markup) to add my class
classes (text small) to the input field rendered by this component.

Matt


mraible wrote:
> 
> For some reason, when using the new extensions.yui.calendar.DateField, I
> end up with two text fields on my page. I'm sure it's something I'm doing
> wrong, but I can't see the solution at 2 a.m. (and I haven't even been
> drinking!). ;-)
> 
> Java:
> 
> add(new DateField("birthday"), new ResourceModel("user.birthday"));
> 
> HTML:
> 
> 
>  key="user.birthday">Birthday:
> 
>  size="11"/>
> [birthday feedback]
> 
> 
> 
> The rendered markup has two input fields. Any ideas how to fix?
> 
> 
> Birthday:
> 
> 
>   
>  id="date3"/>
>  
> resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif 
>   
> 
> 
>   
> 
> 
> 
> 
> I've attached a screenshot of what it looks like.
> 
> Thanks,
> 
> Matt
> 
>  http://www.nabble.com/file/p13967061/twodatefields.png 
> 

-- 
View this message in context: 
http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
Sent from the Wicket - User mailing list archive at Nabble.com.


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



ListMultipleChoice to take choices model from parent

2007-11-27 Thread Gabor Szokoli
Hi there,

We sometimes need a component for editing sets of arbitrary strings.
We currently use a ListMultipleChoice component, whose choices model
contains the actual set, and selected elements can be deleted with a
button.
Is there a simple way to instruct ListMultipleChoice to use the model
looked up from its parents CompoundPropertyModel by its wicket:id as
its "choices" model instead of its "selected elements" model? I can do
new PropertyModel(parentModel,"myWicketId"), but its clumsy and more
static.
Or is there some other component we should be using to make a
"free-text palette" set editor?
(regular palette does not work, as we must have a text entry field for
adding new elements, there is no finite universal set to chose from.)


Thank you in advance for any ideas!

Gabor Szokoli

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



DateField renders twice in 1.3.0-rc1

2007-11-27 Thread mraible

For some reason, when using the new extensions.yui.calendar.DateField, I end
up with two text fields on my page. I'm sure it's something I'm doing wrong,
but I can't see the solution at 2 a.m. (and I haven't even been drinking!).
;-)

Java:

add(new DateField("birthday"), new ResourceModel("user.birthday"));

HTML:


Birthday:


[birthday feedback]



The rendered markup has two input fields. Any ideas how to fix?


Birthday:


  

 
resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif 
  


  




I've attached a screenshot of what it looks like.

Thanks,

Matt

http://www.nabble.com/file/p13967061/twodatefields.png 
-- 
View this message in context: 
http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967061
Sent from the Wicket - User mailing list archive at Nabble.com.


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



  1   2   >