Re: [Wicket-user] Autocomplete - selecting (higlighting) first option by default.

2007-05-25 Thread Sean Sullivan

IMHO, it would be nice if Java programmers could control this behavior with
a Java API.



On 5/25/07, Dipu <[EMAIL PROTECTED]> wrote:




At the moment with Wicket's auto complete list  we need to scroll down to
select an option from the Autocomplete list.
It would be nice to have the first item highlighted by default.

I tried changing selected to 0 where its declared and it didn't work for
me.

On setting selected to 0 a doUpdateChoices(resp) worked,

function doUpdateChoices(resp){
var element = getAutocompleteMenu();
element.innerHTML=resp;
if(element.firstChild && element.firstChild.childNodes) {
selected = 0;

Can anyone please confirm if this is the right way to go.

Regards
Dipu


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ResourceFinder issue

2007-05-25 Thread mchack

At a loss. I have been trying to locate my markup from the classpath to the
root web context. It appears to find the file(s0 but for a particular one I
get the following exception

WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).

..list of components

It found the file. When I reference this from the classpath it works fine.
Any help would be appreciated.
Thanks
-- 
View this message in context: 
http://www.nabble.com/ResourceFinder-issue-tf3818855.html#a10811888
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with page parameters

2007-05-25 Thread neiroman neiroman

Hello,
I'm new in wicket and I have next problem. My application uses bookmarkable
pages. Than I try to access to page with incorrect params set
(http://localhost:8080/index/ff/
) I've got the error :

java.lang.IllegalStateException: URL fragment has unmatched key/value pair: ff/
at 
wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters
(AbstractRequestTargetUrlCodingStrategy.java:130)
at 
wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:75)
at wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest
(WebRequestCodingStrategy.java:331)
at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:83)
at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve
(AbstractCompoundRequestCycleProcessor.java:48)
at wicket.RequestCycle.step(RequestCycle.java:992)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java
:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)

Can I prevent this error ?

With best regards, Vadim.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-25 Thread Eelco Hillenius
Yep. Depending on your renderStrategy (which by default is
REDIRECT_TO_BUFFER), Wicket issues redirects
(HttpServletResponse#sendRedirect), which are typically (or always?)
translated to 302s by the servlet container.

Eelco

On 5/25/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
>
> Question:
>
> Is Wicket setting the 302 response code for these HTTP requests?   I am
> seeing the 302 status code in all responses.   (302 ==
> SC_MOVED_TEMPORARILY)
>
> Sean
>
>
>
> On 5/25/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> >
> >
> > Ok, I made the change to "home/" but I'm still having the same problem.
> >
> > I am unable to visit the application homepage:
> http://dev.foobar.com/wicketdemo/home
> >
> > I've also tried http://dev.foobar.com/wicketdemo/home/
> (trailing slash) but it yields the same result.
> >
> > I think that I am experiencing a Websphere specific bug.  The WAR runs
> fine in Apache Tomcat 5.5.17
> >
> > Sean
> >
> >
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-1.3b1 examples

2007-05-25 Thread Eelco Hillenius

Reinout, could you please try putting:

org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory())

in your application's init method (or update to the latest Wicket snapshot)?
If the problem stays, it should give you a clearer message what is wrong,
and if it goes away just by putting in that line, could you please report
that back (so that we/ Johan can write a unit test)?

Thanks,

Eelco

On 5/25/07, Philip A. Chapman <[EMAIL PROTECTED]> wrote:


 It looks like your page, or a model or component attached to that page
holds a reference to an object that cannot be serialized.  That's a no-no.
Once a request has been processed, the pages are serialized and stored in a
cache in case the user needs to access them again via back button.

On Fri, 2007-05-25 at 18:50 +0200, Reinout van Schouwen wrote:

Hello all,
During ApacheCon earlier this month I first heard from Wicket.My interest was 
aroused and the past few days I've been trying to getstarted with wicket 1.3b1 
(yes, choosing the latest stable version mighthave been better, but hey, I like 
cutting edge ;)
So one of the things I have been doing is trying to (re)build the 
wicketexamples in the 1.3.0-incubating-beta1 distribution.
After manually adding the 1.3b1 jars to my local maven repository I wasready to 
go -- or so I thought. There were still building errors relatedto missing 
Spring classes. I was able to solve those by adding 'spring'and 'wicket-spring' 
dependencies to pom.xml. (Do I have to file a bugfor that?) Anyway, the project 
now builds!
However, the following test failure is something I have no idea how tosolve 
quickly. Does someone have a suggestion? This is the error:
ERROR - Objects- Error serializing object class org.apache.wicket.examples.hangman.Guess [object=[Page class = 
org.apache.wicket.examples.hangman.Guess, id = 1, version = 0]]org.apache.wicket.util.io.WicketSerializeableException: No 
Serializable constructor found for class 
sun.font.AttributeMaporg.apache.wicket.examples.hangman.Guess->children->org.apache.wicket.Component[5]->org.apache.wicket.examples.hangman.Guess$2->children->org.apache.wicket.Component[26]->org.apache.wicket.markup.html.list.ListItem->children->org.apache.wicket.examples.hangman.Guess$2$1->children->org.apache.wicket.markup.html.image.Image->localizedImageResource->org.apache.wicket.markup.html.image.resource.LocalizedImageResource->resource->org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource->fontAttributesNOTE:
 if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization 
by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. 
in the init method of your applicationat 
org.apache.wicket.util.io.ClassStreamHandler.(ClassStreamHandler.java:252)at 
org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116)at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752)at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-25 Thread Sean Sullivan

Question:

Is Wicket setting the 302 response code for these HTTP requests?   I am
seeing the 302 status code in all responses.   (302
==  SC_MOVED_TEMPORARILY)

Sean


On 5/25/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:



Ok, I made the change to "home/" but I'm still having the same problem.

I am unable to visit the application homepage:
http://dev.foobar.com/wicketdemo/home

I've also tried http://dev.foobar.com/wicketdemo/home/   (trailing slash)
but it yields the same result.

I think that I am experiencing a Websphere specific bug.  The WAR runs
fine in Apache Tomcat 5.5.17

Sean




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-1.3b1 examples

2007-05-25 Thread Philip A. Chapman
It looks like your page, or a model or component attached to that page
holds a reference to an object that cannot be serialized.  That's a
no-no.  Once a request has been processed, the pages are serialized and
stored in a cache in case the user needs to access them again via back
button.

On Fri, 2007-05-25 at 18:50 +0200, Reinout van Schouwen wrote:

> Hello all,
> 
> During ApacheCon earlier this month I first heard from Wicket.
> My interest was aroused and the past few days I've been trying to get
> started with wicket 1.3b1 (yes, choosing the latest stable version might
> have been better, but hey, I like cutting edge ;)
> 
> So one of the things I have been doing is trying to (re)build the wicket
> examples in the 1.3.0-incubating-beta1 distribution.
> 
> After manually adding the 1.3b1 jars to my local maven repository I was
> ready to go -- or so I thought. There were still building errors related
> to missing Spring classes. I was able to solve those by adding 'spring'
> and 'wicket-spring' dependencies to pom.xml. (Do I have to file a bug
> for that?) Anyway, the project now builds!
> 
> However, the following test failure is something I have no idea how to
> solve quickly. Does someone have a suggestion? This is the error:
> 
> ERROR - Objects- Error serializing object class 
> org.apache.wicket.examples.hangman.Guess [object=[Page class = 
> org.apache.wicket.examples.hangman.Guess, id = 1, version = 0]]
> org.apache.wicket.util.io.WicketSerializeableException: No Serializable 
> constructor found for class sun.font.AttributeMap
> org.apache.wicket.examples.hangman.Guess->children->org.apache.wicket.Component[5]->org.apache.wicket.examples.hangman.Guess$2->children->org.apache.wicket.Component[26]->org.apache.wicket.markup.html.list.ListItem->children->org.apache.wicket.examples.hangman.Guess$2$1->children->org.apache.wicket.markup.html.image.Image->localizedImageResource->org.apache.wicket.markup.html.image.resource.LocalizedImageResource->resource->org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource->fontAttributes
> NOTE: if you feel Wicket is at fault with this exception, please report to 
> the mailing list. You can switch to JDK based serialization by calling: 
> org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new 
> IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of 
> your application
> at 
> org.apache.wicket.util.io.ClassStreamHandler.(ClassStreamHandler.java:252)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at 
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at 
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at 
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at 
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at 
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
> at 
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at 
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:733)
> at

Re: [Wicket-user] Wicket minis : use of Veil

2007-05-25 Thread NickCanada

Igor  - I just replaced if (component != null)  with if (component == null)
and it seems to work...  
-- 
View this message in context: 
http://www.nabble.com/Wicket-minis-%3A-use-of-Veil-tf3817418.html#a10807555
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket minis : use of Veil

2007-05-25 Thread NickCanada

Hi there

Is it possible for someone to give me an example of how to implement a Veil
from the Wicket Minis contrib?

if I add a veil to a component I just get "java.lang.IllegalStateException:
This behavior is already bound to component..."

Looking at the source I see that if (component != null) is the condition
that throws this exception but I don't see how to bind to a null component.

I am probably being a bit dumb as usual.

Any help appreciated.

Nick 
-- 
View this message in context: 
http://www.nabble.com/Wicket-minis-%3A-use-of-Veil-tf3817418.html#a10807229
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket-1.3b1 examples

2007-05-25 Thread Reinout van Schouwen
Hello all,

During ApacheCon earlier this month I first heard from Wicket.
My interest was aroused and the past few days I've been trying to get
started with wicket 1.3b1 (yes, choosing the latest stable version might
have been better, but hey, I like cutting edge ;)

So one of the things I have been doing is trying to (re)build the wicket
examples in the 1.3.0-incubating-beta1 distribution.

After manually adding the 1.3b1 jars to my local maven repository I was
ready to go -- or so I thought. There were still building errors related
to missing Spring classes. I was able to solve those by adding 'spring'
and 'wicket-spring' dependencies to pom.xml. (Do I have to file a bug
for that?) Anyway, the project now builds!

However, the following test failure is something I have no idea how to
solve quickly. Does someone have a suggestion? This is the error:

ERROR - Objects- Error serializing object class 
org.apache.wicket.examples.hangman.Guess [object=[Page class = 
org.apache.wicket.examples.hangman.Guess, id = 1, version = 0]]
org.apache.wicket.util.io.WicketSerializeableException: No Serializable 
constructor found for class sun.font.AttributeMap
org.apache.wicket.examples.hangman.Guess->children->org.apache.wicket.Component[5]->org.apache.wicket.examples.hangman.Guess$2->children->org.apache.wicket.Component[26]->org.apache.wicket.markup.html.list.ListItem->children->org.apache.wicket.examples.hangman.Guess$2$1->children->org.apache.wicket.markup.html.image.Image->localizedImageResource->org.apache.wicket.markup.html.image.resource.LocalizedImageResource->resource->org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource->fontAttributes
NOTE: if you feel Wicket is at fault with this exception, please report to the 
mailing list. You can switch to JDK based serialization by calling: 
org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new 
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of 
your application
at 
org.apache.wicket.util.io.ClassStreamHandler.(ClassStreamHandler.java:252)
at 
org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:733)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutput

Re: [Wicket-user] Including wicket page from JSP?

2007-05-25 Thread Scott Swank
Consider also the solution we implemented in house to allow arbitrary
Wicket components in an external web page -- including of course a
JSP.

http://www.nabble.com/Wicket-and-embeddable-Ajax-components-tf3604793.html#a10084198

On 5/25/07, Bruno Borges <[EMAIL PROTECTED]> wrote:
> You can do it with a runtime include
>
> 
>
> But watch out for conflicts between HTMLs and you will need to do some hacks
> like substring code inside  tag only. Something like that. Possible it
> is, but isn't out of the box. :D
>
> "Everything is possible."
>
> []'s
> --
> Bruno Borges
> Summa Technologies Inc.
> www.summa-tech.com
> (11) 8565-7739
> (11) 3055-2060
>  (48) 8404-1300
>
>
> On 5/25/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
> wrote:
> > Hi
> >
> > I wont expect the above to be possible, but sometimes you just dont
> > know? Is it possible, currently we are including it via an iframe tag,
> > some say thats a bad way todo it...
> >
> > Whats your 2 cents?
> >
> > regards Nino
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry in Netbeans tutorial

2007-05-25 Thread Ayodeji Aladejebi

I suppose their is currently some work on going on wicket support with
Netbeans

Here

http://www.netbeans.org/kb/55/quickstart-wicket-in-netbeans.html

i use it and its basic enough and i use it to train beginners in wicket

i believe a Good plugin for wicket in Netbeans will also boost adoption
among newbies


On 5/25/07, cowwoc <[EMAIL PROTECTED]> wrote:



http://www.netbeans.org/kb/55/quickstart-tapestry-in-netbeans.html

Would be nice to have similar integration for Wicket. It is
especially
nice how you get to specify Tapestry as a framework your Web Project
uses and it then integrates nicely throughout.

Gili


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry in Netbeans tutorial

2007-05-25 Thread Philip A. Chapman
So you'll be working on netbeans integration?

On Fri, 2007-05-25 at 12:23 -0400, cowwoc wrote:

>   http://www.netbeans.org/kb/55/quickstart-tapestry-in-netbeans.html
> 
>   Would be nice to have similar integration for Wicket. It is especially
> nice how you get to specify Tapestry as a framework your Web Project
> uses and it then integrates nicely throughout.
> 
> Gili
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___ Wicket-user mailing list 
> Wicket-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/wicket-user

-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry in Netbeans tutorial

2007-05-25 Thread Nick Heudecker

I think something like this already exists.  Google for "netbeans wicket".


On 5/25/07, cowwoc <[EMAIL PROTECTED]> wrote:



http://www.netbeans.org/kb/55/quickstart-tapestry-in-netbeans.html

Would be nice to have similar integration for Wicket. It is
especially
nice how you get to specify Tapestry as a framework your Web Project
uses and it then integrates nicely throughout.

Gili


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tapestry in Netbeans tutorial

2007-05-25 Thread cowwoc

http://www.netbeans.org/kb/55/quickstart-tapestry-in-netbeans.html

Would be nice to have similar integration for Wicket. It is especially
nice how you get to specify Tapestry as a framework your Web Project
uses and it then integrates nicely throughout.

Gili



signature.asc
Description: OpenPGP digital signature
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-25 Thread Sean Sullivan

Ok, I made the change to "home/" but I'm still having the same problem.

I am unable to visit the application homepage:
http://dev.foobar.com/wicketdemo/home

I've also tried http://dev.foobar.com/wicketdemo/home/   (trailing slash)
but it yields the same result.

I think that I am experiencing a Websphere specific bug.  The WAR runs fine
in Apache Tomcat 5.5.17

Sean


On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


make that home/

On 5/24/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> I have an index.jsp file in the root of the WAR:
>
> 
>
>
>
> On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > it seems that the home mount somehow does a redirect again to /home
> > but then wicket again to /home/ so the question is who does that /home
> > ?
> >


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with jsessionid in mounted Resources

2007-05-25 Thread Korbinian Bachl
Ahh, I now understand your main trouble. 
I think that we had this question on the list already, but can't remind how
it got solved... maybe our "god-of-code" Igor has an idea how ?
 

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Rüdiger Schulz
> Gesendet: Freitag, 25. Mai 2007 13:34
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] Problem with jsessionid in mounted 
> Resources
> 
> Hello,
> 
> 2007/5/25, Korbinian Bachl <[EMAIL PROTECTED]>:
> > Hi,
> >
> > i dont see the current problem but why dont you just go an 
> easier way 
> > in using IndexedParamUrlCoding strategy?
> >
> > e.g:
> >
> > -> create 1 normal Wicket WebPage having a (PageParameters params) 
> > -> strategy mount that page in the init() using
> > mount(new IndexedParamUrlCodingStrategy("/images"));
> >
> > then the page is responsible for all calls to /images/*
> 
> I already use this for a lot of my pages, and it is very nice 
> to use of course. But how do I deliver a binary image via a 
> page? Is this even possible?
> 
> --
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> --
> ---
> This SF.net email is sponsored by DB2 Express Download DB2 
> Express C - the FREE version of DB2 express and take control 
> of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Including wicket page from JSP?

2007-05-25 Thread Bruno Borges

You can do it with a runtime include



But watch out for conflicts between HTMLs and you will need to do some hacks
like substring code inside  tag only. Something like that. Possible it
is, but isn't out of the box. :D

"Everything is possible."

[]'s
--
Bruno Borges
Summa Technologies Inc.
www.summa-tech.com
(11) 8565-7739
(11) 3055-2060
(48) 8404-1300

On 5/25/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


Hi

I wont expect the above to be possible, but sometimes you just dont
know? Is it possible, currently we are including it via an iframe tag,
some say thats a bad way todo it...

Whats your 2 cents?

regards Nino

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Including wicket page from JSP?

2007-05-25 Thread Nino Saturnino Martinez Vazquez Wael
Hi

I wont expect the above to be possible, but sometimes you just dont 
know? Is it possible, currently we are including it via an iframe tag, 
some say thats a bad way todo it...

Whats your 2 cents?

regards Nino

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Inserting JSP into wicket

2007-05-25 Thread Joel Hill
We're beginning the gradual process of converting our app over to
wicket.  Since there isn't time to recreate our navigation menu in
wicket right now, I tried including the menu JSP in the wicket page
using the technique at
http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/.
 It worked great in OC4J 10.1.2, but we've also starting moving over to
OC4J 10.1.3.  When I load the same page in 10.1.3, the nav menu loads
but instead of the rest of the wicket page, An exception prints:

java.lang.IllegalStateException: OutputStream already
retrieved   at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.2.0)
].server.http.EvermindHttpServletResponse.getWriter(EvermindHttpServletResponse.java:917)
   at
wicket.protocol.http.WebResponse.write(WebResponse.java:315)at
wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:75) 
at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:229)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
   at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)  
at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)   
at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)   at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)   at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
  at
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
  at
oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
 at
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
 at
java.lang.Thread.run(Thread.java:595)


It looks like OC4J changed something in the include() call of the
RequestDispatcher, which is either doing output or just calling an
OutputStream.  I have no access to the source to confirm this however. 
Regardless, it's doing something the break the rest of the page. 
Obviously this is an issue with OC4J, but I was hoping someone here had
some answers or insight into the problem.  Or, failing that, and
alternate solution for including JSP into wicket.

Currently we're using wicket 1.2.5.  We love wicket so far.  It really
makes sense to separate the programming logic from the presentation
layer (putting the code in Java where it belongs).  Sifting through the
all the JSP code interspersed within the HTML was becoming a real chore.
 Keep up the good work with this framework.

Joel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] I got this : Expected close tag for ...

2007-05-25 Thread Matthieu Casanova

Hi, I'm new with Wicket framework and I have a little problem :
I have a list that contains Strings. Those strings can be a key in a map
that contains another list.
I want to
display the values of my list, and if the map contains a list2 for the key,
show the content of the list from the map too, otherwise I replace the list2
by a Fragment.


I made an example of what I want to do :
Here is my template :




   key

   
   Value
   




   Nothing inside



And the code is

List list = new ArrayList();
   list.add("A");
   list.add("B");
   list.add("C");
   list.add("D");

   List list2 = new ArrayList();
   list2.add("val1");
   list2.add("val2");
   list2.add("val3");

   final Map map = new HashMap();
   map.put("A", list);
   map.put("B", list);
   map.put("C", null);
   map.put("D", list);

   ListView view = new ListView("list", list)
   {
   protected void populateItem(ListItem item)
   {
   List list = (List) map.get(item.getModelObject());
   item.add(new Label("key", String.valueOf(item.getModelObject
(;

   if (list == null)
   {
   Fragment fragment = new Fragment("list2", "myFragment");
   item.add(fragment);
   }
   else
   {
   ListView v = new ListView("list2", list)
   {
   protected void populateItem(ListItem item)
   {
   item.add(new Label("value", String.valueOf(
item.getModelObject(;
   }
   };
   item.add(v);
   }
   }
   };
   add(view);

Can someone explain me what is wrong in my code, and what I should do ?
thanks

Matthieu
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with jsessionid in mounted Resources

2007-05-25 Thread Rüdiger Schulz
Hello,

2007/5/25, Korbinian Bachl <[EMAIL PROTECTED]>:
> Hi,
>
> i dont see the current problem but why dont you just go an easier way in
> using IndexedParamUrlCoding strategy?
>
> e.g:
>
> -> create 1 normal Wicket WebPage having a (PageParameters params) strategy
> -> mount that page in the init() using
> mount(new IndexedParamUrlCodingStrategy("/images"));
>
> then the page is responsible for all calls to /images/*

I already use this for a lot of my pages, and it is very nice to use
of course. But how do I deliver a binary image via a page? Is this
even possible?

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with jsessionid in mounted Resources

2007-05-25 Thread Korbinian Bachl
Hi,

i dont see the current problem but why dont you just go an easier way in
using IndexedParamUrlCoding strategy?

e.g:

-> create 1 normal Wicket WebPage having a (PageParameters params) strategy
-> mount that page in the init() using 
mount(new IndexedParamUrlCodingStrategy("/images"));

then the page is responsible for all calls to /images/*

if you want a complete path (as params.get(int ) only givesback the bits
between the slashes) ,then count the params and put em together in a loop
and thats it...

seems more easy solution to me

Regards


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Rüdiger Schulz
> Gesendet: Freitag, 25. Mai 2007 11:15
> An: wicket-user
> Betreff: [Wicket-user] Problem with jsessionid in mounted Resources
> 
> Hello all,
> 
> I have (or had) a problem with mounted Resources and an 
> iserted jsessionid. My goal is, as discussed here before:
> http://www.nabble.com/Bookmarkable-images-tf3706668.html#a1038
3150, to have dynamic image URLs with just slashes and no >
question-mark-separated querystring, like this:
> 
> /images/thumbnail/20.png
> 
> What I did was in short this:
> 
> Subclassed WebResource like this:
> 
> public IResourceStream getResourceStream() {
>   String path = 
> RequestCycle.get().getRequest().getRequestParameters().getPath();
>   // ... parse path, return ResourceStream
>   // path should be "images/thumbnail/20.png"
> }
> 
> In my Application.init():
> 
> getSharedResources().add("imageDataResource", new 
> ImageDataResource()); 
> mountSharedResource(ImageDataResource.MOUNT_PATH, new 
> ResourceReference("imageDataResource").getSharedResourceKey());
> 
> Then a custom WebComponent, where I have an AttributeModifier 
> for the src attribute, where I compile the src like this:
> 
> ResourceReference resRef = new ResourceReference("imageDataResource");
> String src = urlFor(resRef);
> src += "thumbnail/20.png";  // this is dynamic in the application
> 
> This all works almost perfect.
> 
> It stops working when someone has disabled cookies, and 
> jsessionid is added to all URLs. Then they look a little 
> strange like this:
> 
> /images;jsessionid=1ar97uck8ovr5/thumbnail/20.png
> 
> because urlFor(resRef) returns
> 
> /images;jsessionid=1ar97uck8ovr5
> 
> With such a URL, the command getRequestParameters().getPath() 
> returns simply "images", and all additional path info is lost.
> 
> Now, my first take at a solution would be to take the 
> jsessionid into consideration when building my URLs, so that 
> they look like this:
> 
> /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5
> 
> But maybe this is just a workaround for something I did wrong 
> at another place?
> 
> 
> --
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> --
> ---
> This SF.net email is sponsored by DB2 Express Download DB2 
> Express C - the FREE version of DB2 express and take control 
> of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Autocomplete - selecting (higlighting) first option by default.

2007-05-25 Thread Dipu
Hi, 

At the moment with Wicket's auto complete list  we need to scroll down to 
select an option from the Autocomplete list. 
It would be nice to have the first item highlighted by default.

I tried changing selected to 0 where its declared and it didn't work for me.

On setting selected to 0 a doUpdateChoices(resp) worked,

function doUpdateChoices(resp){
var element = getAutocompleteMenu();
element.innerHTML=resp;
if(element.firstChild && element.firstChild.childNodes) {
selected = 0;

Can anyone please confirm if this is the right way to go.

Regards
Dipu


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-25 Thread manuel barzi
> make a jira issue for this (if not already there) on the apache side (wicket
> sourceforge bug list got a bit lost)

?

> And attach a patch then we will apply that asap.

?

I am a wicket-user... remember? I can try registering this issue at
JIRA (send me instructions), but for the patch I have no much time
right now to investigate inside wicket's... despite I would like to...

On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> make a jira issue for this (if not already there) on the apache side (wicket
> sourceforge bug list got a bit lost)
>
> And attach a patch then we will apply that asap.
>
> johan
>
>
>
>  On 5/24/07, manuel barzi <[EMAIL PROTECTED]> wrote:
> >
> > Nothing to say about this, right? the bug still there :(
> >
> > On 5/23/07, manuel barzi <[EMAIL PROTECTED]> wrote:
> > > Dear Sirs,
> > >
> > > I am registering exactly the bug registered here:
> > >
> > >
> http://www.nabble.com/--wicket-Bugs-1484321---FileUploadField-clear-after-failed-validation-tf1581602.html#a4292585
> > >
> > > Is this problem persisting yet?
> > >
> > > We need to solve it asap!
> > >
> > > Thanks ;)
> > >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Behaviour with AjaxFormComponentUpdatingBehavior

2007-05-25 Thread Dipu
Hi Kent,

Many thanks for the reply.
I tried swithching to 1.2.6 but still i am getting the same error.
Are you sure thats fixed in 1.2.6

I am using tomcat 5.5.17

Regards
Dipu


- Original Message - 
From: "Kent Tong" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 9:01 AM
Subject: Re: [Wicket-user]Strange Behaviour with 
AjaxFormComponentUpdatingBehavior


> Dipu  multicom.co.uk> writes:
>> If i override the isVersioned method
>> of the page and return false every thing works fine, i really have no 
>> clue
>> about whats happening and whats causing the error. Has anyone seen  this
>> before ? Whats the best way to get around this ?
>>
>> I am using wicket 1.2.5
>
> Upgrade 1.2.6. See https://issues.apache.org/jira/browse/WICKET-349 for
> details.
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with jsessionid in mounted Resources

2007-05-25 Thread Rüdiger Schulz
Hello all,

I have (or had) a problem with mounted Resources and an iserted
jsessionid. My goal is, as discussed here before:
http://www.nabble.com/Bookmarkable-images-tf3706668.html#a10383150, to
have dynamic image URLs with just slashes and no
question-mark-separated querystring, like this:

/images/thumbnail/20.png

What I did was in short this:

Subclassed WebResource like this:

public IResourceStream getResourceStream() {
String path = 
RequestCycle.get().getRequest().getRequestParameters().getPath();
// ... parse path, return ResourceStream
// path should be "images/thumbnail/20.png"
}

In my Application.init():

getSharedResources().add("imageDataResource", new ImageDataResource());
mountSharedResource(ImageDataResource.MOUNT_PATH, new
ResourceReference("imageDataResource").getSharedResourceKey());

Then a custom WebComponent, where I have an AttributeModifier for the
src attribute, where I compile the src like this:

ResourceReference resRef = new ResourceReference("imageDataResource");
String src = urlFor(resRef);
src += "thumbnail/20.png";  // this is dynamic in the application

This all works almost perfect.

It stops working when someone has disabled cookies, and jsessionid is
added to all URLs. Then they look a little strange like this:

/images;jsessionid=1ar97uck8ovr5/thumbnail/20.png

because urlFor(resRef) returns

/images;jsessionid=1ar97uck8ovr5

With such a URL, the command getRequestParameters().getPath() returns
simply "images", and all additional path info is lost.

Now, my first take at a solution would be to take the jsessionid into
consideration when building my URLs, so that they look like this:

/images/thumbnail/20.png;jsessionid=1ar97uck8ovr5

But maybe this is just a workaround for something I did wrong at another place?


-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pattern for seperation of Java and Html -Comments Welcome

2007-05-25 Thread Korbinian Bachl
>i am not sure if the server team has changed that mode, but probably it
should be development mode is on production servers. Does it cause any
problem? 
 
well, in developement mode the system is slower and memory problems could
occur sometimes (e.g.: just search in list for "too much open files
problem") 
 
easy spoken: developement mode is called that way because its intended to be
used solely for this ;)
 
 


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Kadir
Sener GUMUS
Gesendet: Freitag, 25. Mai 2007 09:59
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] Pattern for seperation of Java and Html -Comments
Welcome


Hi Johan,
as i said before, three leading technology has been used in the project;
wicket,hibernate and spring. the all sites are served by wicket in one war
application. Additionally, a CMS application is used for html contents and
wicket dynamically injects dynamic components. Oh you might have a look of
dertour.de,adac and mwr, yes these sites have different booking
functionalities than others, so that's why they have iframe about product
workflow and inside different application of the company. But avigo,
atlasreisen and der.de sites have own booking functionalities powered by
several backend engines.
i am not sure if the server team has changed that mode, but probably it
should be development mode is on production servers. Does it cause any
problem? 
Tags and ids have been left, because we need to know them sometimes to dig
further about any bug/problem. Because panel replacement is used in many
workflow of pages, and we have many panels,components and pages (totaly
almost 2690 classes). 
 
Kadir Sener GÜMÜS

 
On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote: 

nice, but how much is done in wicket?
it seems a combination with other stuff (or are not many things really
dynamic?) 
because if i look at the source then the basket is wicket made but the rest
of the page is something else. 

i also see the wicket tags and ids everywhere. Do you start wicket in
development mode on your server? 

johan



On 5/23/07, Kadir Sener GUMUS <  
[EMAIL PROTECTED]> wrote:


Hi, i would like to share our experiences of our wicket project. Our project
is a turism portal which has booking functionalities with different products
and tourism guides,contents etc.  I want to draw your attention that
"tourism guides,contents" part!  That would mean lots of wicket pages
because of thousands of different touristic places, pictures, texts,
different layouts and so on. But it have been successfully separated as html
development and java development in the project. 
There is a wicket page that responsible for showing those static contents
inside. Every static site page has "resourceId" parameter and this parameter
is processed and returned in "getVariation()" overriden method. How wicket
knows panels and components inside a contentPage on runtime. The answer is
behind "autoAdd()" method. Implement " IComponentResolver" interface and its
"resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag
tag)" method in your content page. Inside that implemented method, a content
service finds and returns the component with " tag.getId()". Then component
is added by "autoAdd(component)". This is java part of dynamically component
resolving and adding to markup render. (also have a look in
AutoComponentResolver class)
In html content part, a commercial CMS application is used to manage static
contents such as guides, tourism contents, any layout with "wicket:id"
attributes for components which will be loaded dynamically. 
I am grateful to wicket-guys for that they created a framework like this.
Because, at once and ever first time in my programing life, i didnt care
about html part of the application :) Since all you know, html developers
create web site and html layouts, and then we -as developers- had put our
dynamic code blocks, expressions, custom jsp tags etc. at past! 
here are the urls of our application for example to a wicket application in
such a heavy-loaded ecommerce:
www.avigo.de   , www.dertour.de
 , www.atlasreisen.de  ,
www.der.de  , www.meiers-weltreisen.de
 , www.adacreisen.de
 
these sites can be completely success-stories of Wicket-Hibernate-Spring
triology. 
Regards,

 
Kadir Sener GUMUS


 
On 5/22/07, mchack <[EMAIL PROTECTED]> wrote: 


Thanks for the reply. Not suggesting it should be part of the main
distribution. I am new to the framework and was trying to see if what I 
proposed made sense. I want to make sure that I don't hinder or create
barriers to content creation on our portal and wanted to do it in a manner
that made sense. Maybe there are other ways to manage "separation of 
concerns".

In general are their recommended best practices regarding c

Re: [Wicket-user] Creating link with a label

2007-05-25 Thread Martijn Dashorst
Look at the list of problems I have with a solution like this. I don't
want this in core, or extensions. At best in wicketstuff-minis

I'd prefer having an example on the site showing this as how to build
custom components yourself, instead of adding it to core.

Instead of giving someone a fish, teach them how to fish.

Martijn

On 5/25/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> >
> > public abstract class LabelLink extends Link {
> > private IModel labelModel;
> >
> > public LabelLink(String id, IModel linkModel, IModel labelModel) {
> > super(id, linkModel);
> > this.labelModel = labelModel;
> > }
> > protected void onComponentTagBody(MarkupStream markupStream,
> > ComponentTag openTag)
> > {
> > replaceComponentTagBody(markupStream,
> openTag,
> > labelModel.getObject().toString());
> > }
> > }
>
>
> maybe we should add this to our classes (core or extentions)
> so that we don't get this same question over and over again..
>
> johan
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Creating link with a label

2007-05-25 Thread Ravindra Wankar





Johan, Martijn,

Thanks for the explanation and the solutions. I understand the issues
now.

Unfortunately for a new comers such as me, the problems are not obvious
and we're trying to map all what we've done with the traditional
frameworks to Wicket and hence we land up in trouble. e.g I'm used to
writing if/else blocks interspersed with html tags. The first time I
saw Wicket html I was trying hard to imagine where the conditional
logic goes.

I'll vote on having a LabelLink as part of wicket itself as I think it
will be a very common requirement.

Thanks
Ravi.

Johan Compagner wrote:

  
  
public abstract class LabelLink extends Link {
private IModel labelModel;

public LabelLink(String id, IModel linkModel, IModel labelModel) {
super(id, linkModel);
this.labelModel = labelModel;
}
protected void onComponentTagBody(MarkupStream markupStream,

ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag,
labelModel.getObject().toString());
}
}
  
  
maybe we should add this to our classes (core or extentions)
  
so that we don't get this same question over and over again..
  
johan
 
  
  
  
  

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
  

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  





-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-25 Thread Eelco Hillenius
It would be great if you could list the sites at
http://cwiki.apache.org/WICKET/#Index-SitesusingWicket

Thanks ahead!

Eelco


On 5/25/07, Kadir Sener GUMUS <[EMAIL PROTECTED]> wrote:
> Hi Johan,
> as i said before, three leading technology has been used in the project;
> wicket,hibernate and spring. the all sites are served by wicket in one war
> application. Additionally, a CMS application is used for html contents and
> wicket dynamically injects dynamic components. Oh you might have a look of
> dertour.de,adac and mwr, yes these sites have different booking
> functionalities than others, so that's why they have iframe about product
> workflow and inside different application of the company. But avigo,
> atlasreisen and der.de sites have own booking functionalities powered by
> several backend engines.
> i am not sure if the server team has changed that mode, but probably it
> should be development mode is on production servers. Does it cause any
> problem?
> Tags and ids have been left, because we need to know them sometimes to dig
> further about any bug/problem. Because panel replacement is used in many
> workflow of pages, and we have many panels,components and pages (totaly
> almost 2690 classes).
>
> Kadir Sener GÜMÜS
>
>
> On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > nice, but how much is done in wicket?
> > it seems a combination with other stuff (or are not many things really
> dynamic?)
> > because if i look at the source then the basket is wicket made but the
> rest of the page is something else.
> >
> > i also see the wicket tags and ids everywhere. Do you start wicket in
> development mode on your server?
> >
> > johan
> >
> >
> >
> >
> > On 5/23/07, Kadir Sener GUMUS < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi, i would like to share our experiences of our wicket project. Our
> project is a turism portal which has booking functionalities with different
> products and tourism guides,contents etc.  I want to draw your attention
> that "tourism guides,contents" part!  That would mean lots of wicket pages
> because of thousands of different touristic places, pictures, texts,
> different layouts and so on. But it have been successfully separated as html
> development and java development in the project.
> > > There is a wicket page that responsible for showing those static
> contents inside. Every static site page has "resourceId" parameter and this
> parameter is processed and returned in "getVariation()" overriden method.
> How wicket knows panels and components inside a contentPage on runtime. The
> answer is behind "autoAdd()" method. Implement " IComponentResolver"
> interface and its "resolve(MarkupContainer container, MarkupStream
> markupStream, ComponentTag tag)" method in your content page. Inside that
> implemented method, a content service finds and returns the component with "
> tag.getId()". Then component is added by "autoAdd(component)". This is java
> part of dynamically component resolving and adding to markup render. (also
> have a look in AutoComponentResolver class)
> > > In html content part, a commercial CMS application is used to manage
> static contents such as guides, tourism contents, any layout with
> "wicket:id" attributes for components which will be loaded dynamically.
> > > I am grateful to wicket-guys for that they created a framework like
> this. Because, at once and ever first time in my programing life, i didnt
> care about html part of the application :) Since all you know, html
> developers create web site and html layouts, and then we -as developers- had
> put our dynamic code blocks, expressions, custom jsp tags etc. at past!
> > > here are the urls of our application for example to a wicket application
> in such a heavy-loaded ecommerce:
> > > www.avigo.de , www.dertour.de, www.atlasreisen.de, www.der.de,
> www.meiers-weltreisen.de, www.adacreisen.de
> > > these sites can be completely success-stories of Wicket-Hibernate-Spring
> triology.
> > > Regards,
> > >
> > > Kadir Sener GUMUS
> > >
> > >
> > >
> > > On 5/22/07, mchack <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks for the reply. Not suggesting it should be part of the main
> > > > distribution. I am new to the framework and was trying to see if what
> I
> > > > proposed made sense. I want to make sure that I don't hinder or create
> > > > barriers to content creation on our portal and wanted to do it in a
> manner
> > > > that made sense. Maybe there are other ways to manage "separation of
> > > > concerns".
> > > >
> > > > In general are their recommended best practices regarding coordination
> and
> > > > workflow between the pure HTML designers and Java coders? In the
> component
> > > > model, seems like an HTML designer will come up with basic look and
> feel,
> > > > CSS, etc. and then the people on the framework side will
> > > > refactor/"componentize" the markup. At this point the original markup
> may
> > > > now be generated by an OO refactoring involving a nu

Re: [Wicket-user] Creating link with a label

2007-05-25 Thread Johan Compagner



public abstract class LabelLink extends Link {
private IModel labelModel;

public LabelLink(String id, IModel linkModel, IModel labelModel) {
super(id, linkModel);
this.labelModel = labelModel;
}
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag,
labelModel.getObject().toString());
}
}




maybe we should add this to our classes (core or extentions)
so that we don't get this same question over and over again..

johan
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Behaviour with AjaxFormComponen tUpdatingBehavior

2007-05-25 Thread Kent Tong
Dipu  multicom.co.uk> writes:
> If i override the isVersioned method 
> of the page and return false every thing works fine, i really have no clue 
> about whats happening and whats causing the error. Has anyone seen  this 
> before ? Whats the best way to get around this ? 
>  
> I am using wicket 1.2.5

Upgrade 1.2.6. See https://issues.apache.org/jira/browse/WICKET-349 for
details.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-25 Thread Kadir Sener GUMUS

Hi Johan,
as i said before, three leading technology has been used in the project;
wicket,hibernate and spring. the all sites are served by wicket in one war
application. Additionally, a CMS application is used for html contents and
wicket dynamically injects dynamic components. Oh you might have a look of
dertour.de,adac and mwr, yes these sites have different booking
functionalities than others, so that's why they have iframe about product
workflow and inside different application of the company. But avigo,
atlasreisen and der.de sites have own booking functionalities powered by
several backend engines.
i am not sure if the server team has changed that mode, but probably it
should be development mode is on production servers. Does it cause any
problem?
Tags and ids have been left, because we need to know them sometimes to dig
further about any bug/problem. Because panel replacement is used in many
workflow of pages, and we have many panels,components and pages (totaly
almost 2690 classes).

Kadir Sener GÜMÜS


On 5/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


nice, but how much is done in wicket?
it seems a combination with other stuff (or are not many things really
dynamic?)
because if i look at the source then the basket is wicket made but the
rest of the page is something else.

i also see the wicket tags and ids everywhere. Do you start wicket in
development mode on your server?

johan


 On 5/23/07, Kadir Sener GUMUS <[EMAIL PROTECTED]> wrote:

>  Hi, i would like to share our experiences of our wicket project. Our
> project is a turism portal which has booking functionalities with different
> products and tourism guides,contents etc.  I want to draw your attention
> that "tourism guides,contents" part!  That would mean lots of wicket pages
> because of thousands of different touristic places, pictures, texts,
> different layouts and so on. But it have been successfully separated as
> html development and java development in the project.
> There is a wicket page that responsible for showing those static
> contents inside. Every static site page has "resourceId" parameter and this
> parameter is processed and returned in "getVariation()" overriden
> method. How wicket knows panels and components inside a contentPage on
> runtime. The answer is behind "autoAdd()" method. Implement "
> IComponentResolver" interface and its "resolve(MarkupContainer
> container, MarkupStream markupStream, ComponentTag tag)" method in your
> content page. Inside that implemented method, a content service finds and
> returns the component with " tag.getId()". Then component is added by
> "autoAdd(component)". This is java part of dynamically component resolving
> and adding to markup render. (also have a look in AutoComponentResolver
> class)
> In html content part, a commercial CMS application is used to manage
> static contents such as guides, tourism contents, any layout with
> "wicket:id" attributes for components which will be loaded dynamically.
> I am grateful to wicket-guys for that they created a framework like
> this. Because, at once and ever first time in my programing life, i didnt
> care about html part of the application :) Since all you know, html
> developers create web site and html layouts, and then we -as developers- had
> put our dynamic code blocks, expressions, custom jsp tags etc. at past!
> here are the urls of our application for example to a wicket application
> in such a heavy-loaded ecommerce:
> www.avigo.de , www.dertour.de, www.atlasreisen.de, www.der.de,
> www.meiers-weltreisen.de, www.adacreisen.de
> these sites can be completely success-stories of Wicket-Hibernate-Spring
> triology.
> Regards,
>
> Kadir Sener GUMUS
>
>
> On 5/22/07, mchack <[EMAIL PROTECTED]> wrote:
> >
> >
> > Thanks for the reply. Not suggesting it should be part of the main
> > distribution. I am new to the framework and was trying to see if what
> > I
> > proposed made sense. I want to make sure that I don't hinder or create
> > barriers to content creation on our portal and wanted to do it in a
> > manner
> > that made sense. Maybe there are other ways to manage "separation of
> > concerns".
> >
> > In general are their recommended best practices regarding coordination
> > and
> > workflow between the pure HTML designers and Java coders? In the
> > component
> > model, seems like an HTML designer will come up with basic look and
> > feel,
> > CSS, etc. and then the people on the framework side will
> > refactor/"componentize" the markup. At this point the original markup
> > may
> > now be generated by an OO refactoring involving a number of new
> > pages/components to insert dynamic content/behavior. The original
> > design is
> > now split into a variety of new pages and will no longer be readily
> > accessible to the original designer as they now have to work on a
> > variety of
> > fragments. Any references to how to keep the HTML development happy
> > would be
> > appreciated.
> >
> > Thanks
> >
> >
> > E

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-25 Thread kenixwong

Thanks anyone... i get it

This is the solution :clap:



  /*/
  
   Public void onSubmit() {
 ..
 ..

exportRequestDetailsAsPdf(sqlField, sqlCondition, sqlOrderBy);

String report_name = "requestMaster_created_by_userid.pdf";

   File file = displayPdf(report_name);
ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(new
FileResourceStream(new 
wicket.util.file.File(file)));
target.setFileName(report_name);
RequestCycle.get().setRequestTarget(target); 
   }

// Generate the report
protected void exportRequestDetailsAsPdf(String sqlField, String
sqlCondition, String sqlOrderBy) {
// iText code
}

   protected File displayPdf(String reportName) {
File readFile = null;
readFile = new File(reportName);
return readFile;
  }





Harald Gruber wrote:
> 
> kenixwong schrieb:
>> Ignore the previous question
>> 
>> The 2 line is generate the report in pdf format. Yeah, it success. Then
>> come
>> to the 3rd line, it prompt me "Null" Value. SO, it that mean cant read
>> the
>> pdf file and then display it into the browser ? 
> 
>> 3System.out.println("file = " +file);
> 
> if file is null here it looks to me like u dont return it in your 
> exportRequestDetailsAsPdf function.
> 
> for the wicket part: my hint was for version 1.3. don't know if it works
> the 
> same in 1.2.6.
> 
> but probably have a look at
> http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529
> 
> there is a 1.2 version part.
> 
> harald
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket---Load-the-pdf-file-after-onSubmit-tf3808639.html#a10798589
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Page and Page in an internal frame cooperation

2007-05-25 Thread -Vlad-

Hi all!
I've got the following problem:
I have a page and an internal frame on it. To operate on that internal frame
from the parent page, I have to keep reference to it in the parent page
(InternalFrame.class has private method to get its page). 
It works but after the first load there are two instances of the internal
frame page.
Can I avoid having an extra instance of the internal frame page?

-- 
View this message in context: 
http://www.nabble.com/Page-and-Page-in-an-internal-frame-cooperation-tf3814562.html#a10798088
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user